Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove the generated from the .cvsignore files now that they are in the cvs
[simgrid.git] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.135 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for simgrid 3.1.1-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.1.1-cvs'
428 PACKAGE_STRING='simgrid 3.1.1-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 SIMGRID_DEP 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.1.1-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.1.1-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-maintainer-mode  enable make rules and dependencies not useful
1042                           (and sometimes confusing) to the casual installer
1043   --enable-compile-warnings
1044                           use compiler warnings (default=no, unless in
1045                           maintainer mode)
1046   --disable-compile-optimizations
1047                           use compiler optimizations (default=yes, unless if
1048                           CFLAGS is explicitly set)
1049
1050 Optional Packages:
1051   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1052   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1053   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1054   --with-pic              try to use only PIC/non-PIC objects [default=use
1055                           both]
1056   --with-tags[=TAGS]
1057                           include additional configurations [automatic]
1058   --with-pthread   Use pthread instead of ucontext.
1059   --with-context=ucontext/pthread   Use either (System V) swapcontext or pthread [default=auto].
1060
1061 Some influential environment variables:
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1065               nonstandard directory <lib dir>
1066   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067               headers in a nonstandard directory <include dir>
1068   CPP         C preprocessor
1069   CXX         C++ compiler command
1070   CXXFLAGS    C++ compiler flags
1071   CXXCPP      C++ preprocessor
1072   F77         Fortran 77 compiler command
1073   FFLAGS      Fortran 77 compiler flags
1074
1075 Use these variables to override the choices made by `configure' or to help
1076 it to find libraries and programs with nonstandard names/locations.
1077
1078 Report bugs to <simgrid-devel@lists.gforge.inria.fr>.
1079 _ACEOF
1080 fi
1081
1082 if test "$ac_init_help" = "recursive"; then
1083   # If there are subdirs, report their specific --help.
1084   ac_popdir=`pwd`
1085   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086     test -d $ac_dir || continue
1087     ac_builddir=.
1088
1089 if test "$ac_dir" != .; then
1090   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091   # A "../" for each directory in $ac_dir_suffix.
1092   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 else
1094   ac_dir_suffix= ac_top_builddir=
1095 fi
1096
1097 case $srcdir in
1098   .)  # No --srcdir option.  We are building in place.
1099     ac_srcdir=.
1100     if test -z "$ac_top_builddir"; then
1101        ac_top_srcdir=.
1102     else
1103        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104     fi ;;
1105   [\\/]* | ?:[\\/]* )  # Absolute path.
1106     ac_srcdir=$srcdir$ac_dir_suffix;
1107     ac_top_srcdir=$srcdir ;;
1108   *) # Relative path.
1109     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 esac
1112
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1115 case `pwd` in
1116 .) ac_abs_builddir="$ac_dir";;
1117 *)
1118   case "$ac_dir" in
1119   .) ac_abs_builddir=`pwd`;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *)
1127   case ${ac_top_builddir}. in
1128   .) ac_abs_top_builddir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1135 *)
1136   case $ac_srcdir in
1137   .) ac_abs_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140   esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *)
1145   case $ac_top_srcdir in
1146   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149   esac;;
1150 esac
1151
1152     cd $ac_dir
1153     # Check for guested configure; otherwise get Cygnus style configure.
1154     if test -f $ac_srcdir/configure.gnu; then
1155       echo
1156       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1157     elif test -f $ac_srcdir/configure; then
1158       echo
1159       $SHELL $ac_srcdir/configure  --help=recursive
1160     elif test -f $ac_srcdir/configure.ac ||
1161            test -f $ac_srcdir/configure.in; then
1162       echo
1163       $ac_configure --help
1164     else
1165       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166     fi
1167     cd "$ac_popdir"
1168   done
1169 fi
1170
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1173   cat <<\_ACEOF
1174 simgrid configure 3.1.1-cvs
1175 generated by GNU Autoconf 2.59
1176
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1180 _ACEOF
1181   exit 0
1182 fi
1183 exec 5>config.log
1184 cat >&5 <<_ACEOF
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1187
1188 It was created by simgrid $as_me 3.1.1-cvs, which was
1189 generated by GNU Autoconf 2.59.  Invocation command line was
1190
1191   $ $0 $@
1192
1193 _ACEOF
1194 {
1195 cat <<_ASUNAME
1196 ## --------- ##
1197 ## Platform. ##
1198 ## --------- ##
1199
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1208
1209 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1210 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1213 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1214 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1215 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1216
1217 _ASUNAME
1218
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1220 for as_dir in $PATH
1221 do
1222   IFS=$as_save_IFS
1223   test -z "$as_dir" && as_dir=.
1224   echo "PATH: $as_dir"
1225 done
1226
1227 } >&5
1228
1229 cat >&5 <<_ACEOF
1230
1231
1232 ## ----------- ##
1233 ## Core tests. ##
1234 ## ----------- ##
1235
1236 _ACEOF
1237
1238
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1244 ac_configure_args=
1245 ac_configure_args0=
1246 ac_configure_args1=
1247 ac_sep=
1248 ac_must_keep_next=false
1249 for ac_pass in 1 2
1250 do
1251   for ac_arg
1252   do
1253     case $ac_arg in
1254     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256     | -silent | --silent | --silen | --sile | --sil)
1257       continue ;;
1258     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260     esac
1261     case $ac_pass in
1262     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263     2)
1264       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265       if test $ac_must_keep_next = true; then
1266         ac_must_keep_next=false # Got value, back to normal.
1267       else
1268         case $ac_arg in
1269           *=* | --config-cache | -C | -disable-* | --disable-* \
1270           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272           | -with-* | --with-* | -without-* | --without-* | --x)
1273             case "$ac_configure_args0 " in
1274               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275             esac
1276             ;;
1277           -* ) ac_must_keep_next=true ;;
1278         esac
1279       fi
1280       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281       # Get rid of the leading space.
1282       ac_sep=" "
1283       ;;
1284     esac
1285   done
1286 done
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1289
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log.  We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296   # Save into config.log some information that might help in debugging.
1297   {
1298     echo
1299
1300     cat <<\_ASBOX
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1304 _ASBOX
1305     echo
1306     # The following way of writing the cache mishandles newlines in values,
1307 {
1308   (set) 2>&1 |
1309     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310     *ac_space=\ *)
1311       sed -n \
1312         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1314       ;;
1315     *)
1316       sed -n \
1317         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318       ;;
1319     esac;
1320 }
1321     echo
1322
1323     cat <<\_ASBOX
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1327 _ASBOX
1328     echo
1329     for ac_var in $ac_subst_vars
1330     do
1331       eval ac_val=$`echo $ac_var`
1332       echo "$ac_var='"'"'$ac_val'"'"'"
1333     done | sort
1334     echo
1335
1336     if test -n "$ac_subst_files"; then
1337       cat <<\_ASBOX
1338 ## ------------- ##
1339 ## Output files. ##
1340 ## ------------- ##
1341 _ASBOX
1342       echo
1343       for ac_var in $ac_subst_files
1344       do
1345         eval ac_val=$`echo $ac_var`
1346         echo "$ac_var='"'"'$ac_val'"'"'"
1347       done | sort
1348       echo
1349     fi
1350
1351     if test -s confdefs.h; then
1352       cat <<\_ASBOX
1353 ## ----------- ##
1354 ## confdefs.h. ##
1355 ## ----------- ##
1356 _ASBOX
1357       echo
1358       sed "/^$/d" confdefs.h | sort
1359       echo
1360     fi
1361     test "$ac_signal" != 0 &&
1362       echo "$as_me: caught signal $ac_signal"
1363     echo "$as_me: exit $exit_status"
1364   } >&5
1365   rm -f core *.core &&
1366   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367     exit $exit_status
1368      ' 0
1369 for ac_signal in 1 2 13 15; do
1370   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1371 done
1372 ac_signal=0
1373
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377 echo >confdefs.h
1378
1379 # Predefined preprocessor variables.
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1398 _ACEOF
1399
1400
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1403 _ACEOF
1404
1405
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409   if test "x$prefix" != xNONE; then
1410     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411   else
1412     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413   fi
1414 fi
1415 for ac_site_file in $CONFIG_SITE; do
1416   if test -r "$ac_site_file"; then
1417     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419     sed 's/^/| /' "$ac_site_file" >&5
1420     . "$ac_site_file"
1421   fi
1422 done
1423
1424 if test -r "$cache_file"; then
1425   # Some versions of bash will fail to source /dev/null (special
1426   # files actually), so we avoid doing that.
1427   if test -f "$cache_file"; then
1428     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1430     case $cache_file in
1431       [\\/]* | ?:[\\/]* ) . $cache_file;;
1432       *)                      . ./$cache_file;;
1433     esac
1434   fi
1435 else
1436   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1438   >$cache_file
1439 fi
1440
1441 # Check that the precious variables saved in the cache have kept the same
1442 # value.
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447   eval ac_new_set=\$ac_env_${ac_var}_set
1448   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449   eval ac_new_val="\$ac_env_${ac_var}_value"
1450   case $ac_old_set,$ac_new_set in
1451     set,)
1452       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454       ac_cache_corrupted=: ;;
1455     ,set)
1456       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458       ac_cache_corrupted=: ;;
1459     ,);;
1460     *)
1461       if test "x$ac_old_val" != "x$ac_new_val"; then
1462         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1465 echo "$as_me:   former value:  $ac_old_val" >&2;}
1466         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1467 echo "$as_me:   current value: $ac_new_val" >&2;}
1468         ac_cache_corrupted=:
1469       fi;;
1470   esac
1471   # Pass precious variables to config.status.
1472   if test "$ac_new_set" = set; then
1473     case $ac_new_val in
1474     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476     *) ac_arg=$ac_var=$ac_new_val ;;
1477     esac
1478     case " $ac_configure_args " in
1479       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1480       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1481     esac
1482   fi
1483 done
1484 if $ac_cache_corrupted; then
1485   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489    { (exit 1); exit 1; }; }
1490 fi
1491
1492 ac_ext=c
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1497
1498
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           ac_config_headers="$ac_config_headers src/gras_config.h"
1526
1527 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
1528
1529
1530 ac_aux_dir=
1531 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1532   if test -f $ac_dir/install-sh; then
1533     ac_aux_dir=$ac_dir
1534     ac_install_sh="$ac_aux_dir/install-sh -c"
1535     break
1536   elif test -f $ac_dir/install.sh; then
1537     ac_aux_dir=$ac_dir
1538     ac_install_sh="$ac_aux_dir/install.sh -c"
1539     break
1540   elif test -f $ac_dir/shtool; then
1541     ac_aux_dir=$ac_dir
1542     ac_install_sh="$ac_aux_dir/shtool install -c"
1543     break
1544   fi
1545 done
1546 if test -z "$ac_aux_dir"; then
1547   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1548 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1549    { (exit 1); exit 1; }; }
1550 fi
1551 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1552 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1553 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1554
1555 # Make sure we can run config.sub.
1556 $ac_config_sub sun4 >/dev/null 2>&1 ||
1557   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1558 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1559    { (exit 1); exit 1; }; }
1560
1561 echo "$as_me:$LINENO: checking build system type" >&5
1562 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1563 if test "${ac_cv_build+set}" = set; then
1564   echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566   ac_cv_build_alias=$build_alias
1567 test -z "$ac_cv_build_alias" &&
1568   ac_cv_build_alias=`$ac_config_guess`
1569 test -z "$ac_cv_build_alias" &&
1570   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1571 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1572    { (exit 1); exit 1; }; }
1573 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1574   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1575 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1576    { (exit 1); exit 1; }; }
1577
1578 fi
1579 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1580 echo "${ECHO_T}$ac_cv_build" >&6
1581 build=$ac_cv_build
1582 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1583 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1584 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
1586
1587 echo "$as_me:$LINENO: checking host system type" >&5
1588 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1589 if test "${ac_cv_host+set}" = set; then
1590   echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592   ac_cv_host_alias=$host_alias
1593 test -z "$ac_cv_host_alias" &&
1594   ac_cv_host_alias=$ac_cv_build_alias
1595 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1596   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1597 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1598    { (exit 1); exit 1; }; }
1599
1600 fi
1601 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1602 echo "${ECHO_T}$ac_cv_host" >&6
1603 host=$ac_cv_host
1604 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1605 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1606 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1607
1608
1609 echo "$as_me:$LINENO: checking target system type" >&5
1610 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1611 if test "${ac_cv_target+set}" = set; then
1612   echo $ECHO_N "(cached) $ECHO_C" >&6
1613 else
1614   ac_cv_target_alias=$target_alias
1615 test "x$ac_cv_target_alias" = "x" &&
1616   ac_cv_target_alias=$ac_cv_host_alias
1617 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1618   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1619 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1620    { (exit 1); exit 1; }; }
1621
1622 fi
1623 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1624 echo "${ECHO_T}$ac_cv_target" >&6
1625 target=$ac_cv_target
1626 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629
1630
1631 # The aliases save the names the user supplied, while $host etc.
1632 # will get canonicalized.
1633 test -n "$target_alias" &&
1634   test "$program_prefix$program_suffix$program_transform_name" = \
1635     NONENONEs,x,x, &&
1636   program_prefix=${target_alias}-
1637 ac_ext=c
1638 ac_cpp='$CPP $CPPFLAGS'
1639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1642
1643
1644 am__api_version="1.9"
1645 # Find a good install program.  We prefer a C program (faster),
1646 # so one script is as good as another.  But avoid the broken or
1647 # incompatible versions:
1648 # SysV /etc/install, /usr/sbin/install
1649 # SunOS /usr/etc/install
1650 # IRIX /sbin/install
1651 # AIX /bin/install
1652 # AmigaOS /C/install, which installs bootblocks on floppy discs
1653 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1654 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1655 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1656 # OS/2's system install, which has a completely different semantic
1657 # ./install, which can be erroneously created by make from ./install.sh.
1658 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1659 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1660 if test -z "$INSTALL"; then
1661 if test "${ac_cv_path_install+set}" = set; then
1662   echo $ECHO_N "(cached) $ECHO_C" >&6
1663 else
1664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667   IFS=$as_save_IFS
1668   test -z "$as_dir" && as_dir=.
1669   # Account for people who put trailing slashes in PATH elements.
1670 case $as_dir/ in
1671   ./ | .// | /cC/* | \
1672   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1673   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1674   /usr/ucb/* ) ;;
1675   *)
1676     # OSF1 and SCO ODT 3.0 have their own names for install.
1677     # Don't use installbsd from OSF since it installs stuff as root
1678     # by default.
1679     for ac_prog in ginstall scoinst install; do
1680       for ac_exec_ext in '' $ac_executable_extensions; do
1681         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1682           if test $ac_prog = install &&
1683             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1684             # AIX install.  It has an incompatible calling convention.
1685             :
1686           elif test $ac_prog = install &&
1687             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1688             # program-specific install script used by HP pwplus--don't use.
1689             :
1690           else
1691             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1692             break 3
1693           fi
1694         fi
1695       done
1696     done
1697     ;;
1698 esac
1699 done
1700
1701
1702 fi
1703   if test "${ac_cv_path_install+set}" = set; then
1704     INSTALL=$ac_cv_path_install
1705   else
1706     # As a last resort, use the slow shell script.  We don't cache a
1707     # path for INSTALL within a source directory, because that will
1708     # break other packages using the cache if that directory is
1709     # removed, or if the path is relative.
1710     INSTALL=$ac_install_sh
1711   fi
1712 fi
1713 echo "$as_me:$LINENO: result: $INSTALL" >&5
1714 echo "${ECHO_T}$INSTALL" >&6
1715
1716 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1717 # It thinks the first close brace ends the variable substitution.
1718 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1719
1720 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1721
1722 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1723
1724 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1725 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1726 # Just in case
1727 sleep 1
1728 echo timestamp > conftest.file
1729 # Do `set' in a subshell so we don't clobber the current shell's
1730 # arguments.  Must try -L first in case configure is actually a
1731 # symlink; some systems play weird games with the mod time of symlinks
1732 # (eg FreeBSD returns the mod time of the symlink's containing
1733 # directory).
1734 if (
1735    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1736    if test "$*" = "X"; then
1737       # -L didn't work.
1738       set X `ls -t $srcdir/configure conftest.file`
1739    fi
1740    rm -f conftest.file
1741    if test "$*" != "X $srcdir/configure conftest.file" \
1742       && test "$*" != "X conftest.file $srcdir/configure"; then
1743
1744       # If neither matched, then we have a broken ls.  This can happen
1745       # if, for instance, CONFIG_SHELL is bash and it inherits a
1746       # broken ls alias from the environment.  This has actually
1747       # happened.  Such a system could not be considered "sane".
1748       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1749 alias in your environment" >&5
1750 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1751 alias in your environment" >&2;}
1752    { (exit 1); exit 1; }; }
1753    fi
1754
1755    test "$2" = conftest.file
1756    )
1757 then
1758    # Ok.
1759    :
1760 else
1761    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1762 Check your system clock" >&5
1763 echo "$as_me: error: newly created file is older than distributed files!
1764 Check your system clock" >&2;}
1765    { (exit 1); exit 1; }; }
1766 fi
1767 echo "$as_me:$LINENO: result: yes" >&5
1768 echo "${ECHO_T}yes" >&6
1769 test "$program_prefix" != NONE &&
1770   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1771 # Use a double $ so make ignores it.
1772 test "$program_suffix" != NONE &&
1773   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1774 # Double any \ or $.  echo might interpret backslashes.
1775 # By default was `s,x,x', remove it if useless.
1776 cat <<\_ACEOF >conftest.sed
1777 s/[\\$]/&&/g;s/;s,x,x,$//
1778 _ACEOF
1779 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1780 rm conftest.sed
1781
1782 # expand $ac_aux_dir to an absolute path
1783 am_aux_dir=`cd $ac_aux_dir && pwd`
1784
1785 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1786 # Use eval to expand $SHELL
1787 if eval "$MISSING --run true"; then
1788   am_missing_run="$MISSING --run "
1789 else
1790   am_missing_run=
1791   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1792 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1793 fi
1794
1795 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1796   # We used to keeping the `.' as first argument, in order to
1797   # allow $(mkdir_p) to be used without argument.  As in
1798   #   $(mkdir_p) $(somedir)
1799   # where $(somedir) is conditionally defined.  However this is wrong
1800   # for two reasons:
1801   #  1. if the package is installed by a user who cannot write `.'
1802   #     make install will fail,
1803   #  2. the above comment should most certainly read
1804   #     $(mkdir_p) $(DESTDIR)$(somedir)
1805   #     so it does not work when $(somedir) is undefined and
1806   #     $(DESTDIR) is not.
1807   #  To support the latter case, we have to write
1808   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1809   #  so the `.' trick is pointless.
1810   mkdir_p='mkdir -p --'
1811 else
1812   # On NextStep and OpenStep, the `mkdir' command does not
1813   # recognize any option.  It will interpret all options as
1814   # directories to create, and then abort because `.' already
1815   # exists.
1816   for d in ./-p ./--version;
1817   do
1818     test -d $d && rmdir $d
1819   done
1820   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1821   if test -f "$ac_aux_dir/mkinstalldirs"; then
1822     mkdir_p='$(mkinstalldirs)'
1823   else
1824     mkdir_p='$(install_sh) -d'
1825   fi
1826 fi
1827
1828 for ac_prog in gawk mawk nawk awk
1829 do
1830   # Extract the first word of "$ac_prog", so it can be a program name with args.
1831 set dummy $ac_prog; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_AWK+set}" = set; then
1835   echo $ECHO_N "(cached) $ECHO_C" >&6
1836 else
1837   if test -n "$AWK"; then
1838   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1839 else
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843   IFS=$as_save_IFS
1844   test -z "$as_dir" && as_dir=.
1845   for ac_exec_ext in '' $ac_executable_extensions; do
1846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847     ac_cv_prog_AWK="$ac_prog"
1848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849     break 2
1850   fi
1851 done
1852 done
1853
1854 fi
1855 fi
1856 AWK=$ac_cv_prog_AWK
1857 if test -n "$AWK"; then
1858   echo "$as_me:$LINENO: result: $AWK" >&5
1859 echo "${ECHO_T}$AWK" >&6
1860 else
1861   echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1863 fi
1864
1865   test -n "$AWK" && break
1866 done
1867
1868 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1869 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1870 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1871 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1872   echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874   cat >conftest.make <<\_ACEOF
1875 all:
1876         @echo 'ac_maketemp="$(MAKE)"'
1877 _ACEOF
1878 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1879 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1880 if test -n "$ac_maketemp"; then
1881   eval ac_cv_prog_make_${ac_make}_set=yes
1882 else
1883   eval ac_cv_prog_make_${ac_make}_set=no
1884 fi
1885 rm -f conftest.make
1886 fi
1887 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1888   echo "$as_me:$LINENO: result: yes" >&5
1889 echo "${ECHO_T}yes" >&6
1890   SET_MAKE=
1891 else
1892   echo "$as_me:$LINENO: result: no" >&5
1893 echo "${ECHO_T}no" >&6
1894   SET_MAKE="MAKE=${MAKE-make}"
1895 fi
1896
1897 rm -rf .tst 2>/dev/null
1898 mkdir .tst 2>/dev/null
1899 if test -d .tst; then
1900   am__leading_dot=.
1901 else
1902   am__leading_dot=_
1903 fi
1904 rmdir .tst 2>/dev/null
1905
1906 # test to see if srcdir already configured
1907 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1908    test -f $srcdir/config.status; then
1909   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1910 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1911    { (exit 1); exit 1; }; }
1912 fi
1913
1914 # test whether we have cygpath
1915 if test -z "$CYGPATH_W"; then
1916   if (cygpath --version) >/dev/null 2>/dev/null; then
1917     CYGPATH_W='cygpath -w'
1918   else
1919     CYGPATH_W=echo
1920   fi
1921 fi
1922
1923
1924 # Define the identity of the package.
1925  PACKAGE='simgrid'
1926  VERSION='3.1.1-cvs'
1927
1928
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE "$PACKAGE"
1931 _ACEOF
1932
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define VERSION "$VERSION"
1936 _ACEOF
1937
1938 # Some tools Automake needs.
1939
1940 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1941
1942
1943 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1944
1945
1946 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1947
1948
1949 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1950
1951
1952 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1953
1954 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1955
1956 # Installed binaries are usually stripped using `strip' when the user
1957 # run `make install-strip'.  However `strip' might not be the right
1958 # tool to use in cross-compilation environments, therefore Automake
1959 # will honor the `STRIP' environment variable to overrule this program.
1960 if test "$cross_compiling" != no; then
1961   if test -n "$ac_tool_prefix"; then
1962   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1963 set dummy ${ac_tool_prefix}strip; ac_word=$2
1964 echo "$as_me:$LINENO: checking for $ac_word" >&5
1965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1966 if test "${ac_cv_prog_STRIP+set}" = set; then
1967   echo $ECHO_N "(cached) $ECHO_C" >&6
1968 else
1969   if test -n "$STRIP"; then
1970   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1971 else
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975   IFS=$as_save_IFS
1976   test -z "$as_dir" && as_dir=.
1977   for ac_exec_ext in '' $ac_executable_extensions; do
1978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981     break 2
1982   fi
1983 done
1984 done
1985
1986 fi
1987 fi
1988 STRIP=$ac_cv_prog_STRIP
1989 if test -n "$STRIP"; then
1990   echo "$as_me:$LINENO: result: $STRIP" >&5
1991 echo "${ECHO_T}$STRIP" >&6
1992 else
1993   echo "$as_me:$LINENO: result: no" >&5
1994 echo "${ECHO_T}no" >&6
1995 fi
1996
1997 fi
1998 if test -z "$ac_cv_prog_STRIP"; then
1999   ac_ct_STRIP=$STRIP
2000   # Extract the first word of "strip", so it can be a program name with args.
2001 set dummy strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   if test -n "$ac_ct_STRIP"; then
2008   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013   IFS=$as_save_IFS
2014   test -z "$as_dir" && as_dir=.
2015   for ac_exec_ext in '' $ac_executable_extensions; do
2016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017     ac_cv_prog_ac_ct_STRIP="strip"
2018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019     break 2
2020   fi
2021 done
2022 done
2023
2024   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2025 fi
2026 fi
2027 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2028 if test -n "$ac_ct_STRIP"; then
2029   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2030 echo "${ECHO_T}$ac_ct_STRIP" >&6
2031 else
2032   echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2034 fi
2035
2036   STRIP=$ac_ct_STRIP
2037 else
2038   STRIP="$ac_cv_prog_STRIP"
2039 fi
2040
2041 fi
2042 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2043
2044 # We need awk for the "check" target.  The system "awk" is bad on
2045 # some platforms.
2046 # Always define AMTAR for backward compatibility.
2047
2048 AMTAR=${AMTAR-"${am_missing_run}tar"}
2049
2050 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2051
2052
2053
2054
2055
2056 case acmacro in
2057   [\\/]* | ?:[\\/]* ) ac_macro_dir=acmacro         ;;
2058   *)                      ac_macro_dir=$srcdir/acmacro ;;
2059 esac
2060 if test -d "$ac_macro_dir"; then :
2061 else
2062   { { echo "$as_me:$LINENO: error: cannot find macro directory \`acmacro'" >&5
2063 echo "$as_me: error: cannot find macro directory \`acmacro'" >&2;}
2064    { (exit 1); exit 1; }; }
2065 fi
2066
2067 ACLOCAL="$ACLOCAL -I acmacro"
2068
2069
2070 # Check whether --enable-shared or --disable-shared was given.
2071 if test "${enable_shared+set}" = set; then
2072   enableval="$enable_shared"
2073   p=${PACKAGE-default}
2074     case $enableval in
2075     yes) enable_shared=yes ;;
2076     no) enable_shared=no ;;
2077     *)
2078       enable_shared=no
2079       # Look at the argument we got.  We use all the common list separators.
2080       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2081       for pkg in $enableval; do
2082         IFS="$lt_save_ifs"
2083         if test "X$pkg" = "X$p"; then
2084           enable_shared=yes
2085         fi
2086       done
2087       IFS="$lt_save_ifs"
2088       ;;
2089     esac
2090 else
2091   enable_shared=yes
2092 fi;
2093
2094 # Check whether --enable-static or --disable-static was given.
2095 if test "${enable_static+set}" = set; then
2096   enableval="$enable_static"
2097   p=${PACKAGE-default}
2098     case $enableval in
2099     yes) enable_static=yes ;;
2100     no) enable_static=no ;;
2101     *)
2102      enable_static=no
2103       # Look at the argument we got.  We use all the common list separators.
2104       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2105       for pkg in $enableval; do
2106         IFS="$lt_save_ifs"
2107         if test "X$pkg" = "X$p"; then
2108           enable_static=yes
2109         fi
2110       done
2111       IFS="$lt_save_ifs"
2112       ;;
2113     esac
2114 else
2115   enable_static=yes
2116 fi;
2117
2118 # Check whether --enable-fast-install or --disable-fast-install was given.
2119 if test "${enable_fast_install+set}" = set; then
2120   enableval="$enable_fast_install"
2121   p=${PACKAGE-default}
2122     case $enableval in
2123     yes) enable_fast_install=yes ;;
2124     no) enable_fast_install=no ;;
2125     *)
2126       enable_fast_install=no
2127       # Look at the argument we got.  We use all the common list separators.
2128       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2129       for pkg in $enableval; do
2130         IFS="$lt_save_ifs"
2131         if test "X$pkg" = "X$p"; then
2132           enable_fast_install=yes
2133         fi
2134       done
2135       IFS="$lt_save_ifs"
2136       ;;
2137     esac
2138 else
2139   enable_fast_install=yes
2140 fi;
2141
2142 DEPDIR="${am__leading_dot}deps"
2143
2144           ac_config_commands="$ac_config_commands depfiles"
2145
2146
2147 am_make=${MAKE-make}
2148 cat > confinc << 'END'
2149 am__doit:
2150         @echo done
2151 .PHONY: am__doit
2152 END
2153 # If we don't find an include directive, just comment out the code.
2154 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2155 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2156 am__include="#"
2157 am__quote=
2158 _am_result=none
2159 # First try GNU make style include.
2160 echo "include confinc" > confmf
2161 # We grep out `Entering directory' and `Leaving directory'
2162 # messages which can occur if `w' ends up in MAKEFLAGS.
2163 # In particular we don't look at `^make:' because GNU make might
2164 # be invoked under some other name (usually "gmake"), in which
2165 # case it prints its new name instead of `make'.
2166 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2167    am__include=include
2168    am__quote=
2169    _am_result=GNU
2170 fi
2171 # Now try BSD make style include.
2172 if test "$am__include" = "#"; then
2173    echo '.include "confinc"' > confmf
2174    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2175       am__include=.include
2176       am__quote="\""
2177       _am_result=BSD
2178    fi
2179 fi
2180
2181
2182 echo "$as_me:$LINENO: result: $_am_result" >&5
2183 echo "${ECHO_T}$_am_result" >&6
2184 rm -f confinc confmf
2185
2186 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2187 if test "${enable_dependency_tracking+set}" = set; then
2188   enableval="$enable_dependency_tracking"
2189
2190 fi;
2191 if test "x$enable_dependency_tracking" != xno; then
2192   am_depcomp="$ac_aux_dir/depcomp"
2193   AMDEPBACKSLASH='\'
2194 fi
2195
2196
2197 if test "x$enable_dependency_tracking" != xno; then
2198   AMDEP_TRUE=
2199   AMDEP_FALSE='#'
2200 else
2201   AMDEP_TRUE='#'
2202   AMDEP_FALSE=
2203 fi
2204
2205
2206
2207 ac_ext=c
2208 ac_cpp='$CPP $CPPFLAGS'
2209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212 if test -n "$ac_tool_prefix"; then
2213   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2214 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2215 echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2217 if test "${ac_cv_prog_CC+set}" = set; then
2218   echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220   if test -n "$CC"; then
2221   ac_cv_prog_CC="$CC" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2225 do
2226   IFS=$as_save_IFS
2227   test -z "$as_dir" && as_dir=.
2228   for ac_exec_ext in '' $ac_executable_extensions; do
2229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2230     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232     break 2
2233   fi
2234 done
2235 done
2236
2237 fi
2238 fi
2239 CC=$ac_cv_prog_CC
2240 if test -n "$CC"; then
2241   echo "$as_me:$LINENO: result: $CC" >&5
2242 echo "${ECHO_T}$CC" >&6
2243 else
2244   echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6
2246 fi
2247
2248 fi
2249 if test -z "$ac_cv_prog_CC"; then
2250   ac_ct_CC=$CC
2251   # Extract the first word of "gcc", so it can be a program name with args.
2252 set dummy gcc; ac_word=$2
2253 echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2256   echo $ECHO_N "(cached) $ECHO_C" >&6
2257 else
2258   if test -n "$ac_ct_CC"; then
2259   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2260 else
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2263 do
2264   IFS=$as_save_IFS
2265   test -z "$as_dir" && as_dir=.
2266   for ac_exec_ext in '' $ac_executable_extensions; do
2267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2268     ac_cv_prog_ac_ct_CC="gcc"
2269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270     break 2
2271   fi
2272 done
2273 done
2274
2275 fi
2276 fi
2277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2278 if test -n "$ac_ct_CC"; then
2279   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2280 echo "${ECHO_T}$ac_ct_CC" >&6
2281 else
2282   echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6
2284 fi
2285
2286   CC=$ac_ct_CC
2287 else
2288   CC="$ac_cv_prog_CC"
2289 fi
2290
2291 if test -z "$CC"; then
2292   if test -n "$ac_tool_prefix"; then
2293   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2294 set dummy ${ac_tool_prefix}cc; ac_word=$2
2295 echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   if test -n "$CC"; then
2301   ac_cv_prog_CC="$CC" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2310     ac_cv_prog_CC="${ac_tool_prefix}cc"
2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316
2317 fi
2318 fi
2319 CC=$ac_cv_prog_CC
2320 if test -n "$CC"; then
2321   echo "$as_me:$LINENO: result: $CC" >&5
2322 echo "${ECHO_T}$CC" >&6
2323 else
2324   echo "$as_me:$LINENO: result: no" >&5
2325 echo "${ECHO_T}no" >&6
2326 fi
2327
2328 fi
2329 if test -z "$ac_cv_prog_CC"; then
2330   ac_ct_CC=$CC
2331   # Extract the first word of "cc", so it can be a program name with args.
2332 set dummy cc; ac_word=$2
2333 echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2335 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   if test -n "$ac_ct_CC"; then
2339   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344   IFS=$as_save_IFS
2345   test -z "$as_dir" && as_dir=.
2346   for ac_exec_ext in '' $ac_executable_extensions; do
2347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2348     ac_cv_prog_ac_ct_CC="cc"
2349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350     break 2
2351   fi
2352 done
2353 done
2354
2355 fi
2356 fi
2357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2358 if test -n "$ac_ct_CC"; then
2359   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2360 echo "${ECHO_T}$ac_ct_CC" >&6
2361 else
2362   echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6
2364 fi
2365
2366   CC=$ac_ct_CC
2367 else
2368   CC="$ac_cv_prog_CC"
2369 fi
2370
2371 fi
2372 if test -z "$CC"; then
2373   # Extract the first word of "cc", so it can be a program name with args.
2374 set dummy cc; ac_word=$2
2375 echo "$as_me:$LINENO: checking for $ac_word" >&5
2376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2377 if test "${ac_cv_prog_CC+set}" = set; then
2378   echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380   if test -n "$CC"; then
2381   ac_cv_prog_CC="$CC" # Let the user override the test.
2382 else
2383   ac_prog_rejected=no
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2386 do
2387   IFS=$as_save_IFS
2388   test -z "$as_dir" && as_dir=.
2389   for ac_exec_ext in '' $ac_executable_extensions; do
2390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2391     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2392        ac_prog_rejected=yes
2393        continue
2394      fi
2395     ac_cv_prog_CC="cc"
2396     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397     break 2
2398   fi
2399 done
2400 done
2401
2402 if test $ac_prog_rejected = yes; then
2403   # We found a bogon in the path, so make sure we never use it.
2404   set dummy $ac_cv_prog_CC
2405   shift
2406   if test $# != 0; then
2407     # We chose a different compiler from the bogus one.
2408     # However, it has the same basename, so the bogon will be chosen
2409     # first if we set CC to just the basename; use the full file name.
2410     shift
2411     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2412   fi
2413 fi
2414 fi
2415 fi
2416 CC=$ac_cv_prog_CC
2417 if test -n "$CC"; then
2418   echo "$as_me:$LINENO: result: $CC" >&5
2419 echo "${ECHO_T}$CC" >&6
2420 else
2421   echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425 fi
2426 if test -z "$CC"; then
2427   if test -n "$ac_tool_prefix"; then
2428   for ac_prog in cl
2429   do
2430     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435   echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437   if test -n "$CC"; then
2438   ac_cv_prog_CC="$CC" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443   IFS=$as_save_IFS
2444   test -z "$as_dir" && as_dir=.
2445   for ac_exec_ext in '' $ac_executable_extensions; do
2446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449     break 2
2450   fi
2451 done
2452 done
2453
2454 fi
2455 fi
2456 CC=$ac_cv_prog_CC
2457 if test -n "$CC"; then
2458   echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6
2460 else
2461   echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2463 fi
2464
2465     test -n "$CC" && break
2466   done
2467 fi
2468 if test -z "$CC"; then
2469   ac_ct_CC=$CC
2470   for ac_prog in cl
2471 do
2472   # Extract the first word of "$ac_prog", so it can be a program name with args.
2473 set dummy $ac_prog; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   if test -n "$ac_ct_CC"; then
2480   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487   for ac_exec_ext in '' $ac_executable_extensions; do
2488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489     ac_cv_prog_ac_ct_CC="$ac_prog"
2490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491     break 2
2492   fi
2493 done
2494 done
2495
2496 fi
2497 fi
2498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2499 if test -n "$ac_ct_CC"; then
2500   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2501 echo "${ECHO_T}$ac_ct_CC" >&6
2502 else
2503   echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2505 fi
2506
2507   test -n "$ac_ct_CC" && break
2508 done
2509
2510   CC=$ac_ct_CC
2511 fi
2512
2513 fi
2514
2515
2516 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2517 See \`config.log' for more details." >&5
2518 echo "$as_me: error: no acceptable C compiler found in \$PATH
2519 See \`config.log' for more details." >&2;}
2520    { (exit 1); exit 1; }; }
2521
2522 # Provide some information about the compiler.
2523 echo "$as_me:$LINENO:" \
2524      "checking for C compiler version" >&5
2525 ac_compiler=`set X $ac_compile; echo $2`
2526 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2527   (eval $ac_compiler --version </dev/null >&5) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2532   (eval $ac_compiler -v </dev/null >&5) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }
2536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2537   (eval $ac_compiler -V </dev/null >&5) 2>&5
2538   ac_status=$?
2539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }
2541
2542 cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 ac_clean_files_save=$ac_clean_files
2558 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2559 # Try to create an executable without -o first, disregard a.out.
2560 # It will help us diagnose broken compilers, and finding out an intuition
2561 # of exeext.
2562 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2563 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2564 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2565 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2566   (eval $ac_link_default) 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; then
2570   # Find the output, starting from the most likely.  This scheme is
2571 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2572 # resort.
2573
2574 # Be careful to initialize this variable, since it used to be cached.
2575 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2576 ac_cv_exeext=
2577 # b.out is created by i960 compilers.
2578 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2579 do
2580   test -f "$ac_file" || continue
2581   case $ac_file in
2582     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2583         ;;
2584     conftest.$ac_ext )
2585         # This is the source file.
2586         ;;
2587     [ab].out )
2588         # We found the default executable, but exeext='' is most
2589         # certainly right.
2590         break;;
2591     *.* )
2592         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2593         # FIXME: I believe we export ac_cv_exeext for Libtool,
2594         # but it would be cool to find out if it's true.  Does anybody
2595         # maintain Libtool? --akim.
2596         export ac_cv_exeext
2597         break;;
2598     * )
2599         break;;
2600   esac
2601 done
2602 else
2603   echo "$as_me: failed program was:" >&5
2604 sed 's/^/| /' conftest.$ac_ext >&5
2605
2606 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: C compiler cannot create executables
2609 See \`config.log' for more details." >&2;}
2610    { (exit 77); exit 77; }; }
2611 fi
2612
2613 ac_exeext=$ac_cv_exeext
2614 echo "$as_me:$LINENO: result: $ac_file" >&5
2615 echo "${ECHO_T}$ac_file" >&6
2616
2617 # Check the compiler produces executables we can run.  If not, either
2618 # the compiler is broken, or we cross compile.
2619 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2620 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2621 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2622 # If not cross compiling, check that we can run a simple program.
2623 if test "$cross_compiling" != yes; then
2624   if { ac_try='./$ac_file'
2625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626   (eval $ac_try) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); }; }; then
2630     cross_compiling=no
2631   else
2632     if test "$cross_compiling" = maybe; then
2633         cross_compiling=yes
2634     else
2635         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2636 If you meant to cross compile, use \`--host'.
2637 See \`config.log' for more details." >&5
2638 echo "$as_me: error: cannot run C compiled programs.
2639 If you meant to cross compile, use \`--host'.
2640 See \`config.log' for more details." >&2;}
2641    { (exit 1); exit 1; }; }
2642     fi
2643   fi
2644 fi
2645 echo "$as_me:$LINENO: result: yes" >&5
2646 echo "${ECHO_T}yes" >&6
2647
2648 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2649 ac_clean_files=$ac_clean_files_save
2650 # Check the compiler produces executables we can run.  If not, either
2651 # the compiler is broken, or we cross compile.
2652 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2653 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2654 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2655 echo "${ECHO_T}$cross_compiling" >&6
2656
2657 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2658 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2660   (eval $ac_link) 2>&5
2661   ac_status=$?
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); }; then
2664   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2665 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2666 # work properly (i.e., refer to `conftest.exe'), while it won't with
2667 # `rm'.
2668 for ac_file in conftest.exe conftest conftest.*; do
2669   test -f "$ac_file" || continue
2670   case $ac_file in
2671     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2672     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2673           export ac_cv_exeext
2674           break;;
2675     * ) break;;
2676   esac
2677 done
2678 else
2679   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2680 See \`config.log' for more details." >&5
2681 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2682 See \`config.log' for more details." >&2;}
2683    { (exit 1); exit 1; }; }
2684 fi
2685
2686 rm -f conftest$ac_cv_exeext
2687 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2688 echo "${ECHO_T}$ac_cv_exeext" >&6
2689
2690 rm -f conftest.$ac_ext
2691 EXEEXT=$ac_cv_exeext
2692 ac_exeext=$EXEEXT
2693 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2694 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2695 if test "${ac_cv_objext+set}" = set; then
2696   echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698   cat >conftest.$ac_ext <<_ACEOF
2699 /* confdefs.h.  */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h.  */
2704
2705 int
2706 main ()
2707 {
2708
2709   ;
2710   return 0;
2711 }
2712 _ACEOF
2713 rm -f conftest.o conftest.obj
2714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2715   (eval $ac_compile) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); }; then
2719   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2720   case $ac_file in
2721     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2722     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2723        break;;
2724   esac
2725 done
2726 else
2727   echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2731 See \`config.log' for more details." >&5
2732 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2733 See \`config.log' for more details." >&2;}
2734    { (exit 1); exit 1; }; }
2735 fi
2736
2737 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2738 fi
2739 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2740 echo "${ECHO_T}$ac_cv_objext" >&6
2741 OBJEXT=$ac_cv_objext
2742 ac_objext=$OBJEXT
2743 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2744 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2745 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2746   echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748   cat >conftest.$ac_ext <<_ACEOF
2749 /* confdefs.h.  */
2750 _ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h.  */
2754
2755 int
2756 main ()
2757 {
2758 #ifndef __GNUC__
2759        choke me
2760 #endif
2761
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768   (eval $ac_compile) 2>conftest.er1
2769   ac_status=$?
2770   grep -v '^ *+' conftest.er1 >conftest.err
2771   rm -f conftest.er1
2772   cat conftest.err >&5
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); } &&
2775          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777   (eval $ac_try) 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; } &&
2781          { ac_try='test -s conftest.$ac_objext'
2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783   (eval $ac_try) 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; }; then
2787   ac_compiler_gnu=yes
2788 else
2789   echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792 ac_compiler_gnu=no
2793 fi
2794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2796
2797 fi
2798 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2799 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2800 GCC=`test $ac_compiler_gnu = yes && echo yes`
2801 ac_test_CFLAGS=${CFLAGS+set}
2802 ac_save_CFLAGS=$CFLAGS
2803 CFLAGS="-g"
2804 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2805 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2806 if test "${ac_cv_prog_cc_g+set}" = set; then
2807   echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809   cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h.  */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h.  */
2815
2816 int
2817 main ()
2818 {
2819
2820   ;
2821   return 0;
2822 }
2823 _ACEOF
2824 rm -f conftest.$ac_objext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2826   (eval $ac_compile) 2>conftest.er1
2827   ac_status=$?
2828   grep -v '^ *+' conftest.er1 >conftest.err
2829   rm -f conftest.er1
2830   cat conftest.err >&5
2831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832   (exit $ac_status); } &&
2833          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835   (eval $ac_try) 2>&5
2836   ac_status=$?
2837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838   (exit $ac_status); }; } &&
2839          { ac_try='test -s conftest.$ac_objext'
2840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841   (eval $ac_try) 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); }; }; then
2845   ac_cv_prog_cc_g=yes
2846 else
2847   echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850 ac_cv_prog_cc_g=no
2851 fi
2852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2853 fi
2854 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2855 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2856 if test "$ac_test_CFLAGS" = set; then
2857   CFLAGS=$ac_save_CFLAGS
2858 elif test $ac_cv_prog_cc_g = yes; then
2859   if test "$GCC" = yes; then
2860     CFLAGS="-g -O2"
2861   else
2862     CFLAGS="-g"
2863   fi
2864 else
2865   if test "$GCC" = yes; then
2866     CFLAGS="-O2"
2867   else
2868     CFLAGS=
2869   fi
2870 fi
2871 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2872 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2873 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2874   echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876   ac_cv_prog_cc_stdc=no
2877 ac_save_CC=$CC
2878 cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h.  */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h.  */
2884 #include <stdarg.h>
2885 #include <stdio.h>
2886 #include <sys/types.h>
2887 #include <sys/stat.h>
2888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2889 struct buf { int x; };
2890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2891 static char *e (p, i)
2892      char **p;
2893      int i;
2894 {
2895   return p[i];
2896 }
2897 static char *f (char * (*g) (char **, int), char **p, ...)
2898 {
2899   char *s;
2900   va_list v;
2901   va_start (v,p);
2902   s = g (p, va_arg (v,int));
2903   va_end (v);
2904   return s;
2905 }
2906
2907 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2908    function prototypes and stuff, but not '\xHH' hex character constants.
2909    These don't provoke an error unfortunately, instead are silently treated
2910    as 'x'.  The following induces an error, until -std1 is added to get
2911    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2912    array size at least.  It's necessary to write '\x00'==0 to get something
2913    that's true only with -std1.  */
2914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2915
2916 int test (int i, double x);
2917 struct s1 {int (*f) (int a);};
2918 struct s2 {int (*f) (double a);};
2919 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2920 int argc;
2921 char **argv;
2922 int
2923 main ()
2924 {
2925 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 # Don't try gcc -ansi; that turns off useful extensions and
2931 # breaks some systems' header files.
2932 # AIX                   -qlanglvl=ansi
2933 # Ultrix and OSF/1      -std1
2934 # HP-UX 10.20 and later -Ae
2935 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2936 # SVR4                  -Xc -D__EXTENSIONS__
2937 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2938 do
2939   CC="$ac_save_CC $ac_arg"
2940   rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942   (eval $ac_compile) 2>conftest.er1
2943   ac_status=$?
2944   grep -v '^ *+' conftest.er1 >conftest.err
2945   rm -f conftest.er1
2946   cat conftest.err >&5
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); } &&
2949          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951   (eval $ac_try) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }; } &&
2955          { ac_try='test -s conftest.$ac_objext'
2956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957   (eval $ac_try) 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }; }; then
2961   ac_cv_prog_cc_stdc=$ac_arg
2962 break
2963 else
2964   echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2966
2967 fi
2968 rm -f conftest.err conftest.$ac_objext
2969 done
2970 rm -f conftest.$ac_ext conftest.$ac_objext
2971 CC=$ac_save_CC
2972
2973 fi
2974
2975 case "x$ac_cv_prog_cc_stdc" in
2976   x|xno)
2977     echo "$as_me:$LINENO: result: none needed" >&5
2978 echo "${ECHO_T}none needed" >&6 ;;
2979   *)
2980     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2981 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2982     CC="$CC $ac_cv_prog_cc_stdc" ;;
2983 esac
2984
2985 # Some people use a C++ compiler to compile C.  Since we use `exit',
2986 # in C++ we need to declare it.  In case someone uses the same compiler
2987 # for both compiling C and C++ we need to have the C++ compiler decide
2988 # the declaration of exit, since it's the most demanding environment.
2989 cat >conftest.$ac_ext <<_ACEOF
2990 #ifndef __cplusplus
2991   choke me
2992 #endif
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2996   (eval $ac_compile) 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } &&
3003          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005   (eval $ac_try) 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); }; } &&
3009          { ac_try='test -s conftest.$ac_objext'
3010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011   (eval $ac_try) 2>&5
3012   ac_status=$?
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); }; }; then
3015   for ac_declaration in \
3016    '' \
3017    'extern "C" void std::exit (int) throw (); using std::exit;' \
3018    'extern "C" void std::exit (int); using std::exit;' \
3019    'extern "C" void exit (int) throw ();' \
3020    'extern "C" void exit (int);' \
3021    'void exit (int);'
3022 do
3023   cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029 $ac_declaration
3030 #include <stdlib.h>
3031 int
3032 main ()
3033 {
3034 exit (42);
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041   (eval $ac_compile) 2>conftest.er1
3042   ac_status=$?
3043   grep -v '^ *+' conftest.er1 >conftest.err
3044   rm -f conftest.er1
3045   cat conftest.err >&5
3046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); } &&
3048          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050   (eval $ac_try) 2>&5
3051   ac_status=$?
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); }; } &&
3054          { ac_try='test -s conftest.$ac_objext'
3055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056   (eval $ac_try) 2>&5
3057   ac_status=$?
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); }; }; then
3060   :
3061 else
3062   echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065 continue
3066 fi
3067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068   cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h.  */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h.  */
3074 $ac_declaration
3075 int
3076 main ()
3077 {
3078 exit (42);
3079   ;
3080   return 0;
3081 }
3082 _ACEOF
3083 rm -f conftest.$ac_objext
3084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3085   (eval $ac_compile) 2>conftest.er1
3086   ac_status=$?
3087   grep -v '^ *+' conftest.er1 >conftest.err
3088   rm -f conftest.er1
3089   cat conftest.err >&5
3090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091   (exit $ac_status); } &&
3092          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3094   (eval $ac_try) 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); }; } &&
3098          { ac_try='test -s conftest.$ac_objext'
3099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100   (eval $ac_try) 2>&5
3101   ac_status=$?
3102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103   (exit $ac_status); }; }; then
3104   break
3105 else
3106   echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 fi
3110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3111 done
3112 rm -f conftest*
3113 if test -n "$ac_declaration"; then
3114   echo '#ifdef __cplusplus' >>confdefs.h
3115   echo $ac_declaration      >>confdefs.h
3116   echo '#endif'             >>confdefs.h
3117 fi
3118
3119 else
3120   echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3122
3123 fi
3124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3125 ac_ext=c
3126 ac_cpp='$CPP $CPPFLAGS'
3127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130
3131 depcc="$CC"   am_compiler_list=
3132
3133 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3134 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3135 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3139   # We make a subdir and do the tests there.  Otherwise we can end up
3140   # making bogus files that we don't know about and never remove.  For
3141   # instance it was reported that on HP-UX the gcc test will end up
3142   # making a dummy file named `D' -- because `-MD' means `put the output
3143   # in D'.
3144   mkdir conftest.dir
3145   # Copy depcomp to subdir because otherwise we won't find it if we're
3146   # using a relative directory.
3147   cp "$am_depcomp" conftest.dir
3148   cd conftest.dir
3149   # We will build objects and dependencies in a subdirectory because
3150   # it helps to detect inapplicable dependency modes.  For instance
3151   # both Tru64's cc and ICC support -MD to output dependencies as a
3152   # side effect of compilation, but ICC will put the dependencies in
3153   # the current directory while Tru64 will put them in the object
3154   # directory.
3155   mkdir sub
3156
3157   am_cv_CC_dependencies_compiler_type=none
3158   if test "$am_compiler_list" = ""; then
3159      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3160   fi
3161   for depmode in $am_compiler_list; do
3162     # Setup a source with many dependencies, because some compilers
3163     # like to wrap large dependency lists on column 80 (with \), and
3164     # we should not choose a depcomp mode which is confused by this.
3165     #
3166     # We need to recreate these files for each test, as the compiler may
3167     # overwrite some of them when testing with obscure command lines.
3168     # This happens at least with the AIX C compiler.
3169     : > sub/conftest.c
3170     for i in 1 2 3 4 5 6; do
3171       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3172       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3173       # Solaris 8's {/usr,}/bin/sh.
3174       touch sub/conftst$i.h
3175     done
3176     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3177
3178     case $depmode in
3179     nosideeffect)
3180       # after this tag, mechanisms are not by side-effect, so they'll
3181       # only be used when explicitly requested
3182       if test "x$enable_dependency_tracking" = xyes; then
3183         continue
3184       else
3185         break
3186       fi
3187       ;;
3188     none) break ;;
3189     esac
3190     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3191     # mode.  It turns out that the SunPro C++ compiler does not properly
3192     # handle `-M -o', and we need to detect this.
3193     if depmode=$depmode \
3194        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3195        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3196        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3197          >/dev/null 2>conftest.err &&
3198        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3199        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3200        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3201       # icc doesn't choke on unknown options, it will just issue warnings
3202       # or remarks (even with -Werror).  So we grep stderr for any message
3203       # that says an option was ignored or not supported.
3204       # When given -MP, icc 7.0 and 7.1 complain thusly:
3205       #   icc: Command line warning: ignoring option '-M'; no argument required
3206       # The diagnosis changed in icc 8.0:
3207       #   icc: Command line remark: option '-MP' not supported
3208       if (grep 'ignoring option' conftest.err ||
3209           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3210         am_cv_CC_dependencies_compiler_type=$depmode
3211         break
3212       fi
3213     fi
3214   done
3215
3216   cd ..
3217   rm -rf conftest.dir
3218 else
3219   am_cv_CC_dependencies_compiler_type=none
3220 fi
3221
3222 fi
3223 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3224 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3225 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3226
3227
3228
3229 if
3230   test "x$enable_dependency_tracking" != xno \
3231   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3232   am__fastdepCC_TRUE=
3233   am__fastdepCC_FALSE='#'
3234 else
3235   am__fastdepCC_TRUE='#'
3236   am__fastdepCC_FALSE=
3237 fi
3238
3239
3240 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3241 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3242 if test "${lt_cv_path_SED+set}" = set; then
3243   echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245   # Loop through the user's path and test for sed and gsed.
3246 # Then use that list of sed's as ones to test for truncation.
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252   for lt_ac_prog in sed gsed; do
3253     for ac_exec_ext in '' $ac_executable_extensions; do
3254       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3255         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3256       fi
3257     done
3258   done
3259 done
3260 lt_ac_max=0
3261 lt_ac_count=0
3262 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3263 # along with /bin/sed that truncates output.
3264 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3265   test ! -f $lt_ac_sed && continue
3266   cat /dev/null > conftest.in
3267   lt_ac_count=0
3268   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3269   # Check for GNU sed and select it if it is found.
3270   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3271     lt_cv_path_SED=$lt_ac_sed
3272     break
3273   fi
3274   while true; do
3275     cat conftest.in conftest.in >conftest.tmp
3276     mv conftest.tmp conftest.in
3277     cp conftest.in conftest.nl
3278     echo >>conftest.nl
3279     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3280     cmp -s conftest.out conftest.nl || break
3281     # 10000 chars as input seems more than enough
3282     test $lt_ac_count -gt 10 && break
3283     lt_ac_count=`expr $lt_ac_count + 1`
3284     if test $lt_ac_count -gt $lt_ac_max; then
3285       lt_ac_max=$lt_ac_count
3286       lt_cv_path_SED=$lt_ac_sed
3287     fi
3288   done
3289 done
3290
3291 fi
3292
3293 SED=$lt_cv_path_SED
3294 echo "$as_me:$LINENO: result: $SED" >&5
3295 echo "${ECHO_T}$SED" >&6
3296
3297 echo "$as_me:$LINENO: checking for egrep" >&5
3298 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3299 if test "${ac_cv_prog_egrep+set}" = set; then
3300   echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3303     then ac_cv_prog_egrep='grep -E'
3304     else ac_cv_prog_egrep='egrep'
3305     fi
3306 fi
3307 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3308 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3309  EGREP=$ac_cv_prog_egrep
3310
3311
3312
3313 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3314 if test "${with_gnu_ld+set}" = set; then
3315   withval="$with_gnu_ld"
3316   test "$withval" = no || with_gnu_ld=yes
3317 else
3318   with_gnu_ld=no
3319 fi;
3320 ac_prog=ld
3321 if test "$GCC" = yes; then
3322   # Check if gcc -print-prog-name=ld gives a path.
3323   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3324 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3325   case $host in
3326   *-*-mingw*)
3327     # gcc leaves a trailing carriage return which upsets mingw
3328     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3329   *)
3330     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3331   esac
3332   case $ac_prog in
3333     # Accept absolute paths.
3334     [\\/]* | ?:[\\/]*)
3335       re_direlt='/[^/][^/]*/\.\./'
3336       # Canonicalize the pathname of ld
3337       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3338       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3339         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3340       done
3341       test -z "$LD" && LD="$ac_prog"
3342       ;;
3343   "")
3344     # If it fails, then pretend we aren't using GCC.
3345     ac_prog=ld
3346     ;;
3347   *)
3348     # If it is relative, then search for the first ld in PATH.
3349     with_gnu_ld=unknown
3350     ;;
3351   esac
3352 elif test "$with_gnu_ld" = yes; then
3353   echo "$as_me:$LINENO: checking for GNU ld" >&5
3354 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3355 else
3356   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3357 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3358 fi
3359 if test "${lt_cv_path_LD+set}" = set; then
3360   echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362   if test -z "$LD"; then
3363   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3364   for ac_dir in $PATH; do
3365     IFS="$lt_save_ifs"
3366     test -z "$ac_dir" && ac_dir=.
3367     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3368       lt_cv_path_LD="$ac_dir/$ac_prog"
3369       # Check to see if the program is GNU ld.  I'd rather use --version,
3370       # but apparently some variants of GNU ld only accept -v.
3371       # Break only if it was the GNU/non-GNU ld that we prefer.
3372       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3373       *GNU* | *'with BFD'*)
3374         test "$with_gnu_ld" != no && break
3375         ;;
3376       *)
3377         test "$with_gnu_ld" != yes && break
3378         ;;
3379       esac
3380     fi
3381   done
3382   IFS="$lt_save_ifs"
3383 else
3384   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3385 fi
3386 fi
3387
3388 LD="$lt_cv_path_LD"
3389 if test -n "$LD"; then
3390   echo "$as_me:$LINENO: result: $LD" >&5
3391 echo "${ECHO_T}$LD" >&6
3392 else
3393   echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6
3395 fi
3396 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3397 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3398    { (exit 1); exit 1; }; }
3399 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3400 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3401 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3405 case `$LD -v 2>&1 </dev/null` in
3406 *GNU* | *'with BFD'*)
3407   lt_cv_prog_gnu_ld=yes
3408   ;;
3409 *)
3410   lt_cv_prog_gnu_ld=no
3411   ;;
3412 esac
3413 fi
3414 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3415 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3416 with_gnu_ld=$lt_cv_prog_gnu_ld
3417
3418
3419 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3420 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3421 if test "${lt_cv_ld_reload_flag+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   lt_cv_ld_reload_flag='-r'
3425 fi
3426 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3427 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3428 reload_flag=$lt_cv_ld_reload_flag
3429 case $reload_flag in
3430 "" | " "*) ;;
3431 *) reload_flag=" $reload_flag" ;;
3432 esac
3433 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3434 case $host_os in
3435   darwin*)
3436     if test "$GCC" = yes; then
3437       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3438     else
3439       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3440     fi
3441     ;;
3442 esac
3443
3444 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3445 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3446 if test "${lt_cv_path_NM+set}" = set; then
3447   echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449   if test -n "$NM"; then
3450   # Let the user override the test.
3451   lt_cv_path_NM="$NM"
3452 else
3453   lt_nm_to_check="${ac_tool_prefix}nm"
3454   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3455     lt_nm_to_check="$lt_nm_to_check nm"
3456   fi
3457   for lt_tmp_nm in $lt_nm_to_check; do
3458     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3459     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3460       IFS="$lt_save_ifs"
3461       test -z "$ac_dir" && ac_dir=.
3462       tmp_nm="$ac_dir/$lt_tmp_nm"
3463       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3464         # Check to see if the nm accepts a BSD-compat flag.
3465         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3466         #   nm: unknown option "B" ignored
3467         # Tru64's nm complains that /dev/null is an invalid object file
3468         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3469         */dev/null* | *'Invalid file or object type'*)
3470           lt_cv_path_NM="$tmp_nm -B"
3471           break
3472           ;;
3473         *)
3474           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3475           */dev/null*)
3476             lt_cv_path_NM="$tmp_nm -p"
3477             break
3478             ;;
3479           *)
3480             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3481             continue # so that we can try to find one that supports BSD flags
3482             ;;
3483           esac
3484           ;;
3485         esac
3486       fi
3487     done
3488     IFS="$lt_save_ifs"
3489   done
3490   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3491 fi
3492 fi
3493 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3494 echo "${ECHO_T}$lt_cv_path_NM" >&6
3495 NM="$lt_cv_path_NM"
3496
3497 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3498 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3499 LN_S=$as_ln_s
3500 if test "$LN_S" = "ln -s"; then
3501   echo "$as_me:$LINENO: result: yes" >&5
3502 echo "${ECHO_T}yes" >&6
3503 else
3504   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3505 echo "${ECHO_T}no, using $LN_S" >&6
3506 fi
3507
3508 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3509 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3510 if test "${lt_cv_deplibs_check_method+set}" = set; then
3511   echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513   lt_cv_file_magic_cmd='$MAGIC_CMD'
3514 lt_cv_file_magic_test_file=
3515 lt_cv_deplibs_check_method='unknown'
3516 # Need to set the preceding variable on all platforms that support
3517 # interlibrary dependencies.
3518 # 'none' -- dependencies not supported.
3519 # `unknown' -- same as none, but documents that we really don't know.
3520 # 'pass_all' -- all dependencies passed with no checks.
3521 # 'test_compile' -- check by making test program.
3522 # 'file_magic [[regex]]' -- check by looking for files in library path
3523 # which responds to the $file_magic_cmd with a given extended regex.
3524 # If you have `file' or equivalent on your system and you're not sure
3525 # whether `pass_all' will *always* work, you probably want this one.
3526
3527 case $host_os in
3528 aix4* | aix5*)
3529   lt_cv_deplibs_check_method=pass_all
3530   ;;
3531
3532 beos*)
3533   lt_cv_deplibs_check_method=pass_all
3534   ;;
3535
3536 bsdi[45]*)
3537   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3538   lt_cv_file_magic_cmd='/usr/bin/file -L'
3539   lt_cv_file_magic_test_file=/shlib/libc.so
3540   ;;
3541
3542 cygwin*)
3543   # func_win32_libid is a shell function defined in ltmain.sh
3544   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3545   lt_cv_file_magic_cmd='func_win32_libid'
3546   ;;
3547
3548 mingw* | pw32*)
3549   # Base MSYS/MinGW do not provide the 'file' command needed by
3550   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3551   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3552   lt_cv_file_magic_cmd='$OBJDUMP -f'
3553   ;;
3554
3555 darwin* | rhapsody*)
3556   lt_cv_deplibs_check_method=pass_all
3557   ;;
3558
3559 freebsd* | kfreebsd*-gnu | dragonfly*)
3560   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3561     case $host_cpu in
3562     i*86 )
3563       # Not sure whether the presence of OpenBSD here was a mistake.
3564       # Let's accept both of them until this is cleared up.
3565       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3566       lt_cv_file_magic_cmd=/usr/bin/file
3567       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3568       ;;
3569     esac
3570   else
3571     lt_cv_deplibs_check_method=pass_all
3572   fi
3573   ;;
3574
3575 gnu*)
3576   lt_cv_deplibs_check_method=pass_all
3577   ;;
3578
3579 hpux10.20* | hpux11*)
3580   lt_cv_file_magic_cmd=/usr/bin/file
3581   case $host_cpu in
3582   ia64*)
3583     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3584     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3585     ;;
3586   hppa*64*)
3587     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]'
3588     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3589     ;;
3590   *)
3591     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3592     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3593     ;;
3594   esac
3595   ;;
3596
3597 interix3*)
3598   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3599   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3600   ;;
3601
3602 irix5* | irix6* | nonstopux*)
3603   case $LD in
3604   *-32|*"-32 ") libmagic=32-bit;;
3605   *-n32|*"-n32 ") libmagic=N32;;
3606   *-64|*"-64 ") libmagic=64-bit;;
3607   *) libmagic=never-match;;
3608   esac
3609   lt_cv_deplibs_check_method=pass_all
3610   ;;
3611
3612 # This must be Linux ELF.
3613 linux*)
3614   lt_cv_deplibs_check_method=pass_all
3615   ;;
3616
3617 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3618   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3619     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3620   else
3621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3622   fi
3623   ;;
3624
3625 newos6*)
3626   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3627   lt_cv_file_magic_cmd=/usr/bin/file
3628   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3629   ;;
3630
3631 nto-qnx*)
3632   lt_cv_deplibs_check_method=unknown
3633   ;;
3634
3635 openbsd*)
3636   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3637     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3638   else
3639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3640   fi
3641   ;;
3642
3643 osf3* | osf4* | osf5*)
3644   lt_cv_deplibs_check_method=pass_all
3645   ;;
3646
3647 solaris*)
3648   lt_cv_deplibs_check_method=pass_all
3649   ;;
3650
3651 sysv4 | sysv4.3*)
3652   case $host_vendor in
3653   motorola)
3654     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]'
3655     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3656     ;;
3657   ncr)
3658     lt_cv_deplibs_check_method=pass_all
3659     ;;
3660   sequent)
3661     lt_cv_file_magic_cmd='/bin/file'
3662     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3663     ;;
3664   sni)
3665     lt_cv_file_magic_cmd='/bin/file'
3666     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3667     lt_cv_file_magic_test_file=/lib/libc.so
3668     ;;
3669   siemens)
3670     lt_cv_deplibs_check_method=pass_all
3671     ;;
3672   pc)
3673     lt_cv_deplibs_check_method=pass_all
3674     ;;
3675   esac
3676   ;;
3677
3678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3679   lt_cv_deplibs_check_method=pass_all
3680   ;;
3681 esac
3682
3683 fi
3684 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3685 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3686 file_magic_cmd=$lt_cv_file_magic_cmd
3687 deplibs_check_method=$lt_cv_deplibs_check_method
3688 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3689
3690
3691
3692
3693 # If no C compiler was specified, use CC.
3694 LTCC=${LTCC-"$CC"}
3695
3696 # If no C compiler flags were specified, use CFLAGS.
3697 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3698
3699 # Allow CC to be a program name with arguments.
3700 compiler=$CC
3701
3702
3703 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3704 if test "${enable_libtool_lock+set}" = set; then
3705   enableval="$enable_libtool_lock"
3706
3707 fi;
3708 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3709
3710 # Some flags need to be propagated to the compiler or linker for good
3711 # libtool support.
3712 case $host in
3713 ia64-*-hpux*)
3714   # Find out which ABI we are using.
3715   echo 'int i;' > conftest.$ac_ext
3716   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717   (eval $ac_compile) 2>&5
3718   ac_status=$?
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); }; then
3721     case `/usr/bin/file conftest.$ac_objext` in
3722     *ELF-32*)
3723       HPUX_IA64_MODE="32"
3724       ;;
3725     *ELF-64*)
3726       HPUX_IA64_MODE="64"
3727       ;;
3728     esac
3729   fi
3730   rm -rf conftest*
3731   ;;
3732 *-*-irix6*)
3733   # Find out which ABI we are using.
3734   echo '#line 3734 "configure"' > conftest.$ac_ext
3735   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3736   (eval $ac_compile) 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); }; then
3740    if test "$lt_cv_prog_gnu_ld" = yes; then
3741     case `/usr/bin/file conftest.$ac_objext` in
3742     *32-bit*)
3743       LD="${LD-ld} -melf32bsmip"
3744       ;;
3745     *N32*)
3746       LD="${LD-ld} -melf32bmipn32"
3747       ;;
3748     *64-bit*)
3749       LD="${LD-ld} -melf64bmip"
3750       ;;
3751     esac
3752    else
3753     case `/usr/bin/file conftest.$ac_objext` in
3754     *32-bit*)
3755       LD="${LD-ld} -32"
3756       ;;
3757     *N32*)
3758       LD="${LD-ld} -n32"
3759       ;;
3760     *64-bit*)
3761       LD="${LD-ld} -64"
3762       ;;
3763     esac
3764    fi
3765   fi
3766   rm -rf conftest*
3767   ;;
3768
3769 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3770   # Find out which ABI we are using.
3771   echo 'int i;' > conftest.$ac_ext
3772   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773   (eval $ac_compile) 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); }; then
3777     case `/usr/bin/file conftest.o` in
3778     *32-bit*)
3779       case $host in
3780         x86_64-*linux*)
3781           LD="${LD-ld} -m elf_i386"
3782           ;;
3783         ppc64-*linux*|powerpc64-*linux*)
3784           LD="${LD-ld} -m elf32ppclinux"
3785           ;;
3786         s390x-*linux*)
3787           LD="${LD-ld} -m elf_s390"
3788           ;;
3789         sparc64-*linux*)
3790           LD="${LD-ld} -m elf32_sparc"
3791           ;;
3792       esac
3793       ;;
3794     *64-bit*)
3795       case $host in
3796         x86_64-*linux*)
3797           LD="${LD-ld} -m elf_x86_64"
3798           ;;
3799         ppc*-*linux*|powerpc*-*linux*)
3800           LD="${LD-ld} -m elf64ppc"
3801           ;;
3802         s390*-*linux*)
3803           LD="${LD-ld} -m elf64_s390"
3804           ;;
3805         sparc*-*linux*)
3806           LD="${LD-ld} -m elf64_sparc"
3807           ;;
3808       esac
3809       ;;
3810     esac
3811   fi
3812   rm -rf conftest*
3813   ;;
3814
3815 *-*-sco3.2v5*)
3816   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3817   SAVE_CFLAGS="$CFLAGS"
3818   CFLAGS="$CFLAGS -belf"
3819   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3820 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3821 if test "${lt_cv_cc_needs_belf+set}" = set; then
3822   echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824   ac_ext=c
3825 ac_cpp='$CPP $CPPFLAGS'
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829
3830      cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836
3837 int
3838 main ()
3839 {
3840
3841   ;
3842   return 0;
3843 }
3844 _ACEOF
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847   (eval $ac_link) 2>conftest.er1
3848   ac_status=$?
3849   grep -v '^ *+' conftest.er1 >conftest.err
3850   rm -f conftest.er1
3851   cat conftest.err >&5
3852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); } &&
3854          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856   (eval $ac_try) 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }; } &&
3860          { ac_try='test -s conftest$ac_exeext'
3861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862   (eval $ac_try) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   lt_cv_cc_needs_belf=yes
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 lt_cv_cc_needs_belf=no
3872 fi
3873 rm -f conftest.err conftest.$ac_objext \
3874       conftest$ac_exeext conftest.$ac_ext
3875      ac_ext=c
3876 ac_cpp='$CPP $CPPFLAGS'
3877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880
3881 fi
3882 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3883 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3884   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3885     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3886     CFLAGS="$SAVE_CFLAGS"
3887   fi
3888   ;;
3889 sparc*-*solaris*)
3890   # Find out which ABI we are using.
3891   echo 'int i;' > conftest.$ac_ext
3892   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893   (eval $ac_compile) 2>&5
3894   ac_status=$?
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); }; then
3897     case `/usr/bin/file conftest.o` in
3898     *64-bit*)
3899       case $lt_cv_prog_gnu_ld in
3900       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3901       *)    LD="${LD-ld} -64" ;;
3902       esac
3903       ;;
3904     esac
3905   fi
3906   rm -rf conftest*
3907   ;;
3908
3909 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
3910   if test -n "$ac_tool_prefix"; then
3911   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918   if test -n "$DLLTOOL"; then
3919   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3920 else
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926   for ac_exec_ext in '' $ac_executable_extensions; do
3927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930     break 2
3931   fi
3932 done
3933 done
3934
3935 fi
3936 fi
3937 DLLTOOL=$ac_cv_prog_DLLTOOL
3938 if test -n "$DLLTOOL"; then
3939   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
3940 echo "${ECHO_T}$DLLTOOL" >&6
3941 else
3942   echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3944 fi
3945
3946 fi
3947 if test -z "$ac_cv_prog_DLLTOOL"; then
3948   ac_ct_DLLTOOL=$DLLTOOL
3949   # Extract the first word of "dlltool", so it can be a program name with args.
3950 set dummy dlltool; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   if test -n "$ac_ct_DLLTOOL"; then
3957   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3958 else
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962   IFS=$as_save_IFS
3963   test -z "$as_dir" && as_dir=.
3964   for ac_exec_ext in '' $ac_executable_extensions; do
3965   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968     break 2
3969   fi
3970 done
3971 done
3972
3973   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3974 fi
3975 fi
3976 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3977 if test -n "$ac_ct_DLLTOOL"; then
3978   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
3979 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3980 else
3981   echo "$as_me:$LINENO: result: no" >&5
3982 echo "${ECHO_T}no" >&6
3983 fi
3984
3985   DLLTOOL=$ac_ct_DLLTOOL
3986 else
3987   DLLTOOL="$ac_cv_prog_DLLTOOL"
3988 fi
3989
3990   if test -n "$ac_tool_prefix"; then
3991   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3992 set dummy ${ac_tool_prefix}as; ac_word=$2
3993 echo "$as_me:$LINENO: checking for $ac_word" >&5
3994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3995 if test "${ac_cv_prog_AS+set}" = set; then
3996   echo $ECHO_N "(cached) $ECHO_C" >&6
3997 else
3998   if test -n "$AS"; then
3999   ac_cv_prog_AS="$AS" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006   for ac_exec_ext in '' $ac_executable_extensions; do
4007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008     ac_cv_prog_AS="${ac_tool_prefix}as"
4009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010     break 2
4011   fi
4012 done
4013 done
4014
4015 fi
4016 fi
4017 AS=$ac_cv_prog_AS
4018 if test -n "$AS"; then
4019   echo "$as_me:$LINENO: result: $AS" >&5
4020 echo "${ECHO_T}$AS" >&6
4021 else
4022   echo "$as_me:$LINENO: result: no" >&5
4023 echo "${ECHO_T}no" >&6
4024 fi
4025
4026 fi
4027 if test -z "$ac_cv_prog_AS"; then
4028   ac_ct_AS=$AS
4029   # Extract the first word of "as", so it can be a program name with args.
4030 set dummy as; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   if test -n "$ac_ct_AS"; then
4037   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042   IFS=$as_save_IFS
4043   test -z "$as_dir" && as_dir=.
4044   for ac_exec_ext in '' $ac_executable_extensions; do
4045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046     ac_cv_prog_ac_ct_AS="as"
4047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048     break 2
4049   fi
4050 done
4051 done
4052
4053   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4054 fi
4055 fi
4056 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4057 if test -n "$ac_ct_AS"; then
4058   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4059 echo "${ECHO_T}$ac_ct_AS" >&6
4060 else
4061   echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4063 fi
4064
4065   AS=$ac_ct_AS
4066 else
4067   AS="$ac_cv_prog_AS"
4068 fi
4069
4070   if test -n "$ac_tool_prefix"; then
4071   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4072 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4073 echo "$as_me:$LINENO: checking for $ac_word" >&5
4074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4075 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4076   echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078   if test -n "$OBJDUMP"; then
4079   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4080 else
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086   for ac_exec_ext in '' $ac_executable_extensions; do
4087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090     break 2
4091   fi
4092 done
4093 done
4094
4095 fi
4096 fi
4097 OBJDUMP=$ac_cv_prog_OBJDUMP
4098 if test -n "$OBJDUMP"; then
4099   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4100 echo "${ECHO_T}$OBJDUMP" >&6
4101 else
4102   echo "$as_me:$LINENO: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4104 fi
4105
4106 fi
4107 if test -z "$ac_cv_prog_OBJDUMP"; then
4108   ac_ct_OBJDUMP=$OBJDUMP
4109   # Extract the first word of "objdump", so it can be a program name with args.
4110 set dummy objdump; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   if test -n "$ac_ct_OBJDUMP"; then
4117   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122   IFS=$as_save_IFS
4123   test -z "$as_dir" && as_dir=.
4124   for ac_exec_ext in '' $ac_executable_extensions; do
4125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128     break 2
4129   fi
4130 done
4131 done
4132
4133   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4134 fi
4135 fi
4136 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4137 if test -n "$ac_ct_OBJDUMP"; then
4138   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4139 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4140 else
4141   echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4143 fi
4144
4145   OBJDUMP=$ac_ct_OBJDUMP
4146 else
4147   OBJDUMP="$ac_cv_prog_OBJDUMP"
4148 fi
4149
4150   ;;
4151
4152 esac
4153
4154 need_locks="$enable_libtool_lock"
4155
4156
4157 ac_ext=c
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4163 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4164 # On Suns, sometimes $CPP names a directory.
4165 if test -n "$CPP" && test -d "$CPP"; then
4166   CPP=
4167 fi
4168 if test -z "$CPP"; then
4169   if test "${ac_cv_prog_CPP+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172       # Double quotes because CPP needs to be expanded
4173     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4174     do
4175       ac_preproc_ok=false
4176 for ac_c_preproc_warn_flag in '' yes
4177 do
4178   # Use a header file that comes with gcc, so configuring glibc
4179   # with a fresh cross-compiler works.
4180   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181   # <limits.h> exists even on freestanding compilers.
4182   # On the NeXT, cc -E runs the code through the compiler's parser,
4183   # not just through cpp. "Syntax error" is here to catch this case.
4184   cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h.  */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h.  */
4190 #ifdef __STDC__
4191 # include <limits.h>
4192 #else
4193 # include <assert.h>
4194 #endif
4195                      Syntax error
4196 _ACEOF
4197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4198   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4199   ac_status=$?
4200   grep -v '^ *+' conftest.er1 >conftest.err
4201   rm -f conftest.er1
4202   cat conftest.err >&5
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); } >/dev/null; then
4205   if test -s conftest.err; then
4206     ac_cpp_err=$ac_c_preproc_warn_flag
4207     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4208   else
4209     ac_cpp_err=
4210   fi
4211 else
4212   ac_cpp_err=yes
4213 fi
4214 if test -z "$ac_cpp_err"; then
4215   :
4216 else
4217   echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220   # Broken: fails on valid input.
4221 continue
4222 fi
4223 rm -f conftest.err conftest.$ac_ext
4224
4225   # OK, works on sane cases.  Now check whether non-existent headers
4226   # can be detected and how.
4227   cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h.  */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h.  */
4233 #include <ac_nonexistent.h>
4234 _ACEOF
4235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4237   ac_status=$?
4238   grep -v '^ *+' conftest.er1 >conftest.err
4239   rm -f conftest.er1
4240   cat conftest.err >&5
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); } >/dev/null; then
4243   if test -s conftest.err; then
4244     ac_cpp_err=$ac_c_preproc_warn_flag
4245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4246   else
4247     ac_cpp_err=
4248   fi
4249 else
4250   ac_cpp_err=yes
4251 fi
4252 if test -z "$ac_cpp_err"; then
4253   # Broken: success on invalid input.
4254 continue
4255 else
4256   echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259   # Passes both tests.
4260 ac_preproc_ok=:
4261 break
4262 fi
4263 rm -f conftest.err conftest.$ac_ext
4264
4265 done
4266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4267 rm -f conftest.err conftest.$ac_ext
4268 if $ac_preproc_ok; then
4269   break
4270 fi
4271
4272     done
4273     ac_cv_prog_CPP=$CPP
4274
4275 fi
4276   CPP=$ac_cv_prog_CPP
4277 else
4278   ac_cv_prog_CPP=$CPP
4279 fi
4280 echo "$as_me:$LINENO: result: $CPP" >&5
4281 echo "${ECHO_T}$CPP" >&6
4282 ac_preproc_ok=false
4283 for ac_c_preproc_warn_flag in '' yes
4284 do
4285   # Use a header file that comes with gcc, so configuring glibc
4286   # with a fresh cross-compiler works.
4287   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288   # <limits.h> exists even on freestanding compilers.
4289   # On the NeXT, cc -E runs the code through the compiler's parser,
4290   # not just through cpp. "Syntax error" is here to catch this case.
4291   cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h.  */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h.  */
4297 #ifdef __STDC__
4298 # include <limits.h>
4299 #else
4300 # include <assert.h>
4301 #endif
4302                      Syntax error
4303 _ACEOF
4304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4306   ac_status=$?
4307   grep -v '^ *+' conftest.er1 >conftest.err
4308   rm -f conftest.er1
4309   cat conftest.err >&5
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); } >/dev/null; then
4312   if test -s conftest.err; then
4313     ac_cpp_err=$ac_c_preproc_warn_flag
4314     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4315   else
4316     ac_cpp_err=
4317   fi
4318 else
4319   ac_cpp_err=yes
4320 fi
4321 if test -z "$ac_cpp_err"; then
4322   :
4323 else
4324   echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4326
4327   # Broken: fails on valid input.
4328 continue
4329 fi
4330 rm -f conftest.err conftest.$ac_ext
4331
4332   # OK, works on sane cases.  Now check whether non-existent headers
4333   # can be detected and how.
4334   cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h.  */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h.  */
4340 #include <ac_nonexistent.h>
4341 _ACEOF
4342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4344   ac_status=$?
4345   grep -v '^ *+' conftest.er1 >conftest.err
4346   rm -f conftest.er1
4347   cat conftest.err >&5
4348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349   (exit $ac_status); } >/dev/null; then
4350   if test -s conftest.err; then
4351     ac_cpp_err=$ac_c_preproc_warn_flag
4352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4353   else
4354     ac_cpp_err=
4355   fi
4356 else
4357   ac_cpp_err=yes
4358 fi
4359 if test -z "$ac_cpp_err"; then
4360   # Broken: success on invalid input.
4361 continue
4362 else
4363   echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366   # Passes both tests.
4367 ac_preproc_ok=:
4368 break
4369 fi
4370 rm -f conftest.err conftest.$ac_ext
4371
4372 done
4373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4374 rm -f conftest.err conftest.$ac_ext
4375 if $ac_preproc_ok; then
4376   :
4377 else
4378   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4379 See \`config.log' for more details." >&5
4380 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4381 See \`config.log' for more details." >&2;}
4382    { (exit 1); exit 1; }; }
4383 fi
4384
4385 ac_ext=c
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390
4391
4392 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4393 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4394 if test "${ac_cv_header_stdc+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h.  */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h.  */
4403 #include <stdlib.h>
4404 #include <stdarg.h>
4405 #include <string.h>
4406 #include <float.h>
4407
4408 int
4409 main ()
4410 {
4411
4412   ;
4413   return 0;
4414 }
4415 _ACEOF
4416 rm -f conftest.$ac_objext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418   (eval $ac_compile) 2>conftest.er1
4419   ac_status=$?
4420   grep -v '^ *+' conftest.er1 >conftest.err
4421   rm -f conftest.er1
4422   cat conftest.err >&5
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); } &&
4425          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427   (eval $ac_try) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; } &&
4431          { ac_try='test -s conftest.$ac_objext'
4432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433   (eval $ac_try) 2>&5
4434   ac_status=$?
4435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436   (exit $ac_status); }; }; then
4437   ac_cv_header_stdc=yes
4438 else
4439   echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442 ac_cv_header_stdc=no
4443 fi
4444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4445
4446 if test $ac_cv_header_stdc = yes; then
4447   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4448   cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454 #include <string.h>
4455
4456 _ACEOF
4457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4458   $EGREP "memchr" >/dev/null 2>&1; then
4459   :
4460 else
4461   ac_cv_header_stdc=no
4462 fi
4463 rm -f conftest*
4464
4465 fi
4466
4467 if test $ac_cv_header_stdc = yes; then
4468   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4469   cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h.  */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h.  */
4475 #include <stdlib.h>
4476
4477 _ACEOF
4478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4479   $EGREP "free" >/dev/null 2>&1; then
4480   :
4481 else
4482   ac_cv_header_stdc=no
4483 fi
4484 rm -f conftest*
4485
4486 fi
4487
4488 if test $ac_cv_header_stdc = yes; then
4489   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4490   if test "$cross_compiling" = yes; then
4491   :
4492 else
4493   cat >conftest.$ac_ext <<_ACEOF
4494 /* confdefs.h.  */
4495 _ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h.  */
4499 #include <ctype.h>
4500 #if ((' ' & 0x0FF) == 0x020)
4501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4503 #else
4504 # define ISLOWER(c) \
4505                    (('a' <= (c) && (c) <= 'i') \
4506                      || ('j' <= (c) && (c) <= 'r') \
4507                      || ('s' <= (c) && (c) <= 'z'))
4508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4509 #endif
4510
4511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4512 int
4513 main ()
4514 {
4515   int i;
4516   for (i = 0; i < 256; i++)
4517     if (XOR (islower (i), ISLOWER (i))
4518         || toupper (i) != TOUPPER (i))
4519       exit(2);
4520   exit (0);
4521 }
4522 _ACEOF
4523 rm -f conftest$ac_exeext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4525   (eval $ac_link) 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530   (eval $ac_try) 2>&5
4531   ac_status=$?
4532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533   (exit $ac_status); }; }; then
4534   :
4535 else
4536   echo "$as_me: program exited with status $ac_status" >&5
4537 echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4539
4540 ( exit $ac_status )
4541 ac_cv_header_stdc=no
4542 fi
4543 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4544 fi
4545 fi
4546 fi
4547 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4548 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4549 if test $ac_cv_header_stdc = yes; then
4550
4551 cat >>confdefs.h <<\_ACEOF
4552 #define STDC_HEADERS 1
4553 _ACEOF
4554
4555 fi
4556
4557 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4568                   inttypes.h stdint.h unistd.h
4569 do
4570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4571 echo "$as_me:$LINENO: checking for $ac_header" >&5
4572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h.  */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h.  */
4582 $ac_includes_default
4583
4584 #include <$ac_header>
4585 _ACEOF
4586 rm -f conftest.$ac_objext
4587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4588   (eval $ac_compile) 2>conftest.er1
4589   ac_status=$?
4590   grep -v '^ *+' conftest.er1 >conftest.err
4591   rm -f conftest.er1
4592   cat conftest.err >&5
4593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594   (exit $ac_status); } &&
4595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597   (eval $ac_try) 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); }; } &&
4601          { ac_try='test -s conftest.$ac_objext'
4602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603   (eval $ac_try) 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); }; }; then
4607   eval "$as_ac_Header=yes"
4608 else
4609   echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612 eval "$as_ac_Header=no"
4613 fi
4614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4615 fi
4616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4617 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4619   cat >>confdefs.h <<_ACEOF
4620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4621 _ACEOF
4622
4623 fi
4624
4625 done
4626
4627
4628
4629 for ac_header in dlfcn.h
4630 do
4631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4633   echo "$as_me:$LINENO: checking for $ac_header" >&5
4634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4636   echo $ECHO_N "(cached) $ECHO_C" >&6
4637 fi
4638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4640 else
4641   # Is the header compilable?
4642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4644 cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h.  */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h.  */
4650 $ac_includes_default
4651 #include <$ac_header>
4652 _ACEOF
4653 rm -f conftest.$ac_objext
4654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4655   (eval $ac_compile) 2>conftest.er1
4656   ac_status=$?
4657   grep -v '^ *+' conftest.er1 >conftest.err
4658   rm -f conftest.er1
4659   cat conftest.err >&5
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); } &&
4662          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664   (eval $ac_try) 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }; } &&
4668          { ac_try='test -s conftest.$ac_objext'
4669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670   (eval $ac_try) 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); }; }; then
4674   ac_header_compiler=yes
4675 else
4676   echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679 ac_header_compiler=no
4680 fi
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4683 echo "${ECHO_T}$ac_header_compiler" >&6
4684
4685 # Is the header present?
4686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4688 cat >conftest.$ac_ext <<_ACEOF
4689 /* confdefs.h.  */
4690 _ACEOF
4691 cat confdefs.h >>conftest.$ac_ext
4692 cat >>conftest.$ac_ext <<_ACEOF
4693 /* end confdefs.h.  */
4694 #include <$ac_header>
4695 _ACEOF
4696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4697   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4698   ac_status=$?
4699   grep -v '^ *+' conftest.er1 >conftest.err
4700   rm -f conftest.er1
4701   cat conftest.err >&5
4702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703   (exit $ac_status); } >/dev/null; then
4704   if test -s conftest.err; then
4705     ac_cpp_err=$ac_c_preproc_warn_flag
4706     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4707   else
4708     ac_cpp_err=
4709   fi
4710 else
4711   ac_cpp_err=yes
4712 fi
4713 if test -z "$ac_cpp_err"; then
4714   ac_header_preproc=yes
4715 else
4716   echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719   ac_header_preproc=no
4720 fi
4721 rm -f conftest.err conftest.$ac_ext
4722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4723 echo "${ECHO_T}$ac_header_preproc" >&6
4724
4725 # So?  What about this header?
4726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4727   yes:no: )
4728     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4730     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4732     ac_header_preproc=yes
4733     ;;
4734   no:yes:* )
4735     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4737     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4738 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4739     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4741     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4742 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4745     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4747     (
4748       cat <<\_ASBOX
4749 ## -------------------------------------------------- ##
4750 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
4751 ## -------------------------------------------------- ##
4752 _ASBOX
4753     ) |
4754       sed "s/^/$as_me: WARNING:     /" >&2
4755     ;;
4756 esac
4757 echo "$as_me:$LINENO: checking for $ac_header" >&5
4758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4760   echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762   eval "$as_ac_Header=\$ac_header_preproc"
4763 fi
4764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4766
4767 fi
4768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4769   cat >>confdefs.h <<_ACEOF
4770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4771 _ACEOF
4772
4773 fi
4774
4775 done
4776
4777 ac_ext=cc
4778 ac_cpp='$CXXCPP $CPPFLAGS'
4779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4782 if test -n "$ac_tool_prefix"; then
4783   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4784   do
4785     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4787 echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789 if test "${ac_cv_prog_CXX+set}" = set; then
4790   echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792   if test -n "$CXX"; then
4793   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800   for ac_exec_ext in '' $ac_executable_extensions; do
4801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804     break 2
4805   fi
4806 done
4807 done
4808
4809 fi
4810 fi
4811 CXX=$ac_cv_prog_CXX
4812 if test -n "$CXX"; then
4813   echo "$as_me:$LINENO: result: $CXX" >&5
4814 echo "${ECHO_T}$CXX" >&6
4815 else
4816   echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4818 fi
4819
4820     test -n "$CXX" && break
4821   done
4822 fi
4823 if test -z "$CXX"; then
4824   ac_ct_CXX=$CXX
4825   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4826 do
4827   # Extract the first word of "$ac_prog", so it can be a program name with args.
4828 set dummy $ac_prog; ac_word=$2
4829 echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4831 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834   if test -n "$ac_ct_CXX"; then
4835   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840   IFS=$as_save_IFS
4841   test -z "$as_dir" && as_dir=.
4842   for ac_exec_ext in '' $ac_executable_extensions; do
4843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4844     ac_cv_prog_ac_ct_CXX="$ac_prog"
4845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846     break 2
4847   fi
4848 done
4849 done
4850
4851 fi
4852 fi
4853 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4854 if test -n "$ac_ct_CXX"; then
4855   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4856 echo "${ECHO_T}$ac_ct_CXX" >&6
4857 else
4858   echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6
4860 fi
4861
4862   test -n "$ac_ct_CXX" && break
4863 done
4864 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4865
4866   CXX=$ac_ct_CXX
4867 fi
4868
4869
4870 # Provide some information about the compiler.
4871 echo "$as_me:$LINENO:" \
4872      "checking for C++ compiler version" >&5
4873 ac_compiler=`set X $ac_compile; echo $2`
4874 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4875   (eval $ac_compiler --version </dev/null >&5) 2>&5
4876   ac_status=$?
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); }
4879 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4880   (eval $ac_compiler -v </dev/null >&5) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }
4884 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4885   (eval $ac_compiler -V </dev/null >&5) 2>&5
4886   ac_status=$?
4887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888   (exit $ac_status); }
4889
4890 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4891 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4892 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4893   echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895   cat >conftest.$ac_ext <<_ACEOF
4896 /* confdefs.h.  */
4897 _ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h.  */
4901
4902 int
4903 main ()
4904 {
4905 #ifndef __GNUC__
4906        choke me
4907 #endif
4908
4909   ;
4910   return 0;
4911 }
4912 _ACEOF
4913 rm -f conftest.$ac_objext
4914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4915   (eval $ac_compile) 2>conftest.er1
4916   ac_status=$?
4917   grep -v '^ *+' conftest.er1 >conftest.err
4918   rm -f conftest.er1
4919   cat conftest.err >&5
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); } &&
4922          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924   (eval $ac_try) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); }; } &&
4928          { ac_try='test -s conftest.$ac_objext'
4929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930   (eval $ac_try) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); }; }; then
4934   ac_compiler_gnu=yes
4935 else
4936   echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939 ac_compiler_gnu=no
4940 fi
4941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4942 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4943
4944 fi
4945 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4946 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4947 GXX=`test $ac_compiler_gnu = yes && echo yes`
4948 ac_test_CXXFLAGS=${CXXFLAGS+set}
4949 ac_save_CXXFLAGS=$CXXFLAGS
4950 CXXFLAGS="-g"
4951 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4952 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4953 if test "${ac_cv_prog_cxx_g+set}" = set; then
4954   echo $ECHO_N "(cached) $ECHO_C" >&6
4955 else
4956   cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962
4963 int
4964 main ()
4965 {
4966
4967   ;
4968   return 0;
4969 }
4970 _ACEOF
4971 rm -f conftest.$ac_objext
4972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4973   (eval $ac_compile) 2>conftest.er1
4974   ac_status=$?
4975   grep -v '^ *+' conftest.er1 >conftest.err
4976   rm -f conftest.er1
4977   cat conftest.err >&5
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); } &&
4980          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982   (eval $ac_try) 2>&5
4983   ac_status=$?
4984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985   (exit $ac_status); }; } &&
4986          { ac_try='test -s conftest.$ac_objext'
4987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988   (eval $ac_try) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); }; }; then
4992   ac_cv_prog_cxx_g=yes
4993 else
4994   echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997 ac_cv_prog_cxx_g=no
4998 fi
4999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5000 fi
5001 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5002 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5003 if test "$ac_test_CXXFLAGS" = set; then
5004   CXXFLAGS=$ac_save_CXXFLAGS
5005 elif test $ac_cv_prog_cxx_g = yes; then
5006   if test "$GXX" = yes; then
5007     CXXFLAGS="-g -O2"
5008   else
5009     CXXFLAGS="-g"
5010   fi
5011 else
5012   if test "$GXX" = yes; then
5013     CXXFLAGS="-O2"
5014   else
5015     CXXFLAGS=
5016   fi
5017 fi
5018 for ac_declaration in \
5019    '' \
5020    'extern "C" void std::exit (int) throw (); using std::exit;' \
5021    'extern "C" void std::exit (int); using std::exit;' \
5022    'extern "C" void exit (int) throw ();' \
5023    'extern "C" void exit (int);' \
5024    'void exit (int);'
5025 do
5026   cat >conftest.$ac_ext <<_ACEOF
5027 /* confdefs.h.  */
5028 _ACEOF
5029 cat confdefs.h >>conftest.$ac_ext
5030 cat >>conftest.$ac_ext <<_ACEOF
5031 /* end confdefs.h.  */
5032 $ac_declaration
5033 #include <stdlib.h>
5034 int
5035 main ()
5036 {
5037 exit (42);
5038   ;
5039   return 0;
5040 }
5041 _ACEOF
5042 rm -f conftest.$ac_objext
5043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5044   (eval $ac_compile) 2>conftest.er1
5045   ac_status=$?
5046   grep -v '^ *+' conftest.er1 >conftest.err
5047   rm -f conftest.er1
5048   cat conftest.err >&5
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); } &&
5051          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053   (eval $ac_try) 2>&5
5054   ac_status=$?
5055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056   (exit $ac_status); }; } &&
5057          { ac_try='test -s conftest.$ac_objext'
5058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059   (eval $ac_try) 2>&5
5060   ac_status=$?
5061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062   (exit $ac_status); }; }; then
5063   :
5064 else
5065   echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 continue
5069 fi
5070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5071   cat >conftest.$ac_ext <<_ACEOF
5072 /* confdefs.h.  */
5073 _ACEOF
5074 cat confdefs.h >>conftest.$ac_ext
5075 cat >>conftest.$ac_ext <<_ACEOF
5076 /* end confdefs.h.  */
5077 $ac_declaration
5078 int
5079 main ()
5080 {
5081 exit (42);
5082   ;
5083   return 0;
5084 }
5085 _ACEOF
5086 rm -f conftest.$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088   (eval $ac_compile) 2>conftest.er1
5089   ac_status=$?
5090   grep -v '^ *+' conftest.er1 >conftest.err
5091   rm -f conftest.er1
5092   cat conftest.err >&5
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } &&
5095          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097   (eval $ac_try) 2>&5
5098   ac_status=$?
5099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100   (exit $ac_status); }; } &&
5101          { ac_try='test -s conftest.$ac_objext'
5102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103   (eval $ac_try) 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); }; }; then
5107   break
5108 else
5109   echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 fi
5113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5114 done
5115 rm -f conftest*
5116 if test -n "$ac_declaration"; then
5117   echo '#ifdef __cplusplus' >>confdefs.h
5118   echo $ac_declaration      >>confdefs.h
5119   echo '#endif'             >>confdefs.h
5120 fi
5121
5122 ac_ext=cc
5123 ac_cpp='$CXXCPP $CPPFLAGS'
5124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5127
5128 depcc="$CXX"  am_compiler_list=
5129
5130 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5131 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5132 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5133   echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5136   # We make a subdir and do the tests there.  Otherwise we can end up
5137   # making bogus files that we don't know about and never remove.  For
5138   # instance it was reported that on HP-UX the gcc test will end up
5139   # making a dummy file named `D' -- because `-MD' means `put the output
5140   # in D'.
5141   mkdir conftest.dir
5142   # Copy depcomp to subdir because otherwise we won't find it if we're
5143   # using a relative directory.
5144   cp "$am_depcomp" conftest.dir
5145   cd conftest.dir
5146   # We will build objects and dependencies in a subdirectory because
5147   # it helps to detect inapplicable dependency modes.  For instance
5148   # both Tru64's cc and ICC support -MD to output dependencies as a
5149   # side effect of compilation, but ICC will put the dependencies in
5150   # the current directory while Tru64 will put them in the object
5151   # directory.
5152   mkdir sub
5153
5154   am_cv_CXX_dependencies_compiler_type=none
5155   if test "$am_compiler_list" = ""; then
5156      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5157   fi
5158   for depmode in $am_compiler_list; do
5159     # Setup a source with many dependencies, because some compilers
5160     # like to wrap large dependency lists on column 80 (with \), and
5161     # we should not choose a depcomp mode which is confused by this.
5162     #
5163     # We need to recreate these files for each test, as the compiler may
5164     # overwrite some of them when testing with obscure command lines.
5165     # This happens at least with the AIX C compiler.
5166     : > sub/conftest.c
5167     for i in 1 2 3 4 5 6; do
5168       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5169       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5170       # Solaris 8's {/usr,}/bin/sh.
5171       touch sub/conftst$i.h
5172     done
5173     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5174
5175     case $depmode in
5176     nosideeffect)
5177       # after this tag, mechanisms are not by side-effect, so they'll
5178       # only be used when explicitly requested
5179       if test "x$enable_dependency_tracking" = xyes; then
5180         continue
5181       else
5182         break
5183       fi
5184       ;;
5185     none) break ;;
5186     esac
5187     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5188     # mode.  It turns out that the SunPro C++ compiler does not properly
5189     # handle `-M -o', and we need to detect this.
5190     if depmode=$depmode \
5191        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5192        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5193        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5194          >/dev/null 2>conftest.err &&
5195        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5196        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5197        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5198       # icc doesn't choke on unknown options, it will just issue warnings
5199       # or remarks (even with -Werror).  So we grep stderr for any message
5200       # that says an option was ignored or not supported.
5201       # When given -MP, icc 7.0 and 7.1 complain thusly:
5202       #   icc: Command line warning: ignoring option '-M'; no argument required
5203       # The diagnosis changed in icc 8.0:
5204       #   icc: Command line remark: option '-MP' not supported
5205       if (grep 'ignoring option' conftest.err ||
5206           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5207         am_cv_CXX_dependencies_compiler_type=$depmode
5208         break
5209       fi
5210     fi
5211   done
5212
5213   cd ..
5214   rm -rf conftest.dir
5215 else
5216   am_cv_CXX_dependencies_compiler_type=none
5217 fi
5218
5219 fi
5220 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5221 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5222 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5223
5224
5225
5226 if
5227   test "x$enable_dependency_tracking" != xno \
5228   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5229   am__fastdepCXX_TRUE=
5230   am__fastdepCXX_FALSE='#'
5231 else
5232   am__fastdepCXX_TRUE='#'
5233   am__fastdepCXX_FALSE=
5234 fi
5235
5236
5237
5238
5239 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5240     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5241     (test "X$CXX" != "Xg++"))) ; then
5242   ac_ext=cc
5243 ac_cpp='$CXXCPP $CPPFLAGS'
5244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5247 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5248 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5249 if test -z "$CXXCPP"; then
5250   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5251   echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253       # Double quotes because CXXCPP needs to be expanded
5254     for CXXCPP in "$CXX -E" "/lib/cpp"
5255     do
5256       ac_preproc_ok=false
5257 for ac_cxx_preproc_warn_flag in '' yes
5258 do
5259   # Use a header file that comes with gcc, so configuring glibc
5260   # with a fresh cross-compiler works.
5261   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5262   # <limits.h> exists even on freestanding compilers.
5263   # On the NeXT, cc -E runs the code through the compiler's parser,
5264   # not just through cpp. "Syntax error" is here to catch this case.
5265   cat >conftest.$ac_ext <<_ACEOF
5266 /* confdefs.h.  */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h.  */
5271 #ifdef __STDC__
5272 # include <limits.h>
5273 #else
5274 # include <assert.h>
5275 #endif
5276                      Syntax error
5277 _ACEOF
5278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5280   ac_status=$?
5281   grep -v '^ *+' conftest.er1 >conftest.err
5282   rm -f conftest.er1
5283   cat conftest.err >&5
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); } >/dev/null; then
5286   if test -s conftest.err; then
5287     ac_cpp_err=$ac_cxx_preproc_warn_flag
5288     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5289   else
5290     ac_cpp_err=
5291   fi
5292 else
5293   ac_cpp_err=yes
5294 fi
5295 if test -z "$ac_cpp_err"; then
5296   :
5297 else
5298   echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301   # Broken: fails on valid input.
5302 continue
5303 fi
5304 rm -f conftest.err conftest.$ac_ext
5305
5306   # OK, works on sane cases.  Now check whether non-existent headers
5307   # can be detected and how.
5308   cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h.  */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h.  */
5314 #include <ac_nonexistent.h>
5315 _ACEOF
5316 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5317   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5318   ac_status=$?
5319   grep -v '^ *+' conftest.er1 >conftest.err
5320   rm -f conftest.er1
5321   cat conftest.err >&5
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); } >/dev/null; then
5324   if test -s conftest.err; then
5325     ac_cpp_err=$ac_cxx_preproc_warn_flag
5326     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5327   else
5328     ac_cpp_err=
5329   fi
5330 else
5331   ac_cpp_err=yes
5332 fi
5333 if test -z "$ac_cpp_err"; then
5334   # Broken: success on invalid input.
5335 continue
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340   # Passes both tests.
5341 ac_preproc_ok=:
5342 break
5343 fi
5344 rm -f conftest.err conftest.$ac_ext
5345
5346 done
5347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5348 rm -f conftest.err conftest.$ac_ext
5349 if $ac_preproc_ok; then
5350   break
5351 fi
5352
5353     done
5354     ac_cv_prog_CXXCPP=$CXXCPP
5355
5356 fi
5357   CXXCPP=$ac_cv_prog_CXXCPP
5358 else
5359   ac_cv_prog_CXXCPP=$CXXCPP
5360 fi
5361 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5362 echo "${ECHO_T}$CXXCPP" >&6
5363 ac_preproc_ok=false
5364 for ac_cxx_preproc_warn_flag in '' yes
5365 do
5366   # Use a header file that comes with gcc, so configuring glibc
5367   # with a fresh cross-compiler works.
5368   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5369   # <limits.h> exists even on freestanding compilers.
5370   # On the NeXT, cc -E runs the code through the compiler's parser,
5371   # not just through cpp. "Syntax error" is here to catch this case.
5372   cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h.  */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h.  */
5378 #ifdef __STDC__
5379 # include <limits.h>
5380 #else
5381 # include <assert.h>
5382 #endif
5383                      Syntax error
5384 _ACEOF
5385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5387   ac_status=$?
5388   grep -v '^ *+' conftest.er1 >conftest.err
5389   rm -f conftest.er1
5390   cat conftest.err >&5
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } >/dev/null; then
5393   if test -s conftest.err; then
5394     ac_cpp_err=$ac_cxx_preproc_warn_flag
5395     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5396   else
5397     ac_cpp_err=
5398   fi
5399 else
5400   ac_cpp_err=yes
5401 fi
5402 if test -z "$ac_cpp_err"; then
5403   :
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408   # Broken: fails on valid input.
5409 continue
5410 fi
5411 rm -f conftest.err conftest.$ac_ext
5412
5413   # OK, works on sane cases.  Now check whether non-existent headers
5414   # can be detected and how.
5415   cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h.  */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h.  */
5421 #include <ac_nonexistent.h>
5422 _ACEOF
5423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5424   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5425   ac_status=$?
5426   grep -v '^ *+' conftest.er1 >conftest.err
5427   rm -f conftest.er1
5428   cat conftest.err >&5
5429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430   (exit $ac_status); } >/dev/null; then
5431   if test -s conftest.err; then
5432     ac_cpp_err=$ac_cxx_preproc_warn_flag
5433     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5434   else
5435     ac_cpp_err=
5436   fi
5437 else
5438   ac_cpp_err=yes
5439 fi
5440 if test -z "$ac_cpp_err"; then
5441   # Broken: success on invalid input.
5442 continue
5443 else
5444   echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5446
5447   # Passes both tests.
5448 ac_preproc_ok=:
5449 break
5450 fi
5451 rm -f conftest.err conftest.$ac_ext
5452
5453 done
5454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5455 rm -f conftest.err conftest.$ac_ext
5456 if $ac_preproc_ok; then
5457   :
5458 else
5459   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5460 See \`config.log' for more details." >&5
5461 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5462 See \`config.log' for more details." >&2;}
5463    { (exit 1); exit 1; }; }
5464 fi
5465
5466 ac_ext=cc
5467 ac_cpp='$CXXCPP $CPPFLAGS'
5468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5471
5472 fi
5473
5474
5475 ac_ext=f
5476 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5477 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5478 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5479 if test -n "$ac_tool_prefix"; then
5480   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5481   do
5482     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5484 echo "$as_me:$LINENO: checking for $ac_word" >&5
5485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5486 if test "${ac_cv_prog_F77+set}" = set; then
5487   echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489   if test -n "$F77"; then
5490   ac_cv_prog_F77="$F77" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497   for ac_exec_ext in '' $ac_executable_extensions; do
5498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504 done
5505
5506 fi
5507 fi
5508 F77=$ac_cv_prog_F77
5509 if test -n "$F77"; then
5510   echo "$as_me:$LINENO: result: $F77" >&5
5511 echo "${ECHO_T}$F77" >&6
5512 else
5513   echo "$as_me:$LINENO: result: no" >&5
5514 echo "${ECHO_T}no" >&6
5515 fi
5516
5517     test -n "$F77" && break
5518   done
5519 fi
5520 if test -z "$F77"; then
5521   ac_ct_F77=$F77
5522   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5523 do
5524   # Extract the first word of "$ac_prog", so it can be a program name with args.
5525 set dummy $ac_prog; ac_word=$2
5526 echo "$as_me:$LINENO: checking for $ac_word" >&5
5527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5528 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5529   echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531   if test -n "$ac_ct_F77"; then
5532   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537   IFS=$as_save_IFS
5538   test -z "$as_dir" && as_dir=.
5539   for ac_exec_ext in '' $ac_executable_extensions; do
5540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541     ac_cv_prog_ac_ct_F77="$ac_prog"
5542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5543     break 2
5544   fi
5545 done
5546 done
5547
5548 fi
5549 fi
5550 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5551 if test -n "$ac_ct_F77"; then
5552   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5553 echo "${ECHO_T}$ac_ct_F77" >&6
5554 else
5555   echo "$as_me:$LINENO: result: no" >&5
5556 echo "${ECHO_T}no" >&6
5557 fi
5558
5559   test -n "$ac_ct_F77" && break
5560 done
5561
5562   F77=$ac_ct_F77
5563 fi
5564
5565
5566 # Provide some information about the compiler.
5567 echo "$as_me:5567:" \
5568      "checking for Fortran 77 compiler version" >&5
5569 ac_compiler=`set X $ac_compile; echo $2`
5570 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5571   (eval $ac_compiler --version </dev/null >&5) 2>&5
5572   ac_status=$?
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); }
5575 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5576   (eval $ac_compiler -v </dev/null >&5) 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); }
5580 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5581   (eval $ac_compiler -V </dev/null >&5) 2>&5
5582   ac_status=$?
5583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584   (exit $ac_status); }
5585 rm -f a.out
5586
5587 # If we don't use `.F' as extension, the preprocessor is not run on the
5588 # input file.  (Note that this only needs to work for GNU compilers.)
5589 ac_save_ext=$ac_ext
5590 ac_ext=F
5591 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5592 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5593 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5594   echo $ECHO_N "(cached) $ECHO_C" >&6
5595 else
5596   cat >conftest.$ac_ext <<_ACEOF
5597       program main
5598 #ifndef __GNUC__
5599        choke me
5600 #endif
5601
5602       end
5603 _ACEOF
5604 rm -f conftest.$ac_objext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5606   (eval $ac_compile) 2>conftest.er1
5607   ac_status=$?
5608   grep -v '^ *+' conftest.er1 >conftest.err
5609   rm -f conftest.er1
5610   cat conftest.err >&5
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); } &&
5613          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615   (eval $ac_try) 2>&5
5616   ac_status=$?
5617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618   (exit $ac_status); }; } &&
5619          { ac_try='test -s conftest.$ac_objext'
5620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621   (eval $ac_try) 2>&5
5622   ac_status=$?
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); }; }; then
5625   ac_compiler_gnu=yes
5626 else
5627   echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.$ac_ext >&5
5629
5630 ac_compiler_gnu=no
5631 fi
5632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5633 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5634
5635 fi
5636 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5637 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5638 ac_ext=$ac_save_ext
5639 ac_test_FFLAGS=${FFLAGS+set}
5640 ac_save_FFLAGS=$FFLAGS
5641 FFLAGS=
5642 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5643 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5644 if test "${ac_cv_prog_f77_g+set}" = set; then
5645   echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647   FFLAGS=-g
5648 cat >conftest.$ac_ext <<_ACEOF
5649       program main
5650
5651       end
5652 _ACEOF
5653 rm -f conftest.$ac_objext
5654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655   (eval $ac_compile) 2>conftest.er1
5656   ac_status=$?
5657   grep -v '^ *+' conftest.er1 >conftest.err
5658   rm -f conftest.er1
5659   cat conftest.err >&5
5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661   (exit $ac_status); } &&
5662          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664   (eval $ac_try) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); }; } &&
5668          { ac_try='test -s conftest.$ac_objext'
5669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670   (eval $ac_try) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }; }; then
5674   ac_cv_prog_f77_g=yes
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679 ac_cv_prog_f77_g=no
5680 fi
5681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5682
5683 fi
5684 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5685 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5686 if test "$ac_test_FFLAGS" = set; then
5687   FFLAGS=$ac_save_FFLAGS
5688 elif test $ac_cv_prog_f77_g = yes; then
5689   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5690     FFLAGS="-g -O2"
5691   else
5692     FFLAGS="-g"
5693   fi
5694 else
5695   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5696     FFLAGS="-O2"
5697   else
5698     FFLAGS=
5699   fi
5700 fi
5701
5702 G77=`test $ac_compiler_gnu = yes && echo yes`
5703 ac_ext=c
5704 ac_cpp='$CPP $CPPFLAGS'
5705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5708
5709
5710
5711 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5712
5713 # find the maximum length of command line arguments
5714 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5715 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5716 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719     i=0
5720   teststring="ABCD"
5721
5722   case $build_os in
5723   msdosdjgpp*)
5724     # On DJGPP, this test can blow up pretty badly due to problems in libc
5725     # (any single argument exceeding 2000 bytes causes a buffer overrun
5726     # during glob expansion).  Even if it were fixed, the result of this
5727     # check would be larger than it should be.
5728     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5729     ;;
5730
5731   gnu*)
5732     # Under GNU Hurd, this test is not required because there is
5733     # no limit to the length of command line arguments.
5734     # Libtool will interpret -1 as no limit whatsoever
5735     lt_cv_sys_max_cmd_len=-1;
5736     ;;
5737
5738   cygwin* | mingw*)
5739     # On Win9x/ME, this test blows up -- it succeeds, but takes
5740     # about 5 minutes as the teststring grows exponentially.
5741     # Worse, since 9x/ME are not pre-emptively multitasking,
5742     # you end up with a "frozen" computer, even though with patience
5743     # the test eventually succeeds (with a max line length of 256k).
5744     # Instead, let's just punt: use the minimum linelength reported by
5745     # all of the supported platforms: 8192 (on NT/2K/XP).
5746     lt_cv_sys_max_cmd_len=8192;
5747     ;;
5748
5749   amigaos*)
5750     # On AmigaOS with pdksh, this test takes hours, literally.
5751     # So we just punt and use a minimum line length of 8192.
5752     lt_cv_sys_max_cmd_len=8192;
5753     ;;
5754
5755   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5756     # This has been around since 386BSD, at least.  Likely further.
5757     if test -x /sbin/sysctl; then
5758       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5759     elif test -x /usr/sbin/sysctl; then
5760       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5761     else
5762       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5763     fi
5764     # And add a safety zone
5765     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5766     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5767     ;;
5768
5769   interix*)
5770     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5771     lt_cv_sys_max_cmd_len=196608
5772     ;;
5773
5774   osf*)
5775     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5776     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5777     # nice to cause kernel panics so lets avoid the loop below.
5778     # First set a reasonable default.
5779     lt_cv_sys_max_cmd_len=16384
5780     #
5781     if test -x /sbin/sysconfig; then
5782       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5783         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5784       esac
5785     fi
5786     ;;
5787   sco3.2v5*)
5788     lt_cv_sys_max_cmd_len=102400
5789     ;;
5790   sysv5* | sco5v6* | sysv4.2uw2*)
5791     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5792     if test -n "$kargmax"; then
5793       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5794     else
5795       lt_cv_sys_max_cmd_len=32768
5796     fi
5797     ;;
5798   *)
5799     # If test is not a shell built-in, we'll probably end up computing a
5800     # maximum length that is only half of the actual maximum length, but
5801     # we can't tell.
5802     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5803     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5804                = "XX$teststring") >/dev/null 2>&1 &&
5805             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5806             lt_cv_sys_max_cmd_len=$new_result &&
5807             test $i != 17 # 1/2 MB should be enough
5808     do
5809       i=`expr $i + 1`
5810       teststring=$teststring$teststring
5811     done
5812     teststring=
5813     # Add a significant safety factor because C++ compilers can tack on massive
5814     # amounts of additional arguments before passing them to the linker.
5815     # It appears as though 1/2 is a usable value.
5816     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5817     ;;
5818   esac
5819
5820 fi
5821
5822 if test -n $lt_cv_sys_max_cmd_len ; then
5823   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5824 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5825 else
5826   echo "$as_me:$LINENO: result: none" >&5
5827 echo "${ECHO_T}none" >&6
5828 fi
5829
5830
5831
5832
5833 # Check for command to grab the raw symbol name followed by C symbol from nm.
5834 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5835 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5836 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839
5840 # These are sane defaults that work on at least a few old systems.
5841 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5842
5843 # Character class describing NM global symbol codes.
5844 symcode='[BCDEGRST]'
5845
5846 # Regexp to match symbols that can be accessed directly from C.
5847 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5848
5849 # Transform an extracted symbol line into a proper C declaration
5850 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5851
5852 # Transform an extracted symbol line into symbol name and symbol address
5853 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'"
5854
5855 # Define system-specific variables.
5856 case $host_os in
5857 aix*)
5858   symcode='[BCDT]'
5859   ;;
5860 cygwin* | mingw* | pw32*)
5861   symcode='[ABCDGISTW]'
5862   ;;
5863 hpux*) # Its linker distinguishes data from code symbols
5864   if test "$host_cpu" = ia64; then
5865     symcode='[ABCDEGRST]'
5866   fi
5867   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5868   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'"
5869   ;;
5870 linux*)
5871   if test "$host_cpu" = ia64; then
5872     symcode='[ABCDGIRSTW]'
5873     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5874     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'"
5875   fi
5876   ;;
5877 irix* | nonstopux*)
5878   symcode='[BCDEGRST]'
5879   ;;
5880 osf*)
5881   symcode='[BCDEGQRST]'
5882   ;;
5883 solaris*)
5884   symcode='[BDRT]'
5885   ;;
5886 sco3.2v5*)
5887   symcode='[DT]'
5888   ;;
5889 sysv4.2uw2*)
5890   symcode='[DT]'
5891   ;;
5892 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5893   symcode='[ABDT]'
5894   ;;
5895 sysv4)
5896   symcode='[DFNSTU]'
5897   ;;
5898 esac
5899
5900 # Handle CRLF in mingw tool chain
5901 opt_cr=
5902 case $build_os in
5903 mingw*)
5904   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5905   ;;
5906 esac
5907
5908 # If we're using GNU nm, then use its standard symbol codes.
5909 case `$NM -V 2>&1` in
5910 *GNU* | *'with BFD'*)
5911   symcode='[ABCDGIRSTW]' ;;
5912 esac
5913
5914 # Try without a prefix undercore, then with it.
5915 for ac_symprfx in "" "_"; do
5916
5917   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5918   symxfrm="\\1 $ac_symprfx\\2 \\2"
5919
5920   # Write the raw and C identifiers.
5921   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5922
5923   # Check to see that the pipe works correctly.
5924   pipe_works=no
5925
5926   rm -f conftest*
5927   cat > conftest.$ac_ext <<EOF
5928 #ifdef __cplusplus
5929 extern "C" {
5930 #endif
5931 char nm_test_var;
5932 void nm_test_func(){}
5933 #ifdef __cplusplus
5934 }
5935 #endif
5936 int main(){nm_test_var='a';nm_test_func();return(0);}
5937 EOF
5938
5939   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5940   (eval $ac_compile) 2>&5
5941   ac_status=$?
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); }; then
5944     # Now try to grab the symbols.
5945     nlist=conftest.nm
5946     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5947   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); } && test -s "$nlist"; then
5951       # Try sorting and uniquifying the output.
5952       if sort "$nlist" | uniq > "$nlist"T; then
5953         mv -f "$nlist"T "$nlist"
5954       else
5955         rm -f "$nlist"T
5956       fi
5957
5958       # Make sure that we snagged all the symbols we need.
5959       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5960         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5961           cat <<EOF > conftest.$ac_ext
5962 #ifdef __cplusplus
5963 extern "C" {
5964 #endif
5965
5966 EOF
5967           # Now generate the symbol file.
5968           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5969
5970           cat <<EOF >> conftest.$ac_ext
5971 #if defined (__STDC__) && __STDC__
5972 # define lt_ptr_t void *
5973 #else
5974 # define lt_ptr_t char *
5975 # define const
5976 #endif
5977
5978 /* The mapping between symbol names and symbols. */
5979 const struct {
5980   const char *name;
5981   lt_ptr_t address;
5982 }
5983 lt_preloaded_symbols[] =
5984 {
5985 EOF
5986           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5987           cat <<\EOF >> conftest.$ac_ext
5988   {0, (lt_ptr_t) 0}
5989 };
5990
5991 #ifdef __cplusplus
5992 }
5993 #endif
5994 EOF
5995           # Now try linking the two files.
5996           mv conftest.$ac_objext conftstm.$ac_objext
5997           lt_save_LIBS="$LIBS"
5998           lt_save_CFLAGS="$CFLAGS"
5999           LIBS="conftstm.$ac_objext"
6000           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6001           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6002   (eval $ac_link) 2>&5
6003   ac_status=$?
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6006             pipe_works=yes
6007           fi
6008           LIBS="$lt_save_LIBS"
6009           CFLAGS="$lt_save_CFLAGS"
6010         else
6011           echo "cannot find nm_test_func in $nlist" >&5
6012         fi
6013       else
6014         echo "cannot find nm_test_var in $nlist" >&5
6015       fi
6016     else
6017       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6018     fi
6019   else
6020     echo "$progname: failed program was:" >&5
6021     cat conftest.$ac_ext >&5
6022   fi
6023   rm -f conftest* conftst*
6024
6025   # Do not use the global_symbol_pipe unless it works.
6026   if test "$pipe_works" = yes; then
6027     break
6028   else
6029     lt_cv_sys_global_symbol_pipe=
6030   fi
6031 done
6032
6033 fi
6034
6035 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6036   lt_cv_sys_global_symbol_to_cdecl=
6037 fi
6038 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6039   echo "$as_me:$LINENO: result: failed" >&5
6040 echo "${ECHO_T}failed" >&6
6041 else
6042   echo "$as_me:$LINENO: result: ok" >&5
6043 echo "${ECHO_T}ok" >&6
6044 fi
6045
6046 echo "$as_me:$LINENO: checking for objdir" >&5
6047 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6048 if test "${lt_cv_objdir+set}" = set; then
6049   echo $ECHO_N "(cached) $ECHO_C" >&6
6050 else
6051   rm -f .libs 2>/dev/null
6052 mkdir .libs 2>/dev/null
6053 if test -d .libs; then
6054   lt_cv_objdir=.libs
6055 else
6056   # MS-DOS does not allow filenames that begin with a dot.
6057   lt_cv_objdir=_libs
6058 fi
6059 rmdir .libs 2>/dev/null
6060 fi
6061 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6062 echo "${ECHO_T}$lt_cv_objdir" >&6
6063 objdir=$lt_cv_objdir
6064
6065
6066
6067
6068
6069 case $host_os in
6070 aix3*)
6071   # AIX sometimes has problems with the GCC collect2 program.  For some
6072   # reason, if we set the COLLECT_NAMES environment variable, the problems
6073   # vanish in a puff of smoke.
6074   if test "X${COLLECT_NAMES+set}" != Xset; then
6075     COLLECT_NAMES=
6076     export COLLECT_NAMES
6077   fi
6078   ;;
6079 esac
6080
6081 # Sed substitution that helps us do robust quoting.  It backslashifies
6082 # metacharacters that are still active within double-quoted strings.
6083 Xsed='sed -e 1s/^X//'
6084 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6085
6086 # Same as above, but do not quote variable references.
6087 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6088
6089 # Sed substitution to delay expansion of an escaped shell variable in a
6090 # double_quote_subst'ed string.
6091 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6092
6093 # Sed substitution to avoid accidental globbing in evaled expressions
6094 no_glob_subst='s/\*/\\\*/g'
6095
6096 # Constants:
6097 rm="rm -f"
6098
6099 # Global variables:
6100 default_ofile=libtool
6101 can_build_shared=yes
6102
6103 # All known linkers require a `.a' archive for static linking (except MSVC,
6104 # which needs '.lib').
6105 libext=a
6106 ltmain="$ac_aux_dir/ltmain.sh"
6107 ofile="$default_ofile"
6108 with_gnu_ld="$lt_cv_prog_gnu_ld"
6109
6110 if test -n "$ac_tool_prefix"; then
6111   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6112 set dummy ${ac_tool_prefix}ar; ac_word=$2
6113 echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6115 if test "${ac_cv_prog_AR+set}" = set; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   if test -n "$AR"; then
6119   ac_cv_prog_AR="$AR" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124   IFS=$as_save_IFS
6125   test -z "$as_dir" && as_dir=.
6126   for ac_exec_ext in '' $ac_executable_extensions; do
6127   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128     ac_cv_prog_AR="${ac_tool_prefix}ar"
6129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6130     break 2
6131   fi
6132 done
6133 done
6134
6135 fi
6136 fi
6137 AR=$ac_cv_prog_AR
6138 if test -n "$AR"; then
6139   echo "$as_me:$LINENO: result: $AR" >&5
6140 echo "${ECHO_T}$AR" >&6
6141 else
6142   echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6
6144 fi
6145
6146 fi
6147 if test -z "$ac_cv_prog_AR"; then
6148   ac_ct_AR=$AR
6149   # Extract the first word of "ar", so it can be a program name with args.
6150 set dummy ar; ac_word=$2
6151 echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6153 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   if test -n "$ac_ct_AR"; then
6157   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164   for ac_exec_ext in '' $ac_executable_extensions; do
6165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166     ac_cv_prog_ac_ct_AR="ar"
6167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168     break 2
6169   fi
6170 done
6171 done
6172
6173   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6174 fi
6175 fi
6176 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6177 if test -n "$ac_ct_AR"; then
6178   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6179 echo "${ECHO_T}$ac_ct_AR" >&6
6180 else
6181   echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6
6183 fi
6184
6185   AR=$ac_ct_AR
6186 else
6187   AR="$ac_cv_prog_AR"
6188 fi
6189
6190 if test -n "$ac_tool_prefix"; then
6191   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6192 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6193 echo "$as_me:$LINENO: checking for $ac_word" >&5
6194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6195 if test "${ac_cv_prog_RANLIB+set}" = set; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   if test -n "$RANLIB"; then
6199   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204   IFS=$as_save_IFS
6205   test -z "$as_dir" && as_dir=.
6206   for ac_exec_ext in '' $ac_executable_extensions; do
6207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210     break 2
6211   fi
6212 done
6213 done
6214
6215 fi
6216 fi
6217 RANLIB=$ac_cv_prog_RANLIB
6218 if test -n "$RANLIB"; then
6219   echo "$as_me:$LINENO: result: $RANLIB" >&5
6220 echo "${ECHO_T}$RANLIB" >&6
6221 else
6222   echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6
6224 fi
6225
6226 fi
6227 if test -z "$ac_cv_prog_RANLIB"; then
6228   ac_ct_RANLIB=$RANLIB
6229   # Extract the first word of "ranlib", so it can be a program name with args.
6230 set dummy ranlib; ac_word=$2
6231 echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6233 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   if test -n "$ac_ct_RANLIB"; then
6237   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6238 else
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242   IFS=$as_save_IFS
6243   test -z "$as_dir" && as_dir=.
6244   for ac_exec_ext in '' $ac_executable_extensions; do
6245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6246     ac_cv_prog_ac_ct_RANLIB="ranlib"
6247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248     break 2
6249   fi
6250 done
6251 done
6252
6253   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6254 fi
6255 fi
6256 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6257 if test -n "$ac_ct_RANLIB"; then
6258   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6259 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6260 else
6261   echo "$as_me:$LINENO: result: no" >&5
6262 echo "${ECHO_T}no" >&6
6263 fi
6264
6265   RANLIB=$ac_ct_RANLIB
6266 else
6267   RANLIB="$ac_cv_prog_RANLIB"
6268 fi
6269
6270 if test -n "$ac_tool_prefix"; then
6271   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6272 set dummy ${ac_tool_prefix}strip; ac_word=$2
6273 echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6275 if test "${ac_cv_prog_STRIP+set}" = set; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   if test -n "$STRIP"; then
6279   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284   IFS=$as_save_IFS
6285   test -z "$as_dir" && as_dir=.
6286   for ac_exec_ext in '' $ac_executable_extensions; do
6287   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6288     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290     break 2
6291   fi
6292 done
6293 done
6294
6295 fi
6296 fi
6297 STRIP=$ac_cv_prog_STRIP
6298 if test -n "$STRIP"; then
6299   echo "$as_me:$LINENO: result: $STRIP" >&5
6300 echo "${ECHO_T}$STRIP" >&6
6301 else
6302   echo "$as_me:$LINENO: result: no" >&5
6303 echo "${ECHO_T}no" >&6
6304 fi
6305
6306 fi
6307 if test -z "$ac_cv_prog_STRIP"; then
6308   ac_ct_STRIP=$STRIP
6309   # Extract the first word of "strip", so it can be a program name with args.
6310 set dummy strip; ac_word=$2
6311 echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6313 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6314   echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316   if test -n "$ac_ct_STRIP"; then
6317   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322   IFS=$as_save_IFS
6323   test -z "$as_dir" && as_dir=.
6324   for ac_exec_ext in '' $ac_executable_extensions; do
6325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326     ac_cv_prog_ac_ct_STRIP="strip"
6327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328     break 2
6329   fi
6330 done
6331 done
6332
6333   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6334 fi
6335 fi
6336 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6337 if test -n "$ac_ct_STRIP"; then
6338   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6339 echo "${ECHO_T}$ac_ct_STRIP" >&6
6340 else
6341   echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6
6343 fi
6344
6345   STRIP=$ac_ct_STRIP
6346 else
6347   STRIP="$ac_cv_prog_STRIP"
6348 fi
6349
6350
6351 old_CC="$CC"
6352 old_CFLAGS="$CFLAGS"
6353
6354 # Set sane defaults for various variables
6355 test -z "$AR" && AR=ar
6356 test -z "$AR_FLAGS" && AR_FLAGS=cru
6357 test -z "$AS" && AS=as
6358 test -z "$CC" && CC=cc
6359 test -z "$LTCC" && LTCC=$CC
6360 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6361 test -z "$DLLTOOL" && DLLTOOL=dlltool
6362 test -z "$LD" && LD=ld
6363 test -z "$LN_S" && LN_S="ln -s"
6364 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6365 test -z "$NM" && NM=nm
6366 test -z "$SED" && SED=sed
6367 test -z "$OBJDUMP" && OBJDUMP=objdump
6368 test -z "$RANLIB" && RANLIB=:
6369 test -z "$STRIP" && STRIP=:
6370 test -z "$ac_objext" && ac_objext=o
6371
6372 # Determine commands to create old-style static archives.
6373 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6374 old_postinstall_cmds='chmod 644 $oldlib'
6375 old_postuninstall_cmds=
6376
6377 if test -n "$RANLIB"; then
6378   case $host_os in
6379   openbsd*)
6380     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6381     ;;
6382   *)
6383     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6384     ;;
6385   esac
6386   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6387 fi
6388
6389 for cc_temp in $compiler""; do
6390   case $cc_temp in
6391     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6392     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6393     \-*) ;;
6394     *) break;;
6395   esac
6396 done
6397 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6398
6399
6400 # Only perform the check for file, if the check method requires it
6401 case $deplibs_check_method in
6402 file_magic*)
6403   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6404     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6405 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6406 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 else
6409   case $MAGIC_CMD in
6410 [\\/*] |  ?:[\\/]*)
6411   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6412   ;;
6413 *)
6414   lt_save_MAGIC_CMD="$MAGIC_CMD"
6415   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6416   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6417   for ac_dir in $ac_dummy; do
6418     IFS="$lt_save_ifs"
6419     test -z "$ac_dir" && ac_dir=.
6420     if test -f $ac_dir/${ac_tool_prefix}file; then
6421       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6422       if test -n "$file_magic_test_file"; then
6423         case $deplibs_check_method in
6424         "file_magic "*)
6425           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6426           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6427           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6428             $EGREP "$file_magic_regex" > /dev/null; then
6429             :
6430           else
6431             cat <<EOF 1>&2
6432
6433 *** Warning: the command libtool uses to detect shared libraries,
6434 *** $file_magic_cmd, produces output that libtool cannot recognize.
6435 *** The result is that libtool may fail to recognize shared libraries
6436 *** as such.  This will affect the creation of libtool libraries that
6437 *** depend on shared libraries, but programs linked with such libtool
6438 *** libraries will work regardless of this problem.  Nevertheless, you
6439 *** may want to report the problem to your system manager and/or to
6440 *** bug-libtool@gnu.org
6441
6442 EOF
6443           fi ;;
6444         esac
6445       fi
6446       break
6447     fi
6448   done
6449   IFS="$lt_save_ifs"
6450   MAGIC_CMD="$lt_save_MAGIC_CMD"
6451   ;;
6452 esac
6453 fi
6454
6455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6456 if test -n "$MAGIC_CMD"; then
6457   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6458 echo "${ECHO_T}$MAGIC_CMD" >&6
6459 else
6460   echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6
6462 fi
6463
6464 if test -z "$lt_cv_path_MAGIC_CMD"; then
6465   if test -n "$ac_tool_prefix"; then
6466     echo "$as_me:$LINENO: checking for file" >&5
6467 echo $ECHO_N "checking for file... $ECHO_C" >&6
6468 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6469   echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471   case $MAGIC_CMD in
6472 [\\/*] |  ?:[\\/]*)
6473   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6474   ;;
6475 *)
6476   lt_save_MAGIC_CMD="$MAGIC_CMD"
6477   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6478   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6479   for ac_dir in $ac_dummy; do
6480     IFS="$lt_save_ifs"
6481     test -z "$ac_dir" && ac_dir=.
6482     if test -f $ac_dir/file; then
6483       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6484       if test -n "$file_magic_test_file"; then
6485         case $deplibs_check_method in
6486         "file_magic "*)
6487           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6488           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6489           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6490             $EGREP "$file_magic_regex" > /dev/null; then
6491             :
6492           else
6493             cat <<EOF 1>&2
6494
6495 *** Warning: the command libtool uses to detect shared libraries,
6496 *** $file_magic_cmd, produces output that libtool cannot recognize.
6497 *** The result is that libtool may fail to recognize shared libraries
6498 *** as such.  This will affect the creation of libtool libraries that
6499 *** depend on shared libraries, but programs linked with such libtool
6500 *** libraries will work regardless of this problem.  Nevertheless, you
6501 *** may want to report the problem to your system manager and/or to
6502 *** bug-libtool@gnu.org
6503
6504 EOF
6505           fi ;;
6506         esac
6507       fi
6508       break
6509     fi
6510   done
6511   IFS="$lt_save_ifs"
6512   MAGIC_CMD="$lt_save_MAGIC_CMD"
6513   ;;
6514 esac
6515 fi
6516
6517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6518 if test -n "$MAGIC_CMD"; then
6519   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6520 echo "${ECHO_T}$MAGIC_CMD" >&6
6521 else
6522   echo "$as_me:$LINENO: result: no" >&5
6523 echo "${ECHO_T}no" >&6
6524 fi
6525
6526   else
6527     MAGIC_CMD=:
6528   fi
6529 fi
6530
6531   fi
6532   ;;
6533 esac
6534
6535 enable_dlopen=no
6536 enable_win32_dll=yes
6537
6538 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6539 if test "${enable_libtool_lock+set}" = set; then
6540   enableval="$enable_libtool_lock"
6541
6542 fi;
6543 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6544
6545
6546 # Check whether --with-pic or --without-pic was given.
6547 if test "${with_pic+set}" = set; then
6548   withval="$with_pic"
6549   pic_mode="$withval"
6550 else
6551   pic_mode=default
6552 fi;
6553 test -z "$pic_mode" && pic_mode=default
6554
6555 # Use C for the default configuration in the libtool script
6556 tagname=
6557 lt_save_CC="$CC"
6558 ac_ext=c
6559 ac_cpp='$CPP $CPPFLAGS'
6560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6563
6564
6565 # Source file extension for C test sources.
6566 ac_ext=c
6567
6568 # Object file extension for compiled C test sources.
6569 objext=o
6570 objext=$objext
6571
6572 # Code to be used in simple compile tests
6573 lt_simple_compile_test_code="int some_variable = 0;\n"
6574
6575 # Code to be used in simple link tests
6576 lt_simple_link_test_code='int main(){return(0);}\n'
6577
6578
6579 # If no C compiler was specified, use CC.
6580 LTCC=${LTCC-"$CC"}
6581
6582 # If no C compiler flags were specified, use CFLAGS.
6583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6584
6585 # Allow CC to be a program name with arguments.
6586 compiler=$CC
6587
6588
6589 # save warnings/boilerplate of simple test code
6590 ac_outfile=conftest.$ac_objext
6591 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6592 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6593 _lt_compiler_boilerplate=`cat conftest.err`
6594 $rm conftest*
6595
6596 ac_outfile=conftest.$ac_objext
6597 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6598 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6599 _lt_linker_boilerplate=`cat conftest.err`
6600 $rm conftest*
6601
6602
6603
6604 lt_prog_compiler_no_builtin_flag=
6605
6606 if test "$GCC" = yes; then
6607   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6608
6609
6610 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6611 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6612 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6613   echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615   lt_cv_prog_compiler_rtti_exceptions=no
6616   ac_outfile=conftest.$ac_objext
6617    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6618    lt_compiler_flag="-fno-rtti -fno-exceptions"
6619    # Insert the option either (1) after the last *FLAGS variable, or
6620    # (2) before a word containing "conftest.", or (3) at the end.
6621    # Note that $ac_compile itself does not contain backslashes and begins
6622    # with a dollar sign (not a hyphen), so the echo should work correctly.
6623    # The option is referenced via a variable to avoid confusing sed.
6624    lt_compile=`echo "$ac_compile" | $SED \
6625    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6626    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6627    -e 's:$: $lt_compiler_flag:'`
6628    (eval echo "\"\$as_me:6628: $lt_compile\"" >&5)
6629    (eval "$lt_compile" 2>conftest.err)
6630    ac_status=$?
6631    cat conftest.err >&5
6632    echo "$as_me:6632: \$? = $ac_status" >&5
6633    if (exit $ac_status) && test -s "$ac_outfile"; then
6634      # The compiler can only warn and ignore the option if not recognized
6635      # So say no if there are warnings other than the usual output.
6636      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6637      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6638      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6639        lt_cv_prog_compiler_rtti_exceptions=yes
6640      fi
6641    fi
6642    $rm conftest*
6643
6644 fi
6645 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6646 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6647
6648 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6649     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6650 else
6651     :
6652 fi
6653
6654 fi
6655
6656 lt_prog_compiler_wl=
6657 lt_prog_compiler_pic=
6658 lt_prog_compiler_static=
6659
6660 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6661 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6662
6663   if test "$GCC" = yes; then
6664     lt_prog_compiler_wl='-Wl,'
6665     lt_prog_compiler_static='-static'
6666
6667     case $host_os in
6668       aix*)
6669       # All AIX code is PIC.
6670       if test "$host_cpu" = ia64; then
6671         # AIX 5 now supports IA64 processor
6672         lt_prog_compiler_static='-Bstatic'
6673       fi
6674       ;;
6675
6676     amigaos*)
6677       # FIXME: we need at least 68020 code to build shared libraries, but
6678       # adding the `-m68020' flag to GCC prevents building anything better,
6679       # like `-m68040'.
6680       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6681       ;;
6682
6683     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6684       # PIC is the default for these OSes.
6685       ;;
6686
6687     mingw* | pw32* | os2*)
6688       # This hack is so that the source file can tell whether it is being
6689       # built for inclusion in a dll (and should export symbols for example).
6690       lt_prog_compiler_pic='-DDLL_EXPORT'
6691       ;;
6692
6693     darwin* | rhapsody*)
6694       # PIC is the default on this platform
6695       # Common symbols not allowed in MH_DYLIB files
6696       lt_prog_compiler_pic='-fno-common'
6697       ;;
6698
6699     interix3*)
6700       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6701       # Instead, we relocate shared libraries at runtime.
6702       ;;
6703
6704     msdosdjgpp*)
6705       # Just because we use GCC doesn't mean we suddenly get shared libraries
6706       # on systems that don't support them.
6707       lt_prog_compiler_can_build_shared=no
6708       enable_shared=no
6709       ;;
6710
6711     sysv4*MP*)
6712       if test -d /usr/nec; then
6713         lt_prog_compiler_pic=-Kconform_pic
6714       fi
6715       ;;
6716
6717     hpux*)
6718       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6719       # not for PA HP-UX.
6720       case $host_cpu in
6721       hppa*64*|ia64*)
6722         # +Z the default
6723         ;;
6724       *)
6725         lt_prog_compiler_pic='-fPIC'
6726         ;;
6727       esac
6728       ;;
6729
6730     *)
6731       lt_prog_compiler_pic='-fPIC'
6732       ;;
6733     esac
6734   else
6735     # PORTME Check for flag to pass linker flags through the system compiler.
6736     case $host_os in
6737     aix*)
6738       lt_prog_compiler_wl='-Wl,'
6739       if test "$host_cpu" = ia64; then
6740         # AIX 5 now supports IA64 processor
6741         lt_prog_compiler_static='-Bstatic'
6742       else
6743         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6744       fi
6745       ;;
6746       darwin*)
6747         # PIC is the default on this platform
6748         # Common symbols not allowed in MH_DYLIB files
6749        case $cc_basename in
6750          xlc*)
6751          lt_prog_compiler_pic='-qnocommon'
6752          lt_prog_compiler_wl='-Wl,'
6753          ;;
6754        esac
6755        ;;
6756
6757     mingw* | pw32* | os2*)
6758       # This hack is so that the source file can tell whether it is being
6759       # built for inclusion in a dll (and should export symbols for example).
6760       lt_prog_compiler_pic='-DDLL_EXPORT'
6761       ;;
6762
6763     hpux9* | hpux10* | hpux11*)
6764       lt_prog_compiler_wl='-Wl,'
6765       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6766       # not for PA HP-UX.
6767       case $host_cpu in
6768       hppa*64*|ia64*)
6769         # +Z the default
6770         ;;
6771       *)
6772         lt_prog_compiler_pic='+Z'
6773         ;;
6774       esac
6775       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6776       lt_prog_compiler_static='${wl}-a ${wl}archive'
6777       ;;
6778
6779     irix5* | irix6* | nonstopux*)
6780       lt_prog_compiler_wl='-Wl,'
6781       # PIC (with -KPIC) is the default.
6782       lt_prog_compiler_static='-non_shared'
6783       ;;
6784
6785     newsos6)
6786       lt_prog_compiler_pic='-KPIC'
6787       lt_prog_compiler_static='-Bstatic'
6788       ;;
6789
6790     linux*)
6791       case $cc_basename in
6792       icc* | ecc*)
6793         lt_prog_compiler_wl='-Wl,'
6794         lt_prog_compiler_pic='-KPIC'
6795         lt_prog_compiler_static='-static'
6796         ;;
6797       pgcc* | pgf77* | pgf90* | pgf95*)
6798         # Portland Group compilers (*not* the Pentium gcc compiler,
6799         # which looks to be a dead project)
6800         lt_prog_compiler_wl='-Wl,'
6801         lt_prog_compiler_pic='-fpic'
6802         lt_prog_compiler_static='-Bstatic'
6803         ;;
6804       ccc*)
6805         lt_prog_compiler_wl='-Wl,'
6806         # All Alpha code is PIC.
6807         lt_prog_compiler_static='-non_shared'
6808         ;;
6809       esac
6810       ;;
6811
6812     osf3* | osf4* | osf5*)
6813       lt_prog_compiler_wl='-Wl,'
6814       # All OSF/1 code is PIC.
6815       lt_prog_compiler_static='-non_shared'
6816       ;;
6817
6818     solaris*)
6819       lt_prog_compiler_pic='-KPIC'
6820       lt_prog_compiler_static='-Bstatic'
6821       case $cc_basename in
6822       f77* | f90* | f95*)
6823         lt_prog_compiler_wl='-Qoption ld ';;
6824       *)
6825         lt_prog_compiler_wl='-Wl,';;
6826       esac
6827       ;;
6828
6829     sunos4*)
6830       lt_prog_compiler_wl='-Qoption ld '
6831       lt_prog_compiler_pic='-PIC'
6832       lt_prog_compiler_static='-Bstatic'
6833       ;;
6834
6835     sysv4 | sysv4.2uw2* | sysv4.3*)
6836       lt_prog_compiler_wl='-Wl,'
6837       lt_prog_compiler_pic='-KPIC'
6838       lt_prog_compiler_static='-Bstatic'
6839       ;;
6840
6841     sysv4*MP*)
6842       if test -d /usr/nec ;then
6843         lt_prog_compiler_pic='-Kconform_pic'
6844         lt_prog_compiler_static='-Bstatic'
6845       fi
6846       ;;
6847
6848     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6849       lt_prog_compiler_wl='-Wl,'
6850       lt_prog_compiler_pic='-KPIC'
6851       lt_prog_compiler_static='-Bstatic'
6852       ;;
6853
6854     unicos*)
6855       lt_prog_compiler_wl='-Wl,'
6856       lt_prog_compiler_can_build_shared=no
6857       ;;
6858
6859     uts4*)
6860       lt_prog_compiler_pic='-pic'
6861       lt_prog_compiler_static='-Bstatic'
6862       ;;
6863
6864     *)
6865       lt_prog_compiler_can_build_shared=no
6866       ;;
6867     esac
6868   fi
6869
6870 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6871 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6872
6873 #
6874 # Check to make sure the PIC flag actually works.
6875 #
6876 if test -n "$lt_prog_compiler_pic"; then
6877
6878 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6879 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6880 if test "${lt_prog_compiler_pic_works+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   lt_prog_compiler_pic_works=no
6884   ac_outfile=conftest.$ac_objext
6885    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6886    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6887    # Insert the option either (1) after the last *FLAGS variable, or
6888    # (2) before a word containing "conftest.", or (3) at the end.
6889    # Note that $ac_compile itself does not contain backslashes and begins
6890    # with a dollar sign (not a hyphen), so the echo should work correctly.
6891    # The option is referenced via a variable to avoid confusing sed.
6892    lt_compile=`echo "$ac_compile" | $SED \
6893    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6895    -e 's:$: $lt_compiler_flag:'`
6896    (eval echo "\"\$as_me:6896: $lt_compile\"" >&5)
6897    (eval "$lt_compile" 2>conftest.err)
6898    ac_status=$?
6899    cat conftest.err >&5
6900    echo "$as_me:6900: \$? = $ac_status" >&5
6901    if (exit $ac_status) && test -s "$ac_outfile"; then
6902      # The compiler can only warn and ignore the option if not recognized
6903      # So say no if there are warnings other than the usual output.
6904      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6905      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6906      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6907        lt_prog_compiler_pic_works=yes
6908      fi
6909    fi
6910    $rm conftest*
6911
6912 fi
6913 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6914 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6915
6916 if test x"$lt_prog_compiler_pic_works" = xyes; then
6917     case $lt_prog_compiler_pic in
6918      "" | " "*) ;;
6919      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6920      esac
6921 else
6922     lt_prog_compiler_pic=
6923      lt_prog_compiler_can_build_shared=no
6924 fi
6925
6926 fi
6927 case $host_os in
6928   # For platforms which do not support PIC, -DPIC is meaningless:
6929   *djgpp*)
6930     lt_prog_compiler_pic=
6931     ;;
6932   *)
6933     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6934     ;;
6935 esac
6936
6937 #
6938 # Check to make sure the static flag actually works.
6939 #
6940 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6941 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6942 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6943 if test "${lt_prog_compiler_static_works+set}" = set; then
6944   echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946   lt_prog_compiler_static_works=no
6947    save_LDFLAGS="$LDFLAGS"
6948    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6949    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6950    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6951      # The linker can only warn and ignore the option if not recognized
6952      # So say no if there are warnings
6953      if test -s conftest.err; then
6954        # Append any errors to the config.log.
6955        cat conftest.err 1>&5
6956        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6957        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6958        if diff conftest.exp conftest.er2 >/dev/null; then
6959          lt_prog_compiler_static_works=yes
6960        fi
6961      else
6962        lt_prog_compiler_static_works=yes
6963      fi
6964    fi
6965    $rm conftest*
6966    LDFLAGS="$save_LDFLAGS"
6967
6968 fi
6969 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6970 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6971
6972 if test x"$lt_prog_compiler_static_works" = xyes; then
6973     :
6974 else
6975     lt_prog_compiler_static=
6976 fi
6977
6978
6979 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6980 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6981 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6982   echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984   lt_cv_prog_compiler_c_o=no
6985    $rm -r conftest 2>/dev/null
6986    mkdir conftest
6987    cd conftest
6988    mkdir out
6989    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6990
6991    lt_compiler_flag="-o out/conftest2.$ac_objext"
6992    # Insert the option either (1) after the last *FLAGS variable, or
6993    # (2) before a word containing "conftest.", or (3) at the end.
6994    # Note that $ac_compile itself does not contain backslashes and begins
6995    # with a dollar sign (not a hyphen), so the echo should work correctly.
6996    lt_compile=`echo "$ac_compile" | $SED \
6997    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6998    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6999    -e 's:$: $lt_compiler_flag:'`
7000    (eval echo "\"\$as_me:7000: $lt_compile\"" >&5)
7001    (eval "$lt_compile" 2>out/conftest.err)
7002    ac_status=$?
7003    cat out/conftest.err >&5
7004    echo "$as_me:7004: \$? = $ac_status" >&5
7005    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7006    then
7007      # The compiler can only warn and ignore the option if not recognized
7008      # So say no if there are warnings
7009      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7010      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7011      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7012        lt_cv_prog_compiler_c_o=yes
7013      fi
7014    fi
7015    chmod u+w . 2>&5
7016    $rm conftest*
7017    # SGI C++ compiler will create directory out/ii_files/ for
7018    # template instantiation
7019    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7020    $rm out/* && rmdir out
7021    cd ..
7022    rmdir conftest
7023    $rm conftest*
7024
7025 fi
7026 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7027 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7028
7029
7030 hard_links="nottested"
7031 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7032   # do not overwrite the value of need_locks provided by the user
7033   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7034 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7035   hard_links=yes
7036   $rm conftest*
7037   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7038   touch conftest.a
7039   ln conftest.a conftest.b 2>&5 || hard_links=no
7040   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7041   echo "$as_me:$LINENO: result: $hard_links" >&5
7042 echo "${ECHO_T}$hard_links" >&6
7043   if test "$hard_links" = no; then
7044     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7045 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7046     need_locks=warn
7047   fi
7048 else
7049   need_locks=no
7050 fi
7051
7052 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7053 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7054
7055   runpath_var=
7056   allow_undefined_flag=
7057   enable_shared_with_static_runtimes=no
7058   archive_cmds=
7059   archive_expsym_cmds=
7060   old_archive_From_new_cmds=
7061   old_archive_from_expsyms_cmds=
7062   export_dynamic_flag_spec=
7063   whole_archive_flag_spec=
7064   thread_safe_flag_spec=
7065   hardcode_libdir_flag_spec=
7066   hardcode_libdir_flag_spec_ld=
7067   hardcode_libdir_separator=
7068   hardcode_direct=no
7069   hardcode_minus_L=no
7070   hardcode_shlibpath_var=unsupported
7071   link_all_deplibs=unknown
7072   hardcode_automatic=no
7073   module_cmds=
7074   module_expsym_cmds=
7075   always_export_symbols=no
7076   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7077   # include_expsyms should be a list of space-separated symbols to be *always*
7078   # included in the symbol list
7079   include_expsyms=
7080   # exclude_expsyms can be an extended regexp of symbols to exclude
7081   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7082   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7083   # as well as any symbol that contains `d'.
7084   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7085   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7086   # platforms (ab)use it in PIC code, but their linkers get confused if
7087   # the symbol is explicitly referenced.  Since portable code cannot
7088   # rely on this symbol name, it's probably fine to never include it in
7089   # preloaded symbol tables.
7090   extract_expsyms_cmds=
7091   # Just being paranoid about ensuring that cc_basename is set.
7092   for cc_temp in $compiler""; do
7093   case $cc_temp in
7094     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7095     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7096     \-*) ;;
7097     *) break;;
7098   esac
7099 done
7100 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7101
7102   case $host_os in
7103   cygwin* | mingw* | pw32*)
7104     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7105     # When not using gcc, we currently assume that we are using
7106     # Microsoft Visual C++.
7107     if test "$GCC" != yes; then
7108       with_gnu_ld=no
7109     fi
7110     ;;
7111   interix*)
7112     # we just hope/assume this is gcc and not c89 (= MSVC++)
7113     with_gnu_ld=yes
7114     ;;
7115   openbsd*)
7116     with_gnu_ld=no
7117     ;;
7118   esac
7119
7120   ld_shlibs=yes
7121   if test "$with_gnu_ld" = yes; then
7122     # If archive_cmds runs LD, not CC, wlarc should be empty
7123     wlarc='${wl}'
7124
7125     # Set some defaults for GNU ld with shared library support. These
7126     # are reset later if shared libraries are not supported. Putting them
7127     # here allows them to be overridden if necessary.
7128     runpath_var=LD_RUN_PATH
7129     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7130     export_dynamic_flag_spec='${wl}--export-dynamic'
7131     # ancient GNU ld didn't support --whole-archive et. al.
7132     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7133         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7134       else
7135         whole_archive_flag_spec=
7136     fi
7137     supports_anon_versioning=no
7138     case `$LD -v 2>/dev/null` in
7139       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7140       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7141       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7142       *\ 2.11.*) ;; # other 2.11 versions
7143       *) supports_anon_versioning=yes ;;
7144     esac
7145
7146     # See if GNU ld supports shared libraries.
7147     case $host_os in
7148     aix3* | aix4* | aix5*)
7149       # On AIX/PPC, the GNU linker is very broken
7150       if test "$host_cpu" != ia64; then
7151         ld_shlibs=no
7152         cat <<EOF 1>&2
7153
7154 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7155 *** to be unable to reliably create shared libraries on AIX.
7156 *** Therefore, libtool is disabling shared libraries support.  If you
7157 *** really care for shared libraries, you may want to modify your PATH
7158 *** so that a non-GNU linker is found, and then restart.
7159
7160 EOF
7161       fi
7162       ;;
7163
7164     amigaos*)
7165       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)'
7166       hardcode_libdir_flag_spec='-L$libdir'
7167       hardcode_minus_L=yes
7168
7169       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7170       # that the semantics of dynamic libraries on AmigaOS, at least up
7171       # to version 4, is to share data among multiple programs linked
7172       # with the same dynamic library.  Since this doesn't match the
7173       # behavior of shared libraries on other platforms, we can't use
7174       # them.
7175       ld_shlibs=no
7176       ;;
7177
7178     beos*)
7179       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7180         allow_undefined_flag=unsupported
7181         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7182         # support --undefined.  This deserves some investigation.  FIXME
7183         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7184       else
7185         ld_shlibs=no
7186       fi
7187       ;;
7188
7189     cygwin* | mingw* | pw32*)
7190       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7191       # as there is no search path for DLLs.
7192       hardcode_libdir_flag_spec='-L$libdir'
7193       allow_undefined_flag=unsupported
7194       always_export_symbols=no
7195       enable_shared_with_static_runtimes=yes
7196       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7197
7198       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7199         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7200         # If the export-symbols file already is a .def file (1st line
7201         # is EXPORTS), use it as is; otherwise, prepend...
7202         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7203           cp $export_symbols $output_objdir/$soname.def;
7204         else
7205           echo EXPORTS > $output_objdir/$soname.def;
7206           cat $export_symbols >> $output_objdir/$soname.def;
7207         fi~
7208         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7209       else
7210         ld_shlibs=no
7211       fi
7212       ;;
7213
7214     interix3*)
7215       hardcode_direct=no
7216       hardcode_shlibpath_var=no
7217       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7218       export_dynamic_flag_spec='${wl}-E'
7219       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7220       # Instead, shared libraries are loaded at an image base (0x10000000 by
7221       # default) and relocated if they conflict, which is a slow very memory
7222       # consuming and fragmenting process.  To avoid this, we pick a random,
7223       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7224       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7225       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7226       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'
7227       ;;
7228
7229     linux*)
7230       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7231         tmp_addflag=
7232         case $cc_basename,$host_cpu in
7233         pgcc*)                          # Portland Group C compiler
7234           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'
7235           tmp_addflag=' $pic_flag'
7236           ;;
7237         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7238           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'
7239           tmp_addflag=' $pic_flag -Mnomain' ;;
7240         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7241           tmp_addflag=' -i_dynamic' ;;
7242         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7243           tmp_addflag=' -i_dynamic -nofor_main' ;;
7244         ifc* | ifort*)                  # Intel Fortran compiler
7245           tmp_addflag=' -nofor_main' ;;
7246         esac
7247         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7248
7249         if test $supports_anon_versioning = yes; then
7250           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7251   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7252   $echo "local: *; };" >> $output_objdir/$libname.ver~
7253           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7254         fi
7255         link_all_deplibs=no
7256       else
7257         ld_shlibs=no
7258       fi
7259       ;;
7260
7261     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7262       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7263         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7264         wlarc=
7265       else
7266         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7267         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7268       fi
7269       ;;
7270
7271     solaris*)
7272       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7273         ld_shlibs=no
7274         cat <<EOF 1>&2
7275
7276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7277 *** create shared libraries on Solaris systems.  Therefore, libtool
7278 *** is disabling shared libraries support.  We urge you to upgrade GNU
7279 *** binutils to release 2.9.1 or newer.  Another option is to modify
7280 *** your PATH or compiler configuration so that the native linker is
7281 *** used, and then restart.
7282
7283 EOF
7284       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7285         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7286         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7287       else
7288         ld_shlibs=no
7289       fi
7290       ;;
7291
7292     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7293       case `$LD -v 2>&1` in
7294         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7295         ld_shlibs=no
7296         cat <<_LT_EOF 1>&2
7297
7298 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7299 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7300 *** is disabling shared libraries support.  We urge you to upgrade GNU
7301 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7302 *** your PATH or compiler configuration so that the native linker is
7303 *** used, and then restart.
7304
7305 _LT_EOF
7306         ;;
7307         *)
7308           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7309             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7310             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7311             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7312           else
7313             ld_shlibs=no
7314           fi
7315         ;;
7316       esac
7317       ;;
7318
7319     sunos4*)
7320       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7321       wlarc=
7322       hardcode_direct=yes
7323       hardcode_shlibpath_var=no
7324       ;;
7325
7326     *)
7327       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7328         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7329         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7330       else
7331         ld_shlibs=no
7332       fi
7333       ;;
7334     esac
7335
7336     if test "$ld_shlibs" = no; then
7337       runpath_var=
7338       hardcode_libdir_flag_spec=
7339       export_dynamic_flag_spec=
7340       whole_archive_flag_spec=
7341     fi
7342   else
7343     # PORTME fill in a description of your system's linker (not GNU ld)
7344     case $host_os in
7345     aix3*)
7346       allow_undefined_flag=unsupported
7347       always_export_symbols=yes
7348       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'
7349       # Note: this linker hardcodes the directories in LIBPATH if there
7350       # are no directories specified by -L.
7351       hardcode_minus_L=yes
7352       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7353         # Neither direct hardcoding nor static linking is supported with a
7354         # broken collect2.
7355         hardcode_direct=unsupported
7356       fi
7357       ;;
7358
7359     aix4* | aix5*)
7360       if test "$host_cpu" = ia64; then
7361         # On IA64, the linker does run time linking by default, so we don't
7362         # have to do anything special.
7363         aix_use_runtimelinking=no
7364         exp_sym_flag='-Bexport'
7365         no_entry_flag=""
7366       else
7367         # If we're using GNU nm, then we don't want the "-C" option.
7368         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7369         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7370           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'
7371         else
7372           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'
7373         fi
7374         aix_use_runtimelinking=no
7375
7376         # Test if we are trying to use run time linking or normal
7377         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7378         # need to do runtime linking.
7379         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7380           for ld_flag in $LDFLAGS; do
7381           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7382             aix_use_runtimelinking=yes
7383             break
7384           fi
7385           done
7386           ;;
7387         esac
7388
7389         exp_sym_flag='-bexport'
7390         no_entry_flag='-bnoentry'
7391       fi
7392
7393       # When large executables or shared objects are built, AIX ld can
7394       # have problems creating the table of contents.  If linking a library
7395       # or program results in "error TOC overflow" add -mminimal-toc to
7396       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7397       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7398
7399       archive_cmds=''
7400       hardcode_direct=yes
7401       hardcode_libdir_separator=':'
7402       link_all_deplibs=yes
7403
7404       if test "$GCC" = yes; then
7405         case $host_os in aix4.[012]|aix4.[012].*)
7406         # We only want to do this on AIX 4.2 and lower, the check
7407         # below for broken collect2 doesn't work under 4.3+
7408           collect2name=`${CC} -print-prog-name=collect2`
7409           if test -f "$collect2name" && \
7410            strings "$collect2name" | grep resolve_lib_name >/dev/null
7411           then
7412           # We have reworked collect2
7413           hardcode_direct=yes
7414           else
7415           # We have old collect2
7416           hardcode_direct=unsupported
7417           # It fails to find uninstalled libraries when the uninstalled
7418           # path is not listed in the libpath.  Setting hardcode_minus_L
7419           # to unsupported forces relinking
7420           hardcode_minus_L=yes
7421           hardcode_libdir_flag_spec='-L$libdir'
7422           hardcode_libdir_separator=
7423           fi
7424           ;;
7425         esac
7426         shared_flag='-shared'
7427         if test "$aix_use_runtimelinking" = yes; then
7428           shared_flag="$shared_flag "'${wl}-G'
7429         fi
7430       else
7431         # not using gcc
7432         if test "$host_cpu" = ia64; then
7433         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7434         # chokes on -Wl,-G. The following line is correct:
7435           shared_flag='-G'
7436         else
7437           if test "$aix_use_runtimelinking" = yes; then
7438             shared_flag='${wl}-G'
7439           else
7440             shared_flag='${wl}-bM:SRE'
7441           fi
7442         fi
7443       fi
7444
7445       # It seems that -bexpall does not export symbols beginning with
7446       # underscore (_), so it is better to generate a list of symbols to export.
7447       always_export_symbols=yes
7448       if test "$aix_use_runtimelinking" = yes; then
7449         # Warning - without using the other runtime loading flags (-brtl),
7450         # -berok will link without error, but may produce a broken library.
7451         allow_undefined_flag='-berok'
7452        # Determine the default libpath from the value encoded in an empty executable.
7453        cat >conftest.$ac_ext <<_ACEOF
7454 /* confdefs.h.  */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h.  */
7459
7460 int
7461 main ()
7462 {
7463
7464   ;
7465   return 0;
7466 }
7467 _ACEOF
7468 rm -f conftest.$ac_objext conftest$ac_exeext
7469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7470   (eval $ac_link) 2>conftest.er1
7471   ac_status=$?
7472   grep -v '^ *+' conftest.er1 >conftest.err
7473   rm -f conftest.er1
7474   cat conftest.err >&5
7475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476   (exit $ac_status); } &&
7477          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479   (eval $ac_try) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); }; } &&
7483          { ac_try='test -s conftest$ac_exeext'
7484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485   (eval $ac_try) 2>&5
7486   ac_status=$?
7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); }; }; then
7489
7490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7491 }'`
7492 # Check for a 64-bit object if we didn't find anything.
7493 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; }
7494 }'`; fi
7495 else
7496   echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7498
7499 fi
7500 rm -f conftest.err conftest.$ac_objext \
7501       conftest$ac_exeext conftest.$ac_ext
7502 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7503
7504        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7505         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"
7506        else
7507         if test "$host_cpu" = ia64; then
7508           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7509           allow_undefined_flag="-z nodefs"
7510           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"
7511         else
7512          # Determine the default libpath from the value encoded in an empty executable.
7513          cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h.  */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h.  */
7519
7520 int
7521 main ()
7522 {
7523
7524   ;
7525   return 0;
7526 }
7527 _ACEOF
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530   (eval $ac_link) 2>conftest.er1
7531   ac_status=$?
7532   grep -v '^ *+' conftest.er1 >conftest.err
7533   rm -f conftest.er1
7534   cat conftest.err >&5
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); } &&
7537          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539   (eval $ac_try) 2>&5
7540   ac_status=$?
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); }; } &&
7543          { ac_try='test -s conftest$ac_exeext'
7544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545   (eval $ac_try) 2>&5
7546   ac_status=$?
7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); }; }; then
7549
7550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7551 }'`
7552 # Check for a 64-bit object if we didn't find anything.
7553 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; }
7554 }'`; fi
7555 else
7556   echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7558
7559 fi
7560 rm -f conftest.err conftest.$ac_objext \
7561       conftest$ac_exeext conftest.$ac_ext
7562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7563
7564          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7565           # Warning - without using the other run time loading flags,
7566           # -berok will link without error, but may produce a broken library.
7567           no_undefined_flag=' ${wl}-bernotok'
7568           allow_undefined_flag=' ${wl}-berok'
7569           # Exported symbols can be pulled into shared objects from archives
7570           whole_archive_flag_spec='$convenience'
7571           archive_cmds_need_lc=yes
7572           # This is similar to how AIX traditionally builds its shared libraries.
7573           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'
7574         fi
7575       fi
7576       ;;
7577
7578     amigaos*)
7579       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)'
7580       hardcode_libdir_flag_spec='-L$libdir'
7581       hardcode_minus_L=yes
7582       # see comment about different semantics on the GNU ld section
7583       ld_shlibs=no
7584       ;;
7585
7586     bsdi[45]*)
7587       export_dynamic_flag_spec=-rdynamic
7588       ;;
7589
7590     cygwin* | mingw* | pw32*)
7591       # When not using gcc, we currently assume that we are using
7592       # Microsoft Visual C++.
7593       # hardcode_libdir_flag_spec is actually meaningless, as there is
7594       # no search path for DLLs.
7595       hardcode_libdir_flag_spec=' '
7596       allow_undefined_flag=unsupported
7597       # Tell ltmain to make .lib files, not .a files.
7598       libext=lib
7599       # Tell ltmain to make .dll files, not .so files.
7600       shrext_cmds=".dll"
7601       # FIXME: Setting linknames here is a bad hack.
7602       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7603       # The linker will automatically build a .lib file if we build a DLL.
7604       old_archive_From_new_cmds='true'
7605       # FIXME: Should let the user specify the lib program.
7606       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7607       fix_srcfile_path='`cygpath -w "$srcfile"`'
7608       enable_shared_with_static_runtimes=yes
7609       ;;
7610
7611     darwin* | rhapsody*)
7612       case $host_os in
7613         rhapsody* | darwin1.[012])
7614          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7615          ;;
7616        *) # Darwin 1.3 on
7617          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7618            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7619          else
7620            case ${MACOSX_DEPLOYMENT_TARGET} in
7621              10.[012])
7622                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7623                ;;
7624              10.*)
7625                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7626                ;;
7627            esac
7628          fi
7629          ;;
7630       esac
7631       archive_cmds_need_lc=no
7632       hardcode_direct=no
7633       hardcode_automatic=yes
7634       hardcode_shlibpath_var=unsupported
7635       whole_archive_flag_spec=''
7636       link_all_deplibs=yes
7637     if test "$GCC" = yes ; then
7638         output_verbose_link_cmd='echo'
7639         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7640       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7641       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7642       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}'
7643       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}'
7644     else
7645       case $cc_basename in
7646         xlc*)
7647          output_verbose_link_cmd='echo'
7648          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7649          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7650           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7651          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}'
7652           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}'
7653           ;;
7654        *)
7655          ld_shlibs=no
7656           ;;
7657       esac
7658     fi
7659       ;;
7660
7661     dgux*)
7662       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7663       hardcode_libdir_flag_spec='-L$libdir'
7664       hardcode_shlibpath_var=no
7665       ;;
7666
7667     freebsd1*)
7668       ld_shlibs=no
7669       ;;
7670
7671     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7672     # support.  Future versions do this automatically, but an explicit c++rt0.o
7673     # does not break anything, and helps significantly (at the cost of a little
7674     # extra space).
7675     freebsd2.2*)
7676       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7677       hardcode_libdir_flag_spec='-R$libdir'
7678       hardcode_direct=yes
7679       hardcode_shlibpath_var=no
7680       ;;
7681
7682     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7683     freebsd2*)
7684       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7685       hardcode_direct=yes
7686       hardcode_minus_L=yes
7687       hardcode_shlibpath_var=no
7688       ;;
7689
7690     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7691     freebsd* | dragonfly*)
7692       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7693       hardcode_libdir_flag_spec='-R$libdir'
7694       hardcode_direct=yes
7695       hardcode_shlibpath_var=no
7696       ;;
7697
7698     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
7699     kfreebsd*-gnu)
7700       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7701       hardcode_libdir_flag_spec='-R$libdir'
7702       hardcode_direct=yes
7703       hardcode_shlibpath_var=no
7704       link_all_deplibs=no
7705       ;;
7706
7707     hpux9*)
7708       if test "$GCC" = yes; then
7709         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'
7710       else
7711         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'
7712       fi
7713       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7714       hardcode_libdir_separator=:
7715       hardcode_direct=yes
7716
7717       # hardcode_minus_L: Not really in the search PATH,
7718       # but as the default location of the library.
7719       hardcode_minus_L=yes
7720       export_dynamic_flag_spec='${wl}-E'
7721       ;;
7722
7723     hpux10*)
7724       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7725         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7726       else
7727         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7728       fi
7729       if test "$with_gnu_ld" = no; then
7730         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7731         hardcode_libdir_separator=:
7732
7733         hardcode_direct=yes
7734         export_dynamic_flag_spec='${wl}-E'
7735
7736         # hardcode_minus_L: Not really in the search PATH,
7737         # but as the default location of the library.
7738         hardcode_minus_L=yes
7739       fi
7740       ;;
7741
7742     hpux11*)
7743       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7744         case $host_cpu in
7745         hppa*64*)
7746           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7747           ;;
7748         ia64*)
7749           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7750           ;;
7751         *)
7752           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7753           ;;
7754         esac
7755       else
7756         case $host_cpu in
7757         hppa*64*)
7758           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7759           ;;
7760         ia64*)
7761           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7762           ;;
7763         *)
7764           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7765           ;;
7766         esac
7767       fi
7768       if test "$with_gnu_ld" = no; then
7769         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7770         hardcode_libdir_separator=:
7771
7772         case $host_cpu in
7773         hppa*64*|ia64*)
7774           hardcode_libdir_flag_spec_ld='+b $libdir'
7775           hardcode_direct=no
7776           hardcode_shlibpath_var=no
7777           ;;
7778         *)
7779           hardcode_direct=yes
7780           export_dynamic_flag_spec='${wl}-E'
7781
7782           # hardcode_minus_L: Not really in the search PATH,
7783           # but as the default location of the library.
7784           hardcode_minus_L=yes
7785           ;;
7786         esac
7787       fi
7788       ;;
7789
7790     irix5* | irix6* | nonstopux*)
7791       if test "$GCC" = yes; then
7792         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'
7793       else
7794         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'
7795         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7796       fi
7797       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7798       hardcode_libdir_separator=:
7799       link_all_deplibs=yes
7800       ;;
7801
7802     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7803       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7804         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7805       else
7806         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7807       fi
7808       hardcode_libdir_flag_spec='-R$libdir'
7809       hardcode_direct=yes
7810       hardcode_shlibpath_var=no
7811       ;;
7812
7813     newsos6)
7814       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7815       hardcode_direct=yes
7816       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7817       hardcode_libdir_separator=:
7818       hardcode_shlibpath_var=no
7819       ;;
7820
7821     openbsd*)
7822       hardcode_direct=yes
7823       hardcode_shlibpath_var=no
7824       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7825         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7826         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7827         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7828         export_dynamic_flag_spec='${wl}-E'
7829       else
7830        case $host_os in
7831          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7832            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7833            hardcode_libdir_flag_spec='-R$libdir'
7834            ;;
7835          *)
7836            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7837            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7838            ;;
7839        esac
7840       fi
7841       ;;
7842
7843     os2*)
7844       hardcode_libdir_flag_spec='-L$libdir'
7845       hardcode_minus_L=yes
7846       allow_undefined_flag=unsupported
7847       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'
7848       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7849       ;;
7850
7851     osf3*)
7852       if test "$GCC" = yes; then
7853         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7854         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'
7855       else
7856         allow_undefined_flag=' -expect_unresolved \*'
7857         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'
7858       fi
7859       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7860       hardcode_libdir_separator=:
7861       ;;
7862
7863     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7864       if test "$GCC" = yes; then
7865         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7866         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'
7867         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7868       else
7869         allow_undefined_flag=' -expect_unresolved \*'
7870         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'
7871         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7872         $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'
7873
7874         # Both c and cxx compiler support -rpath directly
7875         hardcode_libdir_flag_spec='-rpath $libdir'
7876       fi
7877       hardcode_libdir_separator=:
7878       ;;
7879
7880     solaris*)
7881       no_undefined_flag=' -z text'
7882       if test "$GCC" = yes; then
7883         wlarc='${wl}'
7884         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7885         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7886           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7887       else
7888         wlarc=''
7889         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7890         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7891         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7892       fi
7893       hardcode_libdir_flag_spec='-R$libdir'
7894       hardcode_shlibpath_var=no
7895       case $host_os in
7896       solaris2.[0-5] | solaris2.[0-5].*) ;;
7897       *)
7898         # The compiler driver will combine linker options so we
7899         # cannot just pass the convience library names through
7900         # without $wl, iff we do not link with $LD.
7901         # Luckily, gcc supports the same syntax we need for Sun Studio.
7902         # Supported since Solaris 2.6 (maybe 2.5.1?)
7903         case $wlarc in
7904         '')
7905           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7906         *)
7907           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' ;;
7908         esac ;;
7909       esac
7910       link_all_deplibs=yes
7911       ;;
7912
7913     sunos4*)
7914       if test "x$host_vendor" = xsequent; then
7915         # Use $CC to link under sequent, because it throws in some extra .o
7916         # files that make .init and .fini sections work.
7917         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7918       else
7919         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7920       fi
7921       hardcode_libdir_flag_spec='-L$libdir'
7922       hardcode_direct=yes
7923       hardcode_minus_L=yes
7924       hardcode_shlibpath_var=no
7925       ;;
7926
7927     sysv4)
7928       case $host_vendor in
7929         sni)
7930           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7931           hardcode_direct=yes # is this really true???
7932         ;;
7933         siemens)
7934           ## LD is ld it makes a PLAMLIB
7935           ## CC just makes a GrossModule.
7936           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7937           reload_cmds='$CC -r -o $output$reload_objs'
7938           hardcode_direct=no
7939         ;;
7940         motorola)
7941           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7942           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7943         ;;
7944       esac
7945       runpath_var='LD_RUN_PATH'
7946       hardcode_shlibpath_var=no
7947       ;;
7948
7949     sysv4.3*)
7950       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7951       hardcode_shlibpath_var=no
7952       export_dynamic_flag_spec='-Bexport'
7953       ;;
7954
7955     sysv4*MP*)
7956       if test -d /usr/nec; then
7957         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7958         hardcode_shlibpath_var=no
7959         runpath_var=LD_RUN_PATH
7960         hardcode_runpath_var=yes
7961         ld_shlibs=yes
7962       fi
7963       ;;
7964
7965     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7966       no_undefined_flag='${wl}-z,text'
7967       archive_cmds_need_lc=no
7968       hardcode_shlibpath_var=no
7969       runpath_var='LD_RUN_PATH'
7970
7971       if test "$GCC" = yes; then
7972         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7973         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7974       else
7975         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7976         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7977       fi
7978       ;;
7979
7980     sysv5* | sco3.2v5* | sco5v6*)
7981       # Note: We can NOT use -z defs as we might desire, because we do not
7982       # link with -lc, and that would cause any symbols used from libc to
7983       # always be unresolved, which means just about no library would
7984       # ever link correctly.  If we're not using GNU ld we use -z text
7985       # though, which does catch some bad symbols but isn't as heavy-handed
7986       # as -z defs.
7987       no_undefined_flag='${wl}-z,text'
7988       allow_undefined_flag='${wl}-z,nodefs'
7989       archive_cmds_need_lc=no
7990       hardcode_shlibpath_var=no
7991       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7992       hardcode_libdir_separator=':'
7993       link_all_deplibs=yes
7994       export_dynamic_flag_spec='${wl}-Bexport'
7995       runpath_var='LD_RUN_PATH'
7996
7997       if test "$GCC" = yes; then
7998         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7999         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8000       else
8001         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8002         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8003       fi
8004       ;;
8005
8006     uts4*)
8007       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8008       hardcode_libdir_flag_spec='-L$libdir'
8009       hardcode_shlibpath_var=no
8010       ;;
8011
8012     *)
8013       ld_shlibs=no
8014       ;;
8015     esac
8016   fi
8017
8018 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8019 echo "${ECHO_T}$ld_shlibs" >&6
8020 test "$ld_shlibs" = no && can_build_shared=no
8021
8022 #
8023 # Do we need to explicitly link libc?
8024 #
8025 case "x$archive_cmds_need_lc" in
8026 x|xyes)
8027   # Assume -lc should be added
8028   archive_cmds_need_lc=yes
8029
8030   if test "$enable_shared" = yes && test "$GCC" = yes; then
8031     case $archive_cmds in
8032     *'~'*)
8033       # FIXME: we may have to deal with multi-command sequences.
8034       ;;
8035     '$CC '*)
8036       # Test whether the compiler implicitly links with -lc since on some
8037       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8038       # to ld, don't add -lc before -lgcc.
8039       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8040 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8041       $rm conftest*
8042       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8043
8044       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045   (eval $ac_compile) 2>&5
8046   ac_status=$?
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } 2>conftest.err; then
8049         soname=conftest
8050         lib=conftest
8051         libobjs=conftest.$ac_objext
8052         deplibs=
8053         wl=$lt_prog_compiler_wl
8054         pic_flag=$lt_prog_compiler_pic
8055         compiler_flags=-v
8056         linker_flags=-v
8057         verstring=
8058         output_objdir=.
8059         libname=conftest
8060         lt_save_allow_undefined_flag=$allow_undefined_flag
8061         allow_undefined_flag=
8062         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8063   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }
8067         then
8068           archive_cmds_need_lc=no
8069         else
8070           archive_cmds_need_lc=yes
8071         fi
8072         allow_undefined_flag=$lt_save_allow_undefined_flag
8073       else
8074         cat conftest.err 1>&5
8075       fi
8076       $rm conftest*
8077       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8078 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8079       ;;
8080     esac
8081   fi
8082   ;;
8083 esac
8084
8085 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8086 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8087 library_names_spec=
8088 libname_spec='lib$name'
8089 soname_spec=
8090 shrext_cmds=".so"
8091 postinstall_cmds=
8092 postuninstall_cmds=
8093 finish_cmds=
8094 finish_eval=
8095 shlibpath_var=
8096 shlibpath_overrides_runpath=unknown
8097 version_type=none
8098 dynamic_linker="$host_os ld.so"
8099 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8100 if test "$GCC" = yes; then
8101   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8102   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8103     # if the path contains ";" then we assume it to be the separator
8104     # otherwise default to the standard path separator (i.e. ":") - it is
8105     # assumed that no part of a normal pathname contains ";" but that should
8106     # okay in the real world where ";" in dirpaths is itself problematic.
8107     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8108   else
8109     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8110   fi
8111 else
8112   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8113 fi
8114 need_lib_prefix=unknown
8115 hardcode_into_libs=no
8116
8117 # when you set need_version to no, make sure it does not cause -set_version
8118 # flags to be left without arguments
8119 need_version=unknown
8120
8121 case $host_os in
8122 aix3*)
8123   version_type=linux
8124   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8125   shlibpath_var=LIBPATH
8126
8127   # AIX 3 has no versioning support, so we append a major version to the name.
8128   soname_spec='${libname}${release}${shared_ext}$major'
8129   ;;
8130
8131 aix4* | aix5*)
8132   version_type=linux
8133   need_lib_prefix=no
8134   need_version=no
8135   hardcode_into_libs=yes
8136   if test "$host_cpu" = ia64; then
8137     # AIX 5 supports IA64
8138     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8139     shlibpath_var=LD_LIBRARY_PATH
8140   else
8141     # With GCC up to 2.95.x, collect2 would create an import file
8142     # for dependence libraries.  The import file would start with
8143     # the line `#! .'.  This would cause the generated library to
8144     # depend on `.', always an invalid library.  This was fixed in
8145     # development snapshots of GCC prior to 3.0.
8146     case $host_os in
8147       aix4 | aix4.[01] | aix4.[01].*)
8148       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8149            echo ' yes '
8150            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8151         :
8152       else
8153         can_build_shared=no
8154       fi
8155       ;;
8156     esac
8157     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8158     # soname into executable. Probably we can add versioning support to
8159     # collect2, so additional links can be useful in future.
8160     if test "$aix_use_runtimelinking" = yes; then
8161       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8162       # instead of lib<name>.a to let people know that these are not
8163       # typical AIX shared libraries.
8164       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8165     else
8166       # We preserve .a as extension for shared libraries through AIX4.2
8167       # and later when we are not doing run time linking.
8168       library_names_spec='${libname}${release}.a $libname.a'
8169       soname_spec='${libname}${release}${shared_ext}$major'
8170     fi
8171     shlibpath_var=LIBPATH
8172   fi
8173   ;;
8174
8175 amigaos*)
8176   library_names_spec='$libname.ixlibrary $libname.a'
8177   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8178   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'
8179   ;;
8180
8181 beos*)
8182   library_names_spec='${libname}${shared_ext}'
8183   dynamic_linker="$host_os ld.so"
8184   shlibpath_var=LIBRARY_PATH
8185   ;;
8186
8187 bsdi[45]*)
8188   version_type=linux
8189   need_version=no
8190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8191   soname_spec='${libname}${release}${shared_ext}$major'
8192   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8193   shlibpath_var=LD_LIBRARY_PATH
8194   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8195   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8196   # the default ld.so.conf also contains /usr/contrib/lib and
8197   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8198   # libtool to hard-code these into programs
8199   ;;
8200
8201 cygwin* | mingw* | pw32*)
8202   version_type=windows
8203   shrext_cmds=".dll"
8204   need_version=no
8205   need_lib_prefix=no
8206
8207   case $GCC,$host_os in
8208   yes,cygwin* | yes,mingw* | yes,pw32*)
8209     library_names_spec='$libname.dll.a'
8210     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8211     postinstall_cmds='base_file=`basename \${file}`~
8212       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8213       dldir=$destdir/`dirname \$dlpath`~
8214       test -d \$dldir || mkdir -p \$dldir~
8215       $install_prog $dir/$dlname \$dldir/$dlname~
8216       chmod a+x \$dldir/$dlname'
8217     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8218       dlpath=$dir/\$dldll~
8219        $rm \$dlpath'
8220     shlibpath_overrides_runpath=yes
8221
8222     case $host_os in
8223     cygwin*)
8224       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8225       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8226       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8227       ;;
8228     mingw*)
8229       # MinGW DLLs use traditional 'lib' prefix
8230       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8231       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8232       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8233         # It is most probably a Windows format PATH printed by
8234         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8235         # path with ; separators, and with drive letters. We can handle the
8236         # drive letters (cygwin fileutils understands them), so leave them,
8237         # especially as we might pass files found there to a mingw objdump,
8238         # which wouldn't understand a cygwinified path. Ahh.
8239         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8240       else
8241         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8242       fi
8243       ;;
8244     pw32*)
8245       # pw32 DLLs use 'pw' prefix rather than 'lib'
8246       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8247       ;;
8248     esac
8249     ;;
8250
8251   *)
8252     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8253     ;;
8254   esac
8255   dynamic_linker='Win32 ld.exe'
8256   # FIXME: first we should search . and the directory the executable is in
8257   shlibpath_var=PATH
8258   ;;
8259
8260 darwin* | rhapsody*)
8261   dynamic_linker="$host_os dyld"
8262   version_type=darwin
8263   need_lib_prefix=no
8264   need_version=no
8265   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8266   soname_spec='${libname}${release}${major}$shared_ext'
8267   shlibpath_overrides_runpath=yes
8268   shlibpath_var=DYLD_LIBRARY_PATH
8269   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8270   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8271   if test "$GCC" = yes; then
8272     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"`
8273   else
8274     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8275   fi
8276   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8277   ;;
8278
8279 dgux*)
8280   version_type=linux
8281   need_lib_prefix=no
8282   need_version=no
8283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8284   soname_spec='${libname}${release}${shared_ext}$major'
8285   shlibpath_var=LD_LIBRARY_PATH
8286   ;;
8287
8288 freebsd1*)
8289   dynamic_linker=no
8290   ;;
8291
8292 kfreebsd*-gnu)
8293   version_type=linux
8294   need_lib_prefix=no
8295   need_version=no
8296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8297   soname_spec='${libname}${release}${shared_ext}$major'
8298   shlibpath_var=LD_LIBRARY_PATH
8299   shlibpath_overrides_runpath=no
8300   hardcode_into_libs=yes
8301   dynamic_linker='GNU ld.so'
8302   ;;
8303
8304 freebsd* | dragonfly*)
8305   # DragonFly does not have aout.  When/if they implement a new
8306   # versioning mechanism, adjust this.
8307   if test -x /usr/bin/objformat; then
8308     objformat=`/usr/bin/objformat`
8309   else
8310     case $host_os in
8311     freebsd[123]*) objformat=aout ;;
8312     *) objformat=elf ;;
8313     esac
8314   fi
8315   version_type=freebsd-$objformat
8316   case $version_type in
8317     freebsd-elf*)
8318       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8319       need_version=no
8320       need_lib_prefix=no
8321       ;;
8322     freebsd-*)
8323       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8324       need_version=yes
8325       ;;
8326   esac
8327   shlibpath_var=LD_LIBRARY_PATH
8328   case $host_os in
8329   freebsd2*)
8330     shlibpath_overrides_runpath=yes
8331     ;;
8332   freebsd3.[01]* | freebsdelf3.[01]*)
8333     shlibpath_overrides_runpath=yes
8334     hardcode_into_libs=yes
8335     ;;
8336   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8337   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8338     shlibpath_overrides_runpath=no
8339     hardcode_into_libs=yes
8340     ;;
8341   freebsd*) # from 4.6 on
8342     shlibpath_overrides_runpath=yes
8343     hardcode_into_libs=yes
8344     ;;
8345   esac
8346   ;;
8347
8348 gnu*)
8349   version_type=linux
8350   need_lib_prefix=no
8351   need_version=no
8352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8353   soname_spec='${libname}${release}${shared_ext}$major'
8354   shlibpath_var=LD_LIBRARY_PATH
8355   hardcode_into_libs=yes
8356   ;;
8357
8358 hpux9* | hpux10* | hpux11*)
8359   # Give a soname corresponding to the major version so that dld.sl refuses to
8360   # link against other versions.
8361   version_type=sunos
8362   need_lib_prefix=no
8363   need_version=no
8364   case $host_cpu in
8365   ia64*)
8366     shrext_cmds='.so'
8367     hardcode_into_libs=yes
8368     dynamic_linker="$host_os dld.so"
8369     shlibpath_var=LD_LIBRARY_PATH
8370     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8371     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8372     soname_spec='${libname}${release}${shared_ext}$major'
8373     if test "X$HPUX_IA64_MODE" = X32; then
8374       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8375     else
8376       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8377     fi
8378     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8379     ;;
8380    hppa*64*)
8381      shrext_cmds='.sl'
8382      hardcode_into_libs=yes
8383      dynamic_linker="$host_os dld.sl"
8384      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8385      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8386      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8387      soname_spec='${libname}${release}${shared_ext}$major'
8388      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8389      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8390      ;;
8391    *)
8392     shrext_cmds='.sl'
8393     dynamic_linker="$host_os dld.sl"
8394     shlibpath_var=SHLIB_PATH
8395     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8396     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8397     soname_spec='${libname}${release}${shared_ext}$major'
8398     ;;
8399   esac
8400   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8401   postinstall_cmds='chmod 555 $lib'
8402   ;;
8403
8404 interix3*)
8405   version_type=linux
8406   need_lib_prefix=no
8407   need_version=no
8408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8409   soname_spec='${libname}${release}${shared_ext}$major'
8410   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8411   shlibpath_var=LD_LIBRARY_PATH
8412   shlibpath_overrides_runpath=no
8413   hardcode_into_libs=yes
8414   ;;
8415
8416 irix5* | irix6* | nonstopux*)
8417   case $host_os in
8418     nonstopux*) version_type=nonstopux ;;
8419     *)
8420         if test "$lt_cv_prog_gnu_ld" = yes; then
8421                 version_type=linux
8422         else
8423                 version_type=irix
8424         fi ;;
8425   esac
8426   need_lib_prefix=no
8427   need_version=no
8428   soname_spec='${libname}${release}${shared_ext}$major'
8429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8430   case $host_os in
8431   irix5* | nonstopux*)
8432     libsuff= shlibsuff=
8433     ;;
8434   *)
8435     case $LD in # libtool.m4 will add one of these switches to LD
8436     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8437       libsuff= shlibsuff= libmagic=32-bit;;
8438     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8439       libsuff=32 shlibsuff=N32 libmagic=N32;;
8440     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8441       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8442     *) libsuff= shlibsuff= libmagic=never-match;;
8443     esac
8444     ;;
8445   esac
8446   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8447   shlibpath_overrides_runpath=no
8448   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8449   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8450   hardcode_into_libs=yes
8451   ;;
8452
8453 # No shared lib support for Linux oldld, aout, or coff.
8454 linux*oldld* | linux*aout* | linux*coff*)
8455   dynamic_linker=no
8456   ;;
8457
8458 # This must be Linux ELF.
8459 linux*)
8460   version_type=linux
8461   need_lib_prefix=no
8462   need_version=no
8463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8464   soname_spec='${libname}${release}${shared_ext}$major'
8465   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8466   shlibpath_var=LD_LIBRARY_PATH
8467   shlibpath_overrides_runpath=no
8468   # This implies no fast_install, which is unacceptable.
8469   # Some rework will be needed to allow for fast_install
8470   # before this can be enabled.
8471   hardcode_into_libs=yes
8472
8473   # Append ld.so.conf contents to the search path
8474   if test -f /etc/ld.so.conf; then
8475     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' ' '`
8476     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8477   fi
8478
8479   # We used to test for /lib/ld.so.1 and disable shared libraries on
8480   # powerpc, because MkLinux only supported shared libraries with the
8481   # GNU dynamic linker.  Since this was broken with cross compilers,
8482   # most powerpc-linux boxes support dynamic linking these days and
8483   # people can always --disable-shared, the test was removed, and we
8484   # assume the GNU/Linux dynamic linker is in use.
8485   dynamic_linker='GNU/Linux ld.so'
8486   ;;
8487
8488 netbsdelf*-gnu)
8489   version_type=linux
8490   need_lib_prefix=no
8491   need_version=no
8492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8493   soname_spec='${libname}${release}${shared_ext}$major'
8494   shlibpath_var=LD_LIBRARY_PATH
8495   shlibpath_overrides_runpath=no
8496   hardcode_into_libs=yes
8497   dynamic_linker='NetBSD ld.elf_so'
8498   ;;
8499
8500 knetbsd*-gnu)
8501   version_type=linux
8502   need_lib_prefix=no
8503   need_version=no
8504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8505   soname_spec='${libname}${release}${shared_ext}$major'
8506   shlibpath_var=LD_LIBRARY_PATH
8507   shlibpath_overrides_runpath=no
8508   hardcode_into_libs=yes
8509   dynamic_linker='GNU ld.so'
8510   ;;
8511
8512 netbsd*)
8513   version_type=sunos
8514   need_lib_prefix=no
8515   need_version=no
8516   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8517     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8518     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8519     dynamic_linker='NetBSD (a.out) ld.so'
8520   else
8521     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8522     soname_spec='${libname}${release}${shared_ext}$major'
8523     dynamic_linker='NetBSD ld.elf_so'
8524   fi
8525   shlibpath_var=LD_LIBRARY_PATH
8526   shlibpath_overrides_runpath=yes
8527   hardcode_into_libs=yes
8528   ;;
8529
8530 newsos6)
8531   version_type=linux
8532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8533   shlibpath_var=LD_LIBRARY_PATH
8534   shlibpath_overrides_runpath=yes
8535   ;;
8536
8537 nto-qnx*)
8538   version_type=linux
8539   need_lib_prefix=no
8540   need_version=no
8541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8542   soname_spec='${libname}${release}${shared_ext}$major'
8543   shlibpath_var=LD_LIBRARY_PATH
8544   shlibpath_overrides_runpath=yes
8545   ;;
8546
8547 openbsd*)
8548   version_type=sunos
8549   sys_lib_dlsearch_path_spec="/usr/lib"
8550   need_lib_prefix=no
8551   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8552   case $host_os in
8553     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8554     *)                         need_version=no  ;;
8555   esac
8556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8557   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8558   shlibpath_var=LD_LIBRARY_PATH
8559   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8560     case $host_os in
8561       openbsd2.[89] | openbsd2.[89].*)
8562         shlibpath_overrides_runpath=no
8563         ;;
8564       *)
8565         shlibpath_overrides_runpath=yes
8566         ;;
8567       esac
8568   else
8569     shlibpath_overrides_runpath=yes
8570   fi
8571   ;;
8572
8573 os2*)
8574   libname_spec='$name'
8575   shrext_cmds=".dll"
8576   need_lib_prefix=no
8577   library_names_spec='$libname${shared_ext} $libname.a'
8578   dynamic_linker='OS/2 ld.exe'
8579   shlibpath_var=LIBPATH
8580   ;;
8581
8582 osf3* | osf4* | osf5*)
8583   version_type=osf
8584   need_lib_prefix=no
8585   need_version=no
8586   soname_spec='${libname}${release}${shared_ext}$major'
8587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8588   shlibpath_var=LD_LIBRARY_PATH
8589   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8590   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8591   ;;
8592
8593 solaris*)
8594   version_type=linux
8595   need_lib_prefix=no
8596   need_version=no
8597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8598   soname_spec='${libname}${release}${shared_ext}$major'
8599   shlibpath_var=LD_LIBRARY_PATH
8600   shlibpath_overrides_runpath=yes
8601   hardcode_into_libs=yes
8602   # ldd complains unless libraries are executable
8603   postinstall_cmds='chmod +x $lib'
8604   ;;
8605
8606 sunos4*)
8607   version_type=sunos
8608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8609   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8610   shlibpath_var=LD_LIBRARY_PATH
8611   shlibpath_overrides_runpath=yes
8612   if test "$with_gnu_ld" = yes; then
8613     need_lib_prefix=no
8614   fi
8615   need_version=yes
8616   ;;
8617
8618 sysv4 | sysv4.3*)
8619   version_type=linux
8620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8621   soname_spec='${libname}${release}${shared_ext}$major'
8622   shlibpath_var=LD_LIBRARY_PATH
8623   case $host_vendor in
8624     sni)
8625       shlibpath_overrides_runpath=no
8626       need_lib_prefix=no
8627       export_dynamic_flag_spec='${wl}-Blargedynsym'
8628       runpath_var=LD_RUN_PATH
8629       ;;
8630     siemens)
8631       need_lib_prefix=no
8632       ;;
8633     motorola)
8634       need_lib_prefix=no
8635       need_version=no
8636       shlibpath_overrides_runpath=no
8637       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8638       ;;
8639   esac
8640   ;;
8641
8642 sysv4*MP*)
8643   if test -d /usr/nec ;then
8644     version_type=linux
8645     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8646     soname_spec='$libname${shared_ext}.$major'
8647     shlibpath_var=LD_LIBRARY_PATH
8648   fi
8649   ;;
8650
8651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8652   version_type=freebsd-elf
8653   need_lib_prefix=no
8654   need_version=no
8655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8656   soname_spec='${libname}${release}${shared_ext}$major'
8657   shlibpath_var=LD_LIBRARY_PATH
8658   hardcode_into_libs=yes
8659   if test "$with_gnu_ld" = yes; then
8660     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8661     shlibpath_overrides_runpath=no
8662   else
8663     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8664     shlibpath_overrides_runpath=yes
8665     case $host_os in
8666       sco3.2v5*)
8667         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8668         ;;
8669     esac
8670   fi
8671   sys_lib_dlsearch_path_spec='/usr/lib'
8672   ;;
8673
8674 uts4*)
8675   version_type=linux
8676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8677   soname_spec='${libname}${release}${shared_ext}$major'
8678   shlibpath_var=LD_LIBRARY_PATH
8679   ;;
8680
8681 *)
8682   dynamic_linker=no
8683   ;;
8684 esac
8685 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8686 echo "${ECHO_T}$dynamic_linker" >&6
8687 test "$dynamic_linker" = no && can_build_shared=no
8688
8689 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8690 if test "$GCC" = yes; then
8691   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8692 fi
8693
8694 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8695 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8696 hardcode_action=
8697 if test -n "$hardcode_libdir_flag_spec" || \
8698    test -n "$runpath_var" || \
8699    test "X$hardcode_automatic" = "Xyes" ; then
8700
8701   # We can hardcode non-existant directories.
8702   if test "$hardcode_direct" != no &&
8703      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8704      # have to relink, otherwise we might link with an installed library
8705      # when we should be linking with a yet-to-be-installed one
8706      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8707      test "$hardcode_minus_L" != no; then
8708     # Linking always hardcodes the temporary library directory.
8709     hardcode_action=relink
8710   else
8711     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8712     hardcode_action=immediate
8713   fi
8714 else
8715   # We cannot hardcode anything, or else we can only hardcode existing
8716   # directories.
8717   hardcode_action=unsupported
8718 fi
8719 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8720 echo "${ECHO_T}$hardcode_action" >&6
8721
8722 if test "$hardcode_action" = relink; then
8723   # Fast installation is not supported
8724   enable_fast_install=no
8725 elif test "$shlibpath_overrides_runpath" = yes ||
8726      test "$enable_shared" = no; then
8727   # Fast installation is not necessary
8728   enable_fast_install=needless
8729 fi
8730
8731 striplib=
8732 old_striplib=
8733 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8734 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8735 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8736   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8737   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8738   echo "$as_me:$LINENO: result: yes" >&5
8739 echo "${ECHO_T}yes" >&6
8740 else
8741 # FIXME - insert some real tests, host_os isn't really good enough
8742   case $host_os in
8743    darwin*)
8744        if test -n "$STRIP" ; then
8745          striplib="$STRIP -x"
8746          echo "$as_me:$LINENO: result: yes" >&5
8747 echo "${ECHO_T}yes" >&6
8748        else
8749   echo "$as_me:$LINENO: result: no" >&5
8750 echo "${ECHO_T}no" >&6
8751 fi
8752        ;;
8753    *)
8754   echo "$as_me:$LINENO: result: no" >&5
8755 echo "${ECHO_T}no" >&6
8756     ;;
8757   esac
8758 fi
8759
8760 if test "x$enable_dlopen" != xyes; then
8761   enable_dlopen=unknown
8762   enable_dlopen_self=unknown
8763   enable_dlopen_self_static=unknown
8764 else
8765   lt_cv_dlopen=no
8766   lt_cv_dlopen_libs=
8767
8768   case $host_os in
8769   beos*)
8770     lt_cv_dlopen="load_add_on"
8771     lt_cv_dlopen_libs=
8772     lt_cv_dlopen_self=yes
8773     ;;
8774
8775   mingw* | pw32*)
8776     lt_cv_dlopen="LoadLibrary"
8777     lt_cv_dlopen_libs=
8778    ;;
8779
8780   cygwin*)
8781     lt_cv_dlopen="dlopen"
8782     lt_cv_dlopen_libs=
8783    ;;
8784
8785   darwin*)
8786   # if libdl is installed we need to link against it
8787     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8788 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8789 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8790   echo $ECHO_N "(cached) $ECHO_C" >&6
8791 else
8792   ac_check_lib_save_LIBS=$LIBS
8793 LIBS="-ldl  $LIBS"
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h.  */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h.  */
8800
8801 /* Override any gcc2 internal prototype to avoid an error.  */
8802 #ifdef __cplusplus
8803 extern "C"
8804 #endif
8805 /* We use char because int might match the return type of a gcc2
8806    builtin and then its argument prototype would still apply.  */
8807 char dlopen ();
8808 int
8809 main ()
8810 {
8811 dlopen ();
8812   ;
8813   return 0;
8814 }
8815 _ACEOF
8816 rm -f conftest.$ac_objext conftest$ac_exeext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818   (eval $ac_link) 2>conftest.er1
8819   ac_status=$?
8820   grep -v '^ *+' conftest.er1 >conftest.err
8821   rm -f conftest.er1
8822   cat conftest.err >&5
8823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); } &&
8825          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827   (eval $ac_try) 2>&5
8828   ac_status=$?
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); }; } &&
8831          { ac_try='test -s conftest$ac_exeext'
8832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833   (eval $ac_try) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); }; }; then
8837   ac_cv_lib_dl_dlopen=yes
8838 else
8839   echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8841
8842 ac_cv_lib_dl_dlopen=no
8843 fi
8844 rm -f conftest.err conftest.$ac_objext \
8845       conftest$ac_exeext conftest.$ac_ext
8846 LIBS=$ac_check_lib_save_LIBS
8847 fi
8848 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8849 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8850 if test $ac_cv_lib_dl_dlopen = yes; then
8851   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8852 else
8853
8854     lt_cv_dlopen="dyld"
8855     lt_cv_dlopen_libs=
8856     lt_cv_dlopen_self=yes
8857
8858 fi
8859
8860    ;;
8861
8862   *)
8863     echo "$as_me:$LINENO: checking for shl_load" >&5
8864 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8865 if test "${ac_cv_func_shl_load+set}" = set; then
8866   echo $ECHO_N "(cached) $ECHO_C" >&6
8867 else
8868   cat >conftest.$ac_ext <<_ACEOF
8869 /* confdefs.h.  */
8870 _ACEOF
8871 cat confdefs.h >>conftest.$ac_ext
8872 cat >>conftest.$ac_ext <<_ACEOF
8873 /* end confdefs.h.  */
8874 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8876 #define shl_load innocuous_shl_load
8877
8878 /* System header to define __stub macros and hopefully few prototypes,
8879     which can conflict with char shl_load (); below.
8880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8881     <limits.h> exists even on freestanding compilers.  */
8882
8883 #ifdef __STDC__
8884 # include <limits.h>
8885 #else
8886 # include <assert.h>
8887 #endif
8888
8889 #undef shl_load
8890
8891 /* Override any gcc2 internal prototype to avoid an error.  */
8892 #ifdef __cplusplus
8893 extern "C"
8894 {
8895 #endif
8896 /* We use char because int might match the return type of a gcc2
8897    builtin and then its argument prototype would still apply.  */
8898 char shl_load ();
8899 /* The GNU C library defines this for functions which it implements
8900     to always fail with ENOSYS.  Some functions are actually named
8901     something starting with __ and the normal name is an alias.  */
8902 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8903 choke me
8904 #else
8905 char (*f) () = shl_load;
8906 #endif
8907 #ifdef __cplusplus
8908 }
8909 #endif
8910
8911 int
8912 main ()
8913 {
8914 return f != shl_load;
8915   ;
8916   return 0;
8917 }
8918 _ACEOF
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8921   (eval $ac_link) 2>conftest.er1
8922   ac_status=$?
8923   grep -v '^ *+' conftest.er1 >conftest.err
8924   rm -f conftest.er1
8925   cat conftest.err >&5
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); } &&
8928          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930   (eval $ac_try) 2>&5
8931   ac_status=$?
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); }; } &&
8934          { ac_try='test -s conftest$ac_exeext'
8935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936   (eval $ac_try) 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); }; }; then
8940   ac_cv_func_shl_load=yes
8941 else
8942   echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8944
8945 ac_cv_func_shl_load=no
8946 fi
8947 rm -f conftest.err conftest.$ac_objext \
8948       conftest$ac_exeext conftest.$ac_ext
8949 fi
8950 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8951 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8952 if test $ac_cv_func_shl_load = yes; then
8953   lt_cv_dlopen="shl_load"
8954 else
8955   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8956 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8957 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8958   echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960   ac_check_lib_save_LIBS=$LIBS
8961 LIBS="-ldld  $LIBS"
8962 cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h.  */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h.  */
8968
8969 /* Override any gcc2 internal prototype to avoid an error.  */
8970 #ifdef __cplusplus
8971 extern "C"
8972 #endif
8973 /* We use char because int might match the return type of a gcc2
8974    builtin and then its argument prototype would still apply.  */
8975 char shl_load ();
8976 int
8977 main ()
8978 {
8979 shl_load ();
8980   ;
8981   return 0;
8982 }
8983 _ACEOF
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986   (eval $ac_link) 2>conftest.er1
8987   ac_status=$?
8988   grep -v '^ *+' conftest.er1 >conftest.err
8989   rm -f conftest.er1
8990   cat conftest.err >&5
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); } &&
8993          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995   (eval $ac_try) 2>&5
8996   ac_status=$?
8997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998   (exit $ac_status); }; } &&
8999          { ac_try='test -s conftest$ac_exeext'
9000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001   (eval $ac_try) 2>&5
9002   ac_status=$?
9003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004   (exit $ac_status); }; }; then
9005   ac_cv_lib_dld_shl_load=yes
9006 else
9007   echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.$ac_ext >&5
9009
9010 ac_cv_lib_dld_shl_load=no
9011 fi
9012 rm -f conftest.err conftest.$ac_objext \
9013       conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_check_lib_save_LIBS
9015 fi
9016 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9017 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9018 if test $ac_cv_lib_dld_shl_load = yes; then
9019   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9020 else
9021   echo "$as_me:$LINENO: checking for dlopen" >&5
9022 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9023 if test "${ac_cv_func_dlopen+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9034 #define dlopen innocuous_dlopen
9035
9036 /* System header to define __stub macros and hopefully few prototypes,
9037     which can conflict with char dlopen (); below.
9038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9039     <limits.h> exists even on freestanding compilers.  */
9040
9041 #ifdef __STDC__
9042 # include <limits.h>
9043 #else
9044 # include <assert.h>
9045 #endif
9046
9047 #undef dlopen
9048
9049 /* Override any gcc2 internal prototype to avoid an error.  */
9050 #ifdef __cplusplus
9051 extern "C"
9052 {
9053 #endif
9054 /* We use char because int might match the return type of a gcc2
9055    builtin and then its argument prototype would still apply.  */
9056 char dlopen ();
9057 /* The GNU C library defines this for functions which it implements
9058     to always fail with ENOSYS.  Some functions are actually named
9059     something starting with __ and the normal name is an alias.  */
9060 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9061 choke me
9062 #else
9063 char (*f) () = dlopen;
9064 #endif
9065 #ifdef __cplusplus
9066 }
9067 #endif
9068
9069 int
9070 main ()
9071 {
9072 return f != dlopen;
9073   ;
9074   return 0;
9075 }
9076 _ACEOF
9077 rm -f conftest.$ac_objext conftest$ac_exeext
9078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9079   (eval $ac_link) 2>conftest.er1
9080   ac_status=$?
9081   grep -v '^ *+' conftest.er1 >conftest.err
9082   rm -f conftest.er1
9083   cat conftest.err >&5
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); } &&
9086          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088   (eval $ac_try) 2>&5
9089   ac_status=$?
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); }; } &&
9092          { ac_try='test -s conftest$ac_exeext'
9093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094   (eval $ac_try) 2>&5
9095   ac_status=$?
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); }; }; then
9098   ac_cv_func_dlopen=yes
9099 else
9100   echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9102
9103 ac_cv_func_dlopen=no
9104 fi
9105 rm -f conftest.err conftest.$ac_objext \
9106       conftest$ac_exeext conftest.$ac_ext
9107 fi
9108 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9109 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9110 if test $ac_cv_func_dlopen = yes; then
9111   lt_cv_dlopen="dlopen"
9112 else
9113   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9114 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9115 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9116   echo $ECHO_N "(cached) $ECHO_C" >&6
9117 else
9118   ac_check_lib_save_LIBS=$LIBS
9119 LIBS="-ldl  $LIBS"
9120 cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h.  */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h.  */
9126
9127 /* Override any gcc2 internal prototype to avoid an error.  */
9128 #ifdef __cplusplus
9129 extern "C"
9130 #endif
9131 /* We use char because int might match the return type of a gcc2
9132    builtin and then its argument prototype would still apply.  */
9133 char dlopen ();
9134 int
9135 main ()
9136 {
9137 dlopen ();
9138   ;
9139   return 0;
9140 }
9141 _ACEOF
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144   (eval $ac_link) 2>conftest.er1
9145   ac_status=$?
9146   grep -v '^ *+' conftest.er1 >conftest.err
9147   rm -f conftest.er1
9148   cat conftest.err >&5
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); } &&
9151          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153   (eval $ac_try) 2>&5
9154   ac_status=$?
9155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156   (exit $ac_status); }; } &&
9157          { ac_try='test -s conftest$ac_exeext'
9158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159   (eval $ac_try) 2>&5
9160   ac_status=$?
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   (exit $ac_status); }; }; then
9163   ac_cv_lib_dl_dlopen=yes
9164 else
9165   echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9167
9168 ac_cv_lib_dl_dlopen=no
9169 fi
9170 rm -f conftest.err conftest.$ac_objext \
9171       conftest$ac_exeext conftest.$ac_ext
9172 LIBS=$ac_check_lib_save_LIBS
9173 fi
9174 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9175 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9176 if test $ac_cv_lib_dl_dlopen = yes; then
9177   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9178 else
9179   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9180 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9181 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9182   echo $ECHO_N "(cached) $ECHO_C" >&6
9183 else
9184   ac_check_lib_save_LIBS=$LIBS
9185 LIBS="-lsvld  $LIBS"
9186 cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h.  */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h.  */
9192
9193 /* Override any gcc2 internal prototype to avoid an error.  */
9194 #ifdef __cplusplus
9195 extern "C"
9196 #endif
9197 /* We use char because int might match the return type of a gcc2
9198    builtin and then its argument prototype would still apply.  */
9199 char dlopen ();
9200 int
9201 main ()
9202 {
9203 dlopen ();
9204   ;
9205   return 0;
9206 }
9207 _ACEOF
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9210   (eval $ac_link) 2>conftest.er1
9211   ac_status=$?
9212   grep -v '^ *+' conftest.er1 >conftest.err
9213   rm -f conftest.er1
9214   cat conftest.err >&5
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); } &&
9217          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9219   (eval $ac_try) 2>&5
9220   ac_status=$?
9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222   (exit $ac_status); }; } &&
9223          { ac_try='test -s conftest$ac_exeext'
9224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225   (eval $ac_try) 2>&5
9226   ac_status=$?
9227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228   (exit $ac_status); }; }; then
9229   ac_cv_lib_svld_dlopen=yes
9230 else
9231   echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9233
9234 ac_cv_lib_svld_dlopen=no
9235 fi
9236 rm -f conftest.err conftest.$ac_objext \
9237       conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9239 fi
9240 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9241 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9242 if test $ac_cv_lib_svld_dlopen = yes; then
9243   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9244 else
9245   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9246 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9247 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9248   echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250   ac_check_lib_save_LIBS=$LIBS
9251 LIBS="-ldld  $LIBS"
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h.  */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h.  */
9258
9259 /* Override any gcc2 internal prototype to avoid an error.  */
9260 #ifdef __cplusplus
9261 extern "C"
9262 #endif
9263 /* We use char because int might match the return type of a gcc2
9264    builtin and then its argument prototype would still apply.  */
9265 char dld_link ();
9266 int
9267 main ()
9268 {
9269 dld_link ();
9270   ;
9271   return 0;
9272 }
9273 _ACEOF
9274 rm -f conftest.$ac_objext conftest$ac_exeext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9276   (eval $ac_link) 2>conftest.er1
9277   ac_status=$?
9278   grep -v '^ *+' conftest.er1 >conftest.err
9279   rm -f conftest.er1
9280   cat conftest.err >&5
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   (exit $ac_status); } &&
9283          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285   (eval $ac_try) 2>&5
9286   ac_status=$?
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); }; } &&
9289          { ac_try='test -s conftest$ac_exeext'
9290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291   (eval $ac_try) 2>&5
9292   ac_status=$?
9293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294   (exit $ac_status); }; }; then
9295   ac_cv_lib_dld_dld_link=yes
9296 else
9297   echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300 ac_cv_lib_dld_dld_link=no
9301 fi
9302 rm -f conftest.err conftest.$ac_objext \
9303       conftest$ac_exeext conftest.$ac_ext
9304 LIBS=$ac_check_lib_save_LIBS
9305 fi
9306 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9307 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9308 if test $ac_cv_lib_dld_dld_link = yes; then
9309   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9310 fi
9311
9312
9313 fi
9314
9315
9316 fi
9317
9318
9319 fi
9320
9321
9322 fi
9323
9324
9325 fi
9326
9327     ;;
9328   esac
9329
9330   if test "x$lt_cv_dlopen" != xno; then
9331     enable_dlopen=yes
9332   else
9333     enable_dlopen=no
9334   fi
9335
9336   case $lt_cv_dlopen in
9337   dlopen)
9338     save_CPPFLAGS="$CPPFLAGS"
9339     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9340
9341     save_LDFLAGS="$LDFLAGS"
9342     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9343
9344     save_LIBS="$LIBS"
9345     LIBS="$lt_cv_dlopen_libs $LIBS"
9346
9347     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9348 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9349 if test "${lt_cv_dlopen_self+set}" = set; then
9350   echo $ECHO_N "(cached) $ECHO_C" >&6
9351 else
9352           if test "$cross_compiling" = yes; then :
9353   lt_cv_dlopen_self=cross
9354 else
9355   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9356   lt_status=$lt_dlunknown
9357   cat > conftest.$ac_ext <<EOF
9358 #line 9358 "configure"
9359 #include "confdefs.h"
9360
9361 #if HAVE_DLFCN_H
9362 #include <dlfcn.h>
9363 #endif
9364
9365 #include <stdio.h>
9366
9367 #ifdef RTLD_GLOBAL
9368 #  define LT_DLGLOBAL           RTLD_GLOBAL
9369 #else
9370 #  ifdef DL_GLOBAL
9371 #    define LT_DLGLOBAL         DL_GLOBAL
9372 #  else
9373 #    define LT_DLGLOBAL         0
9374 #  endif
9375 #endif
9376
9377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9378    find out it does not work in some platform. */
9379 #ifndef LT_DLLAZY_OR_NOW
9380 #  ifdef RTLD_LAZY
9381 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9382 #  else
9383 #    ifdef DL_LAZY
9384 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9385 #    else
9386 #      ifdef RTLD_NOW
9387 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9388 #      else
9389 #        ifdef DL_NOW
9390 #          define LT_DLLAZY_OR_NOW      DL_NOW
9391 #        else
9392 #          define LT_DLLAZY_OR_NOW      0
9393 #        endif
9394 #      endif
9395 #    endif
9396 #  endif
9397 #endif
9398
9399 #ifdef __cplusplus
9400 extern "C" void exit (int);
9401 #endif
9402
9403 void fnord() { int i=42;}
9404 int main ()
9405 {
9406   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9407   int status = $lt_dlunknown;
9408
9409   if (self)
9410     {
9411       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9412       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9413       /* dlclose (self); */
9414     }
9415   else
9416     puts (dlerror ());
9417
9418     exit (status);
9419 }
9420 EOF
9421   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9422   (eval $ac_link) 2>&5
9423   ac_status=$?
9424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9426     (./conftest; exit; ) >&5 2>/dev/null
9427     lt_status=$?
9428     case x$lt_status in
9429       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9430       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9431       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9432     esac
9433   else :
9434     # compilation failed
9435     lt_cv_dlopen_self=no
9436   fi
9437 fi
9438 rm -fr conftest*
9439
9440
9441 fi
9442 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9443 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9444
9445     if test "x$lt_cv_dlopen_self" = xyes; then
9446       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9447       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9448 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9449 if test "${lt_cv_dlopen_self_static+set}" = set; then
9450   echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452           if test "$cross_compiling" = yes; then :
9453   lt_cv_dlopen_self_static=cross
9454 else
9455   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9456   lt_status=$lt_dlunknown
9457   cat > conftest.$ac_ext <<EOF
9458 #line 9458 "configure"
9459 #include "confdefs.h"
9460
9461 #if HAVE_DLFCN_H
9462 #include <dlfcn.h>
9463 #endif
9464
9465 #include <stdio.h>
9466
9467 #ifdef RTLD_GLOBAL
9468 #  define LT_DLGLOBAL           RTLD_GLOBAL
9469 #else
9470 #  ifdef DL_GLOBAL
9471 #    define LT_DLGLOBAL         DL_GLOBAL
9472 #  else
9473 #    define LT_DLGLOBAL         0
9474 #  endif
9475 #endif
9476
9477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9478    find out it does not work in some platform. */
9479 #ifndef LT_DLLAZY_OR_NOW
9480 #  ifdef RTLD_LAZY
9481 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9482 #  else
9483 #    ifdef DL_LAZY
9484 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9485 #    else
9486 #      ifdef RTLD_NOW
9487 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9488 #      else
9489 #        ifdef DL_NOW
9490 #          define LT_DLLAZY_OR_NOW      DL_NOW
9491 #        else
9492 #          define LT_DLLAZY_OR_NOW      0
9493 #        endif
9494 #      endif
9495 #    endif
9496 #  endif
9497 #endif
9498
9499 #ifdef __cplusplus
9500 extern "C" void exit (int);
9501 #endif
9502
9503 void fnord() { int i=42;}
9504 int main ()
9505 {
9506   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9507   int status = $lt_dlunknown;
9508
9509   if (self)
9510     {
9511       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9512       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9513       /* dlclose (self); */
9514     }
9515   else
9516     puts (dlerror ());
9517
9518     exit (status);
9519 }
9520 EOF
9521   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9522   (eval $ac_link) 2>&5
9523   ac_status=$?
9524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9526     (./conftest; exit; ) >&5 2>/dev/null
9527     lt_status=$?
9528     case x$lt_status in
9529       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9530       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9531       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9532     esac
9533   else :
9534     # compilation failed
9535     lt_cv_dlopen_self_static=no
9536   fi
9537 fi
9538 rm -fr conftest*
9539
9540
9541 fi
9542 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9543 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9544     fi
9545
9546     CPPFLAGS="$save_CPPFLAGS"
9547     LDFLAGS="$save_LDFLAGS"
9548     LIBS="$save_LIBS"
9549     ;;
9550   esac
9551
9552   case $lt_cv_dlopen_self in
9553   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9554   *) enable_dlopen_self=unknown ;;
9555   esac
9556
9557   case $lt_cv_dlopen_self_static in
9558   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9559   *) enable_dlopen_self_static=unknown ;;
9560   esac
9561 fi
9562
9563
9564 # Report which library types will actually be built
9565 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9566 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9567 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9568 echo "${ECHO_T}$can_build_shared" >&6
9569
9570 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9571 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9572 test "$can_build_shared" = "no" && enable_shared=no
9573
9574 # On AIX, shared libraries and static libraries use the same namespace, and
9575 # are all built from PIC.
9576 case $host_os in
9577 aix3*)
9578   test "$enable_shared" = yes && enable_static=no
9579   if test -n "$RANLIB"; then
9580     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9581     postinstall_cmds='$RANLIB $lib'
9582   fi
9583   ;;
9584
9585 aix4* | aix5*)
9586   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9587     test "$enable_shared" = yes && enable_static=no
9588   fi
9589     ;;
9590 esac
9591 echo "$as_me:$LINENO: result: $enable_shared" >&5
9592 echo "${ECHO_T}$enable_shared" >&6
9593
9594 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9595 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9596 # Make sure either enable_shared or enable_static is yes.
9597 test "$enable_shared" = yes || enable_static=yes
9598 echo "$as_me:$LINENO: result: $enable_static" >&5
9599 echo "${ECHO_T}$enable_static" >&6
9600
9601 # The else clause should only fire when bootstrapping the
9602 # libtool distribution, otherwise you forgot to ship ltmain.sh
9603 # with your package, and you will get complaints that there are
9604 # no rules to generate ltmain.sh.
9605 if test -f "$ltmain"; then
9606   # See if we are running on zsh, and set the options which allow our commands through
9607   # without removal of \ escapes.
9608   if test -n "${ZSH_VERSION+set}" ; then
9609     setopt NO_GLOB_SUBST
9610   fi
9611   # Now quote all the things that may contain metacharacters while being
9612   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9613   # variables and quote the copies for generation of the libtool script.
9614   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9615     SED SHELL STRIP \
9616     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9617     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9618     deplibs_check_method reload_flag reload_cmds need_locks \
9619     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9620     lt_cv_sys_global_symbol_to_c_name_address \
9621     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9622     old_postinstall_cmds old_postuninstall_cmds \
9623     compiler \
9624     CC \
9625     LD \
9626     lt_prog_compiler_wl \
9627     lt_prog_compiler_pic \
9628     lt_prog_compiler_static \
9629     lt_prog_compiler_no_builtin_flag \
9630     export_dynamic_flag_spec \
9631     thread_safe_flag_spec \
9632     whole_archive_flag_spec \
9633     enable_shared_with_static_runtimes \
9634     old_archive_cmds \
9635     old_archive_from_new_cmds \
9636     predep_objects \
9637     postdep_objects \
9638     predeps \
9639     postdeps \
9640     compiler_lib_search_path \
9641     archive_cmds \
9642     archive_expsym_cmds \
9643     postinstall_cmds \
9644     postuninstall_cmds \
9645     old_archive_from_expsyms_cmds \
9646     allow_undefined_flag \
9647     no_undefined_flag \
9648     export_symbols_cmds \
9649     hardcode_libdir_flag_spec \
9650     hardcode_libdir_flag_spec_ld \
9651     hardcode_libdir_separator \
9652     hardcode_automatic \
9653     module_cmds \
9654     module_expsym_cmds \
9655     lt_cv_prog_compiler_c_o \
9656     exclude_expsyms \
9657     include_expsyms; do
9658
9659     case $var in
9660     old_archive_cmds | \
9661     old_archive_from_new_cmds | \
9662     archive_cmds | \
9663     archive_expsym_cmds | \
9664     module_cmds | \
9665     module_expsym_cmds | \
9666     old_archive_from_expsyms_cmds | \
9667     export_symbols_cmds | \
9668     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9669     postinstall_cmds | postuninstall_cmds | \
9670     old_postinstall_cmds | old_postuninstall_cmds | \
9671     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9672       # Double-quote double-evaled strings.
9673       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9674       ;;
9675     *)
9676       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9677       ;;
9678     esac
9679   done
9680
9681   case $lt_echo in
9682   *'\$0 --fallback-echo"')
9683     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9684     ;;
9685   esac
9686
9687 cfgfile="${ofile}T"
9688   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9689   $rm -f "$cfgfile"
9690   { echo "$as_me:$LINENO: creating $ofile" >&5
9691 echo "$as_me: creating $ofile" >&6;}
9692
9693   cat <<__EOF__ >> "$cfgfile"
9694 #! $SHELL
9695
9696 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9697 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9698 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9699 #
9700 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9701 # Free Software Foundation, Inc.
9702 #
9703 # This file is part of GNU Libtool:
9704 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9705 #
9706 # This program is free software; you can redistribute it and/or modify
9707 # it under the terms of the GNU General Public License as published by
9708 # the Free Software Foundation; either version 2 of the License, or
9709 # (at your option) any later version.
9710 #
9711 # This program is distributed in the hope that it will be useful, but
9712 # WITHOUT ANY WARRANTY; without even the implied warranty of
9713 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9714 # General Public License for more details.
9715 #
9716 # You should have received a copy of the GNU General Public License
9717 # along with this program; if not, write to the Free Software
9718 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9719 #
9720 # As a special exception to the GNU General Public License, if you
9721 # distribute this file as part of a program that contains a
9722 # configuration script generated by Autoconf, you may include it under
9723 # the same distribution terms that you use for the rest of that program.
9724
9725 # A sed program that does not truncate output.
9726 SED=$lt_SED
9727
9728 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9729 Xsed="$SED -e 1s/^X//"
9730
9731 # The HP-UX ksh and POSIX shell print the target directory to stdout
9732 # if CDPATH is set.
9733 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9734
9735 # The names of the tagged configurations supported by this script.
9736 available_tags=
9737
9738 # ### BEGIN LIBTOOL CONFIG
9739
9740 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9741
9742 # Shell to use when invoking shell scripts.
9743 SHELL=$lt_SHELL
9744
9745 # Whether or not to build shared libraries.
9746 build_libtool_libs=$enable_shared
9747
9748 # Whether or not to build static libraries.
9749 build_old_libs=$enable_static
9750
9751 # Whether or not to add -lc for building shared libraries.
9752 build_libtool_need_lc=$archive_cmds_need_lc
9753
9754 # Whether or not to disallow shared libs when runtime libs are static
9755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9756
9757 # Whether or not to optimize for fast installation.
9758 fast_install=$enable_fast_install
9759
9760 # The host system.
9761 host_alias=$host_alias
9762 host=$host
9763 host_os=$host_os
9764
9765 # The build system.
9766 build_alias=$build_alias
9767 build=$build
9768 build_os=$build_os
9769
9770 # An echo program that does not interpret backslashes.
9771 echo=$lt_echo
9772
9773 # The archiver.
9774 AR=$lt_AR
9775 AR_FLAGS=$lt_AR_FLAGS
9776
9777 # A C compiler.
9778 LTCC=$lt_LTCC
9779
9780 # LTCC compiler flags.
9781 LTCFLAGS=$lt_LTCFLAGS
9782
9783 # A language-specific compiler.
9784 CC=$lt_compiler
9785
9786 # Is the compiler the GNU C compiler?
9787 with_gcc=$GCC
9788
9789 # An ERE matcher.
9790 EGREP=$lt_EGREP
9791
9792 # The linker used to build libraries.
9793 LD=$lt_LD
9794
9795 # Whether we need hard or soft links.
9796 LN_S=$lt_LN_S
9797
9798 # A BSD-compatible nm program.
9799 NM=$lt_NM
9800
9801 # A symbol stripping program
9802 STRIP=$lt_STRIP
9803
9804 # Used to examine libraries when file_magic_cmd begins "file"
9805 MAGIC_CMD=$MAGIC_CMD
9806
9807 # Used on cygwin: DLL creation program.
9808 DLLTOOL="$DLLTOOL"
9809
9810 # Used on cygwin: object dumper.
9811 OBJDUMP="$OBJDUMP"
9812
9813 # Used on cygwin: assembler.
9814 AS="$AS"
9815
9816 # The name of the directory that contains temporary libtool files.
9817 objdir=$objdir
9818
9819 # How to create reloadable object files.
9820 reload_flag=$lt_reload_flag
9821 reload_cmds=$lt_reload_cmds
9822
9823 # How to pass a linker flag through the compiler.
9824 wl=$lt_lt_prog_compiler_wl
9825
9826 # Object file suffix (normally "o").
9827 objext="$ac_objext"
9828
9829 # Old archive suffix (normally "a").
9830 libext="$libext"
9831
9832 # Shared library suffix (normally ".so").
9833 shrext_cmds='$shrext_cmds'
9834
9835 # Executable file suffix (normally "").
9836 exeext="$exeext"
9837
9838 # Additional compiler flags for building library objects.
9839 pic_flag=$lt_lt_prog_compiler_pic
9840 pic_mode=$pic_mode
9841
9842 # What is the maximum length of a command?
9843 max_cmd_len=$lt_cv_sys_max_cmd_len
9844
9845 # Does compiler simultaneously support -c and -o options?
9846 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9847
9848 # Must we lock files when doing compilation?
9849 need_locks=$lt_need_locks
9850
9851 # Do we need the lib prefix for modules?
9852 need_lib_prefix=$need_lib_prefix
9853
9854 # Do we need a version for libraries?
9855 need_version=$need_version
9856
9857 # Whether dlopen is supported.
9858 dlopen_support=$enable_dlopen
9859
9860 # Whether dlopen of programs is supported.
9861 dlopen_self=$enable_dlopen_self
9862
9863 # Whether dlopen of statically linked programs is supported.
9864 dlopen_self_static=$enable_dlopen_self_static
9865
9866 # Compiler flag to prevent dynamic linking.
9867 link_static_flag=$lt_lt_prog_compiler_static
9868
9869 # Compiler flag to turn off builtin functions.
9870 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9871
9872 # Compiler flag to allow reflexive dlopens.
9873 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9874
9875 # Compiler flag to generate shared objects directly from archives.
9876 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9877
9878 # Compiler flag to generate thread-safe objects.
9879 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9880
9881 # Library versioning type.
9882 version_type=$version_type
9883
9884 # Format of library name prefix.
9885 libname_spec=$lt_libname_spec
9886
9887 # List of archive names.  First name is the real one, the rest are links.
9888 # The last name is the one that the linker finds with -lNAME.
9889 library_names_spec=$lt_library_names_spec
9890
9891 # The coded name of the library, if different from the real name.
9892 soname_spec=$lt_soname_spec
9893
9894 # Commands used to build and install an old-style archive.
9895 RANLIB=$lt_RANLIB
9896 old_archive_cmds=$lt_old_archive_cmds
9897 old_postinstall_cmds=$lt_old_postinstall_cmds
9898 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9899
9900 # Create an old-style archive from a shared archive.
9901 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9902
9903 # Create a temporary old-style archive to link instead of a shared archive.
9904 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9905
9906 # Commands used to build and install a shared archive.
9907 archive_cmds=$lt_archive_cmds
9908 archive_expsym_cmds=$lt_archive_expsym_cmds
9909 postinstall_cmds=$lt_postinstall_cmds
9910 postuninstall_cmds=$lt_postuninstall_cmds
9911
9912 # Commands used to build a loadable module (assumed same as above if empty)
9913 module_cmds=$lt_module_cmds
9914 module_expsym_cmds=$lt_module_expsym_cmds
9915
9916 # Commands to strip libraries.
9917 old_striplib=$lt_old_striplib
9918 striplib=$lt_striplib
9919
9920 # Dependencies to place before the objects being linked to create a
9921 # shared library.
9922 predep_objects=$lt_predep_objects
9923
9924 # Dependencies to place after the objects being linked to create a
9925 # shared library.
9926 postdep_objects=$lt_postdep_objects
9927
9928 # Dependencies to place before the objects being linked to create a
9929 # shared library.
9930 predeps=$lt_predeps
9931
9932 # Dependencies to place after the objects being linked to create a
9933 # shared library.
9934 postdeps=$lt_postdeps
9935
9936 # The library search path used internally by the compiler when linking
9937 # a shared library.
9938 compiler_lib_search_path=$lt_compiler_lib_search_path
9939
9940 # Method to check whether dependent libraries are shared objects.
9941 deplibs_check_method=$lt_deplibs_check_method
9942
9943 # Command to use when deplibs_check_method == file_magic.
9944 file_magic_cmd=$lt_file_magic_cmd
9945
9946 # Flag that allows shared libraries with undefined symbols to be built.
9947 allow_undefined_flag=$lt_allow_undefined_flag
9948
9949 # Flag that forces no undefined symbols.
9950 no_undefined_flag=$lt_no_undefined_flag
9951
9952 # Commands used to finish a libtool library installation in a directory.
9953 finish_cmds=$lt_finish_cmds
9954
9955 # Same as above, but a single script fragment to be evaled but not shown.
9956 finish_eval=$lt_finish_eval
9957
9958 # Take the output of nm and produce a listing of raw symbols and C names.
9959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9960
9961 # Transform the output of nm in a proper C declaration
9962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9963
9964 # Transform the output of nm in a C name address pair
9965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9966
9967 # This is the shared library runtime path variable.
9968 runpath_var=$runpath_var
9969
9970 # This is the shared library path variable.
9971 shlibpath_var=$shlibpath_var
9972
9973 # Is shlibpath searched before the hard-coded library search path?
9974 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9975
9976 # How to hardcode a shared library path into an executable.
9977 hardcode_action=$hardcode_action
9978
9979 # Whether we should hardcode library paths into libraries.
9980 hardcode_into_libs=$hardcode_into_libs
9981
9982 # Flag to hardcode \$libdir into a binary during linking.
9983 # This must work even if \$libdir does not exist.
9984 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9985
9986 # If ld is used when linking, flag to hardcode \$libdir into
9987 # a binary during linking. This must work even if \$libdir does
9988 # not exist.
9989 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9990
9991 # Whether we need a single -rpath flag with a separated argument.
9992 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9993
9994 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9995 # resulting binary.
9996 hardcode_direct=$hardcode_direct
9997
9998 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9999 # resulting binary.
10000 hardcode_minus_L=$hardcode_minus_L
10001
10002 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10003 # the resulting binary.
10004 hardcode_shlibpath_var=$hardcode_shlibpath_var
10005
10006 # Set to yes if building a shared library automatically hardcodes DIR into the library
10007 # and all subsequent libraries and executables linked against it.
10008 hardcode_automatic=$hardcode_automatic
10009
10010 # Variables whose values should be saved in libtool wrapper scripts and
10011 # restored at relink time.
10012 variables_saved_for_relink="$variables_saved_for_relink"
10013
10014 # Whether libtool must link a program against all its dependency libraries.
10015 link_all_deplibs=$link_all_deplibs
10016
10017 # Compile-time system search path for libraries
10018 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10019
10020 # Run-time system search path for libraries
10021 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10022
10023 # Fix the shell variable \$srcfile for the compiler.
10024 fix_srcfile_path="$fix_srcfile_path"
10025
10026 # Set to yes if exported symbols are required.
10027 always_export_symbols=$always_export_symbols
10028
10029 # The commands to list exported symbols.
10030 export_symbols_cmds=$lt_export_symbols_cmds
10031
10032 # The commands to extract the exported symbol list from a shared archive.
10033 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10034
10035 # Symbols that should not be listed in the preloaded symbols.
10036 exclude_expsyms=$lt_exclude_expsyms
10037
10038 # Symbols that must always be exported.
10039 include_expsyms=$lt_include_expsyms
10040
10041 # ### END LIBTOOL CONFIG
10042
10043 __EOF__
10044
10045
10046   case $host_os in
10047   aix3*)
10048     cat <<\EOF >> "$cfgfile"
10049
10050 # AIX sometimes has problems with the GCC collect2 program.  For some
10051 # reason, if we set the COLLECT_NAMES environment variable, the problems
10052 # vanish in a puff of smoke.
10053 if test "X${COLLECT_NAMES+set}" != Xset; then
10054   COLLECT_NAMES=
10055   export COLLECT_NAMES
10056 fi
10057 EOF
10058     ;;
10059   esac
10060
10061   # We use sed instead of cat because bash on DJGPP gets confused if
10062   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10063   # text mode, it properly converts lines to CR/LF.  This bash problem
10064   # is reportedly fixed, but why not run on old versions too?
10065   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10066
10067   mv -f "$cfgfile" "$ofile" || \
10068     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10069   chmod +x "$ofile"
10070
10071 else
10072   # If there is no Makefile yet, we rely on a make rule to execute
10073   # `config.status --recheck' to rerun these tests and create the
10074   # libtool script then.
10075   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10076   if test -f "$ltmain_in"; then
10077     test -f Makefile && make "$ltmain"
10078   fi
10079 fi
10080
10081
10082 ac_ext=c
10083 ac_cpp='$CPP $CPPFLAGS'
10084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10087
10088 CC="$lt_save_CC"
10089
10090
10091 # Check whether --with-tags or --without-tags was given.
10092 if test "${with_tags+set}" = set; then
10093   withval="$with_tags"
10094   tagnames="$withval"
10095 fi;
10096
10097 if test -f "$ltmain" && test -n "$tagnames"; then
10098   if test ! -f "${ofile}"; then
10099     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10100 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10101   fi
10102
10103   if test -z "$LTCC"; then
10104     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10105     if test -z "$LTCC"; then
10106       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10107 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10108     else
10109       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10110 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10111     fi
10112   fi
10113   if test -z "$LTCFLAGS"; then
10114     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10115   fi
10116
10117   # Extract list of available tagged configurations in $ofile.
10118   # Note that this assumes the entire list is on one line.
10119   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10120
10121   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10122   for tagname in $tagnames; do
10123     IFS="$lt_save_ifs"
10124     # Check whether tagname contains only valid characters
10125     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10126     "") ;;
10127     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10128 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10129    { (exit 1); exit 1; }; }
10130         ;;
10131     esac
10132
10133     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10134     then
10135       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10136 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10137    { (exit 1); exit 1; }; }
10138     fi
10139
10140     # Update the list of available tags.
10141     if test -n "$tagname"; then
10142       echo appending configuration tag \"$tagname\" to $ofile
10143
10144       case $tagname in
10145       CXX)
10146         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10147             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10148             (test "X$CXX" != "Xg++"))) ; then
10149           ac_ext=cc
10150 ac_cpp='$CXXCPP $CPPFLAGS'
10151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10154
10155
10156
10157
10158 archive_cmds_need_lc_CXX=no
10159 allow_undefined_flag_CXX=
10160 always_export_symbols_CXX=no
10161 archive_expsym_cmds_CXX=
10162 export_dynamic_flag_spec_CXX=
10163 hardcode_direct_CXX=no
10164 hardcode_libdir_flag_spec_CXX=
10165 hardcode_libdir_flag_spec_ld_CXX=
10166 hardcode_libdir_separator_CXX=
10167 hardcode_minus_L_CXX=no
10168 hardcode_shlibpath_var_CXX=unsupported
10169 hardcode_automatic_CXX=no
10170 module_cmds_CXX=
10171 module_expsym_cmds_CXX=
10172 link_all_deplibs_CXX=unknown
10173 old_archive_cmds_CXX=$old_archive_cmds
10174 no_undefined_flag_CXX=
10175 whole_archive_flag_spec_CXX=
10176 enable_shared_with_static_runtimes_CXX=no
10177
10178 # Dependencies to place before and after the object being linked:
10179 predep_objects_CXX=
10180 postdep_objects_CXX=
10181 predeps_CXX=
10182 postdeps_CXX=
10183 compiler_lib_search_path_CXX=
10184
10185 # Source file extension for C++ test sources.
10186 ac_ext=cpp
10187
10188 # Object file extension for compiled C++ test sources.
10189 objext=o
10190 objext_CXX=$objext
10191
10192 # Code to be used in simple compile tests
10193 lt_simple_compile_test_code="int some_variable = 0;\n"
10194
10195 # Code to be used in simple link tests
10196 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10197
10198 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10199
10200 # If no C compiler was specified, use CC.
10201 LTCC=${LTCC-"$CC"}
10202
10203 # If no C compiler flags were specified, use CFLAGS.
10204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10205
10206 # Allow CC to be a program name with arguments.
10207 compiler=$CC
10208
10209
10210 # save warnings/boilerplate of simple test code
10211 ac_outfile=conftest.$ac_objext
10212 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10213 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10214 _lt_compiler_boilerplate=`cat conftest.err`
10215 $rm conftest*
10216
10217 ac_outfile=conftest.$ac_objext
10218 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10219 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10220 _lt_linker_boilerplate=`cat conftest.err`
10221 $rm conftest*
10222
10223
10224 # Allow CC to be a program name with arguments.
10225 lt_save_CC=$CC
10226 lt_save_LD=$LD
10227 lt_save_GCC=$GCC
10228 GCC=$GXX
10229 lt_save_with_gnu_ld=$with_gnu_ld
10230 lt_save_path_LD=$lt_cv_path_LD
10231 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10232   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10233 else
10234   $as_unset lt_cv_prog_gnu_ld
10235 fi
10236 if test -n "${lt_cv_path_LDCXX+set}"; then
10237   lt_cv_path_LD=$lt_cv_path_LDCXX
10238 else
10239   $as_unset lt_cv_path_LD
10240 fi
10241 test -z "${LDCXX+set}" || LD=$LDCXX
10242 CC=${CXX-"c++"}
10243 compiler=$CC
10244 compiler_CXX=$CC
10245 for cc_temp in $compiler""; do
10246   case $cc_temp in
10247     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10248     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10249     \-*) ;;
10250     *) break;;
10251   esac
10252 done
10253 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10254
10255
10256 # We don't want -fno-exception wen compiling C++ code, so set the
10257 # no_builtin_flag separately
10258 if test "$GXX" = yes; then
10259   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10260 else
10261   lt_prog_compiler_no_builtin_flag_CXX=
10262 fi
10263
10264 if test "$GXX" = yes; then
10265   # Set up default GNU C++ configuration
10266
10267
10268 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10269 if test "${with_gnu_ld+set}" = set; then
10270   withval="$with_gnu_ld"
10271   test "$withval" = no || with_gnu_ld=yes
10272 else
10273   with_gnu_ld=no
10274 fi;
10275 ac_prog=ld
10276 if test "$GCC" = yes; then
10277   # Check if gcc -print-prog-name=ld gives a path.
10278   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10279 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10280   case $host in
10281   *-*-mingw*)
10282     # gcc leaves a trailing carriage return which upsets mingw
10283     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10284   *)
10285     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10286   esac
10287   case $ac_prog in
10288     # Accept absolute paths.
10289     [\\/]* | ?:[\\/]*)
10290       re_direlt='/[^/][^/]*/\.\./'
10291       # Canonicalize the pathname of ld
10292       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10293       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10294         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10295       done
10296       test -z "$LD" && LD="$ac_prog"
10297       ;;
10298   "")
10299     # If it fails, then pretend we aren't using GCC.
10300     ac_prog=ld
10301     ;;
10302   *)
10303     # If it is relative, then search for the first ld in PATH.
10304     with_gnu_ld=unknown
10305     ;;
10306   esac
10307 elif test "$with_gnu_ld" = yes; then
10308   echo "$as_me:$LINENO: checking for GNU ld" >&5
10309 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10310 else
10311   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10312 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10313 fi
10314 if test "${lt_cv_path_LD+set}" = set; then
10315   echo $ECHO_N "(cached) $ECHO_C" >&6
10316 else
10317   if test -z "$LD"; then
10318   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10319   for ac_dir in $PATH; do
10320     IFS="$lt_save_ifs"
10321     test -z "$ac_dir" && ac_dir=.
10322     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10323       lt_cv_path_LD="$ac_dir/$ac_prog"
10324       # Check to see if the program is GNU ld.  I'd rather use --version,
10325       # but apparently some variants of GNU ld only accept -v.
10326       # Break only if it was the GNU/non-GNU ld that we prefer.
10327       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10328       *GNU* | *'with BFD'*)
10329         test "$with_gnu_ld" != no && break
10330         ;;
10331       *)
10332         test "$with_gnu_ld" != yes && break
10333         ;;
10334       esac
10335     fi
10336   done
10337   IFS="$lt_save_ifs"
10338 else
10339   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10340 fi
10341 fi
10342
10343 LD="$lt_cv_path_LD"
10344 if test -n "$LD"; then
10345   echo "$as_me:$LINENO: result: $LD" >&5
10346 echo "${ECHO_T}$LD" >&6
10347 else
10348   echo "$as_me:$LINENO: result: no" >&5
10349 echo "${ECHO_T}no" >&6
10350 fi
10351 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10352 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10353    { (exit 1); exit 1; }; }
10354 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10355 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10356 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10357   echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10360 case `$LD -v 2>&1 </dev/null` in
10361 *GNU* | *'with BFD'*)
10362   lt_cv_prog_gnu_ld=yes
10363   ;;
10364 *)
10365   lt_cv_prog_gnu_ld=no
10366   ;;
10367 esac
10368 fi
10369 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10370 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10371 with_gnu_ld=$lt_cv_prog_gnu_ld
10372
10373
10374
10375   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10376   # archiving commands below assume that GNU ld is being used.
10377   if test "$with_gnu_ld" = yes; then
10378     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10379     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'
10380
10381     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10382     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10383
10384     # If archive_cmds runs LD, not CC, wlarc should be empty
10385     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10386     #     investigate it a little bit more. (MM)
10387     wlarc='${wl}'
10388
10389     # ancient GNU ld didn't support --whole-archive et. al.
10390     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10391         grep 'no-whole-archive' > /dev/null; then
10392       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10393     else
10394       whole_archive_flag_spec_CXX=
10395     fi
10396   else
10397     with_gnu_ld=no
10398     wlarc=
10399
10400     # A generic and very simple default shared library creation
10401     # command for GNU C++ for the case where it uses the native
10402     # linker, instead of GNU ld.  If possible, this setting should
10403     # overridden to take advantage of the native linker features on
10404     # the platform it is being used on.
10405     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10406   fi
10407
10408   # Commands to make compiler produce verbose output that lists
10409   # what "hidden" libraries, object files and flags are used when
10410   # linking a shared library.
10411   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10412
10413 else
10414   GXX=no
10415   with_gnu_ld=no
10416   wlarc=
10417 fi
10418
10419 # PORTME: fill in a description of your system's C++ link characteristics
10420 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10421 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10422 ld_shlibs_CXX=yes
10423 case $host_os in
10424   aix3*)
10425     # FIXME: insert proper C++ library support
10426     ld_shlibs_CXX=no
10427     ;;
10428   aix4* | aix5*)
10429     if test "$host_cpu" = ia64; then
10430       # On IA64, the linker does run time linking by default, so we don't
10431       # have to do anything special.
10432       aix_use_runtimelinking=no
10433       exp_sym_flag='-Bexport'
10434       no_entry_flag=""
10435     else
10436       aix_use_runtimelinking=no
10437
10438       # Test if we are trying to use run time linking or normal
10439       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10440       # need to do runtime linking.
10441       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10442         for ld_flag in $LDFLAGS; do
10443           case $ld_flag in
10444           *-brtl*)
10445             aix_use_runtimelinking=yes
10446             break
10447             ;;
10448           esac
10449         done
10450         ;;
10451       esac
10452
10453       exp_sym_flag='-bexport'
10454       no_entry_flag='-bnoentry'
10455     fi
10456
10457     # When large executables or shared objects are built, AIX ld can
10458     # have problems creating the table of contents.  If linking a library
10459     # or program results in "error TOC overflow" add -mminimal-toc to
10460     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10461     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10462
10463     archive_cmds_CXX=''
10464     hardcode_direct_CXX=yes
10465     hardcode_libdir_separator_CXX=':'
10466     link_all_deplibs_CXX=yes
10467
10468     if test "$GXX" = yes; then
10469       case $host_os in aix4.[012]|aix4.[012].*)
10470       # We only want to do this on AIX 4.2 and lower, the check
10471       # below for broken collect2 doesn't work under 4.3+
10472         collect2name=`${CC} -print-prog-name=collect2`
10473         if test -f "$collect2name" && \
10474            strings "$collect2name" | grep resolve_lib_name >/dev/null
10475         then
10476           # We have reworked collect2
10477           hardcode_direct_CXX=yes
10478         else
10479           # We have old collect2
10480           hardcode_direct_CXX=unsupported
10481           # It fails to find uninstalled libraries when the uninstalled
10482           # path is not listed in the libpath.  Setting hardcode_minus_L
10483           # to unsupported forces relinking
10484           hardcode_minus_L_CXX=yes
10485           hardcode_libdir_flag_spec_CXX='-L$libdir'
10486           hardcode_libdir_separator_CXX=
10487         fi
10488         ;;
10489       esac
10490       shared_flag='-shared'
10491       if test "$aix_use_runtimelinking" = yes; then
10492         shared_flag="$shared_flag "'${wl}-G'
10493       fi
10494     else
10495       # not using gcc
10496       if test "$host_cpu" = ia64; then
10497         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10498         # chokes on -Wl,-G. The following line is correct:
10499         shared_flag='-G'
10500       else
10501         if test "$aix_use_runtimelinking" = yes; then
10502           shared_flag='${wl}-G'
10503         else
10504           shared_flag='${wl}-bM:SRE'
10505         fi
10506       fi
10507     fi
10508
10509     # It seems that -bexpall does not export symbols beginning with
10510     # underscore (_), so it is better to generate a list of symbols to export.
10511     always_export_symbols_CXX=yes
10512     if test "$aix_use_runtimelinking" = yes; then
10513       # Warning - without using the other runtime loading flags (-brtl),
10514       # -berok will link without error, but may produce a broken library.
10515       allow_undefined_flag_CXX='-berok'
10516       # Determine the default libpath from the value encoded in an empty executable.
10517       cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h.  */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h.  */
10523
10524 int
10525 main ()
10526 {
10527
10528   ;
10529   return 0;
10530 }
10531 _ACEOF
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534   (eval $ac_link) 2>conftest.er1
10535   ac_status=$?
10536   grep -v '^ *+' conftest.er1 >conftest.err
10537   rm -f conftest.er1
10538   cat conftest.err >&5
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); } &&
10541          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543   (eval $ac_try) 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); }; } &&
10547          { ac_try='test -s conftest$ac_exeext'
10548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549   (eval $ac_try) 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); }; }; then
10553
10554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10555 }'`
10556 # Check for a 64-bit object if we didn't find anything.
10557 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; }
10558 }'`; fi
10559 else
10560   echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10562
10563 fi
10564 rm -f conftest.err conftest.$ac_objext \
10565       conftest$ac_exeext conftest.$ac_ext
10566 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10567
10568       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10569
10570       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"
10571      else
10572       if test "$host_cpu" = ia64; then
10573         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10574         allow_undefined_flag_CXX="-z nodefs"
10575         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"
10576       else
10577         # Determine the default libpath from the value encoded in an empty executable.
10578         cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h.  */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h.  */
10584
10585 int
10586 main ()
10587 {
10588
10589   ;
10590   return 0;
10591 }
10592 _ACEOF
10593 rm -f conftest.$ac_objext conftest$ac_exeext
10594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10595   (eval $ac_link) 2>conftest.er1
10596   ac_status=$?
10597   grep -v '^ *+' conftest.er1 >conftest.err
10598   rm -f conftest.er1
10599   cat conftest.err >&5
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } &&
10602          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604   (eval $ac_try) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; } &&
10608          { ac_try='test -s conftest$ac_exeext'
10609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610   (eval $ac_try) 2>&5
10611   ac_status=$?
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); }; }; then
10614
10615 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10616 }'`
10617 # Check for a 64-bit object if we didn't find anything.
10618 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; }
10619 }'`; fi
10620 else
10621   echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10623
10624 fi
10625 rm -f conftest.err conftest.$ac_objext \
10626       conftest$ac_exeext conftest.$ac_ext
10627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10628
10629         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10630         # Warning - without using the other run time loading flags,
10631         # -berok will link without error, but may produce a broken library.
10632         no_undefined_flag_CXX=' ${wl}-bernotok'
10633         allow_undefined_flag_CXX=' ${wl}-berok'
10634         # Exported symbols can be pulled into shared objects from archives
10635         whole_archive_flag_spec_CXX='$convenience'
10636         archive_cmds_need_lc_CXX=yes
10637         # This is similar to how AIX traditionally builds its shared libraries.
10638         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'
10639       fi
10640     fi
10641     ;;
10642
10643   beos*)
10644     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10645       allow_undefined_flag_CXX=unsupported
10646       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10647       # support --undefined.  This deserves some investigation.  FIXME
10648       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10649     else
10650       ld_shlibs_CXX=no
10651     fi
10652     ;;
10653
10654   chorus*)
10655     case $cc_basename in
10656       *)
10657         # FIXME: insert proper C++ library support
10658         ld_shlibs_CXX=no
10659         ;;
10660     esac
10661     ;;
10662
10663   cygwin* | mingw* | pw32*)
10664     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10665     # as there is no search path for DLLs.
10666     hardcode_libdir_flag_spec_CXX='-L$libdir'
10667     allow_undefined_flag_CXX=unsupported
10668     always_export_symbols_CXX=no
10669     enable_shared_with_static_runtimes_CXX=yes
10670
10671     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10672       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'
10673       # If the export-symbols file already is a .def file (1st line
10674       # is EXPORTS), use it as is; otherwise, prepend...
10675       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10676         cp $export_symbols $output_objdir/$soname.def;
10677       else
10678         echo EXPORTS > $output_objdir/$soname.def;
10679         cat $export_symbols >> $output_objdir/$soname.def;
10680       fi~
10681       $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'
10682     else
10683       ld_shlibs_CXX=no
10684     fi
10685   ;;
10686       darwin* | rhapsody*)
10687         case $host_os in
10688         rhapsody* | darwin1.[012])
10689          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10690          ;;
10691        *) # Darwin 1.3 on
10692          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10693            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10694          else
10695            case ${MACOSX_DEPLOYMENT_TARGET} in
10696              10.[012])
10697                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10698                ;;
10699              10.*)
10700                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10701                ;;
10702            esac
10703          fi
10704          ;;
10705         esac
10706       archive_cmds_need_lc_CXX=no
10707       hardcode_direct_CXX=no
10708       hardcode_automatic_CXX=yes
10709       hardcode_shlibpath_var_CXX=unsupported
10710       whole_archive_flag_spec_CXX=''
10711       link_all_deplibs_CXX=yes
10712
10713     if test "$GXX" = yes ; then
10714       lt_int_apple_cc_single_mod=no
10715       output_verbose_link_cmd='echo'
10716       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10717        lt_int_apple_cc_single_mod=yes
10718       fi
10719       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10720        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10721       else
10722           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'
10723         fi
10724         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10725         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10726           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10727             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}'
10728           else
10729             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}'
10730           fi
10731             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}'
10732       else
10733       case $cc_basename in
10734         xlc*)
10735          output_verbose_link_cmd='echo'
10736           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'
10737           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10738           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10739           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}'
10740           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}'
10741           ;;
10742        *)
10743          ld_shlibs_CXX=no
10744           ;;
10745       esac
10746       fi
10747         ;;
10748
10749   dgux*)
10750     case $cc_basename in
10751       ec++*)
10752         # FIXME: insert proper C++ library support
10753         ld_shlibs_CXX=no
10754         ;;
10755       ghcx*)
10756         # Green Hills C++ Compiler
10757         # FIXME: insert proper C++ library support
10758         ld_shlibs_CXX=no
10759         ;;
10760       *)
10761         # FIXME: insert proper C++ library support
10762         ld_shlibs_CXX=no
10763         ;;
10764     esac
10765     ;;
10766   freebsd[12]*)
10767     # C++ shared libraries reported to be fairly broken before switch to ELF
10768     ld_shlibs_CXX=no
10769     ;;
10770   freebsd-elf*)
10771     archive_cmds_need_lc_CXX=no
10772     ;;
10773   freebsd* | kfreebsd*-gnu | dragonfly*)
10774     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10775     # conventions
10776     ld_shlibs_CXX=yes
10777     ;;
10778   gnu*)
10779     ;;
10780   hpux9*)
10781     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10782     hardcode_libdir_separator_CXX=:
10783     export_dynamic_flag_spec_CXX='${wl}-E'
10784     hardcode_direct_CXX=yes
10785     hardcode_minus_L_CXX=yes # Not in the search PATH,
10786                                 # but as the default
10787                                 # location of the library.
10788
10789     case $cc_basename in
10790     CC*)
10791       # FIXME: insert proper C++ library support
10792       ld_shlibs_CXX=no
10793       ;;
10794     aCC*)
10795       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'
10796       # Commands to make compiler produce verbose output that lists
10797       # what "hidden" libraries, object files and flags are used when
10798       # linking a shared library.
10799       #
10800       # There doesn't appear to be a way to prevent this compiler from
10801       # explicitly linking system object files so we need to strip them
10802       # from the output so that they don't get included in the library
10803       # dependencies.
10804       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'
10805       ;;
10806     *)
10807       if test "$GXX" = yes; then
10808         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'
10809       else
10810         # FIXME: insert proper C++ library support
10811         ld_shlibs_CXX=no
10812       fi
10813       ;;
10814     esac
10815     ;;
10816   hpux10*|hpux11*)
10817     if test $with_gnu_ld = no; then
10818       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10819       hardcode_libdir_separator_CXX=:
10820
10821       case $host_cpu in
10822       hppa*64*|ia64*)
10823         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10824         ;;
10825       *)
10826         export_dynamic_flag_spec_CXX='${wl}-E'
10827         ;;
10828       esac
10829     fi
10830     case $host_cpu in
10831     hppa*64*|ia64*)
10832       hardcode_direct_CXX=no
10833       hardcode_shlibpath_var_CXX=no
10834       ;;
10835     *)
10836       hardcode_direct_CXX=yes
10837       hardcode_minus_L_CXX=yes # Not in the search PATH,
10838                                               # but as the default
10839                                               # location of the library.
10840       ;;
10841     esac
10842
10843     case $cc_basename in
10844       CC*)
10845         # FIXME: insert proper C++ library support
10846         ld_shlibs_CXX=no
10847         ;;
10848       aCC*)
10849         case $host_cpu in
10850         hppa*64*)
10851           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10852           ;;
10853         ia64*)
10854           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10855           ;;
10856         *)
10857           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10858           ;;
10859         esac
10860         # Commands to make compiler produce verbose output that lists
10861         # what "hidden" libraries, object files and flags are used when
10862         # linking a shared library.
10863         #
10864         # There doesn't appear to be a way to prevent this compiler from
10865         # explicitly linking system object files so we need to strip them
10866         # from the output so that they don't get included in the library
10867         # dependencies.
10868         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'
10869         ;;
10870       *)
10871         if test "$GXX" = yes; then
10872           if test $with_gnu_ld = no; then
10873             case $host_cpu in
10874             hppa*64*)
10875               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10876               ;;
10877             ia64*)
10878               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10879               ;;
10880             *)
10881               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'
10882               ;;
10883             esac
10884           fi
10885         else
10886           # FIXME: insert proper C++ library support
10887           ld_shlibs_CXX=no
10888         fi
10889         ;;
10890     esac
10891     ;;
10892   interix3*)
10893     hardcode_direct_CXX=no
10894     hardcode_shlibpath_var_CXX=no
10895     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10896     export_dynamic_flag_spec_CXX='${wl}-E'
10897     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10898     # Instead, shared libraries are loaded at an image base (0x10000000 by
10899     # default) and relocated if they conflict, which is a slow very memory
10900     # consuming and fragmenting process.  To avoid this, we pick a random,
10901     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10902     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10903     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'
10904     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'
10905     ;;
10906   irix5* | irix6*)
10907     case $cc_basename in
10908       CC*)
10909         # SGI C++
10910         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'
10911
10912         # Archives containing C++ object files must be created using
10913         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10914         # necessary to make sure instantiated templates are included
10915         # in the archive.
10916         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10917         ;;
10918       *)
10919         if test "$GXX" = yes; then
10920           if test "$with_gnu_ld" = no; then
10921             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'
10922           else
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` -o $lib'
10924           fi
10925         fi
10926         link_all_deplibs_CXX=yes
10927         ;;
10928     esac
10929     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10930     hardcode_libdir_separator_CXX=:
10931     ;;
10932   linux*)
10933     case $cc_basename in
10934       KCC*)
10935         # Kuck and Associates, Inc. (KAI) C++ Compiler
10936
10937         # KCC will only create a shared library if the output file
10938         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10939         # to its proper name (with version) after linking.
10940         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'
10941         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'
10942         # Commands to make compiler produce verbose output that lists
10943         # what "hidden" libraries, object files and flags are used when
10944         # linking a shared library.
10945         #
10946         # There doesn't appear to be a way to prevent this compiler from
10947         # explicitly linking system object files so we need to strip them
10948         # from the output so that they don't get included in the library
10949         # dependencies.
10950         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'
10951
10952         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10953         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10954
10955         # Archives containing C++ object files must be created using
10956         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10957         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10958         ;;
10959       icpc*)
10960         # Intel C++
10961         with_gnu_ld=yes
10962         # version 8.0 and above of icpc choke on multiply defined symbols
10963         # if we add $predep_objects and $postdep_objects, however 7.1 and
10964         # earlier do not add the objects themselves.
10965         case `$CC -V 2>&1` in
10966         *"Version 7."*)
10967           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10968           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'
10969           ;;
10970         *)  # Version 8.0 or newer
10971           tmp_idyn=
10972           case $host_cpu in
10973             ia64*) tmp_idyn=' -i_dynamic';;
10974           esac
10975           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10976           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'
10977           ;;
10978         esac
10979         archive_cmds_need_lc_CXX=no
10980         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10981         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10982         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10983         ;;
10984       pgCC*)
10985         # Portland Group C++ compiler
10986         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10987         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'
10988
10989         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10990         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10991         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'
10992         ;;
10993       cxx*)
10994         # Compaq C++
10995         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10996         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'
10997
10998         runpath_var=LD_RUN_PATH
10999         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11000         hardcode_libdir_separator_CXX=:
11001
11002         # Commands to make compiler produce verbose output that lists
11003         # what "hidden" libraries, object files and flags are used when
11004         # linking a shared library.
11005         #
11006         # There doesn't appear to be a way to prevent this compiler from
11007         # explicitly linking system object files so we need to strip them
11008         # from the output so that they don't get included in the library
11009         # dependencies.
11010         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'
11011         ;;
11012     esac
11013     ;;
11014   lynxos*)
11015     # FIXME: insert proper C++ library support
11016     ld_shlibs_CXX=no
11017     ;;
11018   m88k*)
11019     # FIXME: insert proper C++ library support
11020     ld_shlibs_CXX=no
11021     ;;
11022   mvs*)
11023     case $cc_basename in
11024       cxx*)
11025         # FIXME: insert proper C++ library support
11026         ld_shlibs_CXX=no
11027         ;;
11028       *)
11029         # FIXME: insert proper C++ library support
11030         ld_shlibs_CXX=no
11031         ;;
11032     esac
11033     ;;
11034   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11035     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11036       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11037       wlarc=
11038       hardcode_libdir_flag_spec_CXX='-R$libdir'
11039       hardcode_direct_CXX=yes
11040       hardcode_shlibpath_var_CXX=no
11041     fi
11042     # Workaround some broken pre-1.5 toolchains
11043     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11044     ;;
11045   openbsd2*)
11046     # C++ shared libraries are fairly broken
11047     ld_shlibs_CXX=no
11048     ;;
11049   openbsd*)
11050     hardcode_direct_CXX=yes
11051     hardcode_shlibpath_var_CXX=no
11052     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11053     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11054     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11055       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11056       export_dynamic_flag_spec_CXX='${wl}-E'
11057       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11058     fi
11059     output_verbose_link_cmd='echo'
11060     ;;
11061   osf3*)
11062     case $cc_basename in
11063       KCC*)
11064         # Kuck and Associates, Inc. (KAI) C++ Compiler
11065
11066         # KCC will only create a shared library if the output file
11067         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11068         # to its proper name (with version) after linking.
11069         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'
11070
11071         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11072         hardcode_libdir_separator_CXX=:
11073
11074         # Archives containing C++ object files must be created using
11075         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11076         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11077
11078         ;;
11079       RCC*)
11080         # Rational C++ 2.4.1
11081         # FIXME: insert proper C++ library support
11082         ld_shlibs_CXX=no
11083         ;;
11084       cxx*)
11085         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11086         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'
11087
11088         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11089         hardcode_libdir_separator_CXX=:
11090
11091         # Commands to make compiler produce verbose output that lists
11092         # what "hidden" libraries, object files and flags are used when
11093         # linking a shared library.
11094         #
11095         # There doesn't appear to be a way to prevent this compiler from
11096         # explicitly linking system object files so we need to strip them
11097         # from the output so that they don't get included in the library
11098         # dependencies.
11099         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'
11100         ;;
11101       *)
11102         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11103           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11104           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'
11105
11106           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11107           hardcode_libdir_separator_CXX=:
11108
11109           # Commands to make compiler produce verbose output that lists
11110           # what "hidden" libraries, object files and flags are used when
11111           # linking a shared library.
11112           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11113
11114         else
11115           # FIXME: insert proper C++ library support
11116           ld_shlibs_CXX=no
11117         fi
11118         ;;
11119     esac
11120     ;;
11121   osf4* | osf5*)
11122     case $cc_basename in
11123       KCC*)
11124         # Kuck and Associates, Inc. (KAI) C++ Compiler
11125
11126         # KCC will only create a shared library if the output file
11127         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11128         # to its proper name (with version) after linking.
11129         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'
11130
11131         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11132         hardcode_libdir_separator_CXX=:
11133
11134         # Archives containing C++ object files must be created using
11135         # the KAI C++ compiler.
11136         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11137         ;;
11138       RCC*)
11139         # Rational C++ 2.4.1
11140         # FIXME: insert proper C++ library support
11141         ld_shlibs_CXX=no
11142         ;;
11143       cxx*)
11144         allow_undefined_flag_CXX=' -expect_unresolved \*'
11145         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'
11146         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11147           echo "-hidden">> $lib.exp~
11148           $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~
11149           $rm $lib.exp'
11150
11151         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11152         hardcode_libdir_separator_CXX=:
11153
11154         # Commands to make compiler produce verbose output that lists
11155         # what "hidden" libraries, object files and flags are used when
11156         # linking a shared library.
11157         #
11158         # There doesn't appear to be a way to prevent this compiler from
11159         # explicitly linking system object files so we need to strip them
11160         # from the output so that they don't get included in the library
11161         # dependencies.
11162         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'
11163         ;;
11164       *)
11165         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11166           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11167          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'
11168
11169           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11170           hardcode_libdir_separator_CXX=:
11171
11172           # Commands to make compiler produce verbose output that lists
11173           # what "hidden" libraries, object files and flags are used when
11174           # linking a shared library.
11175           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11176
11177         else
11178           # FIXME: insert proper C++ library support
11179           ld_shlibs_CXX=no
11180         fi
11181         ;;
11182     esac
11183     ;;
11184   psos*)
11185     # FIXME: insert proper C++ library support
11186     ld_shlibs_CXX=no
11187     ;;
11188   sunos4*)
11189     case $cc_basename in
11190       CC*)
11191         # Sun C++ 4.x
11192         # FIXME: insert proper C++ library support
11193         ld_shlibs_CXX=no
11194         ;;
11195       lcc*)
11196         # Lucid
11197         # FIXME: insert proper C++ library support
11198         ld_shlibs_CXX=no
11199         ;;
11200       *)
11201         # FIXME: insert proper C++ library support
11202         ld_shlibs_CXX=no
11203         ;;
11204     esac
11205     ;;
11206   solaris*)
11207     case $cc_basename in
11208       CC*)
11209         # Sun C++ 4.2, 5.x and Centerline C++
11210         archive_cmds_need_lc_CXX=yes
11211         no_undefined_flag_CXX=' -zdefs'
11212         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11213         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11214         $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'
11215
11216         hardcode_libdir_flag_spec_CXX='-R$libdir'
11217         hardcode_shlibpath_var_CXX=no
11218         case $host_os in
11219           solaris2.[0-5] | solaris2.[0-5].*) ;;
11220           *)
11221             # The C++ compiler is used as linker so we must use $wl
11222             # flag to pass the commands to the underlying system
11223             # linker. We must also pass each convience library through
11224             # to the system linker between allextract/defaultextract.
11225             # The C++ compiler will combine linker options so we
11226             # cannot just pass the convience library names through
11227             # without $wl.
11228             # Supported since Solaris 2.6 (maybe 2.5.1?)
11229             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'
11230             ;;
11231         esac
11232         link_all_deplibs_CXX=yes
11233
11234         output_verbose_link_cmd='echo'
11235
11236         # Archives containing C++ object files must be created using
11237         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11238         # necessary to make sure instantiated templates are included
11239         # in the archive.
11240         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11241         ;;
11242       gcx*)
11243         # Green Hills C++ Compiler
11244         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11245
11246         # The C++ compiler must be used to create the archive.
11247         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11248         ;;
11249       *)
11250         # GNU C++ compiler with Solaris linker
11251         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11252           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11253           if $CC --version | grep -v '^2\.7' > /dev/null; then
11254             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11255             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11256                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11257
11258             # Commands to make compiler produce verbose output that lists
11259             # what "hidden" libraries, object files and flags are used when
11260             # linking a shared library.
11261             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11262           else
11263             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11264             # platform.
11265             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11266             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11267                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11268
11269             # Commands to make compiler produce verbose output that lists
11270             # what "hidden" libraries, object files and flags are used when
11271             # linking a shared library.
11272             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11273           fi
11274
11275           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11276         fi
11277         ;;
11278     esac
11279     ;;
11280   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11281     no_undefined_flag_CXX='${wl}-z,text'
11282     archive_cmds_need_lc_CXX=no
11283     hardcode_shlibpath_var_CXX=no
11284     runpath_var='LD_RUN_PATH'
11285
11286     case $cc_basename in
11287       CC*)
11288         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11289         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11290         ;;
11291       *)
11292         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11293         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11294         ;;
11295     esac
11296     ;;
11297   sysv5* | sco3.2v5* | sco5v6*)
11298     # Note: We can NOT use -z defs as we might desire, because we do not
11299     # link with -lc, and that would cause any symbols used from libc to
11300     # always be unresolved, which means just about no library would
11301     # ever link correctly.  If we're not using GNU ld we use -z text
11302     # though, which does catch some bad symbols but isn't as heavy-handed
11303     # as -z defs.
11304     # For security reasons, it is highly recommended that you always
11305     # use absolute paths for naming shared libraries, and exclude the
11306     # DT_RUNPATH tag from executables and libraries.  But doing so
11307     # requires that you compile everything twice, which is a pain.
11308     # So that behaviour is only enabled if SCOABSPATH is set to a
11309     # non-empty value in the environment.  Most likely only useful for
11310     # creating official distributions of packages.
11311     # This is a hack until libtool officially supports absolute path
11312     # names for shared libraries.
11313     no_undefined_flag_CXX='${wl}-z,text'
11314     allow_undefined_flag_CXX='${wl}-z,nodefs'
11315     archive_cmds_need_lc_CXX=no
11316     hardcode_shlibpath_var_CXX=no
11317     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11318     hardcode_libdir_separator_CXX=':'
11319     link_all_deplibs_CXX=yes
11320     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11321     runpath_var='LD_RUN_PATH'
11322
11323     case $cc_basename in
11324       CC*)
11325         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11326         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11327         ;;
11328       *)
11329         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11330         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11331         ;;
11332     esac
11333     ;;
11334   tandem*)
11335     case $cc_basename in
11336       NCC*)
11337         # NonStop-UX NCC 3.20
11338         # FIXME: insert proper C++ library support
11339         ld_shlibs_CXX=no
11340         ;;
11341       *)
11342         # FIXME: insert proper C++ library support
11343         ld_shlibs_CXX=no
11344         ;;
11345     esac
11346     ;;
11347   vxworks*)
11348     # FIXME: insert proper C++ library support
11349     ld_shlibs_CXX=no
11350     ;;
11351   *)
11352     # FIXME: insert proper C++ library support
11353     ld_shlibs_CXX=no
11354     ;;
11355 esac
11356 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11357 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11358 test "$ld_shlibs_CXX" = no && can_build_shared=no
11359
11360 GCC_CXX="$GXX"
11361 LD_CXX="$LD"
11362
11363
11364 cat > conftest.$ac_ext <<EOF
11365 class Foo
11366 {
11367 public:
11368   Foo (void) { a = 0; }
11369 private:
11370   int a;
11371 };
11372 EOF
11373
11374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11375   (eval $ac_compile) 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); }; then
11379   # Parse the compiler output and extract the necessary
11380   # objects, libraries and library flags.
11381
11382   # Sentinel used to keep track of whether or not we are before
11383   # the conftest object file.
11384   pre_test_object_deps_done=no
11385
11386   # The `*' in the case matches for architectures that use `case' in
11387   # $output_verbose_cmd can trigger glob expansion during the loop
11388   # eval without this substitution.
11389   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11390
11391   for p in `eval $output_verbose_link_cmd`; do
11392     case $p in
11393
11394     -L* | -R* | -l*)
11395        # Some compilers place space between "-{L,R}" and the path.
11396        # Remove the space.
11397        if test $p = "-L" \
11398           || test $p = "-R"; then
11399          prev=$p
11400          continue
11401        else
11402          prev=
11403        fi
11404
11405        if test "$pre_test_object_deps_done" = no; then
11406          case $p in
11407          -L* | -R*)
11408            # Internal compiler library paths should come after those
11409            # provided the user.  The postdeps already come after the
11410            # user supplied libs so there is no need to process them.
11411            if test -z "$compiler_lib_search_path_CXX"; then
11412              compiler_lib_search_path_CXX="${prev}${p}"
11413            else
11414              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11415            fi
11416            ;;
11417          # The "-l" case would never come before the object being
11418          # linked, so don't bother handling this case.
11419          esac
11420        else
11421          if test -z "$postdeps_CXX"; then
11422            postdeps_CXX="${prev}${p}"
11423          else
11424            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11425          fi
11426        fi
11427        ;;
11428
11429     *.$objext)
11430        # This assumes that the test object file only shows up
11431        # once in the compiler output.
11432        if test "$p" = "conftest.$objext"; then
11433          pre_test_object_deps_done=yes
11434          continue
11435        fi
11436
11437        if test "$pre_test_object_deps_done" = no; then
11438          if test -z "$predep_objects_CXX"; then
11439            predep_objects_CXX="$p"
11440          else
11441            predep_objects_CXX="$predep_objects_CXX $p"
11442          fi
11443        else
11444          if test -z "$postdep_objects_CXX"; then
11445            postdep_objects_CXX="$p"
11446          else
11447            postdep_objects_CXX="$postdep_objects_CXX $p"
11448          fi
11449        fi
11450        ;;
11451
11452     *) ;; # Ignore the rest.
11453
11454     esac
11455   done
11456
11457   # Clean up.
11458   rm -f a.out a.exe
11459 else
11460   echo "libtool.m4: error: problem compiling CXX test program"
11461 fi
11462
11463 $rm -f confest.$objext
11464
11465 # PORTME: override above test on systems where it is broken
11466 case $host_os in
11467 interix3*)
11468   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11469   # hack all around it, let's just trust "g++" to DTRT.
11470   predep_objects_CXX=
11471   postdep_objects_CXX=
11472   postdeps_CXX=
11473   ;;
11474
11475 solaris*)
11476   case $cc_basename in
11477   CC*)
11478     # Adding this requires a known-good setup of shared libraries for
11479     # Sun compiler versions before 5.6, else PIC objects from an old
11480     # archive will be linked into the output, leading to subtle bugs.
11481     postdeps_CXX='-lCstd -lCrun'
11482     ;;
11483   esac
11484   ;;
11485 esac
11486
11487
11488 case " $postdeps_CXX " in
11489 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11490 esac
11491
11492 lt_prog_compiler_wl_CXX=
11493 lt_prog_compiler_pic_CXX=
11494 lt_prog_compiler_static_CXX=
11495
11496 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11497 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11498
11499   # C++ specific cases for pic, static, wl, etc.
11500   if test "$GXX" = yes; then
11501     lt_prog_compiler_wl_CXX='-Wl,'
11502     lt_prog_compiler_static_CXX='-static'
11503
11504     case $host_os in
11505     aix*)
11506       # All AIX code is PIC.
11507       if test "$host_cpu" = ia64; then
11508         # AIX 5 now supports IA64 processor
11509         lt_prog_compiler_static_CXX='-Bstatic'
11510       fi
11511       ;;
11512     amigaos*)
11513       # FIXME: we need at least 68020 code to build shared libraries, but
11514       # adding the `-m68020' flag to GCC prevents building anything better,
11515       # like `-m68040'.
11516       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11517       ;;
11518     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11519       # PIC is the default for these OSes.
11520       ;;
11521     mingw* | os2* | pw32*)
11522       # This hack is so that the source file can tell whether it is being
11523       # built for inclusion in a dll (and should export symbols for example).
11524       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11525       ;;
11526     darwin* | rhapsody*)
11527       # PIC is the default on this platform
11528       # Common symbols not allowed in MH_DYLIB files
11529       lt_prog_compiler_pic_CXX='-fno-common'
11530       ;;
11531     *djgpp*)
11532       # DJGPP does not support shared libraries at all
11533       lt_prog_compiler_pic_CXX=
11534       ;;
11535     interix3*)
11536       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11537       # Instead, we relocate shared libraries at runtime.
11538       ;;
11539     sysv4*MP*)
11540       if test -d /usr/nec; then
11541         lt_prog_compiler_pic_CXX=-Kconform_pic
11542       fi
11543       ;;
11544     hpux*)
11545       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11546       # not for PA HP-UX.
11547       case $host_cpu in
11548       hppa*64*|ia64*)
11549         ;;
11550       *)
11551         lt_prog_compiler_pic_CXX='-fPIC'
11552         ;;
11553       esac
11554       ;;
11555     *)
11556       lt_prog_compiler_pic_CXX='-fPIC'
11557       ;;
11558     esac
11559   else
11560     case $host_os in
11561       aix4* | aix5*)
11562         # All AIX code is PIC.
11563         if test "$host_cpu" = ia64; then
11564           # AIX 5 now supports IA64 processor
11565           lt_prog_compiler_static_CXX='-Bstatic'
11566         else
11567           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11568         fi
11569         ;;
11570       chorus*)
11571         case $cc_basename in
11572         cxch68*)
11573           # Green Hills C++ Compiler
11574           # _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"
11575           ;;
11576         esac
11577         ;;
11578        darwin*)
11579          # PIC is the default on this platform
11580          # Common symbols not allowed in MH_DYLIB files
11581          case $cc_basename in
11582            xlc*)
11583            lt_prog_compiler_pic_CXX='-qnocommon'
11584            lt_prog_compiler_wl_CXX='-Wl,'
11585            ;;
11586          esac
11587        ;;
11588       dgux*)
11589         case $cc_basename in
11590           ec++*)
11591             lt_prog_compiler_pic_CXX='-KPIC'
11592             ;;
11593           ghcx*)
11594             # Green Hills C++ Compiler
11595             lt_prog_compiler_pic_CXX='-pic'
11596             ;;
11597           *)
11598             ;;
11599         esac
11600         ;;
11601       freebsd* | kfreebsd*-gnu | dragonfly*)
11602         # FreeBSD uses GNU C++
11603         ;;
11604       hpux9* | hpux10* | hpux11*)
11605         case $cc_basename in
11606           CC*)
11607             lt_prog_compiler_wl_CXX='-Wl,'
11608             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11609             if test "$host_cpu" != ia64; then
11610               lt_prog_compiler_pic_CXX='+Z'
11611             fi
11612             ;;
11613           aCC*)
11614             lt_prog_compiler_wl_CXX='-Wl,'
11615             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11616             case $host_cpu in
11617             hppa*64*|ia64*)
11618               # +Z the default
11619               ;;
11620             *)
11621               lt_prog_compiler_pic_CXX='+Z'
11622               ;;
11623             esac
11624             ;;
11625           *)
11626             ;;
11627         esac
11628         ;;
11629       interix*)
11630         # This is c89, which is MS Visual C++ (no shared libs)
11631         # Anyone wants to do a port?
11632         ;;
11633       irix5* | irix6* | nonstopux*)
11634         case $cc_basename in
11635           CC*)
11636             lt_prog_compiler_wl_CXX='-Wl,'
11637             lt_prog_compiler_static_CXX='-non_shared'
11638             # CC pic flag -KPIC is the default.
11639             ;;
11640           *)
11641             ;;
11642         esac
11643         ;;
11644       linux*)
11645         case $cc_basename in
11646           KCC*)
11647             # KAI C++ Compiler
11648             lt_prog_compiler_wl_CXX='--backend -Wl,'
11649             lt_prog_compiler_pic_CXX='-fPIC'
11650             ;;
11651           icpc* | ecpc*)
11652             # Intel C++
11653             lt_prog_compiler_wl_CXX='-Wl,'
11654             lt_prog_compiler_pic_CXX='-KPIC'
11655             lt_prog_compiler_static_CXX='-static'
11656             ;;
11657           pgCC*)
11658             # Portland Group C++ compiler.
11659             lt_prog_compiler_wl_CXX='-Wl,'
11660             lt_prog_compiler_pic_CXX='-fpic'
11661             lt_prog_compiler_static_CXX='-Bstatic'
11662             ;;
11663           cxx*)
11664             # Compaq C++
11665             # Make sure the PIC flag is empty.  It appears that all Alpha
11666             # Linux and Compaq Tru64 Unix objects are PIC.
11667             lt_prog_compiler_pic_CXX=
11668             lt_prog_compiler_static_CXX='-non_shared'
11669             ;;
11670           *)
11671             ;;
11672         esac
11673         ;;
11674       lynxos*)
11675         ;;
11676       m88k*)
11677         ;;
11678       mvs*)
11679         case $cc_basename in
11680           cxx*)
11681             lt_prog_compiler_pic_CXX='-W c,exportall'
11682             ;;
11683           *)
11684             ;;
11685         esac
11686         ;;
11687       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11688         ;;
11689       osf3* | osf4* | osf5*)
11690         case $cc_basename in
11691           KCC*)
11692             lt_prog_compiler_wl_CXX='--backend -Wl,'
11693             ;;
11694           RCC*)
11695             # Rational C++ 2.4.1
11696             lt_prog_compiler_pic_CXX='-pic'
11697             ;;
11698           cxx*)
11699             # Digital/Compaq C++
11700             lt_prog_compiler_wl_CXX='-Wl,'
11701             # Make sure the PIC flag is empty.  It appears that all Alpha
11702             # Linux and Compaq Tru64 Unix objects are PIC.
11703             lt_prog_compiler_pic_CXX=
11704             lt_prog_compiler_static_CXX='-non_shared'
11705             ;;
11706           *)
11707             ;;
11708         esac
11709         ;;
11710       psos*)
11711         ;;
11712       solaris*)
11713         case $cc_basename in
11714           CC*)
11715             # Sun C++ 4.2, 5.x and Centerline C++
11716             lt_prog_compiler_pic_CXX='-KPIC'
11717             lt_prog_compiler_static_CXX='-Bstatic'
11718             lt_prog_compiler_wl_CXX='-Qoption ld '
11719             ;;
11720           gcx*)
11721             # Green Hills C++ Compiler
11722             lt_prog_compiler_pic_CXX='-PIC'
11723             ;;
11724           *)
11725             ;;
11726         esac
11727         ;;
11728       sunos4*)
11729         case $cc_basename in
11730           CC*)
11731             # Sun C++ 4.x
11732             lt_prog_compiler_pic_CXX='-pic'
11733             lt_prog_compiler_static_CXX='-Bstatic'
11734             ;;
11735           lcc*)
11736             # Lucid
11737             lt_prog_compiler_pic_CXX='-pic'
11738             ;;
11739           *)
11740             ;;
11741         esac
11742         ;;
11743       tandem*)
11744         case $cc_basename in
11745           NCC*)
11746             # NonStop-UX NCC 3.20
11747             lt_prog_compiler_pic_CXX='-KPIC'
11748             ;;
11749           *)
11750             ;;
11751         esac
11752         ;;
11753       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11754         case $cc_basename in
11755           CC*)
11756             lt_prog_compiler_wl_CXX='-Wl,'
11757             lt_prog_compiler_pic_CXX='-KPIC'
11758             lt_prog_compiler_static_CXX='-Bstatic'
11759             ;;
11760         esac
11761         ;;
11762       vxworks*)
11763         ;;
11764       *)
11765         lt_prog_compiler_can_build_shared_CXX=no
11766         ;;
11767     esac
11768   fi
11769
11770 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11771 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11772
11773 #
11774 # Check to make sure the PIC flag actually works.
11775 #
11776 if test -n "$lt_prog_compiler_pic_CXX"; then
11777
11778 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11780 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11781   echo $ECHO_N "(cached) $ECHO_C" >&6
11782 else
11783   lt_prog_compiler_pic_works_CXX=no
11784   ac_outfile=conftest.$ac_objext
11785    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11786    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11787    # Insert the option either (1) after the last *FLAGS variable, or
11788    # (2) before a word containing "conftest.", or (3) at the end.
11789    # Note that $ac_compile itself does not contain backslashes and begins
11790    # with a dollar sign (not a hyphen), so the echo should work correctly.
11791    # The option is referenced via a variable to avoid confusing sed.
11792    lt_compile=`echo "$ac_compile" | $SED \
11793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11795    -e 's:$: $lt_compiler_flag:'`
11796    (eval echo "\"\$as_me:11796: $lt_compile\"" >&5)
11797    (eval "$lt_compile" 2>conftest.err)
11798    ac_status=$?
11799    cat conftest.err >&5
11800    echo "$as_me:11800: \$? = $ac_status" >&5
11801    if (exit $ac_status) && test -s "$ac_outfile"; then
11802      # The compiler can only warn and ignore the option if not recognized
11803      # So say no if there are warnings other than the usual output.
11804      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11805      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11806      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11807        lt_prog_compiler_pic_works_CXX=yes
11808      fi
11809    fi
11810    $rm conftest*
11811
11812 fi
11813 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11814 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11815
11816 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11817     case $lt_prog_compiler_pic_CXX in
11818      "" | " "*) ;;
11819      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11820      esac
11821 else
11822     lt_prog_compiler_pic_CXX=
11823      lt_prog_compiler_can_build_shared_CXX=no
11824 fi
11825
11826 fi
11827 case $host_os in
11828   # For platforms which do not support PIC, -DPIC is meaningless:
11829   *djgpp*)
11830     lt_prog_compiler_pic_CXX=
11831     ;;
11832   *)
11833     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11834     ;;
11835 esac
11836
11837 #
11838 # Check to make sure the static flag actually works.
11839 #
11840 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11841 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11842 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11843 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11844   echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846   lt_prog_compiler_static_works_CXX=no
11847    save_LDFLAGS="$LDFLAGS"
11848    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11849    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11850    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11851      # The linker can only warn and ignore the option if not recognized
11852      # So say no if there are warnings
11853      if test -s conftest.err; then
11854        # Append any errors to the config.log.
11855        cat conftest.err 1>&5
11856        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11857        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11858        if diff conftest.exp conftest.er2 >/dev/null; then
11859          lt_prog_compiler_static_works_CXX=yes
11860        fi
11861      else
11862        lt_prog_compiler_static_works_CXX=yes
11863      fi
11864    fi
11865    $rm conftest*
11866    LDFLAGS="$save_LDFLAGS"
11867
11868 fi
11869 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11870 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11871
11872 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11873     :
11874 else
11875     lt_prog_compiler_static_CXX=
11876 fi
11877
11878
11879 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11880 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11881 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11882   echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884   lt_cv_prog_compiler_c_o_CXX=no
11885    $rm -r conftest 2>/dev/null
11886    mkdir conftest
11887    cd conftest
11888    mkdir out
11889    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11890
11891    lt_compiler_flag="-o out/conftest2.$ac_objext"
11892    # Insert the option either (1) after the last *FLAGS variable, or
11893    # (2) before a word containing "conftest.", or (3) at the end.
11894    # Note that $ac_compile itself does not contain backslashes and begins
11895    # with a dollar sign (not a hyphen), so the echo should work correctly.
11896    lt_compile=`echo "$ac_compile" | $SED \
11897    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11898    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11899    -e 's:$: $lt_compiler_flag:'`
11900    (eval echo "\"\$as_me:11900: $lt_compile\"" >&5)
11901    (eval "$lt_compile" 2>out/conftest.err)
11902    ac_status=$?
11903    cat out/conftest.err >&5
11904    echo "$as_me:11904: \$? = $ac_status" >&5
11905    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11906    then
11907      # The compiler can only warn and ignore the option if not recognized
11908      # So say no if there are warnings
11909      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11910      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11911      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11912        lt_cv_prog_compiler_c_o_CXX=yes
11913      fi
11914    fi
11915    chmod u+w . 2>&5
11916    $rm conftest*
11917    # SGI C++ compiler will create directory out/ii_files/ for
11918    # template instantiation
11919    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11920    $rm out/* && rmdir out
11921    cd ..
11922    rmdir conftest
11923    $rm conftest*
11924
11925 fi
11926 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11927 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11928
11929
11930 hard_links="nottested"
11931 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11932   # do not overwrite the value of need_locks provided by the user
11933   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11934 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11935   hard_links=yes
11936   $rm conftest*
11937   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11938   touch conftest.a
11939   ln conftest.a conftest.b 2>&5 || hard_links=no
11940   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11941   echo "$as_me:$LINENO: result: $hard_links" >&5
11942 echo "${ECHO_T}$hard_links" >&6
11943   if test "$hard_links" = no; then
11944     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11945 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11946     need_locks=warn
11947   fi
11948 else
11949   need_locks=no
11950 fi
11951
11952 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11953 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11954
11955   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11956   case $host_os in
11957   aix4* | aix5*)
11958     # If we're using GNU nm, then we don't want the "-C" option.
11959     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11960     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11961       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'
11962     else
11963       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'
11964     fi
11965     ;;
11966   pw32*)
11967     export_symbols_cmds_CXX="$ltdll_cmds"
11968   ;;
11969   cygwin* | mingw*)
11970     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'
11971   ;;
11972   kfreebsd*-gnu)
11973     link_all_deplibs_CXX=no
11974   ;;
11975   linux*)
11976     link_all_deplibs_CXX=no
11977   ;;
11978   *)
11979     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11980   ;;
11981   esac
11982
11983 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11984 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11985 test "$ld_shlibs_CXX" = no && can_build_shared=no
11986
11987 #
11988 # Do we need to explicitly link libc?
11989 #
11990 case "x$archive_cmds_need_lc_CXX" in
11991 x|xyes)
11992   # Assume -lc should be added
11993   archive_cmds_need_lc_CXX=yes
11994
11995   if test "$enable_shared" = yes && test "$GCC" = yes; then
11996     case $archive_cmds_CXX in
11997     *'~'*)
11998       # FIXME: we may have to deal with multi-command sequences.
11999       ;;
12000     '$CC '*)
12001       # Test whether the compiler implicitly links with -lc since on some
12002       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12003       # to ld, don't add -lc before -lgcc.
12004       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12005 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12006       $rm conftest*
12007       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12008
12009       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12010   (eval $ac_compile) 2>&5
12011   ac_status=$?
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); } 2>conftest.err; then
12014         soname=conftest
12015         lib=conftest
12016         libobjs=conftest.$ac_objext
12017         deplibs=
12018         wl=$lt_prog_compiler_wl_CXX
12019         pic_flag=$lt_prog_compiler_pic_CXX
12020         compiler_flags=-v
12021         linker_flags=-v
12022         verstring=
12023         output_objdir=.
12024         libname=conftest
12025         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12026         allow_undefined_flag_CXX=
12027         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12028   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12029   ac_status=$?
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); }
12032         then
12033           archive_cmds_need_lc_CXX=no
12034         else
12035           archive_cmds_need_lc_CXX=yes
12036         fi
12037         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12038       else
12039         cat conftest.err 1>&5
12040       fi
12041       $rm conftest*
12042       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12043 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12044       ;;
12045     esac
12046   fi
12047   ;;
12048 esac
12049
12050 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12051 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12052 library_names_spec=
12053 libname_spec='lib$name'
12054 soname_spec=
12055 shrext_cmds=".so"
12056 postinstall_cmds=
12057 postuninstall_cmds=
12058 finish_cmds=
12059 finish_eval=
12060 shlibpath_var=
12061 shlibpath_overrides_runpath=unknown
12062 version_type=none
12063 dynamic_linker="$host_os ld.so"
12064 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12065 if test "$GCC" = yes; then
12066   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12067   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12068     # if the path contains ";" then we assume it to be the separator
12069     # otherwise default to the standard path separator (i.e. ":") - it is
12070     # assumed that no part of a normal pathname contains ";" but that should
12071     # okay in the real world where ";" in dirpaths is itself problematic.
12072     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12073   else
12074     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12075   fi
12076 else
12077   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12078 fi
12079 need_lib_prefix=unknown
12080 hardcode_into_libs=no
12081
12082 # when you set need_version to no, make sure it does not cause -set_version
12083 # flags to be left without arguments
12084 need_version=unknown
12085
12086 case $host_os in
12087 aix3*)
12088   version_type=linux
12089   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12090   shlibpath_var=LIBPATH
12091
12092   # AIX 3 has no versioning support, so we append a major version to the name.
12093   soname_spec='${libname}${release}${shared_ext}$major'
12094   ;;
12095
12096 aix4* | aix5*)
12097   version_type=linux
12098   need_lib_prefix=no
12099   need_version=no
12100   hardcode_into_libs=yes
12101   if test "$host_cpu" = ia64; then
12102     # AIX 5 supports IA64
12103     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12104     shlibpath_var=LD_LIBRARY_PATH
12105   else
12106     # With GCC up to 2.95.x, collect2 would create an import file
12107     # for dependence libraries.  The import file would start with
12108     # the line `#! .'.  This would cause the generated library to
12109     # depend on `.', always an invalid library.  This was fixed in
12110     # development snapshots of GCC prior to 3.0.
12111     case $host_os in
12112       aix4 | aix4.[01] | aix4.[01].*)
12113       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12114            echo ' yes '
12115            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12116         :
12117       else
12118         can_build_shared=no
12119       fi
12120       ;;
12121     esac
12122     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12123     # soname into executable. Probably we can add versioning support to
12124     # collect2, so additional links can be useful in future.
12125     if test "$aix_use_runtimelinking" = yes; then
12126       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12127       # instead of lib<name>.a to let people know that these are not
12128       # typical AIX shared libraries.
12129       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12130     else
12131       # We preserve .a as extension for shared libraries through AIX4.2
12132       # and later when we are not doing run time linking.
12133       library_names_spec='${libname}${release}.a $libname.a'
12134       soname_spec='${libname}${release}${shared_ext}$major'
12135     fi
12136     shlibpath_var=LIBPATH
12137   fi
12138   ;;
12139
12140 amigaos*)
12141   library_names_spec='$libname.ixlibrary $libname.a'
12142   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12143   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'
12144   ;;
12145
12146 beos*)
12147   library_names_spec='${libname}${shared_ext}'
12148   dynamic_linker="$host_os ld.so"
12149   shlibpath_var=LIBRARY_PATH
12150   ;;
12151
12152 bsdi[45]*)
12153   version_type=linux
12154   need_version=no
12155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12156   soname_spec='${libname}${release}${shared_ext}$major'
12157   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12158   shlibpath_var=LD_LIBRARY_PATH
12159   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12160   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12161   # the default ld.so.conf also contains /usr/contrib/lib and
12162   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12163   # libtool to hard-code these into programs
12164   ;;
12165
12166 cygwin* | mingw* | pw32*)
12167   version_type=windows
12168   shrext_cmds=".dll"
12169   need_version=no
12170   need_lib_prefix=no
12171
12172   case $GCC,$host_os in
12173   yes,cygwin* | yes,mingw* | yes,pw32*)
12174     library_names_spec='$libname.dll.a'
12175     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12176     postinstall_cmds='base_file=`basename \${file}`~
12177       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12178       dldir=$destdir/`dirname \$dlpath`~
12179       test -d \$dldir || mkdir -p \$dldir~
12180       $install_prog $dir/$dlname \$dldir/$dlname~
12181       chmod a+x \$dldir/$dlname'
12182     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12183       dlpath=$dir/\$dldll~
12184        $rm \$dlpath'
12185     shlibpath_overrides_runpath=yes
12186
12187     case $host_os in
12188     cygwin*)
12189       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12190       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12191       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12192       ;;
12193     mingw*)
12194       # MinGW DLLs use traditional 'lib' prefix
12195       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12196       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12197       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12198         # It is most probably a Windows format PATH printed by
12199         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12200         # path with ; separators, and with drive letters. We can handle the
12201         # drive letters (cygwin fileutils understands them), so leave them,
12202         # especially as we might pass files found there to a mingw objdump,
12203         # which wouldn't understand a cygwinified path. Ahh.
12204         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12205       else
12206         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12207       fi
12208       ;;
12209     pw32*)
12210       # pw32 DLLs use 'pw' prefix rather than 'lib'
12211       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12212       ;;
12213     esac
12214     ;;
12215
12216   *)
12217     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12218     ;;
12219   esac
12220   dynamic_linker='Win32 ld.exe'
12221   # FIXME: first we should search . and the directory the executable is in
12222   shlibpath_var=PATH
12223   ;;
12224
12225 darwin* | rhapsody*)
12226   dynamic_linker="$host_os dyld"
12227   version_type=darwin
12228   need_lib_prefix=no
12229   need_version=no
12230   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12231   soname_spec='${libname}${release}${major}$shared_ext'
12232   shlibpath_overrides_runpath=yes
12233   shlibpath_var=DYLD_LIBRARY_PATH
12234   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12235   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12236   if test "$GCC" = yes; then
12237     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"`
12238   else
12239     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12240   fi
12241   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12242   ;;
12243
12244 dgux*)
12245   version_type=linux
12246   need_lib_prefix=no
12247   need_version=no
12248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12249   soname_spec='${libname}${release}${shared_ext}$major'
12250   shlibpath_var=LD_LIBRARY_PATH
12251   ;;
12252
12253 freebsd1*)
12254   dynamic_linker=no
12255   ;;
12256
12257 kfreebsd*-gnu)
12258   version_type=linux
12259   need_lib_prefix=no
12260   need_version=no
12261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12262   soname_spec='${libname}${release}${shared_ext}$major'
12263   shlibpath_var=LD_LIBRARY_PATH
12264   shlibpath_overrides_runpath=no
12265   hardcode_into_libs=yes
12266   dynamic_linker='GNU ld.so'
12267   ;;
12268
12269 freebsd* | dragonfly*)
12270   # DragonFly does not have aout.  When/if they implement a new
12271   # versioning mechanism, adjust this.
12272   if test -x /usr/bin/objformat; then
12273     objformat=`/usr/bin/objformat`
12274   else
12275     case $host_os in
12276     freebsd[123]*) objformat=aout ;;
12277     *) objformat=elf ;;
12278     esac
12279   fi
12280   version_type=freebsd-$objformat
12281   case $version_type in
12282     freebsd-elf*)
12283       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12284       need_version=no
12285       need_lib_prefix=no
12286       ;;
12287     freebsd-*)
12288       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12289       need_version=yes
12290       ;;
12291   esac
12292   shlibpath_var=LD_LIBRARY_PATH
12293   case $host_os in
12294   freebsd2*)
12295     shlibpath_overrides_runpath=yes
12296     ;;
12297   freebsd3.[01]* | freebsdelf3.[01]*)
12298     shlibpath_overrides_runpath=yes
12299     hardcode_into_libs=yes
12300     ;;
12301   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12302   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12303     shlibpath_overrides_runpath=no
12304     hardcode_into_libs=yes
12305     ;;
12306   freebsd*) # from 4.6 on
12307     shlibpath_overrides_runpath=yes
12308     hardcode_into_libs=yes
12309     ;;
12310   esac
12311   ;;
12312
12313 gnu*)
12314   version_type=linux
12315   need_lib_prefix=no
12316   need_version=no
12317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12318   soname_spec='${libname}${release}${shared_ext}$major'
12319   shlibpath_var=LD_LIBRARY_PATH
12320   hardcode_into_libs=yes
12321   ;;
12322
12323 hpux9* | hpux10* | hpux11*)
12324   # Give a soname corresponding to the major version so that dld.sl refuses to
12325   # link against other versions.
12326   version_type=sunos
12327   need_lib_prefix=no
12328   need_version=no
12329   case $host_cpu in
12330   ia64*)
12331     shrext_cmds='.so'
12332     hardcode_into_libs=yes
12333     dynamic_linker="$host_os dld.so"
12334     shlibpath_var=LD_LIBRARY_PATH
12335     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12336     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12337     soname_spec='${libname}${release}${shared_ext}$major'
12338     if test "X$HPUX_IA64_MODE" = X32; then
12339       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12340     else
12341       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12342     fi
12343     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12344     ;;
12345    hppa*64*)
12346      shrext_cmds='.sl'
12347      hardcode_into_libs=yes
12348      dynamic_linker="$host_os dld.sl"
12349      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12350      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12351      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12352      soname_spec='${libname}${release}${shared_ext}$major'
12353      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12354      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12355      ;;
12356    *)
12357     shrext_cmds='.sl'
12358     dynamic_linker="$host_os dld.sl"
12359     shlibpath_var=SHLIB_PATH
12360     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12361     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12362     soname_spec='${libname}${release}${shared_ext}$major'
12363     ;;
12364   esac
12365   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12366   postinstall_cmds='chmod 555 $lib'
12367   ;;
12368
12369 interix3*)
12370   version_type=linux
12371   need_lib_prefix=no
12372   need_version=no
12373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12374   soname_spec='${libname}${release}${shared_ext}$major'
12375   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12376   shlibpath_var=LD_LIBRARY_PATH
12377   shlibpath_overrides_runpath=no
12378   hardcode_into_libs=yes
12379   ;;
12380
12381 irix5* | irix6* | nonstopux*)
12382   case $host_os in
12383     nonstopux*) version_type=nonstopux ;;
12384     *)
12385         if test "$lt_cv_prog_gnu_ld" = yes; then
12386                 version_type=linux
12387         else
12388                 version_type=irix
12389         fi ;;
12390   esac
12391   need_lib_prefix=no
12392   need_version=no
12393   soname_spec='${libname}${release}${shared_ext}$major'
12394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12395   case $host_os in
12396   irix5* | nonstopux*)
12397     libsuff= shlibsuff=
12398     ;;
12399   *)
12400     case $LD in # libtool.m4 will add one of these switches to LD
12401     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12402       libsuff= shlibsuff= libmagic=32-bit;;
12403     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12404       libsuff=32 shlibsuff=N32 libmagic=N32;;
12405     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12406       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12407     *) libsuff= shlibsuff= libmagic=never-match;;
12408     esac
12409     ;;
12410   esac
12411   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12412   shlibpath_overrides_runpath=no
12413   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12414   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12415   hardcode_into_libs=yes
12416   ;;
12417
12418 # No shared lib support for Linux oldld, aout, or coff.
12419 linux*oldld* | linux*aout* | linux*coff*)
12420   dynamic_linker=no
12421   ;;
12422
12423 # This must be Linux ELF.
12424 linux*)
12425   version_type=linux
12426   need_lib_prefix=no
12427   need_version=no
12428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12429   soname_spec='${libname}${release}${shared_ext}$major'
12430   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12431   shlibpath_var=LD_LIBRARY_PATH
12432   shlibpath_overrides_runpath=no
12433   # This implies no fast_install, which is unacceptable.
12434   # Some rework will be needed to allow for fast_install
12435   # before this can be enabled.
12436   hardcode_into_libs=yes
12437
12438   # Append ld.so.conf contents to the search path
12439   if test -f /etc/ld.so.conf; then
12440     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' ' '`
12441     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12442   fi
12443
12444   # We used to test for /lib/ld.so.1 and disable shared libraries on
12445   # powerpc, because MkLinux only supported shared libraries with the
12446   # GNU dynamic linker.  Since this was broken with cross compilers,
12447   # most powerpc-linux boxes support dynamic linking these days and
12448   # people can always --disable-shared, the test was removed, and we
12449   # assume the GNU/Linux dynamic linker is in use.
12450   dynamic_linker='GNU/Linux ld.so'
12451   ;;
12452
12453 netbsdelf*-gnu)
12454   version_type=linux
12455   need_lib_prefix=no
12456   need_version=no
12457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12458   soname_spec='${libname}${release}${shared_ext}$major'
12459   shlibpath_var=LD_LIBRARY_PATH
12460   shlibpath_overrides_runpath=no
12461   hardcode_into_libs=yes
12462   dynamic_linker='NetBSD ld.elf_so'
12463   ;;
12464
12465 knetbsd*-gnu)
12466   version_type=linux
12467   need_lib_prefix=no
12468   need_version=no
12469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12470   soname_spec='${libname}${release}${shared_ext}$major'
12471   shlibpath_var=LD_LIBRARY_PATH
12472   shlibpath_overrides_runpath=no
12473   hardcode_into_libs=yes
12474   dynamic_linker='GNU ld.so'
12475   ;;
12476
12477 netbsd*)
12478   version_type=sunos
12479   need_lib_prefix=no
12480   need_version=no
12481   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12482     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12483     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12484     dynamic_linker='NetBSD (a.out) ld.so'
12485   else
12486     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12487     soname_spec='${libname}${release}${shared_ext}$major'
12488     dynamic_linker='NetBSD ld.elf_so'
12489   fi
12490   shlibpath_var=LD_LIBRARY_PATH
12491   shlibpath_overrides_runpath=yes
12492   hardcode_into_libs=yes
12493   ;;
12494
12495 newsos6)
12496   version_type=linux
12497   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12498   shlibpath_var=LD_LIBRARY_PATH
12499   shlibpath_overrides_runpath=yes
12500   ;;
12501
12502 nto-qnx*)
12503   version_type=linux
12504   need_lib_prefix=no
12505   need_version=no
12506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12507   soname_spec='${libname}${release}${shared_ext}$major'
12508   shlibpath_var=LD_LIBRARY_PATH
12509   shlibpath_overrides_runpath=yes
12510   ;;
12511
12512 openbsd*)
12513   version_type=sunos
12514   sys_lib_dlsearch_path_spec="/usr/lib"
12515   need_lib_prefix=no
12516   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12517   case $host_os in
12518     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12519     *)                         need_version=no  ;;
12520   esac
12521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12522   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12523   shlibpath_var=LD_LIBRARY_PATH
12524   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12525     case $host_os in
12526       openbsd2.[89] | openbsd2.[89].*)
12527         shlibpath_overrides_runpath=no
12528         ;;
12529       *)
12530         shlibpath_overrides_runpath=yes
12531         ;;
12532       esac
12533   else
12534     shlibpath_overrides_runpath=yes
12535   fi
12536   ;;
12537
12538 os2*)
12539   libname_spec='$name'
12540   shrext_cmds=".dll"
12541   need_lib_prefix=no
12542   library_names_spec='$libname${shared_ext} $libname.a'
12543   dynamic_linker='OS/2 ld.exe'
12544   shlibpath_var=LIBPATH
12545   ;;
12546
12547 osf3* | osf4* | osf5*)
12548   version_type=osf
12549   need_lib_prefix=no
12550   need_version=no
12551   soname_spec='${libname}${release}${shared_ext}$major'
12552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12553   shlibpath_var=LD_LIBRARY_PATH
12554   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12555   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12556   ;;
12557
12558 solaris*)
12559   version_type=linux
12560   need_lib_prefix=no
12561   need_version=no
12562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12563   soname_spec='${libname}${release}${shared_ext}$major'
12564   shlibpath_var=LD_LIBRARY_PATH
12565   shlibpath_overrides_runpath=yes
12566   hardcode_into_libs=yes
12567   # ldd complains unless libraries are executable
12568   postinstall_cmds='chmod +x $lib'
12569   ;;
12570
12571 sunos4*)
12572   version_type=sunos
12573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12574   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12575   shlibpath_var=LD_LIBRARY_PATH
12576   shlibpath_overrides_runpath=yes
12577   if test "$with_gnu_ld" = yes; then
12578     need_lib_prefix=no
12579   fi
12580   need_version=yes
12581   ;;
12582
12583 sysv4 | sysv4.3*)
12584   version_type=linux
12585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12586   soname_spec='${libname}${release}${shared_ext}$major'
12587   shlibpath_var=LD_LIBRARY_PATH
12588   case $host_vendor in
12589     sni)
12590       shlibpath_overrides_runpath=no
12591       need_lib_prefix=no
12592       export_dynamic_flag_spec='${wl}-Blargedynsym'
12593       runpath_var=LD_RUN_PATH
12594       ;;
12595     siemens)
12596       need_lib_prefix=no
12597       ;;
12598     motorola)
12599       need_lib_prefix=no
12600       need_version=no
12601       shlibpath_overrides_runpath=no
12602       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12603       ;;
12604   esac
12605   ;;
12606
12607 sysv4*MP*)
12608   if test -d /usr/nec ;then
12609     version_type=linux
12610     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12611     soname_spec='$libname${shared_ext}.$major'
12612     shlibpath_var=LD_LIBRARY_PATH
12613   fi
12614   ;;
12615
12616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12617   version_type=freebsd-elf
12618   need_lib_prefix=no
12619   need_version=no
12620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12621   soname_spec='${libname}${release}${shared_ext}$major'
12622   shlibpath_var=LD_LIBRARY_PATH
12623   hardcode_into_libs=yes
12624   if test "$with_gnu_ld" = yes; then
12625     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12626     shlibpath_overrides_runpath=no
12627   else
12628     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12629     shlibpath_overrides_runpath=yes
12630     case $host_os in
12631       sco3.2v5*)
12632         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12633         ;;
12634     esac
12635   fi
12636   sys_lib_dlsearch_path_spec='/usr/lib'
12637   ;;
12638
12639 uts4*)
12640   version_type=linux
12641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12642   soname_spec='${libname}${release}${shared_ext}$major'
12643   shlibpath_var=LD_LIBRARY_PATH
12644   ;;
12645
12646 *)
12647   dynamic_linker=no
12648   ;;
12649 esac
12650 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12651 echo "${ECHO_T}$dynamic_linker" >&6
12652 test "$dynamic_linker" = no && can_build_shared=no
12653
12654 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12655 if test "$GCC" = yes; then
12656   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12657 fi
12658
12659 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12660 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12661 hardcode_action_CXX=
12662 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12663    test -n "$runpath_var_CXX" || \
12664    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12665
12666   # We can hardcode non-existant directories.
12667   if test "$hardcode_direct_CXX" != no &&
12668      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12669      # have to relink, otherwise we might link with an installed library
12670      # when we should be linking with a yet-to-be-installed one
12671      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12672      test "$hardcode_minus_L_CXX" != no; then
12673     # Linking always hardcodes the temporary library directory.
12674     hardcode_action_CXX=relink
12675   else
12676     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12677     hardcode_action_CXX=immediate
12678   fi
12679 else
12680   # We cannot hardcode anything, or else we can only hardcode existing
12681   # directories.
12682   hardcode_action_CXX=unsupported
12683 fi
12684 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12685 echo "${ECHO_T}$hardcode_action_CXX" >&6
12686
12687 if test "$hardcode_action_CXX" = relink; then
12688   # Fast installation is not supported
12689   enable_fast_install=no
12690 elif test "$shlibpath_overrides_runpath" = yes ||
12691      test "$enable_shared" = no; then
12692   # Fast installation is not necessary
12693   enable_fast_install=needless
12694 fi
12695
12696
12697 # The else clause should only fire when bootstrapping the
12698 # libtool distribution, otherwise you forgot to ship ltmain.sh
12699 # with your package, and you will get complaints that there are
12700 # no rules to generate ltmain.sh.
12701 if test -f "$ltmain"; then
12702   # See if we are running on zsh, and set the options which allow our commands through
12703   # without removal of \ escapes.
12704   if test -n "${ZSH_VERSION+set}" ; then
12705     setopt NO_GLOB_SUBST
12706   fi
12707   # Now quote all the things that may contain metacharacters while being
12708   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12709   # variables and quote the copies for generation of the libtool script.
12710   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12711     SED SHELL STRIP \
12712     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12713     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12714     deplibs_check_method reload_flag reload_cmds need_locks \
12715     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12716     lt_cv_sys_global_symbol_to_c_name_address \
12717     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12718     old_postinstall_cmds old_postuninstall_cmds \
12719     compiler_CXX \
12720     CC_CXX \
12721     LD_CXX \
12722     lt_prog_compiler_wl_CXX \
12723     lt_prog_compiler_pic_CXX \
12724     lt_prog_compiler_static_CXX \
12725     lt_prog_compiler_no_builtin_flag_CXX \
12726     export_dynamic_flag_spec_CXX \
12727     thread_safe_flag_spec_CXX \
12728     whole_archive_flag_spec_CXX \
12729     enable_shared_with_static_runtimes_CXX \
12730     old_archive_cmds_CXX \
12731     old_archive_from_new_cmds_CXX \
12732     predep_objects_CXX \
12733     postdep_objects_CXX \
12734     predeps_CXX \
12735     postdeps_CXX \
12736     compiler_lib_search_path_CXX \
12737     archive_cmds_CXX \
12738     archive_expsym_cmds_CXX \
12739     postinstall_cmds_CXX \
12740     postuninstall_cmds_CXX \
12741     old_archive_from_expsyms_cmds_CXX \
12742     allow_undefined_flag_CXX \
12743     no_undefined_flag_CXX \
12744     export_symbols_cmds_CXX \
12745     hardcode_libdir_flag_spec_CXX \
12746     hardcode_libdir_flag_spec_ld_CXX \
12747     hardcode_libdir_separator_CXX \
12748     hardcode_automatic_CXX \
12749     module_cmds_CXX \
12750     module_expsym_cmds_CXX \
12751     lt_cv_prog_compiler_c_o_CXX \
12752     exclude_expsyms_CXX \
12753     include_expsyms_CXX; do
12754
12755     case $var in
12756     old_archive_cmds_CXX | \
12757     old_archive_from_new_cmds_CXX | \
12758     archive_cmds_CXX | \
12759     archive_expsym_cmds_CXX | \
12760     module_cmds_CXX | \
12761     module_expsym_cmds_CXX | \
12762     old_archive_from_expsyms_cmds_CXX | \
12763     export_symbols_cmds_CXX | \
12764     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12765     postinstall_cmds | postuninstall_cmds | \
12766     old_postinstall_cmds | old_postuninstall_cmds | \
12767     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12768       # Double-quote double-evaled strings.
12769       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12770       ;;
12771     *)
12772       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12773       ;;
12774     esac
12775   done
12776
12777   case $lt_echo in
12778   *'\$0 --fallback-echo"')
12779     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12780     ;;
12781   esac
12782
12783 cfgfile="$ofile"
12784
12785   cat <<__EOF__ >> "$cfgfile"
12786 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12787
12788 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12789
12790 # Shell to use when invoking shell scripts.
12791 SHELL=$lt_SHELL
12792
12793 # Whether or not to build shared libraries.
12794 build_libtool_libs=$enable_shared
12795
12796 # Whether or not to build static libraries.
12797 build_old_libs=$enable_static
12798
12799 # Whether or not to add -lc for building shared libraries.
12800 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12801
12802 # Whether or not to disallow shared libs when runtime libs are static
12803 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12804
12805 # Whether or not to optimize for fast installation.
12806 fast_install=$enable_fast_install
12807
12808 # The host system.
12809 host_alias=$host_alias
12810 host=$host
12811 host_os=$host_os
12812
12813 # The build system.
12814 build_alias=$build_alias
12815 build=$build
12816 build_os=$build_os
12817
12818 # An echo program that does not interpret backslashes.
12819 echo=$lt_echo
12820
12821 # The archiver.
12822 AR=$lt_AR
12823 AR_FLAGS=$lt_AR_FLAGS
12824
12825 # A C compiler.
12826 LTCC=$lt_LTCC
12827
12828 # LTCC compiler flags.
12829 LTCFLAGS=$lt_LTCFLAGS
12830
12831 # A language-specific compiler.
12832 CC=$lt_compiler_CXX
12833
12834 # Is the compiler the GNU C compiler?
12835 with_gcc=$GCC_CXX
12836
12837 # An ERE matcher.
12838 EGREP=$lt_EGREP
12839
12840 # The linker used to build libraries.
12841 LD=$lt_LD_CXX
12842
12843 # Whether we need hard or soft links.
12844 LN_S=$lt_LN_S
12845
12846 # A BSD-compatible nm program.
12847 NM=$lt_NM
12848
12849 # A symbol stripping program
12850 STRIP=$lt_STRIP
12851
12852 # Used to examine libraries when file_magic_cmd begins "file"
12853 MAGIC_CMD=$MAGIC_CMD
12854
12855 # Used on cygwin: DLL creation program.
12856 DLLTOOL="$DLLTOOL"
12857
12858 # Used on cygwin: object dumper.
12859 OBJDUMP="$OBJDUMP"
12860
12861 # Used on cygwin: assembler.
12862 AS="$AS"
12863
12864 # The name of the directory that contains temporary libtool files.
12865 objdir=$objdir
12866
12867 # How to create reloadable object files.
12868 reload_flag=$lt_reload_flag
12869 reload_cmds=$lt_reload_cmds
12870
12871 # How to pass a linker flag through the compiler.
12872 wl=$lt_lt_prog_compiler_wl_CXX
12873
12874 # Object file suffix (normally "o").
12875 objext="$ac_objext"
12876
12877 # Old archive suffix (normally "a").
12878 libext="$libext"
12879
12880 # Shared library suffix (normally ".so").
12881 shrext_cmds='$shrext_cmds'
12882
12883 # Executable file suffix (normally "").
12884 exeext="$exeext"
12885
12886 # Additional compiler flags for building library objects.
12887 pic_flag=$lt_lt_prog_compiler_pic_CXX
12888 pic_mode=$pic_mode
12889
12890 # What is the maximum length of a command?
12891 max_cmd_len=$lt_cv_sys_max_cmd_len
12892
12893 # Does compiler simultaneously support -c and -o options?
12894 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12895
12896 # Must we lock files when doing compilation?
12897 need_locks=$lt_need_locks
12898
12899 # Do we need the lib prefix for modules?
12900 need_lib_prefix=$need_lib_prefix
12901
12902 # Do we need a version for libraries?
12903 need_version=$need_version
12904
12905 # Whether dlopen is supported.
12906 dlopen_support=$enable_dlopen
12907
12908 # Whether dlopen of programs is supported.
12909 dlopen_self=$enable_dlopen_self
12910
12911 # Whether dlopen of statically linked programs is supported.
12912 dlopen_self_static=$enable_dlopen_self_static
12913
12914 # Compiler flag to prevent dynamic linking.
12915 link_static_flag=$lt_lt_prog_compiler_static_CXX
12916
12917 # Compiler flag to turn off builtin functions.
12918 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12919
12920 # Compiler flag to allow reflexive dlopens.
12921 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12922
12923 # Compiler flag to generate shared objects directly from archives.
12924 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12925
12926 # Compiler flag to generate thread-safe objects.
12927 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12928
12929 # Library versioning type.
12930 version_type=$version_type
12931
12932 # Format of library name prefix.
12933 libname_spec=$lt_libname_spec
12934
12935 # List of archive names.  First name is the real one, the rest are links.
12936 # The last name is the one that the linker finds with -lNAME.
12937 library_names_spec=$lt_library_names_spec
12938
12939 # The coded name of the library, if different from the real name.
12940 soname_spec=$lt_soname_spec
12941
12942 # Commands used to build and install an old-style archive.
12943 RANLIB=$lt_RANLIB
12944 old_archive_cmds=$lt_old_archive_cmds_CXX
12945 old_postinstall_cmds=$lt_old_postinstall_cmds
12946 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12947
12948 # Create an old-style archive from a shared archive.
12949 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12950
12951 # Create a temporary old-style archive to link instead of a shared archive.
12952 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12953
12954 # Commands used to build and install a shared archive.
12955 archive_cmds=$lt_archive_cmds_CXX
12956 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12957 postinstall_cmds=$lt_postinstall_cmds
12958 postuninstall_cmds=$lt_postuninstall_cmds
12959
12960 # Commands used to build a loadable module (assumed same as above if empty)
12961 module_cmds=$lt_module_cmds_CXX
12962 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12963
12964 # Commands to strip libraries.
12965 old_striplib=$lt_old_striplib
12966 striplib=$lt_striplib
12967
12968 # Dependencies to place before the objects being linked to create a
12969 # shared library.
12970 predep_objects=$lt_predep_objects_CXX
12971
12972 # Dependencies to place after the objects being linked to create a
12973 # shared library.
12974 postdep_objects=$lt_postdep_objects_CXX
12975
12976 # Dependencies to place before the objects being linked to create a
12977 # shared library.
12978 predeps=$lt_predeps_CXX
12979
12980 # Dependencies to place after the objects being linked to create a
12981 # shared library.
12982 postdeps=$lt_postdeps_CXX
12983
12984 # The library search path used internally by the compiler when linking
12985 # a shared library.
12986 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12987
12988 # Method to check whether dependent libraries are shared objects.
12989 deplibs_check_method=$lt_deplibs_check_method
12990
12991 # Command to use when deplibs_check_method == file_magic.
12992 file_magic_cmd=$lt_file_magic_cmd
12993
12994 # Flag that allows shared libraries with undefined symbols to be built.
12995 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12996
12997 # Flag that forces no undefined symbols.
12998 no_undefined_flag=$lt_no_undefined_flag_CXX
12999
13000 # Commands used to finish a libtool library installation in a directory.
13001 finish_cmds=$lt_finish_cmds
13002
13003 # Same as above, but a single script fragment to be evaled but not shown.
13004 finish_eval=$lt_finish_eval
13005
13006 # Take the output of nm and produce a listing of raw symbols and C names.
13007 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13008
13009 # Transform the output of nm in a proper C declaration
13010 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13011
13012 # Transform the output of nm in a C name address pair
13013 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13014
13015 # This is the shared library runtime path variable.
13016 runpath_var=$runpath_var
13017
13018 # This is the shared library path variable.
13019 shlibpath_var=$shlibpath_var
13020
13021 # Is shlibpath searched before the hard-coded library search path?
13022 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13023
13024 # How to hardcode a shared library path into an executable.
13025 hardcode_action=$hardcode_action_CXX
13026
13027 # Whether we should hardcode library paths into libraries.
13028 hardcode_into_libs=$hardcode_into_libs
13029
13030 # Flag to hardcode \$libdir into a binary during linking.
13031 # This must work even if \$libdir does not exist.
13032 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13033
13034 # If ld is used when linking, flag to hardcode \$libdir into
13035 # a binary during linking. This must work even if \$libdir does
13036 # not exist.
13037 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13038
13039 # Whether we need a single -rpath flag with a separated argument.
13040 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13041
13042 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13043 # resulting binary.
13044 hardcode_direct=$hardcode_direct_CXX
13045
13046 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13047 # resulting binary.
13048 hardcode_minus_L=$hardcode_minus_L_CXX
13049
13050 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13051 # the resulting binary.
13052 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13053
13054 # Set to yes if building a shared library automatically hardcodes DIR into the library
13055 # and all subsequent libraries and executables linked against it.
13056 hardcode_automatic=$hardcode_automatic_CXX
13057
13058 # Variables whose values should be saved in libtool wrapper scripts and
13059 # restored at relink time.
13060 variables_saved_for_relink="$variables_saved_for_relink"
13061
13062 # Whether libtool must link a program against all its dependency libraries.
13063 link_all_deplibs=$link_all_deplibs_CXX
13064
13065 # Compile-time system search path for libraries
13066 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13067
13068 # Run-time system search path for libraries
13069 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13070
13071 # Fix the shell variable \$srcfile for the compiler.
13072 fix_srcfile_path="$fix_srcfile_path_CXX"
13073
13074 # Set to yes if exported symbols are required.
13075 always_export_symbols=$always_export_symbols_CXX
13076
13077 # The commands to list exported symbols.
13078 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13079
13080 # The commands to extract the exported symbol list from a shared archive.
13081 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13082
13083 # Symbols that should not be listed in the preloaded symbols.
13084 exclude_expsyms=$lt_exclude_expsyms_CXX
13085
13086 # Symbols that must always be exported.
13087 include_expsyms=$lt_include_expsyms_CXX
13088
13089 # ### END LIBTOOL TAG CONFIG: $tagname
13090
13091 __EOF__
13092
13093
13094 else
13095   # If there is no Makefile yet, we rely on a make rule to execute
13096   # `config.status --recheck' to rerun these tests and create the
13097   # libtool script then.
13098   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13099   if test -f "$ltmain_in"; then
13100     test -f Makefile && make "$ltmain"
13101   fi
13102 fi
13103
13104
13105 ac_ext=c
13106 ac_cpp='$CPP $CPPFLAGS'
13107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13110
13111 CC=$lt_save_CC
13112 LDCXX=$LD
13113 LD=$lt_save_LD
13114 GCC=$lt_save_GCC
13115 with_gnu_ldcxx=$with_gnu_ld
13116 with_gnu_ld=$lt_save_with_gnu_ld
13117 lt_cv_path_LDCXX=$lt_cv_path_LD
13118 lt_cv_path_LD=$lt_save_path_LD
13119 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13120 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13121
13122         else
13123           tagname=""
13124         fi
13125         ;;
13126
13127       F77)
13128         if test -n "$F77" && test "X$F77" != "Xno"; then
13129
13130 ac_ext=f
13131 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13132 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13133 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13134
13135
13136 archive_cmds_need_lc_F77=no
13137 allow_undefined_flag_F77=
13138 always_export_symbols_F77=no
13139 archive_expsym_cmds_F77=
13140 export_dynamic_flag_spec_F77=
13141 hardcode_direct_F77=no
13142 hardcode_libdir_flag_spec_F77=
13143 hardcode_libdir_flag_spec_ld_F77=
13144 hardcode_libdir_separator_F77=
13145 hardcode_minus_L_F77=no
13146 hardcode_automatic_F77=no
13147 module_cmds_F77=
13148 module_expsym_cmds_F77=
13149 link_all_deplibs_F77=unknown
13150 old_archive_cmds_F77=$old_archive_cmds
13151 no_undefined_flag_F77=
13152 whole_archive_flag_spec_F77=
13153 enable_shared_with_static_runtimes_F77=no
13154
13155 # Source file extension for f77 test sources.
13156 ac_ext=f
13157
13158 # Object file extension for compiled f77 test sources.
13159 objext=o
13160 objext_F77=$objext
13161
13162 # Code to be used in simple compile tests
13163 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13164
13165 # Code to be used in simple link tests
13166 lt_simple_link_test_code="      program t\n      end\n"
13167
13168 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13169
13170 # If no C compiler was specified, use CC.
13171 LTCC=${LTCC-"$CC"}
13172
13173 # If no C compiler flags were specified, use CFLAGS.
13174 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13175
13176 # Allow CC to be a program name with arguments.
13177 compiler=$CC
13178
13179
13180 # save warnings/boilerplate of simple test code
13181 ac_outfile=conftest.$ac_objext
13182 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13183 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13184 _lt_compiler_boilerplate=`cat conftest.err`
13185 $rm conftest*
13186
13187 ac_outfile=conftest.$ac_objext
13188 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13189 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13190 _lt_linker_boilerplate=`cat conftest.err`
13191 $rm conftest*
13192
13193
13194 # Allow CC to be a program name with arguments.
13195 lt_save_CC="$CC"
13196 CC=${F77-"f77"}
13197 compiler=$CC
13198 compiler_F77=$CC
13199 for cc_temp in $compiler""; do
13200   case $cc_temp in
13201     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13202     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13203     \-*) ;;
13204     *) break;;
13205   esac
13206 done
13207 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13208
13209
13210 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13211 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13212 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13213 echo "${ECHO_T}$can_build_shared" >&6
13214
13215 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13216 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13217 test "$can_build_shared" = "no" && enable_shared=no
13218
13219 # On AIX, shared libraries and static libraries use the same namespace, and
13220 # are all built from PIC.
13221 case $host_os in
13222 aix3*)
13223   test "$enable_shared" = yes && enable_static=no
13224   if test -n "$RANLIB"; then
13225     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13226     postinstall_cmds='$RANLIB $lib'
13227   fi
13228   ;;
13229 aix4* | aix5*)
13230   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13231     test "$enable_shared" = yes && enable_static=no
13232   fi
13233   ;;
13234 esac
13235 echo "$as_me:$LINENO: result: $enable_shared" >&5
13236 echo "${ECHO_T}$enable_shared" >&6
13237
13238 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13239 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13240 # Make sure either enable_shared or enable_static is yes.
13241 test "$enable_shared" = yes || enable_static=yes
13242 echo "$as_me:$LINENO: result: $enable_static" >&5
13243 echo "${ECHO_T}$enable_static" >&6
13244
13245 GCC_F77="$G77"
13246 LD_F77="$LD"
13247
13248 lt_prog_compiler_wl_F77=
13249 lt_prog_compiler_pic_F77=
13250 lt_prog_compiler_static_F77=
13251
13252 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13253 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13254
13255   if test "$GCC" = yes; then
13256     lt_prog_compiler_wl_F77='-Wl,'
13257     lt_prog_compiler_static_F77='-static'
13258
13259     case $host_os in
13260       aix*)
13261       # All AIX code is PIC.
13262       if test "$host_cpu" = ia64; then
13263         # AIX 5 now supports IA64 processor
13264         lt_prog_compiler_static_F77='-Bstatic'
13265       fi
13266       ;;
13267
13268     amigaos*)
13269       # FIXME: we need at least 68020 code to build shared libraries, but
13270       # adding the `-m68020' flag to GCC prevents building anything better,
13271       # like `-m68040'.
13272       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13273       ;;
13274
13275     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13276       # PIC is the default for these OSes.
13277       ;;
13278
13279     mingw* | pw32* | os2*)
13280       # This hack is so that the source file can tell whether it is being
13281       # built for inclusion in a dll (and should export symbols for example).
13282       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13283       ;;
13284
13285     darwin* | rhapsody*)
13286       # PIC is the default on this platform
13287       # Common symbols not allowed in MH_DYLIB files
13288       lt_prog_compiler_pic_F77='-fno-common'
13289       ;;
13290
13291     interix3*)
13292       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13293       # Instead, we relocate shared libraries at runtime.
13294       ;;
13295
13296     msdosdjgpp*)
13297       # Just because we use GCC doesn't mean we suddenly get shared libraries
13298       # on systems that don't support them.
13299       lt_prog_compiler_can_build_shared_F77=no
13300       enable_shared=no
13301       ;;
13302
13303     sysv4*MP*)
13304       if test -d /usr/nec; then
13305         lt_prog_compiler_pic_F77=-Kconform_pic
13306       fi
13307       ;;
13308
13309     hpux*)
13310       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13311       # not for PA HP-UX.
13312       case $host_cpu in
13313       hppa*64*|ia64*)
13314         # +Z the default
13315         ;;
13316       *)
13317         lt_prog_compiler_pic_F77='-fPIC'
13318         ;;
13319       esac
13320       ;;
13321
13322     *)
13323       lt_prog_compiler_pic_F77='-fPIC'
13324       ;;
13325     esac
13326   else
13327     # PORTME Check for flag to pass linker flags through the system compiler.
13328     case $host_os in
13329     aix*)
13330       lt_prog_compiler_wl_F77='-Wl,'
13331       if test "$host_cpu" = ia64; then
13332         # AIX 5 now supports IA64 processor
13333         lt_prog_compiler_static_F77='-Bstatic'
13334       else
13335         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13336       fi
13337       ;;
13338       darwin*)
13339         # PIC is the default on this platform
13340         # Common symbols not allowed in MH_DYLIB files
13341        case $cc_basename in
13342          xlc*)
13343          lt_prog_compiler_pic_F77='-qnocommon'
13344          lt_prog_compiler_wl_F77='-Wl,'
13345          ;;
13346        esac
13347        ;;
13348
13349     mingw* | pw32* | os2*)
13350       # This hack is so that the source file can tell whether it is being
13351       # built for inclusion in a dll (and should export symbols for example).
13352       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13353       ;;
13354
13355     hpux9* | hpux10* | hpux11*)
13356       lt_prog_compiler_wl_F77='-Wl,'
13357       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13358       # not for PA HP-UX.
13359       case $host_cpu in
13360       hppa*64*|ia64*)
13361         # +Z the default
13362         ;;
13363       *)
13364         lt_prog_compiler_pic_F77='+Z'
13365         ;;
13366       esac
13367       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13368       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13369       ;;
13370
13371     irix5* | irix6* | nonstopux*)
13372       lt_prog_compiler_wl_F77='-Wl,'
13373       # PIC (with -KPIC) is the default.
13374       lt_prog_compiler_static_F77='-non_shared'
13375       ;;
13376
13377     newsos6)
13378       lt_prog_compiler_pic_F77='-KPIC'
13379       lt_prog_compiler_static_F77='-Bstatic'
13380       ;;
13381
13382     linux*)
13383       case $cc_basename in
13384       icc* | ecc*)
13385         lt_prog_compiler_wl_F77='-Wl,'
13386         lt_prog_compiler_pic_F77='-KPIC'
13387         lt_prog_compiler_static_F77='-static'
13388         ;;
13389       pgcc* | pgf77* | pgf90* | pgf95*)
13390         # Portland Group compilers (*not* the Pentium gcc compiler,
13391         # which looks to be a dead project)
13392         lt_prog_compiler_wl_F77='-Wl,'
13393         lt_prog_compiler_pic_F77='-fpic'
13394         lt_prog_compiler_static_F77='-Bstatic'
13395         ;;
13396       ccc*)
13397         lt_prog_compiler_wl_F77='-Wl,'
13398         # All Alpha code is PIC.
13399         lt_prog_compiler_static_F77='-non_shared'
13400         ;;
13401       esac
13402       ;;
13403
13404     osf3* | osf4* | osf5*)
13405       lt_prog_compiler_wl_F77='-Wl,'
13406       # All OSF/1 code is PIC.
13407       lt_prog_compiler_static_F77='-non_shared'
13408       ;;
13409
13410     solaris*)
13411       lt_prog_compiler_pic_F77='-KPIC'
13412       lt_prog_compiler_static_F77='-Bstatic'
13413       case $cc_basename in
13414       f77* | f90* | f95*)
13415         lt_prog_compiler_wl_F77='-Qoption ld ';;
13416       *)
13417         lt_prog_compiler_wl_F77='-Wl,';;
13418       esac
13419       ;;
13420
13421     sunos4*)
13422       lt_prog_compiler_wl_F77='-Qoption ld '
13423       lt_prog_compiler_pic_F77='-PIC'
13424       lt_prog_compiler_static_F77='-Bstatic'
13425       ;;
13426
13427     sysv4 | sysv4.2uw2* | sysv4.3*)
13428       lt_prog_compiler_wl_F77='-Wl,'
13429       lt_prog_compiler_pic_F77='-KPIC'
13430       lt_prog_compiler_static_F77='-Bstatic'
13431       ;;
13432
13433     sysv4*MP*)
13434       if test -d /usr/nec ;then
13435         lt_prog_compiler_pic_F77='-Kconform_pic'
13436         lt_prog_compiler_static_F77='-Bstatic'
13437       fi
13438       ;;
13439
13440     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13441       lt_prog_compiler_wl_F77='-Wl,'
13442       lt_prog_compiler_pic_F77='-KPIC'
13443       lt_prog_compiler_static_F77='-Bstatic'
13444       ;;
13445
13446     unicos*)
13447       lt_prog_compiler_wl_F77='-Wl,'
13448       lt_prog_compiler_can_build_shared_F77=no
13449       ;;
13450
13451     uts4*)
13452       lt_prog_compiler_pic_F77='-pic'
13453       lt_prog_compiler_static_F77='-Bstatic'
13454       ;;
13455
13456     *)
13457       lt_prog_compiler_can_build_shared_F77=no
13458       ;;
13459     esac
13460   fi
13461
13462 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13463 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13464
13465 #
13466 # Check to make sure the PIC flag actually works.
13467 #
13468 if test -n "$lt_prog_compiler_pic_F77"; then
13469
13470 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13471 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13472 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13473   echo $ECHO_N "(cached) $ECHO_C" >&6
13474 else
13475   lt_prog_compiler_pic_works_F77=no
13476   ac_outfile=conftest.$ac_objext
13477    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13478    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13479    # Insert the option either (1) after the last *FLAGS variable, or
13480    # (2) before a word containing "conftest.", or (3) at the end.
13481    # Note that $ac_compile itself does not contain backslashes and begins
13482    # with a dollar sign (not a hyphen), so the echo should work correctly.
13483    # The option is referenced via a variable to avoid confusing sed.
13484    lt_compile=`echo "$ac_compile" | $SED \
13485    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13486    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13487    -e 's:$: $lt_compiler_flag:'`
13488    (eval echo "\"\$as_me:13488: $lt_compile\"" >&5)
13489    (eval "$lt_compile" 2>conftest.err)
13490    ac_status=$?
13491    cat conftest.err >&5
13492    echo "$as_me:13492: \$? = $ac_status" >&5
13493    if (exit $ac_status) && test -s "$ac_outfile"; then
13494      # The compiler can only warn and ignore the option if not recognized
13495      # So say no if there are warnings other than the usual output.
13496      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13497      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13498      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13499        lt_prog_compiler_pic_works_F77=yes
13500      fi
13501    fi
13502    $rm conftest*
13503
13504 fi
13505 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13506 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13507
13508 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13509     case $lt_prog_compiler_pic_F77 in
13510      "" | " "*) ;;
13511      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13512      esac
13513 else
13514     lt_prog_compiler_pic_F77=
13515      lt_prog_compiler_can_build_shared_F77=no
13516 fi
13517
13518 fi
13519 case $host_os in
13520   # For platforms which do not support PIC, -DPIC is meaningless:
13521   *djgpp*)
13522     lt_prog_compiler_pic_F77=
13523     ;;
13524   *)
13525     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13526     ;;
13527 esac
13528
13529 #
13530 # Check to make sure the static flag actually works.
13531 #
13532 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13533 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13534 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13535 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13536   echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538   lt_prog_compiler_static_works_F77=no
13539    save_LDFLAGS="$LDFLAGS"
13540    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13541    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13542    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13543      # The linker can only warn and ignore the option if not recognized
13544      # So say no if there are warnings
13545      if test -s conftest.err; then
13546        # Append any errors to the config.log.
13547        cat conftest.err 1>&5
13548        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13549        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13550        if diff conftest.exp conftest.er2 >/dev/null; then
13551          lt_prog_compiler_static_works_F77=yes
13552        fi
13553      else
13554        lt_prog_compiler_static_works_F77=yes
13555      fi
13556    fi
13557    $rm conftest*
13558    LDFLAGS="$save_LDFLAGS"
13559
13560 fi
13561 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13562 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13563
13564 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13565     :
13566 else
13567     lt_prog_compiler_static_F77=
13568 fi
13569
13570
13571 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13572 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13573 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13574   echo $ECHO_N "(cached) $ECHO_C" >&6
13575 else
13576   lt_cv_prog_compiler_c_o_F77=no
13577    $rm -r conftest 2>/dev/null
13578    mkdir conftest
13579    cd conftest
13580    mkdir out
13581    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13582
13583    lt_compiler_flag="-o out/conftest2.$ac_objext"
13584    # Insert the option either (1) after the last *FLAGS variable, or
13585    # (2) before a word containing "conftest.", or (3) at the end.
13586    # Note that $ac_compile itself does not contain backslashes and begins
13587    # with a dollar sign (not a hyphen), so the echo should work correctly.
13588    lt_compile=`echo "$ac_compile" | $SED \
13589    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13590    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13591    -e 's:$: $lt_compiler_flag:'`
13592    (eval echo "\"\$as_me:13592: $lt_compile\"" >&5)
13593    (eval "$lt_compile" 2>out/conftest.err)
13594    ac_status=$?
13595    cat out/conftest.err >&5
13596    echo "$as_me:13596: \$? = $ac_status" >&5
13597    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13598    then
13599      # The compiler can only warn and ignore the option if not recognized
13600      # So say no if there are warnings
13601      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13602      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13603      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13604        lt_cv_prog_compiler_c_o_F77=yes
13605      fi
13606    fi
13607    chmod u+w . 2>&5
13608    $rm conftest*
13609    # SGI C++ compiler will create directory out/ii_files/ for
13610    # template instantiation
13611    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13612    $rm out/* && rmdir out
13613    cd ..
13614    rmdir conftest
13615    $rm conftest*
13616
13617 fi
13618 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13619 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13620
13621
13622 hard_links="nottested"
13623 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13624   # do not overwrite the value of need_locks provided by the user
13625   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13626 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13627   hard_links=yes
13628   $rm conftest*
13629   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13630   touch conftest.a
13631   ln conftest.a conftest.b 2>&5 || hard_links=no
13632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13633   echo "$as_me:$LINENO: result: $hard_links" >&5
13634 echo "${ECHO_T}$hard_links" >&6
13635   if test "$hard_links" = no; then
13636     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13637 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13638     need_locks=warn
13639   fi
13640 else
13641   need_locks=no
13642 fi
13643
13644 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13645 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13646
13647   runpath_var=
13648   allow_undefined_flag_F77=
13649   enable_shared_with_static_runtimes_F77=no
13650   archive_cmds_F77=
13651   archive_expsym_cmds_F77=
13652   old_archive_From_new_cmds_F77=
13653   old_archive_from_expsyms_cmds_F77=
13654   export_dynamic_flag_spec_F77=
13655   whole_archive_flag_spec_F77=
13656   thread_safe_flag_spec_F77=
13657   hardcode_libdir_flag_spec_F77=
13658   hardcode_libdir_flag_spec_ld_F77=
13659   hardcode_libdir_separator_F77=
13660   hardcode_direct_F77=no
13661   hardcode_minus_L_F77=no
13662   hardcode_shlibpath_var_F77=unsupported
13663   link_all_deplibs_F77=unknown
13664   hardcode_automatic_F77=no
13665   module_cmds_F77=
13666   module_expsym_cmds_F77=
13667   always_export_symbols_F77=no
13668   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13669   # include_expsyms should be a list of space-separated symbols to be *always*
13670   # included in the symbol list
13671   include_expsyms_F77=
13672   # exclude_expsyms can be an extended regexp of symbols to exclude
13673   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13674   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13675   # as well as any symbol that contains `d'.
13676   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13677   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13678   # platforms (ab)use it in PIC code, but their linkers get confused if
13679   # the symbol is explicitly referenced.  Since portable code cannot
13680   # rely on this symbol name, it's probably fine to never include it in
13681   # preloaded symbol tables.
13682   extract_expsyms_cmds=
13683   # Just being paranoid about ensuring that cc_basename is set.
13684   for cc_temp in $compiler""; do
13685   case $cc_temp in
13686     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13687     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13688     \-*) ;;
13689     *) break;;
13690   esac
13691 done
13692 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13693
13694   case $host_os in
13695   cygwin* | mingw* | pw32*)
13696     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13697     # When not using gcc, we currently assume that we are using
13698     # Microsoft Visual C++.
13699     if test "$GCC" != yes; then
13700       with_gnu_ld=no
13701     fi
13702     ;;
13703   interix*)
13704     # we just hope/assume this is gcc and not c89 (= MSVC++)
13705     with_gnu_ld=yes
13706     ;;
13707   openbsd*)
13708     with_gnu_ld=no
13709     ;;
13710   esac
13711
13712   ld_shlibs_F77=yes
13713   if test "$with_gnu_ld" = yes; then
13714     # If archive_cmds runs LD, not CC, wlarc should be empty
13715     wlarc='${wl}'
13716
13717     # Set some defaults for GNU ld with shared library support. These
13718     # are reset later if shared libraries are not supported. Putting them
13719     # here allows them to be overridden if necessary.
13720     runpath_var=LD_RUN_PATH
13721     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13722     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13723     # ancient GNU ld didn't support --whole-archive et. al.
13724     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13725         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13726       else
13727         whole_archive_flag_spec_F77=
13728     fi
13729     supports_anon_versioning=no
13730     case `$LD -v 2>/dev/null` in
13731       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13732       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13733       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13734       *\ 2.11.*) ;; # other 2.11 versions
13735       *) supports_anon_versioning=yes ;;
13736     esac
13737
13738     # See if GNU ld supports shared libraries.
13739     case $host_os in
13740     aix3* | aix4* | aix5*)
13741       # On AIX/PPC, the GNU linker is very broken
13742       if test "$host_cpu" != ia64; then
13743         ld_shlibs_F77=no
13744         cat <<EOF 1>&2
13745
13746 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13747 *** to be unable to reliably create shared libraries on AIX.
13748 *** Therefore, libtool is disabling shared libraries support.  If you
13749 *** really care for shared libraries, you may want to modify your PATH
13750 *** so that a non-GNU linker is found, and then restart.
13751
13752 EOF
13753       fi
13754       ;;
13755
13756     amigaos*)
13757       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)'
13758       hardcode_libdir_flag_spec_F77='-L$libdir'
13759       hardcode_minus_L_F77=yes
13760
13761       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13762       # that the semantics of dynamic libraries on AmigaOS, at least up
13763       # to version 4, is to share data among multiple programs linked
13764       # with the same dynamic library.  Since this doesn't match the
13765       # behavior of shared libraries on other platforms, we can't use
13766       # them.
13767       ld_shlibs_F77=no
13768       ;;
13769
13770     beos*)
13771       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13772         allow_undefined_flag_F77=unsupported
13773         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13774         # support --undefined.  This deserves some investigation.  FIXME
13775         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13776       else
13777         ld_shlibs_F77=no
13778       fi
13779       ;;
13780
13781     cygwin* | mingw* | pw32*)
13782       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13783       # as there is no search path for DLLs.
13784       hardcode_libdir_flag_spec_F77='-L$libdir'
13785       allow_undefined_flag_F77=unsupported
13786       always_export_symbols_F77=no
13787       enable_shared_with_static_runtimes_F77=yes
13788       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13789
13790       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13791         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13792         # If the export-symbols file already is a .def file (1st line
13793         # is EXPORTS), use it as is; otherwise, prepend...
13794         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13795           cp $export_symbols $output_objdir/$soname.def;
13796         else
13797           echo EXPORTS > $output_objdir/$soname.def;
13798           cat $export_symbols >> $output_objdir/$soname.def;
13799         fi~
13800         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13801       else
13802         ld_shlibs_F77=no
13803       fi
13804       ;;
13805
13806     interix3*)
13807       hardcode_direct_F77=no
13808       hardcode_shlibpath_var_F77=no
13809       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13810       export_dynamic_flag_spec_F77='${wl}-E'
13811       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13812       # Instead, shared libraries are loaded at an image base (0x10000000 by
13813       # default) and relocated if they conflict, which is a slow very memory
13814       # consuming and fragmenting process.  To avoid this, we pick a random,
13815       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13816       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13817       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'
13818       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'
13819       ;;
13820
13821     linux*)
13822       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13823         tmp_addflag=
13824         case $cc_basename,$host_cpu in
13825         pgcc*)                          # Portland Group C compiler
13826           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'
13827           tmp_addflag=' $pic_flag'
13828           ;;
13829         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13830           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'
13831           tmp_addflag=' $pic_flag -Mnomain' ;;
13832         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13833           tmp_addflag=' -i_dynamic' ;;
13834         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13835           tmp_addflag=' -i_dynamic -nofor_main' ;;
13836         ifc* | ifort*)                  # Intel Fortran compiler
13837           tmp_addflag=' -nofor_main' ;;
13838         esac
13839         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13840
13841         if test $supports_anon_versioning = yes; then
13842           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13843   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13844   $echo "local: *; };" >> $output_objdir/$libname.ver~
13845           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13846         fi
13847         link_all_deplibs_F77=no
13848       else
13849         ld_shlibs_F77=no
13850       fi
13851       ;;
13852
13853     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13854       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13855         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13856         wlarc=
13857       else
13858         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13859         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13860       fi
13861       ;;
13862
13863     solaris*)
13864       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13865         ld_shlibs_F77=no
13866         cat <<EOF 1>&2
13867
13868 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13869 *** create shared libraries on Solaris systems.  Therefore, libtool
13870 *** is disabling shared libraries support.  We urge you to upgrade GNU
13871 *** binutils to release 2.9.1 or newer.  Another option is to modify
13872 *** your PATH or compiler configuration so that the native linker is
13873 *** used, and then restart.
13874
13875 EOF
13876       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13877         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13878         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13879       else
13880         ld_shlibs_F77=no
13881       fi
13882       ;;
13883
13884     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13885       case `$LD -v 2>&1` in
13886         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13887         ld_shlibs_F77=no
13888         cat <<_LT_EOF 1>&2
13889
13890 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13891 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13892 *** is disabling shared libraries support.  We urge you to upgrade GNU
13893 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13894 *** your PATH or compiler configuration so that the native linker is
13895 *** used, and then restart.
13896
13897 _LT_EOF
13898         ;;
13899         *)
13900           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13901             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13902             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13903             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13904           else
13905             ld_shlibs_F77=no
13906           fi
13907         ;;
13908       esac
13909       ;;
13910
13911     sunos4*)
13912       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13913       wlarc=
13914       hardcode_direct_F77=yes
13915       hardcode_shlibpath_var_F77=no
13916       ;;
13917
13918     *)
13919       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13920         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13921         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13922       else
13923         ld_shlibs_F77=no
13924       fi
13925       ;;
13926     esac
13927
13928     if test "$ld_shlibs_F77" = no; then
13929       runpath_var=
13930       hardcode_libdir_flag_spec_F77=
13931       export_dynamic_flag_spec_F77=
13932       whole_archive_flag_spec_F77=
13933     fi
13934   else
13935     # PORTME fill in a description of your system's linker (not GNU ld)
13936     case $host_os in
13937     aix3*)
13938       allow_undefined_flag_F77=unsupported
13939       always_export_symbols_F77=yes
13940       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'
13941       # Note: this linker hardcodes the directories in LIBPATH if there
13942       # are no directories specified by -L.
13943       hardcode_minus_L_F77=yes
13944       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13945         # Neither direct hardcoding nor static linking is supported with a
13946         # broken collect2.
13947         hardcode_direct_F77=unsupported
13948       fi
13949       ;;
13950
13951     aix4* | aix5*)
13952       if test "$host_cpu" = ia64; then
13953         # On IA64, the linker does run time linking by default, so we don't
13954         # have to do anything special.
13955         aix_use_runtimelinking=no
13956         exp_sym_flag='-Bexport'
13957         no_entry_flag=""
13958       else
13959         # If we're using GNU nm, then we don't want the "-C" option.
13960         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13961         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13962           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'
13963         else
13964           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'
13965         fi
13966         aix_use_runtimelinking=no
13967
13968         # Test if we are trying to use run time linking or normal
13969         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13970         # need to do runtime linking.
13971         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13972           for ld_flag in $LDFLAGS; do
13973           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13974             aix_use_runtimelinking=yes
13975             break
13976           fi
13977           done
13978           ;;
13979         esac
13980
13981         exp_sym_flag='-bexport'
13982         no_entry_flag='-bnoentry'
13983       fi
13984
13985       # When large executables or shared objects are built, AIX ld can
13986       # have problems creating the table of contents.  If linking a library
13987       # or program results in "error TOC overflow" add -mminimal-toc to
13988       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13989       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13990
13991       archive_cmds_F77=''
13992       hardcode_direct_F77=yes
13993       hardcode_libdir_separator_F77=':'
13994       link_all_deplibs_F77=yes
13995
13996       if test "$GCC" = yes; then
13997         case $host_os in aix4.[012]|aix4.[012].*)
13998         # We only want to do this on AIX 4.2 and lower, the check
13999         # below for broken collect2 doesn't work under 4.3+
14000           collect2name=`${CC} -print-prog-name=collect2`
14001           if test -f "$collect2name" && \
14002            strings "$collect2name" | grep resolve_lib_name >/dev/null
14003           then
14004           # We have reworked collect2
14005           hardcode_direct_F77=yes
14006           else
14007           # We have old collect2
14008           hardcode_direct_F77=unsupported
14009           # It fails to find uninstalled libraries when the uninstalled
14010           # path is not listed in the libpath.  Setting hardcode_minus_L
14011           # to unsupported forces relinking
14012           hardcode_minus_L_F77=yes
14013           hardcode_libdir_flag_spec_F77='-L$libdir'
14014           hardcode_libdir_separator_F77=
14015           fi
14016           ;;
14017         esac
14018         shared_flag='-shared'
14019         if test "$aix_use_runtimelinking" = yes; then
14020           shared_flag="$shared_flag "'${wl}-G'
14021         fi
14022       else
14023         # not using gcc
14024         if test "$host_cpu" = ia64; then
14025         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14026         # chokes on -Wl,-G. The following line is correct:
14027           shared_flag='-G'
14028         else
14029           if test "$aix_use_runtimelinking" = yes; then
14030             shared_flag='${wl}-G'
14031           else
14032             shared_flag='${wl}-bM:SRE'
14033           fi
14034         fi
14035       fi
14036
14037       # It seems that -bexpall does not export symbols beginning with
14038       # underscore (_), so it is better to generate a list of symbols to export.
14039       always_export_symbols_F77=yes
14040       if test "$aix_use_runtimelinking" = yes; then
14041         # Warning - without using the other runtime loading flags (-brtl),
14042         # -berok will link without error, but may produce a broken library.
14043         allow_undefined_flag_F77='-berok'
14044        # Determine the default libpath from the value encoded in an empty executable.
14045        cat >conftest.$ac_ext <<_ACEOF
14046       program main
14047
14048       end
14049 _ACEOF
14050 rm -f conftest.$ac_objext conftest$ac_exeext
14051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14052   (eval $ac_link) 2>conftest.er1
14053   ac_status=$?
14054   grep -v '^ *+' conftest.er1 >conftest.err
14055   rm -f conftest.er1
14056   cat conftest.err >&5
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); } &&
14059          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061   (eval $ac_try) 2>&5
14062   ac_status=$?
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); }; } &&
14065          { ac_try='test -s conftest$ac_exeext'
14066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067   (eval $ac_try) 2>&5
14068   ac_status=$?
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); }; }; then
14071
14072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14073 }'`
14074 # Check for a 64-bit object if we didn't find anything.
14075 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; }
14076 }'`; fi
14077 else
14078   echo "$as_me: failed program was:" >&5
14079 sed 's/^/| /' conftest.$ac_ext >&5
14080
14081 fi
14082 rm -f conftest.err conftest.$ac_objext \
14083       conftest$ac_exeext conftest.$ac_ext
14084 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14085
14086        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14087         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"
14088        else
14089         if test "$host_cpu" = ia64; then
14090           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14091           allow_undefined_flag_F77="-z nodefs"
14092           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"
14093         else
14094          # Determine the default libpath from the value encoded in an empty executable.
14095          cat >conftest.$ac_ext <<_ACEOF
14096       program main
14097
14098       end
14099 _ACEOF
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14102   (eval $ac_link) 2>conftest.er1
14103   ac_status=$?
14104   grep -v '^ *+' conftest.er1 >conftest.err
14105   rm -f conftest.er1
14106   cat conftest.err >&5
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); } &&
14109          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111   (eval $ac_try) 2>&5
14112   ac_status=$?
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); }; } &&
14115          { ac_try='test -s conftest$ac_exeext'
14116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14117   (eval $ac_try) 2>&5
14118   ac_status=$?
14119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120   (exit $ac_status); }; }; then
14121
14122 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14123 }'`
14124 # Check for a 64-bit object if we didn't find anything.
14125 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; }
14126 }'`; fi
14127 else
14128   echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14130
14131 fi
14132 rm -f conftest.err conftest.$ac_objext \
14133       conftest$ac_exeext conftest.$ac_ext
14134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14135
14136          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14137           # Warning - without using the other run time loading flags,
14138           # -berok will link without error, but may produce a broken library.
14139           no_undefined_flag_F77=' ${wl}-bernotok'
14140           allow_undefined_flag_F77=' ${wl}-berok'
14141           # Exported symbols can be pulled into shared objects from archives
14142           whole_archive_flag_spec_F77='$convenience'
14143           archive_cmds_need_lc_F77=yes
14144           # This is similar to how AIX traditionally builds its shared libraries.
14145           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'
14146         fi
14147       fi
14148       ;;
14149
14150     amigaos*)
14151       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)'
14152       hardcode_libdir_flag_spec_F77='-L$libdir'
14153       hardcode_minus_L_F77=yes
14154       # see comment about different semantics on the GNU ld section
14155       ld_shlibs_F77=no
14156       ;;
14157
14158     bsdi[45]*)
14159       export_dynamic_flag_spec_F77=-rdynamic
14160       ;;
14161
14162     cygwin* | mingw* | pw32*)
14163       # When not using gcc, we currently assume that we are using
14164       # Microsoft Visual C++.
14165       # hardcode_libdir_flag_spec is actually meaningless, as there is
14166       # no search path for DLLs.
14167       hardcode_libdir_flag_spec_F77=' '
14168       allow_undefined_flag_F77=unsupported
14169       # Tell ltmain to make .lib files, not .a files.
14170       libext=lib
14171       # Tell ltmain to make .dll files, not .so files.
14172       shrext_cmds=".dll"
14173       # FIXME: Setting linknames here is a bad hack.
14174       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14175       # The linker will automatically build a .lib file if we build a DLL.
14176       old_archive_From_new_cmds_F77='true'
14177       # FIXME: Should let the user specify the lib program.
14178       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14179       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14180       enable_shared_with_static_runtimes_F77=yes
14181       ;;
14182
14183     darwin* | rhapsody*)
14184       case $host_os in
14185         rhapsody* | darwin1.[012])
14186          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14187          ;;
14188        *) # Darwin 1.3 on
14189          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14190            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14191          else
14192            case ${MACOSX_DEPLOYMENT_TARGET} in
14193              10.[012])
14194                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14195                ;;
14196              10.*)
14197                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14198                ;;
14199            esac
14200          fi
14201          ;;
14202       esac
14203       archive_cmds_need_lc_F77=no
14204       hardcode_direct_F77=no
14205       hardcode_automatic_F77=yes
14206       hardcode_shlibpath_var_F77=unsupported
14207       whole_archive_flag_spec_F77=''
14208       link_all_deplibs_F77=yes
14209     if test "$GCC" = yes ; then
14210         output_verbose_link_cmd='echo'
14211         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14212       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14213       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14214       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}'
14215       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}'
14216     else
14217       case $cc_basename in
14218         xlc*)
14219          output_verbose_link_cmd='echo'
14220          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14221          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14222           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14223          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}'
14224           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}'
14225           ;;
14226        *)
14227          ld_shlibs_F77=no
14228           ;;
14229       esac
14230     fi
14231       ;;
14232
14233     dgux*)
14234       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14235       hardcode_libdir_flag_spec_F77='-L$libdir'
14236       hardcode_shlibpath_var_F77=no
14237       ;;
14238
14239     freebsd1*)
14240       ld_shlibs_F77=no
14241       ;;
14242
14243     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14244     # support.  Future versions do this automatically, but an explicit c++rt0.o
14245     # does not break anything, and helps significantly (at the cost of a little
14246     # extra space).
14247     freebsd2.2*)
14248       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14249       hardcode_libdir_flag_spec_F77='-R$libdir'
14250       hardcode_direct_F77=yes
14251       hardcode_shlibpath_var_F77=no
14252       ;;
14253
14254     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14255     freebsd2*)
14256       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14257       hardcode_direct_F77=yes
14258       hardcode_minus_L_F77=yes
14259       hardcode_shlibpath_var_F77=no
14260       ;;
14261
14262     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14263     freebsd* | dragonfly*)
14264       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14265       hardcode_libdir_flag_spec_F77='-R$libdir'
14266       hardcode_direct_F77=yes
14267       hardcode_shlibpath_var_F77=no
14268       ;;
14269
14270     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
14271     kfreebsd*-gnu)
14272       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14273       hardcode_libdir_flag_spec_F77='-R$libdir'
14274       hardcode_direct_F77=yes
14275       hardcode_shlibpath_var_F77=no
14276       link_all_deplibs_F77=no
14277       ;;
14278
14279     hpux9*)
14280       if test "$GCC" = yes; then
14281         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'
14282       else
14283         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'
14284       fi
14285       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14286       hardcode_libdir_separator_F77=:
14287       hardcode_direct_F77=yes
14288
14289       # hardcode_minus_L: Not really in the search PATH,
14290       # but as the default location of the library.
14291       hardcode_minus_L_F77=yes
14292       export_dynamic_flag_spec_F77='${wl}-E'
14293       ;;
14294
14295     hpux10*)
14296       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14297         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14298       else
14299         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14300       fi
14301       if test "$with_gnu_ld" = no; then
14302         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14303         hardcode_libdir_separator_F77=:
14304
14305         hardcode_direct_F77=yes
14306         export_dynamic_flag_spec_F77='${wl}-E'
14307
14308         # hardcode_minus_L: Not really in the search PATH,
14309         # but as the default location of the library.
14310         hardcode_minus_L_F77=yes
14311       fi
14312       ;;
14313
14314     hpux11*)
14315       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14316         case $host_cpu in
14317         hppa*64*)
14318           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14319           ;;
14320         ia64*)
14321           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14322           ;;
14323         *)
14324           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14325           ;;
14326         esac
14327       else
14328         case $host_cpu in
14329         hppa*64*)
14330           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14331           ;;
14332         ia64*)
14333           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14334           ;;
14335         *)
14336           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14337           ;;
14338         esac
14339       fi
14340       if test "$with_gnu_ld" = no; then
14341         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14342         hardcode_libdir_separator_F77=:
14343
14344         case $host_cpu in
14345         hppa*64*|ia64*)
14346           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14347           hardcode_direct_F77=no
14348           hardcode_shlibpath_var_F77=no
14349           ;;
14350         *)
14351           hardcode_direct_F77=yes
14352           export_dynamic_flag_spec_F77='${wl}-E'
14353
14354           # hardcode_minus_L: Not really in the search PATH,
14355           # but as the default location of the library.
14356           hardcode_minus_L_F77=yes
14357           ;;
14358         esac
14359       fi
14360       ;;
14361
14362     irix5* | irix6* | nonstopux*)
14363       if test "$GCC" = yes; then
14364         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'
14365       else
14366         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'
14367         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14368       fi
14369       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14370       hardcode_libdir_separator_F77=:
14371       link_all_deplibs_F77=yes
14372       ;;
14373
14374     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14375       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14376         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14377       else
14378         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14379       fi
14380       hardcode_libdir_flag_spec_F77='-R$libdir'
14381       hardcode_direct_F77=yes
14382       hardcode_shlibpath_var_F77=no
14383       ;;
14384
14385     newsos6)
14386       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14387       hardcode_direct_F77=yes
14388       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14389       hardcode_libdir_separator_F77=:
14390       hardcode_shlibpath_var_F77=no
14391       ;;
14392
14393     openbsd*)
14394       hardcode_direct_F77=yes
14395       hardcode_shlibpath_var_F77=no
14396       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14397         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14398         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14399         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14400         export_dynamic_flag_spec_F77='${wl}-E'
14401       else
14402        case $host_os in
14403          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14404            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14405            hardcode_libdir_flag_spec_F77='-R$libdir'
14406            ;;
14407          *)
14408            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14409            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14410            ;;
14411        esac
14412       fi
14413       ;;
14414
14415     os2*)
14416       hardcode_libdir_flag_spec_F77='-L$libdir'
14417       hardcode_minus_L_F77=yes
14418       allow_undefined_flag_F77=unsupported
14419       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'
14420       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14421       ;;
14422
14423     osf3*)
14424       if test "$GCC" = yes; then
14425         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14426         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'
14427       else
14428         allow_undefined_flag_F77=' -expect_unresolved \*'
14429         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'
14430       fi
14431       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14432       hardcode_libdir_separator_F77=:
14433       ;;
14434
14435     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14436       if test "$GCC" = yes; then
14437         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14438         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'
14439         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14440       else
14441         allow_undefined_flag_F77=' -expect_unresolved \*'
14442         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'
14443         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~
14444         $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'
14445
14446         # Both c and cxx compiler support -rpath directly
14447         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14448       fi
14449       hardcode_libdir_separator_F77=:
14450       ;;
14451
14452     solaris*)
14453       no_undefined_flag_F77=' -z text'
14454       if test "$GCC" = yes; then
14455         wlarc='${wl}'
14456         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14457         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14458           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14459       else
14460         wlarc=''
14461         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14462         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14463         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14464       fi
14465       hardcode_libdir_flag_spec_F77='-R$libdir'
14466       hardcode_shlibpath_var_F77=no
14467       case $host_os in
14468       solaris2.[0-5] | solaris2.[0-5].*) ;;
14469       *)
14470         # The compiler driver will combine linker options so we
14471         # cannot just pass the convience library names through
14472         # without $wl, iff we do not link with $LD.
14473         # Luckily, gcc supports the same syntax we need for Sun Studio.
14474         # Supported since Solaris 2.6 (maybe 2.5.1?)
14475         case $wlarc in
14476         '')
14477           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14478         *)
14479           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' ;;
14480         esac ;;
14481       esac
14482       link_all_deplibs_F77=yes
14483       ;;
14484
14485     sunos4*)
14486       if test "x$host_vendor" = xsequent; then
14487         # Use $CC to link under sequent, because it throws in some extra .o
14488         # files that make .init and .fini sections work.
14489         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14490       else
14491         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14492       fi
14493       hardcode_libdir_flag_spec_F77='-L$libdir'
14494       hardcode_direct_F77=yes
14495       hardcode_minus_L_F77=yes
14496       hardcode_shlibpath_var_F77=no
14497       ;;
14498
14499     sysv4)
14500       case $host_vendor in
14501         sni)
14502           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14503           hardcode_direct_F77=yes # is this really true???
14504         ;;
14505         siemens)
14506           ## LD is ld it makes a PLAMLIB
14507           ## CC just makes a GrossModule.
14508           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14509           reload_cmds_F77='$CC -r -o $output$reload_objs'
14510           hardcode_direct_F77=no
14511         ;;
14512         motorola)
14513           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14514           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14515         ;;
14516       esac
14517       runpath_var='LD_RUN_PATH'
14518       hardcode_shlibpath_var_F77=no
14519       ;;
14520
14521     sysv4.3*)
14522       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523       hardcode_shlibpath_var_F77=no
14524       export_dynamic_flag_spec_F77='-Bexport'
14525       ;;
14526
14527     sysv4*MP*)
14528       if test -d /usr/nec; then
14529         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14530         hardcode_shlibpath_var_F77=no
14531         runpath_var=LD_RUN_PATH
14532         hardcode_runpath_var=yes
14533         ld_shlibs_F77=yes
14534       fi
14535       ;;
14536
14537     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14538       no_undefined_flag_F77='${wl}-z,text'
14539       archive_cmds_need_lc_F77=no
14540       hardcode_shlibpath_var_F77=no
14541       runpath_var='LD_RUN_PATH'
14542
14543       if test "$GCC" = yes; then
14544         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14545         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14546       else
14547         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14549       fi
14550       ;;
14551
14552     sysv5* | sco3.2v5* | sco5v6*)
14553       # Note: We can NOT use -z defs as we might desire, because we do not
14554       # link with -lc, and that would cause any symbols used from libc to
14555       # always be unresolved, which means just about no library would
14556       # ever link correctly.  If we're not using GNU ld we use -z text
14557       # though, which does catch some bad symbols but isn't as heavy-handed
14558       # as -z defs.
14559       no_undefined_flag_F77='${wl}-z,text'
14560       allow_undefined_flag_F77='${wl}-z,nodefs'
14561       archive_cmds_need_lc_F77=no
14562       hardcode_shlibpath_var_F77=no
14563       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14564       hardcode_libdir_separator_F77=':'
14565       link_all_deplibs_F77=yes
14566       export_dynamic_flag_spec_F77='${wl}-Bexport'
14567       runpath_var='LD_RUN_PATH'
14568
14569       if test "$GCC" = yes; then
14570         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14571         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14572       else
14573         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14574         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14575       fi
14576       ;;
14577
14578     uts4*)
14579       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14580       hardcode_libdir_flag_spec_F77='-L$libdir'
14581       hardcode_shlibpath_var_F77=no
14582       ;;
14583
14584     *)
14585       ld_shlibs_F77=no
14586       ;;
14587     esac
14588   fi
14589
14590 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14591 echo "${ECHO_T}$ld_shlibs_F77" >&6
14592 test "$ld_shlibs_F77" = no && can_build_shared=no
14593
14594 #
14595 # Do we need to explicitly link libc?
14596 #
14597 case "x$archive_cmds_need_lc_F77" in
14598 x|xyes)
14599   # Assume -lc should be added
14600   archive_cmds_need_lc_F77=yes
14601
14602   if test "$enable_shared" = yes && test "$GCC" = yes; then
14603     case $archive_cmds_F77 in
14604     *'~'*)
14605       # FIXME: we may have to deal with multi-command sequences.
14606       ;;
14607     '$CC '*)
14608       # Test whether the compiler implicitly links with -lc since on some
14609       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14610       # to ld, don't add -lc before -lgcc.
14611       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14612 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14613       $rm conftest*
14614       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14615
14616       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14617   (eval $ac_compile) 2>&5
14618   ac_status=$?
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); } 2>conftest.err; then
14621         soname=conftest
14622         lib=conftest
14623         libobjs=conftest.$ac_objext
14624         deplibs=
14625         wl=$lt_prog_compiler_wl_F77
14626         pic_flag=$lt_prog_compiler_pic_F77
14627         compiler_flags=-v
14628         linker_flags=-v
14629         verstring=
14630         output_objdir=.
14631         libname=conftest
14632         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14633         allow_undefined_flag_F77=
14634         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14635   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14636   ac_status=$?
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); }
14639         then
14640           archive_cmds_need_lc_F77=no
14641         else
14642           archive_cmds_need_lc_F77=yes
14643         fi
14644         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14645       else
14646         cat conftest.err 1>&5
14647       fi
14648       $rm conftest*
14649       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14650 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14651       ;;
14652     esac
14653   fi
14654   ;;
14655 esac
14656
14657 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14658 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14659 library_names_spec=
14660 libname_spec='lib$name'
14661 soname_spec=
14662 shrext_cmds=".so"
14663 postinstall_cmds=
14664 postuninstall_cmds=
14665 finish_cmds=
14666 finish_eval=
14667 shlibpath_var=
14668 shlibpath_overrides_runpath=unknown
14669 version_type=none
14670 dynamic_linker="$host_os ld.so"
14671 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14672 if test "$GCC" = yes; then
14673   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14674   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14675     # if the path contains ";" then we assume it to be the separator
14676     # otherwise default to the standard path separator (i.e. ":") - it is
14677     # assumed that no part of a normal pathname contains ";" but that should
14678     # okay in the real world where ";" in dirpaths is itself problematic.
14679     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14680   else
14681     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14682   fi
14683 else
14684   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14685 fi
14686 need_lib_prefix=unknown
14687 hardcode_into_libs=no
14688
14689 # when you set need_version to no, make sure it does not cause -set_version
14690 # flags to be left without arguments
14691 need_version=unknown
14692
14693 case $host_os in
14694 aix3*)
14695   version_type=linux
14696   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14697   shlibpath_var=LIBPATH
14698
14699   # AIX 3 has no versioning support, so we append a major version to the name.
14700   soname_spec='${libname}${release}${shared_ext}$major'
14701   ;;
14702
14703 aix4* | aix5*)
14704   version_type=linux
14705   need_lib_prefix=no
14706   need_version=no
14707   hardcode_into_libs=yes
14708   if test "$host_cpu" = ia64; then
14709     # AIX 5 supports IA64
14710     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14711     shlibpath_var=LD_LIBRARY_PATH
14712   else
14713     # With GCC up to 2.95.x, collect2 would create an import file
14714     # for dependence libraries.  The import file would start with
14715     # the line `#! .'.  This would cause the generated library to
14716     # depend on `.', always an invalid library.  This was fixed in
14717     # development snapshots of GCC prior to 3.0.
14718     case $host_os in
14719       aix4 | aix4.[01] | aix4.[01].*)
14720       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14721            echo ' yes '
14722            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14723         :
14724       else
14725         can_build_shared=no
14726       fi
14727       ;;
14728     esac
14729     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14730     # soname into executable. Probably we can add versioning support to
14731     # collect2, so additional links can be useful in future.
14732     if test "$aix_use_runtimelinking" = yes; then
14733       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14734       # instead of lib<name>.a to let people know that these are not
14735       # typical AIX shared libraries.
14736       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14737     else
14738       # We preserve .a as extension for shared libraries through AIX4.2
14739       # and later when we are not doing run time linking.
14740       library_names_spec='${libname}${release}.a $libname.a'
14741       soname_spec='${libname}${release}${shared_ext}$major'
14742     fi
14743     shlibpath_var=LIBPATH
14744   fi
14745   ;;
14746
14747 amigaos*)
14748   library_names_spec='$libname.ixlibrary $libname.a'
14749   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14750   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'
14751   ;;
14752
14753 beos*)
14754   library_names_spec='${libname}${shared_ext}'
14755   dynamic_linker="$host_os ld.so"
14756   shlibpath_var=LIBRARY_PATH
14757   ;;
14758
14759 bsdi[45]*)
14760   version_type=linux
14761   need_version=no
14762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14763   soname_spec='${libname}${release}${shared_ext}$major'
14764   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14765   shlibpath_var=LD_LIBRARY_PATH
14766   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14767   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14768   # the default ld.so.conf also contains /usr/contrib/lib and
14769   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14770   # libtool to hard-code these into programs
14771   ;;
14772
14773 cygwin* | mingw* | pw32*)
14774   version_type=windows
14775   shrext_cmds=".dll"
14776   need_version=no
14777   need_lib_prefix=no
14778
14779   case $GCC,$host_os in
14780   yes,cygwin* | yes,mingw* | yes,pw32*)
14781     library_names_spec='$libname.dll.a'
14782     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14783     postinstall_cmds='base_file=`basename \${file}`~
14784       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14785       dldir=$destdir/`dirname \$dlpath`~
14786       test -d \$dldir || mkdir -p \$dldir~
14787       $install_prog $dir/$dlname \$dldir/$dlname~
14788       chmod a+x \$dldir/$dlname'
14789     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14790       dlpath=$dir/\$dldll~
14791        $rm \$dlpath'
14792     shlibpath_overrides_runpath=yes
14793
14794     case $host_os in
14795     cygwin*)
14796       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14797       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14798       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14799       ;;
14800     mingw*)
14801       # MinGW DLLs use traditional 'lib' prefix
14802       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14803       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14804       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14805         # It is most probably a Windows format PATH printed by
14806         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14807         # path with ; separators, and with drive letters. We can handle the
14808         # drive letters (cygwin fileutils understands them), so leave them,
14809         # especially as we might pass files found there to a mingw objdump,
14810         # which wouldn't understand a cygwinified path. Ahh.
14811         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14812       else
14813         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14814       fi
14815       ;;
14816     pw32*)
14817       # pw32 DLLs use 'pw' prefix rather than 'lib'
14818       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14819       ;;
14820     esac
14821     ;;
14822
14823   *)
14824     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14825     ;;
14826   esac
14827   dynamic_linker='Win32 ld.exe'
14828   # FIXME: first we should search . and the directory the executable is in
14829   shlibpath_var=PATH
14830   ;;
14831
14832 darwin* | rhapsody*)
14833   dynamic_linker="$host_os dyld"
14834   version_type=darwin
14835   need_lib_prefix=no
14836   need_version=no
14837   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14838   soname_spec='${libname}${release}${major}$shared_ext'
14839   shlibpath_overrides_runpath=yes
14840   shlibpath_var=DYLD_LIBRARY_PATH
14841   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14842   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14843   if test "$GCC" = yes; then
14844     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"`
14845   else
14846     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14847   fi
14848   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14849   ;;
14850
14851 dgux*)
14852   version_type=linux
14853   need_lib_prefix=no
14854   need_version=no
14855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14856   soname_spec='${libname}${release}${shared_ext}$major'
14857   shlibpath_var=LD_LIBRARY_PATH
14858   ;;
14859
14860 freebsd1*)
14861   dynamic_linker=no
14862   ;;
14863
14864 kfreebsd*-gnu)
14865   version_type=linux
14866   need_lib_prefix=no
14867   need_version=no
14868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14869   soname_spec='${libname}${release}${shared_ext}$major'
14870   shlibpath_var=LD_LIBRARY_PATH
14871   shlibpath_overrides_runpath=no
14872   hardcode_into_libs=yes
14873   dynamic_linker='GNU ld.so'
14874   ;;
14875
14876 freebsd* | dragonfly*)
14877   # DragonFly does not have aout.  When/if they implement a new
14878   # versioning mechanism, adjust this.
14879   if test -x /usr/bin/objformat; then
14880     objformat=`/usr/bin/objformat`
14881   else
14882     case $host_os in
14883     freebsd[123]*) objformat=aout ;;
14884     *) objformat=elf ;;
14885     esac
14886   fi
14887   version_type=freebsd-$objformat
14888   case $version_type in
14889     freebsd-elf*)
14890       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14891       need_version=no
14892       need_lib_prefix=no
14893       ;;
14894     freebsd-*)
14895       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14896       need_version=yes
14897       ;;
14898   esac
14899   shlibpath_var=LD_LIBRARY_PATH
14900   case $host_os in
14901   freebsd2*)
14902     shlibpath_overrides_runpath=yes
14903     ;;
14904   freebsd3.[01]* | freebsdelf3.[01]*)
14905     shlibpath_overrides_runpath=yes
14906     hardcode_into_libs=yes
14907     ;;
14908   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14909   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14910     shlibpath_overrides_runpath=no
14911     hardcode_into_libs=yes
14912     ;;
14913   freebsd*) # from 4.6 on
14914     shlibpath_overrides_runpath=yes
14915     hardcode_into_libs=yes
14916     ;;
14917   esac
14918   ;;
14919
14920 gnu*)
14921   version_type=linux
14922   need_lib_prefix=no
14923   need_version=no
14924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14925   soname_spec='${libname}${release}${shared_ext}$major'
14926   shlibpath_var=LD_LIBRARY_PATH
14927   hardcode_into_libs=yes
14928   ;;
14929
14930 hpux9* | hpux10* | hpux11*)
14931   # Give a soname corresponding to the major version so that dld.sl refuses to
14932   # link against other versions.
14933   version_type=sunos
14934   need_lib_prefix=no
14935   need_version=no
14936   case $host_cpu in
14937   ia64*)
14938     shrext_cmds='.so'
14939     hardcode_into_libs=yes
14940     dynamic_linker="$host_os dld.so"
14941     shlibpath_var=LD_LIBRARY_PATH
14942     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14943     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944     soname_spec='${libname}${release}${shared_ext}$major'
14945     if test "X$HPUX_IA64_MODE" = X32; then
14946       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14947     else
14948       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14949     fi
14950     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14951     ;;
14952    hppa*64*)
14953      shrext_cmds='.sl'
14954      hardcode_into_libs=yes
14955      dynamic_linker="$host_os dld.sl"
14956      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14957      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14958      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959      soname_spec='${libname}${release}${shared_ext}$major'
14960      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14961      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14962      ;;
14963    *)
14964     shrext_cmds='.sl'
14965     dynamic_linker="$host_os dld.sl"
14966     shlibpath_var=SHLIB_PATH
14967     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969     soname_spec='${libname}${release}${shared_ext}$major'
14970     ;;
14971   esac
14972   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14973   postinstall_cmds='chmod 555 $lib'
14974   ;;
14975
14976 interix3*)
14977   version_type=linux
14978   need_lib_prefix=no
14979   need_version=no
14980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14981   soname_spec='${libname}${release}${shared_ext}$major'
14982   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14983   shlibpath_var=LD_LIBRARY_PATH
14984   shlibpath_overrides_runpath=no
14985   hardcode_into_libs=yes
14986   ;;
14987
14988 irix5* | irix6* | nonstopux*)
14989   case $host_os in
14990     nonstopux*) version_type=nonstopux ;;
14991     *)
14992         if test "$lt_cv_prog_gnu_ld" = yes; then
14993                 version_type=linux
14994         else
14995                 version_type=irix
14996         fi ;;
14997   esac
14998   need_lib_prefix=no
14999   need_version=no
15000   soname_spec='${libname}${release}${shared_ext}$major'
15001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15002   case $host_os in
15003   irix5* | nonstopux*)
15004     libsuff= shlibsuff=
15005     ;;
15006   *)
15007     case $LD in # libtool.m4 will add one of these switches to LD
15008     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15009       libsuff= shlibsuff= libmagic=32-bit;;
15010     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15011       libsuff=32 shlibsuff=N32 libmagic=N32;;
15012     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15013       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15014     *) libsuff= shlibsuff= libmagic=never-match;;
15015     esac
15016     ;;
15017   esac
15018   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15019   shlibpath_overrides_runpath=no
15020   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15021   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15022   hardcode_into_libs=yes
15023   ;;
15024
15025 # No shared lib support for Linux oldld, aout, or coff.
15026 linux*oldld* | linux*aout* | linux*coff*)
15027   dynamic_linker=no
15028   ;;
15029
15030 # This must be Linux ELF.
15031 linux*)
15032   version_type=linux
15033   need_lib_prefix=no
15034   need_version=no
15035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15036   soname_spec='${libname}${release}${shared_ext}$major'
15037   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15038   shlibpath_var=LD_LIBRARY_PATH
15039   shlibpath_overrides_runpath=no
15040   # This implies no fast_install, which is unacceptable.
15041   # Some rework will be needed to allow for fast_install
15042   # before this can be enabled.
15043   hardcode_into_libs=yes
15044
15045   # Append ld.so.conf contents to the search path
15046   if test -f /etc/ld.so.conf; then
15047     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' ' '`
15048     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15049   fi
15050
15051   # We used to test for /lib/ld.so.1 and disable shared libraries on
15052   # powerpc, because MkLinux only supported shared libraries with the
15053   # GNU dynamic linker.  Since this was broken with cross compilers,
15054   # most powerpc-linux boxes support dynamic linking these days and
15055   # people can always --disable-shared, the test was removed, and we
15056   # assume the GNU/Linux dynamic linker is in use.
15057   dynamic_linker='GNU/Linux ld.so'
15058   ;;
15059
15060 netbsdelf*-gnu)
15061   version_type=linux
15062   need_lib_prefix=no
15063   need_version=no
15064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15065   soname_spec='${libname}${release}${shared_ext}$major'
15066   shlibpath_var=LD_LIBRARY_PATH
15067   shlibpath_overrides_runpath=no
15068   hardcode_into_libs=yes
15069   dynamic_linker='NetBSD ld.elf_so'
15070   ;;
15071
15072 knetbsd*-gnu)
15073   version_type=linux
15074   need_lib_prefix=no
15075   need_version=no
15076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15077   soname_spec='${libname}${release}${shared_ext}$major'
15078   shlibpath_var=LD_LIBRARY_PATH
15079   shlibpath_overrides_runpath=no
15080   hardcode_into_libs=yes
15081   dynamic_linker='GNU ld.so'
15082   ;;
15083
15084 netbsd*)
15085   version_type=sunos
15086   need_lib_prefix=no
15087   need_version=no
15088   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15089     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15090     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15091     dynamic_linker='NetBSD (a.out) ld.so'
15092   else
15093     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15094     soname_spec='${libname}${release}${shared_ext}$major'
15095     dynamic_linker='NetBSD ld.elf_so'
15096   fi
15097   shlibpath_var=LD_LIBRARY_PATH
15098   shlibpath_overrides_runpath=yes
15099   hardcode_into_libs=yes
15100   ;;
15101
15102 newsos6)
15103   version_type=linux
15104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105   shlibpath_var=LD_LIBRARY_PATH
15106   shlibpath_overrides_runpath=yes
15107   ;;
15108
15109 nto-qnx*)
15110   version_type=linux
15111   need_lib_prefix=no
15112   need_version=no
15113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15114   soname_spec='${libname}${release}${shared_ext}$major'
15115   shlibpath_var=LD_LIBRARY_PATH
15116   shlibpath_overrides_runpath=yes
15117   ;;
15118
15119 openbsd*)
15120   version_type=sunos
15121   sys_lib_dlsearch_path_spec="/usr/lib"
15122   need_lib_prefix=no
15123   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15124   case $host_os in
15125     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15126     *)                         need_version=no  ;;
15127   esac
15128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15129   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15130   shlibpath_var=LD_LIBRARY_PATH
15131   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15132     case $host_os in
15133       openbsd2.[89] | openbsd2.[89].*)
15134         shlibpath_overrides_runpath=no
15135         ;;
15136       *)
15137         shlibpath_overrides_runpath=yes
15138         ;;
15139       esac
15140   else
15141     shlibpath_overrides_runpath=yes
15142   fi
15143   ;;
15144
15145 os2*)
15146   libname_spec='$name'
15147   shrext_cmds=".dll"
15148   need_lib_prefix=no
15149   library_names_spec='$libname${shared_ext} $libname.a'
15150   dynamic_linker='OS/2 ld.exe'
15151   shlibpath_var=LIBPATH
15152   ;;
15153
15154 osf3* | osf4* | osf5*)
15155   version_type=osf
15156   need_lib_prefix=no
15157   need_version=no
15158   soname_spec='${libname}${release}${shared_ext}$major'
15159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15160   shlibpath_var=LD_LIBRARY_PATH
15161   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15162   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15163   ;;
15164
15165 solaris*)
15166   version_type=linux
15167   need_lib_prefix=no
15168   need_version=no
15169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170   soname_spec='${libname}${release}${shared_ext}$major'
15171   shlibpath_var=LD_LIBRARY_PATH
15172   shlibpath_overrides_runpath=yes
15173   hardcode_into_libs=yes
15174   # ldd complains unless libraries are executable
15175   postinstall_cmds='chmod +x $lib'
15176   ;;
15177
15178 sunos4*)
15179   version_type=sunos
15180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15181   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15182   shlibpath_var=LD_LIBRARY_PATH
15183   shlibpath_overrides_runpath=yes
15184   if test "$with_gnu_ld" = yes; then
15185     need_lib_prefix=no
15186   fi
15187   need_version=yes
15188   ;;
15189
15190 sysv4 | sysv4.3*)
15191   version_type=linux
15192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15193   soname_spec='${libname}${release}${shared_ext}$major'
15194   shlibpath_var=LD_LIBRARY_PATH
15195   case $host_vendor in
15196     sni)
15197       shlibpath_overrides_runpath=no
15198       need_lib_prefix=no
15199       export_dynamic_flag_spec='${wl}-Blargedynsym'
15200       runpath_var=LD_RUN_PATH
15201       ;;
15202     siemens)
15203       need_lib_prefix=no
15204       ;;
15205     motorola)
15206       need_lib_prefix=no
15207       need_version=no
15208       shlibpath_overrides_runpath=no
15209       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15210       ;;
15211   esac
15212   ;;
15213
15214 sysv4*MP*)
15215   if test -d /usr/nec ;then
15216     version_type=linux
15217     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15218     soname_spec='$libname${shared_ext}.$major'
15219     shlibpath_var=LD_LIBRARY_PATH
15220   fi
15221   ;;
15222
15223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15224   version_type=freebsd-elf
15225   need_lib_prefix=no
15226   need_version=no
15227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15228   soname_spec='${libname}${release}${shared_ext}$major'
15229   shlibpath_var=LD_LIBRARY_PATH
15230   hardcode_into_libs=yes
15231   if test "$with_gnu_ld" = yes; then
15232     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15233     shlibpath_overrides_runpath=no
15234   else
15235     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15236     shlibpath_overrides_runpath=yes
15237     case $host_os in
15238       sco3.2v5*)
15239         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15240         ;;
15241     esac
15242   fi
15243   sys_lib_dlsearch_path_spec='/usr/lib'
15244   ;;
15245
15246 uts4*)
15247   version_type=linux
15248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249   soname_spec='${libname}${release}${shared_ext}$major'
15250   shlibpath_var=LD_LIBRARY_PATH
15251   ;;
15252
15253 *)
15254   dynamic_linker=no
15255   ;;
15256 esac
15257 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15258 echo "${ECHO_T}$dynamic_linker" >&6
15259 test "$dynamic_linker" = no && can_build_shared=no
15260
15261 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15262 if test "$GCC" = yes; then
15263   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15264 fi
15265
15266 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15267 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15268 hardcode_action_F77=
15269 if test -n "$hardcode_libdir_flag_spec_F77" || \
15270    test -n "$runpath_var_F77" || \
15271    test "X$hardcode_automatic_F77" = "Xyes" ; then
15272
15273   # We can hardcode non-existant directories.
15274   if test "$hardcode_direct_F77" != no &&
15275      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15276      # have to relink, otherwise we might link with an installed library
15277      # when we should be linking with a yet-to-be-installed one
15278      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15279      test "$hardcode_minus_L_F77" != no; then
15280     # Linking always hardcodes the temporary library directory.
15281     hardcode_action_F77=relink
15282   else
15283     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15284     hardcode_action_F77=immediate
15285   fi
15286 else
15287   # We cannot hardcode anything, or else we can only hardcode existing
15288   # directories.
15289   hardcode_action_F77=unsupported
15290 fi
15291 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15292 echo "${ECHO_T}$hardcode_action_F77" >&6
15293
15294 if test "$hardcode_action_F77" = relink; then
15295   # Fast installation is not supported
15296   enable_fast_install=no
15297 elif test "$shlibpath_overrides_runpath" = yes ||
15298      test "$enable_shared" = no; then
15299   # Fast installation is not necessary
15300   enable_fast_install=needless
15301 fi
15302
15303
15304 # The else clause should only fire when bootstrapping the
15305 # libtool distribution, otherwise you forgot to ship ltmain.sh
15306 # with your package, and you will get complaints that there are
15307 # no rules to generate ltmain.sh.
15308 if test -f "$ltmain"; then
15309   # See if we are running on zsh, and set the options which allow our commands through
15310   # without removal of \ escapes.
15311   if test -n "${ZSH_VERSION+set}" ; then
15312     setopt NO_GLOB_SUBST
15313   fi
15314   # Now quote all the things that may contain metacharacters while being
15315   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15316   # variables and quote the copies for generation of the libtool script.
15317   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15318     SED SHELL STRIP \
15319     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15320     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15321     deplibs_check_method reload_flag reload_cmds need_locks \
15322     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15323     lt_cv_sys_global_symbol_to_c_name_address \
15324     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15325     old_postinstall_cmds old_postuninstall_cmds \
15326     compiler_F77 \
15327     CC_F77 \
15328     LD_F77 \
15329     lt_prog_compiler_wl_F77 \
15330     lt_prog_compiler_pic_F77 \
15331     lt_prog_compiler_static_F77 \
15332     lt_prog_compiler_no_builtin_flag_F77 \
15333     export_dynamic_flag_spec_F77 \
15334     thread_safe_flag_spec_F77 \
15335     whole_archive_flag_spec_F77 \
15336     enable_shared_with_static_runtimes_F77 \
15337     old_archive_cmds_F77 \
15338     old_archive_from_new_cmds_F77 \
15339     predep_objects_F77 \
15340     postdep_objects_F77 \
15341     predeps_F77 \
15342     postdeps_F77 \
15343     compiler_lib_search_path_F77 \
15344     archive_cmds_F77 \
15345     archive_expsym_cmds_F77 \
15346     postinstall_cmds_F77 \
15347     postuninstall_cmds_F77 \
15348     old_archive_from_expsyms_cmds_F77 \
15349     allow_undefined_flag_F77 \
15350     no_undefined_flag_F77 \
15351     export_symbols_cmds_F77 \
15352     hardcode_libdir_flag_spec_F77 \
15353     hardcode_libdir_flag_spec_ld_F77 \
15354     hardcode_libdir_separator_F77 \
15355     hardcode_automatic_F77 \
15356     module_cmds_F77 \
15357     module_expsym_cmds_F77 \
15358     lt_cv_prog_compiler_c_o_F77 \
15359     exclude_expsyms_F77 \
15360     include_expsyms_F77; do
15361
15362     case $var in
15363     old_archive_cmds_F77 | \
15364     old_archive_from_new_cmds_F77 | \
15365     archive_cmds_F77 | \
15366     archive_expsym_cmds_F77 | \
15367     module_cmds_F77 | \
15368     module_expsym_cmds_F77 | \
15369     old_archive_from_expsyms_cmds_F77 | \
15370     export_symbols_cmds_F77 | \
15371     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15372     postinstall_cmds | postuninstall_cmds | \
15373     old_postinstall_cmds | old_postuninstall_cmds | \
15374     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15375       # Double-quote double-evaled strings.
15376       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15377       ;;
15378     *)
15379       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15380       ;;
15381     esac
15382   done
15383
15384   case $lt_echo in
15385   *'\$0 --fallback-echo"')
15386     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15387     ;;
15388   esac
15389
15390 cfgfile="$ofile"
15391
15392   cat <<__EOF__ >> "$cfgfile"
15393 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15394
15395 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15396
15397 # Shell to use when invoking shell scripts.
15398 SHELL=$lt_SHELL
15399
15400 # Whether or not to build shared libraries.
15401 build_libtool_libs=$enable_shared
15402
15403 # Whether or not to build static libraries.
15404 build_old_libs=$enable_static
15405
15406 # Whether or not to add -lc for building shared libraries.
15407 build_libtool_need_lc=$archive_cmds_need_lc_F77
15408
15409 # Whether or not to disallow shared libs when runtime libs are static
15410 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15411
15412 # Whether or not to optimize for fast installation.
15413 fast_install=$enable_fast_install
15414
15415 # The host system.
15416 host_alias=$host_alias
15417 host=$host
15418 host_os=$host_os
15419
15420 # The build system.
15421 build_alias=$build_alias
15422 build=$build
15423 build_os=$build_os
15424
15425 # An echo program that does not interpret backslashes.
15426 echo=$lt_echo
15427
15428 # The archiver.
15429 AR=$lt_AR
15430 AR_FLAGS=$lt_AR_FLAGS
15431
15432 # A C compiler.
15433 LTCC=$lt_LTCC
15434
15435 # LTCC compiler flags.
15436 LTCFLAGS=$lt_LTCFLAGS
15437
15438 # A language-specific compiler.
15439 CC=$lt_compiler_F77
15440
15441 # Is the compiler the GNU C compiler?
15442 with_gcc=$GCC_F77
15443
15444 # An ERE matcher.
15445 EGREP=$lt_EGREP
15446
15447 # The linker used to build libraries.
15448 LD=$lt_LD_F77
15449
15450 # Whether we need hard or soft links.
15451 LN_S=$lt_LN_S
15452
15453 # A BSD-compatible nm program.
15454 NM=$lt_NM
15455
15456 # A symbol stripping program
15457 STRIP=$lt_STRIP
15458
15459 # Used to examine libraries when file_magic_cmd begins "file"
15460 MAGIC_CMD=$MAGIC_CMD
15461
15462 # Used on cygwin: DLL creation program.
15463 DLLTOOL="$DLLTOOL"
15464
15465 # Used on cygwin: object dumper.
15466 OBJDUMP="$OBJDUMP"
15467
15468 # Used on cygwin: assembler.
15469 AS="$AS"
15470
15471 # The name of the directory that contains temporary libtool files.
15472 objdir=$objdir
15473
15474 # How to create reloadable object files.
15475 reload_flag=$lt_reload_flag
15476 reload_cmds=$lt_reload_cmds
15477
15478 # How to pass a linker flag through the compiler.
15479 wl=$lt_lt_prog_compiler_wl_F77
15480
15481 # Object file suffix (normally "o").
15482 objext="$ac_objext"
15483
15484 # Old archive suffix (normally "a").
15485 libext="$libext"
15486
15487 # Shared library suffix (normally ".so").
15488 shrext_cmds='$shrext_cmds'
15489
15490 # Executable file suffix (normally "").
15491 exeext="$exeext"
15492
15493 # Additional compiler flags for building library objects.
15494 pic_flag=$lt_lt_prog_compiler_pic_F77
15495 pic_mode=$pic_mode
15496
15497 # What is the maximum length of a command?
15498 max_cmd_len=$lt_cv_sys_max_cmd_len
15499
15500 # Does compiler simultaneously support -c and -o options?
15501 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15502
15503 # Must we lock files when doing compilation?
15504 need_locks=$lt_need_locks
15505
15506 # Do we need the lib prefix for modules?
15507 need_lib_prefix=$need_lib_prefix
15508
15509 # Do we need a version for libraries?
15510 need_version=$need_version
15511
15512 # Whether dlopen is supported.
15513 dlopen_support=$enable_dlopen
15514
15515 # Whether dlopen of programs is supported.
15516 dlopen_self=$enable_dlopen_self
15517
15518 # Whether dlopen of statically linked programs is supported.
15519 dlopen_self_static=$enable_dlopen_self_static
15520
15521 # Compiler flag to prevent dynamic linking.
15522 link_static_flag=$lt_lt_prog_compiler_static_F77
15523
15524 # Compiler flag to turn off builtin functions.
15525 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15526
15527 # Compiler flag to allow reflexive dlopens.
15528 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15529
15530 # Compiler flag to generate shared objects directly from archives.
15531 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15532
15533 # Compiler flag to generate thread-safe objects.
15534 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15535
15536 # Library versioning type.
15537 version_type=$version_type
15538
15539 # Format of library name prefix.
15540 libname_spec=$lt_libname_spec
15541
15542 # List of archive names.  First name is the real one, the rest are links.
15543 # The last name is the one that the linker finds with -lNAME.
15544 library_names_spec=$lt_library_names_spec
15545
15546 # The coded name of the library, if different from the real name.
15547 soname_spec=$lt_soname_spec
15548
15549 # Commands used to build and install an old-style archive.
15550 RANLIB=$lt_RANLIB
15551 old_archive_cmds=$lt_old_archive_cmds_F77
15552 old_postinstall_cmds=$lt_old_postinstall_cmds
15553 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15554
15555 # Create an old-style archive from a shared archive.
15556 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15557
15558 # Create a temporary old-style archive to link instead of a shared archive.
15559 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15560
15561 # Commands used to build and install a shared archive.
15562 archive_cmds=$lt_archive_cmds_F77
15563 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15564 postinstall_cmds=$lt_postinstall_cmds
15565 postuninstall_cmds=$lt_postuninstall_cmds
15566
15567 # Commands used to build a loadable module (assumed same as above if empty)
15568 module_cmds=$lt_module_cmds_F77
15569 module_expsym_cmds=$lt_module_expsym_cmds_F77
15570
15571 # Commands to strip libraries.
15572 old_striplib=$lt_old_striplib
15573 striplib=$lt_striplib
15574
15575 # Dependencies to place before the objects being linked to create a
15576 # shared library.
15577 predep_objects=$lt_predep_objects_F77
15578
15579 # Dependencies to place after the objects being linked to create a
15580 # shared library.
15581 postdep_objects=$lt_postdep_objects_F77
15582
15583 # Dependencies to place before the objects being linked to create a
15584 # shared library.
15585 predeps=$lt_predeps_F77
15586
15587 # Dependencies to place after the objects being linked to create a
15588 # shared library.
15589 postdeps=$lt_postdeps_F77
15590
15591 # The library search path used internally by the compiler when linking
15592 # a shared library.
15593 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15594
15595 # Method to check whether dependent libraries are shared objects.
15596 deplibs_check_method=$lt_deplibs_check_method
15597
15598 # Command to use when deplibs_check_method == file_magic.
15599 file_magic_cmd=$lt_file_magic_cmd
15600
15601 # Flag that allows shared libraries with undefined symbols to be built.
15602 allow_undefined_flag=$lt_allow_undefined_flag_F77
15603
15604 # Flag that forces no undefined symbols.
15605 no_undefined_flag=$lt_no_undefined_flag_F77
15606
15607 # Commands used to finish a libtool library installation in a directory.
15608 finish_cmds=$lt_finish_cmds
15609
15610 # Same as above, but a single script fragment to be evaled but not shown.
15611 finish_eval=$lt_finish_eval
15612
15613 # Take the output of nm and produce a listing of raw symbols and C names.
15614 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15615
15616 # Transform the output of nm in a proper C declaration
15617 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15618
15619 # Transform the output of nm in a C name address pair
15620 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15621
15622 # This is the shared library runtime path variable.
15623 runpath_var=$runpath_var
15624
15625 # This is the shared library path variable.
15626 shlibpath_var=$shlibpath_var
15627
15628 # Is shlibpath searched before the hard-coded library search path?
15629 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15630
15631 # How to hardcode a shared library path into an executable.
15632 hardcode_action=$hardcode_action_F77
15633
15634 # Whether we should hardcode library paths into libraries.
15635 hardcode_into_libs=$hardcode_into_libs
15636
15637 # Flag to hardcode \$libdir into a binary during linking.
15638 # This must work even if \$libdir does not exist.
15639 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15640
15641 # If ld is used when linking, flag to hardcode \$libdir into
15642 # a binary during linking. This must work even if \$libdir does
15643 # not exist.
15644 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15645
15646 # Whether we need a single -rpath flag with a separated argument.
15647 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15648
15649 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15650 # resulting binary.
15651 hardcode_direct=$hardcode_direct_F77
15652
15653 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15654 # resulting binary.
15655 hardcode_minus_L=$hardcode_minus_L_F77
15656
15657 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15658 # the resulting binary.
15659 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15660
15661 # Set to yes if building a shared library automatically hardcodes DIR into the library
15662 # and all subsequent libraries and executables linked against it.
15663 hardcode_automatic=$hardcode_automatic_F77
15664
15665 # Variables whose values should be saved in libtool wrapper scripts and
15666 # restored at relink time.
15667 variables_saved_for_relink="$variables_saved_for_relink"
15668
15669 # Whether libtool must link a program against all its dependency libraries.
15670 link_all_deplibs=$link_all_deplibs_F77
15671
15672 # Compile-time system search path for libraries
15673 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15674
15675 # Run-time system search path for libraries
15676 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15677
15678 # Fix the shell variable \$srcfile for the compiler.
15679 fix_srcfile_path="$fix_srcfile_path_F77"
15680
15681 # Set to yes if exported symbols are required.
15682 always_export_symbols=$always_export_symbols_F77
15683
15684 # The commands to list exported symbols.
15685 export_symbols_cmds=$lt_export_symbols_cmds_F77
15686
15687 # The commands to extract the exported symbol list from a shared archive.
15688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15689
15690 # Symbols that should not be listed in the preloaded symbols.
15691 exclude_expsyms=$lt_exclude_expsyms_F77
15692
15693 # Symbols that must always be exported.
15694 include_expsyms=$lt_include_expsyms_F77
15695
15696 # ### END LIBTOOL TAG CONFIG: $tagname
15697
15698 __EOF__
15699
15700
15701 else
15702   # If there is no Makefile yet, we rely on a make rule to execute
15703   # `config.status --recheck' to rerun these tests and create the
15704   # libtool script then.
15705   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15706   if test -f "$ltmain_in"; then
15707     test -f Makefile && make "$ltmain"
15708   fi
15709 fi
15710
15711
15712 ac_ext=c
15713 ac_cpp='$CPP $CPPFLAGS'
15714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15717
15718 CC="$lt_save_CC"
15719
15720         else
15721           tagname=""
15722         fi
15723         ;;
15724
15725       GCJ)
15726         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15727
15728
15729
15730 # Source file extension for Java test sources.
15731 ac_ext=java
15732
15733 # Object file extension for compiled Java test sources.
15734 objext=o
15735 objext_GCJ=$objext
15736
15737 # Code to be used in simple compile tests
15738 lt_simple_compile_test_code="class foo {}\n"
15739
15740 # Code to be used in simple link tests
15741 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15742
15743 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15744
15745 # If no C compiler was specified, use CC.
15746 LTCC=${LTCC-"$CC"}
15747
15748 # If no C compiler flags were specified, use CFLAGS.
15749 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15750
15751 # Allow CC to be a program name with arguments.
15752 compiler=$CC
15753
15754
15755 # save warnings/boilerplate of simple test code
15756 ac_outfile=conftest.$ac_objext
15757 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15758 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15759 _lt_compiler_boilerplate=`cat conftest.err`
15760 $rm conftest*
15761
15762 ac_outfile=conftest.$ac_objext
15763 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15764 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15765 _lt_linker_boilerplate=`cat conftest.err`
15766 $rm conftest*
15767
15768
15769 # Allow CC to be a program name with arguments.
15770 lt_save_CC="$CC"
15771 CC=${GCJ-"gcj"}
15772 compiler=$CC
15773 compiler_GCJ=$CC
15774 for cc_temp in $compiler""; do
15775   case $cc_temp in
15776     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15777     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15778     \-*) ;;
15779     *) break;;
15780   esac
15781 done
15782 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15783
15784
15785 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15786 archive_cmds_need_lc_GCJ=no
15787
15788 old_archive_cmds_GCJ=$old_archive_cmds
15789
15790
15791 lt_prog_compiler_no_builtin_flag_GCJ=
15792
15793 if test "$GCC" = yes; then
15794   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15795
15796
15797 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15798 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15799 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15800   echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802   lt_cv_prog_compiler_rtti_exceptions=no
15803   ac_outfile=conftest.$ac_objext
15804    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15805    lt_compiler_flag="-fno-rtti -fno-exceptions"
15806    # Insert the option either (1) after the last *FLAGS variable, or
15807    # (2) before a word containing "conftest.", or (3) at the end.
15808    # Note that $ac_compile itself does not contain backslashes and begins
15809    # with a dollar sign (not a hyphen), so the echo should work correctly.
15810    # The option is referenced via a variable to avoid confusing sed.
15811    lt_compile=`echo "$ac_compile" | $SED \
15812    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15813    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15814    -e 's:$: $lt_compiler_flag:'`
15815    (eval echo "\"\$as_me:15815: $lt_compile\"" >&5)
15816    (eval "$lt_compile" 2>conftest.err)
15817    ac_status=$?
15818    cat conftest.err >&5
15819    echo "$as_me:15819: \$? = $ac_status" >&5
15820    if (exit $ac_status) && test -s "$ac_outfile"; then
15821      # The compiler can only warn and ignore the option if not recognized
15822      # So say no if there are warnings other than the usual output.
15823      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15824      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15825      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15826        lt_cv_prog_compiler_rtti_exceptions=yes
15827      fi
15828    fi
15829    $rm conftest*
15830
15831 fi
15832 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15833 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15834
15835 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15836     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15837 else
15838     :
15839 fi
15840
15841 fi
15842
15843 lt_prog_compiler_wl_GCJ=
15844 lt_prog_compiler_pic_GCJ=
15845 lt_prog_compiler_static_GCJ=
15846
15847 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15848 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15849
15850   if test "$GCC" = yes; then
15851     lt_prog_compiler_wl_GCJ='-Wl,'
15852     lt_prog_compiler_static_GCJ='-static'
15853
15854     case $host_os in
15855       aix*)
15856       # All AIX code is PIC.
15857       if test "$host_cpu" = ia64; then
15858         # AIX 5 now supports IA64 processor
15859         lt_prog_compiler_static_GCJ='-Bstatic'
15860       fi
15861       ;;
15862
15863     amigaos*)
15864       # FIXME: we need at least 68020 code to build shared libraries, but
15865       # adding the `-m68020' flag to GCC prevents building anything better,
15866       # like `-m68040'.
15867       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15868       ;;
15869
15870     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15871       # PIC is the default for these OSes.
15872       ;;
15873
15874     mingw* | pw32* | os2*)
15875       # This hack is so that the source file can tell whether it is being
15876       # built for inclusion in a dll (and should export symbols for example).
15877       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15878       ;;
15879
15880     darwin* | rhapsody*)
15881       # PIC is the default on this platform
15882       # Common symbols not allowed in MH_DYLIB files
15883       lt_prog_compiler_pic_GCJ='-fno-common'
15884       ;;
15885
15886     interix3*)
15887       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15888       # Instead, we relocate shared libraries at runtime.
15889       ;;
15890
15891     msdosdjgpp*)
15892       # Just because we use GCC doesn't mean we suddenly get shared libraries
15893       # on systems that don't support them.
15894       lt_prog_compiler_can_build_shared_GCJ=no
15895       enable_shared=no
15896       ;;
15897
15898     sysv4*MP*)
15899       if test -d /usr/nec; then
15900         lt_prog_compiler_pic_GCJ=-Kconform_pic
15901       fi
15902       ;;
15903
15904     hpux*)
15905       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15906       # not for PA HP-UX.
15907       case $host_cpu in
15908       hppa*64*|ia64*)
15909         # +Z the default
15910         ;;
15911       *)
15912         lt_prog_compiler_pic_GCJ='-fPIC'
15913         ;;
15914       esac
15915       ;;
15916
15917     *)
15918       lt_prog_compiler_pic_GCJ='-fPIC'
15919       ;;
15920     esac
15921   else
15922     # PORTME Check for flag to pass linker flags through the system compiler.
15923     case $host_os in
15924     aix*)
15925       lt_prog_compiler_wl_GCJ='-Wl,'
15926       if test "$host_cpu" = ia64; then
15927         # AIX 5 now supports IA64 processor
15928         lt_prog_compiler_static_GCJ='-Bstatic'
15929       else
15930         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15931       fi
15932       ;;
15933       darwin*)
15934         # PIC is the default on this platform
15935         # Common symbols not allowed in MH_DYLIB files
15936        case $cc_basename in
15937          xlc*)
15938          lt_prog_compiler_pic_GCJ='-qnocommon'
15939          lt_prog_compiler_wl_GCJ='-Wl,'
15940          ;;
15941        esac
15942        ;;
15943
15944     mingw* | pw32* | os2*)
15945       # This hack is so that the source file can tell whether it is being
15946       # built for inclusion in a dll (and should export symbols for example).
15947       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15948       ;;
15949
15950     hpux9* | hpux10* | hpux11*)
15951       lt_prog_compiler_wl_GCJ='-Wl,'
15952       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15953       # not for PA HP-UX.
15954       case $host_cpu in
15955       hppa*64*|ia64*)
15956         # +Z the default
15957         ;;
15958       *)
15959         lt_prog_compiler_pic_GCJ='+Z'
15960         ;;
15961       esac
15962       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15963       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15964       ;;
15965
15966     irix5* | irix6* | nonstopux*)
15967       lt_prog_compiler_wl_GCJ='-Wl,'
15968       # PIC (with -KPIC) is the default.
15969       lt_prog_compiler_static_GCJ='-non_shared'
15970       ;;
15971
15972     newsos6)
15973       lt_prog_compiler_pic_GCJ='-KPIC'
15974       lt_prog_compiler_static_GCJ='-Bstatic'
15975       ;;
15976
15977     linux*)
15978       case $cc_basename in
15979       icc* | ecc*)
15980         lt_prog_compiler_wl_GCJ='-Wl,'
15981         lt_prog_compiler_pic_GCJ='-KPIC'
15982         lt_prog_compiler_static_GCJ='-static'
15983         ;;
15984       pgcc* | pgf77* | pgf90* | pgf95*)
15985         # Portland Group compilers (*not* the Pentium gcc compiler,
15986         # which looks to be a dead project)
15987         lt_prog_compiler_wl_GCJ='-Wl,'
15988         lt_prog_compiler_pic_GCJ='-fpic'
15989         lt_prog_compiler_static_GCJ='-Bstatic'
15990         ;;
15991       ccc*)
15992         lt_prog_compiler_wl_GCJ='-Wl,'
15993         # All Alpha code is PIC.
15994         lt_prog_compiler_static_GCJ='-non_shared'
15995         ;;
15996       esac
15997       ;;
15998
15999     osf3* | osf4* | osf5*)
16000       lt_prog_compiler_wl_GCJ='-Wl,'
16001       # All OSF/1 code is PIC.
16002       lt_prog_compiler_static_GCJ='-non_shared'
16003       ;;
16004
16005     solaris*)
16006       lt_prog_compiler_pic_GCJ='-KPIC'
16007       lt_prog_compiler_static_GCJ='-Bstatic'
16008       case $cc_basename in
16009       f77* | f90* | f95*)
16010         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16011       *)
16012         lt_prog_compiler_wl_GCJ='-Wl,';;
16013       esac
16014       ;;
16015
16016     sunos4*)
16017       lt_prog_compiler_wl_GCJ='-Qoption ld '
16018       lt_prog_compiler_pic_GCJ='-PIC'
16019       lt_prog_compiler_static_GCJ='-Bstatic'
16020       ;;
16021
16022     sysv4 | sysv4.2uw2* | sysv4.3*)
16023       lt_prog_compiler_wl_GCJ='-Wl,'
16024       lt_prog_compiler_pic_GCJ='-KPIC'
16025       lt_prog_compiler_static_GCJ='-Bstatic'
16026       ;;
16027
16028     sysv4*MP*)
16029       if test -d /usr/nec ;then
16030         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16031         lt_prog_compiler_static_GCJ='-Bstatic'
16032       fi
16033       ;;
16034
16035     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16036       lt_prog_compiler_wl_GCJ='-Wl,'
16037       lt_prog_compiler_pic_GCJ='-KPIC'
16038       lt_prog_compiler_static_GCJ='-Bstatic'
16039       ;;
16040
16041     unicos*)
16042       lt_prog_compiler_wl_GCJ='-Wl,'
16043       lt_prog_compiler_can_build_shared_GCJ=no
16044       ;;
16045
16046     uts4*)
16047       lt_prog_compiler_pic_GCJ='-pic'
16048       lt_prog_compiler_static_GCJ='-Bstatic'
16049       ;;
16050
16051     *)
16052       lt_prog_compiler_can_build_shared_GCJ=no
16053       ;;
16054     esac
16055   fi
16056
16057 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16058 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16059
16060 #
16061 # Check to make sure the PIC flag actually works.
16062 #
16063 if test -n "$lt_prog_compiler_pic_GCJ"; then
16064
16065 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16066 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16067 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16068   echo $ECHO_N "(cached) $ECHO_C" >&6
16069 else
16070   lt_prog_compiler_pic_works_GCJ=no
16071   ac_outfile=conftest.$ac_objext
16072    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16073    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16074    # Insert the option either (1) after the last *FLAGS variable, or
16075    # (2) before a word containing "conftest.", or (3) at the end.
16076    # Note that $ac_compile itself does not contain backslashes and begins
16077    # with a dollar sign (not a hyphen), so the echo should work correctly.
16078    # The option is referenced via a variable to avoid confusing sed.
16079    lt_compile=`echo "$ac_compile" | $SED \
16080    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16081    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16082    -e 's:$: $lt_compiler_flag:'`
16083    (eval echo "\"\$as_me:16083: $lt_compile\"" >&5)
16084    (eval "$lt_compile" 2>conftest.err)
16085    ac_status=$?
16086    cat conftest.err >&5
16087    echo "$as_me:16087: \$? = $ac_status" >&5
16088    if (exit $ac_status) && test -s "$ac_outfile"; then
16089      # The compiler can only warn and ignore the option if not recognized
16090      # So say no if there are warnings other than the usual output.
16091      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16092      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16093      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16094        lt_prog_compiler_pic_works_GCJ=yes
16095      fi
16096    fi
16097    $rm conftest*
16098
16099 fi
16100 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16101 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16102
16103 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16104     case $lt_prog_compiler_pic_GCJ in
16105      "" | " "*) ;;
16106      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16107      esac
16108 else
16109     lt_prog_compiler_pic_GCJ=
16110      lt_prog_compiler_can_build_shared_GCJ=no
16111 fi
16112
16113 fi
16114 case $host_os in
16115   # For platforms which do not support PIC, -DPIC is meaningless:
16116   *djgpp*)
16117     lt_prog_compiler_pic_GCJ=
16118     ;;
16119   *)
16120     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16121     ;;
16122 esac
16123
16124 #
16125 # Check to make sure the static flag actually works.
16126 #
16127 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16128 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16129 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16130 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16131   echo $ECHO_N "(cached) $ECHO_C" >&6
16132 else
16133   lt_prog_compiler_static_works_GCJ=no
16134    save_LDFLAGS="$LDFLAGS"
16135    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16136    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16137    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16138      # The linker can only warn and ignore the option if not recognized
16139      # So say no if there are warnings
16140      if test -s conftest.err; then
16141        # Append any errors to the config.log.
16142        cat conftest.err 1>&5
16143        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16144        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16145        if diff conftest.exp conftest.er2 >/dev/null; then
16146          lt_prog_compiler_static_works_GCJ=yes
16147        fi
16148      else
16149        lt_prog_compiler_static_works_GCJ=yes
16150      fi
16151    fi
16152    $rm conftest*
16153    LDFLAGS="$save_LDFLAGS"
16154
16155 fi
16156 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16157 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16158
16159 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16160     :
16161 else
16162     lt_prog_compiler_static_GCJ=
16163 fi
16164
16165
16166 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16167 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16168 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16169   echo $ECHO_N "(cached) $ECHO_C" >&6
16170 else
16171   lt_cv_prog_compiler_c_o_GCJ=no
16172    $rm -r conftest 2>/dev/null
16173    mkdir conftest
16174    cd conftest
16175    mkdir out
16176    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16177
16178    lt_compiler_flag="-o out/conftest2.$ac_objext"
16179    # Insert the option either (1) after the last *FLAGS variable, or
16180    # (2) before a word containing "conftest.", or (3) at the end.
16181    # Note that $ac_compile itself does not contain backslashes and begins
16182    # with a dollar sign (not a hyphen), so the echo should work correctly.
16183    lt_compile=`echo "$ac_compile" | $SED \
16184    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16185    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16186    -e 's:$: $lt_compiler_flag:'`
16187    (eval echo "\"\$as_me:16187: $lt_compile\"" >&5)
16188    (eval "$lt_compile" 2>out/conftest.err)
16189    ac_status=$?
16190    cat out/conftest.err >&5
16191    echo "$as_me:16191: \$? = $ac_status" >&5
16192    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16193    then
16194      # The compiler can only warn and ignore the option if not recognized
16195      # So say no if there are warnings
16196      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16197      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16198      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16199        lt_cv_prog_compiler_c_o_GCJ=yes
16200      fi
16201    fi
16202    chmod u+w . 2>&5
16203    $rm conftest*
16204    # SGI C++ compiler will create directory out/ii_files/ for
16205    # template instantiation
16206    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16207    $rm out/* && rmdir out
16208    cd ..
16209    rmdir conftest
16210    $rm conftest*
16211
16212 fi
16213 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16214 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16215
16216
16217 hard_links="nottested"
16218 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16219   # do not overwrite the value of need_locks provided by the user
16220   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16221 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16222   hard_links=yes
16223   $rm conftest*
16224   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16225   touch conftest.a
16226   ln conftest.a conftest.b 2>&5 || hard_links=no
16227   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16228   echo "$as_me:$LINENO: result: $hard_links" >&5
16229 echo "${ECHO_T}$hard_links" >&6
16230   if test "$hard_links" = no; then
16231     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16232 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16233     need_locks=warn
16234   fi
16235 else
16236   need_locks=no
16237 fi
16238
16239 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16240 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16241
16242   runpath_var=
16243   allow_undefined_flag_GCJ=
16244   enable_shared_with_static_runtimes_GCJ=no
16245   archive_cmds_GCJ=
16246   archive_expsym_cmds_GCJ=
16247   old_archive_From_new_cmds_GCJ=
16248   old_archive_from_expsyms_cmds_GCJ=
16249   export_dynamic_flag_spec_GCJ=
16250   whole_archive_flag_spec_GCJ=
16251   thread_safe_flag_spec_GCJ=
16252   hardcode_libdir_flag_spec_GCJ=
16253   hardcode_libdir_flag_spec_ld_GCJ=
16254   hardcode_libdir_separator_GCJ=
16255   hardcode_direct_GCJ=no
16256   hardcode_minus_L_GCJ=no
16257   hardcode_shlibpath_var_GCJ=unsupported
16258   link_all_deplibs_GCJ=unknown
16259   hardcode_automatic_GCJ=no
16260   module_cmds_GCJ=
16261   module_expsym_cmds_GCJ=
16262   always_export_symbols_GCJ=no
16263   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16264   # include_expsyms should be a list of space-separated symbols to be *always*
16265   # included in the symbol list
16266   include_expsyms_GCJ=
16267   # exclude_expsyms can be an extended regexp of symbols to exclude
16268   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16269   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16270   # as well as any symbol that contains `d'.
16271   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16272   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16273   # platforms (ab)use it in PIC code, but their linkers get confused if
16274   # the symbol is explicitly referenced.  Since portable code cannot
16275   # rely on this symbol name, it's probably fine to never include it in
16276   # preloaded symbol tables.
16277   extract_expsyms_cmds=
16278   # Just being paranoid about ensuring that cc_basename is set.
16279   for cc_temp in $compiler""; do
16280   case $cc_temp in
16281     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16282     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16283     \-*) ;;
16284     *) break;;
16285   esac
16286 done
16287 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16288
16289   case $host_os in
16290   cygwin* | mingw* | pw32*)
16291     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16292     # When not using gcc, we currently assume that we are using
16293     # Microsoft Visual C++.
16294     if test "$GCC" != yes; then
16295       with_gnu_ld=no
16296     fi
16297     ;;
16298   interix*)
16299     # we just hope/assume this is gcc and not c89 (= MSVC++)
16300     with_gnu_ld=yes
16301     ;;
16302   openbsd*)
16303     with_gnu_ld=no
16304     ;;
16305   esac
16306
16307   ld_shlibs_GCJ=yes
16308   if test "$with_gnu_ld" = yes; then
16309     # If archive_cmds runs LD, not CC, wlarc should be empty
16310     wlarc='${wl}'
16311
16312     # Set some defaults for GNU ld with shared library support. These
16313     # are reset later if shared libraries are not supported. Putting them
16314     # here allows them to be overridden if necessary.
16315     runpath_var=LD_RUN_PATH
16316     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16317     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16318     # ancient GNU ld didn't support --whole-archive et. al.
16319     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16320         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16321       else
16322         whole_archive_flag_spec_GCJ=
16323     fi
16324     supports_anon_versioning=no
16325     case `$LD -v 2>/dev/null` in
16326       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16327       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16328       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16329       *\ 2.11.*) ;; # other 2.11 versions
16330       *) supports_anon_versioning=yes ;;
16331     esac
16332
16333     # See if GNU ld supports shared libraries.
16334     case $host_os in
16335     aix3* | aix4* | aix5*)
16336       # On AIX/PPC, the GNU linker is very broken
16337       if test "$host_cpu" != ia64; then
16338         ld_shlibs_GCJ=no
16339         cat <<EOF 1>&2
16340
16341 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16342 *** to be unable to reliably create shared libraries on AIX.
16343 *** Therefore, libtool is disabling shared libraries support.  If you
16344 *** really care for shared libraries, you may want to modify your PATH
16345 *** so that a non-GNU linker is found, and then restart.
16346
16347 EOF
16348       fi
16349       ;;
16350
16351     amigaos*)
16352       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)'
16353       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16354       hardcode_minus_L_GCJ=yes
16355
16356       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16357       # that the semantics of dynamic libraries on AmigaOS, at least up
16358       # to version 4, is to share data among multiple programs linked
16359       # with the same dynamic library.  Since this doesn't match the
16360       # behavior of shared libraries on other platforms, we can't use
16361       # them.
16362       ld_shlibs_GCJ=no
16363       ;;
16364
16365     beos*)
16366       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16367         allow_undefined_flag_GCJ=unsupported
16368         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16369         # support --undefined.  This deserves some investigation.  FIXME
16370         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16371       else
16372         ld_shlibs_GCJ=no
16373       fi
16374       ;;
16375
16376     cygwin* | mingw* | pw32*)
16377       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16378       # as there is no search path for DLLs.
16379       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16380       allow_undefined_flag_GCJ=unsupported
16381       always_export_symbols_GCJ=no
16382       enable_shared_with_static_runtimes_GCJ=yes
16383       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16384
16385       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16386         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16387         # If the export-symbols file already is a .def file (1st line
16388         # is EXPORTS), use it as is; otherwise, prepend...
16389         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16390           cp $export_symbols $output_objdir/$soname.def;
16391         else
16392           echo EXPORTS > $output_objdir/$soname.def;
16393           cat $export_symbols >> $output_objdir/$soname.def;
16394         fi~
16395         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16396       else
16397         ld_shlibs_GCJ=no
16398       fi
16399       ;;
16400
16401     interix3*)
16402       hardcode_direct_GCJ=no
16403       hardcode_shlibpath_var_GCJ=no
16404       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16405       export_dynamic_flag_spec_GCJ='${wl}-E'
16406       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16407       # Instead, shared libraries are loaded at an image base (0x10000000 by
16408       # default) and relocated if they conflict, which is a slow very memory
16409       # consuming and fragmenting process.  To avoid this, we pick a random,
16410       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16411       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16412       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'
16413       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'
16414       ;;
16415
16416     linux*)
16417       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16418         tmp_addflag=
16419         case $cc_basename,$host_cpu in
16420         pgcc*)                          # Portland Group C compiler
16421           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'
16422           tmp_addflag=' $pic_flag'
16423           ;;
16424         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16425           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'
16426           tmp_addflag=' $pic_flag -Mnomain' ;;
16427         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16428           tmp_addflag=' -i_dynamic' ;;
16429         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16430           tmp_addflag=' -i_dynamic -nofor_main' ;;
16431         ifc* | ifort*)                  # Intel Fortran compiler
16432           tmp_addflag=' -nofor_main' ;;
16433         esac
16434         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16435
16436         if test $supports_anon_versioning = yes; then
16437           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16438   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16439   $echo "local: *; };" >> $output_objdir/$libname.ver~
16440           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16441         fi
16442         link_all_deplibs_GCJ=no
16443       else
16444         ld_shlibs_GCJ=no
16445       fi
16446       ;;
16447
16448     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16449       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16450         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16451         wlarc=
16452       else
16453         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16454         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16455       fi
16456       ;;
16457
16458     solaris*)
16459       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16460         ld_shlibs_GCJ=no
16461         cat <<EOF 1>&2
16462
16463 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16464 *** create shared libraries on Solaris systems.  Therefore, libtool
16465 *** is disabling shared libraries support.  We urge you to upgrade GNU
16466 *** binutils to release 2.9.1 or newer.  Another option is to modify
16467 *** your PATH or compiler configuration so that the native linker is
16468 *** used, and then restart.
16469
16470 EOF
16471       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16472         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16473         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16474       else
16475         ld_shlibs_GCJ=no
16476       fi
16477       ;;
16478
16479     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16480       case `$LD -v 2>&1` in
16481         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16482         ld_shlibs_GCJ=no
16483         cat <<_LT_EOF 1>&2
16484
16485 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16486 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16487 *** is disabling shared libraries support.  We urge you to upgrade GNU
16488 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16489 *** your PATH or compiler configuration so that the native linker is
16490 *** used, and then restart.
16491
16492 _LT_EOF
16493         ;;
16494         *)
16495           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16496             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16497             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16498             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16499           else
16500             ld_shlibs_GCJ=no
16501           fi
16502         ;;
16503       esac
16504       ;;
16505
16506     sunos4*)
16507       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16508       wlarc=
16509       hardcode_direct_GCJ=yes
16510       hardcode_shlibpath_var_GCJ=no
16511       ;;
16512
16513     *)
16514       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16515         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16516         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16517       else
16518         ld_shlibs_GCJ=no
16519       fi
16520       ;;
16521     esac
16522
16523     if test "$ld_shlibs_GCJ" = no; then
16524       runpath_var=
16525       hardcode_libdir_flag_spec_GCJ=
16526       export_dynamic_flag_spec_GCJ=
16527       whole_archive_flag_spec_GCJ=
16528     fi
16529   else
16530     # PORTME fill in a description of your system's linker (not GNU ld)
16531     case $host_os in
16532     aix3*)
16533       allow_undefined_flag_GCJ=unsupported
16534       always_export_symbols_GCJ=yes
16535       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'
16536       # Note: this linker hardcodes the directories in LIBPATH if there
16537       # are no directories specified by -L.
16538       hardcode_minus_L_GCJ=yes
16539       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16540         # Neither direct hardcoding nor static linking is supported with a
16541         # broken collect2.
16542         hardcode_direct_GCJ=unsupported
16543       fi
16544       ;;
16545
16546     aix4* | aix5*)
16547       if test "$host_cpu" = ia64; then
16548         # On IA64, the linker does run time linking by default, so we don't
16549         # have to do anything special.
16550         aix_use_runtimelinking=no
16551         exp_sym_flag='-Bexport'
16552         no_entry_flag=""
16553       else
16554         # If we're using GNU nm, then we don't want the "-C" option.
16555         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16556         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16557           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'
16558         else
16559           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'
16560         fi
16561         aix_use_runtimelinking=no
16562
16563         # Test if we are trying to use run time linking or normal
16564         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16565         # need to do runtime linking.
16566         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16567           for ld_flag in $LDFLAGS; do
16568           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16569             aix_use_runtimelinking=yes
16570             break
16571           fi
16572           done
16573           ;;
16574         esac
16575
16576         exp_sym_flag='-bexport'
16577         no_entry_flag='-bnoentry'
16578       fi
16579
16580       # When large executables or shared objects are built, AIX ld can
16581       # have problems creating the table of contents.  If linking a library
16582       # or program results in "error TOC overflow" add -mminimal-toc to
16583       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16584       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16585
16586       archive_cmds_GCJ=''
16587       hardcode_direct_GCJ=yes
16588       hardcode_libdir_separator_GCJ=':'
16589       link_all_deplibs_GCJ=yes
16590
16591       if test "$GCC" = yes; then
16592         case $host_os in aix4.[012]|aix4.[012].*)
16593         # We only want to do this on AIX 4.2 and lower, the check
16594         # below for broken collect2 doesn't work under 4.3+
16595           collect2name=`${CC} -print-prog-name=collect2`
16596           if test -f "$collect2name" && \
16597            strings "$collect2name" | grep resolve_lib_name >/dev/null
16598           then
16599           # We have reworked collect2
16600           hardcode_direct_GCJ=yes
16601           else
16602           # We have old collect2
16603           hardcode_direct_GCJ=unsupported
16604           # It fails to find uninstalled libraries when the uninstalled
16605           # path is not listed in the libpath.  Setting hardcode_minus_L
16606           # to unsupported forces relinking
16607           hardcode_minus_L_GCJ=yes
16608           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16609           hardcode_libdir_separator_GCJ=
16610           fi
16611           ;;
16612         esac
16613         shared_flag='-shared'
16614         if test "$aix_use_runtimelinking" = yes; then
16615           shared_flag="$shared_flag "'${wl}-G'
16616         fi
16617       else
16618         # not using gcc
16619         if test "$host_cpu" = ia64; then
16620         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16621         # chokes on -Wl,-G. The following line is correct:
16622           shared_flag='-G'
16623         else
16624           if test "$aix_use_runtimelinking" = yes; then
16625             shared_flag='${wl}-G'
16626           else
16627             shared_flag='${wl}-bM:SRE'
16628           fi
16629         fi
16630       fi
16631
16632       # It seems that -bexpall does not export symbols beginning with
16633       # underscore (_), so it is better to generate a list of symbols to export.
16634       always_export_symbols_GCJ=yes
16635       if test "$aix_use_runtimelinking" = yes; then
16636         # Warning - without using the other runtime loading flags (-brtl),
16637         # -berok will link without error, but may produce a broken library.
16638         allow_undefined_flag_GCJ='-berok'
16639        # Determine the default libpath from the value encoded in an empty executable.
16640        cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646
16647 int
16648 main ()
16649 {
16650
16651   ;
16652   return 0;
16653 }
16654 _ACEOF
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16657   (eval $ac_link) 2>conftest.er1
16658   ac_status=$?
16659   grep -v '^ *+' conftest.er1 >conftest.err
16660   rm -f conftest.er1
16661   cat conftest.err >&5
16662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663   (exit $ac_status); } &&
16664          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666   (eval $ac_try) 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); }; } &&
16670          { ac_try='test -s conftest$ac_exeext'
16671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672   (eval $ac_try) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); }; }; then
16676
16677 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16678 }'`
16679 # Check for a 64-bit object if we didn't find anything.
16680 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; }
16681 }'`; fi
16682 else
16683   echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16685
16686 fi
16687 rm -f conftest.err conftest.$ac_objext \
16688       conftest$ac_exeext conftest.$ac_ext
16689 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16690
16691        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16692         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"
16693        else
16694         if test "$host_cpu" = ia64; then
16695           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16696           allow_undefined_flag_GCJ="-z nodefs"
16697           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"
16698         else
16699          # Determine the default libpath from the value encoded in an empty executable.
16700          cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h.  */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h.  */
16706
16707 int
16708 main ()
16709 {
16710
16711   ;
16712   return 0;
16713 }
16714 _ACEOF
16715 rm -f conftest.$ac_objext conftest$ac_exeext
16716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16717   (eval $ac_link) 2>conftest.er1
16718   ac_status=$?
16719   grep -v '^ *+' conftest.er1 >conftest.err
16720   rm -f conftest.er1
16721   cat conftest.err >&5
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); } &&
16724          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726   (eval $ac_try) 2>&5
16727   ac_status=$?
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); }; } &&
16730          { ac_try='test -s conftest$ac_exeext'
16731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732   (eval $ac_try) 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); }; }; then
16736
16737 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16738 }'`
16739 # Check for a 64-bit object if we didn't find anything.
16740 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; }
16741 }'`; fi
16742 else
16743   echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16745
16746 fi
16747 rm -f conftest.err conftest.$ac_objext \
16748       conftest$ac_exeext conftest.$ac_ext
16749 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16750
16751          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16752           # Warning - without using the other run time loading flags,
16753           # -berok will link without error, but may produce a broken library.
16754           no_undefined_flag_GCJ=' ${wl}-bernotok'
16755           allow_undefined_flag_GCJ=' ${wl}-berok'
16756           # Exported symbols can be pulled into shared objects from archives
16757           whole_archive_flag_spec_GCJ='$convenience'
16758           archive_cmds_need_lc_GCJ=yes
16759           # This is similar to how AIX traditionally builds its shared libraries.
16760           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'
16761         fi
16762       fi
16763       ;;
16764
16765     amigaos*)
16766       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)'
16767       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16768       hardcode_minus_L_GCJ=yes
16769       # see comment about different semantics on the GNU ld section
16770       ld_shlibs_GCJ=no
16771       ;;
16772
16773     bsdi[45]*)
16774       export_dynamic_flag_spec_GCJ=-rdynamic
16775       ;;
16776
16777     cygwin* | mingw* | pw32*)
16778       # When not using gcc, we currently assume that we are using
16779       # Microsoft Visual C++.
16780       # hardcode_libdir_flag_spec is actually meaningless, as there is
16781       # no search path for DLLs.
16782       hardcode_libdir_flag_spec_GCJ=' '
16783       allow_undefined_flag_GCJ=unsupported
16784       # Tell ltmain to make .lib files, not .a files.
16785       libext=lib
16786       # Tell ltmain to make .dll files, not .so files.
16787       shrext_cmds=".dll"
16788       # FIXME: Setting linknames here is a bad hack.
16789       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16790       # The linker will automatically build a .lib file if we build a DLL.
16791       old_archive_From_new_cmds_GCJ='true'
16792       # FIXME: Should let the user specify the lib program.
16793       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16794       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16795       enable_shared_with_static_runtimes_GCJ=yes
16796       ;;
16797
16798     darwin* | rhapsody*)
16799       case $host_os in
16800         rhapsody* | darwin1.[012])
16801          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16802          ;;
16803        *) # Darwin 1.3 on
16804          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16805            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16806          else
16807            case ${MACOSX_DEPLOYMENT_TARGET} in
16808              10.[012])
16809                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16810                ;;
16811              10.*)
16812                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16813                ;;
16814            esac
16815          fi
16816          ;;
16817       esac
16818       archive_cmds_need_lc_GCJ=no
16819       hardcode_direct_GCJ=no
16820       hardcode_automatic_GCJ=yes
16821       hardcode_shlibpath_var_GCJ=unsupported
16822       whole_archive_flag_spec_GCJ=''
16823       link_all_deplibs_GCJ=yes
16824     if test "$GCC" = yes ; then
16825         output_verbose_link_cmd='echo'
16826         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16827       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16828       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16829       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}'
16830       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}'
16831     else
16832       case $cc_basename in
16833         xlc*)
16834          output_verbose_link_cmd='echo'
16835          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16836          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16837           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16838          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}'
16839           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}'
16840           ;;
16841        *)
16842          ld_shlibs_GCJ=no
16843           ;;
16844       esac
16845     fi
16846       ;;
16847
16848     dgux*)
16849       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16850       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16851       hardcode_shlibpath_var_GCJ=no
16852       ;;
16853
16854     freebsd1*)
16855       ld_shlibs_GCJ=no
16856       ;;
16857
16858     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16859     # support.  Future versions do this automatically, but an explicit c++rt0.o
16860     # does not break anything, and helps significantly (at the cost of a little
16861     # extra space).
16862     freebsd2.2*)
16863       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16864       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16865       hardcode_direct_GCJ=yes
16866       hardcode_shlibpath_var_GCJ=no
16867       ;;
16868
16869     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16870     freebsd2*)
16871       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16872       hardcode_direct_GCJ=yes
16873       hardcode_minus_L_GCJ=yes
16874       hardcode_shlibpath_var_GCJ=no
16875       ;;
16876
16877     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16878     freebsd* | dragonfly*)
16879       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16880       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16881       hardcode_direct_GCJ=yes
16882       hardcode_shlibpath_var_GCJ=no
16883       ;;
16884
16885     # GNU/kFreeBSD uses gcc -shared to do shared libraries.
16886     kfreebsd*-gnu)
16887       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16888       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16889       hardcode_direct_GCJ=yes
16890       hardcode_shlibpath_var_GCJ=no
16891       link_all_deplibs_GCJ=no
16892       ;;
16893
16894     hpux9*)
16895       if test "$GCC" = yes; then
16896         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'
16897       else
16898         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'
16899       fi
16900       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16901       hardcode_libdir_separator_GCJ=:
16902       hardcode_direct_GCJ=yes
16903
16904       # hardcode_minus_L: Not really in the search PATH,
16905       # but as the default location of the library.
16906       hardcode_minus_L_GCJ=yes
16907       export_dynamic_flag_spec_GCJ='${wl}-E'
16908       ;;
16909
16910     hpux10*)
16911       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16912         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16913       else
16914         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16915       fi
16916       if test "$with_gnu_ld" = no; then
16917         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16918         hardcode_libdir_separator_GCJ=:
16919
16920         hardcode_direct_GCJ=yes
16921         export_dynamic_flag_spec_GCJ='${wl}-E'
16922
16923         # hardcode_minus_L: Not really in the search PATH,
16924         # but as the default location of the library.
16925         hardcode_minus_L_GCJ=yes
16926       fi
16927       ;;
16928
16929     hpux11*)
16930       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16931         case $host_cpu in
16932         hppa*64*)
16933           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16934           ;;
16935         ia64*)
16936           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16937           ;;
16938         *)
16939           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16940           ;;
16941         esac
16942       else
16943         case $host_cpu in
16944         hppa*64*)
16945           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16946           ;;
16947         ia64*)
16948           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16949           ;;
16950         *)
16951           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16952           ;;
16953         esac
16954       fi
16955       if test "$with_gnu_ld" = no; then
16956         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16957         hardcode_libdir_separator_GCJ=:
16958
16959         case $host_cpu in
16960         hppa*64*|ia64*)
16961           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16962           hardcode_direct_GCJ=no
16963           hardcode_shlibpath_var_GCJ=no
16964           ;;
16965         *)
16966           hardcode_direct_GCJ=yes
16967           export_dynamic_flag_spec_GCJ='${wl}-E'
16968
16969           # hardcode_minus_L: Not really in the search PATH,
16970           # but as the default location of the library.
16971           hardcode_minus_L_GCJ=yes
16972           ;;
16973         esac
16974       fi
16975       ;;
16976
16977     irix5* | irix6* | nonstopux*)
16978       if test "$GCC" = yes; then
16979         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'
16980       else
16981         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'
16982         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16983       fi
16984       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16985       hardcode_libdir_separator_GCJ=:
16986       link_all_deplibs_GCJ=yes
16987       ;;
16988
16989     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16990       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16991         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16992       else
16993         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16994       fi
16995       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16996       hardcode_direct_GCJ=yes
16997       hardcode_shlibpath_var_GCJ=no
16998       ;;
16999
17000     newsos6)
17001       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17002       hardcode_direct_GCJ=yes
17003       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17004       hardcode_libdir_separator_GCJ=:
17005       hardcode_shlibpath_var_GCJ=no
17006       ;;
17007
17008     openbsd*)
17009       hardcode_direct_GCJ=yes
17010       hardcode_shlibpath_var_GCJ=no
17011       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17012         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17013         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17014         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17015         export_dynamic_flag_spec_GCJ='${wl}-E'
17016       else
17017        case $host_os in
17018          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17019            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17020            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17021            ;;
17022          *)
17023            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17024            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17025            ;;
17026        esac
17027       fi
17028       ;;
17029
17030     os2*)
17031       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17032       hardcode_minus_L_GCJ=yes
17033       allow_undefined_flag_GCJ=unsupported
17034       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'
17035       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17036       ;;
17037
17038     osf3*)
17039       if test "$GCC" = yes; then
17040         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17041         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'
17042       else
17043         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17044         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'
17045       fi
17046       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17047       hardcode_libdir_separator_GCJ=:
17048       ;;
17049
17050     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17051       if test "$GCC" = yes; then
17052         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17053         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'
17054         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17055       else
17056         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17057         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'
17058         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~
17059         $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'
17060
17061         # Both c and cxx compiler support -rpath directly
17062         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17063       fi
17064       hardcode_libdir_separator_GCJ=:
17065       ;;
17066
17067     solaris*)
17068       no_undefined_flag_GCJ=' -z text'
17069       if test "$GCC" = yes; then
17070         wlarc='${wl}'
17071         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17072         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17073           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17074       else
17075         wlarc=''
17076         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17077         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17078         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17079       fi
17080       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17081       hardcode_shlibpath_var_GCJ=no
17082       case $host_os in
17083       solaris2.[0-5] | solaris2.[0-5].*) ;;
17084       *)
17085         # The compiler driver will combine linker options so we
17086         # cannot just pass the convience library names through
17087         # without $wl, iff we do not link with $LD.
17088         # Luckily, gcc supports the same syntax we need for Sun Studio.
17089         # Supported since Solaris 2.6 (maybe 2.5.1?)
17090         case $wlarc in
17091         '')
17092           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17093         *)
17094           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' ;;
17095         esac ;;
17096       esac
17097       link_all_deplibs_GCJ=yes
17098       ;;
17099
17100     sunos4*)
17101       if test "x$host_vendor" = xsequent; then
17102         # Use $CC to link under sequent, because it throws in some extra .o
17103         # files that make .init and .fini sections work.
17104         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17105       else
17106         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17107       fi
17108       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17109       hardcode_direct_GCJ=yes
17110       hardcode_minus_L_GCJ=yes
17111       hardcode_shlibpath_var_GCJ=no
17112       ;;
17113
17114     sysv4)
17115       case $host_vendor in
17116         sni)
17117           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17118           hardcode_direct_GCJ=yes # is this really true???
17119         ;;
17120         siemens)
17121           ## LD is ld it makes a PLAMLIB
17122           ## CC just makes a GrossModule.
17123           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17124           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17125           hardcode_direct_GCJ=no
17126         ;;
17127         motorola)
17128           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17129           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17130         ;;
17131       esac
17132       runpath_var='LD_RUN_PATH'
17133       hardcode_shlibpath_var_GCJ=no
17134       ;;
17135
17136     sysv4.3*)
17137       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17138       hardcode_shlibpath_var_GCJ=no
17139       export_dynamic_flag_spec_GCJ='-Bexport'
17140       ;;
17141
17142     sysv4*MP*)
17143       if test -d /usr/nec; then
17144         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17145         hardcode_shlibpath_var_GCJ=no
17146         runpath_var=LD_RUN_PATH
17147         hardcode_runpath_var=yes
17148         ld_shlibs_GCJ=yes
17149       fi
17150       ;;
17151
17152     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17153       no_undefined_flag_GCJ='${wl}-z,text'
17154       archive_cmds_need_lc_GCJ=no
17155       hardcode_shlibpath_var_GCJ=no
17156       runpath_var='LD_RUN_PATH'
17157
17158       if test "$GCC" = yes; then
17159         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17160         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17161       else
17162         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17163         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17164       fi
17165       ;;
17166
17167     sysv5* | sco3.2v5* | sco5v6*)
17168       # Note: We can NOT use -z defs as we might desire, because we do not
17169       # link with -lc, and that would cause any symbols used from libc to
17170       # always be unresolved, which means just about no library would
17171       # ever link correctly.  If we're not using GNU ld we use -z text
17172       # though, which does catch some bad symbols but isn't as heavy-handed
17173       # as -z defs.
17174       no_undefined_flag_GCJ='${wl}-z,text'
17175       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17176       archive_cmds_need_lc_GCJ=no
17177       hardcode_shlibpath_var_GCJ=no
17178       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17179       hardcode_libdir_separator_GCJ=':'
17180       link_all_deplibs_GCJ=yes
17181       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17182       runpath_var='LD_RUN_PATH'
17183
17184       if test "$GCC" = yes; then
17185         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17186         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17187       else
17188         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17189         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17190       fi
17191       ;;
17192
17193     uts4*)
17194       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17195       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17196       hardcode_shlibpath_var_GCJ=no
17197       ;;
17198
17199     *)
17200       ld_shlibs_GCJ=no
17201       ;;
17202     esac
17203   fi
17204
17205 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17206 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17207 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17208
17209 #
17210 # Do we need to explicitly link libc?
17211 #
17212 case "x$archive_cmds_need_lc_GCJ" in
17213 x|xyes)
17214   # Assume -lc should be added
17215   archive_cmds_need_lc_GCJ=yes
17216
17217   if test "$enable_shared" = yes && test "$GCC" = yes; then
17218     case $archive_cmds_GCJ in
17219     *'~'*)
17220       # FIXME: we may have to deal with multi-command sequences.
17221       ;;
17222     '$CC '*)
17223       # Test whether the compiler implicitly links with -lc since on some
17224       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17225       # to ld, don't add -lc before -lgcc.
17226       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17227 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17228       $rm conftest*
17229       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17230
17231       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17232   (eval $ac_compile) 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); } 2>conftest.err; then
17236         soname=conftest
17237         lib=conftest
17238         libobjs=conftest.$ac_objext
17239         deplibs=
17240         wl=$lt_prog_compiler_wl_GCJ
17241         pic_flag=$lt_prog_compiler_pic_GCJ
17242         compiler_flags=-v
17243         linker_flags=-v
17244         verstring=
17245         output_objdir=.
17246         libname=conftest
17247         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17248         allow_undefined_flag_GCJ=
17249         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17250   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17251   ac_status=$?
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); }
17254         then
17255           archive_cmds_need_lc_GCJ=no
17256         else
17257           archive_cmds_need_lc_GCJ=yes
17258         fi
17259         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17260       else
17261         cat conftest.err 1>&5
17262       fi
17263       $rm conftest*
17264       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17265 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17266       ;;
17267     esac
17268   fi
17269   ;;
17270 esac
17271
17272 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17273 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17274 library_names_spec=
17275 libname_spec='lib$name'
17276 soname_spec=
17277 shrext_cmds=".so"
17278 postinstall_cmds=
17279 postuninstall_cmds=
17280 finish_cmds=
17281 finish_eval=
17282 shlibpath_var=
17283 shlibpath_overrides_runpath=unknown
17284 version_type=none
17285 dynamic_linker="$host_os ld.so"
17286 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17287 if test "$GCC" = yes; then
17288   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17289   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17290     # if the path contains ";" then we assume it to be the separator
17291     # otherwise default to the standard path separator (i.e. ":") - it is
17292     # assumed that no part of a normal pathname contains ";" but that should
17293     # okay in the real world where ";" in dirpaths is itself problematic.
17294     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17295   else
17296     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17297   fi
17298 else
17299   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17300 fi
17301 need_lib_prefix=unknown
17302 hardcode_into_libs=no
17303
17304 # when you set need_version to no, make sure it does not cause -set_version
17305 # flags to be left without arguments
17306 need_version=unknown
17307
17308 case $host_os in
17309 aix3*)
17310   version_type=linux
17311   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17312   shlibpath_var=LIBPATH
17313
17314   # AIX 3 has no versioning support, so we append a major version to the name.
17315   soname_spec='${libname}${release}${shared_ext}$major'
17316   ;;
17317
17318 aix4* | aix5*)
17319   version_type=linux
17320   need_lib_prefix=no
17321   need_version=no
17322   hardcode_into_libs=yes
17323   if test "$host_cpu" = ia64; then
17324     # AIX 5 supports IA64
17325     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17326     shlibpath_var=LD_LIBRARY_PATH
17327   else
17328     # With GCC up to 2.95.x, collect2 would create an import file
17329     # for dependence libraries.  The import file would start with
17330     # the line `#! .'.  This would cause the generated library to
17331     # depend on `.', always an invalid library.  This was fixed in
17332     # development snapshots of GCC prior to 3.0.
17333     case $host_os in
17334       aix4 | aix4.[01] | aix4.[01].*)
17335       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17336            echo ' yes '
17337            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17338         :
17339       else
17340         can_build_shared=no
17341       fi
17342       ;;
17343     esac
17344     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17345     # soname into executable. Probably we can add versioning support to
17346     # collect2, so additional links can be useful in future.
17347     if test "$aix_use_runtimelinking" = yes; then
17348       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17349       # instead of lib<name>.a to let people know that these are not
17350       # typical AIX shared libraries.
17351       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352     else
17353       # We preserve .a as extension for shared libraries through AIX4.2
17354       # and later when we are not doing run time linking.
17355       library_names_spec='${libname}${release}.a $libname.a'
17356       soname_spec='${libname}${release}${shared_ext}$major'
17357     fi
17358     shlibpath_var=LIBPATH
17359   fi
17360   ;;
17361
17362 amigaos*)
17363   library_names_spec='$libname.ixlibrary $libname.a'
17364   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17365   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'
17366   ;;
17367
17368 beos*)
17369   library_names_spec='${libname}${shared_ext}'
17370   dynamic_linker="$host_os ld.so"
17371   shlibpath_var=LIBRARY_PATH
17372   ;;
17373
17374 bsdi[45]*)
17375   version_type=linux
17376   need_version=no
17377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378   soname_spec='${libname}${release}${shared_ext}$major'
17379   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17380   shlibpath_var=LD_LIBRARY_PATH
17381   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17382   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17383   # the default ld.so.conf also contains /usr/contrib/lib and
17384   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17385   # libtool to hard-code these into programs
17386   ;;
17387
17388 cygwin* | mingw* | pw32*)
17389   version_type=windows
17390   shrext_cmds=".dll"
17391   need_version=no
17392   need_lib_prefix=no
17393
17394   case $GCC,$host_os in
17395   yes,cygwin* | yes,mingw* | yes,pw32*)
17396     library_names_spec='$libname.dll.a'
17397     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17398     postinstall_cmds='base_file=`basename \${file}`~
17399       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17400       dldir=$destdir/`dirname \$dlpath`~
17401       test -d \$dldir || mkdir -p \$dldir~
17402       $install_prog $dir/$dlname \$dldir/$dlname~
17403       chmod a+x \$dldir/$dlname'
17404     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17405       dlpath=$dir/\$dldll~
17406        $rm \$dlpath'
17407     shlibpath_overrides_runpath=yes
17408
17409     case $host_os in
17410     cygwin*)
17411       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17412       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17413       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17414       ;;
17415     mingw*)
17416       # MinGW DLLs use traditional 'lib' prefix
17417       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17418       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17419       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17420         # It is most probably a Windows format PATH printed by
17421         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17422         # path with ; separators, and with drive letters. We can handle the
17423         # drive letters (cygwin fileutils understands them), so leave them,
17424         # especially as we might pass files found there to a mingw objdump,
17425         # which wouldn't understand a cygwinified path. Ahh.
17426         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17427       else
17428         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17429       fi
17430       ;;
17431     pw32*)
17432       # pw32 DLLs use 'pw' prefix rather than 'lib'
17433       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17434       ;;
17435     esac
17436     ;;
17437
17438   *)
17439     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17440     ;;
17441   esac
17442   dynamic_linker='Win32 ld.exe'
17443   # FIXME: first we should search . and the directory the executable is in
17444   shlibpath_var=PATH
17445   ;;
17446
17447 darwin* | rhapsody*)
17448   dynamic_linker="$host_os dyld"
17449   version_type=darwin
17450   need_lib_prefix=no
17451   need_version=no
17452   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17453   soname_spec='${libname}${release}${major}$shared_ext'
17454   shlibpath_overrides_runpath=yes
17455   shlibpath_var=DYLD_LIBRARY_PATH
17456   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17457   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17458   if test "$GCC" = yes; then
17459     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"`
17460   else
17461     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17462   fi
17463   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17464   ;;
17465
17466 dgux*)
17467   version_type=linux
17468   need_lib_prefix=no
17469   need_version=no
17470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17471   soname_spec='${libname}${release}${shared_ext}$major'
17472   shlibpath_var=LD_LIBRARY_PATH
17473   ;;
17474
17475 freebsd1*)
17476   dynamic_linker=no
17477   ;;
17478
17479 kfreebsd*-gnu)
17480   version_type=linux
17481   need_lib_prefix=no
17482   need_version=no
17483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17484   soname_spec='${libname}${release}${shared_ext}$major'
17485   shlibpath_var=LD_LIBRARY_PATH
17486   shlibpath_overrides_runpath=no
17487   hardcode_into_libs=yes
17488   dynamic_linker='GNU ld.so'
17489   ;;
17490
17491 freebsd* | dragonfly*)
17492   # DragonFly does not have aout.  When/if they implement a new
17493   # versioning mechanism, adjust this.
17494   if test -x /usr/bin/objformat; then
17495     objformat=`/usr/bin/objformat`
17496   else
17497     case $host_os in
17498     freebsd[123]*) objformat=aout ;;
17499     *) objformat=elf ;;
17500     esac
17501   fi
17502   version_type=freebsd-$objformat
17503   case $version_type in
17504     freebsd-elf*)
17505       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17506       need_version=no
17507       need_lib_prefix=no
17508       ;;
17509     freebsd-*)
17510       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17511       need_version=yes
17512       ;;
17513   esac
17514   shlibpath_var=LD_LIBRARY_PATH
17515   case $host_os in
17516   freebsd2*)
17517     shlibpath_overrides_runpath=yes
17518     ;;
17519   freebsd3.[01]* | freebsdelf3.[01]*)
17520     shlibpath_overrides_runpath=yes
17521     hardcode_into_libs=yes
17522     ;;
17523   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17524   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17525     shlibpath_overrides_runpath=no
17526     hardcode_into_libs=yes
17527     ;;
17528   freebsd*) # from 4.6 on
17529     shlibpath_overrides_runpath=yes
17530     hardcode_into_libs=yes
17531     ;;
17532   esac
17533   ;;
17534
17535 gnu*)
17536   version_type=linux
17537   need_lib_prefix=no
17538   need_version=no
17539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17540   soname_spec='${libname}${release}${shared_ext}$major'
17541   shlibpath_var=LD_LIBRARY_PATH
17542   hardcode_into_libs=yes
17543   ;;
17544
17545 hpux9* | hpux10* | hpux11*)
17546   # Give a soname corresponding to the major version so that dld.sl refuses to
17547   # link against other versions.
17548   version_type=sunos
17549   need_lib_prefix=no
17550   need_version=no
17551   case $host_cpu in
17552   ia64*)
17553     shrext_cmds='.so'
17554     hardcode_into_libs=yes
17555     dynamic_linker="$host_os dld.so"
17556     shlibpath_var=LD_LIBRARY_PATH
17557     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17558     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17559     soname_spec='${libname}${release}${shared_ext}$major'
17560     if test "X$HPUX_IA64_MODE" = X32; then
17561       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17562     else
17563       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17564     fi
17565     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17566     ;;
17567    hppa*64*)
17568      shrext_cmds='.sl'
17569      hardcode_into_libs=yes
17570      dynamic_linker="$host_os dld.sl"
17571      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17572      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17573      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17574      soname_spec='${libname}${release}${shared_ext}$major'
17575      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17576      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17577      ;;
17578    *)
17579     shrext_cmds='.sl'
17580     dynamic_linker="$host_os dld.sl"
17581     shlibpath_var=SHLIB_PATH
17582     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17583     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584     soname_spec='${libname}${release}${shared_ext}$major'
17585     ;;
17586   esac
17587   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17588   postinstall_cmds='chmod 555 $lib'
17589   ;;
17590
17591 interix3*)
17592   version_type=linux
17593   need_lib_prefix=no
17594   need_version=no
17595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17596   soname_spec='${libname}${release}${shared_ext}$major'
17597   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17598   shlibpath_var=LD_LIBRARY_PATH
17599   shlibpath_overrides_runpath=no
17600   hardcode_into_libs=yes
17601   ;;
17602
17603 irix5* | irix6* | nonstopux*)
17604   case $host_os in
17605     nonstopux*) version_type=nonstopux ;;
17606     *)
17607         if test "$lt_cv_prog_gnu_ld" = yes; then
17608                 version_type=linux
17609         else
17610                 version_type=irix
17611         fi ;;
17612   esac
17613   need_lib_prefix=no
17614   need_version=no
17615   soname_spec='${libname}${release}${shared_ext}$major'
17616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17617   case $host_os in
17618   irix5* | nonstopux*)
17619     libsuff= shlibsuff=
17620     ;;
17621   *)
17622     case $LD in # libtool.m4 will add one of these switches to LD
17623     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17624       libsuff= shlibsuff= libmagic=32-bit;;
17625     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17626       libsuff=32 shlibsuff=N32 libmagic=N32;;
17627     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17628       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17629     *) libsuff= shlibsuff= libmagic=never-match;;
17630     esac
17631     ;;
17632   esac
17633   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17634   shlibpath_overrides_runpath=no
17635   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17636   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17637   hardcode_into_libs=yes
17638   ;;
17639
17640 # No shared lib support for Linux oldld, aout, or coff.
17641 linux*oldld* | linux*aout* | linux*coff*)
17642   dynamic_linker=no
17643   ;;
17644
17645 # This must be Linux ELF.
17646 linux*)
17647   version_type=linux
17648   need_lib_prefix=no
17649   need_version=no
17650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17651   soname_spec='${libname}${release}${shared_ext}$major'
17652   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17653   shlibpath_var=LD_LIBRARY_PATH
17654   shlibpath_overrides_runpath=no
17655   # This implies no fast_install, which is unacceptable.
17656   # Some rework will be needed to allow for fast_install
17657   # before this can be enabled.
17658   hardcode_into_libs=yes
17659
17660   # Append ld.so.conf contents to the search path
17661   if test -f /etc/ld.so.conf; then
17662     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' ' '`
17663     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17664   fi
17665
17666   # We used to test for /lib/ld.so.1 and disable shared libraries on
17667   # powerpc, because MkLinux only supported shared libraries with the
17668   # GNU dynamic linker.  Since this was broken with cross compilers,
17669   # most powerpc-linux boxes support dynamic linking these days and
17670   # people can always --disable-shared, the test was removed, and we
17671   # assume the GNU/Linux dynamic linker is in use.
17672   dynamic_linker='GNU/Linux ld.so'
17673   ;;
17674
17675 netbsdelf*-gnu)
17676   version_type=linux
17677   need_lib_prefix=no
17678   need_version=no
17679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17680   soname_spec='${libname}${release}${shared_ext}$major'
17681   shlibpath_var=LD_LIBRARY_PATH
17682   shlibpath_overrides_runpath=no
17683   hardcode_into_libs=yes
17684   dynamic_linker='NetBSD ld.elf_so'
17685   ;;
17686
17687 knetbsd*-gnu)
17688   version_type=linux
17689   need_lib_prefix=no
17690   need_version=no
17691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17692   soname_spec='${libname}${release}${shared_ext}$major'
17693   shlibpath_var=LD_LIBRARY_PATH
17694   shlibpath_overrides_runpath=no
17695   hardcode_into_libs=yes
17696   dynamic_linker='GNU ld.so'
17697   ;;
17698
17699 netbsd*)
17700   version_type=sunos
17701   need_lib_prefix=no
17702   need_version=no
17703   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17704     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17705     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17706     dynamic_linker='NetBSD (a.out) ld.so'
17707   else
17708     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17709     soname_spec='${libname}${release}${shared_ext}$major'
17710     dynamic_linker='NetBSD ld.elf_so'
17711   fi
17712   shlibpath_var=LD_LIBRARY_PATH
17713   shlibpath_overrides_runpath=yes
17714   hardcode_into_libs=yes
17715   ;;
17716
17717 newsos6)
17718   version_type=linux
17719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17720   shlibpath_var=LD_LIBRARY_PATH
17721   shlibpath_overrides_runpath=yes
17722   ;;
17723
17724 nto-qnx*)
17725   version_type=linux
17726   need_lib_prefix=no
17727   need_version=no
17728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17729   soname_spec='${libname}${release}${shared_ext}$major'
17730   shlibpath_var=LD_LIBRARY_PATH
17731   shlibpath_overrides_runpath=yes
17732   ;;
17733
17734 openbsd*)
17735   version_type=sunos
17736   sys_lib_dlsearch_path_spec="/usr/lib"
17737   need_lib_prefix=no
17738   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17739   case $host_os in
17740     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17741     *)                         need_version=no  ;;
17742   esac
17743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17744   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17745   shlibpath_var=LD_LIBRARY_PATH
17746   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17747     case $host_os in
17748       openbsd2.[89] | openbsd2.[89].*)
17749         shlibpath_overrides_runpath=no
17750         ;;
17751       *)
17752         shlibpath_overrides_runpath=yes
17753         ;;
17754       esac
17755   else
17756     shlibpath_overrides_runpath=yes
17757   fi
17758   ;;
17759
17760 os2*)
17761   libname_spec='$name'
17762   shrext_cmds=".dll"
17763   need_lib_prefix=no
17764   library_names_spec='$libname${shared_ext} $libname.a'
17765   dynamic_linker='OS/2 ld.exe'
17766   shlibpath_var=LIBPATH
17767   ;;
17768
17769 osf3* | osf4* | osf5*)
17770   version_type=osf
17771   need_lib_prefix=no
17772   need_version=no
17773   soname_spec='${libname}${release}${shared_ext}$major'
17774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17775   shlibpath_var=LD_LIBRARY_PATH
17776   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17777   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17778   ;;
17779
17780 solaris*)
17781   version_type=linux
17782   need_lib_prefix=no
17783   need_version=no
17784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17785   soname_spec='${libname}${release}${shared_ext}$major'
17786   shlibpath_var=LD_LIBRARY_PATH
17787   shlibpath_overrides_runpath=yes
17788   hardcode_into_libs=yes
17789   # ldd complains unless libraries are executable
17790   postinstall_cmds='chmod +x $lib'
17791   ;;
17792
17793 sunos4*)
17794   version_type=sunos
17795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17796   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17797   shlibpath_var=LD_LIBRARY_PATH
17798   shlibpath_overrides_runpath=yes
17799   if test "$with_gnu_ld" = yes; then
17800     need_lib_prefix=no
17801   fi
17802   need_version=yes
17803   ;;
17804
17805 sysv4 | sysv4.3*)
17806   version_type=linux
17807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808   soname_spec='${libname}${release}${shared_ext}$major'
17809   shlibpath_var=LD_LIBRARY_PATH
17810   case $host_vendor in
17811     sni)
17812       shlibpath_overrides_runpath=no
17813       need_lib_prefix=no
17814       export_dynamic_flag_spec='${wl}-Blargedynsym'
17815       runpath_var=LD_RUN_PATH
17816       ;;
17817     siemens)
17818       need_lib_prefix=no
17819       ;;
17820     motorola)
17821       need_lib_prefix=no
17822       need_version=no
17823       shlibpath_overrides_runpath=no
17824       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17825       ;;
17826   esac
17827   ;;
17828
17829 sysv4*MP*)
17830   if test -d /usr/nec ;then
17831     version_type=linux
17832     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17833     soname_spec='$libname${shared_ext}.$major'
17834     shlibpath_var=LD_LIBRARY_PATH
17835   fi
17836   ;;
17837
17838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17839   version_type=freebsd-elf
17840   need_lib_prefix=no
17841   need_version=no
17842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17843   soname_spec='${libname}${release}${shared_ext}$major'
17844   shlibpath_var=LD_LIBRARY_PATH
17845   hardcode_into_libs=yes
17846   if test "$with_gnu_ld" = yes; then
17847     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17848     shlibpath_overrides_runpath=no
17849   else
17850     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17851     shlibpath_overrides_runpath=yes
17852     case $host_os in
17853       sco3.2v5*)
17854         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17855         ;;
17856     esac
17857   fi
17858   sys_lib_dlsearch_path_spec='/usr/lib'
17859   ;;
17860
17861 uts4*)
17862   version_type=linux
17863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17864   soname_spec='${libname}${release}${shared_ext}$major'
17865   shlibpath_var=LD_LIBRARY_PATH
17866   ;;
17867
17868 *)
17869   dynamic_linker=no
17870   ;;
17871 esac
17872 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17873 echo "${ECHO_T}$dynamic_linker" >&6
17874 test "$dynamic_linker" = no && can_build_shared=no
17875
17876 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17877 if test "$GCC" = yes; then
17878   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17879 fi
17880
17881 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17882 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17883 hardcode_action_GCJ=
17884 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17885    test -n "$runpath_var_GCJ" || \
17886    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17887
17888   # We can hardcode non-existant directories.
17889   if test "$hardcode_direct_GCJ" != no &&
17890      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17891      # have to relink, otherwise we might link with an installed library
17892      # when we should be linking with a yet-to-be-installed one
17893      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17894      test "$hardcode_minus_L_GCJ" != no; then
17895     # Linking always hardcodes the temporary library directory.
17896     hardcode_action_GCJ=relink
17897   else
17898     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17899     hardcode_action_GCJ=immediate
17900   fi
17901 else
17902   # We cannot hardcode anything, or else we can only hardcode existing
17903   # directories.
17904   hardcode_action_GCJ=unsupported
17905 fi
17906 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17907 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17908
17909 if test "$hardcode_action_GCJ" = relink; then
17910   # Fast installation is not supported
17911   enable_fast_install=no
17912 elif test "$shlibpath_overrides_runpath" = yes ||
17913      test "$enable_shared" = no; then
17914   # Fast installation is not necessary
17915   enable_fast_install=needless
17916 fi
17917
17918
17919 # The else clause should only fire when bootstrapping the
17920 # libtool distribution, otherwise you forgot to ship ltmain.sh
17921 # with your package, and you will get complaints that there are
17922 # no rules to generate ltmain.sh.
17923 if test -f "$ltmain"; then
17924   # See if we are running on zsh, and set the options which allow our commands through
17925   # without removal of \ escapes.
17926   if test -n "${ZSH_VERSION+set}" ; then
17927     setopt NO_GLOB_SUBST
17928   fi
17929   # Now quote all the things that may contain metacharacters while being
17930   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17931   # variables and quote the copies for generation of the libtool script.
17932   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17933     SED SHELL STRIP \
17934     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17935     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17936     deplibs_check_method reload_flag reload_cmds need_locks \
17937     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17938     lt_cv_sys_global_symbol_to_c_name_address \
17939     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17940     old_postinstall_cmds old_postuninstall_cmds \
17941     compiler_GCJ \
17942     CC_GCJ \
17943     LD_GCJ \
17944     lt_prog_compiler_wl_GCJ \
17945     lt_prog_compiler_pic_GCJ \
17946     lt_prog_compiler_static_GCJ \
17947     lt_prog_compiler_no_builtin_flag_GCJ \
17948     export_dynamic_flag_spec_GCJ \
17949     thread_safe_flag_spec_GCJ \
17950     whole_archive_flag_spec_GCJ \
17951     enable_shared_with_static_runtimes_GCJ \
17952     old_archive_cmds_GCJ \
17953     old_archive_from_new_cmds_GCJ \
17954     predep_objects_GCJ \
17955     postdep_objects_GCJ \
17956     predeps_GCJ \
17957     postdeps_GCJ \
17958     compiler_lib_search_path_GCJ \
17959     archive_cmds_GCJ \
17960     archive_expsym_cmds_GCJ \
17961     postinstall_cmds_GCJ \
17962     postuninstall_cmds_GCJ \
17963     old_archive_from_expsyms_cmds_GCJ \
17964     allow_undefined_flag_GCJ \
17965     no_undefined_flag_GCJ \
17966     export_symbols_cmds_GCJ \
17967     hardcode_libdir_flag_spec_GCJ \
17968     hardcode_libdir_flag_spec_ld_GCJ \
17969     hardcode_libdir_separator_GCJ \
17970     hardcode_automatic_GCJ \
17971     module_cmds_GCJ \
17972     module_expsym_cmds_GCJ \
17973     lt_cv_prog_compiler_c_o_GCJ \
17974     exclude_expsyms_GCJ \
17975     include_expsyms_GCJ; do
17976
17977     case $var in
17978     old_archive_cmds_GCJ | \
17979     old_archive_from_new_cmds_GCJ | \
17980     archive_cmds_GCJ | \
17981     archive_expsym_cmds_GCJ | \
17982     module_cmds_GCJ | \
17983     module_expsym_cmds_GCJ | \
17984     old_archive_from_expsyms_cmds_GCJ | \
17985     export_symbols_cmds_GCJ | \
17986     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17987     postinstall_cmds | postuninstall_cmds | \
17988     old_postinstall_cmds | old_postuninstall_cmds | \
17989     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17990       # Double-quote double-evaled strings.
17991       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17992       ;;
17993     *)
17994       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17995       ;;
17996     esac
17997   done
17998
17999   case $lt_echo in
18000   *'\$0 --fallback-echo"')
18001     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18002     ;;
18003   esac
18004
18005 cfgfile="$ofile"
18006
18007   cat <<__EOF__ >> "$cfgfile"
18008 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18009
18010 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18011
18012 # Shell to use when invoking shell scripts.
18013 SHELL=$lt_SHELL
18014
18015 # Whether or not to build shared libraries.
18016 build_libtool_libs=$enable_shared
18017
18018 # Whether or not to build static libraries.
18019 build_old_libs=$enable_static
18020
18021 # Whether or not to add -lc for building shared libraries.
18022 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18023
18024 # Whether or not to disallow shared libs when runtime libs are static
18025 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18026
18027 # Whether or not to optimize for fast installation.
18028 fast_install=$enable_fast_install
18029
18030 # The host system.
18031 host_alias=$host_alias
18032 host=$host
18033 host_os=$host_os
18034
18035 # The build system.
18036 build_alias=$build_alias
18037 build=$build
18038 build_os=$build_os
18039
18040 # An echo program that does not interpret backslashes.
18041 echo=$lt_echo
18042
18043 # The archiver.
18044 AR=$lt_AR
18045 AR_FLAGS=$lt_AR_FLAGS
18046
18047 # A C compiler.
18048 LTCC=$lt_LTCC
18049
18050 # LTCC compiler flags.
18051 LTCFLAGS=$lt_LTCFLAGS
18052
18053 # A language-specific compiler.
18054 CC=$lt_compiler_GCJ
18055
18056 # Is the compiler the GNU C compiler?
18057 with_gcc=$GCC_GCJ
18058
18059 # An ERE matcher.
18060 EGREP=$lt_EGREP
18061
18062 # The linker used to build libraries.
18063 LD=$lt_LD_GCJ
18064
18065 # Whether we need hard or soft links.
18066 LN_S=$lt_LN_S
18067
18068 # A BSD-compatible nm program.
18069 NM=$lt_NM
18070
18071 # A symbol stripping program
18072 STRIP=$lt_STRIP
18073
18074 # Used to examine libraries when file_magic_cmd begins "file"
18075 MAGIC_CMD=$MAGIC_CMD
18076
18077 # Used on cygwin: DLL creation program.
18078 DLLTOOL="$DLLTOOL"
18079
18080 # Used on cygwin: object dumper.
18081 OBJDUMP="$OBJDUMP"
18082
18083 # Used on cygwin: assembler.
18084 AS="$AS"
18085
18086 # The name of the directory that contains temporary libtool files.
18087 objdir=$objdir
18088
18089 # How to create reloadable object files.
18090 reload_flag=$lt_reload_flag
18091 reload_cmds=$lt_reload_cmds
18092
18093 # How to pass a linker flag through the compiler.
18094 wl=$lt_lt_prog_compiler_wl_GCJ
18095
18096 # Object file suffix (normally "o").
18097 objext="$ac_objext"
18098
18099 # Old archive suffix (normally "a").
18100 libext="$libext"
18101
18102 # Shared library suffix (normally ".so").
18103 shrext_cmds='$shrext_cmds'
18104
18105 # Executable file suffix (normally "").
18106 exeext="$exeext"
18107
18108 # Additional compiler flags for building library objects.
18109 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18110 pic_mode=$pic_mode
18111
18112 # What is the maximum length of a command?
18113 max_cmd_len=$lt_cv_sys_max_cmd_len
18114
18115 # Does compiler simultaneously support -c and -o options?
18116 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18117
18118 # Must we lock files when doing compilation?
18119 need_locks=$lt_need_locks
18120
18121 # Do we need the lib prefix for modules?
18122 need_lib_prefix=$need_lib_prefix
18123
18124 # Do we need a version for libraries?
18125 need_version=$need_version
18126
18127 # Whether dlopen is supported.
18128 dlopen_support=$enable_dlopen
18129
18130 # Whether dlopen of programs is supported.
18131 dlopen_self=$enable_dlopen_self
18132
18133 # Whether dlopen of statically linked programs is supported.
18134 dlopen_self_static=$enable_dlopen_self_static
18135
18136 # Compiler flag to prevent dynamic linking.
18137 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18138
18139 # Compiler flag to turn off builtin functions.
18140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18141
18142 # Compiler flag to allow reflexive dlopens.
18143 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18144
18145 # Compiler flag to generate shared objects directly from archives.
18146 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18147
18148 # Compiler flag to generate thread-safe objects.
18149 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18150
18151 # Library versioning type.
18152 version_type=$version_type
18153
18154 # Format of library name prefix.
18155 libname_spec=$lt_libname_spec
18156
18157 # List of archive names.  First name is the real one, the rest are links.
18158 # The last name is the one that the linker finds with -lNAME.
18159 library_names_spec=$lt_library_names_spec
18160
18161 # The coded name of the library, if different from the real name.
18162 soname_spec=$lt_soname_spec
18163
18164 # Commands used to build and install an old-style archive.
18165 RANLIB=$lt_RANLIB
18166 old_archive_cmds=$lt_old_archive_cmds_GCJ
18167 old_postinstall_cmds=$lt_old_postinstall_cmds
18168 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18169
18170 # Create an old-style archive from a shared archive.
18171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18172
18173 # Create a temporary old-style archive to link instead of a shared archive.
18174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18175
18176 # Commands used to build and install a shared archive.
18177 archive_cmds=$lt_archive_cmds_GCJ
18178 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18179 postinstall_cmds=$lt_postinstall_cmds
18180 postuninstall_cmds=$lt_postuninstall_cmds
18181
18182 # Commands used to build a loadable module (assumed same as above if empty)
18183 module_cmds=$lt_module_cmds_GCJ
18184 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18185
18186 # Commands to strip libraries.
18187 old_striplib=$lt_old_striplib
18188 striplib=$lt_striplib
18189
18190 # Dependencies to place before the objects being linked to create a
18191 # shared library.
18192 predep_objects=$lt_predep_objects_GCJ
18193
18194 # Dependencies to place after the objects being linked to create a
18195 # shared library.
18196 postdep_objects=$lt_postdep_objects_GCJ
18197
18198 # Dependencies to place before the objects being linked to create a
18199 # shared library.
18200 predeps=$lt_predeps_GCJ
18201
18202 # Dependencies to place after the objects being linked to create a
18203 # shared library.
18204 postdeps=$lt_postdeps_GCJ
18205
18206 # The library search path used internally by the compiler when linking
18207 # a shared library.
18208 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18209
18210 # Method to check whether dependent libraries are shared objects.
18211 deplibs_check_method=$lt_deplibs_check_method
18212
18213 # Command to use when deplibs_check_method == file_magic.
18214 file_magic_cmd=$lt_file_magic_cmd
18215
18216 # Flag that allows shared libraries with undefined symbols to be built.
18217 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18218
18219 # Flag that forces no undefined symbols.
18220 no_undefined_flag=$lt_no_undefined_flag_GCJ
18221
18222 # Commands used to finish a libtool library installation in a directory.
18223 finish_cmds=$lt_finish_cmds
18224
18225 # Same as above, but a single script fragment to be evaled but not shown.
18226 finish_eval=$lt_finish_eval
18227
18228 # Take the output of nm and produce a listing of raw symbols and C names.
18229 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18230
18231 # Transform the output of nm in a proper C declaration
18232 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18233
18234 # Transform the output of nm in a C name address pair
18235 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18236
18237 # This is the shared library runtime path variable.
18238 runpath_var=$runpath_var
18239
18240 # This is the shared library path variable.
18241 shlibpath_var=$shlibpath_var
18242
18243 # Is shlibpath searched before the hard-coded library search path?
18244 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18245
18246 # How to hardcode a shared library path into an executable.
18247 hardcode_action=$hardcode_action_GCJ
18248
18249 # Whether we should hardcode library paths into libraries.
18250 hardcode_into_libs=$hardcode_into_libs
18251
18252 # Flag to hardcode \$libdir into a binary during linking.
18253 # This must work even if \$libdir does not exist.
18254 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18255
18256 # If ld is used when linking, flag to hardcode \$libdir into
18257 # a binary during linking. This must work even if \$libdir does
18258 # not exist.
18259 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18260
18261 # Whether we need a single -rpath flag with a separated argument.
18262 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18263
18264 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18265 # resulting binary.
18266 hardcode_direct=$hardcode_direct_GCJ
18267
18268 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18269 # resulting binary.
18270 hardcode_minus_L=$hardcode_minus_L_GCJ
18271
18272 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18273 # the resulting binary.
18274 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18275
18276 # Set to yes if building a shared library automatically hardcodes DIR into the library
18277 # and all subsequent libraries and executables linked against it.
18278 hardcode_automatic=$hardcode_automatic_GCJ
18279
18280 # Variables whose values should be saved in libtool wrapper scripts and
18281 # restored at relink time.
18282 variables_saved_for_relink="$variables_saved_for_relink"
18283
18284 # Whether libtool must link a program against all its dependency libraries.
18285 link_all_deplibs=$link_all_deplibs_GCJ
18286
18287 # Compile-time system search path for libraries
18288 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18289
18290 # Run-time system search path for libraries
18291 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18292
18293 # Fix the shell variable \$srcfile for the compiler.
18294 fix_srcfile_path="$fix_srcfile_path_GCJ"
18295
18296 # Set to yes if exported symbols are required.
18297 always_export_symbols=$always_export_symbols_GCJ
18298
18299 # The commands to list exported symbols.
18300 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18301
18302 # The commands to extract the exported symbol list from a shared archive.
18303 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18304
18305 # Symbols that should not be listed in the preloaded symbols.
18306 exclude_expsyms=$lt_exclude_expsyms_GCJ
18307
18308 # Symbols that must always be exported.
18309 include_expsyms=$lt_include_expsyms_GCJ
18310
18311 # ### END LIBTOOL TAG CONFIG: $tagname
18312
18313 __EOF__
18314
18315
18316 else
18317   # If there is no Makefile yet, we rely on a make rule to execute
18318   # `config.status --recheck' to rerun these tests and create the
18319   # libtool script then.
18320   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18321   if test -f "$ltmain_in"; then
18322     test -f Makefile && make "$ltmain"
18323   fi
18324 fi
18325
18326
18327 ac_ext=c
18328 ac_cpp='$CPP $CPPFLAGS'
18329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18332
18333 CC="$lt_save_CC"
18334
18335         else
18336           tagname=""
18337         fi
18338         ;;
18339
18340       RC)
18341
18342
18343
18344 # Source file extension for RC test sources.
18345 ac_ext=rc
18346
18347 # Object file extension for compiled RC test sources.
18348 objext=o
18349 objext_RC=$objext
18350
18351 # Code to be used in simple compile tests
18352 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18353
18354 # Code to be used in simple link tests
18355 lt_simple_link_test_code="$lt_simple_compile_test_code"
18356
18357 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18358
18359 # If no C compiler was specified, use CC.
18360 LTCC=${LTCC-"$CC"}
18361
18362 # If no C compiler flags were specified, use CFLAGS.
18363 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18364
18365 # Allow CC to be a program name with arguments.
18366 compiler=$CC
18367
18368
18369 # save warnings/boilerplate of simple test code
18370 ac_outfile=conftest.$ac_objext
18371 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18372 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18373 _lt_compiler_boilerplate=`cat conftest.err`
18374 $rm conftest*
18375
18376 ac_outfile=conftest.$ac_objext
18377 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18378 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18379 _lt_linker_boilerplate=`cat conftest.err`
18380 $rm conftest*
18381
18382
18383 # Allow CC to be a program name with arguments.
18384 lt_save_CC="$CC"
18385 CC=${RC-"windres"}
18386 compiler=$CC
18387 compiler_RC=$CC
18388 for cc_temp in $compiler""; do
18389   case $cc_temp in
18390     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18391     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18392     \-*) ;;
18393     *) break;;
18394   esac
18395 done
18396 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18397
18398 lt_cv_prog_compiler_c_o_RC=yes
18399
18400 # The else clause should only fire when bootstrapping the
18401 # libtool distribution, otherwise you forgot to ship ltmain.sh
18402 # with your package, and you will get complaints that there are
18403 # no rules to generate ltmain.sh.
18404 if test -f "$ltmain"; then
18405   # See if we are running on zsh, and set the options which allow our commands through
18406   # without removal of \ escapes.
18407   if test -n "${ZSH_VERSION+set}" ; then
18408     setopt NO_GLOB_SUBST
18409   fi
18410   # Now quote all the things that may contain metacharacters while being
18411   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18412   # variables and quote the copies for generation of the libtool script.
18413   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18414     SED SHELL STRIP \
18415     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18416     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18417     deplibs_check_method reload_flag reload_cmds need_locks \
18418     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18419     lt_cv_sys_global_symbol_to_c_name_address \
18420     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18421     old_postinstall_cmds old_postuninstall_cmds \
18422     compiler_RC \
18423     CC_RC \
18424     LD_RC \
18425     lt_prog_compiler_wl_RC \
18426     lt_prog_compiler_pic_RC \
18427     lt_prog_compiler_static_RC \
18428     lt_prog_compiler_no_builtin_flag_RC \
18429     export_dynamic_flag_spec_RC \
18430     thread_safe_flag_spec_RC \
18431     whole_archive_flag_spec_RC \
18432     enable_shared_with_static_runtimes_RC \
18433     old_archive_cmds_RC \
18434     old_archive_from_new_cmds_RC \
18435     predep_objects_RC \
18436     postdep_objects_RC \
18437     predeps_RC \
18438     postdeps_RC \
18439     compiler_lib_search_path_RC \
18440     archive_cmds_RC \
18441     archive_expsym_cmds_RC \
18442     postinstall_cmds_RC \
18443     postuninstall_cmds_RC \
18444     old_archive_from_expsyms_cmds_RC \
18445     allow_undefined_flag_RC \
18446     no_undefined_flag_RC \
18447     export_symbols_cmds_RC \
18448     hardcode_libdir_flag_spec_RC \
18449     hardcode_libdir_flag_spec_ld_RC \
18450     hardcode_libdir_separator_RC \
18451     hardcode_automatic_RC \
18452     module_cmds_RC \
18453     module_expsym_cmds_RC \
18454     lt_cv_prog_compiler_c_o_RC \
18455     exclude_expsyms_RC \
18456     include_expsyms_RC; do
18457
18458     case $var in
18459     old_archive_cmds_RC | \
18460     old_archive_from_new_cmds_RC | \
18461     archive_cmds_RC | \
18462     archive_expsym_cmds_RC | \
18463     module_cmds_RC | \
18464     module_expsym_cmds_RC | \
18465     old_archive_from_expsyms_cmds_RC | \
18466     export_symbols_cmds_RC | \
18467     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18468     postinstall_cmds | postuninstall_cmds | \
18469     old_postinstall_cmds | old_postuninstall_cmds | \
18470     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18471       # Double-quote double-evaled strings.
18472       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18473       ;;
18474     *)
18475       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18476       ;;
18477     esac
18478   done
18479
18480   case $lt_echo in
18481   *'\$0 --fallback-echo"')
18482     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18483     ;;
18484   esac
18485
18486 cfgfile="$ofile"
18487
18488   cat <<__EOF__ >> "$cfgfile"
18489 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18490
18491 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18492
18493 # Shell to use when invoking shell scripts.
18494 SHELL=$lt_SHELL
18495
18496 # Whether or not to build shared libraries.
18497 build_libtool_libs=$enable_shared
18498
18499 # Whether or not to build static libraries.
18500 build_old_libs=$enable_static
18501
18502 # Whether or not to add -lc for building shared libraries.
18503 build_libtool_need_lc=$archive_cmds_need_lc_RC
18504
18505 # Whether or not to disallow shared libs when runtime libs are static
18506 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18507
18508 # Whether or not to optimize for fast installation.
18509 fast_install=$enable_fast_install
18510
18511 # The host system.
18512 host_alias=$host_alias
18513 host=$host
18514 host_os=$host_os
18515
18516 # The build system.
18517 build_alias=$build_alias
18518 build=$build
18519 build_os=$build_os
18520
18521 # An echo program that does not interpret backslashes.
18522 echo=$lt_echo
18523
18524 # The archiver.
18525 AR=$lt_AR
18526 AR_FLAGS=$lt_AR_FLAGS
18527
18528 # A C compiler.
18529 LTCC=$lt_LTCC
18530
18531 # LTCC compiler flags.
18532 LTCFLAGS=$lt_LTCFLAGS
18533
18534 # A language-specific compiler.
18535 CC=$lt_compiler_RC
18536
18537 # Is the compiler the GNU C compiler?
18538 with_gcc=$GCC_RC
18539
18540 # An ERE matcher.
18541 EGREP=$lt_EGREP
18542
18543 # The linker used to build libraries.
18544 LD=$lt_LD_RC
18545
18546 # Whether we need hard or soft links.
18547 LN_S=$lt_LN_S
18548
18549 # A BSD-compatible nm program.
18550 NM=$lt_NM
18551
18552 # A symbol stripping program
18553 STRIP=$lt_STRIP
18554
18555 # Used to examine libraries when file_magic_cmd begins "file"
18556 MAGIC_CMD=$MAGIC_CMD
18557
18558 # Used on cygwin: DLL creation program.
18559 DLLTOOL="$DLLTOOL"
18560
18561 # Used on cygwin: object dumper.
18562 OBJDUMP="$OBJDUMP"
18563
18564 # Used on cygwin: assembler.
18565 AS="$AS"
18566
18567 # The name of the directory that contains temporary libtool files.
18568 objdir=$objdir
18569
18570 # How to create reloadable object files.
18571 reload_flag=$lt_reload_flag
18572 reload_cmds=$lt_reload_cmds
18573
18574 # How to pass a linker flag through the compiler.
18575 wl=$lt_lt_prog_compiler_wl_RC
18576
18577 # Object file suffix (normally "o").
18578 objext="$ac_objext"
18579
18580 # Old archive suffix (normally "a").
18581 libext="$libext"
18582
18583 # Shared library suffix (normally ".so").
18584 shrext_cmds='$shrext_cmds'
18585
18586 # Executable file suffix (normally "").
18587 exeext="$exeext"
18588
18589 # Additional compiler flags for building library objects.
18590 pic_flag=$lt_lt_prog_compiler_pic_RC
18591 pic_mode=$pic_mode
18592
18593 # What is the maximum length of a command?
18594 max_cmd_len=$lt_cv_sys_max_cmd_len
18595
18596 # Does compiler simultaneously support -c and -o options?
18597 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18598
18599 # Must we lock files when doing compilation?
18600 need_locks=$lt_need_locks
18601
18602 # Do we need the lib prefix for modules?
18603 need_lib_prefix=$need_lib_prefix
18604
18605 # Do we need a version for libraries?
18606 need_version=$need_version
18607
18608 # Whether dlopen is supported.
18609 dlopen_support=$enable_dlopen
18610
18611 # Whether dlopen of programs is supported.
18612 dlopen_self=$enable_dlopen_self
18613
18614 # Whether dlopen of statically linked programs is supported.
18615 dlopen_self_static=$enable_dlopen_self_static
18616
18617 # Compiler flag to prevent dynamic linking.
18618 link_static_flag=$lt_lt_prog_compiler_static_RC
18619
18620 # Compiler flag to turn off builtin functions.
18621 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18622
18623 # Compiler flag to allow reflexive dlopens.
18624 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18625
18626 # Compiler flag to generate shared objects directly from archives.
18627 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18628
18629 # Compiler flag to generate thread-safe objects.
18630 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18631
18632 # Library versioning type.
18633 version_type=$version_type
18634
18635 # Format of library name prefix.
18636 libname_spec=$lt_libname_spec
18637
18638 # List of archive names.  First name is the real one, the rest are links.
18639 # The last name is the one that the linker finds with -lNAME.
18640 library_names_spec=$lt_library_names_spec
18641
18642 # The coded name of the library, if different from the real name.
18643 soname_spec=$lt_soname_spec
18644
18645 # Commands used to build and install an old-style archive.
18646 RANLIB=$lt_RANLIB
18647 old_archive_cmds=$lt_old_archive_cmds_RC
18648 old_postinstall_cmds=$lt_old_postinstall_cmds
18649 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18650
18651 # Create an old-style archive from a shared archive.
18652 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18653
18654 # Create a temporary old-style archive to link instead of a shared archive.
18655 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18656
18657 # Commands used to build and install a shared archive.
18658 archive_cmds=$lt_archive_cmds_RC
18659 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18660 postinstall_cmds=$lt_postinstall_cmds
18661 postuninstall_cmds=$lt_postuninstall_cmds
18662
18663 # Commands used to build a loadable module (assumed same as above if empty)
18664 module_cmds=$lt_module_cmds_RC
18665 module_expsym_cmds=$lt_module_expsym_cmds_RC
18666
18667 # Commands to strip libraries.
18668 old_striplib=$lt_old_striplib
18669 striplib=$lt_striplib
18670
18671 # Dependencies to place before the objects being linked to create a
18672 # shared library.
18673 predep_objects=$lt_predep_objects_RC
18674
18675 # Dependencies to place after the objects being linked to create a
18676 # shared library.
18677 postdep_objects=$lt_postdep_objects_RC
18678
18679 # Dependencies to place before the objects being linked to create a
18680 # shared library.
18681 predeps=$lt_predeps_RC
18682
18683 # Dependencies to place after the objects being linked to create a
18684 # shared library.
18685 postdeps=$lt_postdeps_RC
18686
18687 # The library search path used internally by the compiler when linking
18688 # a shared library.
18689 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18690
18691 # Method to check whether dependent libraries are shared objects.
18692 deplibs_check_method=$lt_deplibs_check_method
18693
18694 # Command to use when deplibs_check_method == file_magic.
18695 file_magic_cmd=$lt_file_magic_cmd
18696
18697 # Flag that allows shared libraries with undefined symbols to be built.
18698 allow_undefined_flag=$lt_allow_undefined_flag_RC
18699
18700 # Flag that forces no undefined symbols.
18701 no_undefined_flag=$lt_no_undefined_flag_RC
18702
18703 # Commands used to finish a libtool library installation in a directory.
18704 finish_cmds=$lt_finish_cmds
18705
18706 # Same as above, but a single script fragment to be evaled but not shown.
18707 finish_eval=$lt_finish_eval
18708
18709 # Take the output of nm and produce a listing of raw symbols and C names.
18710 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18711
18712 # Transform the output of nm in a proper C declaration
18713 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18714
18715 # Transform the output of nm in a C name address pair
18716 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18717
18718 # This is the shared library runtime path variable.
18719 runpath_var=$runpath_var
18720
18721 # This is the shared library path variable.
18722 shlibpath_var=$shlibpath_var
18723
18724 # Is shlibpath searched before the hard-coded library search path?
18725 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18726
18727 # How to hardcode a shared library path into an executable.
18728 hardcode_action=$hardcode_action_RC
18729
18730 # Whether we should hardcode library paths into libraries.
18731 hardcode_into_libs=$hardcode_into_libs
18732
18733 # Flag to hardcode \$libdir into a binary during linking.
18734 # This must work even if \$libdir does not exist.
18735 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18736
18737 # If ld is used when linking, flag to hardcode \$libdir into
18738 # a binary during linking. This must work even if \$libdir does
18739 # not exist.
18740 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18741
18742 # Whether we need a single -rpath flag with a separated argument.
18743 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18744
18745 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18746 # resulting binary.
18747 hardcode_direct=$hardcode_direct_RC
18748
18749 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18750 # resulting binary.
18751 hardcode_minus_L=$hardcode_minus_L_RC
18752
18753 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18754 # the resulting binary.
18755 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18756
18757 # Set to yes if building a shared library automatically hardcodes DIR into the library
18758 # and all subsequent libraries and executables linked against it.
18759 hardcode_automatic=$hardcode_automatic_RC
18760
18761 # Variables whose values should be saved in libtool wrapper scripts and
18762 # restored at relink time.
18763 variables_saved_for_relink="$variables_saved_for_relink"
18764
18765 # Whether libtool must link a program against all its dependency libraries.
18766 link_all_deplibs=$link_all_deplibs_RC
18767
18768 # Compile-time system search path for libraries
18769 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18770
18771 # Run-time system search path for libraries
18772 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18773
18774 # Fix the shell variable \$srcfile for the compiler.
18775 fix_srcfile_path="$fix_srcfile_path_RC"
18776
18777 # Set to yes if exported symbols are required.
18778 always_export_symbols=$always_export_symbols_RC
18779
18780 # The commands to list exported symbols.
18781 export_symbols_cmds=$lt_export_symbols_cmds_RC
18782
18783 # The commands to extract the exported symbol list from a shared archive.
18784 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18785
18786 # Symbols that should not be listed in the preloaded symbols.
18787 exclude_expsyms=$lt_exclude_expsyms_RC
18788
18789 # Symbols that must always be exported.
18790 include_expsyms=$lt_include_expsyms_RC
18791
18792 # ### END LIBTOOL TAG CONFIG: $tagname
18793
18794 __EOF__
18795
18796
18797 else
18798   # If there is no Makefile yet, we rely on a make rule to execute
18799   # `config.status --recheck' to rerun these tests and create the
18800   # libtool script then.
18801   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18802   if test -f "$ltmain_in"; then
18803     test -f Makefile && make "$ltmain"
18804   fi
18805 fi
18806
18807
18808 ac_ext=c
18809 ac_cpp='$CPP $CPPFLAGS'
18810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18813
18814 CC="$lt_save_CC"
18815
18816         ;;
18817
18818       *)
18819         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18820 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18821    { (exit 1); exit 1; }; }
18822         ;;
18823       esac
18824
18825       # Append the new tag name to the list of available tags.
18826       if test -n "$tagname" ; then
18827       available_tags="$available_tags $tagname"
18828     fi
18829     fi
18830   done
18831   IFS="$lt_save_ifs"
18832
18833   # Now substitute the updated list of available tags.
18834   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18835     mv "${ofile}T" "$ofile"
18836     chmod +x "$ofile"
18837   else
18838     rm -f "${ofile}T"
18839     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18840 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18841    { (exit 1); exit 1; }; }
18842   fi
18843 fi
18844
18845
18846
18847 # This can be used to rebuild libtool when needed
18848 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18849
18850 # Always use our own libtool.
18851 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18852
18853 # Prevent multiple expansion
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875 ###############
18876 ## System checks
18877 ##
18878
18879   echo "$as_me:$LINENO: result: " >&5
18880 echo "${ECHO_T}" >&6
18881   echo "$as_me:$LINENO: result: ${T_MD}System checks...${T_ME}" >&5
18882 echo "${ECHO_T}${T_MD}System checks...${T_ME}" >&6
18883
18884 ac_ext=c
18885 ac_cpp='$CPP $CPPFLAGS'
18886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18889 if test -n "$ac_tool_prefix"; then
18890   for ac_prog in xlC gcc cc
18891   do
18892     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18893 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18894 echo "$as_me:$LINENO: checking for $ac_word" >&5
18895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18896 if test "${ac_cv_prog_CC+set}" = set; then
18897   echo $ECHO_N "(cached) $ECHO_C" >&6
18898 else
18899   if test -n "$CC"; then
18900   ac_cv_prog_CC="$CC" # Let the user override the test.
18901 else
18902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18903 for as_dir in $PATH
18904 do
18905   IFS=$as_save_IFS
18906   test -z "$as_dir" && as_dir=.
18907   for ac_exec_ext in '' $ac_executable_extensions; do
18908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18909     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18911     break 2
18912   fi
18913 done
18914 done
18915
18916 fi
18917 fi
18918 CC=$ac_cv_prog_CC
18919 if test -n "$CC"; then
18920   echo "$as_me:$LINENO: result: $CC" >&5
18921 echo "${ECHO_T}$CC" >&6
18922 else
18923   echo "$as_me:$LINENO: result: no" >&5
18924 echo "${ECHO_T}no" >&6
18925 fi
18926
18927     test -n "$CC" && break
18928   done
18929 fi
18930 if test -z "$CC"; then
18931   ac_ct_CC=$CC
18932   for ac_prog in xlC gcc cc
18933 do
18934   # Extract the first word of "$ac_prog", so it can be a program name with args.
18935 set dummy $ac_prog; ac_word=$2
18936 echo "$as_me:$LINENO: checking for $ac_word" >&5
18937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18939   echo $ECHO_N "(cached) $ECHO_C" >&6
18940 else
18941   if test -n "$ac_ct_CC"; then
18942   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18943 else
18944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18945 for as_dir in $PATH
18946 do
18947   IFS=$as_save_IFS
18948   test -z "$as_dir" && as_dir=.
18949   for ac_exec_ext in '' $ac_executable_extensions; do
18950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18951     ac_cv_prog_ac_ct_CC="$ac_prog"
18952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18953     break 2
18954   fi
18955 done
18956 done
18957
18958 fi
18959 fi
18960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18961 if test -n "$ac_ct_CC"; then
18962   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18963 echo "${ECHO_T}$ac_ct_CC" >&6
18964 else
18965   echo "$as_me:$LINENO: result: no" >&5
18966 echo "${ECHO_T}no" >&6
18967 fi
18968
18969   test -n "$ac_ct_CC" && break
18970 done
18971
18972   CC=$ac_ct_CC
18973 fi
18974
18975
18976 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18977 See \`config.log' for more details." >&5
18978 echo "$as_me: error: no acceptable C compiler found in \$PATH
18979 See \`config.log' for more details." >&2;}
18980    { (exit 1); exit 1; }; }
18981
18982 # Provide some information about the compiler.
18983 echo "$as_me:$LINENO:" \
18984      "checking for C compiler version" >&5
18985 ac_compiler=`set X $ac_compile; echo $2`
18986 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18987   (eval $ac_compiler --version </dev/null >&5) 2>&5
18988   ac_status=$?
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); }
18991 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
18992   (eval $ac_compiler -v </dev/null >&5) 2>&5
18993   ac_status=$?
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); }
18996 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
18997   (eval $ac_compiler -V </dev/null >&5) 2>&5
18998   ac_status=$?
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); }
19001
19002 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19003 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19004 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19005   echo $ECHO_N "(cached) $ECHO_C" >&6
19006 else
19007   cat >conftest.$ac_ext <<_ACEOF
19008 /* confdefs.h.  */
19009 _ACEOF
19010 cat confdefs.h >>conftest.$ac_ext
19011 cat >>conftest.$ac_ext <<_ACEOF
19012 /* end confdefs.h.  */
19013
19014 int
19015 main ()
19016 {
19017 #ifndef __GNUC__
19018        choke me
19019 #endif
19020
19021   ;
19022   return 0;
19023 }
19024 _ACEOF
19025 rm -f conftest.$ac_objext
19026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19027   (eval $ac_compile) 2>conftest.er1
19028   ac_status=$?
19029   grep -v '^ *+' conftest.er1 >conftest.err
19030   rm -f conftest.er1
19031   cat conftest.err >&5
19032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033   (exit $ac_status); } &&
19034          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036   (eval $ac_try) 2>&5
19037   ac_status=$?
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); }; } &&
19040          { ac_try='test -s conftest.$ac_objext'
19041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042   (eval $ac_try) 2>&5
19043   ac_status=$?
19044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045   (exit $ac_status); }; }; then
19046   ac_compiler_gnu=yes
19047 else
19048   echo "$as_me: failed program was:" >&5
19049 sed 's/^/| /' conftest.$ac_ext >&5
19050
19051 ac_compiler_gnu=no
19052 fi
19053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19055
19056 fi
19057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19059 GCC=`test $ac_compiler_gnu = yes && echo yes`
19060 ac_test_CFLAGS=${CFLAGS+set}
19061 ac_save_CFLAGS=$CFLAGS
19062 CFLAGS="-g"
19063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19065 if test "${ac_cv_prog_cc_g+set}" = set; then
19066   echo $ECHO_N "(cached) $ECHO_C" >&6
19067 else
19068   cat >conftest.$ac_ext <<_ACEOF
19069 /* confdefs.h.  */
19070 _ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h.  */
19074
19075 int
19076 main ()
19077 {
19078
19079   ;
19080   return 0;
19081 }
19082 _ACEOF
19083 rm -f conftest.$ac_objext
19084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19085   (eval $ac_compile) 2>conftest.er1
19086   ac_status=$?
19087   grep -v '^ *+' conftest.er1 >conftest.err
19088   rm -f conftest.er1
19089   cat conftest.err >&5
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); } &&
19092          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094   (eval $ac_try) 2>&5
19095   ac_status=$?
19096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097   (exit $ac_status); }; } &&
19098          { ac_try='test -s conftest.$ac_objext'
19099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100   (eval $ac_try) 2>&5
19101   ac_status=$?
19102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103   (exit $ac_status); }; }; then
19104   ac_cv_prog_cc_g=yes
19105 else
19106   echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19108
19109 ac_cv_prog_cc_g=no
19110 fi
19111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19112 fi
19113 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19114 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19115 if test "$ac_test_CFLAGS" = set; then
19116   CFLAGS=$ac_save_CFLAGS
19117 elif test $ac_cv_prog_cc_g = yes; then
19118   if test "$GCC" = yes; then
19119     CFLAGS="-g -O2"
19120   else
19121     CFLAGS="-g"
19122   fi
19123 else
19124   if test "$GCC" = yes; then
19125     CFLAGS="-O2"
19126   else
19127     CFLAGS=
19128   fi
19129 fi
19130 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19131 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19132 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19133   echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135   ac_cv_prog_cc_stdc=no
19136 ac_save_CC=$CC
19137 cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h.  */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h.  */
19143 #include <stdarg.h>
19144 #include <stdio.h>
19145 #include <sys/types.h>
19146 #include <sys/stat.h>
19147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19148 struct buf { int x; };
19149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19150 static char *e (p, i)
19151      char **p;
19152      int i;
19153 {
19154   return p[i];
19155 }
19156 static char *f (char * (*g) (char **, int), char **p, ...)
19157 {
19158   char *s;
19159   va_list v;
19160   va_start (v,p);
19161   s = g (p, va_arg (v,int));
19162   va_end (v);
19163   return s;
19164 }
19165
19166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19167    function prototypes and stuff, but not '\xHH' hex character constants.
19168    These don't provoke an error unfortunately, instead are silently treated
19169    as 'x'.  The following induces an error, until -std1 is added to get
19170    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19171    array size at least.  It's necessary to write '\x00'==0 to get something
19172    that's true only with -std1.  */
19173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19174
19175 int test (int i, double x);
19176 struct s1 {int (*f) (int a);};
19177 struct s2 {int (*f) (double a);};
19178 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19179 int argc;
19180 char **argv;
19181 int
19182 main ()
19183 {
19184 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19185   ;
19186   return 0;
19187 }
19188 _ACEOF
19189 # Don't try gcc -ansi; that turns off useful extensions and
19190 # breaks some systems' header files.
19191 # AIX                   -qlanglvl=ansi
19192 # Ultrix and OSF/1      -std1
19193 # HP-UX 10.20 and later -Ae
19194 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19195 # SVR4                  -Xc -D__EXTENSIONS__
19196 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19197 do
19198   CC="$ac_save_CC $ac_arg"
19199   rm -f conftest.$ac_objext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201   (eval $ac_compile) 2>conftest.er1
19202   ac_status=$?
19203   grep -v '^ *+' conftest.er1 >conftest.err
19204   rm -f conftest.er1
19205   cat conftest.err >&5
19206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207   (exit $ac_status); } &&
19208          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210   (eval $ac_try) 2>&5
19211   ac_status=$?
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); }; } &&
19214          { ac_try='test -s conftest.$ac_objext'
19215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216   (eval $ac_try) 2>&5
19217   ac_status=$?
19218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219   (exit $ac_status); }; }; then
19220   ac_cv_prog_cc_stdc=$ac_arg
19221 break
19222 else
19223   echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19225
19226 fi
19227 rm -f conftest.err conftest.$ac_objext
19228 done
19229 rm -f conftest.$ac_ext conftest.$ac_objext
19230 CC=$ac_save_CC
19231
19232 fi
19233
19234 case "x$ac_cv_prog_cc_stdc" in
19235   x|xno)
19236     echo "$as_me:$LINENO: result: none needed" >&5
19237 echo "${ECHO_T}none needed" >&6 ;;
19238   *)
19239     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19240 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19241     CC="$CC $ac_cv_prog_cc_stdc" ;;
19242 esac
19243
19244 # Some people use a C++ compiler to compile C.  Since we use `exit',
19245 # in C++ we need to declare it.  In case someone uses the same compiler
19246 # for both compiling C and C++ we need to have the C++ compiler decide
19247 # the declaration of exit, since it's the most demanding environment.
19248 cat >conftest.$ac_ext <<_ACEOF
19249 #ifndef __cplusplus
19250   choke me
19251 #endif
19252 _ACEOF
19253 rm -f conftest.$ac_objext
19254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19255   (eval $ac_compile) 2>conftest.er1
19256   ac_status=$?
19257   grep -v '^ *+' conftest.er1 >conftest.err
19258   rm -f conftest.er1
19259   cat conftest.err >&5
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); } &&
19262          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264   (eval $ac_try) 2>&5
19265   ac_status=$?
19266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267   (exit $ac_status); }; } &&
19268          { ac_try='test -s conftest.$ac_objext'
19269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270   (eval $ac_try) 2>&5
19271   ac_status=$?
19272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273   (exit $ac_status); }; }; then
19274   for ac_declaration in \
19275    '' \
19276    'extern "C" void std::exit (int) throw (); using std::exit;' \
19277    'extern "C" void std::exit (int); using std::exit;' \
19278    'extern "C" void exit (int) throw ();' \
19279    'extern "C" void exit (int);' \
19280    'void exit (int);'
19281 do
19282   cat >conftest.$ac_ext <<_ACEOF
19283 /* confdefs.h.  */
19284 _ACEOF
19285 cat confdefs.h >>conftest.$ac_ext
19286 cat >>conftest.$ac_ext <<_ACEOF
19287 /* end confdefs.h.  */
19288 $ac_declaration
19289 #include <stdlib.h>
19290 int
19291 main ()
19292 {
19293 exit (42);
19294   ;
19295   return 0;
19296 }
19297 _ACEOF
19298 rm -f conftest.$ac_objext
19299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19300   (eval $ac_compile) 2>conftest.er1
19301   ac_status=$?
19302   grep -v '^ *+' conftest.er1 >conftest.err
19303   rm -f conftest.er1
19304   cat conftest.err >&5
19305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306   (exit $ac_status); } &&
19307          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309   (eval $ac_try) 2>&5
19310   ac_status=$?
19311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312   (exit $ac_status); }; } &&
19313          { ac_try='test -s conftest.$ac_objext'
19314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315   (eval $ac_try) 2>&5
19316   ac_status=$?
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); }; }; then
19319   :
19320 else
19321   echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 continue
19325 fi
19326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19327   cat >conftest.$ac_ext <<_ACEOF
19328 /* confdefs.h.  */
19329 _ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h.  */
19333 $ac_declaration
19334 int
19335 main ()
19336 {
19337 exit (42);
19338   ;
19339   return 0;
19340 }
19341 _ACEOF
19342 rm -f conftest.$ac_objext
19343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19344   (eval $ac_compile) 2>conftest.er1
19345   ac_status=$?
19346   grep -v '^ *+' conftest.er1 >conftest.err
19347   rm -f conftest.er1
19348   cat conftest.err >&5
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); } &&
19351          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353   (eval $ac_try) 2>&5
19354   ac_status=$?
19355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356   (exit $ac_status); }; } &&
19357          { ac_try='test -s conftest.$ac_objext'
19358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359   (eval $ac_try) 2>&5
19360   ac_status=$?
19361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362   (exit $ac_status); }; }; then
19363   break
19364 else
19365   echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19367
19368 fi
19369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19370 done
19371 rm -f conftest*
19372 if test -n "$ac_declaration"; then
19373   echo '#ifdef __cplusplus' >>confdefs.h
19374   echo $ac_declaration      >>confdefs.h
19375   echo '#endif'             >>confdefs.h
19376 fi
19377
19378 else
19379   echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382 fi
19383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19384 ac_ext=c
19385 ac_cpp='$CPP $CPPFLAGS'
19386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19389
19390 depcc="$CC"   am_compiler_list=
19391
19392 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19393 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19394 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19395   echo $ECHO_N "(cached) $ECHO_C" >&6
19396 else
19397   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19398   # We make a subdir and do the tests there.  Otherwise we can end up
19399   # making bogus files that we don't know about and never remove.  For
19400   # instance it was reported that on HP-UX the gcc test will end up
19401   # making a dummy file named `D' -- because `-MD' means `put the output
19402   # in D'.
19403   mkdir conftest.dir
19404   # Copy depcomp to subdir because otherwise we won't find it if we're
19405   # using a relative directory.
19406   cp "$am_depcomp" conftest.dir
19407   cd conftest.dir
19408   # We will build objects and dependencies in a subdirectory because
19409   # it helps to detect inapplicable dependency modes.  For instance
19410   # both Tru64's cc and ICC support -MD to output dependencies as a
19411   # side effect of compilation, but ICC will put the dependencies in
19412   # the current directory while Tru64 will put them in the object
19413   # directory.
19414   mkdir sub
19415
19416   am_cv_CC_dependencies_compiler_type=none
19417   if test "$am_compiler_list" = ""; then
19418      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19419   fi
19420   for depmode in $am_compiler_list; do
19421     # Setup a source with many dependencies, because some compilers
19422     # like to wrap large dependency lists on column 80 (with \), and
19423     # we should not choose a depcomp mode which is confused by this.
19424     #
19425     # We need to recreate these files for each test, as the compiler may
19426     # overwrite some of them when testing with obscure command lines.
19427     # This happens at least with the AIX C compiler.
19428     : > sub/conftest.c
19429     for i in 1 2 3 4 5 6; do
19430       echo '#include "conftst'$i'.h"' >> sub/conftest.c
19431       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19432       # Solaris 8's {/usr,}/bin/sh.
19433       touch sub/conftst$i.h
19434     done
19435     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19436
19437     case $depmode in
19438     nosideeffect)
19439       # after this tag, mechanisms are not by side-effect, so they'll
19440       # only be used when explicitly requested
19441       if test "x$enable_dependency_tracking" = xyes; then
19442         continue
19443       else
19444         break
19445       fi
19446       ;;
19447     none) break ;;
19448     esac
19449     # We check with `-c' and `-o' for the sake of the "dashmstdout"
19450     # mode.  It turns out that the SunPro C++ compiler does not properly
19451     # handle `-M -o', and we need to detect this.
19452     if depmode=$depmode \
19453        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19454        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19455        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19456          >/dev/null 2>conftest.err &&
19457        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19458        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19459        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19460       # icc doesn't choke on unknown options, it will just issue warnings
19461       # or remarks (even with -Werror).  So we grep stderr for any message
19462       # that says an option was ignored or not supported.
19463       # When given -MP, icc 7.0 and 7.1 complain thusly:
19464       #   icc: Command line warning: ignoring option '-M'; no argument required
19465       # The diagnosis changed in icc 8.0:
19466       #   icc: Command line remark: option '-MP' not supported
19467       if (grep 'ignoring option' conftest.err ||
19468           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19469         am_cv_CC_dependencies_compiler_type=$depmode
19470         break
19471       fi
19472     fi
19473   done
19474
19475   cd ..
19476   rm -rf conftest.dir
19477 else
19478   am_cv_CC_dependencies_compiler_type=none
19479 fi
19480
19481 fi
19482 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19483 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19484 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19485
19486
19487
19488 if
19489   test "x$enable_dependency_tracking" != xno \
19490   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19491   am__fastdepCC_TRUE=
19492   am__fastdepCC_FALSE='#'
19493 else
19494   am__fastdepCC_TRUE='#'
19495   am__fastdepCC_FALSE=
19496 fi
19497
19498
19499 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19500 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19501 # Just in case
19502 sleep 1
19503 echo timestamp > conftest.file
19504 # Do `set' in a subshell so we don't clobber the current shell's
19505 # arguments.  Must try -L first in case configure is actually a
19506 # symlink; some systems play weird games with the mod time of symlinks
19507 # (eg FreeBSD returns the mod time of the symlink's containing
19508 # directory).
19509 if (
19510    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19511    if test "$*" = "X"; then
19512       # -L didn't work.
19513       set X `ls -t $srcdir/configure conftest.file`
19514    fi
19515    rm -f conftest.file
19516    if test "$*" != "X $srcdir/configure conftest.file" \
19517       && test "$*" != "X conftest.file $srcdir/configure"; then
19518
19519       # If neither matched, then we have a broken ls.  This can happen
19520       # if, for instance, CONFIG_SHELL is bash and it inherits a
19521       # broken ls alias from the environment.  This has actually
19522       # happened.  Such a system could not be considered "sane".
19523       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19524 alias in your environment" >&5
19525 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19526 alias in your environment" >&2;}
19527    { (exit 1); exit 1; }; }
19528    fi
19529
19530    test "$2" = conftest.file
19531    )
19532 then
19533    # Ok.
19534    :
19535 else
19536    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19537 Check your system clock" >&5
19538 echo "$as_me: error: newly created file is older than distributed files!
19539 Check your system clock" >&2;}
19540    { (exit 1); exit 1; }; }
19541 fi
19542 echo "$as_me:$LINENO: result: yes" >&5
19543 echo "${ECHO_T}yes" >&6
19544 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19545 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19546 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19547 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19548   echo $ECHO_N "(cached) $ECHO_C" >&6
19549 else
19550   cat >conftest.make <<\_ACEOF
19551 all:
19552         @echo 'ac_maketemp="$(MAKE)"'
19553 _ACEOF
19554 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19555 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19556 if test -n "$ac_maketemp"; then
19557   eval ac_cv_prog_make_${ac_make}_set=yes
19558 else
19559   eval ac_cv_prog_make_${ac_make}_set=no
19560 fi
19561 rm -f conftest.make
19562 fi
19563 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19564   echo "$as_me:$LINENO: result: yes" >&5
19565 echo "${ECHO_T}yes" >&6
19566   SET_MAKE=
19567 else
19568   echo "$as_me:$LINENO: result: no" >&5
19569 echo "${ECHO_T}no" >&6
19570   SET_MAKE="MAKE=${MAKE-make}"
19571 fi
19572
19573
19574 echo "$as_me:$LINENO: checking whether printf(\"%s\",NULL) works..." >&5
19575 echo $ECHO_N "checking whether printf(\"%s\",NULL) works...... $ECHO_C" >&6
19576 if test "$cross_compiling" = yes; then
19577   echo "$as_me:$LINENO: result: assuming the worse in cross-compilation" >&5
19578 echo "${ECHO_T}assuming the worse in cross-compilation" >&6
19579 else
19580   cat >conftest.$ac_ext <<_ACEOF
19581 /* confdefs.h.  */
19582 _ACEOF
19583 cat confdefs.h >>conftest.$ac_ext
19584 cat >>conftest.$ac_ext <<_ACEOF
19585 /* end confdefs.h.  */
19586 #include <stdio.h>
19587 int
19588 main ()
19589 {
19590 printf("%s",NULL);
19591   ;
19592   return 0;
19593 }
19594 _ACEOF
19595 rm -f conftest$ac_exeext
19596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19597   (eval $ac_link) 2>&5
19598   ac_status=$?
19599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19602   (eval $ac_try) 2>&5
19603   ac_status=$?
19604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605   (exit $ac_status); }; }; then
19606
19607 cat >>confdefs.h <<\_ACEOF
19608 #define PRINTF_NULL_WORKING 1
19609 _ACEOF
19610
19611               echo "$as_me:$LINENO: result: yes" >&5
19612 echo "${ECHO_T}yes" >&6
19613 else
19614   echo "$as_me: program exited with status $ac_status" >&5
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19617
19618 ( exit $ac_status )
19619 echo "$as_me:$LINENO: result: no" >&5
19620 echo "${ECHO_T}no" >&6
19621 fi
19622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19623 fi
19624
19625
19626     echo "$as_me:$LINENO: checking for va_copy() function" >&5
19627 echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6
19628     if test "${ac_cv_va_copy+set}" = set; then
19629   echo $ECHO_N "(cached) $ECHO_C" >&6
19630 else
19631
19632     ac_cv_va_copy=""
19633
19634
19635
19636     if test ".$ac_cv_va_copy" = .; then
19637         if test "$cross_compiling" = yes; then
19638   ac_cv_va_copy="C99"
19639 else
19640   cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h.  */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h.  */
19646
19647 #include <stdlib.h>
19648 #include <stdarg.h>
19649 #include <string.h>
19650 #define DO_VA_COPY(d, s) va_copy((d), (s))
19651 void test(char *str, ...)
19652 {
19653     va_list ap, ap2;
19654     int i;
19655     va_start(ap, str);
19656     DO_VA_COPY(ap2, ap);
19657     for (i = 1; i <= 9; i++) {
19658         int k = (int)va_arg(ap, int);
19659         if (k != i)
19660             abort();
19661     }
19662     DO_VA_COPY(ap, ap2);
19663     for (i = 1; i <= 9; i++) {
19664         int k = (int)va_arg(ap, int);
19665         if (k != i)
19666             abort();
19667     }
19668     va_end(ap);
19669 }
19670 int main(int argc, char *argv[])
19671 {
19672     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19673     exit(0);
19674 }
19675
19676 _ACEOF
19677 rm -f conftest$ac_exeext
19678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19679   (eval $ac_link) 2>&5
19680   ac_status=$?
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684   (eval $ac_try) 2>&5
19685   ac_status=$?
19686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687   (exit $ac_status); }; }; then
19688   ac_cv_va_copy="C99"
19689 else
19690   echo "$as_me: program exited with status $ac_status" >&5
19691 echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19693
19694 fi
19695 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19696 fi
19697             fi
19698
19699
19700
19701
19702     if test ".$ac_cv_va_copy" = .; then
19703         if test "$cross_compiling" = yes; then
19704   ac_cv_va_copy="GCM"
19705 else
19706   cat >conftest.$ac_ext <<_ACEOF
19707 /* confdefs.h.  */
19708 _ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h.  */
19712
19713 #include <stdlib.h>
19714 #include <stdarg.h>
19715 #include <string.h>
19716 #define DO_VA_COPY(d, s) VA_COPY((d), (s))
19717 void test(char *str, ...)
19718 {
19719     va_list ap, ap2;
19720     int i;
19721     va_start(ap, str);
19722     DO_VA_COPY(ap2, ap);
19723     for (i = 1; i <= 9; i++) {
19724         int k = (int)va_arg(ap, int);
19725         if (k != i)
19726             abort();
19727     }
19728     DO_VA_COPY(ap, ap2);
19729     for (i = 1; i <= 9; i++) {
19730         int k = (int)va_arg(ap, int);
19731         if (k != i)
19732             abort();
19733     }
19734     va_end(ap);
19735 }
19736 int main(int argc, char *argv[])
19737 {
19738     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19739     exit(0);
19740 }
19741
19742 _ACEOF
19743 rm -f conftest$ac_exeext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19745   (eval $ac_link) 2>&5
19746   ac_status=$?
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750   (eval $ac_try) 2>&5
19751   ac_status=$?
19752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753   (exit $ac_status); }; }; then
19754   ac_cv_va_copy="GCM"
19755 else
19756   echo "$as_me: program exited with status $ac_status" >&5
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 fi
19761 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19762 fi
19763             fi
19764
19765
19766
19767
19768     if test ".$ac_cv_va_copy" = .; then
19769         if test "$cross_compiling" = yes; then
19770   ac_cv_va_copy="GCH"
19771 else
19772   cat >conftest.$ac_ext <<_ACEOF
19773 /* confdefs.h.  */
19774 _ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h.  */
19778
19779 #include <stdlib.h>
19780 #include <stdarg.h>
19781 #include <string.h>
19782 #define DO_VA_COPY(d, s) __va_copy((d), (s))
19783 void test(char *str, ...)
19784 {
19785     va_list ap, ap2;
19786     int i;
19787     va_start(ap, str);
19788     DO_VA_COPY(ap2, ap);
19789     for (i = 1; i <= 9; i++) {
19790         int k = (int)va_arg(ap, int);
19791         if (k != i)
19792             abort();
19793     }
19794     DO_VA_COPY(ap, ap2);
19795     for (i = 1; i <= 9; i++) {
19796         int k = (int)va_arg(ap, int);
19797         if (k != i)
19798             abort();
19799     }
19800     va_end(ap);
19801 }
19802 int main(int argc, char *argv[])
19803 {
19804     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19805     exit(0);
19806 }
19807
19808 _ACEOF
19809 rm -f conftest$ac_exeext
19810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19811   (eval $ac_link) 2>&5
19812   ac_status=$?
19813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19816   (eval $ac_try) 2>&5
19817   ac_status=$?
19818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819   (exit $ac_status); }; }; then
19820   ac_cv_va_copy="GCH"
19821 else
19822   echo "$as_me: program exited with status $ac_status" >&5
19823 echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.$ac_ext >&5
19825
19826 fi
19827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19828 fi
19829             fi
19830
19831
19832
19833
19834     if test ".$ac_cv_va_copy" = .; then
19835         if test "$cross_compiling" = yes; then
19836   ac_cv_va_copy="GCB"
19837 else
19838   cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h.  */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h.  */
19844
19845 #include <stdlib.h>
19846 #include <stdarg.h>
19847 #include <string.h>
19848 #define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
19849 void test(char *str, ...)
19850 {
19851     va_list ap, ap2;
19852     int i;
19853     va_start(ap, str);
19854     DO_VA_COPY(ap2, ap);
19855     for (i = 1; i <= 9; i++) {
19856         int k = (int)va_arg(ap, int);
19857         if (k != i)
19858             abort();
19859     }
19860     DO_VA_COPY(ap, ap2);
19861     for (i = 1; i <= 9; i++) {
19862         int k = (int)va_arg(ap, int);
19863         if (k != i)
19864             abort();
19865     }
19866     va_end(ap);
19867 }
19868 int main(int argc, char *argv[])
19869 {
19870     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19871     exit(0);
19872 }
19873
19874 _ACEOF
19875 rm -f conftest$ac_exeext
19876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19877   (eval $ac_link) 2>&5
19878   ac_status=$?
19879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882   (eval $ac_try) 2>&5
19883   ac_status=$?
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); }; }; then
19886   ac_cv_va_copy="GCB"
19887 else
19888   echo "$as_me: program exited with status $ac_status" >&5
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892 fi
19893 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19894 fi
19895             fi
19896
19897
19898
19899
19900     if test ".$ac_cv_va_copy" = .; then
19901         if test "$cross_compiling" = yes; then
19902   ac_cv_va_copy="ASS"
19903 else
19904   cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h.  */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h.  */
19910
19911 #include <stdlib.h>
19912 #include <stdarg.h>
19913 #include <string.h>
19914 #define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
19915 void test(char *str, ...)
19916 {
19917     va_list ap, ap2;
19918     int i;
19919     va_start(ap, str);
19920     DO_VA_COPY(ap2, ap);
19921     for (i = 1; i <= 9; i++) {
19922         int k = (int)va_arg(ap, int);
19923         if (k != i)
19924             abort();
19925     }
19926     DO_VA_COPY(ap, ap2);
19927     for (i = 1; i <= 9; i++) {
19928         int k = (int)va_arg(ap, int);
19929         if (k != i)
19930             abort();
19931     }
19932     va_end(ap);
19933 }
19934 int main(int argc, char *argv[])
19935 {
19936     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
19937     exit(0);
19938 }
19939
19940 _ACEOF
19941 rm -f conftest$ac_exeext
19942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19943   (eval $ac_link) 2>&5
19944   ac_status=$?
19945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948   (eval $ac_try) 2>&5
19949   ac_status=$?
19950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951   (exit $ac_status); }; }; then
19952   ac_cv_va_copy="ASS"
19953 else
19954   echo "$as_me: program exited with status $ac_status" >&5
19955 echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19957
19958 fi
19959 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19960 fi
19961             fi
19962
19963
19964
19965
19966     if test ".$ac_cv_va_copy" = .; then
19967         if test "$cross_compiling" = yes; then
19968   ac_cv_va_copy="ASP"
19969 else
19970   cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h.  */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h.  */
19976
19977 #include <stdlib.h>
19978 #include <stdarg.h>
19979 #include <string.h>
19980 #define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
19981 void test(char *str, ...)
19982 {
19983     va_list ap, ap2;
19984     int i;
19985     va_start(ap, str);
19986     DO_VA_COPY(ap2, ap);
19987     for (i = 1; i <= 9; i++) {
19988         int k = (int)va_arg(ap, int);
19989         if (k != i)
19990             abort();
19991     }
19992     DO_VA_COPY(ap, ap2);
19993     for (i = 1; i <= 9; i++) {
19994         int k = (int)va_arg(ap, int);
19995         if (k != i)
19996             abort();
19997     }
19998     va_end(ap);
19999 }
20000 int main(int argc, char *argv[])
20001 {
20002     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20003     exit(0);
20004 }
20005
20006 _ACEOF
20007 rm -f conftest$ac_exeext
20008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20009   (eval $ac_link) 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014   (eval $ac_try) 2>&5
20015   ac_status=$?
20016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017   (exit $ac_status); }; }; then
20018   ac_cv_va_copy="ASP"
20019 else
20020   echo "$as_me: program exited with status $ac_status" >&5
20021 echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.$ac_ext >&5
20023
20024 fi
20025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20026 fi
20027             fi
20028
20029
20030
20031
20032     if test ".$ac_cv_va_copy" = .; then
20033         if test "$cross_compiling" = yes; then
20034   ac_cv_va_copy="CPS"
20035 else
20036   cat >conftest.$ac_ext <<_ACEOF
20037 /* confdefs.h.  */
20038 _ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h.  */
20042
20043 #include <stdlib.h>
20044 #include <stdarg.h>
20045 #include <string.h>
20046 #define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
20047 void test(char *str, ...)
20048 {
20049     va_list ap, ap2;
20050     int i;
20051     va_start(ap, str);
20052     DO_VA_COPY(ap2, ap);
20053     for (i = 1; i <= 9; i++) {
20054         int k = (int)va_arg(ap, int);
20055         if (k != i)
20056             abort();
20057     }
20058     DO_VA_COPY(ap, ap2);
20059     for (i = 1; i <= 9; i++) {
20060         int k = (int)va_arg(ap, int);
20061         if (k != i)
20062             abort();
20063     }
20064     va_end(ap);
20065 }
20066 int main(int argc, char *argv[])
20067 {
20068     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20069     exit(0);
20070 }
20071
20072 _ACEOF
20073 rm -f conftest$ac_exeext
20074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20075   (eval $ac_link) 2>&5
20076   ac_status=$?
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080   (eval $ac_try) 2>&5
20081   ac_status=$?
20082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083   (exit $ac_status); }; }; then
20084   ac_cv_va_copy="CPS"
20085 else
20086   echo "$as_me: program exited with status $ac_status" >&5
20087 echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20089
20090 fi
20091 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20092 fi
20093             fi
20094
20095
20096
20097
20098     if test ".$ac_cv_va_copy" = .; then
20099         if test "$cross_compiling" = yes; then
20100   ac_cv_va_copy="CPP"
20101 else
20102   cat >conftest.$ac_ext <<_ACEOF
20103 /* confdefs.h.  */
20104 _ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h.  */
20108
20109 #include <stdlib.h>
20110 #include <stdarg.h>
20111 #include <string.h>
20112 #define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
20113 void test(char *str, ...)
20114 {
20115     va_list ap, ap2;
20116     int i;
20117     va_start(ap, str);
20118     DO_VA_COPY(ap2, ap);
20119     for (i = 1; i <= 9; i++) {
20120         int k = (int)va_arg(ap, int);
20121         if (k != i)
20122             abort();
20123     }
20124     DO_VA_COPY(ap, ap2);
20125     for (i = 1; i <= 9; i++) {
20126         int k = (int)va_arg(ap, int);
20127         if (k != i)
20128             abort();
20129     }
20130     va_end(ap);
20131 }
20132 int main(int argc, char *argv[])
20133 {
20134     test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20135     exit(0);
20136 }
20137
20138 _ACEOF
20139 rm -f conftest$ac_exeext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20141   (eval $ac_link) 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146   (eval $ac_try) 2>&5
20147   ac_status=$?
20148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149   (exit $ac_status); }; }; then
20150   ac_cv_va_copy="CPP"
20151 else
20152   echo "$as_me: program exited with status $ac_status" >&5
20153 echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20155
20156 fi
20157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20158 fi
20159             fi
20160
20161     if test ".$ac_cv_va_copy" = .; then
20162         { { echo "$as_me:$LINENO: error: no working implementation found" >&5
20163 echo "$as_me: error: no working implementation found" >&2;}
20164    { (exit 1); exit 1; }; }
20165     fi
20166
20167 fi
20168
20169     if test ".$ac_cv_va_copy" = ".C99"; then
20170
20171 cat >>confdefs.h <<\_ACEOF
20172 #define HAVE_VA_COPY 1
20173 _ACEOF
20174
20175   fi
20176
20177 cat >>confdefs.h <<_ACEOF
20178 #define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
20179 _ACEOF
20180
20181
20182
20183     if test ".$ac_cv_va_copy" = ".C99"; then
20184       echo "$as_me:$LINENO: result: yes" >&5
20185 echo "${ECHO_T}yes" >&6
20186   else
20187       echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
20188 echo "${ECHO_T}no (using fallback implementation)" >&6
20189   fi
20190
20191
20192 # Checks for header files.
20193 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20194 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20195 if test "${ac_cv_header_stdc+set}" = set; then
20196   echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198   cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h.  */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h.  */
20204 #include <stdlib.h>
20205 #include <stdarg.h>
20206 #include <string.h>
20207 #include <float.h>
20208
20209 int
20210 main ()
20211 {
20212
20213   ;
20214   return 0;
20215 }
20216 _ACEOF
20217 rm -f conftest.$ac_objext
20218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20219   (eval $ac_compile) 2>conftest.er1
20220   ac_status=$?
20221   grep -v '^ *+' conftest.er1 >conftest.err
20222   rm -f conftest.er1
20223   cat conftest.err >&5
20224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); } &&
20226          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228   (eval $ac_try) 2>&5
20229   ac_status=$?
20230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231   (exit $ac_status); }; } &&
20232          { ac_try='test -s conftest.$ac_objext'
20233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234   (eval $ac_try) 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; }; then
20238   ac_cv_header_stdc=yes
20239 else
20240   echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20242
20243 ac_cv_header_stdc=no
20244 fi
20245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20246
20247 if test $ac_cv_header_stdc = yes; then
20248   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20249   cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h.  */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h.  */
20255 #include <string.h>
20256
20257 _ACEOF
20258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20259   $EGREP "memchr" >/dev/null 2>&1; then
20260   :
20261 else
20262   ac_cv_header_stdc=no
20263 fi
20264 rm -f conftest*
20265
20266 fi
20267
20268 if test $ac_cv_header_stdc = yes; then
20269   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20270   cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h.  */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h.  */
20276 #include <stdlib.h>
20277
20278 _ACEOF
20279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20280   $EGREP "free" >/dev/null 2>&1; then
20281   :
20282 else
20283   ac_cv_header_stdc=no
20284 fi
20285 rm -f conftest*
20286
20287 fi
20288
20289 if test $ac_cv_header_stdc = yes; then
20290   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20291   if test "$cross_compiling" = yes; then
20292   :
20293 else
20294   cat >conftest.$ac_ext <<_ACEOF
20295 /* confdefs.h.  */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h.  */
20300 #include <ctype.h>
20301 #if ((' ' & 0x0FF) == 0x020)
20302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20304 #else
20305 # define ISLOWER(c) \
20306                    (('a' <= (c) && (c) <= 'i') \
20307                      || ('j' <= (c) && (c) <= 'r') \
20308                      || ('s' <= (c) && (c) <= 'z'))
20309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20310 #endif
20311
20312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20313 int
20314 main ()
20315 {
20316   int i;
20317   for (i = 0; i < 256; i++)
20318     if (XOR (islower (i), ISLOWER (i))
20319         || toupper (i) != TOUPPER (i))
20320       exit(2);
20321   exit (0);
20322 }
20323 _ACEOF
20324 rm -f conftest$ac_exeext
20325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20326   (eval $ac_link) 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20331   (eval $ac_try) 2>&5
20332   ac_status=$?
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); }; }; then
20335   :
20336 else
20337   echo "$as_me: program exited with status $ac_status" >&5
20338 echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20340
20341 ( exit $ac_status )
20342 ac_cv_header_stdc=no
20343 fi
20344 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20345 fi
20346 fi
20347 fi
20348 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20349 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20350 if test $ac_cv_header_stdc = yes; then
20351
20352 cat >>confdefs.h <<\_ACEOF
20353 #define STDC_HEADERS 1
20354 _ACEOF
20355
20356 fi
20357
20358 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20359 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20360 if test "${ac_cv_header_time+set}" = set; then
20361   echo $ECHO_N "(cached) $ECHO_C" >&6
20362 else
20363   cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h.  */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h.  */
20369 #include <sys/types.h>
20370 #include <sys/time.h>
20371 #include <time.h>
20372
20373 int
20374 main ()
20375 {
20376 if ((struct tm *) 0)
20377 return 0;
20378   ;
20379   return 0;
20380 }
20381 _ACEOF
20382 rm -f conftest.$ac_objext
20383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20384   (eval $ac_compile) 2>conftest.er1
20385   ac_status=$?
20386   grep -v '^ *+' conftest.er1 >conftest.err
20387   rm -f conftest.er1
20388   cat conftest.err >&5
20389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390   (exit $ac_status); } &&
20391          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20393   (eval $ac_try) 2>&5
20394   ac_status=$?
20395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396   (exit $ac_status); }; } &&
20397          { ac_try='test -s conftest.$ac_objext'
20398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20399   (eval $ac_try) 2>&5
20400   ac_status=$?
20401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); }; }; then
20403   ac_cv_header_time=yes
20404 else
20405   echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20407
20408 ac_cv_header_time=no
20409 fi
20410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20411 fi
20412 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20413 echo "${ECHO_T}$ac_cv_header_time" >&6
20414 if test $ac_cv_header_time = yes; then
20415
20416 cat >>confdefs.h <<\_ACEOF
20417 #define TIME_WITH_SYS_TIME 1
20418 _ACEOF
20419
20420 fi
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432 for ac_header in sys/socket.h \
20433                   sys/stat.h \
20434                   windows.h winsock.h winsock2.h \
20435                   sys/time.h \
20436                   errno.h unistd.h \
20437                   execinfo.h\
20438                   signal.h
20439 do
20440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20442   echo "$as_me:$LINENO: checking for $ac_header" >&5
20443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20445   echo $ECHO_N "(cached) $ECHO_C" >&6
20446 fi
20447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20449 else
20450   # Is the header compilable?
20451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20453 cat >conftest.$ac_ext <<_ACEOF
20454 /* confdefs.h.  */
20455 _ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h.  */
20459 $ac_includes_default
20460 #include <$ac_header>
20461 _ACEOF
20462 rm -f conftest.$ac_objext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20464   (eval $ac_compile) 2>conftest.er1
20465   ac_status=$?
20466   grep -v '^ *+' conftest.er1 >conftest.err
20467   rm -f conftest.er1
20468   cat conftest.err >&5
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } &&
20471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473   (eval $ac_try) 2>&5
20474   ac_status=$?
20475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476   (exit $ac_status); }; } &&
20477          { ac_try='test -s conftest.$ac_objext'
20478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479   (eval $ac_try) 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); }; }; then
20483   ac_header_compiler=yes
20484 else
20485   echo "$as_me: failed program was:" >&5
20486 sed 's/^/| /' conftest.$ac_ext >&5
20487
20488 ac_header_compiler=no
20489 fi
20490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20492 echo "${ECHO_T}$ac_header_compiler" >&6
20493
20494 # Is the header present?
20495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20497 cat >conftest.$ac_ext <<_ACEOF
20498 /* confdefs.h.  */
20499 _ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h.  */
20503 #include <$ac_header>
20504 _ACEOF
20505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20506   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20507   ac_status=$?
20508   grep -v '^ *+' conftest.er1 >conftest.err
20509   rm -f conftest.er1
20510   cat conftest.err >&5
20511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); } >/dev/null; then
20513   if test -s conftest.err; then
20514     ac_cpp_err=$ac_c_preproc_warn_flag
20515     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20516   else
20517     ac_cpp_err=
20518   fi
20519 else
20520   ac_cpp_err=yes
20521 fi
20522 if test -z "$ac_cpp_err"; then
20523   ac_header_preproc=yes
20524 else
20525   echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20527
20528   ac_header_preproc=no
20529 fi
20530 rm -f conftest.err conftest.$ac_ext
20531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20532 echo "${ECHO_T}$ac_header_preproc" >&6
20533
20534 # So?  What about this header?
20535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20536   yes:no: )
20537     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20541     ac_header_preproc=yes
20542     ;;
20543   no:yes:* )
20544     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20546     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20547 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20548     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20550     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20551 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20554     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20556     (
20557       cat <<\_ASBOX
20558 ## -------------------------------------------------- ##
20559 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
20560 ## -------------------------------------------------- ##
20561 _ASBOX
20562     ) |
20563       sed "s/^/$as_me: WARNING:     /" >&2
20564     ;;
20565 esac
20566 echo "$as_me:$LINENO: checking for $ac_header" >&5
20567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20569   echo $ECHO_N "(cached) $ECHO_C" >&6
20570 else
20571   eval "$as_ac_Header=\$ac_header_preproc"
20572 fi
20573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20575
20576 fi
20577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20578   cat >>confdefs.h <<_ACEOF
20579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20580 _ACEOF
20581
20582 fi
20583
20584 done
20585
20586
20587
20588
20589
20590
20591
20592
20593 for ac_func in gettimeofday usleep \
20594                 getdtablesize \
20595                 sysconf\
20596                 readv\
20597                 popen\
20598                 signal
20599 do
20600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20601 echo "$as_me:$LINENO: checking for $ac_func" >&5
20602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20603 if eval "test \"\${$as_ac_var+set}\" = set"; then
20604   echo $ECHO_N "(cached) $ECHO_C" >&6
20605 else
20606   cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h.  */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h.  */
20612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20614 #define $ac_func innocuous_$ac_func
20615
20616 /* System header to define __stub macros and hopefully few prototypes,
20617     which can conflict with char $ac_func (); below.
20618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20619     <limits.h> exists even on freestanding compilers.  */
20620
20621 #ifdef __STDC__
20622 # include <limits.h>
20623 #else
20624 # include <assert.h>
20625 #endif
20626
20627 #undef $ac_func
20628
20629 /* Override any gcc2 internal prototype to avoid an error.  */
20630 #ifdef __cplusplus
20631 extern "C"
20632 {
20633 #endif
20634 /* We use char because int might match the return type of a gcc2
20635    builtin and then its argument prototype would still apply.  */
20636 char $ac_func ();
20637 /* The GNU C library defines this for functions which it implements
20638     to always fail with ENOSYS.  Some functions are actually named
20639     something starting with __ and the normal name is an alias.  */
20640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20641 choke me
20642 #else
20643 char (*f) () = $ac_func;
20644 #endif
20645 #ifdef __cplusplus
20646 }
20647 #endif
20648
20649 int
20650 main ()
20651 {
20652 return f != $ac_func;
20653   ;
20654   return 0;
20655 }
20656 _ACEOF
20657 rm -f conftest.$ac_objext conftest$ac_exeext
20658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20659   (eval $ac_link) 2>conftest.er1
20660   ac_status=$?
20661   grep -v '^ *+' conftest.er1 >conftest.err
20662   rm -f conftest.er1
20663   cat conftest.err >&5
20664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665   (exit $ac_status); } &&
20666          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668   (eval $ac_try) 2>&5
20669   ac_status=$?
20670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671   (exit $ac_status); }; } &&
20672          { ac_try='test -s conftest$ac_exeext'
20673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674   (eval $ac_try) 2>&5
20675   ac_status=$?
20676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677   (exit $ac_status); }; }; then
20678   eval "$as_ac_var=yes"
20679 else
20680   echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20682
20683 eval "$as_ac_var=no"
20684 fi
20685 rm -f conftest.err conftest.$ac_objext \
20686       conftest$ac_exeext conftest.$ac_ext
20687 fi
20688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20690 if test `eval echo '${'$as_ac_var'}'` = yes; then
20691   cat >>confdefs.h <<_ACEOF
20692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20693 _ACEOF
20694
20695 fi
20696 done
20697
20698
20699 # check for a working snprintf (or use xbt/snprintf.c, which comes from http://www.ijs.si/software/snprintf/)
20700
20701
20702 for ac_func in snprintf vsnprintf
20703 do
20704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20705 echo "$as_me:$LINENO: checking for $ac_func" >&5
20706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20707 if eval "test \"\${$as_ac_var+set}\" = set"; then
20708   echo $ECHO_N "(cached) $ECHO_C" >&6
20709 else
20710   cat >conftest.$ac_ext <<_ACEOF
20711 /* confdefs.h.  */
20712 _ACEOF
20713 cat confdefs.h >>conftest.$ac_ext
20714 cat >>conftest.$ac_ext <<_ACEOF
20715 /* end confdefs.h.  */
20716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20718 #define $ac_func innocuous_$ac_func
20719
20720 /* System header to define __stub macros and hopefully few prototypes,
20721     which can conflict with char $ac_func (); below.
20722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20723     <limits.h> exists even on freestanding compilers.  */
20724
20725 #ifdef __STDC__
20726 # include <limits.h>
20727 #else
20728 # include <assert.h>
20729 #endif
20730
20731 #undef $ac_func
20732
20733 /* Override any gcc2 internal prototype to avoid an error.  */
20734 #ifdef __cplusplus
20735 extern "C"
20736 {
20737 #endif
20738 /* We use char because int might match the return type of a gcc2
20739    builtin and then its argument prototype would still apply.  */
20740 char $ac_func ();
20741 /* The GNU C library defines this for functions which it implements
20742     to always fail with ENOSYS.  Some functions are actually named
20743     something starting with __ and the normal name is an alias.  */
20744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20745 choke me
20746 #else
20747 char (*f) () = $ac_func;
20748 #endif
20749 #ifdef __cplusplus
20750 }
20751 #endif
20752
20753 int
20754 main ()
20755 {
20756 return f != $ac_func;
20757   ;
20758   return 0;
20759 }
20760 _ACEOF
20761 rm -f conftest.$ac_objext conftest$ac_exeext
20762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20763   (eval $ac_link) 2>conftest.er1
20764   ac_status=$?
20765   grep -v '^ *+' conftest.er1 >conftest.err
20766   rm -f conftest.er1
20767   cat conftest.err >&5
20768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769   (exit $ac_status); } &&
20770          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772   (eval $ac_try) 2>&5
20773   ac_status=$?
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); }; } &&
20776          { ac_try='test -s conftest$ac_exeext'
20777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778   (eval $ac_try) 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); }; }; then
20782   eval "$as_ac_var=yes"
20783 else
20784   echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20786
20787 eval "$as_ac_var=no"
20788 fi
20789 rm -f conftest.err conftest.$ac_objext \
20790       conftest$ac_exeext conftest.$ac_ext
20791 fi
20792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20794 if test `eval echo '${'$as_ac_var'}'` = yes; then
20795   cat >>confdefs.h <<_ACEOF
20796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20797 _ACEOF
20798
20799 fi
20800 done
20801
20802 echo "$as_me:$LINENO: checking for working snprintf" >&5
20803 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
20804 if test "${ac_cv_have_working_snprintf+set}" = set; then
20805   echo $ECHO_N "(cached) $ECHO_C" >&6
20806 else
20807   if test "$cross_compiling" = yes; then
20808   ac_cv_have_working_snprintf=cross
20809 else
20810   cat >conftest.$ac_ext <<_ACEOF
20811 /* confdefs.h.  */
20812 _ACEOF
20813 cat confdefs.h >>conftest.$ac_ext
20814 cat >>conftest.$ac_ext <<_ACEOF
20815 /* end confdefs.h.  */
20816 #include <stdio.h>
20817
20818 int main(void)
20819 {
20820     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20821     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20822     int i;
20823     i = snprintf (bufs, 2, "%s", "111");
20824     if (strcmp (bufs, "1")) exit (1);
20825     if (i != 3) exit (1);
20826     i = snprintf (bufd, 2, "%d", 111);
20827     if (strcmp (bufd, "1")) exit (1);
20828     if (i != 3) exit (1);
20829     exit(0);
20830 }
20831 _ACEOF
20832 rm -f conftest$ac_exeext
20833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20834   (eval $ac_link) 2>&5
20835   ac_status=$?
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839   (eval $ac_try) 2>&5
20840   ac_status=$?
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); }; }; then
20843   ac_cv_have_working_snprintf=yes
20844 else
20845   echo "$as_me: program exited with status $ac_status" >&5
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20848
20849 ( exit $ac_status )
20850 ac_cv_have_working_snprintf=no
20851 fi
20852 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20853 fi
20854 fi
20855
20856 echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
20857 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6
20858 echo "$as_me:$LINENO: checking for working vsnprintf" >&5
20859 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
20860 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
20861   echo $ECHO_N "(cached) $ECHO_C" >&6
20862 else
20863   if test "$cross_compiling" = yes; then
20864   ac_cv_have_working_vsnprintf=cross
20865 else
20866   cat >conftest.$ac_ext <<_ACEOF
20867 /* confdefs.h.  */
20868 _ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h.  */
20872 #include <stdio.h>
20873 #include <stdarg.h>
20874
20875 int my_vsnprintf (char *buf, const char *tmpl, ...)
20876 {
20877     int i;
20878     va_list args;
20879     va_start (args, tmpl);
20880     i = vsnprintf (buf, 2, tmpl, args);
20881     va_end (args);
20882     return i;
20883 }
20884
20885 int main(void)
20886 {
20887     char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
20888     char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
20889     int i;
20890     i = my_vsnprintf (bufs, "%s", "111");
20891     if (strcmp (bufs, "1")) exit (1);
20892     if (i != 3) exit (1);
20893     i = my_vsnprintf (bufd, "%d", 111);
20894     if (strcmp (bufd, "1")) exit (1);
20895     if (i != 3) exit (1);
20896     exit(0);
20897 }
20898 _ACEOF
20899 rm -f conftest$ac_exeext
20900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20901   (eval $ac_link) 2>&5
20902   ac_status=$?
20903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20906   (eval $ac_try) 2>&5
20907   ac_status=$?
20908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909   (exit $ac_status); }; }; then
20910   ac_cv_have_working_vsnprintf=yes
20911 else
20912   echo "$as_me: program exited with status $ac_status" >&5
20913 echo "$as_me: failed program was:" >&5
20914 sed 's/^/| /' conftest.$ac_ext >&5
20915
20916 ( exit $ac_status )
20917 ac_cv_have_working_vsnprintf=no
20918 fi
20919 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20920 fi
20921 fi
20922
20923 echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
20924 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6
20925 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
20926   case $LIBOBJS in
20927     "snprintf.$ac_objext"   | \
20928   *" snprintf.$ac_objext"   | \
20929     "snprintf.$ac_objext "* | \
20930   *" snprintf.$ac_objext "* ) ;;
20931   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
20932 esac
20933
20934   { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
20935 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
20936
20937 cat >>confdefs.h <<\_ACEOF
20938 #define PREFER_PORTABLE_SNPRINTF 1
20939 _ACEOF
20940
20941 fi
20942 # check for asprintf function familly (or request the replacements from xbt/snprintf.c)
20943 echo "$as_me:$LINENO: checking for asprintf" >&5
20944 echo $ECHO_N "checking for asprintf... $ECHO_C" >&6
20945 if test "${ac_cv_func_asprintf+set}" = set; then
20946   echo $ECHO_N "(cached) $ECHO_C" >&6
20947 else
20948   cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h.  */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h.  */
20954 /* Define asprintf to an innocuous variant, in case <limits.h> declares asprintf.
20955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20956 #define asprintf innocuous_asprintf
20957
20958 /* System header to define __stub macros and hopefully few prototypes,
20959     which can conflict with char asprintf (); below.
20960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20961     <limits.h> exists even on freestanding compilers.  */
20962
20963 #ifdef __STDC__
20964 # include <limits.h>
20965 #else
20966 # include <assert.h>
20967 #endif
20968
20969 #undef asprintf
20970
20971 /* Override any gcc2 internal prototype to avoid an error.  */
20972 #ifdef __cplusplus
20973 extern "C"
20974 {
20975 #endif
20976 /* We use char because int might match the return type of a gcc2
20977    builtin and then its argument prototype would still apply.  */
20978 char asprintf ();
20979 /* The GNU C library defines this for functions which it implements
20980     to always fail with ENOSYS.  Some functions are actually named
20981     something starting with __ and the normal name is an alias.  */
20982 #if defined (__stub_asprintf) || defined (__stub___asprintf)
20983 choke me
20984 #else
20985 char (*f) () = asprintf;
20986 #endif
20987 #ifdef __cplusplus
20988 }
20989 #endif
20990
20991 int
20992 main ()
20993 {
20994 return f != asprintf;
20995   ;
20996   return 0;
20997 }
20998 _ACEOF
20999 rm -f conftest.$ac_objext conftest$ac_exeext
21000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21001   (eval $ac_link) 2>conftest.er1
21002   ac_status=$?
21003   grep -v '^ *+' conftest.er1 >conftest.err
21004   rm -f conftest.er1
21005   cat conftest.err >&5
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); } &&
21008          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010   (eval $ac_try) 2>&5
21011   ac_status=$?
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); }; } &&
21014          { ac_try='test -s conftest$ac_exeext'
21015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016   (eval $ac_try) 2>&5
21017   ac_status=$?
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); }; }; then
21020   ac_cv_func_asprintf=yes
21021 else
21022   echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025 ac_cv_func_asprintf=no
21026 fi
21027 rm -f conftest.err conftest.$ac_objext \
21028       conftest$ac_exeext conftest.$ac_ext
21029 fi
21030 echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
21031 echo "${ECHO_T}$ac_cv_func_asprintf" >&6
21032 if test $ac_cv_func_asprintf = yes; then
21033   :
21034 else
21035
21036 cat >>confdefs.h <<\_ACEOF
21037 #define NEED_ASPRINTF 1
21038 _ACEOF
21039
21040 fi
21041
21042 echo "$as_me:$LINENO: checking for vasprintf" >&5
21043 echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6
21044 if test "${ac_cv_func_vasprintf+set}" = set; then
21045   echo $ECHO_N "(cached) $ECHO_C" >&6
21046 else
21047   cat >conftest.$ac_ext <<_ACEOF
21048 /* confdefs.h.  */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h.  */
21053 /* Define vasprintf to an innocuous variant, in case <limits.h> declares vasprintf.
21054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21055 #define vasprintf innocuous_vasprintf
21056
21057 /* System header to define __stub macros and hopefully few prototypes,
21058     which can conflict with char vasprintf (); below.
21059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21060     <limits.h> exists even on freestanding compilers.  */
21061
21062 #ifdef __STDC__
21063 # include <limits.h>
21064 #else
21065 # include <assert.h>
21066 #endif
21067
21068 #undef vasprintf
21069
21070 /* Override any gcc2 internal prototype to avoid an error.  */
21071 #ifdef __cplusplus
21072 extern "C"
21073 {
21074 #endif
21075 /* We use char because int might match the return type of a gcc2
21076    builtin and then its argument prototype would still apply.  */
21077 char vasprintf ();
21078 /* The GNU C library defines this for functions which it implements
21079     to always fail with ENOSYS.  Some functions are actually named
21080     something starting with __ and the normal name is an alias.  */
21081 #if defined (__stub_vasprintf) || defined (__stub___vasprintf)
21082 choke me
21083 #else
21084 char (*f) () = vasprintf;
21085 #endif
21086 #ifdef __cplusplus
21087 }
21088 #endif
21089
21090 int
21091 main ()
21092 {
21093 return f != vasprintf;
21094   ;
21095   return 0;
21096 }
21097 _ACEOF
21098 rm -f conftest.$ac_objext conftest$ac_exeext
21099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21100   (eval $ac_link) 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } &&
21107          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109   (eval $ac_try) 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; } &&
21113          { ac_try='test -s conftest$ac_exeext'
21114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115   (eval $ac_try) 2>&5
21116   ac_status=$?
21117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118   (exit $ac_status); }; }; then
21119   ac_cv_func_vasprintf=yes
21120 else
21121   echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21123
21124 ac_cv_func_vasprintf=no
21125 fi
21126 rm -f conftest.err conftest.$ac_objext \
21127       conftest$ac_exeext conftest.$ac_ext
21128 fi
21129 echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
21130 echo "${ECHO_T}$ac_cv_func_vasprintf" >&6
21131 if test $ac_cv_func_vasprintf = yes; then
21132   :
21133 else
21134
21135 cat >>confdefs.h <<\_ACEOF
21136 #define NEED_VASPRINTF 1
21137 _ACEOF
21138
21139 fi
21140
21141 # we don't use those:
21142 # A C_CHECK_FUNC( asnprintf, :,   A C_DEFINE(NEED_ASNPRINTF,  1, enable the asnprintf  replacement))
21143 # A C_CHECK_FUNC(vasnprintf, :,   A C_DEFINE(NEED_VASNPRINTF, 1, enable the vansprintf replacement))
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 *)2147483648)
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 *)2147483648);
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
23951 # Check whether --with-context or --without-context was given.
23952 if test "${with_context+set}" = set; then
23953   withval="$with_context"
23954
23955 else
23956   with_context=auto
23957 fi;
23958
23959 if test "x$with_context$mcsc" = "xucontextno" ; then
23960   { { echo "$as_me:$LINENO: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&5
23961 echo "$as_me: error: --with-context=ucontext specified but ucontext unusable. Relaunch configure without this argument." >&2;}
23962    { (exit 77); exit 77; }; }
23963 fi
23964
23965 case $with_context in
23966  ucontext) ;;
23967  pthread) ;;
23968  windows) ;;
23969  auto) with_context=ucontext;;
23970  *) { { echo "$as_me:$LINENO: error: --with-context must be either ucontext or pthread" >&5
23971 echo "$as_me: error: --with-context must be either ucontext or pthread" >&2;}
23972    { (exit 1); exit 1; }; } ;;
23973 esac
23974
23975 if test "x$with_context" = "xucontext" ; then
23976   if test ".$mcsc" = .yes; then
23977     echo "$as_me:$LINENO: result: found working ucontext. Great!" >&5
23978 echo "${ECHO_T}found working ucontext. Great!" >&6
23979
23980 cat >>confdefs.h <<\_ACEOF
23981 #define USE_UCONTEXT 1
23982 _ACEOF
23983
23984   else
23985     if test ".$windows_context" = .yes ; then
23986       echo "$as_me:$LINENO: result: use windows context portability layer." >&5
23987 echo "${ECHO_T}use windows context portability layer." >&6
23988       with_context=windows
23989     else
23990       echo "$as_me:$LINENO: result: no working ucontext found. Try pthreads as a fallback" >&5
23991 echo "${ECHO_T}no working ucontext found. Try pthreads as a fallback" >&6
23992       with_context=pthread
23993     fi
23994   fi
23995 fi
23996
23997 if test "x$with_context" = "xpthread"; then
23998
23999 for ac_header in pthread.h
24000 do
24001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24003   echo "$as_me:$LINENO: checking for $ac_header" >&5
24004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24006   echo $ECHO_N "(cached) $ECHO_C" >&6
24007 fi
24008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24010 else
24011   # Is the header compilable?
24012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24014 cat >conftest.$ac_ext <<_ACEOF
24015 /* confdefs.h.  */
24016 _ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h.  */
24020 $ac_includes_default
24021 #include <$ac_header>
24022 _ACEOF
24023 rm -f conftest.$ac_objext
24024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24025   (eval $ac_compile) 2>conftest.er1
24026   ac_status=$?
24027   grep -v '^ *+' conftest.er1 >conftest.err
24028   rm -f conftest.er1
24029   cat conftest.err >&5
24030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031   (exit $ac_status); } &&
24032          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24034   (eval $ac_try) 2>&5
24035   ac_status=$?
24036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037   (exit $ac_status); }; } &&
24038          { ac_try='test -s conftest.$ac_objext'
24039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24040   (eval $ac_try) 2>&5
24041   ac_status=$?
24042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043   (exit $ac_status); }; }; then
24044   ac_header_compiler=yes
24045 else
24046   echo "$as_me: failed program was:" >&5
24047 sed 's/^/| /' conftest.$ac_ext >&5
24048
24049 ac_header_compiler=no
24050 fi
24051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24052 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24053 echo "${ECHO_T}$ac_header_compiler" >&6
24054
24055 # Is the header present?
24056 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24058 cat >conftest.$ac_ext <<_ACEOF
24059 /* confdefs.h.  */
24060 _ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h.  */
24064 #include <$ac_header>
24065 _ACEOF
24066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24067   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24068   ac_status=$?
24069   grep -v '^ *+' conftest.er1 >conftest.err
24070   rm -f conftest.er1
24071   cat conftest.err >&5
24072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073   (exit $ac_status); } >/dev/null; then
24074   if test -s conftest.err; then
24075     ac_cpp_err=$ac_c_preproc_warn_flag
24076     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24077   else
24078     ac_cpp_err=
24079   fi
24080 else
24081   ac_cpp_err=yes
24082 fi
24083 if test -z "$ac_cpp_err"; then
24084   ac_header_preproc=yes
24085 else
24086   echo "$as_me: failed program was:" >&5
24087 sed 's/^/| /' conftest.$ac_ext >&5
24088
24089   ac_header_preproc=no
24090 fi
24091 rm -f conftest.err conftest.$ac_ext
24092 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24093 echo "${ECHO_T}$ac_header_preproc" >&6
24094
24095 # So?  What about this header?
24096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24097   yes:no: )
24098     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24099 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24101 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24102     ac_header_preproc=yes
24103     ;;
24104   no:yes:* )
24105     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24107     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24108 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24109     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24110 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24111     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24112 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24114 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24115     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24116 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24117     (
24118       cat <<\_ASBOX
24119 ## -------------------------------------------------- ##
24120 ## Report this to simgrid-devel@lists.gforge.inria.fr ##
24121 ## -------------------------------------------------- ##
24122 _ASBOX
24123     ) |
24124       sed "s/^/$as_me: WARNING:     /" >&2
24125     ;;
24126 esac
24127 echo "$as_me:$LINENO: checking for $ac_header" >&5
24128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24130   echo $ECHO_N "(cached) $ECHO_C" >&6
24131 else
24132   eval "$as_ac_Header=\$ac_header_preproc"
24133 fi
24134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24136
24137 fi
24138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24139   cat >>confdefs.h <<_ACEOF
24140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24141 _ACEOF
24142
24143 fi
24144
24145 done
24146
24147
24148 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24149 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
24150 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24151   echo $ECHO_N "(cached) $ECHO_C" >&6
24152 else
24153   ac_check_lib_save_LIBS=$LIBS
24154 LIBS="-lpthread  $LIBS"
24155 cat >conftest.$ac_ext <<_ACEOF
24156 /* confdefs.h.  */
24157 _ACEOF
24158 cat confdefs.h >>conftest.$ac_ext
24159 cat >>conftest.$ac_ext <<_ACEOF
24160 /* end confdefs.h.  */
24161
24162 /* Override any gcc2 internal prototype to avoid an error.  */
24163 #ifdef __cplusplus
24164 extern "C"
24165 #endif
24166 /* We use char because int might match the return type of a gcc2
24167    builtin and then its argument prototype would still apply.  */
24168 char pthread_create ();
24169 int
24170 main ()
24171 {
24172 pthread_create ();
24173   ;
24174   return 0;
24175 }
24176 _ACEOF
24177 rm -f conftest.$ac_objext conftest$ac_exeext
24178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24179   (eval $ac_link) 2>conftest.er1
24180   ac_status=$?
24181   grep -v '^ *+' conftest.er1 >conftest.err
24182   rm -f conftest.er1
24183   cat conftest.err >&5
24184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185   (exit $ac_status); } &&
24186          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188   (eval $ac_try) 2>&5
24189   ac_status=$?
24190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191   (exit $ac_status); }; } &&
24192          { ac_try='test -s conftest$ac_exeext'
24193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194   (eval $ac_try) 2>&5
24195   ac_status=$?
24196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197   (exit $ac_status); }; }; then
24198   ac_cv_lib_pthread_pthread_create=yes
24199 else
24200   echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24202
24203 ac_cv_lib_pthread_pthread_create=no
24204 fi
24205 rm -f conftest.err conftest.$ac_objext \
24206       conftest$ac_exeext conftest.$ac_ext
24207 LIBS=$ac_check_lib_save_LIBS
24208 fi
24209 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24210 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
24211 if test $ac_cv_lib_pthread_pthread_create = yes; then
24212   cat >>confdefs.h <<_ACEOF
24213 #define HAVE_LIBPTHREAD 1
24214 _ACEOF
24215
24216   LIBS="-lpthread $LIBS"
24217
24218 else
24219   { { echo "$as_me:$LINENO: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&5
24220 echo "$as_me: error: Cannot find pthreads, no way (try --with-context=ucontext if you haven't already tried)." >&2;}
24221    { (exit 1); exit 1; }; }
24222 fi
24223
24224
24225 cat >>confdefs.h <<\_ACEOF
24226 #define USE_PTHREADS 1
24227 _ACEOF
24228
24229   echo "$as_me:$LINENO: result: You have pthreads. Let's use them." >&5
24230 echo "${ECHO_T}You have pthreads. Let's use them." >&6
24231 fi
24232
24233
24234 if test "x$with_context" = "xucontext" ; then
24235   echo "$as_me:$LINENO: checking for direction of stack growth" >&5
24236 echo $ECHO_N "checking for direction of stack growth... $ECHO_C" >&6
24237 if test "${ac_cv_check_stackgrowth+set}" = set; then
24238   echo $ECHO_N "(cached) $ECHO_C" >&6
24239 else
24240
24241 cross_compiling=no
24242 if test "$cross_compiling" = yes; then
24243   ac_cv_check_stackgrowth=down
24244
24245 else
24246   cat >conftest.$ac_ext <<_ACEOF
24247 /* confdefs.h.  */
24248 _ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h.  */
24252
24253 #include <stdio.h>
24254 #include <stdlib.h>
24255 static int iterate = 10;
24256 static int growsdown(int *x)
24257 {
24258     auto int y;
24259     y = (x > &y);
24260     if (--iterate > 0)
24261         y = growsdown(&y);
24262     if (y != (x > &y))
24263         exit(1);
24264     return y;
24265 }
24266 int main(int argc, char *argv[])
24267 {
24268     FILE *f;
24269     auto int x;
24270     if ((f = fopen("conftestval", "w")) == NULL)
24271         exit(1);
24272     fprintf(f, "%s\n", growsdown(&x) ? "down" : "up");;
24273     fclose(f);
24274     exit(0);
24275 }
24276
24277
24278 _ACEOF
24279 rm -f conftest$ac_exeext
24280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24281   (eval $ac_link) 2>&5
24282   ac_status=$?
24283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286   (eval $ac_try) 2>&5
24287   ac_status=$?
24288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289   (exit $ac_status); }; }; then
24290   ac_cv_check_stackgrowth=`cat conftestval`
24291 else
24292   echo "$as_me: program exited with status $ac_status" >&5
24293 echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24295
24296 ( exit $ac_status )
24297 ac_cv_check_stackgrowth=down
24298 fi
24299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24300 fi
24301 fi
24302 echo "$as_me:$LINENO: result: $ac_cv_check_stackgrowth" >&5
24303 echo "${ECHO_T}$ac_cv_check_stackgrowth" >&6
24304 if test ".$ac_cv_check_stackgrowth" = ".down"; then
24305     val="-1"
24306 else
24307     val="+1"
24308 fi
24309
24310 cat >>confdefs.h <<_ACEOF
24311 #define PTH_STACKGROWTH $val
24312 _ACEOF
24313
24314
24315   if test ".$ac_cv_check_stackgrowth" = ".down"; then
24316       PTH_STACK_GROWTH="down"
24317   else
24318       PTH_STACK_GROWTH="up"
24319   fi
24320
24321
24322
24323
24324
24325
24326 for ac_func in makecontext
24327 do
24328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24329 echo "$as_me:$LINENO: checking for $ac_func" >&5
24330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24331 if eval "test \"\${$as_ac_var+set}\" = set"; then
24332   echo $ECHO_N "(cached) $ECHO_C" >&6
24333 else
24334   cat >conftest.$ac_ext <<_ACEOF
24335 /* confdefs.h.  */
24336 _ACEOF
24337 cat confdefs.h >>conftest.$ac_ext
24338 cat >>conftest.$ac_ext <<_ACEOF
24339 /* end confdefs.h.  */
24340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24342 #define $ac_func innocuous_$ac_func
24343
24344 /* System header to define __stub macros and hopefully few prototypes,
24345     which can conflict with char $ac_func (); below.
24346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24347     <limits.h> exists even on freestanding compilers.  */
24348
24349 #ifdef __STDC__
24350 # include <limits.h>
24351 #else
24352 # include <assert.h>
24353 #endif
24354
24355 #undef $ac_func
24356
24357 /* Override any gcc2 internal prototype to avoid an error.  */
24358 #ifdef __cplusplus
24359 extern "C"
24360 {
24361 #endif
24362 /* We use char because int might match the return type of a gcc2
24363    builtin and then its argument prototype would still apply.  */
24364 char $ac_func ();
24365 /* The GNU C library defines this for functions which it implements
24366     to always fail with ENOSYS.  Some functions are actually named
24367     something starting with __ and the normal name is an alias.  */
24368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24369 choke me
24370 #else
24371 char (*f) () = $ac_func;
24372 #endif
24373 #ifdef __cplusplus
24374 }
24375 #endif
24376
24377 int
24378 main ()
24379 {
24380 return f != $ac_func;
24381   ;
24382   return 0;
24383 }
24384 _ACEOF
24385 rm -f conftest.$ac_objext conftest$ac_exeext
24386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24387   (eval $ac_link) 2>conftest.er1
24388   ac_status=$?
24389   grep -v '^ *+' conftest.er1 >conftest.err
24390   rm -f conftest.er1
24391   cat conftest.err >&5
24392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393   (exit $ac_status); } &&
24394          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24396   (eval $ac_try) 2>&5
24397   ac_status=$?
24398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399   (exit $ac_status); }; } &&
24400          { ac_try='test -s conftest$ac_exeext'
24401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24402   (eval $ac_try) 2>&5
24403   ac_status=$?
24404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405   (exit $ac_status); }; }; then
24406   eval "$as_ac_var=yes"
24407 else
24408   echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24410
24411 eval "$as_ac_var=no"
24412 fi
24413 rm -f conftest.err conftest.$ac_objext \
24414       conftest$ac_exeext conftest.$ac_ext
24415 fi
24416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24417 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24418 if test `eval echo '${'$as_ac_var'}'` = yes; then
24419   cat >>confdefs.h <<_ACEOF
24420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24421 _ACEOF
24422
24423 fi
24424 done
24425
24426
24427 echo "$as_me:$LINENO: checking for stack setup via makecontext" >&5
24428 echo $ECHO_N "checking for stack setup via makecontext... $ECHO_C" >&6
24429 if test "${ac_cv_stacksetup_makecontext+set}" = set; then
24430   echo $ECHO_N "(cached) $ECHO_C" >&6
24431 else
24432
24433 if test ".$ac_cv_func_makecontext" = .no; then
24434         ac_cv_stacksetup_makecontext="N.A.:/*N.A.*/,/*N.A.*/"
24435 else
24436         OCFLAGS="$CFLAGS"
24437     CFLAGS="$CFLAGS -DTEST_makecontext"
24438     cross_compiling=no
24439         if test "$cross_compiling" = yes; then
24440
24441 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24442
24443 else
24444   cat >conftest.$ac_ext <<_ACEOF
24445 /* confdefs.h.  */
24446 _ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h.  */
24450
24451 #include <stdio.h>
24452 #include <stdlib.h>
24453 #include <string.h>
24454 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24455 #include <sys/types.h>
24456 #include <signal.h>
24457 #include <unistd.h>
24458 #endif
24459 #if defined(TEST_makecontext)
24460 #include <ucontext.h>
24461 #endif
24462 union alltypes {
24463     long   l;
24464     double d;
24465     void  *vp;
24466     void (*fp)(void);
24467     char  *cp;
24468 };
24469 static volatile char *handler_addr = (char *)0xDEAD;
24470 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24471 static volatile int handler_done = 0;
24472 void handler(int sig)
24473 {
24474     char garbage[1024];
24475     int i;
24476     auto int dummy;
24477     for (i = 0; i < 1024; i++)
24478         garbage[i] = 'X';
24479     handler_addr = (char *)&dummy;
24480     handler_done = 1;
24481     return;
24482 }
24483 #endif
24484 #if defined(TEST_makecontext)
24485 static ucontext_t uc_handler;
24486 static ucontext_t uc_main;
24487 void handler(void)
24488 {
24489     char garbage[1024];
24490     int i;
24491     auto int dummy;
24492     for (i = 0; i < 1024; i++)
24493         garbage[i] = 'X';
24494     handler_addr = (char *)&dummy;
24495     swapcontext(&uc_handler, &uc_main);
24496     return;
24497 }
24498 #endif
24499 int main(int argc, char *argv[])
24500 {
24501     FILE *f;
24502     char *skaddr;
24503     char *skbuf;
24504     int sksize;
24505     char result[1024];
24506     int i;
24507     sksize = 32768;
24508     skbuf = (char *)malloc(sksize*2+2*sizeof(union alltypes));
24509     if (skbuf == NULL)
24510         exit(1);
24511     for (i = 0; i < sksize*2+2*sizeof(union alltypes); i++)
24512         skbuf[i] = 'A';
24513     skaddr = skbuf+sizeof(union alltypes);
24514 #if defined(TEST_sigstack) || defined(TEST_sigaltstack)
24515     {
24516         struct sigaction sa;
24517 #if defined(TEST_sigstack)
24518         struct sigstack ss;
24519 #elif defined(TEST_sigaltstack) && defined(HAVE_STACK_T)
24520         stack_t ss;
24521 #else
24522         struct sigaltstack ss;
24523 #endif
24524 #if defined(TEST_sigstack)
24525         ss.ss_sp      = (void *)(skaddr + sksize);
24526         ss.ss_onstack = 0;
24527         if (sigstack(&ss, NULL) < 0)
24528             exit(1);
24529 #elif defined(TEST_sigaltstack)
24530         ss.ss_sp    = (void *)(skaddr + sksize);
24531         ss.ss_size  = sksize;
24532         ss.ss_flags = 0;
24533         if (sigaltstack(&ss, NULL) < 0)
24534             exit(1);
24535 #endif
24536         memset((void *)&sa, 0, sizeof(struct sigaction));
24537         sa.sa_handler = handler;
24538         sa.sa_flags = SA_ONSTACK;
24539         sigemptyset(&sa.sa_mask);
24540         sigaction(SIGUSR1, &sa, NULL);
24541         kill(getpid(), SIGUSR1);
24542         while (!handler_done)
24543             /*nop*/;
24544     }
24545 #endif
24546 #if defined(TEST_makecontext)
24547     {
24548         if (getcontext(&uc_handler) != 0)
24549             exit(1);
24550         uc_handler.uc_link = NULL;
24551         uc_handler.uc_stack.ss_sp    = (void *)(skaddr + sksize);
24552         uc_handler.uc_stack.ss_size  = sksize;
24553         uc_handler.uc_stack.ss_flags = 0;
24554         makecontext(&uc_handler, handler, 1);
24555         swapcontext(&uc_main, &uc_handler);
24556     }
24557 #endif
24558     if (handler_addr == (char *)0xDEAD)
24559         exit(1);
24560     if (handler_addr < skaddr+sksize) {
24561         /* stack was placed into lower area */
24562         if (*(skaddr+sksize) != 'A')
24563              sprintf(result, "(skaddr)+(sksize)-%d,(sksize)-%d",
24564                      sizeof(union alltypes), sizeof(union alltypes));
24565         else
24566              strcpy(result, "(skaddr)+(sksize),(sksize)");
24567     }
24568     else {
24569         /* stack was placed into higher area */
24570         if (*(skaddr+sksize*2) != 'A')
24571             sprintf(result, "(skaddr),(sksize)-%d", sizeof(union alltypes));
24572         else
24573             strcpy(result, "(skaddr),(sksize)");
24574     }
24575     if ((f = fopen("conftestval", "w")) == NULL)
24576         exit(1);
24577     fprintf(f, "%s\n", result);
24578     fclose(f);
24579     exit(0);
24580 }
24581
24582 _ACEOF
24583 rm -f conftest$ac_exeext
24584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24585   (eval $ac_link) 2>&5
24586   ac_status=$?
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24590   (eval $ac_try) 2>&5
24591   ac_status=$?
24592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593   (exit $ac_status); }; }; then
24594
24595 ac_cv_stacksetup_makecontext=`cat conftestval`
24596 ac_cv_stacksetup_makecontext="ok:$ac_cv_stacksetup_makecontext"
24597
24598 else
24599   echo "$as_me: program exited with status $ac_status" >&5
24600 echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24602
24603 ( exit $ac_status )
24604
24605 ac_cv_stacksetup_makecontext='guessed:(skaddr),(sksize)'
24606
24607 fi
24608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24609 fi
24610 CFLAGS="$OCFLAGS"
24611
24612 fi
24613 fi
24614 type=`echo $ac_cv_stacksetup_makecontext | sed -e 's;:.*$;;'`
24615 addr=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;,.*$;;'`
24616 size=`echo $ac_cv_stacksetup_makecontext | sed -e 's;^.*:;;' -e 's;^.*,;;'`
24617 pth_skaddr_makecontext="#define pth_skaddr_makecontext(skaddr,sksize) ($addr)"
24618 pth_sksize_makecontext="#define pth_sksize_makecontext(skaddr,sksize) ($size)"
24619 echo "$as_me:$LINENO: result: $type" >&5
24620 echo "${ECHO_T}$type" >&6
24621 if test ".$verbose" = .yes; then
24622     echo "$as_me:$LINENO: result:   $pth_skaddr_makecontext" >&5
24623 echo "${ECHO_T}  $pth_skaddr_makecontext" >&6
24624 fi
24625
24626 if test ".$verbose" = .yes; then
24627     echo "$as_me:$LINENO: result:   $pth_sksize_makecontext" >&5
24628 echo "${ECHO_T}  $pth_sksize_makecontext" >&6
24629 fi
24630
24631
24632 fi
24633
24634 #########################################
24635 ## Check for libraries extra-dependencies
24636 ##
24637
24638
24639   echo "$as_me:$LINENO: result: " >&5
24640 echo "${ECHO_T}" >&6
24641   echo "$as_me:$LINENO: result: ${T_MD}Checking extra libraries dependencies...${T_ME}" >&5
24642 echo "${ECHO_T}${T_MD}Checking extra libraries dependencies...${T_ME}" >&6
24643
24644 SIMGRID_DEP=""
24645
24646
24647 GRAS_DEP=""
24648 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24649 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24650 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24651   echo $ECHO_N "(cached) $ECHO_C" >&6
24652 else
24653   ac_check_lib_save_LIBS=$LIBS
24654 LIBS="-lnsl  $LIBS"
24655 cat >conftest.$ac_ext <<_ACEOF
24656 /* confdefs.h.  */
24657 _ACEOF
24658 cat confdefs.h >>conftest.$ac_ext
24659 cat >>conftest.$ac_ext <<_ACEOF
24660 /* end confdefs.h.  */
24661
24662 /* Override any gcc2 internal prototype to avoid an error.  */
24663 #ifdef __cplusplus
24664 extern "C"
24665 #endif
24666 /* We use char because int might match the return type of a gcc2
24667    builtin and then its argument prototype would still apply.  */
24668 char gethostbyname ();
24669 int
24670 main ()
24671 {
24672 gethostbyname ();
24673   ;
24674   return 0;
24675 }
24676 _ACEOF
24677 rm -f conftest.$ac_objext conftest$ac_exeext
24678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24679   (eval $ac_link) 2>conftest.er1
24680   ac_status=$?
24681   grep -v '^ *+' conftest.er1 >conftest.err
24682   rm -f conftest.er1
24683   cat conftest.err >&5
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); } &&
24686          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688   (eval $ac_try) 2>&5
24689   ac_status=$?
24690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691   (exit $ac_status); }; } &&
24692          { ac_try='test -s conftest$ac_exeext'
24693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24694   (eval $ac_try) 2>&5
24695   ac_status=$?
24696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697   (exit $ac_status); }; }; then
24698   ac_cv_lib_nsl_gethostbyname=yes
24699 else
24700   echo "$as_me: failed program was:" >&5
24701 sed 's/^/| /' conftest.$ac_ext >&5
24702
24703 ac_cv_lib_nsl_gethostbyname=no
24704 fi
24705 rm -f conftest.err conftest.$ac_objext \
24706       conftest$ac_exeext conftest.$ac_ext
24707 LIBS=$ac_check_lib_save_LIBS
24708 fi
24709 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24710 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24711 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24712   GRAS_DEP="$GRAS_DEP -lnsl"
24713 fi
24714
24715 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24716 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24717 if test "${ac_cv_lib_socket_connect+set}" = set; then
24718   echo $ECHO_N "(cached) $ECHO_C" >&6
24719 else
24720   ac_check_lib_save_LIBS=$LIBS
24721 LIBS="-lsocket  $LIBS"
24722 cat >conftest.$ac_ext <<_ACEOF
24723 /* confdefs.h.  */
24724 _ACEOF
24725 cat confdefs.h >>conftest.$ac_ext
24726 cat >>conftest.$ac_ext <<_ACEOF
24727 /* end confdefs.h.  */
24728
24729 /* Override any gcc2 internal prototype to avoid an error.  */
24730 #ifdef __cplusplus
24731 extern "C"
24732 #endif
24733 /* We use char because int might match the return type of a gcc2
24734    builtin and then its argument prototype would still apply.  */
24735 char connect ();
24736 int
24737 main ()
24738 {
24739 connect ();
24740   ;
24741   return 0;
24742 }
24743 _ACEOF
24744 rm -f conftest.$ac_objext conftest$ac_exeext
24745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24746   (eval $ac_link) 2>conftest.er1
24747   ac_status=$?
24748   grep -v '^ *+' conftest.er1 >conftest.err
24749   rm -f conftest.er1
24750   cat conftest.err >&5
24751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24752   (exit $ac_status); } &&
24753          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24755   (eval $ac_try) 2>&5
24756   ac_status=$?
24757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758   (exit $ac_status); }; } &&
24759          { ac_try='test -s conftest$ac_exeext'
24760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761   (eval $ac_try) 2>&5
24762   ac_status=$?
24763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764   (exit $ac_status); }; }; then
24765   ac_cv_lib_socket_connect=yes
24766 else
24767   echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24769
24770 ac_cv_lib_socket_connect=no
24771 fi
24772 rm -f conftest.err conftest.$ac_objext \
24773       conftest$ac_exeext conftest.$ac_ext
24774 LIBS=$ac_check_lib_save_LIBS
24775 fi
24776 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24777 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24778 if test $ac_cv_lib_socket_connect = yes; then
24779   GRAS_DEP="$GRAS_DEP -lsocket"
24780 fi
24781
24782
24783 echo "$as_me:$LINENO: checking for extra dependencies of libgras" >&5
24784 echo $ECHO_N "checking for extra dependencies of libgras... $ECHO_C" >&6
24785 case $host_os in
24786   *mingw* ) GRAS_DEP="$GRAS_DEP -lws2_32" ; SIMGRID_DEP="$SIMGRID_DEP -lws2_32" ;;
24787 esac
24788
24789 if test "x$GRAS_DEP" = x; then
24790    echo "$as_me:$LINENO: result: none" >&5
24791 echo "${ECHO_T}none" >&6
24792 else
24793    echo "$as_me:$LINENO: result: $GRAS_DEP" >&5
24794 echo "${ECHO_T}$GRAS_DEP" >&6
24795 fi
24796
24797
24798 ##############################################
24799 ## Enhance maintainer mode and SUBST variables
24800 ## (must be placed after any compilation tests since our overprotective flags
24801 ##  let some tests fail)
24802
24803 # Check whether we are doing a regular build or a GRAMINE (minimal) one
24804 # Next line is modified by sed when building gramine source tree
24805 gramine_mode=no
24806 if test x$gramine_mode = xyes
24807 then
24808   USE_MAINTAINER_MODE=no
24809 fi
24810
24811
24812 if test x$gramine_mode != xno; then
24813   GRAMINE_MODE_TRUE=
24814   GRAMINE_MODE_FALSE='#'
24815 else
24816   GRAMINE_MODE_TRUE='#'
24817   GRAMINE_MODE_FALSE=
24818 fi
24819
24820
24821
24822 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24823 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24824     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24825 if test "${enable_maintainer_mode+set}" = set; then
24826   enableval="$enable_maintainer_mode"
24827   USE_MAINTAINER_MODE=$enableval
24828 else
24829   USE_MAINTAINER_MODE=no
24830 fi;
24831   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
24832 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
24833
24834
24835 if test $USE_MAINTAINER_MODE = yes; then
24836   MAINTAINER_MODE_TRUE=
24837   MAINTAINER_MODE_FALSE='#'
24838 else
24839   MAINTAINER_MODE_TRUE='#'
24840   MAINTAINER_MODE_FALSE=
24841 fi
24842
24843   MAINT=$MAINTAINER_MODE_TRUE
24844
24845
24846 if test x$USE_MAINTAINER_MODE = xyes
24847 then
24848    # Maintainers have no choice ! I'm a BOFH, and I plainly assume. [Mt]
24849    enable_compile_warnings=yes
24850 fi
24851
24852   # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
24853 if test "${enable_compile_warnings+set}" = set; then
24854   enableval="$enable_compile_warnings"
24855   enable_compile_warnings=$enableval
24856 else
24857   enable_compile_warnings=no
24858 fi;
24859
24860   # Check whether --enable-compile-optimizations or --disable-compile-optimizations was given.
24861 if test "${enable_compile_optimizations+set}" = set; then
24862   enableval="$enable_compile_optimizations"
24863   enable_compile_optimizations=$enableval
24864 else
24865   enable_compile_optimizations=auto
24866 fi;
24867
24868   if test "x$cflags_set" != "xyes" ; then
24869     # if user didn't specify CFLAGS explicitely
24870
24871     # AC PROG CC tests whether -g is accepted.
24872     # Cool, but it also tries to set -O2. I don't want it with gcc
24873     saveCFLAGS="$CFLAGS"
24874     CFLAGS=
24875     case " $saveCFLAGS " in
24876     *-g*) CFLAGS="-g" ;;
24877     esac
24878     case " $saveCFLAGS " in
24879     *-O2*) test "x$CC" = xgcc || CFLAGS="$CFLAGS -O2" ;;
24880     esac
24881
24882     # damn AC PROG CC, why did you set -O??
24883     CFLAGS="-g"
24884   fi
24885
24886   if test "x$enable_compile_warnings" = "xyes" ; then
24887     echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
24888 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6
24889     warnCFLAGS=
24890     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
24891       case " $CFLAGS " in
24892       *-Wall*) ;;
24893       *) warnCFLAGS="-Wall -Wunused" ;;
24894       esac
24895
24896       ## -W is not all that useful.  And it cannot be controlled
24897       ## with individual -Wno-xxx flags, unlike -Wall
24898
24899       ## -Wformat=2 chokes on the snprintf replacement because the format is passed to real sprintf
24900       ## -Wshadow chokes on try{ try{} } constructs
24901       if test "x$enable_compile_warnings" = "xyes"; then
24902         warnCFLAGS=`echo $warnCFLAGS  -Wmissing-prototypes -Wmissing-declarations \
24903         -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings \
24904         -Wno-unused-function  \
24905         -Werror \
24906         | sed 's/ +/ /g'`
24907         # -Wno-unused-variable  -Wno-unused-label
24908       fi
24909     fi
24910     echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
24911 echo "${ECHO_T}$warnCFLAGS" >&6
24912     # placed before since gcc remembers the last one on conflict
24913     CFLAGS="$warnCFLAGS $CFLAGS"
24914   fi
24915
24916   if test "x$enable_compile_optimizations" = "xyes" ||
24917      test "x$enable_compile_optimizations" = "xauto" ; then
24918     echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
24919 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6
24920     optCFLAGS=
24921     if test "x$CC" = "xgcc" || test "x$GCC" = "xyes" ; then
24922         case " $CFLAGS " in
24923         *-O*) ;;
24924         *) optCFLAGS="$optCFLAGS -O3" ;;
24925         esac
24926         optCFLAGS="$optCFLAGS -finline-functions -ffast-math -funroll-loops -fno-strict-aliasing"
24927
24928         GCC_VER=`gcc --version | head -n 1 | sed 's/^^0-9*\(^ *\).*$/\1/'`
24929         GCC_VER_MAJ=`echo $GCC_VER | sed 's/^\(.\).*$/\1/'`
24930         if test "x$target_cpu" = "xpowerpc" && test "x$GCC_VER_MAJ" != "x2" ; then
24931           # avoid gcc bug #12828, which is fixed in 3.4.0, but this version
24932           # isn't propagated enough to desserve an extra check
24933
24934           # Note that the flag didn't exist before gcc 3.0
24935           optCFLAGS="$optCFLAGS -fno-loop-optimize"
24936         fi
24937             fi
24938     echo "$as_me:$LINENO: result: $optCFLAGS" >&5
24939 echo "${ECHO_T}$optCFLAGS" >&6
24940     # Take it only if CFLAGS not explicitly set. Unless the flag was explicitly given
24941     if test "x$cflags_set" != "xyes" ; then
24942       CFLAGS="$optCFLAGS $CFLAGS"
24943     fi
24944   fi
24945
24946   if test x$lt_cv_prog_gnu_ld = xyes ; then
24947     LD_DYNAMIC_FLAGS=-Wl,--export-dynamic
24948   else
24949     LD_DYNAMIC_FLAGS=
24950   fi
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963 #####################
24964 ## Check for programs
24965 ##
24966
24967
24968   echo "$as_me:$LINENO: result: " >&5
24969 echo "${ECHO_T}" >&6
24970   echo "$as_me:$LINENO: result: ${T_MD}Check for programs...${T_ME}" >&5
24971 echo "${ECHO_T}${T_MD}Check for programs...${T_ME}" >&6
24972
24973 # Extract the first word of "bash", so it can be a program name with args.
24974 set dummy bash; ac_word=$2
24975 echo "$as_me:$LINENO: checking for $ac_word" >&5
24976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24977 if test "${ac_cv_prog_BASH+set}" = set; then
24978   echo $ECHO_N "(cached) $ECHO_C" >&6
24979 else
24980   if test -n "$BASH"; then
24981   ac_cv_prog_BASH="$BASH" # Let the user override the test.
24982 else
24983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24984 for as_dir in $PATH
24985 do
24986   IFS=$as_save_IFS
24987   test -z "$as_dir" && as_dir=.
24988   for ac_exec_ext in '' $ac_executable_extensions; do
24989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24990     ac_cv_prog_BASH="`which bash`"
24991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24992     break 2
24993   fi
24994 done
24995 done
24996
24997   test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
24998 fi
24999 fi
25000 BASH=$ac_cv_prog_BASH
25001 if test -n "$BASH"; then
25002   echo "$as_me:$LINENO: result: $BASH" >&5
25003 echo "${ECHO_T}$BASH" >&6
25004 else
25005   echo "$as_me:$LINENO: result: no" >&5
25006 echo "${ECHO_T}no" >&6
25007 fi
25008
25009 WARNING="This file is generated, do not edit"
25010
25011
25012
25013 # Can we rebuild the parsers?
25014 # We really want flex and refuse other lex. So, the parser is portable and
25015 # does not induce extra lib dependency
25016 for ac_prog in flex lex
25017 do
25018   # Extract the first word of "$ac_prog", so it can be a program name with args.
25019 set dummy $ac_prog; ac_word=$2
25020 echo "$as_me:$LINENO: checking for $ac_word" >&5
25021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25022 if test "${ac_cv_prog_LEX+set}" = set; then
25023   echo $ECHO_N "(cached) $ECHO_C" >&6
25024 else
25025   if test -n "$LEX"; then
25026   ac_cv_prog_LEX="$LEX" # Let the user override the test.
25027 else
25028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25029 for as_dir in $PATH
25030 do
25031   IFS=$as_save_IFS
25032   test -z "$as_dir" && as_dir=.
25033   for ac_exec_ext in '' $ac_executable_extensions; do
25034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25035     ac_cv_prog_LEX="$ac_prog"
25036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25037     break 2
25038   fi
25039 done
25040 done
25041
25042 fi
25043 fi
25044 LEX=$ac_cv_prog_LEX
25045 if test -n "$LEX"; then
25046   echo "$as_me:$LINENO: result: $LEX" >&5
25047 echo "${ECHO_T}$LEX" >&6
25048 else
25049   echo "$as_me:$LINENO: result: no" >&5
25050 echo "${ECHO_T}no" >&6
25051 fi
25052
25053   test -n "$LEX" && break
25054 done
25055 test -n "$LEX" || LEX=":"
25056
25057 if test -z "$LEXLIB"
25058 then
25059   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
25060 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
25061 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
25062   echo $ECHO_N "(cached) $ECHO_C" >&6
25063 else
25064   ac_check_lib_save_LIBS=$LIBS
25065 LIBS="-lfl  $LIBS"
25066 cat >conftest.$ac_ext <<_ACEOF
25067 /* confdefs.h.  */
25068 _ACEOF
25069 cat confdefs.h >>conftest.$ac_ext
25070 cat >>conftest.$ac_ext <<_ACEOF
25071 /* end confdefs.h.  */
25072
25073 /* Override any gcc2 internal prototype to avoid an error.  */
25074 #ifdef __cplusplus
25075 extern "C"
25076 #endif
25077 /* We use char because int might match the return type of a gcc2
25078    builtin and then its argument prototype would still apply.  */
25079 char yywrap ();
25080 int
25081 main ()
25082 {
25083 yywrap ();
25084   ;
25085   return 0;
25086 }
25087 _ACEOF
25088 rm -f conftest.$ac_objext conftest$ac_exeext
25089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25090   (eval $ac_link) 2>conftest.er1
25091   ac_status=$?
25092   grep -v '^ *+' conftest.er1 >conftest.err
25093   rm -f conftest.er1
25094   cat conftest.err >&5
25095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096   (exit $ac_status); } &&
25097          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099   (eval $ac_try) 2>&5
25100   ac_status=$?
25101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102   (exit $ac_status); }; } &&
25103          { ac_try='test -s conftest$ac_exeext'
25104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105   (eval $ac_try) 2>&5
25106   ac_status=$?
25107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); }; }; then
25109   ac_cv_lib_fl_yywrap=yes
25110 else
25111   echo "$as_me: failed program was:" >&5
25112 sed 's/^/| /' conftest.$ac_ext >&5
25113
25114 ac_cv_lib_fl_yywrap=no
25115 fi
25116 rm -f conftest.err conftest.$ac_objext \
25117       conftest$ac_exeext conftest.$ac_ext
25118 LIBS=$ac_check_lib_save_LIBS
25119 fi
25120 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
25121 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
25122 if test $ac_cv_lib_fl_yywrap = yes; then
25123   LEXLIB="-lfl"
25124 else
25125   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
25126 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
25127 if test "${ac_cv_lib_l_yywrap+set}" = set; then
25128   echo $ECHO_N "(cached) $ECHO_C" >&6
25129 else
25130   ac_check_lib_save_LIBS=$LIBS
25131 LIBS="-ll  $LIBS"
25132 cat >conftest.$ac_ext <<_ACEOF
25133 /* confdefs.h.  */
25134 _ACEOF
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h.  */
25138
25139 /* Override any gcc2 internal prototype to avoid an error.  */
25140 #ifdef __cplusplus
25141 extern "C"
25142 #endif
25143 /* We use char because int might match the return type of a gcc2
25144    builtin and then its argument prototype would still apply.  */
25145 char yywrap ();
25146 int
25147 main ()
25148 {
25149 yywrap ();
25150   ;
25151   return 0;
25152 }
25153 _ACEOF
25154 rm -f conftest.$ac_objext conftest$ac_exeext
25155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25156   (eval $ac_link) 2>conftest.er1
25157   ac_status=$?
25158   grep -v '^ *+' conftest.er1 >conftest.err
25159   rm -f conftest.er1
25160   cat conftest.err >&5
25161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162   (exit $ac_status); } &&
25163          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25165   (eval $ac_try) 2>&5
25166   ac_status=$?
25167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168   (exit $ac_status); }; } &&
25169          { ac_try='test -s conftest$ac_exeext'
25170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25171   (eval $ac_try) 2>&5
25172   ac_status=$?
25173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174   (exit $ac_status); }; }; then
25175   ac_cv_lib_l_yywrap=yes
25176 else
25177   echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25179
25180 ac_cv_lib_l_yywrap=no
25181 fi
25182 rm -f conftest.err conftest.$ac_objext \
25183       conftest$ac_exeext conftest.$ac_ext
25184 LIBS=$ac_check_lib_save_LIBS
25185 fi
25186 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
25187 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
25188 if test $ac_cv_lib_l_yywrap = yes; then
25189   LEXLIB="-ll"
25190 fi
25191
25192 fi
25193
25194 fi
25195
25196 if test "x$LEX" != "x:"; then
25197   echo "$as_me:$LINENO: checking lex output file root" >&5
25198 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
25199 if test "${ac_cv_prog_lex_root+set}" = set; then
25200   echo $ECHO_N "(cached) $ECHO_C" >&6
25201 else
25202   # The minimal lex program is just a single line: %%.  But some broken lexes
25203 # (Solaris, I think it was) want two %% lines, so accommodate them.
25204 cat >conftest.l <<_ACEOF
25205 %%
25206 %%
25207 _ACEOF
25208 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
25209   (eval $LEX conftest.l) 2>&5
25210   ac_status=$?
25211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212   (exit $ac_status); }
25213 if test -f lex.yy.c; then
25214   ac_cv_prog_lex_root=lex.yy
25215 elif test -f lexyy.c; then
25216   ac_cv_prog_lex_root=lexyy
25217 else
25218   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
25219 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
25220    { (exit 1); exit 1; }; }
25221 fi
25222 fi
25223 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
25224 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
25225 rm -f conftest.l
25226 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
25227
25228 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
25229 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
25230 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
25231   echo $ECHO_N "(cached) $ECHO_C" >&6
25232 else
25233   # POSIX says lex can declare yytext either as a pointer or an array; the
25234 # default is implementation-dependent. Figure out which it is, since
25235 # not all implementations provide the %pointer and %array declarations.
25236 ac_cv_prog_lex_yytext_pointer=no
25237 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
25238 ac_save_LIBS=$LIBS
25239 LIBS="$LIBS $LEXLIB"
25240 cat >conftest.$ac_ext <<_ACEOF
25241 `cat $LEX_OUTPUT_ROOT.c`
25242 _ACEOF
25243 rm -f conftest.$ac_objext conftest$ac_exeext
25244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25245   (eval $ac_link) 2>conftest.er1
25246   ac_status=$?
25247   grep -v '^ *+' conftest.er1 >conftest.err
25248   rm -f conftest.er1
25249   cat conftest.err >&5
25250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); } &&
25252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25254   (eval $ac_try) 2>&5
25255   ac_status=$?
25256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257   (exit $ac_status); }; } &&
25258          { ac_try='test -s conftest$ac_exeext'
25259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25260   (eval $ac_try) 2>&5
25261   ac_status=$?
25262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263   (exit $ac_status); }; }; then
25264   ac_cv_prog_lex_yytext_pointer=yes
25265 else
25266   echo "$as_me: failed program was:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25268
25269 fi
25270 rm -f conftest.err conftest.$ac_objext \
25271       conftest$ac_exeext conftest.$ac_ext
25272 LIBS=$ac_save_LIBS
25273 rm -f "${LEX_OUTPUT_ROOT}.c"
25274
25275 fi
25276 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
25277 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
25278 if test $ac_cv_prog_lex_yytext_pointer = yes; then
25279
25280 cat >>confdefs.h <<\_ACEOF
25281 #define YYTEXT_POINTER 1
25282 _ACEOF
25283
25284 fi
25285
25286 fi
25287
25288   if test "$LEX" != flex; then
25289     { echo "$as_me:$LINENO: Flex not found. Parsers won't get updated." >&5
25290 echo "$as_me: Flex not found. Parsers won't get updated." >&6;}
25291     LEX=${am_missing_run}flex
25292     LEXLIB=''
25293
25294   else
25295     if test "x2.5.30" != "x" ; then
25296                               FLEX_VERSION=`flex --version | sed -e 's/^[^0-9]*//' -e 's/[^0-9]*$//'`
25297
25298       FLEX_VER_MAJ=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25299       FLEX_VER_MED=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25300       FLEX_VER_MIN=`echo "$FLEX_VERSION" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25301
25302       WANT_VER_MAJ=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`;
25303       WANT_VER_MED=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`;
25304       WANT_VER_MIN=`echo 2.5.30 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`;
25305
25306       if test "$FLEX_VER_MAJ" -lt "$WANT_VER_MAJ" ||
25307          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -lt "$WANT_VER_MED"  ||
25308          test "$FLEX_VER_MAJ" -eq "$WANT_VER_MAJ" -a "$FLEX_VER_MED" -eq "$WANT_VER_MED" -a "$FLEX_VER_MIN" -lt "$WANT_VER_MIN" ;
25309       then
25310         { echo "$as_me:$LINENO: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&5
25311 echo "$as_me: Found flex is too old. Parsers won't get updated (Found v$FLEX_VERSION < v2.5.30)" >&6;}
25312         LEX=${am_missing_run}flex
25313         LEXLIB=''
25314
25315       else
25316         { echo "$as_me:$LINENO: Flex found. Parsers will get updated" >&5
25317 echo "$as_me: Flex found. Parsers will get updated" >&6;}
25318       fi
25319     fi
25320   fi
25321
25322
25323 # Can we rebuild the xml-lexers from the XML specification?
25324 # if not, simply touch the flex source files (which are distributed in
25325 #  tarballs even if generated by flexml) and hope for the best.
25326 # Extract the first word of "flexml", so it can be a program name with args.
25327 set dummy flexml; ac_word=$2
25328 echo "$as_me:$LINENO: checking for $ac_word" >&5
25329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25330 if test "${ac_cv_prog_FLEXML+set}" = set; then
25331   echo $ECHO_N "(cached) $ECHO_C" >&6
25332 else
25333   if test -n "$FLEXML"; then
25334   ac_cv_prog_FLEXML="$FLEXML" # Let the user override the test.
25335 else
25336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25337 for as_dir in $PATH
25338 do
25339   IFS=$as_save_IFS
25340   test -z "$as_dir" && as_dir=.
25341   for ac_exec_ext in '' $ac_executable_extensions; do
25342   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25343     ac_cv_prog_FLEXML="`which flexml`"
25344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25345     break 2
25346   fi
25347 done
25348 done
25349
25350   test -z "$ac_cv_prog_FLEXML" && ac_cv_prog_FLEXML="NOTFOUND"
25351 fi
25352 fi
25353 FLEXML=$ac_cv_prog_FLEXML
25354 if test -n "$FLEXML"; then
25355   echo "$as_me:$LINENO: result: $FLEXML" >&5
25356 echo "${ECHO_T}$FLEXML" >&6
25357 else
25358   echo "$as_me:$LINENO: result: no" >&5
25359 echo "${ECHO_T}no" >&6
25360 fi
25361
25362
25363
25364 if test x$FLEXML != xNOTFOUND; then
25365   HAVE_FLEXML_TRUE=
25366   HAVE_FLEXML_FALSE='#'
25367 else
25368   HAVE_FLEXML_TRUE='#'
25369   HAVE_FLEXML_FALSE=
25370 fi
25371
25372
25373 if test x$USE_MAINTAINER_MODE = xyes
25374 then
25375    # Check for doxygen when in maintainer mode since dist* targets fail
25376    # without it
25377    # Extract the first word of "doxygen", so it can be a program name with args.
25378 set dummy doxygen; ac_word=$2
25379 echo "$as_me:$LINENO: checking for $ac_word" >&5
25380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25381 if test "${ac_cv_path_DOXYGEN+set}" = set; then
25382   echo $ECHO_N "(cached) $ECHO_C" >&6
25383 else
25384   case $DOXYGEN in
25385   [\\/]* | ?:[\\/]*)
25386   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
25387   ;;
25388   *)
25389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25390 for as_dir in $PATH
25391 do
25392   IFS=$as_save_IFS
25393   test -z "$as_dir" && as_dir=.
25394   for ac_exec_ext in '' $ac_executable_extensions; do
25395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25396     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
25397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25398     break 2
25399   fi
25400 done
25401 done
25402
25403   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="`which doxygen`"
25404   ;;
25405 esac
25406 fi
25407 DOXYGEN=$ac_cv_path_DOXYGEN
25408
25409 if test -n "$DOXYGEN"; then
25410   echo "$as_me:$LINENO: result: $DOXYGEN" >&5
25411 echo "${ECHO_T}$DOXYGEN" >&6
25412 else
25413   echo "$as_me:$LINENO: result: no" >&5
25414 echo "${ECHO_T}no" >&6
25415 fi
25416
25417    if test x$DOXYGEN = x ; then
25418      { { echo "$as_me:$LINENO: error: doxygen is mandatory in maintainer mode" >&5
25419 echo "$as_me: error: doxygen is mandatory in maintainer mode" >&2;}
25420    { (exit 1); exit 1; }; }
25421    fi
25422 fi
25423
25424 # Can we extract really usable backtraces? (also need the popen function)
25425 # Extract the first word of "addr2line", so it can be a program name with args.
25426 set dummy addr2line; ac_word=$2
25427 echo "$as_me:$LINENO: checking for $ac_word" >&5
25428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25429 if test "${ac_cv_path_ADDR2LINE+set}" = set; then
25430   echo $ECHO_N "(cached) $ECHO_C" >&6
25431 else
25432   case $ADDR2LINE in
25433   [\\/]* | ?:[\\/]*)
25434   ac_cv_path_ADDR2LINE="$ADDR2LINE" # Let the user override the test with a path.
25435   ;;
25436   *)
25437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25438 for as_dir in $PATH
25439 do
25440   IFS=$as_save_IFS
25441   test -z "$as_dir" && as_dir=.
25442   for ac_exec_ext in '' $ac_executable_extensions; do
25443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25444     ac_cv_path_ADDR2LINE="$as_dir/$ac_word$ac_exec_ext"
25445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25446     break 2
25447   fi
25448 done
25449 done
25450
25451   ;;
25452 esac
25453 fi
25454 ADDR2LINE=$ac_cv_path_ADDR2LINE
25455
25456 if test -n "$ADDR2LINE"; then
25457   echo "$as_me:$LINENO: result: $ADDR2LINE" >&5
25458 echo "${ECHO_T}$ADDR2LINE" >&6
25459 else
25460   echo "$as_me:$LINENO: result: no" >&5
25461 echo "${ECHO_T}no" >&6
25462 fi
25463
25464 if test x$ADDR2LINE != x ; then
25465
25466 cat >>confdefs.h <<_ACEOF
25467 #define ADDR2LINE "$ADDR2LINE"
25468 _ACEOF
25469
25470 fi
25471
25472
25473 # Can we make status line about the compilation result?
25474 # Extract the first word of "md5sum", so it can be a program name with args.
25475 set dummy md5sum; ac_word=$2
25476 echo "$as_me:$LINENO: checking for $ac_word" >&5
25477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25478 if test "${ac_cv_prog_MD5SUM+set}" = set; then
25479   echo $ECHO_N "(cached) $ECHO_C" >&6
25480 else
25481   if test -n "$MD5SUM"; then
25482   ac_cv_prog_MD5SUM="$MD5SUM" # Let the user override the test.
25483 else
25484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25485 for as_dir in $PATH
25486 do
25487   IFS=$as_save_IFS
25488   test -z "$as_dir" && as_dir=.
25489   for ac_exec_ext in '' $ac_executable_extensions; do
25490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25491     ac_cv_prog_MD5SUM="`which md5sum`"
25492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25493     break 2
25494   fi
25495 done
25496 done
25497
25498 fi
25499 fi
25500 MD5SUM=$ac_cv_prog_MD5SUM
25501 if test -n "$MD5SUM"; then
25502   echo "$as_me:$LINENO: result: $MD5SUM" >&5
25503 echo "${ECHO_T}$MD5SUM" >&6
25504 else
25505   echo "$as_me:$LINENO: result: no" >&5
25506 echo "${ECHO_T}no" >&6
25507 fi
25508
25509 if test x$MD5SUM != xno ; then
25510   build_version=`find -name '*.ch' |grep -v src/ucontext_stack.h | grep -v src/gras_config.h |\
25511                  xargs cat| $MD5SUM | sed 's/ .*$//'`
25512 else
25513   build_version="no_md5sum_binary"
25514 fi
25515 build_id="$PACKAGE ver=$VERSION build=$build_version args=\"$ac_configure_args\""
25516
25517
25518 ###################
25519 ## Makes the output
25520 ##
25521
25522
25523 #
25524 #      examples/gras/chord/Makefile  examples/gras/chord/test_sg examples/gras/chord/test_rl
25525 #  src/amok/Makefile
25526
25527
25528   echo "$as_me:$LINENO: result: " >&5
25529 echo "${ECHO_T}" >&6
25530   echo "$as_me:$LINENO: result: ${T_MD}Generating files...${T_ME}" >&5
25531 echo "${ECHO_T}${T_MD}Generating files...${T_ME}" >&6
25532
25533
25534 # Core of the libraries
25535
25536                                         ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile src/ucontext_stack.h"
25537
25538
25539 # Tools being embeeded in gramine (stub generator)
25540                     ac_config_files="$ac_config_files tools/Makefile tools/gras/Makefile"
25541
25542
25543 # GRAMINE_CUT_BEGIN
25544
25545 # Tools NOT being embeeded in gramine
25546           ac_config_files="$ac_config_files tools/graspe-slave"
25547
25548
25549 # Testsuite
25550
25551                                         ac_config_files="$ac_config_files testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
25552
25553
25554 # Documentation
25555                     ac_config_files="$ac_config_files doc/Makefile doc/Doxyfile"
25556
25557
25558 # Examples
25559
25560                                                                                                                                                                                                                                                                                                                                                                                                                                                         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"
25561
25562
25563 #     examples/gras/chord/test_sg  examples/gras/chord/test_rl   \
25564 #    examples/gras/pastry/test_sg
25565
25566
25567
25568 #    examples/gras/saturate/Makefile  examples/gras/saturate/test_sg
25569 #    examples/gras/alnem/Makefile     examples/gras/alnem/test_sg
25570
25571
25572 # GRAMINE_CUT_END
25573
25574 cat >confcache <<\_ACEOF
25575 # This file is a shell script that caches the results of configure
25576 # tests run on this system so they can be shared between configure
25577 # scripts and configure runs, see configure's option --config-cache.
25578 # It is not useful on other systems.  If it contains results you don't
25579 # want to keep, you may remove or edit it.
25580 #
25581 # config.status only pays attention to the cache file if you give it
25582 # the --recheck option to rerun configure.
25583 #
25584 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25585 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25586 # following values.
25587
25588 _ACEOF
25589
25590 # The following way of writing the cache mishandles newlines in values,
25591 # but we know of no workaround that is simple, portable, and efficient.
25592 # So, don't put newlines in cache variables' values.
25593 # Ultrix sh set writes to stderr and can't be redirected directly,
25594 # and sets the high bit in the cache file unless we assign to the vars.
25595 {
25596   (set) 2>&1 |
25597     case `(ac_space=' '; set | grep ac_space) 2>&1` in
25598     *ac_space=\ *)
25599       # `set' does not quote correctly, so add quotes (double-quote
25600       # substitution turns \\\\ into \\, and sed turns \\ into \).
25601       sed -n \
25602         "s/'/'\\\\''/g;
25603           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25604       ;;
25605     *)
25606       # `set' quotes correctly as required by POSIX, so do not add quotes.
25607       sed -n \
25608         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
25609       ;;
25610     esac;
25611 } |
25612   sed '
25613      t clear
25614      : clear
25615      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25616      t end
25617      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25618      : end' >>confcache
25619 if diff $cache_file confcache >/dev/null 2>&1; then :; else
25620   if test -w $cache_file; then
25621     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
25622     cat confcache >$cache_file
25623   else
25624     echo "not updating unwritable cache $cache_file"
25625   fi
25626 fi
25627 rm -f confcache
25628
25629 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25630 # Let make expand exec_prefix.
25631 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25632
25633 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25634 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25635 # trailing colons and then remove the whole line if VPATH becomes empty
25636 # (actually we leave an empty line to preserve line numbers).
25637 if test "x$srcdir" = x.; then
25638   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25639 s/:*\$(srcdir):*/:/;
25640 s/:*\${srcdir}:*/:/;
25641 s/:*@srcdir@:*/:/;
25642 s/^\([^=]*=[     ]*\):*/\1/;
25643 s/:*$//;
25644 s/^[^=]*=[       ]*$//;
25645 }'
25646 fi
25647
25648 DEFS=-DHAVE_CONFIG_H
25649
25650 ac_libobjs=
25651 ac_ltlibobjs=
25652 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25653   # 1. Remove the extension, and $U if already installed.
25654   ac_i=`echo "$ac_i" |
25655          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25656   # 2. Add them.
25657   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25658   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25659 done
25660 LIBOBJS=$ac_libobjs
25661
25662 LTLIBOBJS=$ac_ltlibobjs
25663
25664
25665 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25666   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25667 Usually this means the macro was only invoked conditionally." >&5
25668 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25669 Usually this means the macro was only invoked conditionally." >&2;}
25670    { (exit 1); exit 1; }; }
25671 fi
25672 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25673   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25674 Usually this means the macro was only invoked conditionally." >&5
25675 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25676 Usually this means the macro was only invoked conditionally." >&2;}
25677    { (exit 1); exit 1; }; }
25678 fi
25679 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25680   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25681 Usually this means the macro was only invoked conditionally." >&5
25682 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25683 Usually this means the macro was only invoked conditionally." >&2;}
25684    { (exit 1); exit 1; }; }
25685 fi
25686 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25687   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25688 Usually this means the macro was only invoked conditionally." >&5
25689 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25690 Usually this means the macro was only invoked conditionally." >&2;}
25691    { (exit 1); exit 1; }; }
25692 fi
25693 if test -z "${GRAMINE_MODE_TRUE}" && test -z "${GRAMINE_MODE_FALSE}"; then
25694   { { echo "$as_me:$LINENO: error: conditional \"GRAMINE_MODE\" was never defined.
25695 Usually this means the macro was only invoked conditionally." >&5
25696 echo "$as_me: error: conditional \"GRAMINE_MODE\" was never defined.
25697 Usually this means the macro was only invoked conditionally." >&2;}
25698    { (exit 1); exit 1; }; }
25699 fi
25700 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25701   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
25702 Usually this means the macro was only invoked conditionally." >&5
25703 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
25704 Usually this means the macro was only invoked conditionally." >&2;}
25705    { (exit 1); exit 1; }; }
25706 fi
25707 if test -z "${HAVE_FLEXML_TRUE}" && test -z "${HAVE_FLEXML_FALSE}"; then
25708   { { echo "$as_me:$LINENO: error: conditional \"HAVE_FLEXML\" was never defined.
25709 Usually this means the macro was only invoked conditionally." >&5
25710 echo "$as_me: error: conditional \"HAVE_FLEXML\" was never defined.
25711 Usually this means the macro was only invoked conditionally." >&2;}
25712    { (exit 1); exit 1; }; }
25713 fi
25714
25715 : ${CONFIG_STATUS=./config.status}
25716 ac_clean_files_save=$ac_clean_files
25717 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25718 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25719 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25720 cat >$CONFIG_STATUS <<_ACEOF
25721 #! $SHELL
25722 # Generated by $as_me.
25723 # Run this file to recreate the current configuration.
25724 # Compiler output produced by configure, useful for debugging
25725 # configure, is in config.log if it exists.
25726
25727 debug=false
25728 ac_cs_recheck=false
25729 ac_cs_silent=false
25730 SHELL=\${CONFIG_SHELL-$SHELL}
25731 _ACEOF
25732
25733 cat >>$CONFIG_STATUS <<\_ACEOF
25734 ## --------------------- ##
25735 ## M4sh Initialization.  ##
25736 ## --------------------- ##
25737
25738 # Be Bourne compatible
25739 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25740   emulate sh
25741   NULLCMD=:
25742   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25743   # is contrary to our usage.  Disable this feature.
25744   alias -g '${1+"$@"}'='"$@"'
25745 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25746   set -o posix
25747 fi
25748 DUALCASE=1; export DUALCASE # for MKS sh
25749
25750 # Support unset when possible.
25751 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25752   as_unset=unset
25753 else
25754   as_unset=false
25755 fi
25756
25757
25758 # Work around bugs in pre-3.0 UWIN ksh.
25759 $as_unset ENV MAIL MAILPATH
25760 PS1='$ '
25761 PS2='> '
25762 PS4='+ '
25763
25764 # NLS nuisances.
25765 for as_var in \
25766   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25767   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25768   LC_TELEPHONE LC_TIME
25769 do
25770   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25771     eval $as_var=C; export $as_var
25772   else
25773     $as_unset $as_var
25774   fi
25775 done
25776
25777 # Required to use basename.
25778 if expr a : '\(a\)' >/dev/null 2>&1; then
25779   as_expr=expr
25780 else
25781   as_expr=false
25782 fi
25783
25784 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25785   as_basename=basename
25786 else
25787   as_basename=false
25788 fi
25789
25790
25791 # Name of the executable.
25792 as_me=`$as_basename "$0" ||
25793 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25794          X"$0" : 'X\(//\)$' \| \
25795          X"$0" : 'X\(/\)$' \| \
25796          .     : '\(.\)' 2>/dev/null ||
25797 echo X/"$0" |
25798     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25799           /^X\/\(\/\/\)$/{ s//\1/; q; }
25800           /^X\/\(\/\).*/{ s//\1/; q; }
25801           s/.*/./; q'`
25802
25803
25804 # PATH needs CR, and LINENO needs CR and PATH.
25805 # Avoid depending upon Character Ranges.
25806 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25807 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25808 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25809 as_cr_digits='0123456789'
25810 as_cr_alnum=$as_cr_Letters$as_cr_digits
25811
25812 # The user is always right.
25813 if test "${PATH_SEPARATOR+set}" != set; then
25814   echo "#! /bin/sh" >conf$$.sh
25815   echo  "exit 0"   >>conf$$.sh
25816   chmod +x conf$$.sh
25817   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25818     PATH_SEPARATOR=';'
25819   else
25820     PATH_SEPARATOR=:
25821   fi
25822   rm -f conf$$.sh
25823 fi
25824
25825
25826   as_lineno_1=$LINENO
25827   as_lineno_2=$LINENO
25828   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25829   test "x$as_lineno_1" != "x$as_lineno_2" &&
25830   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
25831   # Find who we are.  Look in the path if we contain no path at all
25832   # relative or not.
25833   case $0 in
25834     *[\\/]* ) as_myself=$0 ;;
25835     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25836 for as_dir in $PATH
25837 do
25838   IFS=$as_save_IFS
25839   test -z "$as_dir" && as_dir=.
25840   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25841 done
25842
25843        ;;
25844   esac
25845   # We did not find ourselves, most probably we were run as `sh COMMAND'
25846   # in which case we are not to be found in the path.
25847   if test "x$as_myself" = x; then
25848     as_myself=$0
25849   fi
25850   if test ! -f "$as_myself"; then
25851     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25852 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25853    { (exit 1); exit 1; }; }
25854   fi
25855   case $CONFIG_SHELL in
25856   '')
25857     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25858 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25859 do
25860   IFS=$as_save_IFS
25861   test -z "$as_dir" && as_dir=.
25862   for as_base in sh bash ksh sh5; do
25863          case $as_dir in
25864          /*)
25865            if ("$as_dir/$as_base" -c '
25866   as_lineno_1=$LINENO
25867   as_lineno_2=$LINENO
25868   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25869   test "x$as_lineno_1" != "x$as_lineno_2" &&
25870   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
25871              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25872              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25873              CONFIG_SHELL=$as_dir/$as_base
25874              export CONFIG_SHELL
25875              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25876            fi;;
25877          esac
25878        done
25879 done
25880 ;;
25881   esac
25882
25883   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25884   # uniformly replaced by the line number.  The first 'sed' inserts a
25885   # line-number line before each line; the second 'sed' does the real
25886   # work.  The second script uses 'N' to pair each line-number line
25887   # with the numbered line, and appends trailing '-' during
25888   # substitution so that $LINENO is not a special case at line end.
25889   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25890   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
25891   sed '=' <$as_myself |
25892     sed '
25893       N
25894       s,$,-,
25895       : loop
25896       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25897       t loop
25898       s,-$,,
25899       s,^['$as_cr_digits']*\n,,
25900     ' >$as_me.lineno &&
25901   chmod +x $as_me.lineno ||
25902     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25903 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25904    { (exit 1); exit 1; }; }
25905
25906   # Don't try to exec as it changes $[0], causing all sort of problems
25907   # (the dirname of $[0] is not the place where we might find the
25908   # original and so on.  Autoconf is especially sensible to this).
25909   . ./$as_me.lineno
25910   # Exit status is that of the last command.
25911   exit
25912 }
25913
25914
25915 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25916   *c*,-n*) ECHO_N= ECHO_C='
25917 ' ECHO_T='      ' ;;
25918   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25919   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
25920 esac
25921
25922 if expr a : '\(a\)' >/dev/null 2>&1; then
25923   as_expr=expr
25924 else
25925   as_expr=false
25926 fi
25927
25928 rm -f conf$$ conf$$.exe conf$$.file
25929 echo >conf$$.file
25930 if ln -s conf$$.file conf$$ 2>/dev/null; then
25931   # We could just check for DJGPP; but this test a) works b) is more generic
25932   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25933   if test -f conf$$.exe; then
25934     # Don't use ln at all; we don't have any links
25935     as_ln_s='cp -p'
25936   else
25937     as_ln_s='ln -s'
25938   fi
25939 elif ln conf$$.file conf$$ 2>/dev/null; then
25940   as_ln_s=ln
25941 else
25942   as_ln_s='cp -p'
25943 fi
25944 rm -f conf$$ conf$$.exe conf$$.file
25945
25946 if mkdir -p . 2>/dev/null; then
25947   as_mkdir_p=:
25948 else
25949   test -d ./-p && rmdir ./-p
25950   as_mkdir_p=false
25951 fi
25952
25953 as_executable_p="test -f"
25954
25955 # Sed expression to map a string onto a valid CPP name.
25956 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25957
25958 # Sed expression to map a string onto a valid variable name.
25959 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25960
25961
25962 # IFS
25963 # We need space, tab and new line, in precisely that order.
25964 as_nl='
25965 '
25966 IFS="   $as_nl"
25967
25968 # CDPATH.
25969 $as_unset CDPATH
25970
25971 exec 6>&1
25972
25973 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25974 # report actual input values of CONFIG_FILES etc. instead of their
25975 # values after options handling.  Logging --version etc. is OK.
25976 exec 5>>config.log
25977 {
25978   echo
25979   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25980 ## Running $as_me. ##
25981 _ASBOX
25982 } >&5
25983 cat >&5 <<_CSEOF
25984
25985 This file was extended by simgrid $as_me 3.1.1-cvs, which was
25986 generated by GNU Autoconf 2.59.  Invocation command line was
25987
25988   CONFIG_FILES    = $CONFIG_FILES
25989   CONFIG_HEADERS  = $CONFIG_HEADERS
25990   CONFIG_LINKS    = $CONFIG_LINKS
25991   CONFIG_COMMANDS = $CONFIG_COMMANDS
25992   $ $0 $@
25993
25994 _CSEOF
25995 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25996 echo >&5
25997 _ACEOF
25998
25999 # Files that config.status was made for.
26000 if test -n "$ac_config_files"; then
26001   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26002 fi
26003
26004 if test -n "$ac_config_headers"; then
26005   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26006 fi
26007
26008 if test -n "$ac_config_links"; then
26009   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26010 fi
26011
26012 if test -n "$ac_config_commands"; then
26013   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26014 fi
26015
26016 cat >>$CONFIG_STATUS <<\_ACEOF
26017
26018 ac_cs_usage="\
26019 \`$as_me' instantiates files from templates according to the
26020 current configuration.
26021
26022 Usage: $0 [OPTIONS] [FILE]...
26023
26024   -h, --help       print this help, then exit
26025   -V, --version    print version number, then exit
26026   -q, --quiet      do not print progress messages
26027   -d, --debug      don't remove temporary files
26028       --recheck    update $as_me by reconfiguring in the same conditions
26029   --file=FILE[:TEMPLATE]
26030                    instantiate the configuration file FILE
26031   --header=FILE[:TEMPLATE]
26032                    instantiate the configuration header FILE
26033
26034 Configuration files:
26035 $config_files
26036
26037 Configuration headers:
26038 $config_headers
26039
26040 Configuration commands:
26041 $config_commands
26042
26043 Report bugs to <bug-autoconf@gnu.org>."
26044 _ACEOF
26045
26046 cat >>$CONFIG_STATUS <<_ACEOF
26047 ac_cs_version="\\
26048 simgrid config.status 3.1.1-cvs
26049 configured by $0, generated by GNU Autoconf 2.59,
26050   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26051
26052 Copyright (C) 2003 Free Software Foundation, Inc.
26053 This config.status script is free software; the Free Software Foundation
26054 gives unlimited permission to copy, distribute and modify it."
26055 srcdir=$srcdir
26056 INSTALL="$INSTALL"
26057 _ACEOF
26058
26059 cat >>$CONFIG_STATUS <<\_ACEOF
26060 # If no file are specified by the user, then we need to provide default
26061 # value.  By we need to know if files were specified by the user.
26062 ac_need_defaults=:
26063 while test $# != 0
26064 do
26065   case $1 in
26066   --*=*)
26067     ac_option=`expr "x$1" : 'x\([^=]*\)='`
26068     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26069     ac_shift=:
26070     ;;
26071   -*)
26072     ac_option=$1
26073     ac_optarg=$2
26074     ac_shift=shift
26075     ;;
26076   *) # This is not an option, so the user has probably given explicit
26077      # arguments.
26078      ac_option=$1
26079      ac_need_defaults=false;;
26080   esac
26081
26082   case $ac_option in
26083   # Handling of the options.
26084 _ACEOF
26085 cat >>$CONFIG_STATUS <<\_ACEOF
26086   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26087     ac_cs_recheck=: ;;
26088   --version | --vers* | -V )
26089     echo "$ac_cs_version"; exit 0 ;;
26090   --he | --h)
26091     # Conflict between --help and --header
26092     { { echo "$as_me:$LINENO: error: ambiguous option: $1
26093 Try \`$0 --help' for more information." >&5
26094 echo "$as_me: error: ambiguous option: $1
26095 Try \`$0 --help' for more information." >&2;}
26096    { (exit 1); exit 1; }; };;
26097   --help | --hel | -h )
26098     echo "$ac_cs_usage"; exit 0 ;;
26099   --debug | --d* | -d )
26100     debug=: ;;
26101   --file | --fil | --fi | --f )
26102     $ac_shift
26103     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26104     ac_need_defaults=false;;
26105   --header | --heade | --head | --hea )
26106     $ac_shift
26107     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26108     ac_need_defaults=false;;
26109   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26110   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26111     ac_cs_silent=: ;;
26112
26113   # This is an error.
26114   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26115 Try \`$0 --help' for more information." >&5
26116 echo "$as_me: error: unrecognized option: $1
26117 Try \`$0 --help' for more information." >&2;}
26118    { (exit 1); exit 1; }; } ;;
26119
26120   *) ac_config_targets="$ac_config_targets $1" ;;
26121
26122   esac
26123   shift
26124 done
26125
26126 ac_configure_extra_args=
26127
26128 if $ac_cs_silent; then
26129   exec 6>/dev/null
26130   ac_configure_extra_args="$ac_configure_extra_args --silent"
26131 fi
26132
26133 _ACEOF
26134 cat >>$CONFIG_STATUS <<_ACEOF
26135 if \$ac_cs_recheck; then
26136   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26137   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26138 fi
26139
26140 _ACEOF
26141
26142 cat >>$CONFIG_STATUS <<_ACEOF
26143 #
26144 # INIT-COMMANDS section.
26145 #
26146
26147 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26148
26149 _ACEOF
26150
26151
26152
26153 cat >>$CONFIG_STATUS <<\_ACEOF
26154 for ac_config_target in $ac_config_targets
26155 do
26156   case "$ac_config_target" in
26157   # Handling of arguments.
26158   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26159   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26160   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26161   "src/ucontext_stack.h" ) CONFIG_FILES="$CONFIG_FILES src/ucontext_stack.h" ;;
26162   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
26163   "tools/gras/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/gras/Makefile" ;;
26164   "tools/graspe-slave" ) CONFIG_FILES="$CONFIG_FILES tools/graspe-slave" ;;
26165   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26166   "testsuite/run_tests" ) CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
26167   "testsuite/gras/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
26168   "testsuite/gras/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
26169   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26170   "doc/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
26171   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
26172   "examples/msg/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/msg/Makefile" ;;
26173   "examples/msg/run_msg_test" ) CONFIG_FILES="$CONFIG_FILES examples/msg/run_msg_test" ;;
26174   "examples/simdag/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/simdag/Makefile" ;;
26175   "examples/simdag/test_simdag" ) CONFIG_FILES="$CONFIG_FILES examples/simdag/test_simdag" ;;
26176   "examples/gras/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/Makefile" ;;
26177   "examples/gras/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/Makefile" ;;
26178   "examples/gras/ping/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_sg" ;;
26179   "examples/gras/ping/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/ping/test_rl" ;;
26180   "examples/gras/rpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/Makefile" ;;
26181   "examples/gras/rpc/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_sg" ;;
26182   "examples/gras/rpc/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/rpc/test_rl" ;;
26183   "examples/gras/timer/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/Makefile" ;;
26184   "examples/gras/timer/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_sg" ;;
26185   "examples/gras/timer/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/timer/test_rl" ;;
26186   "examples/gras/chrono/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/Makefile" ;;
26187   "examples/gras/chrono/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_sg" ;;
26188   "examples/gras/chrono/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/chrono/test_rl" ;;
26189   "examples/gras/mutual_exclusion/simple_token/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/Makefile" ;;
26190   "examples/gras/mutual_exclusion/simple_token/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_sg" ;;
26191   "examples/gras/mutual_exclusion/simple_token/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mutual_exclusion/simple_token/test_rl" ;;
26192   "examples/gras/mmrpc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/Makefile" ;;
26193   "examples/gras/mmrpc/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_sg" ;;
26194   "examples/gras/mmrpc/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/mmrpc/test_rl" ;;
26195   "examples/gras/pmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/Makefile" ;;
26196   "examples/gras/pmm/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_sg" ;;
26197   "examples/gras/pmm/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/pmm/test_rl" ;;
26198   "examples/gras/all2all/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/Makefile" ;;
26199   "examples/gras/all2all/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_sg" ;;
26200   "examples/gras/all2all/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/all2all/test_rl" ;;
26201   "examples/gras/p2p/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/Makefile" ;;
26202   "examples/gras/p2p/chord/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/Makefile" ;;
26203   "examples/gras/p2p/chord/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_sg" ;;
26204   "examples/gras/p2p/chord/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/chord/test_rl" ;;
26205   "examples/gras/p2p/can/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/Makefile" ;;
26206   "examples/gras/p2p/can/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_sg" ;;
26207   "examples/gras/p2p/can/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/gras/p2p/can/test_rl" ;;
26208   "examples/amok/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/Makefile" ;;
26209   "examples/amok/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/Makefile" ;;
26210   "examples/amok/bandwidth/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_sg" ;;
26211   "examples/amok/bandwidth/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/amok/bandwidth/test_rl" ;;
26212   "examples/amok/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/Makefile" ;;
26213   "examples/amok/saturate/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_sg" ;;
26214   "examples/amok/saturate/test_rl" ) CONFIG_FILES="$CONFIG_FILES examples/amok/saturate/test_rl" ;;
26215   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26216   "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
26217   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26218 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26219    { (exit 1); exit 1; }; };;
26220   esac
26221 done
26222
26223 # If the user did not use the arguments to specify the items to instantiate,
26224 # then the envvar interface is used.  Set only those that are not.
26225 # We use the long form for the default assignment because of an extremely
26226 # bizarre bug on SunOS 4.1.3.
26227 if $ac_need_defaults; then
26228   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26229   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26230   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26231 fi
26232
26233 # Have a temporary directory for convenience.  Make it in the build tree
26234 # simply because there is no reason to put it here, and in addition,
26235 # creating and moving files from /tmp can sometimes cause problems.
26236 # Create a temporary directory, and hook for its removal unless debugging.
26237 $debug ||
26238 {
26239   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26240   trap '{ (exit 1); exit 1; }' 1 2 13 15
26241 }
26242
26243 # Create a (secure) tmp directory for tmp files.
26244
26245 {
26246   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26247   test -n "$tmp" && test -d "$tmp"
26248 }  ||
26249 {
26250   tmp=./confstat$$-$RANDOM
26251   (umask 077 && mkdir $tmp)
26252 } ||
26253 {
26254    echo "$me: cannot create a temporary directory in ." >&2
26255    { (exit 1); exit 1; }
26256 }
26257
26258 _ACEOF
26259
26260 cat >>$CONFIG_STATUS <<_ACEOF
26261
26262 #
26263 # CONFIG_FILES section.
26264 #
26265
26266 # No need to generate the scripts if there are no CONFIG_FILES.
26267 # This happens for instance when ./config.status config.h
26268 if test -n "\$CONFIG_FILES"; then
26269   # Protect against being on the right side of a sed subst in config.status.
26270   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26271    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26272 s,@SHELL@,$SHELL,;t t
26273 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26274 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26275 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26276 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26277 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26278 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26279 s,@exec_prefix@,$exec_prefix,;t t
26280 s,@prefix@,$prefix,;t t
26281 s,@program_transform_name@,$program_transform_name,;t t
26282 s,@bindir@,$bindir,;t t
26283 s,@sbindir@,$sbindir,;t t
26284 s,@libexecdir@,$libexecdir,;t t
26285 s,@datadir@,$datadir,;t t
26286 s,@sysconfdir@,$sysconfdir,;t t
26287 s,@sharedstatedir@,$sharedstatedir,;t t
26288 s,@localstatedir@,$localstatedir,;t t
26289 s,@libdir@,$libdir,;t t
26290 s,@includedir@,$includedir,;t t
26291 s,@oldincludedir@,$oldincludedir,;t t
26292 s,@infodir@,$infodir,;t t
26293 s,@mandir@,$mandir,;t t
26294 s,@build_alias@,$build_alias,;t t
26295 s,@host_alias@,$host_alias,;t t
26296 s,@target_alias@,$target_alias,;t t
26297 s,@DEFS@,$DEFS,;t t
26298 s,@ECHO_C@,$ECHO_C,;t t
26299 s,@ECHO_N@,$ECHO_N,;t t
26300 s,@ECHO_T@,$ECHO_T,;t t
26301 s,@LIBS@,$LIBS,;t t
26302 s,@build@,$build,;t t
26303 s,@build_cpu@,$build_cpu,;t t
26304 s,@build_vendor@,$build_vendor,;t t
26305 s,@build_os@,$build_os,;t t
26306 s,@host@,$host,;t t
26307 s,@host_cpu@,$host_cpu,;t t
26308 s,@host_vendor@,$host_vendor,;t t
26309 s,@host_os@,$host_os,;t t
26310 s,@target@,$target,;t t
26311 s,@target_cpu@,$target_cpu,;t t
26312 s,@target_vendor@,$target_vendor,;t t
26313 s,@target_os@,$target_os,;t t
26314 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26315 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26316 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26317 s,@CYGPATH_W@,$CYGPATH_W,;t t
26318 s,@PACKAGE@,$PACKAGE,;t t
26319 s,@VERSION@,$VERSION,;t t
26320 s,@ACLOCAL@,$ACLOCAL,;t t
26321 s,@AUTOCONF@,$AUTOCONF,;t t
26322 s,@AUTOMAKE@,$AUTOMAKE,;t t
26323 s,@AUTOHEADER@,$AUTOHEADER,;t t
26324 s,@MAKEINFO@,$MAKEINFO,;t t
26325 s,@install_sh@,$install_sh,;t t
26326 s,@STRIP@,$STRIP,;t t
26327 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26328 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26329 s,@mkdir_p@,$mkdir_p,;t t
26330 s,@AWK@,$AWK,;t t
26331 s,@SET_MAKE@,$SET_MAKE,;t t
26332 s,@am__leading_dot@,$am__leading_dot,;t t
26333 s,@AMTAR@,$AMTAR,;t t
26334 s,@am__tar@,$am__tar,;t t
26335 s,@am__untar@,$am__untar,;t t
26336 s,@CC@,$CC,;t t
26337 s,@CFLAGS@,$CFLAGS,;t t
26338 s,@LDFLAGS@,$LDFLAGS,;t t
26339 s,@CPPFLAGS@,$CPPFLAGS,;t t
26340 s,@ac_ct_CC@,$ac_ct_CC,;t t
26341 s,@EXEEXT@,$EXEEXT,;t t
26342 s,@OBJEXT@,$OBJEXT,;t t
26343 s,@DEPDIR@,$DEPDIR,;t t
26344 s,@am__include@,$am__include,;t t
26345 s,@am__quote@,$am__quote,;t t
26346 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26347 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26348 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26349 s,@CCDEPMODE@,$CCDEPMODE,;t t
26350 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26351 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26352 s,@EGREP@,$EGREP,;t t
26353 s,@LN_S@,$LN_S,;t t
26354 s,@ECHO@,$ECHO,;t t
26355 s,@AR@,$AR,;t t
26356 s,@ac_ct_AR@,$ac_ct_AR,;t t
26357 s,@RANLIB@,$RANLIB,;t t
26358 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26359 s,@DLLTOOL@,$DLLTOOL,;t t
26360 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
26361 s,@AS@,$AS,;t t
26362 s,@ac_ct_AS@,$ac_ct_AS,;t t
26363 s,@OBJDUMP@,$OBJDUMP,;t t
26364 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
26365 s,@CPP@,$CPP,;t t
26366 s,@CXX@,$CXX,;t t
26367 s,@CXXFLAGS@,$CXXFLAGS,;t t
26368 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26369 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26370 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26371 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26372 s,@CXXCPP@,$CXXCPP,;t t
26373 s,@F77@,$F77,;t t
26374 s,@FFLAGS@,$FFLAGS,;t t
26375 s,@ac_ct_F77@,$ac_ct_F77,;t t
26376 s,@LIBTOOL@,$LIBTOOL,;t t
26377 s,@LIBOBJS@,$LIBOBJS,;t t
26378 s,@PTH_STACK_GROWTH@,$PTH_STACK_GROWTH,;t t
26379 s,@pth_skaddr_makecontext@,$pth_skaddr_makecontext,;t t
26380 s,@pth_sksize_makecontext@,$pth_sksize_makecontext,;t t
26381 s,@SIMGRID_DEP@,$SIMGRID_DEP,;t t
26382 s,@GRAS_DEP@,$GRAS_DEP,;t t
26383 s,@GRAMINE_MODE_TRUE@,$GRAMINE_MODE_TRUE,;t t
26384 s,@GRAMINE_MODE_FALSE@,$GRAMINE_MODE_FALSE,;t t
26385 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26386 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26387 s,@MAINT@,$MAINT,;t t
26388 s,@LD_DYNAMIC_FLAGS@,$LD_DYNAMIC_FLAGS,;t t
26389 s,@abs_builddir@,$abs_builddir,;t t
26390 s,@abs_srcdir@,$abs_srcdir,;t t
26391 s,@abs_top_builddir@,$abs_top_builddir,;t t
26392 s,@abs_top_srcdir@,$abs_top_srcdir,;t t
26393 s,@BASH@,$BASH,;t t
26394 s,@WARNING@,$WARNING,;t t
26395 s,@LEX@,$LEX,;t t
26396 s,@LEXLIB@,$LEXLIB,;t t
26397 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
26398 s,@FLEXML@,$FLEXML,;t t
26399 s,@HAVE_FLEXML_TRUE@,$HAVE_FLEXML_TRUE,;t t
26400 s,@HAVE_FLEXML_FALSE@,$HAVE_FLEXML_FALSE,;t t
26401 s,@DOXYGEN@,$DOXYGEN,;t t
26402 s,@ADDR2LINE@,$ADDR2LINE,;t t
26403 s,@ac_configure_args@,$ac_configure_args,;t t
26404 s,@MD5SUM@,$MD5SUM,;t t
26405 s,@build_id@,$build_id,;t t
26406 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26407 CEOF
26408
26409 _ACEOF
26410
26411   cat >>$CONFIG_STATUS <<\_ACEOF
26412   # Split the substitutions into bite-sized pieces for seds with
26413   # small command number limits, like on Digital OSF/1 and HP-UX.
26414   ac_max_sed_lines=48
26415   ac_sed_frag=1 # Number of current file.
26416   ac_beg=1 # First line for current file.
26417   ac_end=$ac_max_sed_lines # Line after last line for current file.
26418   ac_more_lines=:
26419   ac_sed_cmds=
26420   while $ac_more_lines; do
26421     if test $ac_beg -gt 1; then
26422       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26423     else
26424       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
26425     fi
26426     if test ! -s $tmp/subs.frag; then
26427       ac_more_lines=false
26428     else
26429       # The purpose of the label and of the branching condition is to
26430       # speed up the sed processing (if there are no `@' at all, there
26431       # is no need to browse any of the substitutions).
26432       # These are the two extra sed commands mentioned above.
26433       (echo ':t
26434   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
26435       if test -z "$ac_sed_cmds"; then
26436         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
26437       else
26438         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
26439       fi
26440       ac_sed_frag=`expr $ac_sed_frag + 1`
26441       ac_beg=$ac_end
26442       ac_end=`expr $ac_end + $ac_max_sed_lines`
26443     fi
26444   done
26445   if test -z "$ac_sed_cmds"; then
26446     ac_sed_cmds=cat
26447   fi
26448 fi # test -n "$CONFIG_FILES"
26449
26450 _ACEOF
26451 cat >>$CONFIG_STATUS <<\_ACEOF
26452 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
26453   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
26454   case $ac_file in
26455   - | *:- | *:-:* ) # input from stdin
26456         cat >$tmp/stdin
26457         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26458         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26459   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
26460         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
26461   * )   ac_file_in=$ac_file.in ;;
26462   esac
26463
26464   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
26465   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26466 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26467          X"$ac_file" : 'X\(//\)[^/]' \| \
26468          X"$ac_file" : 'X\(//\)$' \| \
26469          X"$ac_file" : 'X\(/\)' \| \
26470          .     : '\(.\)' 2>/dev/null ||
26471 echo X"$ac_file" |
26472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26473           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26474           /^X\(\/\/\)$/{ s//\1/; q; }
26475           /^X\(\/\).*/{ s//\1/; q; }
26476           s/.*/./; q'`
26477   { if $as_mkdir_p; then
26478     mkdir -p "$ac_dir"
26479   else
26480     as_dir="$ac_dir"
26481     as_dirs=
26482     while test ! -d "$as_dir"; do
26483       as_dirs="$as_dir $as_dirs"
26484       as_dir=`(dirname "$as_dir") 2>/dev/null ||
26485 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26486          X"$as_dir" : 'X\(//\)[^/]' \| \
26487          X"$as_dir" : 'X\(//\)$' \| \
26488          X"$as_dir" : 'X\(/\)' \| \
26489          .     : '\(.\)' 2>/dev/null ||
26490 echo X"$as_dir" |
26491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26492           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26493           /^X\(\/\/\)$/{ s//\1/; q; }
26494           /^X\(\/\).*/{ s//\1/; q; }
26495           s/.*/./; q'`
26496     done
26497     test ! -n "$as_dirs" || mkdir $as_dirs
26498   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26499 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26500    { (exit 1); exit 1; }; }; }
26501
26502   ac_builddir=.
26503
26504 if test "$ac_dir" != .; then
26505   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26506   # A "../" for each directory in $ac_dir_suffix.
26507   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26508 else
26509   ac_dir_suffix= ac_top_builddir=
26510 fi
26511
26512 case $srcdir in
26513   .)  # No --srcdir option.  We are building in place.
26514     ac_srcdir=.
26515     if test -z "$ac_top_builddir"; then
26516        ac_top_srcdir=.
26517     else
26518        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26519     fi ;;
26520   [\\/]* | ?:[\\/]* )  # Absolute path.
26521     ac_srcdir=$srcdir$ac_dir_suffix;
26522     ac_top_srcdir=$srcdir ;;
26523   *) # Relative path.
26524     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26525     ac_top_srcdir=$ac_top_builddir$srcdir ;;
26526 esac
26527
26528 # Do not use `cd foo && pwd` to compute absolute paths, because
26529 # the directories may not exist.
26530 case `pwd` in
26531 .) ac_abs_builddir="$ac_dir";;
26532 *)
26533   case "$ac_dir" in
26534   .) ac_abs_builddir=`pwd`;;
26535   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26536   *) ac_abs_builddir=`pwd`/"$ac_dir";;
26537   esac;;
26538 esac
26539 case $ac_abs_builddir in
26540 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26541 *)
26542   case ${ac_top_builddir}. in
26543   .) ac_abs_top_builddir=$ac_abs_builddir;;
26544   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26545   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26546   esac;;
26547 esac
26548 case $ac_abs_builddir in
26549 .) ac_abs_srcdir=$ac_srcdir;;
26550 *)
26551   case $ac_srcdir in
26552   .) ac_abs_srcdir=$ac_abs_builddir;;
26553   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26554   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26555   esac;;
26556 esac
26557 case $ac_abs_builddir in
26558 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26559 *)
26560   case $ac_top_srcdir in
26561   .) ac_abs_top_srcdir=$ac_abs_builddir;;
26562   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26563   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26564   esac;;
26565 esac
26566
26567
26568   case $INSTALL in
26569   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26570   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
26571   esac
26572
26573   # Let's still pretend it is `configure' which instantiates (i.e., don't
26574   # use $as_me), people would be surprised to read:
26575   #    /* config.h.  Generated by config.status.  */
26576   if test x"$ac_file" = x-; then
26577     configure_input=
26578   else
26579     configure_input="$ac_file.  "
26580   fi
26581   configure_input=$configure_input"Generated from `echo $ac_file_in |
26582                                      sed 's,.*/,,'` by configure."
26583
26584   # First look for the input files in the build tree, otherwise in the
26585   # src tree.
26586   ac_file_inputs=`IFS=:
26587     for f in $ac_file_in; do
26588       case $f in
26589       -) echo $tmp/stdin ;;
26590       [\\/$]*)
26591          # Absolute (can't be DOS-style, as IFS=:)
26592          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26593 echo "$as_me: error: cannot find input file: $f" >&2;}
26594    { (exit 1); exit 1; }; }
26595          echo "$f";;
26596       *) # Relative
26597          if test -f "$f"; then
26598            # Build tree
26599            echo "$f"
26600          elif test -f "$srcdir/$f"; then
26601            # Source tree
26602            echo "$srcdir/$f"
26603          else
26604            # /dev/null tree
26605            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
26606 echo "$as_me: error: cannot find input file: $f" >&2;}
26607    { (exit 1); exit 1; }; }
26608          fi;;
26609       esac
26610     done` || { (exit 1); exit 1; }
26611
26612   if test x"$ac_file" != x-; then
26613     { echo "$as_me:$LINENO: creating $ac_file" >&5
26614 echo "$as_me: creating $ac_file" >&6;}
26615     rm -f "$ac_file"
26616   fi
26617 _ACEOF
26618 cat >>$CONFIG_STATUS <<_ACEOF
26619   sed "$ac_vpsub
26620 $extrasub
26621 _ACEOF
26622 cat >>$CONFIG_STATUS <<\_ACEOF
26623 :t
26624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26625 s,@configure_input@,$configure_input,;t t
26626 s,@srcdir@,$ac_srcdir,;t t
26627 s,@abs_srcdir@,$ac_abs_srcdir,;t t
26628 s,@top_srcdir@,$ac_top_srcdir,;t t
26629 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
26630 s,@builddir@,$ac_builddir,;t t
26631 s,@abs_builddir@,$ac_abs_builddir,;t t
26632 s,@top_builddir@,$ac_top_builddir,;t t
26633 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
26634 s,@INSTALL@,$ac_INSTALL,;t t
26635 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
26636   rm -f $tmp/stdin
26637   if test x"$ac_file" != x-; then
26638     mv $tmp/out $ac_file
26639   else
26640     cat $tmp/out
26641     rm -f $tmp/out
26642   fi
26643
26644   # Run the commands associated with the file.
26645   case $ac_file in
26646     tools/graspe-slave )
26647     for file in                                                 \
26648      tools/graspe-slave           tools/graspe-master           \
26649     ; do                                                        \
26650       test -e $file && chmod +x $file;                          \
26651     done
26652  ;;
26653     testsuite/Makefile )
26654     for file in                                                 \
26655      testsuite/run_tests                                        \
26656      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26657     ; do                                                        \
26658       test -e $file && chmod +x $file;                          \
26659     done
26660  ;;
26661     testsuite/run_tests )
26662     for file in                                                 \
26663      testsuite/run_tests                                        \
26664      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26665     ; do                                                        \
26666       test -e $file && chmod +x $file;                          \
26667     done
26668  ;;
26669     testsuite/gras/trp_tcp_usage )
26670     for file in                                                 \
26671      testsuite/run_tests                                        \
26672      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26673     ; do                                                        \
26674       test -e $file && chmod +x $file;                          \
26675     done
26676  ;;
26677     testsuite/gras/trp_file_usage )
26678     for file in                                                 \
26679      testsuite/run_tests                                        \
26680      testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage \
26681     ; do                                                        \
26682       test -e $file && chmod +x $file;                          \
26683     done
26684  ;;
26685     examples/Makefile )
26686     for file in                                                 \
26687      \
26688      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26689      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26690      \
26691      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26692      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26693      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26694      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26695      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26696      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26697      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26698      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26699      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26700      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26701      examples/msg/run_msg_test                                  \
26702      examples/simdag/test_simdag                                \
26703     ; do                                                        \
26704       test -e $file && chmod +x $file;                          \
26705     done
26706  ;;
26707     examples/msg/Makefile )
26708     for file in                                                 \
26709      \
26710      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26711      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26712      \
26713      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26714      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26715      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26716      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26717      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26718      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26719      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26720      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26721      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26722      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26723      examples/msg/run_msg_test                                  \
26724      examples/simdag/test_simdag                                \
26725     ; do                                                        \
26726       test -e $file && chmod +x $file;                          \
26727     done
26728  ;;
26729     examples/msg/run_msg_test )
26730     for file in                                                 \
26731      \
26732      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26733      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26734      \
26735      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26736      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26737      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26738      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26739      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26740      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26741      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26742      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26743      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26744      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26745      examples/msg/run_msg_test                                  \
26746      examples/simdag/test_simdag                                \
26747     ; do                                                        \
26748       test -e $file && chmod +x $file;                          \
26749     done
26750  ;;
26751     examples/simdag/Makefile )
26752     for file in                                                 \
26753      \
26754      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26755      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26756      \
26757      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26758      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26759      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26760      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26761      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26762      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26763      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26764      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26765      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26766      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26767      examples/msg/run_msg_test                                  \
26768      examples/simdag/test_simdag                                \
26769     ; do                                                        \
26770       test -e $file && chmod +x $file;                          \
26771     done
26772  ;;
26773     examples/simdag/test_simdag )
26774     for file in                                                 \
26775      \
26776      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26777      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26778      \
26779      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26780      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26781      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26782      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26783      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26784      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26785      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26786      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26787      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26788      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26789      examples/msg/run_msg_test                                  \
26790      examples/simdag/test_simdag                                \
26791     ; do                                                        \
26792       test -e $file && chmod +x $file;                          \
26793     done
26794  ;;
26795     examples/gras/Makefile )
26796     for file in                                                 \
26797      \
26798      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26799      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26800      \
26801      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26802      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26803      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26804      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26805      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26806      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26807      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26808      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26809      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26810      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26811      examples/msg/run_msg_test                                  \
26812      examples/simdag/test_simdag                                \
26813     ; do                                                        \
26814       test -e $file && chmod +x $file;                          \
26815     done
26816  ;;
26817     examples/gras/ping/Makefile )
26818     for file in                                                 \
26819      \
26820      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26821      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26822      \
26823      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26824      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26825      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26826      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26827      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26828      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26829      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26830      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26831      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26832      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26833      examples/msg/run_msg_test                                  \
26834      examples/simdag/test_simdag                                \
26835     ; do                                                        \
26836       test -e $file && chmod +x $file;                          \
26837     done
26838  ;;
26839     examples/gras/ping/test_sg )
26840     for file in                                                 \
26841      \
26842      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26843      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26844      \
26845      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26846      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26847      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26848      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26849      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26850      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26851      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26852      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26853      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26854      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26855      examples/msg/run_msg_test                                  \
26856      examples/simdag/test_simdag                                \
26857     ; do                                                        \
26858       test -e $file && chmod +x $file;                          \
26859     done
26860  ;;
26861     examples/gras/ping/test_rl )
26862     for file in                                                 \
26863      \
26864      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26865      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26866      \
26867      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26868      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26869      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26870      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26871      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26872      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26873      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26874      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26875      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26876      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26877      examples/msg/run_msg_test                                  \
26878      examples/simdag/test_simdag                                \
26879     ; do                                                        \
26880       test -e $file && chmod +x $file;                          \
26881     done
26882  ;;
26883     examples/gras/rpc/Makefile )
26884     for file in                                                 \
26885      \
26886      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26887      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26888      \
26889      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26890      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26891      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26892      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26893      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26894      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26895      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26896      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26897      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26898      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26899      examples/msg/run_msg_test                                  \
26900      examples/simdag/test_simdag                                \
26901     ; do                                                        \
26902       test -e $file && chmod +x $file;                          \
26903     done
26904  ;;
26905     examples/gras/rpc/test_sg )
26906     for file in                                                 \
26907      \
26908      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26909      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26910      \
26911      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26912      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26913      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26914      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26915      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26916      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26917      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26918      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26919      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26920      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26921      examples/msg/run_msg_test                                  \
26922      examples/simdag/test_simdag                                \
26923     ; do                                                        \
26924       test -e $file && chmod +x $file;                          \
26925     done
26926  ;;
26927     examples/gras/rpc/test_rl )
26928     for file in                                                 \
26929      \
26930      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26931      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26932      \
26933      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26934      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26935      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26936      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26937      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26938      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26939      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26940      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26941      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26942      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26943      examples/msg/run_msg_test                                  \
26944      examples/simdag/test_simdag                                \
26945     ; do                                                        \
26946       test -e $file && chmod +x $file;                          \
26947     done
26948  ;;
26949     examples/gras/timer/Makefile )
26950     for file in                                                 \
26951      \
26952      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26953      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26954      \
26955      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26956      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26957      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26958      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26959      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26960      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26961      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26962      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26963      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26964      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26965      examples/msg/run_msg_test                                  \
26966      examples/simdag/test_simdag                                \
26967     ; do                                                        \
26968       test -e $file && chmod +x $file;                          \
26969     done
26970  ;;
26971     examples/gras/timer/test_sg )
26972     for file in                                                 \
26973      \
26974      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26975      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26976      \
26977      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
26978      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
26979      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
26980      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
26981      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
26982      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
26983      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
26984      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
26985      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
26986      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
26987      examples/msg/run_msg_test                                  \
26988      examples/simdag/test_simdag                                \
26989     ; do                                                        \
26990       test -e $file && chmod +x $file;                          \
26991     done
26992  ;;
26993     examples/gras/timer/test_rl )
26994     for file in                                                 \
26995      \
26996      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
26997      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
26998      \
26999      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27000      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27001      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27002      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27003      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27004      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27005      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27006      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27007      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27008      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27009      examples/msg/run_msg_test                                  \
27010      examples/simdag/test_simdag                                \
27011     ; do                                                        \
27012       test -e $file && chmod +x $file;                          \
27013     done
27014  ;;
27015     examples/gras/chrono/Makefile )
27016     for file in                                                 \
27017      \
27018      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27019      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27020      \
27021      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27022      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27023      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27024      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27025      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27026      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27027      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27028      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27029      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27030      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27031      examples/msg/run_msg_test                                  \
27032      examples/simdag/test_simdag                                \
27033     ; do                                                        \
27034       test -e $file && chmod +x $file;                          \
27035     done
27036  ;;
27037     examples/gras/chrono/test_sg )
27038     for file in                                                 \
27039      \
27040      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27041      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27042      \
27043      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27044      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27045      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27046      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27047      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27048      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27049      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27050      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27051      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27052      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27053      examples/msg/run_msg_test                                  \
27054      examples/simdag/test_simdag                                \
27055     ; do                                                        \
27056       test -e $file && chmod +x $file;                          \
27057     done
27058  ;;
27059     examples/gras/chrono/test_rl )
27060     for file in                                                 \
27061      \
27062      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27063      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27064      \
27065      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27066      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27067      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27068      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27069      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27070      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27071      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27072      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27073      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27074      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27075      examples/msg/run_msg_test                                  \
27076      examples/simdag/test_simdag                                \
27077     ; do                                                        \
27078       test -e $file && chmod +x $file;                          \
27079     done
27080  ;;
27081     examples/gras/mutual_exclusion/simple_token/Makefile )
27082     for file in                                                 \
27083      \
27084      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27085      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27086      \
27087      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27088      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27089      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27090      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27091      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27092      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27093      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27094      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27095      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27096      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27097      examples/msg/run_msg_test                                  \
27098      examples/simdag/test_simdag                                \
27099     ; do                                                        \
27100       test -e $file && chmod +x $file;                          \
27101     done
27102  ;;
27103     examples/gras/mutual_exclusion/simple_token/test_sg )
27104     for file in                                                 \
27105      \
27106      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27107      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27108      \
27109      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27110      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27111      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27112      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27113      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27114      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27115      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27116      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27117      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27118      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27119      examples/msg/run_msg_test                                  \
27120      examples/simdag/test_simdag                                \
27121     ; do                                                        \
27122       test -e $file && chmod +x $file;                          \
27123     done
27124  ;;
27125     examples/gras/mutual_exclusion/simple_token/test_rl )
27126     for file in                                                 \
27127      \
27128      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27129      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27130      \
27131      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27132      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27133      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27134      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27135      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27136      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27137      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27138      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27139      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27140      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27141      examples/msg/run_msg_test                                  \
27142      examples/simdag/test_simdag                                \
27143     ; do                                                        \
27144       test -e $file && chmod +x $file;                          \
27145     done
27146  ;;
27147     examples/gras/mmrpc/Makefile )
27148     for file in                                                 \
27149      \
27150      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27151      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27152      \
27153      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27154      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27155      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27156      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27157      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27158      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27159      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27160      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27161      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27162      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27163      examples/msg/run_msg_test                                  \
27164      examples/simdag/test_simdag                                \
27165     ; do                                                        \
27166       test -e $file && chmod +x $file;                          \
27167     done
27168  ;;
27169     examples/gras/mmrpc/test_sg )
27170     for file in                                                 \
27171      \
27172      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27173      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27174      \
27175      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27176      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27177      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27178      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27179      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27180      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27181      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27182      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27183      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27184      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27185      examples/msg/run_msg_test                                  \
27186      examples/simdag/test_simdag                                \
27187     ; do                                                        \
27188       test -e $file && chmod +x $file;                          \
27189     done
27190  ;;
27191     examples/gras/mmrpc/test_rl )
27192     for file in                                                 \
27193      \
27194      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27195      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27196      \
27197      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27198      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27199      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27200      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27201      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27202      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27203      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27204      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27205      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27206      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27207      examples/msg/run_msg_test                                  \
27208      examples/simdag/test_simdag                                \
27209     ; do                                                        \
27210       test -e $file && chmod +x $file;                          \
27211     done
27212  ;;
27213     examples/gras/pmm/Makefile )
27214     for file in                                                 \
27215      \
27216      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27217      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27218      \
27219      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27220      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27221      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27222      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27223      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27224      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27225      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27226      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27227      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27228      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27229      examples/msg/run_msg_test                                  \
27230      examples/simdag/test_simdag                                \
27231     ; do                                                        \
27232       test -e $file && chmod +x $file;                          \
27233     done
27234  ;;
27235     examples/gras/pmm/test_sg )
27236     for file in                                                 \
27237      \
27238      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27239      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27240      \
27241      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27242      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27243      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27244      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27245      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27246      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27247      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27248      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27249      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27250      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27251      examples/msg/run_msg_test                                  \
27252      examples/simdag/test_simdag                                \
27253     ; do                                                        \
27254       test -e $file && chmod +x $file;                          \
27255     done
27256  ;;
27257     examples/gras/pmm/test_rl )
27258     for file in                                                 \
27259      \
27260      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27261      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27262      \
27263      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27264      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27265      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27266      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27267      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27268      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27269      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27270      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27271      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27272      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27273      examples/msg/run_msg_test                                  \
27274      examples/simdag/test_simdag                                \
27275     ; do                                                        \
27276       test -e $file && chmod +x $file;                          \
27277     done
27278  ;;
27279     examples/gras/all2all/Makefile )
27280     for file in                                                 \
27281      \
27282      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27283      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27284      \
27285      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27286      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27287      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27288      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27289      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27290      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27291      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27292      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27293      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27294      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27295      examples/msg/run_msg_test                                  \
27296      examples/simdag/test_simdag                                \
27297     ; do                                                        \
27298       test -e $file && chmod +x $file;                          \
27299     done
27300  ;;
27301     examples/gras/all2all/test_sg )
27302     for file in                                                 \
27303      \
27304      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27305      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27306      \
27307      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27308      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27309      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27310      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27311      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27312      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27313      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27314      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27315      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27316      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27317      examples/msg/run_msg_test                                  \
27318      examples/simdag/test_simdag                                \
27319     ; do                                                        \
27320       test -e $file && chmod +x $file;                          \
27321     done
27322  ;;
27323     examples/gras/all2all/test_rl )
27324     for file in                                                 \
27325      \
27326      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27327      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27328      \
27329      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27330      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27331      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27332      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27333      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27334      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27335      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27336      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27337      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27338      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27339      examples/msg/run_msg_test                                  \
27340      examples/simdag/test_simdag                                \
27341     ; do                                                        \
27342       test -e $file && chmod +x $file;                          \
27343     done
27344  ;;
27345     examples/gras/p2p/Makefile )
27346     for file in                                                 \
27347      \
27348      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27349      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27350      \
27351      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27352      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27353      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27354      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27355      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27356      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27357      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27358      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27359      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27360      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27361      examples/msg/run_msg_test                                  \
27362      examples/simdag/test_simdag                                \
27363     ; do                                                        \
27364       test -e $file && chmod +x $file;                          \
27365     done
27366  ;;
27367     examples/gras/p2p/chord/Makefile )
27368     for file in                                                 \
27369      \
27370      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27371      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27372      \
27373      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27374      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27375      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27376      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27377      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27378      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27379      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27380      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27381      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27382      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27383      examples/msg/run_msg_test                                  \
27384      examples/simdag/test_simdag                                \
27385     ; do                                                        \
27386       test -e $file && chmod +x $file;                          \
27387     done
27388  ;;
27389     examples/gras/p2p/chord/test_sg )
27390     for file in                                                 \
27391      \
27392      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27393      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27394      \
27395      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27396      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27397      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27398      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27399      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27400      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27401      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27402      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27403      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27404      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27405      examples/msg/run_msg_test                                  \
27406      examples/simdag/test_simdag                                \
27407     ; do                                                        \
27408       test -e $file && chmod +x $file;                          \
27409     done
27410  ;;
27411     examples/gras/p2p/chord/test_rl )
27412     for file in                                                 \
27413      \
27414      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27415      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27416      \
27417      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27418      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27419      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27420      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27421      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27422      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27423      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27424      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27425      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27426      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27427      examples/msg/run_msg_test                                  \
27428      examples/simdag/test_simdag                                \
27429     ; do                                                        \
27430       test -e $file && chmod +x $file;                          \
27431     done
27432  ;;
27433     examples/gras/p2p/can/Makefile )
27434     for file in                                                 \
27435      \
27436      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27437      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27438      \
27439      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27440      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27441      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27442      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27443      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27444      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27445      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27446      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27447      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27448      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27449      examples/msg/run_msg_test                                  \
27450      examples/simdag/test_simdag                                \
27451     ; do                                                        \
27452       test -e $file && chmod +x $file;                          \
27453     done
27454  ;;
27455     examples/gras/p2p/can/test_sg )
27456     for file in                                                 \
27457      \
27458      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27459      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27460      \
27461      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27462      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27463      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27464      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27465      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27466      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27467      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27468      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27469      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27470      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27471      examples/msg/run_msg_test                                  \
27472      examples/simdag/test_simdag                                \
27473     ; do                                                        \
27474       test -e $file && chmod +x $file;                          \
27475     done
27476  ;;
27477     examples/gras/p2p/can/test_rl )
27478     for file in                                                 \
27479      \
27480      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27481      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27482      \
27483      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27484      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27485      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27486      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27487      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27488      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27489      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27490      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27491      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27492      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27493      examples/msg/run_msg_test                                  \
27494      examples/simdag/test_simdag                                \
27495     ; do                                                        \
27496       test -e $file && chmod +x $file;                          \
27497     done
27498  ;;
27499     examples/amok/Makefile )
27500     for file in                                                 \
27501      \
27502      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27503      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27504      \
27505      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27506      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27507      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27508      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27509      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27510      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27511      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27512      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27513      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27514      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27515      examples/msg/run_msg_test                                  \
27516      examples/simdag/test_simdag                                \
27517     ; do                                                        \
27518       test -e $file && chmod +x $file;                          \
27519     done
27520  ;;
27521     examples/amok/bandwidth/Makefile )
27522     for file in                                                 \
27523      \
27524      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27525      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27526      \
27527      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27528      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27529      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27530      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27531      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27532      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27533      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27534      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27535      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27536      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27537      examples/msg/run_msg_test                                  \
27538      examples/simdag/test_simdag                                \
27539     ; do                                                        \
27540       test -e $file && chmod +x $file;                          \
27541     done
27542  ;;
27543     examples/amok/bandwidth/test_sg )
27544     for file in                                                 \
27545      \
27546      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27547      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27548      \
27549      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27550      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27551      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27552      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27553      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27554      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27555      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27556      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27557      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27558      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27559      examples/msg/run_msg_test                                  \
27560      examples/simdag/test_simdag                                \
27561     ; do                                                        \
27562       test -e $file && chmod +x $file;                          \
27563     done
27564  ;;
27565     examples/amok/bandwidth/test_rl )
27566     for file in                                                 \
27567      \
27568      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27569      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27570      \
27571      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27572      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27573      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27574      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27575      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27576      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27577      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27578      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27579      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27580      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27581      examples/msg/run_msg_test                                  \
27582      examples/simdag/test_simdag                                \
27583     ; do                                                        \
27584       test -e $file && chmod +x $file;                          \
27585     done
27586  ;;
27587     examples/amok/saturate/Makefile )
27588     for file in                                                 \
27589      \
27590      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27591      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27592      \
27593      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27594      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27595      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27596      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27597      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27598      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27599      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27600      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27601      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27602      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27603      examples/msg/run_msg_test                                  \
27604      examples/simdag/test_simdag                                \
27605     ; do                                                        \
27606       test -e $file && chmod +x $file;                          \
27607     done
27608  ;;
27609     examples/amok/saturate/test_sg )
27610     for file in                                                 \
27611      \
27612      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27613      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27614      \
27615      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27616      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27617      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27618      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27619      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27620      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27621      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27622      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27623      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27624      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27625      examples/msg/run_msg_test                                  \
27626      examples/simdag/test_simdag                                \
27627     ; do                                                        \
27628       test -e $file && chmod +x $file;                          \
27629     done
27630  ;;
27631     examples/amok/saturate/test_rl )
27632     for file in                                                 \
27633      \
27634      examples/amok/bandwidth/test_sg examples/amok/bandwidth/test_rl \
27635      examples/amok/saturate/test_sg  examples/amok/saturate/test_rl \
27636      \
27637      examples/gras/ping/test_sg   examples/gras/ping/test_rl    \
27638      examples/gras/rpc/test_sg    examples/gras/rpc/test_rl     \
27639      examples/gras/timer/test_sg  examples/gras/timer/test_rl   \
27640      examples/gras/chrono/test_sg examples/gras/chrono/test_rl  \
27641      examples/gras/mutual_exclusion/simple_token/test_sg examples/gras/mutual_exclusion/simple_token/test_rl  \
27642      examples/gras/mmrpc/test_sg  examples/gras/mmrpc/test_rl   \
27643      examples/gras/pmm/test_sg    examples/gras/pmm/test_rl     \
27644      examples/gras/all2all/test_sg  examples/gras/all2all/test_rl   \
27645      examples/gras/p2p/chord/test_sg examples/gras/p2p/chord/test_rl  \
27646      examples/gras/p2p/can/test_sg   examples/gras/p2p/can/test_rl  \
27647      examples/msg/run_msg_test                                  \
27648      examples/simdag/test_simdag                                \
27649     ; do                                                        \
27650       test -e $file && chmod +x $file;                          \
27651     done
27652  ;;
27653   esac
27654 done
27655 _ACEOF
27656 cat >>$CONFIG_STATUS <<\_ACEOF
27657
27658 #
27659 # CONFIG_HEADER section.
27660 #
27661
27662 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27663 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27664 #
27665 # ac_d sets the value in "#define NAME VALUE" lines.
27666 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
27667 ac_dB='[         ].*$,\1#\2'
27668 ac_dC=' '
27669 ac_dD=',;t'
27670 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27671 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
27672 ac_uB='$,\1#\2define\3'
27673 ac_uC=' '
27674 ac_uD=',;t'
27675
27676 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27677   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27678   case $ac_file in
27679   - | *:- | *:-:* ) # input from stdin
27680         cat >$tmp/stdin
27681         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27682         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27683   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27684         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27685   * )   ac_file_in=$ac_file.in ;;
27686   esac
27687
27688   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27689 echo "$as_me: creating $ac_file" >&6;}
27690
27691   # First look for the input files in the build tree, otherwise in the
27692   # src tree.
27693   ac_file_inputs=`IFS=:
27694     for f in $ac_file_in; do
27695       case $f in
27696       -) echo $tmp/stdin ;;
27697       [\\/$]*)
27698          # Absolute (can't be DOS-style, as IFS=:)
27699          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27700 echo "$as_me: error: cannot find input file: $f" >&2;}
27701    { (exit 1); exit 1; }; }
27702          # Do quote $f, to prevent DOS paths from being IFS'd.
27703          echo "$f";;
27704       *) # Relative
27705          if test -f "$f"; then
27706            # Build tree
27707            echo "$f"
27708          elif test -f "$srcdir/$f"; then
27709            # Source tree
27710            echo "$srcdir/$f"
27711          else
27712            # /dev/null tree
27713            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27714 echo "$as_me: error: cannot find input file: $f" >&2;}
27715    { (exit 1); exit 1; }; }
27716          fi;;
27717       esac
27718     done` || { (exit 1); exit 1; }
27719   # Remove the trailing spaces.
27720   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
27721
27722 _ACEOF
27723
27724 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27725 # `conftest.undefs', that substitutes the proper values into
27726 # config.h.in to produce config.h.  The first handles `#define'
27727 # templates, and the second `#undef' templates.
27728 # And first: Protect against being on the right side of a sed subst in
27729 # config.status.  Protect against being in an unquoted here document
27730 # in config.status.
27731 rm -f conftest.defines conftest.undefs
27732 # Using a here document instead of a string reduces the quoting nightmare.
27733 # Putting comments in sed scripts is not portable.
27734 #
27735 # `end' is used to avoid that the second main sed command (meant for
27736 # 0-ary CPP macros) applies to n-ary macro definitions.
27737 # See the Autoconf documentation for `clear'.
27738 cat >confdef2sed.sed <<\_ACEOF
27739 s/[\\&,]/\\&/g
27740 s,[\\$`],\\&,g
27741 t clear
27742 : clear
27743 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27744 t end
27745 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27746 : end
27747 _ACEOF
27748 # If some macros were called several times there might be several times
27749 # the same #defines, which is useless.  Nevertheless, we may not want to
27750 # sort them, since we want the *last* AC-DEFINE to be honored.
27751 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27752 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27753 rm -f confdef2sed.sed
27754
27755 # This sed command replaces #undef with comments.  This is necessary, for
27756 # example, in the case of _POSIX_SOURCE, which is predefined and required
27757 # on some systems where configure will not decide to define it.
27758 cat >>conftest.undefs <<\_ACEOF
27759 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27760 _ACEOF
27761
27762 # Break up conftest.defines because some shells have a limit on the size
27763 # of here documents, and old seds have small limits too (100 cmds).
27764 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27765 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27766 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27767 echo '  :' >>$CONFIG_STATUS
27768 rm -f conftest.tail
27769 while grep . conftest.defines >/dev/null
27770 do
27771   # Write a limited-size here document to $tmp/defines.sed.
27772   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27773   # Speed up: don't consider the non `#define' lines.
27774   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
27775   # Work around the forget-to-reset-the-flag bug.
27776   echo 't clr' >>$CONFIG_STATUS
27777   echo ': clr' >>$CONFIG_STATUS
27778   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27779   echo 'CEOF
27780   sed -f $tmp/defines.sed $tmp/in >$tmp/out
27781   rm -f $tmp/in
27782   mv $tmp/out $tmp/in
27783 ' >>$CONFIG_STATUS
27784   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27785   rm -f conftest.defines
27786   mv conftest.tail conftest.defines
27787 done
27788 rm -f conftest.defines
27789 echo '  fi # grep' >>$CONFIG_STATUS
27790 echo >>$CONFIG_STATUS
27791
27792 # Break up conftest.undefs because some shells have a limit on the size
27793 # of here documents, and old seds have small limits too (100 cmds).
27794 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27795 rm -f conftest.tail
27796 while grep . conftest.undefs >/dev/null
27797 do
27798   # Write a limited-size here document to $tmp/undefs.sed.
27799   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27800   # Speed up: don't consider the non `#undef'
27801   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
27802   # Work around the forget-to-reset-the-flag bug.
27803   echo 't clr' >>$CONFIG_STATUS
27804   echo ': clr' >>$CONFIG_STATUS
27805   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27806   echo 'CEOF
27807   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27808   rm -f $tmp/in
27809   mv $tmp/out $tmp/in
27810 ' >>$CONFIG_STATUS
27811   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27812   rm -f conftest.undefs
27813   mv conftest.tail conftest.undefs
27814 done
27815 rm -f conftest.undefs
27816
27817 cat >>$CONFIG_STATUS <<\_ACEOF
27818   # Let's still pretend it is `configure' which instantiates (i.e., don't
27819   # use $as_me), people would be surprised to read:
27820   #    /* config.h.  Generated by config.status.  */
27821   if test x"$ac_file" = x-; then
27822     echo "/* Generated by configure.  */" >$tmp/config.h
27823   else
27824     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27825   fi
27826   cat $tmp/in >>$tmp/config.h
27827   rm -f $tmp/in
27828   if test x"$ac_file" != x-; then
27829     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27830       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27831 echo "$as_me: $ac_file is unchanged" >&6;}
27832     else
27833       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27835          X"$ac_file" : 'X\(//\)[^/]' \| \
27836          X"$ac_file" : 'X\(//\)$' \| \
27837          X"$ac_file" : 'X\(/\)' \| \
27838          .     : '\(.\)' 2>/dev/null ||
27839 echo X"$ac_file" |
27840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27841           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27842           /^X\(\/\/\)$/{ s//\1/; q; }
27843           /^X\(\/\).*/{ s//\1/; q; }
27844           s/.*/./; q'`
27845       { if $as_mkdir_p; then
27846     mkdir -p "$ac_dir"
27847   else
27848     as_dir="$ac_dir"
27849     as_dirs=
27850     while test ! -d "$as_dir"; do
27851       as_dirs="$as_dir $as_dirs"
27852       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27853 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27854          X"$as_dir" : 'X\(//\)[^/]' \| \
27855          X"$as_dir" : 'X\(//\)$' \| \
27856          X"$as_dir" : 'X\(/\)' \| \
27857          .     : '\(.\)' 2>/dev/null ||
27858 echo X"$as_dir" |
27859     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27860           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27861           /^X\(\/\/\)$/{ s//\1/; q; }
27862           /^X\(\/\).*/{ s//\1/; q; }
27863           s/.*/./; q'`
27864     done
27865     test ! -n "$as_dirs" || mkdir $as_dirs
27866   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27867 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27868    { (exit 1); exit 1; }; }; }
27869
27870       rm -f $ac_file
27871       mv $tmp/config.h $ac_file
27872     fi
27873   else
27874     cat $tmp/config.h
27875     rm -f $tmp/config.h
27876   fi
27877 # Compute $ac_file's index in $config_headers.
27878 _am_stamp_count=1
27879 for _am_header in $config_headers :; do
27880   case $_am_header in
27881     $ac_file | $ac_file:* )
27882       break ;;
27883     * )
27884       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27885   esac
27886 done
27887 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27888 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27889          X$ac_file : 'X\(//\)[^/]' \| \
27890          X$ac_file : 'X\(//\)$' \| \
27891          X$ac_file : 'X\(/\)' \| \
27892          .     : '\(.\)' 2>/dev/null ||
27893 echo X$ac_file |
27894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27895           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27896           /^X\(\/\/\)$/{ s//\1/; q; }
27897           /^X\(\/\).*/{ s//\1/; q; }
27898           s/.*/./; q'`/stamp-h$_am_stamp_count
27899 done
27900 _ACEOF
27901 cat >>$CONFIG_STATUS <<\_ACEOF
27902
27903 #
27904 # CONFIG_COMMANDS section.
27905 #
27906 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27907   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27908   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27909   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27910 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27911          X"$ac_dest" : 'X\(//\)[^/]' \| \
27912          X"$ac_dest" : 'X\(//\)$' \| \
27913          X"$ac_dest" : 'X\(/\)' \| \
27914          .     : '\(.\)' 2>/dev/null ||
27915 echo X"$ac_dest" |
27916     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27917           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27918           /^X\(\/\/\)$/{ s//\1/; q; }
27919           /^X\(\/\).*/{ s//\1/; q; }
27920           s/.*/./; q'`
27921   { if $as_mkdir_p; then
27922     mkdir -p "$ac_dir"
27923   else
27924     as_dir="$ac_dir"
27925     as_dirs=
27926     while test ! -d "$as_dir"; do
27927       as_dirs="$as_dir $as_dirs"
27928       as_dir=`(dirname "$as_dir") 2>/dev/null ||
27929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27930          X"$as_dir" : 'X\(//\)[^/]' \| \
27931          X"$as_dir" : 'X\(//\)$' \| \
27932          X"$as_dir" : 'X\(/\)' \| \
27933          .     : '\(.\)' 2>/dev/null ||
27934 echo X"$as_dir" |
27935     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27936           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27937           /^X\(\/\/\)$/{ s//\1/; q; }
27938           /^X\(\/\).*/{ s//\1/; q; }
27939           s/.*/./; q'`
27940     done
27941     test ! -n "$as_dirs" || mkdir $as_dirs
27942   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27943 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27944    { (exit 1); exit 1; }; }; }
27945
27946   ac_builddir=.
27947
27948 if test "$ac_dir" != .; then
27949   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27950   # A "../" for each directory in $ac_dir_suffix.
27951   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27952 else
27953   ac_dir_suffix= ac_top_builddir=
27954 fi
27955
27956 case $srcdir in
27957   .)  # No --srcdir option.  We are building in place.
27958     ac_srcdir=.
27959     if test -z "$ac_top_builddir"; then
27960        ac_top_srcdir=.
27961     else
27962        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27963     fi ;;
27964   [\\/]* | ?:[\\/]* )  # Absolute path.
27965     ac_srcdir=$srcdir$ac_dir_suffix;
27966     ac_top_srcdir=$srcdir ;;
27967   *) # Relative path.
27968     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27969     ac_top_srcdir=$ac_top_builddir$srcdir ;;
27970 esac
27971
27972 # Do not use `cd foo && pwd` to compute absolute paths, because
27973 # the directories may not exist.
27974 case `pwd` in
27975 .) ac_abs_builddir="$ac_dir";;
27976 *)
27977   case "$ac_dir" in
27978   .) ac_abs_builddir=`pwd`;;
27979   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27980   *) ac_abs_builddir=`pwd`/"$ac_dir";;
27981   esac;;
27982 esac
27983 case $ac_abs_builddir in
27984 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27985 *)
27986   case ${ac_top_builddir}. in
27987   .) ac_abs_top_builddir=$ac_abs_builddir;;
27988   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27989   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27990   esac;;
27991 esac
27992 case $ac_abs_builddir in
27993 .) ac_abs_srcdir=$ac_srcdir;;
27994 *)
27995   case $ac_srcdir in
27996   .) ac_abs_srcdir=$ac_abs_builddir;;
27997   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27998   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27999   esac;;
28000 esac
28001 case $ac_abs_builddir in
28002 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28003 *)
28004   case $ac_top_srcdir in
28005   .) ac_abs_top_srcdir=$ac_abs_builddir;;
28006   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28007   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28008   esac;;
28009 esac
28010
28011
28012   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28013 echo "$as_me: executing $ac_dest commands" >&6;}
28014   case $ac_dest in
28015     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28016   # Strip MF so we end up with the name of the file.
28017   mf=`echo "$mf" | sed -e 's/:.*$//'`
28018   # Check whether this is an Automake generated Makefile or not.
28019   # We used to match only the files named `Makefile.in', but
28020   # some people rename them; so instead we look at the file content.
28021   # Grep'ing the first line is not enough: some people post-process
28022   # each Makefile.in and add a new line on top of each file to say so.
28023   # So let's grep whole file.
28024   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28025     dirpart=`(dirname "$mf") 2>/dev/null ||
28026 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28027          X"$mf" : 'X\(//\)[^/]' \| \
28028          X"$mf" : 'X\(//\)$' \| \
28029          X"$mf" : 'X\(/\)' \| \
28030          .     : '\(.\)' 2>/dev/null ||
28031 echo X"$mf" |
28032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28033           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28034           /^X\(\/\/\)$/{ s//\1/; q; }
28035           /^X\(\/\).*/{ s//\1/; q; }
28036           s/.*/./; q'`
28037   else
28038     continue
28039   fi
28040   # Extract the definition of DEPDIR, am__include, and am__quote
28041   # from the Makefile without running `make'.
28042   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28043   test -z "$DEPDIR" && continue
28044   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28045   test -z "am__include" && continue
28046   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28047   # When using ansi2knr, U may be empty or an underscore; expand it
28048   U=`sed -n 's/^U = //p' < "$mf"`
28049   # Find all dependency output files, they are included files with
28050   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28051   # simplest approach to changing $(DEPDIR) to its actual value in the
28052   # expansion.
28053   for file in `sed -n "
28054     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28055        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28056     # Make sure the directory exists.
28057     test -f "$dirpart/$file" && continue
28058     fdir=`(dirname "$file") 2>/dev/null ||
28059 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28060          X"$file" : 'X\(//\)[^/]' \| \
28061          X"$file" : 'X\(//\)$' \| \
28062          X"$file" : 'X\(/\)' \| \
28063          .     : '\(.\)' 2>/dev/null ||
28064 echo X"$file" |
28065     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28066           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28067           /^X\(\/\/\)$/{ s//\1/; q; }
28068           /^X\(\/\).*/{ s//\1/; q; }
28069           s/.*/./; q'`
28070     { if $as_mkdir_p; then
28071     mkdir -p $dirpart/$fdir
28072   else
28073     as_dir=$dirpart/$fdir
28074     as_dirs=
28075     while test ! -d "$as_dir"; do
28076       as_dirs="$as_dir $as_dirs"
28077       as_dir=`(dirname "$as_dir") 2>/dev/null ||
28078 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28079          X"$as_dir" : 'X\(//\)[^/]' \| \
28080          X"$as_dir" : 'X\(//\)$' \| \
28081          X"$as_dir" : 'X\(/\)' \| \
28082          .     : '\(.\)' 2>/dev/null ||
28083 echo X"$as_dir" |
28084     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28085           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28086           /^X\(\/\/\)$/{ s//\1/; q; }
28087           /^X\(\/\).*/{ s//\1/; q; }
28088           s/.*/./; q'`
28089     done
28090     test ! -n "$as_dirs" || mkdir $as_dirs
28091   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28092 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28093    { (exit 1); exit 1; }; }; }
28094
28095     # echo "creating $dirpart/$file"
28096     echo '# dummy' > "$dirpart/$file"
28097   done
28098 done
28099  ;;
28100   esac
28101 done
28102 _ACEOF
28103
28104 cat >>$CONFIG_STATUS <<\_ACEOF
28105
28106 { (exit 0); exit 0; }
28107 _ACEOF
28108 chmod +x $CONFIG_STATUS
28109 ac_clean_files=$ac_clean_files_save
28110
28111
28112 # configure is writing to config.log, and then calls config.status.
28113 # config.status does its own redirection, appending to config.log.
28114 # Unfortunately, on DOS this fails, as config.log is still kept open
28115 # by configure, so config.status won't be able to write to it; its
28116 # output is simply discarded.  So we exec the FD to /dev/null,
28117 # effectively closing config.log, so it can be properly (re)opened and
28118 # appended to by config.status.  When coming back to configure, we
28119 # need to make the FD available again.
28120 if test "$no_create" != yes; then
28121   ac_cs_success=:
28122   ac_config_status_args=
28123   test "$silent" = yes &&
28124     ac_config_status_args="$ac_config_status_args --quiet"
28125   exec 5>/dev/null
28126   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28127   exec 5>>config.log
28128   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28129   # would make configure fail if this is the last instruction.
28130   $ac_cs_success || { (exit 1); exit 1; }
28131 fi
28132
28133
28134 echo "
28135
28136 Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name (=$gras_arch):
28137
28138         Compiler:        ${CC} (version: ${GCC_VERSION})
28139
28140         CFlags:          ${CFLAGS}
28141         CPPFlags:        ${CPPFLAGS}
28142         LDFlags:         ${LDFLAGS}
28143
28144         Context backend: ${with_context}
28145 "
28146
28147 if test -e CVS && test x$USE_MAINTAINER_MODE != xyes ; then
28148   echo "WARNING:"
28149   echo "WARNING: you seem to compile the CVS version without the maintainer mode."
28150   echo "WARNING: You may want to enable this by specifying:"
28151   echo "WARNING:"
28152   echo "WARNING: ./configure --enable-maintainer-mode  $ac_configure_args"
28153   echo "WARNING:"
28154 fi
28155 echo $build_id > stamp.configure
28156
28157 exit 0;