(1) Rematerialize nodes from the globals graph into the current graph
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for [LLVM] [1.0].
4 #
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # 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
13 # Check that we are running under the correct shell.
14 SHELL=${CONFIG_SHELL-/bin/sh}
15
16 case X$ECHO in
17 X*--fallback-echo)
18   # Remove one level of quotation (which was required for Make).
19   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
20   ;;
21 esac
22
23 echo=${ECHO-echo}
24 if test "X$1" = X--no-reexec; then
25   # Discard the --no-reexec flag, and continue.
26   shift
27 elif test "X$1" = X--fallback-echo; then
28   # Avoid inline document here, it may be left over
29   :
30 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
31   # Yippee, $echo works!
32   :
33 else
34   # Restart under the correct shell.
35   exec $SHELL "$0" --no-reexec ${1+"$@"}
36 fi
37
38 if test "X$1" = X--fallback-echo; then
39   # used as fallback echo
40   shift
41   cat <<EOF
42 $*
43 EOF
44   exit 0
45 fi
46
47 # The HP-UX ksh and POSIX shell print the target directory to stdout
48 # if CDPATH is set.
49 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
50
51 if test -z "$ECHO"; then
52 if test "X${echo_test_string+set}" != Xset; then
53 # find a string as large as possible, as long as the shell can cope with it
54   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
55     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
56     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
57        echo_test_string="`eval $cmd`" &&
58        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
59     then
60       break
61     fi
62   done
63 fi
64
65 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
66    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
67    test "X$echo_testing_string" = "X$echo_test_string"; then
68   :
69 else
70   # The Solaris, AIX, and Digital Unix default echo programs unquote
71   # backslashes.  This makes it impossible to quote backslashes using
72   #   echo "$something" | sed 's/\\/\\\\/g'
73   #
74   # So, first we look for a working echo in the user's PATH.
75
76   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
77   for dir in $PATH /usr/ucb; do
78     IFS="$lt_save_ifs"
79     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
80        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
81        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
82        test "X$echo_testing_string" = "X$echo_test_string"; then
83       echo="$dir/echo"
84       break
85     fi
86   done
87   IFS="$lt_save_ifs"
88
89   if test "X$echo" = Xecho; then
90     # We didn't find a better echo, so look for alternatives.
91     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
92        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
93        test "X$echo_testing_string" = "X$echo_test_string"; then
94       # This shell has a builtin print -r that does the trick.
95       echo='print -r'
96     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
97          test "X$CONFIG_SHELL" != X/bin/ksh; then
98       # If we have ksh, try running configure again with it.
99       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
100       export ORIGINAL_CONFIG_SHELL
101       CONFIG_SHELL=/bin/ksh
102       export CONFIG_SHELL
103       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
104     else
105       # Try using printf.
106       echo='printf %s\n'
107       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
108          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
109          test "X$echo_testing_string" = "X$echo_test_string"; then
110         # Cool, printf works
111         :
112       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
113            test "X$echo_testing_string" = 'X\t' &&
114            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
115            test "X$echo_testing_string" = "X$echo_test_string"; then
116         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
117         export CONFIG_SHELL
118         SHELL="$CONFIG_SHELL"
119         export SHELL
120         echo="$CONFIG_SHELL $0 --fallback-echo"
121       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
122            test "X$echo_testing_string" = 'X\t' &&
123            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
124            test "X$echo_testing_string" = "X$echo_test_string"; then
125         echo="$CONFIG_SHELL $0 --fallback-echo"
126       else
127         # maybe with a smaller string...
128         prev=:
129
130         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
131           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
132           then
133             break
134           fi
135           prev="$cmd"
136         done
137
138         if test "$prev" != 'sed 50q "$0"'; then
139           echo_test_string=`eval $prev`
140           export echo_test_string
141           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
142         else
143           # Oops.  We lost completely, so just stick with echo.
144           echo=echo
145         fi
146       fi
147     fi
148   fi
149 fi
150 fi
151
152 # Copy echo and quote the copy suitably for passing to libtool from
153 # the Makefile, instead of quoting the original, which is used later.
154 ECHO=$echo
155 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
156    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
157 fi
158
159
160
161
162 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
163
164 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
165
166 if expr a : '\(a\)' >/dev/null 2>&1; then
167   as_expr=expr
168 else
169   as_expr=false
170 fi
171
172
173 ## --------------------- ##
174 ## M4sh Initialization.  ##
175 ## --------------------- ##
176
177 # Be Bourne compatible
178 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
179   emulate sh
180   NULLCMD=:
181 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
182   set -o posix
183 fi
184
185 # NLS nuisances.
186 # Support unset when possible.
187 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
188   as_unset=unset
189 else
190   as_unset=false
191 fi
192
193 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
194     { $as_unset LANG || test "${LANG+set}" != set; } ||
195       { LANG=C; export LANG; }
196 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
197     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
198       { LC_ALL=C; export LC_ALL; }
199 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
200     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
201       { LC_TIME=C; export LC_TIME; }
202 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
203     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
204       { LC_CTYPE=C; export LC_CTYPE; }
205 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
206     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
207       { LANGUAGE=C; export LANGUAGE; }
208 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
209     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
210       { LC_COLLATE=C; export LC_COLLATE; }
211 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
212     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
213       { LC_NUMERIC=C; export LC_NUMERIC; }
214 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
215     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
216       { LC_MESSAGES=C; export LC_MESSAGES; }
217
218
219 # Name of the executable.
220 as_me=`(basename "$0") 2>/dev/null ||
221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
222          X"$0" : 'X\(//\)$' \| \
223          X"$0" : 'X\(/\)$' \| \
224          .     : '\(.\)' 2>/dev/null ||
225 echo X/"$0" |
226     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
227           /^X\/\(\/\/\)$/{ s//\1/; q; }
228           /^X\/\(\/\).*/{ s//\1/; q; }
229           s/.*/./; q'`
230
231 # PATH needs CR, and LINENO needs CR and PATH.
232 # Avoid depending upon Character Ranges.
233 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
236 as_cr_digits='0123456789'
237 as_cr_alnum=$as_cr_Letters$as_cr_digits
238
239 # The user is always right.
240 if test "${PATH_SEPARATOR+set}" != set; then
241   echo "#! /bin/sh" >conftest.sh
242   echo  "exit 0"   >>conftest.sh
243   chmod +x conftest.sh
244   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
245     PATH_SEPARATOR=';'
246   else
247     PATH_SEPARATOR=:
248   fi
249   rm -f conftest.sh
250 fi
251
252
253   as_lineno_1=$LINENO
254   as_lineno_2=$LINENO
255   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
256   test "x$as_lineno_1" != "x$as_lineno_2" &&
257   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
258   # Find who we are.  Look in the path if we contain no path at all
259   # relative or not.
260   case $0 in
261     *[\\/]* ) as_myself=$0 ;;
262     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
263 for as_dir in $PATH
264 do
265   IFS=$as_save_IFS
266   test -z "$as_dir" && as_dir=.
267   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
268 done
269
270        ;;
271   esac
272   # We did not find ourselves, most probably we were run as `sh COMMAND'
273   # in which case we are not to be found in the path.
274   if test "x$as_myself" = x; then
275     as_myself=$0
276   fi
277   if test ! -f "$as_myself"; then
278     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
279    { (exit 1); exit 1; }; }
280   fi
281   case $CONFIG_SHELL in
282   '')
283     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
284 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
285 do
286   IFS=$as_save_IFS
287   test -z "$as_dir" && as_dir=.
288   for as_base in sh bash ksh sh5; do
289          case $as_dir in
290          /*)
291            if ("$as_dir/$as_base" -c '
292   as_lineno_1=$LINENO
293   as_lineno_2=$LINENO
294   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
295   test "x$as_lineno_1" != "x$as_lineno_2" &&
296   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
297              CONFIG_SHELL=$as_dir/$as_base
298              export CONFIG_SHELL
299              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
300            fi;;
301          esac
302        done
303 done
304 ;;
305   esac
306
307   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
308   # uniformly replaced by the line number.  The first 'sed' inserts a
309   # line-number line before each line; the second 'sed' does the real
310   # work.  The second script uses 'N' to pair each line-number line
311   # with the numbered line, and appends trailing '-' during
312   # substitution so that $LINENO is not a special case at line end.
313   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
314   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
315   sed '=' <$as_myself |
316     sed '
317       N
318       s,$,-,
319       : loop
320       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
321       t loop
322       s,-$,,
323       s,^['$as_cr_digits']*\n,,
324     ' >$as_me.lineno &&
325   chmod +x $as_me.lineno ||
326     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
327    { (exit 1); exit 1; }; }
328
329   # Don't try to exec as it changes $[0], causing all sort of problems
330   # (the dirname of $[0] is not the place where we might find the
331   # original and so on.  Autoconf is especially sensible to this).
332   . ./$as_me.lineno
333   # Exit status is that of the last command.
334   exit
335 }
336
337
338 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
339   *c*,-n*) ECHO_N= ECHO_C='
340 ' ECHO_T='      ' ;;
341   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
342   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
343 esac
344
345 if expr a : '\(a\)' >/dev/null 2>&1; then
346   as_expr=expr
347 else
348   as_expr=false
349 fi
350
351 rm -f conf$$ conf$$.exe conf$$.file
352 echo >conf$$.file
353 if ln -s conf$$.file conf$$ 2>/dev/null; then
354   # We could just check for DJGPP; but this test a) works b) is more generic
355   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
356   if test -f conf$$.exe; then
357     # Don't use ln at all; we don't have any links
358     as_ln_s='cp -p'
359   else
360     as_ln_s='ln -s'
361   fi
362 elif ln conf$$.file conf$$ 2>/dev/null; then
363   as_ln_s=ln
364 else
365   as_ln_s='cp -p'
366 fi
367 rm -f conf$$ conf$$.exe conf$$.file
368
369 as_executable_p="test -f"
370
371 # Sed expression to map a string onto a valid CPP name.
372 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
373
374 # Sed expression to map a string onto a valid variable name.
375 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
376
377
378 # IFS
379 # We need space, tab and new line, in precisely that order.
380 as_nl='
381 '
382 IFS="   $as_nl"
383
384 # CDPATH.
385 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
386
387
388 # Name of the host.
389 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
390 # so uname gets run too.
391 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
392
393 exec 6>&1
394
395 #
396 # Initializations.
397 #
398 ac_default_prefix=/usr/local
399 cross_compiling=no
400 subdirs=
401 MFLAGS=
402 MAKEFLAGS=
403 SHELL=${CONFIG_SHELL-/bin/sh}
404
405 # Maximum number of lines to put in a shell here document.
406 # This variable seems obsolete.  It should probably be removed, and
407 # only ac_max_sed_lines should be used.
408 : ${ac_max_here_lines=38}
409
410 # Identity of this package.
411 PACKAGE_NAME='[LLVM]'
412 PACKAGE_TARNAME='--llvm--'
413 PACKAGE_VERSION='[1.0]'
414 PACKAGE_STRING='[LLVM] [1.0]'
415 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
416
417 # Factoring default headers for most tests.
418 ac_includes_default="\
419 #include <stdio.h>
420 #if HAVE_SYS_TYPES_H
421 # include <sys/types.h>
422 #endif
423 #if HAVE_SYS_STAT_H
424 # include <sys/stat.h>
425 #endif
426 #if STDC_HEADERS
427 # include <stdlib.h>
428 # include <stddef.h>
429 #else
430 # if HAVE_STDLIB_H
431 #  include <stdlib.h>
432 # endif
433 #endif
434 #if HAVE_STRING_H
435 # if !STDC_HEADERS && HAVE_MEMORY_H
436 #  include <memory.h>
437 # endif
438 # include <string.h>
439 #endif
440 #if HAVE_STRINGS_H
441 # include <strings.h>
442 #endif
443 #if HAVE_INTTYPES_H
444 # include <inttypes.h>
445 #else
446 # if HAVE_STDINT_H
447 #  include <stdint.h>
448 # endif
449 #endif
450 #if HAVE_UNISTD_H
451 # include <unistd.h>
452 #endif"
453
454 ac_unique_file=""Makefile.config.in""
455
456 # Initialize some variables set by options.
457 ac_init_help=
458 ac_init_version=false
459 # The variables have the same names as the options, with
460 # dashes changed to underlines.
461 cache_file=/dev/null
462 exec_prefix=NONE
463 no_create=
464 no_recursion=
465 prefix=NONE
466 program_prefix=NONE
467 program_suffix=NONE
468 program_transform_name=s,x,x,
469 silent=
470 site=
471 srcdir=
472 verbose=
473 x_includes=NONE
474 x_libraries=NONE
475
476 # Installation directory options.
477 # These are left unexpanded so users can "make install exec_prefix=/foo"
478 # and all the variables that are supposed to be based on exec_prefix
479 # by default will actually change.
480 # Use braces instead of parens because sh, perl, etc. also accept them.
481 bindir='${exec_prefix}/bin'
482 sbindir='${exec_prefix}/sbin'
483 libexecdir='${exec_prefix}/libexec'
484 datadir='${prefix}/share'
485 sysconfdir='${prefix}/etc'
486 sharedstatedir='${prefix}/com'
487 localstatedir='${prefix}/var'
488 libdir='${exec_prefix}/lib'
489 includedir='${prefix}/include'
490 oldincludedir='/usr/include'
491 infodir='${prefix}/info'
492 mandir='${prefix}/man'
493
494 ac_prev=
495 for ac_option
496 do
497   # If the previous option needs an argument, assign it.
498   if test -n "$ac_prev"; then
499     eval "$ac_prev=\$ac_option"
500     ac_prev=
501     continue
502   fi
503
504   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
505
506   # Accept the important Cygnus configure options, so we can diagnose typos.
507
508   case $ac_option in
509
510   -bindir | --bindir | --bindi | --bind | --bin | --bi)
511     ac_prev=bindir ;;
512   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
513     bindir=$ac_optarg ;;
514
515   -build | --build | --buil | --bui | --bu)
516     ac_prev=build_alias ;;
517   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
518     build_alias=$ac_optarg ;;
519
520   -cache-file | --cache-file | --cache-fil | --cache-fi \
521   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
522     ac_prev=cache_file ;;
523   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
524   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
525     cache_file=$ac_optarg ;;
526
527   --config-cache | -C)
528     cache_file=config.cache ;;
529
530   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
531     ac_prev=datadir ;;
532   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
533   | --da=*)
534     datadir=$ac_optarg ;;
535
536   -disable-* | --disable-*)
537     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
538     # Reject names that are not valid shell variable names.
539     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
540       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
541    { (exit 1); exit 1; }; }
542     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
543     eval "enable_$ac_feature=no" ;;
544
545   -enable-* | --enable-*)
546     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
547     # Reject names that are not valid shell variable names.
548     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550    { (exit 1); exit 1; }; }
551     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552     case $ac_option in
553       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
554       *) ac_optarg=yes ;;
555     esac
556     eval "enable_$ac_feature='$ac_optarg'" ;;
557
558   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
559   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
560   | --exec | --exe | --ex)
561     ac_prev=exec_prefix ;;
562   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
563   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
564   | --exec=* | --exe=* | --ex=*)
565     exec_prefix=$ac_optarg ;;
566
567   -gas | --gas | --ga | --g)
568     # Obsolete; use --with-gas.
569     with_gas=yes ;;
570
571   -help | --help | --hel | --he | -h)
572     ac_init_help=long ;;
573   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
574     ac_init_help=recursive ;;
575   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
576     ac_init_help=short ;;
577
578   -host | --host | --hos | --ho)
579     ac_prev=host_alias ;;
580   -host=* | --host=* | --hos=* | --ho=*)
581     host_alias=$ac_optarg ;;
582
583   -includedir | --includedir | --includedi | --included | --include \
584   | --includ | --inclu | --incl | --inc)
585     ac_prev=includedir ;;
586   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
587   | --includ=* | --inclu=* | --incl=* | --inc=*)
588     includedir=$ac_optarg ;;
589
590   -infodir | --infodir | --infodi | --infod | --info | --inf)
591     ac_prev=infodir ;;
592   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
593     infodir=$ac_optarg ;;
594
595   -libdir | --libdir | --libdi | --libd)
596     ac_prev=libdir ;;
597   -libdir=* | --libdir=* | --libdi=* | --libd=*)
598     libdir=$ac_optarg ;;
599
600   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
601   | --libexe | --libex | --libe)
602     ac_prev=libexecdir ;;
603   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
604   | --libexe=* | --libex=* | --libe=*)
605     libexecdir=$ac_optarg ;;
606
607   -localstatedir | --localstatedir | --localstatedi | --localstated \
608   | --localstate | --localstat | --localsta | --localst \
609   | --locals | --local | --loca | --loc | --lo)
610     ac_prev=localstatedir ;;
611   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
612   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
613   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
614     localstatedir=$ac_optarg ;;
615
616   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
617     ac_prev=mandir ;;
618   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
619     mandir=$ac_optarg ;;
620
621   -nfp | --nfp | --nf)
622     # Obsolete; use --without-fp.
623     with_fp=no ;;
624
625   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
626   | --no-cr | --no-c | -n)
627     no_create=yes ;;
628
629   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
630   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
631     no_recursion=yes ;;
632
633   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
634   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
635   | --oldin | --oldi | --old | --ol | --o)
636     ac_prev=oldincludedir ;;
637   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
638   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
639   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
640     oldincludedir=$ac_optarg ;;
641
642   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
643     ac_prev=prefix ;;
644   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
645     prefix=$ac_optarg ;;
646
647   -program-prefix | --program-prefix | --program-prefi | --program-pref \
648   | --program-pre | --program-pr | --program-p)
649     ac_prev=program_prefix ;;
650   -program-prefix=* | --program-prefix=* | --program-prefi=* \
651   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
652     program_prefix=$ac_optarg ;;
653
654   -program-suffix | --program-suffix | --program-suffi | --program-suff \
655   | --program-suf | --program-su | --program-s)
656     ac_prev=program_suffix ;;
657   -program-suffix=* | --program-suffix=* | --program-suffi=* \
658   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
659     program_suffix=$ac_optarg ;;
660
661   -program-transform-name | --program-transform-name \
662   | --program-transform-nam | --program-transform-na \
663   | --program-transform-n | --program-transform- \
664   | --program-transform | --program-transfor \
665   | --program-transfo | --program-transf \
666   | --program-trans | --program-tran \
667   | --progr-tra | --program-tr | --program-t)
668     ac_prev=program_transform_name ;;
669   -program-transform-name=* | --program-transform-name=* \
670   | --program-transform-nam=* | --program-transform-na=* \
671   | --program-transform-n=* | --program-transform-=* \
672   | --program-transform=* | --program-transfor=* \
673   | --program-transfo=* | --program-transf=* \
674   | --program-trans=* | --program-tran=* \
675   | --progr-tra=* | --program-tr=* | --program-t=*)
676     program_transform_name=$ac_optarg ;;
677
678   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
679   | -silent | --silent | --silen | --sile | --sil)
680     silent=yes ;;
681
682   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
683     ac_prev=sbindir ;;
684   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
685   | --sbi=* | --sb=*)
686     sbindir=$ac_optarg ;;
687
688   -sharedstatedir | --sharedstatedir | --sharedstatedi \
689   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
690   | --sharedst | --shareds | --shared | --share | --shar \
691   | --sha | --sh)
692     ac_prev=sharedstatedir ;;
693   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
694   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
695   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
696   | --sha=* | --sh=*)
697     sharedstatedir=$ac_optarg ;;
698
699   -site | --site | --sit)
700     ac_prev=site ;;
701   -site=* | --site=* | --sit=*)
702     site=$ac_optarg ;;
703
704   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
705     ac_prev=srcdir ;;
706   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
707     srcdir=$ac_optarg ;;
708
709   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
710   | --syscon | --sysco | --sysc | --sys | --sy)
711     ac_prev=sysconfdir ;;
712   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
713   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
714     sysconfdir=$ac_optarg ;;
715
716   -target | --target | --targe | --targ | --tar | --ta | --t)
717     ac_prev=target_alias ;;
718   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
719     target_alias=$ac_optarg ;;
720
721   -v | -verbose | --verbose | --verbos | --verbo | --verb)
722     verbose=yes ;;
723
724   -version | --version | --versio | --versi | --vers | -V)
725     ac_init_version=: ;;
726
727   -with-* | --with-*)
728     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
729     # Reject names that are not valid shell variable names.
730     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
731       { echo "$as_me: error: invalid package name: $ac_package" >&2
732    { (exit 1); exit 1; }; }
733     ac_package=`echo $ac_package| sed 's/-/_/g'`
734     case $ac_option in
735       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
736       *) ac_optarg=yes ;;
737     esac
738     eval "with_$ac_package='$ac_optarg'" ;;
739
740   -without-* | --without-*)
741     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package | sed 's/-/_/g'`
747     eval "with_$ac_package=no" ;;
748
749   --x)
750     # Obsolete; use --with-x.
751     with_x=yes ;;
752
753   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
754   | --x-incl | --x-inc | --x-in | --x-i)
755     ac_prev=x_includes ;;
756   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
757   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
758     x_includes=$ac_optarg ;;
759
760   -x-libraries | --x-libraries | --x-librarie | --x-librari \
761   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
762     ac_prev=x_libraries ;;
763   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
764   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
765     x_libraries=$ac_optarg ;;
766
767   -*) { echo "$as_me: error: unrecognized option: $ac_option
768 Try \`$0 --help' for more information." >&2
769    { (exit 1); exit 1; }; }
770     ;;
771
772   *=*)
773     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
774     # Reject names that are not valid shell variable names.
775     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
776       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
777    { (exit 1); exit 1; }; }
778     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
779     eval "$ac_envvar='$ac_optarg'"
780     export $ac_envvar ;;
781
782   *)
783     # FIXME: should be removed in autoconf 3.0.
784     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
785     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
786       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
787     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
788     ;;
789
790   esac
791 done
792
793 if test -n "$ac_prev"; then
794   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
795   { echo "$as_me: error: missing argument to $ac_option" >&2
796    { (exit 1); exit 1; }; }
797 fi
798
799 # Be sure to have absolute paths.
800 for ac_var in exec_prefix prefix
801 do
802   eval ac_val=$`echo $ac_var`
803   case $ac_val in
804     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
805     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
806    { (exit 1); exit 1; }; };;
807   esac
808 done
809
810 # Be sure to have absolute paths.
811 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
812               localstatedir libdir includedir oldincludedir infodir mandir
813 do
814   eval ac_val=$`echo $ac_var`
815   case $ac_val in
816     [\\/$]* | ?:[\\/]* ) ;;
817     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818    { (exit 1); exit 1; }; };;
819   esac
820 done
821
822 # There might be people who depend on the old broken behavior: `$host'
823 # used to hold the argument of --host etc.
824 # FIXME: To remove some day.
825 build=$build_alias
826 host=$host_alias
827 target=$target_alias
828
829 # FIXME: To remove some day.
830 if test "x$host_alias" != x; then
831   if test "x$build_alias" = x; then
832     cross_compiling=maybe
833     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
834     If a cross compiler is detected then cross compile mode will be used." >&2
835   elif test "x$build_alias" != "x$host_alias"; then
836     cross_compiling=yes
837   fi
838 fi
839
840 ac_tool_prefix=
841 test -n "$host_alias" && ac_tool_prefix=$host_alias-
842
843 test "$silent" = yes && exec 6>/dev/null
844
845
846 # Find the source files, if location was not specified.
847 if test -z "$srcdir"; then
848   ac_srcdir_defaulted=yes
849   # Try the directory containing this script, then its parent.
850   ac_confdir=`(dirname "$0") 2>/dev/null ||
851 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
852          X"$0" : 'X\(//\)[^/]' \| \
853          X"$0" : 'X\(//\)$' \| \
854          X"$0" : 'X\(/\)' \| \
855          .     : '\(.\)' 2>/dev/null ||
856 echo X"$0" |
857     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
858           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
859           /^X\(\/\/\)$/{ s//\1/; q; }
860           /^X\(\/\).*/{ s//\1/; q; }
861           s/.*/./; q'`
862   srcdir=$ac_confdir
863   if test ! -r $srcdir/$ac_unique_file; then
864     srcdir=..
865   fi
866 else
867   ac_srcdir_defaulted=no
868 fi
869 if test ! -r $srcdir/$ac_unique_file; then
870   if test "$ac_srcdir_defaulted" = yes; then
871     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
872    { (exit 1); exit 1; }; }
873   else
874     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
875    { (exit 1); exit 1; }; }
876   fi
877 fi
878 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
879 ac_env_build_alias_set=${build_alias+set}
880 ac_env_build_alias_value=$build_alias
881 ac_cv_env_build_alias_set=${build_alias+set}
882 ac_cv_env_build_alias_value=$build_alias
883 ac_env_host_alias_set=${host_alias+set}
884 ac_env_host_alias_value=$host_alias
885 ac_cv_env_host_alias_set=${host_alias+set}
886 ac_cv_env_host_alias_value=$host_alias
887 ac_env_target_alias_set=${target_alias+set}
888 ac_env_target_alias_value=$target_alias
889 ac_cv_env_target_alias_set=${target_alias+set}
890 ac_cv_env_target_alias_value=$target_alias
891 ac_env_CXX_set=${CXX+set}
892 ac_env_CXX_value=$CXX
893 ac_cv_env_CXX_set=${CXX+set}
894 ac_cv_env_CXX_value=$CXX
895 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
896 ac_env_CXXFLAGS_value=$CXXFLAGS
897 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
898 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
899 ac_env_LDFLAGS_set=${LDFLAGS+set}
900 ac_env_LDFLAGS_value=$LDFLAGS
901 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
902 ac_cv_env_LDFLAGS_value=$LDFLAGS
903 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
904 ac_env_CPPFLAGS_value=$CPPFLAGS
905 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
906 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_CPP_set=${CPP+set}
916 ac_env_CPP_value=$CPP
917 ac_cv_env_CPP_set=${CPP+set}
918 ac_cv_env_CPP_value=$CPP
919 ac_env_CXXCPP_set=${CXXCPP+set}
920 ac_env_CXXCPP_value=$CXXCPP
921 ac_cv_env_CXXCPP_set=${CXXCPP+set}
922 ac_cv_env_CXXCPP_value=$CXXCPP
923 ac_env_F77_set=${F77+set}
924 ac_env_F77_value=$F77
925 ac_cv_env_F77_set=${F77+set}
926 ac_cv_env_F77_value=$F77
927 ac_env_FFLAGS_set=${FFLAGS+set}
928 ac_env_FFLAGS_value=$FFLAGS
929 ac_cv_env_FFLAGS_set=${FFLAGS+set}
930 ac_cv_env_FFLAGS_value=$FFLAGS
931
932 #
933 # Report the --help message.
934 #
935 if test "$ac_init_help" = "long"; then
936   # Omit some internal or obsolete options to make the list less imposing.
937   # This message is too long to be a string in the A/UX 3.1 sh.
938   cat <<_ACEOF
939 \`configure' configures [LLVM] [1.0] to adapt to many kinds of systems.
940
941 Usage: $0 [OPTION]... [VAR=VALUE]...
942
943 To assign environment variables (e.g., CC, CFLAGS...), specify them as
944 VAR=VALUE.  See below for descriptions of some of the useful variables.
945
946 Defaults for the options are specified in brackets.
947
948 Configuration:
949   -h, --help              display this help and exit
950       --help=short        display options specific to this package
951       --help=recursive    display the short help of all the included packages
952   -V, --version           display version information and exit
953   -q, --quiet, --silent   do not print \`checking...' messages
954       --cache-file=FILE   cache test results in FILE [disabled]
955   -C, --config-cache      alias for \`--cache-file=config.cache'
956   -n, --no-create         do not create output files
957       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
958
959 _ACEOF
960
961   cat <<_ACEOF
962 Installation directories:
963   --prefix=PREFIX         install architecture-independent files in PREFIX
964                           [$ac_default_prefix]
965   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
966                           [PREFIX]
967
968 By default, \`make install' will install all the files in
969 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
970 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
971 for instance \`--prefix=\$HOME'.
972
973 For better control, use the options below.
974
975 Fine tuning of the installation directories:
976   --bindir=DIR           user executables [EPREFIX/bin]
977   --sbindir=DIR          system admin executables [EPREFIX/sbin]
978   --libexecdir=DIR       program executables [EPREFIX/libexec]
979   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
980   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
981   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
982   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
983   --libdir=DIR           object code libraries [EPREFIX/lib]
984   --includedir=DIR       C header files [PREFIX/include]
985   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
986   --infodir=DIR          info documentation [PREFIX/info]
987   --mandir=DIR           man documentation [PREFIX/man]
988 _ACEOF
989
990   cat <<\_ACEOF
991
992 System types:
993   --build=BUILD     configure for building on BUILD [guessed]
994   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
995   --target=TARGET   configure for building compilers for TARGET [HOST]
996 _ACEOF
997 fi
998
999 if test -n "$ac_init_help"; then
1000   case $ac_init_help in
1001      short | recursive ) echo "Configuration of [LLVM] [1.0]:";;
1002    esac
1003   cat <<\_ACEOF
1004
1005 Optional Features:
1006   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1007   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1008   --enable-shared[=PKGS]
1009                           build shared libraries [default=yes]
1010   --enable-static[=PKGS]
1011                           build static libraries [default=yes]
1012   --enable-fast-install[=PKGS]
1013                           optimize for fast installation [default=yes]
1014   --disable-libtool-lock  avoid locking (might break parallel builds)
1015   --enable-purify         Compile with purify (default is NO)
1016   --enable-optimized      Compile with optimizations enabled (default is NO)
1017   --enable-spec           Compile SPEC benchmarks (default is NO)
1018   --enable-precompiled_bytecode
1019                           Use pre-compiled bytecode (default is NO)
1020   --enable-jit            Enable Just In Time Compiling (default is NO)
1021
1022 Optional Packages:
1023   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1024   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1025   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1026   --with-pic              try to use only PIC/non-PIC objects [default=use
1027                           both]
1028   --with-tags[=TAGS]
1029                           include additional configurations [automatic]
1030   --with-spec             Location of SPEC benchmarks
1031   --with-llvmgccdir       Location of LLVM GCC front-end
1032   --with-bcrepos          Location of Bytecode Repository
1033   --with-papi             Location of PAPI
1034   --with-objroot          Location where object files should be placed
1035                           (default is .)
1036   --with-purify           Location of purify program
1037
1038 Some influential environment variables:
1039   CXX         C++ compiler command
1040   CXXFLAGS    C++ compiler flags
1041   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1042               nonstandard directory <lib dir>
1043   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1044               headers in a nonstandard directory <include dir>
1045   CC          C compiler command
1046   CFLAGS      C compiler flags
1047   CPP         C preprocessor
1048   CXXCPP      C++ preprocessor
1049   F77         Fortran 77 compiler command
1050   FFLAGS      Fortran 77 compiler flags
1051
1052 Use these variables to override the choices made by `configure' or to help
1053 it to find libraries and programs with nonstandard names/locations.
1054
1055 Report bugs to <llvmbugs@cs.uiuc.edu>.
1056 _ACEOF
1057 fi
1058
1059 if test "$ac_init_help" = "recursive"; then
1060   # If there are subdirs, report their specific --help.
1061   ac_popdir=`pwd`
1062   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1063     test -d $ac_dir || continue
1064     ac_builddir=.
1065
1066 if test "$ac_dir" != .; then
1067   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1068   # A "../" for each directory in $ac_dir_suffix.
1069   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1070 else
1071   ac_dir_suffix= ac_top_builddir=
1072 fi
1073
1074 case $srcdir in
1075   .)  # No --srcdir option.  We are building in place.
1076     ac_srcdir=.
1077     if test -z "$ac_top_builddir"; then
1078        ac_top_srcdir=.
1079     else
1080        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1081     fi ;;
1082   [\\/]* | ?:[\\/]* )  # Absolute path.
1083     ac_srcdir=$srcdir$ac_dir_suffix;
1084     ac_top_srcdir=$srcdir ;;
1085   *) # Relative path.
1086     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1087     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1088 esac
1089 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1090 # absolute.
1091 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1092 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1093 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1094 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1095
1096     cd $ac_dir
1097     # Check for guested configure; otherwise get Cygnus style configure.
1098     if test -f $ac_srcdir/configure.gnu; then
1099       echo
1100       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1101     elif test -f $ac_srcdir/configure; then
1102       echo
1103       $SHELL $ac_srcdir/configure  --help=recursive
1104     elif test -f $ac_srcdir/configure.ac ||
1105            test -f $ac_srcdir/configure.in; then
1106       echo
1107       $ac_configure --help
1108     else
1109       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1110     fi
1111     cd $ac_popdir
1112   done
1113 fi
1114
1115 test -n "$ac_init_help" && exit 0
1116 if $ac_init_version; then
1117   cat <<\_ACEOF
1118 [LLVM] configure [1.0]
1119 generated by GNU Autoconf 2.53
1120
1121 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1122 Free Software Foundation, Inc.
1123 This configure script is free software; the Free Software Foundation
1124 gives unlimited permission to copy, distribute and modify it.
1125 _ACEOF
1126   exit 0
1127 fi
1128 exec 5>config.log
1129 cat >&5 <<_ACEOF
1130 This file contains any messages produced by compilers while
1131 running configure, to aid debugging if configure makes a mistake.
1132
1133 It was created by [LLVM] $as_me [1.0], which was
1134 generated by GNU Autoconf 2.53.  Invocation command line was
1135
1136   $ $0 $@
1137
1138 _ACEOF
1139 {
1140 cat <<_ASUNAME
1141 ## --------- ##
1142 ## Platform. ##
1143 ## --------- ##
1144
1145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1150
1151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1152 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1153
1154 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1155 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1157 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1158 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1159 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1160 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1161
1162 _ASUNAME
1163
1164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1165 for as_dir in $PATH
1166 do
1167   IFS=$as_save_IFS
1168   test -z "$as_dir" && as_dir=.
1169   echo "PATH: $as_dir"
1170 done
1171
1172 } >&5
1173
1174 cat >&5 <<_ACEOF
1175
1176
1177 ## ----------- ##
1178 ## Core tests. ##
1179 ## ----------- ##
1180
1181 _ACEOF
1182
1183
1184 # Keep a trace of the command line.
1185 # Strip out --no-create and --no-recursion so they do not pile up.
1186 # Also quote any args containing shell meta-characters.
1187 ac_configure_args=
1188 ac_sep=
1189 for ac_arg
1190 do
1191   case $ac_arg in
1192   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1193   | --no-cr | --no-c | -n ) continue ;;
1194   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1195   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1196     continue ;;
1197   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1198     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1199   esac
1200   case " $ac_configure_args " in
1201     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1202     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1203        ac_sep=" " ;;
1204   esac
1205   # Get rid of the leading space.
1206 done
1207
1208 # When interrupted or exit'd, cleanup temporary files, and complete
1209 # config.log.  We remove comments because anyway the quotes in there
1210 # would cause problems or look ugly.
1211 # WARNING: Be sure not to use single quotes in there, as some shells,
1212 # such as our DU 5.0 friend, will then `close' the trap.
1213 trap 'exit_status=$?
1214   # Save into config.log some information that might help in debugging.
1215   {
1216     echo
1217     cat <<\_ASBOX
1218 ## ---------------- ##
1219 ## Cache variables. ##
1220 ## ---------------- ##
1221 _ASBOX
1222     echo
1223     # The following way of writing the cache mishandles newlines in values,
1224 {
1225   (set) 2>&1 |
1226     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1227     *ac_space=\ *)
1228       sed -n \
1229         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1230           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1231       ;;
1232     *)
1233       sed -n \
1234         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1235       ;;
1236     esac;
1237 }
1238     echo
1239     if test -s confdefs.h; then
1240       cat <<\_ASBOX
1241 ## ----------- ##
1242 ## confdefs.h. ##
1243 ## ----------- ##
1244 _ASBOX
1245       echo
1246       sed "/^$/d" confdefs.h
1247       echo
1248     fi
1249     test "$ac_signal" != 0 &&
1250       echo "$as_me: caught signal $ac_signal"
1251     echo "$as_me: exit $exit_status"
1252   } >&5
1253   rm -f core core.* *.core &&
1254   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1255     exit $exit_status
1256      ' 0
1257 for ac_signal in 1 2 13 15; do
1258   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1259 done
1260 ac_signal=0
1261
1262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1263 rm -rf conftest* confdefs.h
1264 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1265 echo >confdefs.h
1266
1267 # Predefined preprocessor variables.
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_NAME "$PACKAGE_NAME"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1276 _ACEOF
1277
1278
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1281 _ACEOF
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_STRING "$PACKAGE_STRING"
1286 _ACEOF
1287
1288
1289 cat >>confdefs.h <<_ACEOF
1290 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1291 _ACEOF
1292
1293
1294 # Let the site file select an alternate cache file if it wants to.
1295 # Prefer explicitly selected file to automatically selected ones.
1296 if test -z "$CONFIG_SITE"; then
1297   if test "x$prefix" != xNONE; then
1298     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1299   else
1300     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1301   fi
1302 fi
1303 for ac_site_file in $CONFIG_SITE; do
1304   if test -r "$ac_site_file"; then
1305     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1306 echo "$as_me: loading site script $ac_site_file" >&6;}
1307     sed 's/^/| /' "$ac_site_file" >&5
1308     . "$ac_site_file"
1309   fi
1310 done
1311
1312 if test -r "$cache_file"; then
1313   # Some versions of bash will fail to source /dev/null (special
1314   # files actually), so we avoid doing that.
1315   if test -f "$cache_file"; then
1316     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1317 echo "$as_me: loading cache $cache_file" >&6;}
1318     case $cache_file in
1319       [\\/]* | ?:[\\/]* ) . $cache_file;;
1320       *)                      . ./$cache_file;;
1321     esac
1322   fi
1323 else
1324   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1325 echo "$as_me: creating cache $cache_file" >&6;}
1326   >$cache_file
1327 fi
1328
1329 # Check that the precious variables saved in the cache have kept the same
1330 # value.
1331 ac_cache_corrupted=false
1332 for ac_var in `(set) 2>&1 |
1333                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1334   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1335   eval ac_new_set=\$ac_env_${ac_var}_set
1336   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1337   eval ac_new_val="\$ac_env_${ac_var}_value"
1338   case $ac_old_set,$ac_new_set in
1339     set,)
1340       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1341 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1342       ac_cache_corrupted=: ;;
1343     ,set)
1344       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1345 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1346       ac_cache_corrupted=: ;;
1347     ,);;
1348     *)
1349       if test "x$ac_old_val" != "x$ac_new_val"; then
1350         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1351 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1352         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1353 echo "$as_me:   former value:  $ac_old_val" >&2;}
1354         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1355 echo "$as_me:   current value: $ac_new_val" >&2;}
1356         ac_cache_corrupted=:
1357       fi;;
1358   esac
1359   # Pass precious variables to config.status.
1360   if test "$ac_new_set" = set; then
1361     case $ac_new_val in
1362     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1363       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1364     *) ac_arg=$ac_var=$ac_new_val ;;
1365     esac
1366     case " $ac_configure_args " in
1367       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1368       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1369     esac
1370   fi
1371 done
1372 if $ac_cache_corrupted; then
1373   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1374 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1375   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1376 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1377    { (exit 1); exit 1; }; }
1378 fi
1379
1380 ac_ext=c
1381 ac_cpp='$CPP $CPPFLAGS'
1382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412 ac_config_headers="$ac_config_headers include/Config/config.h"
1413
1414
1415
1416 ac_aux_dir=
1417 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1418   if test -f $ac_dir/install-sh; then
1419     ac_aux_dir=$ac_dir
1420     ac_install_sh="$ac_aux_dir/install-sh -c"
1421     break
1422   elif test -f $ac_dir/install.sh; then
1423     ac_aux_dir=$ac_dir
1424     ac_install_sh="$ac_aux_dir/install.sh -c"
1425     break
1426   elif test -f $ac_dir/shtool; then
1427     ac_aux_dir=$ac_dir
1428     ac_install_sh="$ac_aux_dir/shtool install -c"
1429     break
1430   fi
1431 done
1432 if test -z "$ac_aux_dir"; then
1433   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1434 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1435    { (exit 1); exit 1; }; }
1436 fi
1437 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1438 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1439 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1440
1441 # Find a good install program.  We prefer a C program (faster),
1442 # so one script is as good as another.  But avoid the broken or
1443 # incompatible versions:
1444 # SysV /etc/install, /usr/sbin/install
1445 # SunOS /usr/etc/install
1446 # IRIX /sbin/install
1447 # AIX /bin/install
1448 # AmigaOS /C/install, which installs bootblocks on floppy discs
1449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1452 # ./install, which can be erroneously created by make from ./install.sh.
1453 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1454 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1455 if test -z "$INSTALL"; then
1456 if test "${ac_cv_path_install+set}" = set; then
1457   echo $ECHO_N "(cached) $ECHO_C" >&6
1458 else
1459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1460 for as_dir in $PATH
1461 do
1462   IFS=$as_save_IFS
1463   test -z "$as_dir" && as_dir=.
1464   # Account for people who put trailing slashes in PATH elements.
1465 case $as_dir/ in
1466   ./ | .// | /cC/* | \
1467   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1468   /usr/ucb/* ) ;;
1469   *)
1470     # OSF1 and SCO ODT 3.0 have their own names for install.
1471     # Don't use installbsd from OSF since it installs stuff as root
1472     # by default.
1473     for ac_prog in ginstall scoinst install; do
1474       for ac_exec_ext in '' $ac_executable_extensions; do
1475         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1476           if test $ac_prog = install &&
1477             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1478             # AIX install.  It has an incompatible calling convention.
1479             :
1480           elif test $ac_prog = install &&
1481             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1482             # program-specific install script used by HP pwplus--don't use.
1483             :
1484           else
1485             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1486             break 3
1487           fi
1488         fi
1489       done
1490     done
1491     ;;
1492 esac
1493 done
1494
1495
1496 fi
1497   if test "${ac_cv_path_install+set}" = set; then
1498     INSTALL=$ac_cv_path_install
1499   else
1500     # As a last resort, use the slow shell script.  We don't cache a
1501     # path for INSTALL within a source directory, because that will
1502     # break other packages using the cache if that directory is
1503     # removed, or if the path is relative.
1504     INSTALL=$ac_install_sh
1505   fi
1506 fi
1507 echo "$as_me:$LINENO: result: $INSTALL" >&5
1508 echo "${ECHO_T}$INSTALL" >&6
1509
1510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1511 # It thinks the first close brace ends the variable substitution.
1512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1513
1514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1515
1516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1517
1518
1519 # Make sure we can run config.sub.
1520 $ac_config_sub sun4 >/dev/null 2>&1 ||
1521   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1522 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1523    { (exit 1); exit 1; }; }
1524
1525 echo "$as_me:$LINENO: checking build system type" >&5
1526 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1527 if test "${ac_cv_build+set}" = set; then
1528   echo $ECHO_N "(cached) $ECHO_C" >&6
1529 else
1530   ac_cv_build_alias=$build_alias
1531 test -z "$ac_cv_build_alias" &&
1532   ac_cv_build_alias=`$ac_config_guess`
1533 test -z "$ac_cv_build_alias" &&
1534   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1535 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1536    { (exit 1); exit 1; }; }
1537 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1538   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1540    { (exit 1); exit 1; }; }
1541
1542 fi
1543 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1544 echo "${ECHO_T}$ac_cv_build" >&6
1545 build=$ac_cv_build
1546 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1549
1550
1551 echo "$as_me:$LINENO: checking host system type" >&5
1552 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1553 if test "${ac_cv_host+set}" = set; then
1554   echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556   ac_cv_host_alias=$host_alias
1557 test -z "$ac_cv_host_alias" &&
1558   ac_cv_host_alias=$ac_cv_build_alias
1559 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1560   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1561 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1562    { (exit 1); exit 1; }; }
1563
1564 fi
1565 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1566 echo "${ECHO_T}$ac_cv_host" >&6
1567 host=$ac_cv_host
1568 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
1572
1573 echo "$as_me:$LINENO: checking target system type" >&5
1574 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1575 if test "${ac_cv_target+set}" = set; then
1576   echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578   ac_cv_target_alias=$target_alias
1579 test "x$ac_cv_target_alias" = "x" &&
1580   ac_cv_target_alias=$ac_cv_host_alias
1581 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1582   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1583 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1584    { (exit 1); exit 1; }; }
1585
1586 fi
1587 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1588 echo "${ECHO_T}$ac_cv_target" >&6
1589 target=$ac_cv_target
1590 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595 # The aliases save the names the user supplied, while $host etc.
1596 # will get canonicalized.
1597 test -n "$target_alias" &&
1598   test "$program_prefix$program_suffix$program_transform_name" = \
1599     NONENONEs,x,x, &&
1600   program_prefix=${target_alias}-
1601
1602 case $build in
1603         *i*86*)  OS=Linux
1604
1605                  DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
1606
1607                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
1608
1609                  ;;
1610
1611         *sparc*) OS=SunOS
1612
1613                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
1614
1615                  ;;
1616
1617         *)       OS=Unknown
1618
1619                  ;;
1620 esac
1621
1622 case $target in
1623         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
1624
1625                           ;;
1626 esac
1627
1628 case $target in
1629         *i*86*)           ARCH=x86
1630
1631                           ;;
1632         *sparc*solaris*)  ARCH=Sparc
1633
1634                           ;;
1635 esac
1636
1637
1638 ac_ext=cc
1639 ac_cpp='$CXXCPP $CPPFLAGS'
1640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1643 if test -n "$ac_tool_prefix"; then
1644   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1645   do
1646     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_CXX+set}" = set; then
1651   echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653   if test -n "$CXX"; then
1654   ac_cv_prog_CXX="$CXX" # Let the user override the test.
1655 else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659   IFS=$as_save_IFS
1660   test -z "$as_dir" && as_dir=.
1661   for ac_exec_ext in '' $ac_executable_extensions; do
1662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665     break 2
1666   fi
1667 done
1668 done
1669
1670 fi
1671 fi
1672 CXX=$ac_cv_prog_CXX
1673 if test -n "$CXX"; then
1674   echo "$as_me:$LINENO: result: $CXX" >&5
1675 echo "${ECHO_T}$CXX" >&6
1676 else
1677   echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 fi
1680
1681     test -n "$CXX" && break
1682   done
1683 fi
1684 if test -z "$CXX"; then
1685   ac_ct_CXX=$CXX
1686   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1687 do
1688   # Extract the first word of "$ac_prog", so it can be a program name with args.
1689 set dummy $ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1693   echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695   if test -n "$ac_ct_CXX"; then
1696   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701   IFS=$as_save_IFS
1702   test -z "$as_dir" && as_dir=.
1703   for ac_exec_ext in '' $ac_executable_extensions; do
1704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705     ac_cv_prog_ac_ct_CXX="$ac_prog"
1706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707     break 2
1708   fi
1709 done
1710 done
1711
1712 fi
1713 fi
1714 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1715 if test -n "$ac_ct_CXX"; then
1716   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1717 echo "${ECHO_T}$ac_ct_CXX" >&6
1718 else
1719   echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723   test -n "$ac_ct_CXX" && break
1724 done
1725 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1726
1727   CXX=$ac_ct_CXX
1728 fi
1729
1730
1731 # Provide some information about the compiler.
1732 echo "$as_me:$LINENO:" \
1733      "checking for C++ compiler version" >&5
1734 ac_compiler=`set X $ac_compile; echo $2`
1735 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1736   (eval $ac_compiler --version </dev/null >&5) 2>&5
1737   ac_status=$?
1738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1739   (exit $ac_status); }
1740 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1741   (eval $ac_compiler -v </dev/null >&5) 2>&5
1742   ac_status=$?
1743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744   (exit $ac_status); }
1745 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1746   (eval $ac_compiler -V </dev/null >&5) 2>&5
1747   ac_status=$?
1748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749   (exit $ac_status); }
1750
1751 cat >conftest.$ac_ext <<_ACEOF
1752 #line $LINENO "configure"
1753 #include "confdefs.h"
1754
1755 #ifdef F77_DUMMY_MAIN
1756 #  ifdef __cplusplus
1757      extern "C"
1758 #  endif
1759    int F77_DUMMY_MAIN() { return 1; }
1760 #endif
1761 int
1762 main ()
1763 {
1764
1765   ;
1766   return 0;
1767 }
1768 _ACEOF
1769 ac_clean_files_save=$ac_clean_files
1770 ac_clean_files="$ac_clean_files a.out a.exe"
1771 # Try to create an executable without -o first, disregard a.out.
1772 # It will help us diagnose broken compilers, and finding out an intuition
1773 # of exeext.
1774 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
1775 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
1776 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1777 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1778   (eval $ac_link_default) 2>&5
1779   ac_status=$?
1780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781   (exit $ac_status); }; then
1782   # Find the output, starting from the most likely.  This scheme is
1783 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1784 # resort.
1785
1786 # Be careful to initialize this variable, since it used to be cached.
1787 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1788 ac_cv_exeext=
1789 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1790                 ls a.out conftest 2>/dev/null;
1791                 ls a.* conftest.* 2>/dev/null`; do
1792   case $ac_file in
1793     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1794     a.out ) # We found the default executable, but exeext='' is most
1795             # certainly right.
1796             break;;
1797     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1798           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1799           export ac_cv_exeext
1800           break;;
1801     * ) break;;
1802   esac
1803 done
1804 else
1805   echo "$as_me: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1807 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
1808 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
1809    { (exit 77); exit 77; }; }
1810 fi
1811
1812 ac_exeext=$ac_cv_exeext
1813 echo "$as_me:$LINENO: result: $ac_file" >&5
1814 echo "${ECHO_T}$ac_file" >&6
1815
1816 # Check the compiler produces executables we can run.  If not, either
1817 # the compiler is broken, or we cross compile.
1818 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1819 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1820 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1821 # If not cross compiling, check that we can run a simple program.
1822 if test "$cross_compiling" != yes; then
1823   if { ac_try='./$ac_file'
1824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1825   (eval $ac_try) 2>&5
1826   ac_status=$?
1827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828   (exit $ac_status); }; }; then
1829     cross_compiling=no
1830   else
1831     if test "$cross_compiling" = maybe; then
1832         cross_compiling=yes
1833     else
1834         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1835 If you meant to cross compile, use \`--host'." >&5
1836 echo "$as_me: error: cannot run C++ compiled programs.
1837 If you meant to cross compile, use \`--host'." >&2;}
1838    { (exit 1); exit 1; }; }
1839     fi
1840   fi
1841 fi
1842 echo "$as_me:$LINENO: result: yes" >&5
1843 echo "${ECHO_T}yes" >&6
1844
1845 rm -f a.out a.exe conftest$ac_cv_exeext
1846 ac_clean_files=$ac_clean_files_save
1847 # Check the compiler produces executables we can run.  If not, either
1848 # the compiler is broken, or we cross compile.
1849 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1850 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1851 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1852 echo "${ECHO_T}$cross_compiling" >&6
1853
1854 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1855 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1857   (eval $ac_link) 2>&5
1858   ac_status=$?
1859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860   (exit $ac_status); }; then
1861   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1862 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1863 # work properly (i.e., refer to `conftest.exe'), while it won't with
1864 # `rm'.
1865 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1866   case $ac_file in
1867     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1868     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869           export ac_cv_exeext
1870           break;;
1871     * ) break;;
1872   esac
1873 done
1874 else
1875   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1876 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1877    { (exit 1); exit 1; }; }
1878 fi
1879
1880 rm -f conftest$ac_cv_exeext
1881 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1882 echo "${ECHO_T}$ac_cv_exeext" >&6
1883
1884 rm -f conftest.$ac_ext
1885 EXEEXT=$ac_cv_exeext
1886 ac_exeext=$EXEEXT
1887 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1888 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1889 if test "${ac_cv_objext+set}" = set; then
1890   echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892   cat >conftest.$ac_ext <<_ACEOF
1893 #line $LINENO "configure"
1894 #include "confdefs.h"
1895
1896 #ifdef F77_DUMMY_MAIN
1897 #  ifdef __cplusplus
1898      extern "C"
1899 #  endif
1900    int F77_DUMMY_MAIN() { return 1; }
1901 #endif
1902 int
1903 main ()
1904 {
1905
1906   ;
1907   return 0;
1908 }
1909 _ACEOF
1910 rm -f conftest.o conftest.obj
1911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1912   (eval $ac_compile) 2>&5
1913   ac_status=$?
1914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915   (exit $ac_status); }; then
1916   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1917   case $ac_file in
1918     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1919     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1920        break;;
1921   esac
1922 done
1923 else
1924   echo "$as_me: failed program was:" >&5
1925 cat conftest.$ac_ext >&5
1926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1927 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1928    { (exit 1); exit 1; }; }
1929 fi
1930
1931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1932 fi
1933 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1934 echo "${ECHO_T}$ac_cv_objext" >&6
1935 OBJEXT=$ac_cv_objext
1936 ac_objext=$OBJEXT
1937 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1938 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1939 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1940   echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942   cat >conftest.$ac_ext <<_ACEOF
1943 #line $LINENO "configure"
1944 #include "confdefs.h"
1945
1946 #ifdef F77_DUMMY_MAIN
1947 #  ifdef __cplusplus
1948      extern "C"
1949 #  endif
1950    int F77_DUMMY_MAIN() { return 1; }
1951 #endif
1952 int
1953 main ()
1954 {
1955 #ifndef __GNUC__
1956        choke me
1957 #endif
1958
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 rm -f conftest.$ac_objext
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965   (eval $ac_compile) 2>&5
1966   ac_status=$?
1967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968   (exit $ac_status); } &&
1969          { ac_try='test -s conftest.$ac_objext'
1970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1971   (eval $ac_try) 2>&5
1972   ac_status=$?
1973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974   (exit $ac_status); }; }; then
1975   ac_compiler_gnu=yes
1976 else
1977   echo "$as_me: failed program was:" >&5
1978 cat conftest.$ac_ext >&5
1979 ac_compiler_gnu=no
1980 fi
1981 rm -f conftest.$ac_objext conftest.$ac_ext
1982 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1983
1984 fi
1985 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1986 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1987 GXX=`test $ac_compiler_gnu = yes && echo yes`
1988 ac_test_CXXFLAGS=${CXXFLAGS+set}
1989 ac_save_CXXFLAGS=$CXXFLAGS
1990 CXXFLAGS="-g"
1991 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1992 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1993 if test "${ac_cv_prog_cxx_g+set}" = set; then
1994   echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996   cat >conftest.$ac_ext <<_ACEOF
1997 #line $LINENO "configure"
1998 #include "confdefs.h"
1999
2000 #ifdef F77_DUMMY_MAIN
2001 #  ifdef __cplusplus
2002      extern "C"
2003 #  endif
2004    int F77_DUMMY_MAIN() { return 1; }
2005 #endif
2006 int
2007 main ()
2008 {
2009
2010   ;
2011   return 0;
2012 }
2013 _ACEOF
2014 rm -f conftest.$ac_objext
2015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2016   (eval $ac_compile) 2>&5
2017   ac_status=$?
2018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2019   (exit $ac_status); } &&
2020          { ac_try='test -s conftest.$ac_objext'
2021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022   (eval $ac_try) 2>&5
2023   ac_status=$?
2024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025   (exit $ac_status); }; }; then
2026   ac_cv_prog_cxx_g=yes
2027 else
2028   echo "$as_me: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2030 ac_cv_prog_cxx_g=no
2031 fi
2032 rm -f conftest.$ac_objext conftest.$ac_ext
2033 fi
2034 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2035 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2036 if test "$ac_test_CXXFLAGS" = set; then
2037   CXXFLAGS=$ac_save_CXXFLAGS
2038 elif test $ac_cv_prog_cxx_g = yes; then
2039   if test "$GXX" = yes; then
2040     CXXFLAGS="-g -O2"
2041   else
2042     CXXFLAGS="-g"
2043   fi
2044 else
2045   if test "$GXX" = yes; then
2046     CXXFLAGS="-O2"
2047   else
2048     CXXFLAGS=
2049   fi
2050 fi
2051 for ac_declaration in \
2052    ''\
2053    '#include <stdlib.h>' \
2054    'extern "C" void std::exit (int) throw (); using std::exit;' \
2055    'extern "C" void std::exit (int); using std::exit;' \
2056    'extern "C" void exit (int) throw ();' \
2057    'extern "C" void exit (int);' \
2058    'void exit (int);'
2059 do
2060   cat >conftest.$ac_ext <<_ACEOF
2061 #line $LINENO "configure"
2062 #include "confdefs.h"
2063 #include <stdlib.h>
2064 $ac_declaration
2065 #ifdef F77_DUMMY_MAIN
2066 #  ifdef __cplusplus
2067      extern "C"
2068 #  endif
2069    int F77_DUMMY_MAIN() { return 1; }
2070 #endif
2071 int
2072 main ()
2073 {
2074 exit (42);
2075   ;
2076   return 0;
2077 }
2078 _ACEOF
2079 rm -f conftest.$ac_objext
2080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2081   (eval $ac_compile) 2>&5
2082   ac_status=$?
2083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084   (exit $ac_status); } &&
2085          { ac_try='test -s conftest.$ac_objext'
2086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2087   (eval $ac_try) 2>&5
2088   ac_status=$?
2089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090   (exit $ac_status); }; }; then
2091   :
2092 else
2093   echo "$as_me: failed program was:" >&5
2094 cat conftest.$ac_ext >&5
2095 continue
2096 fi
2097 rm -f conftest.$ac_objext conftest.$ac_ext
2098   cat >conftest.$ac_ext <<_ACEOF
2099 #line $LINENO "configure"
2100 #include "confdefs.h"
2101 $ac_declaration
2102 #ifdef F77_DUMMY_MAIN
2103 #  ifdef __cplusplus
2104      extern "C"
2105 #  endif
2106    int F77_DUMMY_MAIN() { return 1; }
2107 #endif
2108 int
2109 main ()
2110 {
2111 exit (42);
2112   ;
2113   return 0;
2114 }
2115 _ACEOF
2116 rm -f conftest.$ac_objext
2117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2118   (eval $ac_compile) 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); } &&
2122          { ac_try='test -s conftest.$ac_objext'
2123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2124   (eval $ac_try) 2>&5
2125   ac_status=$?
2126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127   (exit $ac_status); }; }; then
2128   break
2129 else
2130   echo "$as_me: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2132 fi
2133 rm -f conftest.$ac_objext conftest.$ac_ext
2134 done
2135 rm -f conftest*
2136 if test -n "$ac_declaration"; then
2137   echo '#ifdef __cplusplus' >>confdefs.h
2138   echo $ac_declaration      >>confdefs.h
2139   echo '#endif'             >>confdefs.h
2140 fi
2141
2142 ac_ext=c
2143 ac_cpp='$CPP $CPPFLAGS'
2144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2147
2148 ac_ext=c
2149 ac_cpp='$CPP $CPPFLAGS'
2150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2153 if test -n "$ac_tool_prefix"; then
2154   for ac_prog in gcc
2155   do
2156     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_CC+set}" = set; then
2161   echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163   if test -n "$CC"; then
2164   ac_cv_prog_CC="$CC" # Let the user override the test.
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2168 do
2169   IFS=$as_save_IFS
2170   test -z "$as_dir" && as_dir=.
2171   for ac_exec_ext in '' $ac_executable_extensions; do
2172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175     break 2
2176   fi
2177 done
2178 done
2179
2180 fi
2181 fi
2182 CC=$ac_cv_prog_CC
2183 if test -n "$CC"; then
2184   echo "$as_me:$LINENO: result: $CC" >&5
2185 echo "${ECHO_T}$CC" >&6
2186 else
2187   echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6
2189 fi
2190
2191     test -n "$CC" && break
2192   done
2193 fi
2194 if test -z "$CC"; then
2195   ac_ct_CC=$CC
2196   for ac_prog in gcc
2197 do
2198   # Extract the first word of "$ac_prog", so it can be a program name with args.
2199 set dummy $ac_prog; ac_word=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   if test -n "$ac_ct_CC"; then
2206   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211   IFS=$as_save_IFS
2212   test -z "$as_dir" && as_dir=.
2213   for ac_exec_ext in '' $ac_executable_extensions; do
2214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215     ac_cv_prog_ac_ct_CC="$ac_prog"
2216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217     break 2
2218   fi
2219 done
2220 done
2221
2222 fi
2223 fi
2224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225 if test -n "$ac_ct_CC"; then
2226   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227 echo "${ECHO_T}$ac_ct_CC" >&6
2228 else
2229   echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2231 fi
2232
2233   test -n "$ac_ct_CC" && break
2234 done
2235
2236   CC=$ac_ct_CC
2237 fi
2238
2239
2240 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2241 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2242    { (exit 1); exit 1; }; }
2243
2244 # Provide some information about the compiler.
2245 echo "$as_me:$LINENO:" \
2246      "checking for C compiler version" >&5
2247 ac_compiler=`set X $ac_compile; echo $2`
2248 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2249   (eval $ac_compiler --version </dev/null >&5) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }
2253 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2254   (eval $ac_compiler -v </dev/null >&5) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); }
2258 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2259   (eval $ac_compiler -V </dev/null >&5) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }
2263
2264 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2265 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2266 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2267   echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269   cat >conftest.$ac_ext <<_ACEOF
2270 #line $LINENO "configure"
2271 #include "confdefs.h"
2272
2273 #ifdef F77_DUMMY_MAIN
2274 #  ifdef __cplusplus
2275      extern "C"
2276 #  endif
2277    int F77_DUMMY_MAIN() { return 1; }
2278 #endif
2279 int
2280 main ()
2281 {
2282 #ifndef __GNUC__
2283        choke me
2284 #endif
2285
2286   ;
2287   return 0;
2288 }
2289 _ACEOF
2290 rm -f conftest.$ac_objext
2291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292   (eval $ac_compile) 2>&5
2293   ac_status=$?
2294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295   (exit $ac_status); } &&
2296          { ac_try='test -s conftest.$ac_objext'
2297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298   (eval $ac_try) 2>&5
2299   ac_status=$?
2300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301   (exit $ac_status); }; }; then
2302   ac_compiler_gnu=yes
2303 else
2304   echo "$as_me: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2306 ac_compiler_gnu=no
2307 fi
2308 rm -f conftest.$ac_objext conftest.$ac_ext
2309 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2310
2311 fi
2312 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2313 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2314 GCC=`test $ac_compiler_gnu = yes && echo yes`
2315 ac_test_CFLAGS=${CFLAGS+set}
2316 ac_save_CFLAGS=$CFLAGS
2317 CFLAGS="-g"
2318 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2319 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2320 if test "${ac_cv_prog_cc_g+set}" = set; then
2321   echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323   cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 #include "confdefs.h"
2326
2327 #ifdef F77_DUMMY_MAIN
2328 #  ifdef __cplusplus
2329      extern "C"
2330 #  endif
2331    int F77_DUMMY_MAIN() { return 1; }
2332 #endif
2333 int
2334 main ()
2335 {
2336
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343   (eval $ac_compile) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); } &&
2347          { ac_try='test -s conftest.$ac_objext'
2348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349   (eval $ac_try) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353   ac_cv_prog_cc_g=yes
2354 else
2355   echo "$as_me: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2357 ac_cv_prog_cc_g=no
2358 fi
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2360 fi
2361 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2362 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2363 if test "$ac_test_CFLAGS" = set; then
2364   CFLAGS=$ac_save_CFLAGS
2365 elif test $ac_cv_prog_cc_g = yes; then
2366   if test "$GCC" = yes; then
2367     CFLAGS="-g -O2"
2368   else
2369     CFLAGS="-g"
2370   fi
2371 else
2372   if test "$GCC" = yes; then
2373     CFLAGS="-O2"
2374   else
2375     CFLAGS=
2376   fi
2377 fi
2378 # Some people use a C++ compiler to compile C.  Since we use `exit',
2379 # in C++ we need to declare it.  In case someone uses the same compiler
2380 # for both compiling C and C++ we need to have the C++ compiler decide
2381 # the declaration of exit, since it's the most demanding environment.
2382 cat >conftest.$ac_ext <<_ACEOF
2383 #ifndef __cplusplus
2384   choke me
2385 #endif
2386 _ACEOF
2387 rm -f conftest.$ac_objext
2388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2389   (eval $ac_compile) 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); } &&
2393          { ac_try='test -s conftest.$ac_objext'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; }; then
2399   for ac_declaration in \
2400    ''\
2401    '#include <stdlib.h>' \
2402    'extern "C" void std::exit (int) throw (); using std::exit;' \
2403    'extern "C" void std::exit (int); using std::exit;' \
2404    'extern "C" void exit (int) throw ();' \
2405    'extern "C" void exit (int);' \
2406    'void exit (int);'
2407 do
2408   cat >conftest.$ac_ext <<_ACEOF
2409 #line $LINENO "configure"
2410 #include "confdefs.h"
2411 #include <stdlib.h>
2412 $ac_declaration
2413 #ifdef F77_DUMMY_MAIN
2414 #  ifdef __cplusplus
2415      extern "C"
2416 #  endif
2417    int F77_DUMMY_MAIN() { return 1; }
2418 #endif
2419 int
2420 main ()
2421 {
2422 exit (42);
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2429   (eval $ac_compile) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); } &&
2433          { ac_try='test -s conftest.$ac_objext'
2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435   (eval $ac_try) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; }; then
2439   :
2440 else
2441   echo "$as_me: failed program was:" >&5
2442 cat conftest.$ac_ext >&5
2443 continue
2444 fi
2445 rm -f conftest.$ac_objext conftest.$ac_ext
2446   cat >conftest.$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2448 #include "confdefs.h"
2449 $ac_declaration
2450 #ifdef F77_DUMMY_MAIN
2451 #  ifdef __cplusplus
2452      extern "C"
2453 #  endif
2454    int F77_DUMMY_MAIN() { return 1; }
2455 #endif
2456 int
2457 main ()
2458 {
2459 exit (42);
2460   ;
2461   return 0;
2462 }
2463 _ACEOF
2464 rm -f conftest.$ac_objext
2465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466   (eval $ac_compile) 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); } &&
2470          { ac_try='test -s conftest.$ac_objext'
2471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472   (eval $ac_try) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }; }; then
2476   break
2477 else
2478   echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 fi
2481 rm -f conftest.$ac_objext conftest.$ac_ext
2482 done
2483 rm -f conftest*
2484 if test -n "$ac_declaration"; then
2485   echo '#ifdef __cplusplus' >>confdefs.h
2486   echo $ac_declaration      >>confdefs.h
2487   echo '#endif'             >>confdefs.h
2488 fi
2489
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2493 fi
2494 rm -f conftest.$ac_objext conftest.$ac_ext
2495 ac_ext=c
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500
2501 ac_ext=c
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2507 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2508 # On Suns, sometimes $CPP names a directory.
2509 if test -n "$CPP" && test -d "$CPP"; then
2510   CPP=
2511 fi
2512 if test -z "$CPP"; then
2513   if test "${ac_cv_prog_CPP+set}" = set; then
2514   echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516       # Double quotes because CPP needs to be expanded
2517     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2518     do
2519       ac_preproc_ok=false
2520 for ac_c_preproc_warn_flag in '' yes
2521 do
2522   # Use a header file that comes with gcc, so configuring glibc
2523   # with a fresh cross-compiler works.
2524   # On the NeXT, cc -E runs the code through the compiler's parser,
2525   # not just through cpp. "Syntax error" is here to catch this case.
2526   cat >conftest.$ac_ext <<_ACEOF
2527 #line $LINENO "configure"
2528 #include "confdefs.h"
2529 #include <assert.h>
2530                      Syntax error
2531 _ACEOF
2532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2533   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2534   ac_status=$?
2535   egrep -v '^ *\+' conftest.er1 >conftest.err
2536   rm -f conftest.er1
2537   cat conftest.err >&5
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); } >/dev/null; then
2540   if test -s conftest.err; then
2541     ac_cpp_err=$ac_c_preproc_warn_flag
2542   else
2543     ac_cpp_err=
2544   fi
2545 else
2546   ac_cpp_err=yes
2547 fi
2548 if test -z "$ac_cpp_err"; then
2549   :
2550 else
2551   echo "$as_me: failed program was:" >&5
2552   cat conftest.$ac_ext >&5
2553   # Broken: fails on valid input.
2554 continue
2555 fi
2556 rm -f conftest.err conftest.$ac_ext
2557
2558   # OK, works on sane cases.  Now check whether non-existent headers
2559   # can be detected and how.
2560   cat >conftest.$ac_ext <<_ACEOF
2561 #line $LINENO "configure"
2562 #include "confdefs.h"
2563 #include <ac_nonexistent.h>
2564 _ACEOF
2565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2566   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2567   ac_status=$?
2568   egrep -v '^ *\+' conftest.er1 >conftest.err
2569   rm -f conftest.er1
2570   cat conftest.err >&5
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); } >/dev/null; then
2573   if test -s conftest.err; then
2574     ac_cpp_err=$ac_c_preproc_warn_flag
2575   else
2576     ac_cpp_err=
2577   fi
2578 else
2579   ac_cpp_err=yes
2580 fi
2581 if test -z "$ac_cpp_err"; then
2582   # Broken: success on invalid input.
2583 continue
2584 else
2585   echo "$as_me: failed program was:" >&5
2586   cat conftest.$ac_ext >&5
2587   # Passes both tests.
2588 ac_preproc_ok=:
2589 break
2590 fi
2591 rm -f conftest.err conftest.$ac_ext
2592
2593 done
2594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2595 rm -f conftest.err conftest.$ac_ext
2596 if $ac_preproc_ok; then
2597   break
2598 fi
2599
2600     done
2601     ac_cv_prog_CPP=$CPP
2602
2603 fi
2604   CPP=$ac_cv_prog_CPP
2605 else
2606   ac_cv_prog_CPP=$CPP
2607 fi
2608 echo "$as_me:$LINENO: result: $CPP" >&5
2609 echo "${ECHO_T}$CPP" >&6
2610 ac_preproc_ok=false
2611 for ac_c_preproc_warn_flag in '' yes
2612 do
2613   # Use a header file that comes with gcc, so configuring glibc
2614   # with a fresh cross-compiler works.
2615   # On the NeXT, cc -E runs the code through the compiler's parser,
2616   # not just through cpp. "Syntax error" is here to catch this case.
2617   cat >conftest.$ac_ext <<_ACEOF
2618 #line $LINENO "configure"
2619 #include "confdefs.h"
2620 #include <assert.h>
2621                      Syntax error
2622 _ACEOF
2623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2624   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2625   ac_status=$?
2626   egrep -v '^ *\+' conftest.er1 >conftest.err
2627   rm -f conftest.er1
2628   cat conftest.err >&5
2629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630   (exit $ac_status); } >/dev/null; then
2631   if test -s conftest.err; then
2632     ac_cpp_err=$ac_c_preproc_warn_flag
2633   else
2634     ac_cpp_err=
2635   fi
2636 else
2637   ac_cpp_err=yes
2638 fi
2639 if test -z "$ac_cpp_err"; then
2640   :
2641 else
2642   echo "$as_me: failed program was:" >&5
2643   cat conftest.$ac_ext >&5
2644   # Broken: fails on valid input.
2645 continue
2646 fi
2647 rm -f conftest.err conftest.$ac_ext
2648
2649   # OK, works on sane cases.  Now check whether non-existent headers
2650   # can be detected and how.
2651   cat >conftest.$ac_ext <<_ACEOF
2652 #line $LINENO "configure"
2653 #include "confdefs.h"
2654 #include <ac_nonexistent.h>
2655 _ACEOF
2656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2658   ac_status=$?
2659   egrep -v '^ *\+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } >/dev/null; then
2664   if test -s conftest.err; then
2665     ac_cpp_err=$ac_c_preproc_warn_flag
2666   else
2667     ac_cpp_err=
2668   fi
2669 else
2670   ac_cpp_err=yes
2671 fi
2672 if test -z "$ac_cpp_err"; then
2673   # Broken: success on invalid input.
2674 continue
2675 else
2676   echo "$as_me: failed program was:" >&5
2677   cat conftest.$ac_ext >&5
2678   # Passes both tests.
2679 ac_preproc_ok=:
2680 break
2681 fi
2682 rm -f conftest.err conftest.$ac_ext
2683
2684 done
2685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2686 rm -f conftest.err conftest.$ac_ext
2687 if $ac_preproc_ok; then
2688   :
2689 else
2690   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2691 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2692    { (exit 1); exit 1; }; }
2693 fi
2694
2695 ac_ext=c
2696 ac_cpp='$CPP $CPPFLAGS'
2697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700
2701
2702 if test "$GCC" != "yes"
2703 then
2704         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2705 echo "$as_me: error: gcc required but not found" >&2;}
2706    { (exit 1); exit 1; }; }
2707 fi
2708
2709 if test "$GXX" != "yes"
2710 then
2711         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
2712 echo "$as_me: error: g++ required but not found" >&2;}
2713    { (exit 1); exit 1; }; }
2714 fi
2715
2716  echo "$as_me:$LINENO: checking for GNU make" >&5
2717 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
2718 if test "${_cv_gnu_make_command+set}" = set; then
2719   echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721   _cv_gnu_make_command='' ;
2722                 for a in "$MAKE" make gmake gnumake ; do
2723                         if test -z "$a" ; then continue ; fi ;
2724                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
2725                                 _cv_gnu_make_command=$a ;
2726                                 break;
2727                         fi
2728                 done ;
2729
2730 fi
2731 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
2732 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
2733         if test  "x$_cv_gnu_make_command" != "x"  ; then
2734                 ifGNUmake='' ;
2735         else
2736                 ifGNUmake='#' ;
2737                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
2738 echo "${ECHO_T}\"Not found\"" >&6;
2739         fi
2740
2741
2742 if test -z "$_cv_gnu_make_command"
2743 then
2744         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
2745 echo "$as_me: error: GNU Make required but not found" >&2;}
2746    { (exit 1); exit 1; }; }
2747 fi
2748
2749
2750 echo "$as_me:$LINENO: checking " >&5
2751 echo $ECHO_N "checking ... $ECHO_C" >&6
2752 if test "${ac_cv_has_flex+set}" = set; then
2753   echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755   for ac_prog in flex lex
2756 do
2757   # Extract the first word of "$ac_prog", so it can be a program name with args.
2758 set dummy $ac_prog; ac_word=$2
2759 echo "$as_me:$LINENO: checking for $ac_word" >&5
2760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2761 if test "${ac_cv_prog_LEX+set}" = set; then
2762   echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764   if test -n "$LEX"; then
2765   ac_cv_prog_LEX="$LEX" # Let the user override the test.
2766 else
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770   IFS=$as_save_IFS
2771   test -z "$as_dir" && as_dir=.
2772   for ac_exec_ext in '' $ac_executable_extensions; do
2773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774     ac_cv_prog_LEX="$ac_prog"
2775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776     break 2
2777   fi
2778 done
2779 done
2780
2781 fi
2782 fi
2783 LEX=$ac_cv_prog_LEX
2784 if test -n "$LEX"; then
2785   echo "$as_me:$LINENO: result: $LEX" >&5
2786 echo "${ECHO_T}$LEX" >&6
2787 else
2788   echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2790 fi
2791
2792   test -n "$LEX" && break
2793 done
2794 test -n "$LEX" || LEX=":"
2795
2796 if test -z "$LEXLIB"
2797 then
2798   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2799 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2800 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2801   echo $ECHO_N "(cached) $ECHO_C" >&6
2802 else
2803   ac_check_lib_save_LIBS=$LIBS
2804 LIBS="-lfl  $LIBS"
2805 cat >conftest.$ac_ext <<_ACEOF
2806 #line $LINENO "configure"
2807 #include "confdefs.h"
2808
2809 /* Override any gcc2 internal prototype to avoid an error.  */
2810 #ifdef __cplusplus
2811 extern "C"
2812 #endif
2813 /* We use char because int might match the return type of a gcc2
2814    builtin and then its argument prototype would still apply.  */
2815 char yywrap ();
2816 #ifdef F77_DUMMY_MAIN
2817 #  ifdef __cplusplus
2818      extern "C"
2819 #  endif
2820    int F77_DUMMY_MAIN() { return 1; }
2821 #endif
2822 int
2823 main ()
2824 {
2825 yywrap ();
2826   ;
2827   return 0;
2828 }
2829 _ACEOF
2830 rm -f conftest.$ac_objext conftest$ac_exeext
2831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2832   (eval $ac_link) 2>&5
2833   ac_status=$?
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); } &&
2836          { ac_try='test -s conftest$ac_exeext'
2837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838   (eval $ac_try) 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); }; }; then
2842   ac_cv_lib_fl_yywrap=yes
2843 else
2844   echo "$as_me: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2846 ac_cv_lib_fl_yywrap=no
2847 fi
2848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2849 LIBS=$ac_check_lib_save_LIBS
2850 fi
2851 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2852 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2853 if test $ac_cv_lib_fl_yywrap = yes; then
2854   LEXLIB="-lfl"
2855 else
2856   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2857 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2858 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2859   echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861   ac_check_lib_save_LIBS=$LIBS
2862 LIBS="-ll  $LIBS"
2863 cat >conftest.$ac_ext <<_ACEOF
2864 #line $LINENO "configure"
2865 #include "confdefs.h"
2866
2867 /* Override any gcc2 internal prototype to avoid an error.  */
2868 #ifdef __cplusplus
2869 extern "C"
2870 #endif
2871 /* We use char because int might match the return type of a gcc2
2872    builtin and then its argument prototype would still apply.  */
2873 char yywrap ();
2874 #ifdef F77_DUMMY_MAIN
2875 #  ifdef __cplusplus
2876      extern "C"
2877 #  endif
2878    int F77_DUMMY_MAIN() { return 1; }
2879 #endif
2880 int
2881 main ()
2882 {
2883 yywrap ();
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 rm -f conftest.$ac_objext conftest$ac_exeext
2889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2890   (eval $ac_link) 2>&5
2891   ac_status=$?
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); } &&
2894          { ac_try='test -s conftest$ac_exeext'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; }; then
2900   ac_cv_lib_l_yywrap=yes
2901 else
2902   echo "$as_me: failed program was:" >&5
2903 cat conftest.$ac_ext >&5
2904 ac_cv_lib_l_yywrap=no
2905 fi
2906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2907 LIBS=$ac_check_lib_save_LIBS
2908 fi
2909 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2910 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2911 if test $ac_cv_lib_l_yywrap = yes; then
2912   LEXLIB="-ll"
2913 fi
2914
2915 fi
2916
2917 fi
2918
2919 if test "x$LEX" != "x:"; then
2920   echo "$as_me:$LINENO: checking lex output file root" >&5
2921 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2922 if test "${ac_cv_prog_lex_root+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   # The minimal lex program is just a single line: %%.  But some broken lexes
2926 # (Solaris, I think it was) want two %% lines, so accommodate them.
2927 cat >conftest.l <<_ACEOF
2928 %%
2929 %%
2930 _ACEOF
2931 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2932   (eval $LEX conftest.l) 2>&5
2933   ac_status=$?
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); }
2936 if test -f lex.yy.c; then
2937   ac_cv_prog_lex_root=lex.yy
2938 elif test -f lexyy.c; then
2939   ac_cv_prog_lex_root=lexyy
2940 else
2941   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2942 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2943    { (exit 1); exit 1; }; }
2944 fi
2945 fi
2946 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2947 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2948 rm -f conftest.l
2949 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2950
2951 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2952 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2953 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2954   echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956   # POSIX says lex can declare yytext either as a pointer or an array; the
2957 # default is implementation-dependent. Figure out which it is, since
2958 # not all implementations provide the %pointer and %array declarations.
2959 ac_cv_prog_lex_yytext_pointer=no
2960 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2961 ac_save_LIBS=$LIBS
2962 LIBS="$LIBS $LEXLIB"
2963 cat >conftest.$ac_ext <<_ACEOF
2964 `cat $LEX_OUTPUT_ROOT.c`
2965 _ACEOF
2966 rm -f conftest.$ac_objext conftest$ac_exeext
2967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2968   (eval $ac_link) 2>&5
2969   ac_status=$?
2970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); } &&
2972          { ac_try='test -s conftest$ac_exeext'
2973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974   (eval $ac_try) 2>&5
2975   ac_status=$?
2976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977   (exit $ac_status); }; }; then
2978   ac_cv_prog_lex_yytext_pointer=yes
2979 else
2980   echo "$as_me: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2982 fi
2983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2984 LIBS=$ac_save_LIBS
2985 rm -f "${LEX_OUTPUT_ROOT}.c"
2986
2987 fi
2988 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2989 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2990 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2991
2992 cat >>confdefs.h <<\_ACEOF
2993 #define YYTEXT_POINTER 1
2994 _ACEOF
2995
2996 fi
2997
2998 fi
2999
3000 fi
3001 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3002 echo "${ECHO_T}$ac_cv_has_flex" >&6
3003 if test "$LEX" != "flex"; then
3004   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3005 echo "$as_me: error: flex not found but required" >&2;}
3006    { (exit 1); exit 1; }; }
3007 fi
3008
3009 echo "$as_me:$LINENO: checking " >&5
3010 echo $ECHO_N "checking ... $ECHO_C" >&6
3011 if test "${ac_cv_has_bison+set}" = set; then
3012   echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014   for ac_prog in 'bison -y' byacc
3015 do
3016   # Extract the first word of "$ac_prog", so it can be a program name with args.
3017 set dummy $ac_prog; ac_word=$2
3018 echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3020 if test "${ac_cv_prog_YACC+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   if test -n "$YACC"; then
3024   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031   for ac_exec_ext in '' $ac_executable_extensions; do
3032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033     ac_cv_prog_YACC="$ac_prog"
3034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3035     break 2
3036   fi
3037 done
3038 done
3039
3040 fi
3041 fi
3042 YACC=$ac_cv_prog_YACC
3043 if test -n "$YACC"; then
3044   echo "$as_me:$LINENO: result: $YACC" >&5
3045 echo "${ECHO_T}$YACC" >&6
3046 else
3047   echo "$as_me:$LINENO: result: no" >&5
3048 echo "${ECHO_T}no" >&6
3049 fi
3050
3051   test -n "$YACC" && break
3052 done
3053 test -n "$YACC" || YACC="yacc"
3054
3055
3056 fi
3057 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3058 echo "${ECHO_T}$ac_cv_has_bison" >&6
3059 if test "$YACC" != "bison -y"; then
3060   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3061 echo "$as_me: error: bison not found but required" >&2;}
3062    { (exit 1); exit 1; }; }
3063 else
3064   YACC=bison
3065
3066 fi
3067
3068
3069 # Check whether --enable-shared or --disable-shared was given.
3070 if test "${enable_shared+set}" = set; then
3071   enableval="$enable_shared"
3072   p=${PACKAGE-default}
3073     case $enableval in
3074     yes) enable_shared=yes ;;
3075     no) enable_shared=no ;;
3076     *)
3077       enable_shared=no
3078       # Look at the argument we got.  We use all the common list separators.
3079       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3080       for pkg in $enableval; do
3081         IFS="$lt_save_ifs"
3082         if test "X$pkg" = "X$p"; then
3083           enable_shared=yes
3084         fi
3085       done
3086       IFS="$lt_save_ifs"
3087       ;;
3088     esac
3089 else
3090   enable_shared=yes
3091 fi;
3092
3093 # Check whether --enable-static or --disable-static was given.
3094 if test "${enable_static+set}" = set; then
3095   enableval="$enable_static"
3096   p=${PACKAGE-default}
3097     case $enableval in
3098     yes) enable_static=yes ;;
3099     no) enable_static=no ;;
3100     *)
3101      enable_static=no
3102       # Look at the argument we got.  We use all the common list separators.
3103       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3104       for pkg in $enableval; do
3105         IFS="$lt_save_ifs"
3106         if test "X$pkg" = "X$p"; then
3107           enable_static=yes
3108         fi
3109       done
3110       IFS="$lt_save_ifs"
3111       ;;
3112     esac
3113 else
3114   enable_static=yes
3115 fi;
3116
3117 # Check whether --enable-fast-install or --disable-fast-install was given.
3118 if test "${enable_fast_install+set}" = set; then
3119   enableval="$enable_fast_install"
3120   p=${PACKAGE-default}
3121     case $enableval in
3122     yes) enable_fast_install=yes ;;
3123     no) enable_fast_install=no ;;
3124     *)
3125       enable_fast_install=no
3126       # Look at the argument we got.  We use all the common list separators.
3127       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3128       for pkg in $enableval; do
3129         IFS="$lt_save_ifs"
3130         if test "X$pkg" = "X$p"; then
3131           enable_fast_install=yes
3132         fi
3133       done
3134       IFS="$lt_save_ifs"
3135       ;;
3136     esac
3137 else
3138   enable_fast_install=yes
3139 fi;
3140
3141 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3142 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3143 if test "${lt_cv_path_SED+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   # Loop through the user's path and test for sed and gsed.
3147 # Then use that list of sed's as ones to test for truncation.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153   for lt_ac_prog in sed gsed; do
3154     for ac_exec_ext in '' $ac_executable_extensions; do
3155       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3156         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3157       fi
3158     done
3159   done
3160 done
3161 lt_ac_max=0
3162 lt_ac_count=0
3163 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3164 # along with /bin/sed that truncates output.
3165 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3166   test ! -f $lt_ac_sed && break
3167   cat /dev/null > conftest.in
3168   lt_ac_count=0
3169   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3170   # Check for GNU sed and select it if it is found.
3171   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3172     lt_cv_path_SED=$lt_ac_sed
3173     break
3174   fi
3175   while true; do
3176     cat conftest.in conftest.in >conftest.tmp
3177     mv conftest.tmp conftest.in
3178     cp conftest.in conftest.nl
3179     echo >>conftest.nl
3180     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3181     cmp -s conftest.out conftest.nl || break
3182     # 10000 chars as input seems more than enough
3183     test $lt_ac_count -gt 10 && break
3184     lt_ac_count=`expr $lt_ac_count + 1`
3185     if test $lt_ac_count -gt $lt_ac_max; then
3186       lt_ac_max=$lt_ac_count
3187       lt_cv_path_SED=$lt_ac_sed
3188     fi
3189   done
3190 done
3191 SED=$lt_cv_path_SED
3192
3193 fi
3194
3195 echo "$as_me:$LINENO: result: $SED" >&5
3196 echo "${ECHO_T}$SED" >&6
3197
3198 echo "$as_me:$LINENO: checking for egrep" >&5
3199 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3200 if test "${ac_cv_prog_egrep+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3204     then ac_cv_prog_egrep='grep -E'
3205     else ac_cv_prog_egrep='egrep'
3206     fi
3207 fi
3208 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3209 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3210  EGREP=$ac_cv_prog_egrep
3211
3212
3213
3214 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3215 if test "${with_gnu_ld+set}" = set; then
3216   withval="$with_gnu_ld"
3217   test "$withval" = no || with_gnu_ld=yes
3218 else
3219   with_gnu_ld=no
3220 fi;
3221 ac_prog=ld
3222 if test "$GCC" = yes; then
3223   # Check if gcc -print-prog-name=ld gives a path.
3224   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3225 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3226   case $host in
3227   *-*-mingw*)
3228     # gcc leaves a trailing carriage return which upsets mingw
3229     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3230   *)
3231     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3232   esac
3233   case $ac_prog in
3234     # Accept absolute paths.
3235     [\\/]* | ?:[\\/]*)
3236       re_direlt='/[^/][^/]*/\.\./'
3237       # Canonicalize the path of ld
3238       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3239       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3240         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3241       done
3242       test -z "$LD" && LD="$ac_prog"
3243       ;;
3244   "")
3245     # If it fails, then pretend we aren't using GCC.
3246     ac_prog=ld
3247     ;;
3248   *)
3249     # If it is relative, then search for the first ld in PATH.
3250     with_gnu_ld=unknown
3251     ;;
3252   esac
3253 elif test "$with_gnu_ld" = yes; then
3254   echo "$as_me:$LINENO: checking for GNU ld" >&5
3255 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3256 else
3257   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3258 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3259 fi
3260 if test "${lt_cv_path_LD+set}" = set; then
3261   echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263   if test -z "$LD"; then
3264   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3265   for ac_dir in $PATH; do
3266     IFS="$lt_save_ifs"
3267     test -z "$ac_dir" && ac_dir=.
3268     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3269       lt_cv_path_LD="$ac_dir/$ac_prog"
3270       # Check to see if the program is GNU ld.  I'd rather use --version,
3271       # but apparently some GNU ld's only accept -v.
3272       # Break only if it was the GNU/non-GNU ld that we prefer.
3273       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3274       *GNU* | *'with BFD'*)
3275         test "$with_gnu_ld" != no && break
3276         ;;
3277       *)
3278         test "$with_gnu_ld" != yes && break
3279         ;;
3280       esac
3281     fi
3282   done
3283   IFS="$lt_save_ifs"
3284 else
3285   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3286 fi
3287 fi
3288
3289 LD="$lt_cv_path_LD"
3290 if test -n "$LD"; then
3291   echo "$as_me:$LINENO: result: $LD" >&5
3292 echo "${ECHO_T}$LD" >&6
3293 else
3294   echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3296 fi
3297 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3298 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3299    { (exit 1); exit 1; }; }
3300 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3301 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3302 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3306 case `"$LD" -v 2>&1 </dev/null` in
3307 *GNU* | *'with BFD'*)
3308   lt_cv_prog_gnu_ld=yes
3309   ;;
3310 *)
3311   lt_cv_prog_gnu_ld=no
3312   ;;
3313 esac
3314 fi
3315 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3316 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3317 with_gnu_ld=$lt_cv_prog_gnu_ld
3318
3319
3320 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3321 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3322 if test "${lt_cv_ld_reload_flag+set}" = set; then
3323   echo $ECHO_N "(cached) $ECHO_C" >&6
3324 else
3325   lt_cv_ld_reload_flag='-r'
3326 fi
3327 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3328 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3329 reload_flag=$lt_cv_ld_reload_flag
3330 case $reload_flag in
3331 "" | " "*) ;;
3332 *) reload_flag=" $reload_flag" ;;
3333 esac
3334 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3335
3336 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3337 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3338 if test "${lt_cv_path_NM+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   if test -n "$NM"; then
3342   # Let the user override the test.
3343   lt_cv_path_NM="$NM"
3344 else
3345   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3346   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3347     IFS="$lt_save_ifs"
3348     test -z "$ac_dir" && ac_dir=.
3349     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3350     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3351       # Check to see if the nm accepts a BSD-compat flag.
3352       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3353       #   nm: unknown option "B" ignored
3354       # Tru64's nm complains that /dev/null is an invalid object file
3355       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3356       */dev/null* | *'Invalid file or object type'*)
3357         lt_cv_path_NM="$tmp_nm -B"
3358         break
3359         ;;
3360       *)
3361         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3362         */dev/null*)
3363           lt_cv_path_NM="$tmp_nm -p"
3364           break
3365           ;;
3366         *)
3367           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3368           continue # so that we can try to find one that supports BSD flags
3369           ;;
3370         esac
3371       esac
3372     fi
3373   done
3374   IFS="$lt_save_ifs"
3375   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3376 fi
3377 fi
3378 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3379 echo "${ECHO_T}$lt_cv_path_NM" >&6
3380 NM="$lt_cv_path_NM"
3381
3382 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3383 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3384 LN_S=$as_ln_s
3385 if test "$LN_S" = "ln -s"; then
3386   echo "$as_me:$LINENO: result: yes" >&5
3387 echo "${ECHO_T}yes" >&6
3388 else
3389   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3390 echo "${ECHO_T}no, using $LN_S" >&6
3391 fi
3392
3393 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3394 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3395 if test "${lt_cv_deplibs_check_method+set}" = set; then
3396   echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398   lt_cv_file_magic_cmd='$MAGIC_CMD'
3399 lt_cv_file_magic_test_file=
3400 lt_cv_deplibs_check_method='unknown'
3401 # Need to set the preceding variable on all platforms that support
3402 # interlibrary dependencies.
3403 # 'none' -- dependencies not supported.
3404 # `unknown' -- same as none, but documents that we really don't know.
3405 # 'pass_all' -- all dependencies passed with no checks.
3406 # 'test_compile' -- check by making test program.
3407 # 'file_magic [[regex]]' -- check by looking for files in library path
3408 # which responds to the $file_magic_cmd with a given extended regex.
3409 # If you have `file' or equivalent on your system and you're not sure
3410 # whether `pass_all' will *always* work, you probably want this one.
3411
3412 case $host_os in
3413 aix4* | aix5*)
3414   lt_cv_deplibs_check_method=pass_all
3415   ;;
3416
3417 beos*)
3418   lt_cv_deplibs_check_method=pass_all
3419   ;;
3420
3421 bsdi4*)
3422   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3423   lt_cv_file_magic_cmd='/usr/bin/file -L'
3424   lt_cv_file_magic_test_file=/shlib/libc.so
3425   ;;
3426
3427 cygwin* | mingw* | pw32*)
3428   # win32_libid is a shell function defined in ltmain.sh
3429   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3430   lt_cv_file_magic_cmd='win32_libid'
3431   ;;
3432
3433 darwin* | rhapsody*)
3434   # this will be overwritten by pass_all, but leave it in just in case
3435   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3436   lt_cv_file_magic_cmd='/usr/bin/file -L'
3437   case "$host_os" in
3438   rhapsody* | darwin1.[012])
3439     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3440     ;;
3441   *) # Darwin 1.3 on
3442     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3443     ;;
3444   esac
3445   lt_cv_deplibs_check_method=pass_all
3446   ;;
3447
3448 freebsd*)
3449   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3450     case $host_cpu in
3451     i*86 )
3452       # Not sure whether the presence of OpenBSD here was a mistake.
3453       # Let's accept both of them until this is cleared up.
3454       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3455       lt_cv_file_magic_cmd=/usr/bin/file
3456       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3457       ;;
3458     esac
3459   else
3460     lt_cv_deplibs_check_method=pass_all
3461   fi
3462   ;;
3463
3464 gnu*)
3465   lt_cv_deplibs_check_method=pass_all
3466   ;;
3467
3468 hpux10.20* | hpux11*)
3469   lt_cv_file_magic_cmd=/usr/bin/file
3470   case "$host_cpu" in
3471   ia64*)
3472     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3473     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3474     ;;
3475   hppa*64*)
3476     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]'
3477     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3478     ;;
3479   *)
3480     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3481     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3482     ;;
3483   esac
3484   ;;
3485
3486 irix5* | irix6* | nonstopux*)
3487   case $host_os in
3488   irix5* | nonstopux*)
3489     # this will be overridden with pass_all, but let us keep it just in case
3490     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3491     ;;
3492   *)
3493     case $LD in
3494     *-32|*"-32 ") libmagic=32-bit;;
3495     *-n32|*"-n32 ") libmagic=N32;;
3496     *-64|*"-64 ") libmagic=64-bit;;
3497     *) libmagic=never-match;;
3498     esac
3499     # this will be overridden with pass_all, but let us keep it just in case
3500     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3501     ;;
3502   esac
3503   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3504   lt_cv_deplibs_check_method=pass_all
3505   ;;
3506
3507 # This must be Linux ELF.
3508 linux*)
3509   case $host_cpu in
3510   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
3511     lt_cv_deplibs_check_method=pass_all ;;
3512   *)
3513     # glibc up to 2.1.1 does not perform some relocations on ARM
3514     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3515   esac
3516   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3517   ;;
3518
3519 netbsd*)
3520   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3521     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3522   else
3523     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3524   fi
3525   ;;
3526
3527 newos6*)
3528   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3529   lt_cv_file_magic_cmd=/usr/bin/file
3530   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3531   ;;
3532
3533 nto-qnx)
3534   lt_cv_deplibs_check_method=unknown
3535   ;;
3536
3537 openbsd*)
3538   lt_cv_file_magic_cmd=/usr/bin/file
3539   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3540   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3541     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3542   else
3543     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3544   fi
3545   ;;
3546
3547 osf3* | osf4* | osf5*)
3548   # this will be overridden with pass_all, but let us keep it just in case
3549   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3550   lt_cv_file_magic_test_file=/shlib/libc.so
3551   lt_cv_deplibs_check_method=pass_all
3552   ;;
3553
3554 sco3.2v5*)
3555   lt_cv_deplibs_check_method=pass_all
3556   ;;
3557
3558 solaris*)
3559   lt_cv_deplibs_check_method=pass_all
3560   lt_cv_file_magic_test_file=/lib/libc.so
3561   ;;
3562
3563 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3564   case $host_vendor in
3565   motorola)
3566     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]'
3567     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3568     ;;
3569   ncr)
3570     lt_cv_deplibs_check_method=pass_all
3571     ;;
3572   sequent)
3573     lt_cv_file_magic_cmd='/bin/file'
3574     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3575     ;;
3576   sni)
3577     lt_cv_file_magic_cmd='/bin/file'
3578     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3579     lt_cv_file_magic_test_file=/lib/libc.so
3580     ;;
3581   siemens)
3582     lt_cv_deplibs_check_method=pass_all
3583     ;;
3584   esac
3585   ;;
3586
3587 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3588   lt_cv_deplibs_check_method=pass_all
3589   ;;
3590 esac
3591
3592 fi
3593 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3594 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3595 file_magic_cmd=$lt_cv_file_magic_cmd
3596 deplibs_check_method=$lt_cv_deplibs_check_method
3597 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3598
3599
3600
3601
3602 # If no C compiler was specified, use CC.
3603 LTCC=${LTCC-"$CC"}
3604
3605 # Allow CC to be a program name with arguments.
3606 compiler=$CC
3607
3608 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3609 if test "${enable_libtool_lock+set}" = set; then
3610   enableval="$enable_libtool_lock"
3611
3612 fi;
3613 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3614
3615 # Some flags need to be propagated to the compiler or linker for good
3616 # libtool support.
3617 case $host in
3618 ia64-*-hpux*)
3619   # Find out which ABI we are using.
3620   echo 'int i;' > conftest.$ac_ext
3621   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3622   (eval $ac_compile) 2>&5
3623   ac_status=$?
3624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3625   (exit $ac_status); }; then
3626     case `/usr/bin/file conftest.$ac_objext` in
3627     *ELF-32*)
3628       HPUX_IA64_MODE="32"
3629       ;;
3630     *ELF-64*)
3631       HPUX_IA64_MODE="64"
3632       ;;
3633     esac
3634   fi
3635   rm -rf conftest*
3636   ;;
3637 *-*-irix6*)
3638   # Find out which ABI we are using.
3639   echo '#line 3639 "configure"' > conftest.$ac_ext
3640   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3641   (eval $ac_compile) 2>&5
3642   ac_status=$?
3643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644   (exit $ac_status); }; then
3645    if test "$lt_cv_prog_gnu_ld" = yes; then
3646     case `/usr/bin/file conftest.$ac_objext` in
3647     *32-bit*)
3648       LD="${LD-ld} -melf32bsmip"
3649       ;;
3650     *N32*)
3651       LD="${LD-ld} -melf32bmipn32"
3652       ;;
3653     *64-bit*)
3654       LD="${LD-ld} -melf64bmip"
3655       ;;
3656     esac
3657    else
3658     case `/usr/bin/file conftest.$ac_objext` in
3659     *32-bit*)
3660       LD="${LD-ld} -32"
3661       ;;
3662     *N32*)
3663       LD="${LD-ld} -n32"
3664       ;;
3665     *64-bit*)
3666       LD="${LD-ld} -64"
3667       ;;
3668     esac
3669    fi
3670   fi
3671   rm -rf conftest*
3672   ;;
3673
3674 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3675   # Find out which ABI we are using.
3676   echo 'int i;' > conftest.$ac_ext
3677   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678   (eval $ac_compile) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; then
3682     case "`/usr/bin/file conftest.o`" in
3683     *32-bit*)
3684       case $host in
3685         x86_64-*linux*)
3686           LD="${LD-ld} -m elf_i386"
3687           ;;
3688         ppc64-*linux*)
3689           LD="${LD-ld} -m elf32ppclinux"
3690           ;;
3691         s390x-*linux*)
3692           LD="${LD-ld} -m elf_s390"
3693           ;;
3694         sparc64-*linux*)
3695           LD="${LD-ld} -m elf32_sparc"
3696           ;;
3697       esac
3698       ;;
3699     *64-bit*)
3700       case $host in
3701         x86_64-*linux*)
3702           LD="${LD-ld} -m elf_x86_64"
3703           ;;
3704         ppc*-*linux*|powerpc*-*linux*)
3705           LD="${LD-ld} -m elf64ppc"
3706           ;;
3707         s390*-*linux*)
3708           LD="${LD-ld} -m elf64_s390"
3709           ;;
3710         sparc*-*linux*)
3711           LD="${LD-ld} -m elf64_sparc"
3712           ;;
3713       esac
3714       ;;
3715     esac
3716   fi
3717   rm -rf conftest*
3718   ;;
3719
3720 *-*-sco3.2v5*)
3721   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3722   SAVE_CFLAGS="$CFLAGS"
3723   CFLAGS="$CFLAGS -belf"
3724   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3725 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3726 if test "${lt_cv_cc_needs_belf+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   ac_ext=c
3730 ac_cpp='$CPP $CPPFLAGS'
3731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734
3735      cat >conftest.$ac_ext <<_ACEOF
3736 #line $LINENO "configure"
3737 #include "confdefs.h"
3738
3739 #ifdef F77_DUMMY_MAIN
3740 #  ifdef __cplusplus
3741      extern "C"
3742 #  endif
3743    int F77_DUMMY_MAIN() { return 1; }
3744 #endif
3745 int
3746 main ()
3747 {
3748
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 rm -f conftest.$ac_objext conftest$ac_exeext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3755   (eval $ac_link) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); } &&
3759          { ac_try='test -s conftest$ac_exeext'
3760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761   (eval $ac_try) 2>&5
3762   ac_status=$?
3763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764   (exit $ac_status); }; }; then
3765   lt_cv_cc_needs_belf=yes
3766 else
3767   echo "$as_me: failed program was:" >&5
3768 cat conftest.$ac_ext >&5
3769 lt_cv_cc_needs_belf=no
3770 fi
3771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3772      ac_ext=c
3773 ac_cpp='$CPP $CPPFLAGS'
3774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777
3778 fi
3779 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3780 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3781   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3782     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3783     CFLAGS="$SAVE_CFLAGS"
3784   fi
3785   ;;
3786
3787 esac
3788
3789 need_locks="$enable_libtool_lock"
3790
3791
3792
3793 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3794 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3795 if test "${ac_cv_header_stdc+set}" = set; then
3796   echo $ECHO_N "(cached) $ECHO_C" >&6
3797 else
3798   cat >conftest.$ac_ext <<_ACEOF
3799 #line $LINENO "configure"
3800 #include "confdefs.h"
3801 #include <stdlib.h>
3802 #include <stdarg.h>
3803 #include <string.h>
3804 #include <float.h>
3805
3806 _ACEOF
3807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3809   ac_status=$?
3810   egrep -v '^ *\+' conftest.er1 >conftest.err
3811   rm -f conftest.er1
3812   cat conftest.err >&5
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } >/dev/null; then
3815   if test -s conftest.err; then
3816     ac_cpp_err=$ac_c_preproc_warn_flag
3817   else
3818     ac_cpp_err=
3819   fi
3820 else
3821   ac_cpp_err=yes
3822 fi
3823 if test -z "$ac_cpp_err"; then
3824   ac_cv_header_stdc=yes
3825 else
3826   echo "$as_me: failed program was:" >&5
3827   cat conftest.$ac_ext >&5
3828   ac_cv_header_stdc=no
3829 fi
3830 rm -f conftest.err conftest.$ac_ext
3831
3832 if test $ac_cv_header_stdc = yes; then
3833   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3834   cat >conftest.$ac_ext <<_ACEOF
3835 #line $LINENO "configure"
3836 #include "confdefs.h"
3837 #include <string.h>
3838
3839 _ACEOF
3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841   egrep "memchr" >/dev/null 2>&1; then
3842   :
3843 else
3844   ac_cv_header_stdc=no
3845 fi
3846 rm -f conftest*
3847
3848 fi
3849
3850 if test $ac_cv_header_stdc = yes; then
3851   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3852   cat >conftest.$ac_ext <<_ACEOF
3853 #line $LINENO "configure"
3854 #include "confdefs.h"
3855 #include <stdlib.h>
3856
3857 _ACEOF
3858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3859   egrep "free" >/dev/null 2>&1; then
3860   :
3861 else
3862   ac_cv_header_stdc=no
3863 fi
3864 rm -f conftest*
3865
3866 fi
3867
3868 if test $ac_cv_header_stdc = yes; then
3869   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3870   if test "$cross_compiling" = yes; then
3871   :
3872 else
3873   cat >conftest.$ac_ext <<_ACEOF
3874 #line $LINENO "configure"
3875 #include "confdefs.h"
3876 #include <ctype.h>
3877 #if ((' ' & 0x0FF) == 0x020)
3878 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3879 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3880 #else
3881 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3882                      || ('j' <= (c) && (c) <= 'r') \
3883                      || ('s' <= (c) && (c) <= 'z'))
3884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3885 #endif
3886
3887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3888 int
3889 main ()
3890 {
3891   int i;
3892   for (i = 0; i < 256; i++)
3893     if (XOR (islower (i), ISLOWER (i))
3894         || toupper (i) != TOUPPER (i))
3895       exit(2);
3896   exit (0);
3897 }
3898 _ACEOF
3899 rm -f conftest$ac_exeext
3900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3901   (eval $ac_link) 2>&5
3902   ac_status=$?
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906   (eval $ac_try) 2>&5
3907   ac_status=$?
3908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909   (exit $ac_status); }; }; then
3910   :
3911 else
3912   echo "$as_me: program exited with status $ac_status" >&5
3913 echo "$as_me: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3915 ( exit $ac_status )
3916 ac_cv_header_stdc=no
3917 fi
3918 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3919 fi
3920 fi
3921 fi
3922 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3923 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3924 if test $ac_cv_header_stdc = yes; then
3925
3926 cat >>confdefs.h <<\_ACEOF
3927 #define STDC_HEADERS 1
3928 _ACEOF
3929
3930 fi
3931
3932 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3943                   inttypes.h stdint.h unistd.h
3944 do
3945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3946 echo "$as_me:$LINENO: checking for $ac_header" >&5
3947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3949   echo $ECHO_N "(cached) $ECHO_C" >&6
3950 else
3951   cat >conftest.$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3953 #include "confdefs.h"
3954 $ac_includes_default
3955
3956 #include <$ac_header>
3957 _ACEOF
3958 rm -f conftest.$ac_objext
3959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3960   (eval $ac_compile) 2>&5
3961   ac_status=$?
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } &&
3964          { ac_try='test -s conftest.$ac_objext'
3965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966   (eval $ac_try) 2>&5
3967   ac_status=$?
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); }; }; then
3970   eval "$as_ac_Header=yes"
3971 else
3972   echo "$as_me: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3974 eval "$as_ac_Header=no"
3975 fi
3976 rm -f conftest.$ac_objext conftest.$ac_ext
3977 fi
3978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3981   cat >>confdefs.h <<_ACEOF
3982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3983 _ACEOF
3984
3985 fi
3986
3987 done
3988
3989
3990
3991 for ac_header in dlfcn.h
3992 do
3993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3995   echo "$as_me:$LINENO: checking for $ac_header" >&5
3996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3998   echo $ECHO_N "(cached) $ECHO_C" >&6
3999 fi
4000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4002 else
4003   # Is the header compilable?
4004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4007 #line $LINENO "configure"
4008 #include "confdefs.h"
4009 $ac_includes_default
4010 #include <$ac_header>
4011 _ACEOF
4012 rm -f conftest.$ac_objext
4013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4014   (eval $ac_compile) 2>&5
4015   ac_status=$?
4016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017   (exit $ac_status); } &&
4018          { ac_try='test -s conftest.$ac_objext'
4019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020   (eval $ac_try) 2>&5
4021   ac_status=$?
4022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023   (exit $ac_status); }; }; then
4024   ac_header_compiler=yes
4025 else
4026   echo "$as_me: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4028 ac_header_compiler=no
4029 fi
4030 rm -f conftest.$ac_objext conftest.$ac_ext
4031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4032 echo "${ECHO_T}$ac_header_compiler" >&6
4033
4034 # Is the header present?
4035 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4036 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4037 cat >conftest.$ac_ext <<_ACEOF
4038 #line $LINENO "configure"
4039 #include "confdefs.h"
4040 #include <$ac_header>
4041 _ACEOF
4042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4044   ac_status=$?
4045   egrep -v '^ *\+' conftest.er1 >conftest.err
4046   rm -f conftest.er1
4047   cat conftest.err >&5
4048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049   (exit $ac_status); } >/dev/null; then
4050   if test -s conftest.err; then
4051     ac_cpp_err=$ac_c_preproc_warn_flag
4052   else
4053     ac_cpp_err=
4054   fi
4055 else
4056   ac_cpp_err=yes
4057 fi
4058 if test -z "$ac_cpp_err"; then
4059   ac_header_preproc=yes
4060 else
4061   echo "$as_me: failed program was:" >&5
4062   cat conftest.$ac_ext >&5
4063   ac_header_preproc=no
4064 fi
4065 rm -f conftest.err conftest.$ac_ext
4066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4067 echo "${ECHO_T}$ac_header_preproc" >&6
4068
4069 # So?  What about this header?
4070 case $ac_header_compiler:$ac_header_preproc in
4071   yes:no )
4072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4076   no:yes )
4077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4079     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4083 esac
4084 echo "$as_me:$LINENO: checking for $ac_header" >&5
4085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   eval "$as_ac_Header=$ac_header_preproc"
4090 fi
4091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4093
4094 fi
4095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4096   cat >>confdefs.h <<_ACEOF
4097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4098 _ACEOF
4099
4100 fi
4101
4102 done
4103
4104 ac_ext=cc
4105 ac_cpp='$CXXCPP $CPPFLAGS'
4106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4109 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4110 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4111 if test -z "$CXXCPP"; then
4112   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115       # Double quotes because CXXCPP needs to be expanded
4116     for CXXCPP in "$CXX -E" "/lib/cpp"
4117     do
4118       ac_preproc_ok=false
4119 for ac_cxx_preproc_warn_flag in '' yes
4120 do
4121   # Use a header file that comes with gcc, so configuring glibc
4122   # with a fresh cross-compiler works.
4123   # On the NeXT, cc -E runs the code through the compiler's parser,
4124   # not just through cpp. "Syntax error" is here to catch this case.
4125   cat >conftest.$ac_ext <<_ACEOF
4126 #line $LINENO "configure"
4127 #include "confdefs.h"
4128 #include <assert.h>
4129                      Syntax error
4130 _ACEOF
4131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4133   ac_status=$?
4134   egrep -v '^ *\+' conftest.er1 >conftest.err
4135   rm -f conftest.er1
4136   cat conftest.err >&5
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); } >/dev/null; then
4139   if test -s conftest.err; then
4140     ac_cpp_err=$ac_cxx_preproc_warn_flag
4141   else
4142     ac_cpp_err=
4143   fi
4144 else
4145   ac_cpp_err=yes
4146 fi
4147 if test -z "$ac_cpp_err"; then
4148   :
4149 else
4150   echo "$as_me: failed program was:" >&5
4151   cat conftest.$ac_ext >&5
4152   # Broken: fails on valid input.
4153 continue
4154 fi
4155 rm -f conftest.err conftest.$ac_ext
4156
4157   # OK, works on sane cases.  Now check whether non-existent headers
4158   # can be detected and how.
4159   cat >conftest.$ac_ext <<_ACEOF
4160 #line $LINENO "configure"
4161 #include "confdefs.h"
4162 #include <ac_nonexistent.h>
4163 _ACEOF
4164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4165   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4166   ac_status=$?
4167   egrep -v '^ *\+' conftest.er1 >conftest.err
4168   rm -f conftest.er1
4169   cat conftest.err >&5
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); } >/dev/null; then
4172   if test -s conftest.err; then
4173     ac_cpp_err=$ac_cxx_preproc_warn_flag
4174   else
4175     ac_cpp_err=
4176   fi
4177 else
4178   ac_cpp_err=yes
4179 fi
4180 if test -z "$ac_cpp_err"; then
4181   # Broken: success on invalid input.
4182 continue
4183 else
4184   echo "$as_me: failed program was:" >&5
4185   cat conftest.$ac_ext >&5
4186   # Passes both tests.
4187 ac_preproc_ok=:
4188 break
4189 fi
4190 rm -f conftest.err conftest.$ac_ext
4191
4192 done
4193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4194 rm -f conftest.err conftest.$ac_ext
4195 if $ac_preproc_ok; then
4196   break
4197 fi
4198
4199     done
4200     ac_cv_prog_CXXCPP=$CXXCPP
4201
4202 fi
4203   CXXCPP=$ac_cv_prog_CXXCPP
4204 else
4205   ac_cv_prog_CXXCPP=$CXXCPP
4206 fi
4207 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4208 echo "${ECHO_T}$CXXCPP" >&6
4209 ac_preproc_ok=false
4210 for ac_cxx_preproc_warn_flag in '' yes
4211 do
4212   # Use a header file that comes with gcc, so configuring glibc
4213   # with a fresh cross-compiler works.
4214   # On the NeXT, cc -E runs the code through the compiler's parser,
4215   # not just through cpp. "Syntax error" is here to catch this case.
4216   cat >conftest.$ac_ext <<_ACEOF
4217 #line $LINENO "configure"
4218 #include "confdefs.h"
4219 #include <assert.h>
4220                      Syntax error
4221 _ACEOF
4222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4223   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4224   ac_status=$?
4225   egrep -v '^ *\+' conftest.er1 >conftest.err
4226   rm -f conftest.er1
4227   cat conftest.err >&5
4228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229   (exit $ac_status); } >/dev/null; then
4230   if test -s conftest.err; then
4231     ac_cpp_err=$ac_cxx_preproc_warn_flag
4232   else
4233     ac_cpp_err=
4234   fi
4235 else
4236   ac_cpp_err=yes
4237 fi
4238 if test -z "$ac_cpp_err"; then
4239   :
4240 else
4241   echo "$as_me: failed program was:" >&5
4242   cat conftest.$ac_ext >&5
4243   # Broken: fails on valid input.
4244 continue
4245 fi
4246 rm -f conftest.err conftest.$ac_ext
4247
4248   # OK, works on sane cases.  Now check whether non-existent headers
4249   # can be detected and how.
4250   cat >conftest.$ac_ext <<_ACEOF
4251 #line $LINENO "configure"
4252 #include "confdefs.h"
4253 #include <ac_nonexistent.h>
4254 _ACEOF
4255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4256   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4257   ac_status=$?
4258   egrep -v '^ *\+' conftest.er1 >conftest.err
4259   rm -f conftest.er1
4260   cat conftest.err >&5
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } >/dev/null; then
4263   if test -s conftest.err; then
4264     ac_cpp_err=$ac_cxx_preproc_warn_flag
4265   else
4266     ac_cpp_err=
4267   fi
4268 else
4269   ac_cpp_err=yes
4270 fi
4271 if test -z "$ac_cpp_err"; then
4272   # Broken: success on invalid input.
4273 continue
4274 else
4275   echo "$as_me: failed program was:" >&5
4276   cat conftest.$ac_ext >&5
4277   # Passes both tests.
4278 ac_preproc_ok=:
4279 break
4280 fi
4281 rm -f conftest.err conftest.$ac_ext
4282
4283 done
4284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4285 rm -f conftest.err conftest.$ac_ext
4286 if $ac_preproc_ok; then
4287   :
4288 else
4289   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4290 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4291    { (exit 1); exit 1; }; }
4292 fi
4293
4294 ac_ext=cc
4295 ac_cpp='$CXXCPP $CPPFLAGS'
4296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4299
4300
4301 ac_ext=f
4302 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4303 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4305 if test -n "$ac_tool_prefix"; then
4306   for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc
4307   do
4308     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4310 echo "$as_me:$LINENO: checking for $ac_word" >&5
4311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4312 if test "${ac_cv_prog_F77+set}" = set; then
4313   echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315   if test -n "$F77"; then
4316   ac_cv_prog_F77="$F77" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4320 do
4321   IFS=$as_save_IFS
4322   test -z "$as_dir" && as_dir=.
4323   for ac_exec_ext in '' $ac_executable_extensions; do
4324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327     break 2
4328   fi
4329 done
4330 done
4331
4332 fi
4333 fi
4334 F77=$ac_cv_prog_F77
4335 if test -n "$F77"; then
4336   echo "$as_me:$LINENO: result: $F77" >&5
4337 echo "${ECHO_T}$F77" >&6
4338 else
4339   echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6
4341 fi
4342
4343     test -n "$F77" && break
4344   done
4345 fi
4346 if test -z "$F77"; then
4347   ac_ct_F77=$F77
4348   for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc
4349 do
4350   # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4354 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357   if test -n "$ac_ct_F77"; then
4358   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363   IFS=$as_save_IFS
4364   test -z "$as_dir" && as_dir=.
4365   for ac_exec_ext in '' $ac_executable_extensions; do
4366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4367     ac_cv_prog_ac_ct_F77="$ac_prog"
4368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369     break 2
4370   fi
4371 done
4372 done
4373
4374 fi
4375 fi
4376 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4377 if test -n "$ac_ct_F77"; then
4378   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4379 echo "${ECHO_T}$ac_ct_F77" >&6
4380 else
4381   echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6
4383 fi
4384
4385   test -n "$ac_ct_F77" && break
4386 done
4387
4388   F77=$ac_ct_F77
4389 fi
4390
4391
4392 # Provide some information about the compiler.
4393 echo "$as_me:4393:" \
4394      "checking for Fortran 77 compiler version" >&5
4395 ac_compiler=`set X $ac_compile; echo $2`
4396 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4397   (eval $ac_compiler --version </dev/null >&5) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }
4401 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4402   (eval $ac_compiler -v </dev/null >&5) 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }
4406 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4407   (eval $ac_compiler -V </dev/null >&5) 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }
4411
4412 # If we don't use `.F' as extension, the preprocessor is not run on the
4413 # input file.
4414 ac_save_ext=$ac_ext
4415 ac_ext=F
4416 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4417 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4418 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4419   echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421   cat >conftest.$ac_ext <<_ACEOF
4422       program main
4423 #ifndef __GNUC__
4424        choke me
4425 #endif
4426
4427       end
4428 _ACEOF
4429 rm -f conftest.$ac_objext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4431   (eval $ac_compile) 2>&5
4432   ac_status=$?
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); } &&
4435          { ac_try='test -s conftest.$ac_objext'
4436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437   (eval $ac_try) 2>&5
4438   ac_status=$?
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); }; }; then
4441   ac_compiler_gnu=yes
4442 else
4443   echo "$as_me: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4445 ac_compiler_gnu=no
4446 fi
4447 rm -f conftest.$ac_objext conftest.$ac_ext
4448 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4449
4450 fi
4451 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4452 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4453 ac_ext=$ac_save_ext
4454 G77=`test $ac_compiler_gnu = yes && echo yes`
4455 ac_test_FFLAGS=${FFLAGS+set}
4456 ac_save_FFLAGS=$FFLAGS
4457 FFLAGS=
4458 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4459 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4460 if test "${ac_cv_prog_f77_g+set}" = set; then
4461   echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463   FFLAGS=-g
4464 cat >conftest.$ac_ext <<_ACEOF
4465       program main
4466
4467       end
4468 _ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471   (eval $ac_compile) 2>&5
4472   ac_status=$?
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); } &&
4475          { ac_try='test -s conftest.$ac_objext'
4476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477   (eval $ac_try) 2>&5
4478   ac_status=$?
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); }; }; then
4481   ac_cv_prog_f77_g=yes
4482 else
4483   echo "$as_me: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4485 ac_cv_prog_f77_g=no
4486 fi
4487 rm -f conftest.$ac_objext conftest.$ac_ext
4488
4489 fi
4490 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4491 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4492 if test "$ac_test_FFLAGS" = set; then
4493   FFLAGS=$ac_save_FFLAGS
4494 elif test $ac_cv_prog_f77_g = yes; then
4495   if test "$G77" = yes; then
4496     FFLAGS="-g -O2"
4497   else
4498     FFLAGS="-g"
4499   fi
4500 else
4501   if test "$G77" = yes; then
4502     FFLAGS="-O2"
4503   else
4504     FFLAGS=
4505   fi
4506 fi
4507 ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512
4513
4514
4515 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4516
4517 # find the maximum length of command line arguments
4518 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4519 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4520 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4521   echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523     i=0
4524   testring="ABCD"
4525
4526   case $build_os in
4527   msdosdjgpp*)
4528     # On DJGPP, this test can blow up pretty badly due to problems in libc
4529     # (any single argument exceeding 2000 bytes causes a buffer overrun
4530     # during glob expansion).  Even if it were fixed, the result of this
4531     # check would be larger than it should be.
4532     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4533     ;;
4534
4535   gnu*)
4536     # Under GNU Hurd, this test is not required because there is
4537     # no limit to the length of command line arguments.
4538     # Libtool will interpret -1 as no limit whatsoever
4539     lt_cv_sys_max_cmd_len=-1;
4540     ;;
4541
4542   cygwin* | mingw*)
4543     # On Win9x/ME, this test blows up -- it succeeds, but takes
4544     # about 5 minutes as the teststring grows exponentially.
4545     # Worse, since 9x/ME are not pre-emptively multitasking,
4546     # you end up with a "frozen" computer, even though with patience
4547     # the test eventually succeeds (with a max line length of 256k).
4548     # Instead, let's just punt: use the minimum linelength reported by
4549     # all of the supported platforms: 8192 (on NT/2K/XP).
4550     lt_cv_sys_max_cmd_len=8192;
4551     ;;
4552
4553  *)
4554     # If test is not a shell built-in, we'll probably end up computing a
4555     # maximum length that is only half of the actual maximum length, but
4556     # we can't tell.
4557     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
4558                = "XX$testring") >/dev/null 2>&1 &&
4559             new_result=`expr "X$testring" : ".*" 2>&1` &&
4560             lt_cv_sys_max_cmd_len=$new_result &&
4561             test $i != 17 # 1/2 MB should be enough
4562     do
4563       i=`expr $i + 1`
4564       testring=$testring$testring
4565     done
4566     testring=
4567     # Add a significant safety factor because C++ compilers can tack on massive
4568     # amounts of additional arguments before passing them to the linker.
4569     # It appears as though 1/2 is a usable value.
4570     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4571     ;;
4572   esac
4573
4574 fi
4575
4576 if test -n $lt_cv_sys_max_cmd_len ; then
4577   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4578 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4579 else
4580   echo "$as_me:$LINENO: result: none" >&5
4581 echo "${ECHO_T}none" >&6
4582 fi
4583
4584
4585
4586
4587 # Check for command to grab the raw symbol name followed by C symbol from nm.
4588 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4589 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4590 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4591   echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593
4594 # These are sane defaults that work on at least a few old systems.
4595 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4596
4597 # Character class describing NM global symbol codes.
4598 symcode='[BCDEGRST]'
4599
4600 # Regexp to match symbols that can be accessed directly from C.
4601 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4602
4603 # Transform the above into a raw symbol and a C symbol.
4604 symxfrm='\1 \2\3 \3'
4605
4606 # Transform an extracted symbol line into a proper C declaration
4607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4608
4609 # Transform an extracted symbol line into symbol name and symbol address
4610 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'"
4611
4612 # Define system-specific variables.
4613 case $host_os in
4614 aix*)
4615   symcode='[BCDT]'
4616   ;;
4617 cygwin* | mingw* | pw32*)
4618   symcode='[ABCDGISTW]'
4619   ;;
4620 hpux*) # Its linker distinguishes data from code symbols
4621   if test "$host_cpu" = ia64; then
4622     symcode='[ABCDEGRST]'
4623   fi
4624   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4625   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'"
4626   ;;
4627 irix* | nonstopux*)
4628   symcode='[BCDEGRST]'
4629   ;;
4630 osf*)
4631   symcode='[BCDEGQRST]'
4632   ;;
4633 solaris* | sysv5*)
4634   symcode='[BDT]'
4635   ;;
4636 sysv4)
4637   symcode='[DFNSTU]'
4638   ;;
4639 esac
4640
4641 # Handle CRLF in mingw tool chain
4642 opt_cr=
4643 case $build_os in
4644 mingw*)
4645   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4646   ;;
4647 esac
4648
4649 # If we're using GNU nm, then use its standard symbol codes.
4650 case `$NM -V 2>&1` in
4651 *GNU* | *'with BFD'*)
4652   symcode='[ABCDGISTW]' ;;
4653 esac
4654
4655 # Try without a prefix undercore, then with it.
4656 for ac_symprfx in "" "_"; do
4657
4658   # Write the raw and C identifiers.
4659   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4660
4661   # Check to see that the pipe works correctly.
4662   pipe_works=no
4663
4664   rm -f conftest*
4665   cat > conftest.$ac_ext <<EOF
4666 #ifdef __cplusplus
4667 extern "C" {
4668 #endif
4669 char nm_test_var;
4670 void nm_test_func(){}
4671 #ifdef __cplusplus
4672 }
4673 #endif
4674 int main(){nm_test_var='a';nm_test_func();return(0);}
4675 EOF
4676
4677   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678   (eval $ac_compile) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; then
4682     # Now try to grab the symbols.
4683     nlist=conftest.nm
4684     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4685   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4686   ac_status=$?
4687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688   (exit $ac_status); } && test -s "$nlist"; then
4689       # Try sorting and uniquifying the output.
4690       if sort "$nlist" | uniq > "$nlist"T; then
4691         mv -f "$nlist"T "$nlist"
4692       else
4693         rm -f "$nlist"T
4694       fi
4695
4696       # Make sure that we snagged all the symbols we need.
4697       if grep ' nm_test_var$' "$nlist" >/dev/null; then
4698         if grep ' nm_test_func$' "$nlist" >/dev/null; then
4699           cat <<EOF > conftest.$ac_ext
4700 #ifdef __cplusplus
4701 extern "C" {
4702 #endif
4703
4704 EOF
4705           # Now generate the symbol file.
4706           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4707
4708           cat <<EOF >> conftest.$ac_ext
4709 #if defined (__STDC__) && __STDC__
4710 # define lt_ptr_t void *
4711 #else
4712 # define lt_ptr_t char *
4713 # define const
4714 #endif
4715
4716 /* The mapping between symbol names and symbols. */
4717 const struct {
4718   const char *name;
4719   lt_ptr_t address;
4720 }
4721 lt_preloaded_symbols[] =
4722 {
4723 EOF
4724           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4725           cat <<\EOF >> conftest.$ac_ext
4726   {0, (lt_ptr_t) 0}
4727 };
4728
4729 #ifdef __cplusplus
4730 }
4731 #endif
4732 EOF
4733           # Now try linking the two files.
4734           mv conftest.$ac_objext conftstm.$ac_objext
4735           lt_save_LIBS="$LIBS"
4736           lt_save_CFLAGS="$CFLAGS"
4737           LIBS="conftstm.$ac_objext"
4738           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4739           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4740   (eval $ac_link) 2>&5
4741   ac_status=$?
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); } && test -s conftest${ac_exeext}; then
4744             pipe_works=yes
4745           fi
4746           LIBS="$lt_save_LIBS"
4747           CFLAGS="$lt_save_CFLAGS"
4748         else
4749           echo "cannot find nm_test_func in $nlist" >&5
4750         fi
4751       else
4752         echo "cannot find nm_test_var in $nlist" >&5
4753       fi
4754     else
4755       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4756     fi
4757   else
4758     echo "$progname: failed program was:" >&5
4759     cat conftest.$ac_ext >&5
4760   fi
4761   rm -f conftest* conftst*
4762
4763   # Do not use the global_symbol_pipe unless it works.
4764   if test "$pipe_works" = yes; then
4765     break
4766   else
4767     lt_cv_sys_global_symbol_pipe=
4768   fi
4769 done
4770
4771 fi
4772
4773 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4774   lt_cv_sys_global_symbol_to_cdecl=
4775 fi
4776 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4777   echo "$as_me:$LINENO: result: failed" >&5
4778 echo "${ECHO_T}failed" >&6
4779 else
4780   echo "$as_me:$LINENO: result: ok" >&5
4781 echo "${ECHO_T}ok" >&6
4782 fi
4783
4784 echo "$as_me:$LINENO: checking for objdir" >&5
4785 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4786 if test "${lt_cv_objdir+set}" = set; then
4787   echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789   rm -f .libs 2>/dev/null
4790 mkdir .libs 2>/dev/null
4791 if test -d .libs; then
4792   lt_cv_objdir=.libs
4793 else
4794   # MS-DOS does not allow filenames that begin with a dot.
4795   lt_cv_objdir=_libs
4796 fi
4797 rmdir .libs 2>/dev/null
4798 fi
4799 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
4800 echo "${ECHO_T}$lt_cv_objdir" >&6
4801 objdir=$lt_cv_objdir
4802
4803
4804
4805
4806
4807 case $host_os in
4808 aix3*)
4809   # AIX sometimes has problems with the GCC collect2 program.  For some
4810   # reason, if we set the COLLECT_NAMES environment variable, the problems
4811   # vanish in a puff of smoke.
4812   if test "X${COLLECT_NAMES+set}" != Xset; then
4813     COLLECT_NAMES=
4814     export COLLECT_NAMES
4815   fi
4816   ;;
4817 esac
4818
4819 # Sed substitution that helps us do robust quoting.  It backslashifies
4820 # metacharacters that are still active within double-quoted strings.
4821 Xsed='sed -e s/^X//'
4822 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4823
4824 # Same as above, but do not quote variable references.
4825 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4826
4827 # Sed substitution to delay expansion of an escaped shell variable in a
4828 # double_quote_subst'ed string.
4829 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4830
4831 # Sed substitution to avoid accidental globbing in evaled expressions
4832 no_glob_subst='s/\*/\\\*/g'
4833
4834 # Constants:
4835 rm="rm -f"
4836
4837 # Global variables:
4838 default_ofile=libtool
4839 can_build_shared=yes
4840
4841 # All known linkers require a `.a' archive for static linking (except M$VC,
4842 # which needs '.lib').
4843 libext=a
4844 ltmain="$ac_aux_dir/ltmain.sh"
4845 ofile="$default_ofile"
4846 with_gnu_ld="$lt_cv_prog_gnu_ld"
4847
4848 if test -n "$ac_tool_prefix"; then
4849   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4850 set dummy ${ac_tool_prefix}ar; ac_word=$2
4851 echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853 if test "${ac_cv_prog_AR+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   if test -n "$AR"; then
4857   ac_cv_prog_AR="$AR" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864   for ac_exec_ext in '' $ac_executable_extensions; do
4865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866     ac_cv_prog_AR="${ac_tool_prefix}ar"
4867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868     break 2
4869   fi
4870 done
4871 done
4872
4873 fi
4874 fi
4875 AR=$ac_cv_prog_AR
4876 if test -n "$AR"; then
4877   echo "$as_me:$LINENO: result: $AR" >&5
4878 echo "${ECHO_T}$AR" >&6
4879 else
4880   echo "$as_me:$LINENO: result: no" >&5
4881 echo "${ECHO_T}no" >&6
4882 fi
4883
4884 fi
4885 if test -z "$ac_cv_prog_AR"; then
4886   ac_ct_AR=$AR
4887   # Extract the first word of "ar", so it can be a program name with args.
4888 set dummy ar; ac_word=$2
4889 echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4891 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4892   echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894   if test -n "$ac_ct_AR"; then
4895   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4896 else
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 for as_dir in $PATH
4899 do
4900   IFS=$as_save_IFS
4901   test -z "$as_dir" && as_dir=.
4902   for ac_exec_ext in '' $ac_executable_extensions; do
4903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4904     ac_cv_prog_ac_ct_AR="ar"
4905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906     break 2
4907   fi
4908 done
4909 done
4910
4911   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4912 fi
4913 fi
4914 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4915 if test -n "$ac_ct_AR"; then
4916   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4917 echo "${ECHO_T}$ac_ct_AR" >&6
4918 else
4919   echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6
4921 fi
4922
4923   AR=$ac_ct_AR
4924 else
4925   AR="$ac_cv_prog_AR"
4926 fi
4927
4928 if test -n "$ac_tool_prefix"; then
4929   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4930 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4931 echo "$as_me:$LINENO: checking for $ac_word" >&5
4932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4933 if test "${ac_cv_prog_RANLIB+set}" = set; then
4934   echo $ECHO_N "(cached) $ECHO_C" >&6
4935 else
4936   if test -n "$RANLIB"; then
4937   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942   IFS=$as_save_IFS
4943   test -z "$as_dir" && as_dir=.
4944   for ac_exec_ext in '' $ac_executable_extensions; do
4945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948     break 2
4949   fi
4950 done
4951 done
4952
4953 fi
4954 fi
4955 RANLIB=$ac_cv_prog_RANLIB
4956 if test -n "$RANLIB"; then
4957   echo "$as_me:$LINENO: result: $RANLIB" >&5
4958 echo "${ECHO_T}$RANLIB" >&6
4959 else
4960   echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6
4962 fi
4963
4964 fi
4965 if test -z "$ac_cv_prog_RANLIB"; then
4966   ac_ct_RANLIB=$RANLIB
4967   # Extract the first word of "ranlib", so it can be a program name with args.
4968 set dummy ranlib; ac_word=$2
4969 echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4972   echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974   if test -n "$ac_ct_RANLIB"; then
4975   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980   IFS=$as_save_IFS
4981   test -z "$as_dir" && as_dir=.
4982   for ac_exec_ext in '' $ac_executable_extensions; do
4983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984     ac_cv_prog_ac_ct_RANLIB="ranlib"
4985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986     break 2
4987   fi
4988 done
4989 done
4990
4991   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4992 fi
4993 fi
4994 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4995 if test -n "$ac_ct_RANLIB"; then
4996   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4997 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4998 else
4999   echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6
5001 fi
5002
5003   RANLIB=$ac_ct_RANLIB
5004 else
5005   RANLIB="$ac_cv_prog_RANLIB"
5006 fi
5007
5008 if test -n "$ac_tool_prefix"; then
5009   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5010 set dummy ${ac_tool_prefix}strip; ac_word=$2
5011 echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5013 if test "${ac_cv_prog_STRIP+set}" = set; then
5014   echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016   if test -n "$STRIP"; then
5017   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5018 else
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022   IFS=$as_save_IFS
5023   test -z "$as_dir" && as_dir=.
5024   for ac_exec_ext in '' $ac_executable_extensions; do
5025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028     break 2
5029   fi
5030 done
5031 done
5032
5033 fi
5034 fi
5035 STRIP=$ac_cv_prog_STRIP
5036 if test -n "$STRIP"; then
5037   echo "$as_me:$LINENO: result: $STRIP" >&5
5038 echo "${ECHO_T}$STRIP" >&6
5039 else
5040   echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6
5042 fi
5043
5044 fi
5045 if test -z "$ac_cv_prog_STRIP"; then
5046   ac_ct_STRIP=$STRIP
5047   # Extract the first word of "strip", so it can be a program name with args.
5048 set dummy strip; ac_word=$2
5049 echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5051 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   if test -n "$ac_ct_STRIP"; then
5055   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5059 do
5060   IFS=$as_save_IFS
5061   test -z "$as_dir" && as_dir=.
5062   for ac_exec_ext in '' $ac_executable_extensions; do
5063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064     ac_cv_prog_ac_ct_STRIP="strip"
5065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066     break 2
5067   fi
5068 done
5069 done
5070
5071   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5072 fi
5073 fi
5074 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5075 if test -n "$ac_ct_STRIP"; then
5076   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5077 echo "${ECHO_T}$ac_ct_STRIP" >&6
5078 else
5079   echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6
5081 fi
5082
5083   STRIP=$ac_ct_STRIP
5084 else
5085   STRIP="$ac_cv_prog_STRIP"
5086 fi
5087
5088
5089 old_CC="$CC"
5090 old_CFLAGS="$CFLAGS"
5091
5092 # Set sane defaults for various variables
5093 test -z "$AR" && AR=ar
5094 test -z "$AR_FLAGS" && AR_FLAGS=cru
5095 test -z "$AS" && AS=as
5096 test -z "$CC" && CC=cc
5097 test -z "$LTCC" && LTCC=$CC
5098 test -z "$DLLTOOL" && DLLTOOL=dlltool
5099 test -z "$LD" && LD=ld
5100 test -z "$LN_S" && LN_S="ln -s"
5101 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5102 test -z "$NM" && NM=nm
5103 test -z "$SED" && SED=sed
5104 test -z "$OBJDUMP" && OBJDUMP=objdump
5105 test -z "$RANLIB" && RANLIB=:
5106 test -z "$STRIP" && STRIP=:
5107 test -z "$ac_objext" && ac_objext=o
5108
5109 # Determine commands to create old-style static archives.
5110 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5111 old_postinstall_cmds='chmod 644 $oldlib'
5112 old_postuninstall_cmds=
5113
5114 if test -n "$RANLIB"; then
5115   case $host_os in
5116   openbsd*)
5117     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5118     ;;
5119   *)
5120     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5121     ;;
5122   esac
5123   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5124 fi
5125
5126 # Only perform the check for file, if the check method requires it
5127 case $deplibs_check_method in
5128 file_magic*)
5129   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5130     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5131 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5132 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5133   echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135   case $MAGIC_CMD in
5136 [\\/*] |  ?:[\\/]*)
5137   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5138   ;;
5139 *)
5140   lt_save_MAGIC_CMD="$MAGIC_CMD"
5141   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5142   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5143   for ac_dir in $ac_dummy; do
5144     IFS="$lt_save_ifs"
5145     test -z "$ac_dir" && ac_dir=.
5146     if test -f $ac_dir/${ac_tool_prefix}file; then
5147       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5148       if test -n "$file_magic_test_file"; then
5149         case $deplibs_check_method in
5150         "file_magic "*)
5151           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5152           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5153           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5154             $EGREP "$file_magic_regex" > /dev/null; then
5155             :
5156           else
5157             cat <<EOF 1>&2
5158
5159 *** Warning: the command libtool uses to detect shared libraries,
5160 *** $file_magic_cmd, produces output that libtool cannot recognize.
5161 *** The result is that libtool may fail to recognize shared libraries
5162 *** as such.  This will affect the creation of libtool libraries that
5163 *** depend on shared libraries, but programs linked with such libtool
5164 *** libraries will work regardless of this problem.  Nevertheless, you
5165 *** may want to report the problem to your system manager and/or to
5166 *** bug-libtool@gnu.org
5167
5168 EOF
5169           fi ;;
5170         esac
5171       fi
5172       break
5173     fi
5174   done
5175   IFS="$lt_save_ifs"
5176   MAGIC_CMD="$lt_save_MAGIC_CMD"
5177   ;;
5178 esac
5179 fi
5180
5181 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5182 if test -n "$MAGIC_CMD"; then
5183   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5184 echo "${ECHO_T}$MAGIC_CMD" >&6
5185 else
5186   echo "$as_me:$LINENO: result: no" >&5
5187 echo "${ECHO_T}no" >&6
5188 fi
5189
5190 if test -z "$lt_cv_path_MAGIC_CMD"; then
5191   if test -n "$ac_tool_prefix"; then
5192     echo "$as_me:$LINENO: checking for file" >&5
5193 echo $ECHO_N "checking for file... $ECHO_C" >&6
5194 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197   case $MAGIC_CMD in
5198 [\\/*] |  ?:[\\/]*)
5199   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5200   ;;
5201 *)
5202   lt_save_MAGIC_CMD="$MAGIC_CMD"
5203   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5204   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5205   for ac_dir in $ac_dummy; do
5206     IFS="$lt_save_ifs"
5207     test -z "$ac_dir" && ac_dir=.
5208     if test -f $ac_dir/file; then
5209       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5210       if test -n "$file_magic_test_file"; then
5211         case $deplibs_check_method in
5212         "file_magic "*)
5213           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5214           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5215           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5216             $EGREP "$file_magic_regex" > /dev/null; then
5217             :
5218           else
5219             cat <<EOF 1>&2
5220
5221 *** Warning: the command libtool uses to detect shared libraries,
5222 *** $file_magic_cmd, produces output that libtool cannot recognize.
5223 *** The result is that libtool may fail to recognize shared libraries
5224 *** as such.  This will affect the creation of libtool libraries that
5225 *** depend on shared libraries, but programs linked with such libtool
5226 *** libraries will work regardless of this problem.  Nevertheless, you
5227 *** may want to report the problem to your system manager and/or to
5228 *** bug-libtool@gnu.org
5229
5230 EOF
5231           fi ;;
5232         esac
5233       fi
5234       break
5235     fi
5236   done
5237   IFS="$lt_save_ifs"
5238   MAGIC_CMD="$lt_save_MAGIC_CMD"
5239   ;;
5240 esac
5241 fi
5242
5243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5244 if test -n "$MAGIC_CMD"; then
5245   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5246 echo "${ECHO_T}$MAGIC_CMD" >&6
5247 else
5248   echo "$as_me:$LINENO: result: no" >&5
5249 echo "${ECHO_T}no" >&6
5250 fi
5251
5252   else
5253     MAGIC_CMD=:
5254   fi
5255 fi
5256
5257   fi
5258   ;;
5259 esac
5260
5261 enable_dlopen=no
5262 enable_win32_dll=no
5263
5264 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5265 if test "${enable_libtool_lock+set}" = set; then
5266   enableval="$enable_libtool_lock"
5267
5268 fi;
5269 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5270
5271
5272 # Check whether --with-pic or --without-pic was given.
5273 if test "${with_pic+set}" = set; then
5274   withval="$with_pic"
5275   pic_mode="$withval"
5276 else
5277   pic_mode=default
5278 fi;
5279 test -z "$pic_mode" && pic_mode=default
5280
5281 # Use C for the default configuration in the libtool script
5282 tagname=
5283 lt_save_CC="$CC"
5284 ac_ext=c
5285 ac_cpp='$CPP $CPPFLAGS'
5286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5289
5290
5291 # Source file extension for C test sources.
5292 ac_ext=c
5293
5294 # Object file extension for compiled C test sources.
5295 objext=o
5296 objext=$objext
5297
5298 # Code to be used in simple compile tests
5299 lt_simple_compile_test_code="int some_variable = 0;\n"
5300
5301 # Code to be used in simple link tests
5302 lt_simple_link_test_code='int main(){return(0);}\n'
5303
5304
5305 # If no C compiler was specified, use CC.
5306 LTCC=${LTCC-"$CC"}
5307
5308 # Allow CC to be a program name with arguments.
5309 compiler=$CC
5310
5311
5312 #
5313 # Check for any special shared library compilation flags.
5314 #
5315 lt_prog_cc_shlib=
5316 if test "$GCC" = no; then
5317   case $host_os in
5318   sco3.2v5*)
5319     lt_prog_cc_shlib='-belf'
5320     ;;
5321   esac
5322 fi
5323 if test -n "$lt_prog_cc_shlib"; then
5324   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5325 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5326   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5327   else
5328     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5329 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5330     lt_cv_prog_cc_can_build_shared=no
5331   fi
5332 fi
5333
5334
5335 #
5336 # Check to make sure the static flag actually works.
5337 #
5338 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5339 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5340 if test "${lt_prog_compiler_static_works+set}" = set; then
5341   echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343   lt_prog_compiler_static_works=no
5344    save_LDFLAGS="$LDFLAGS"
5345    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5346    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5347    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5348      # The compiler can only warn and ignore the option if not recognized
5349      # So say no if there are warnings
5350      if test -s conftest.err; then
5351        # Append any errors to the config.log.
5352        cat conftest.err 1>&5
5353      else
5354        lt_prog_compiler_static_works=yes
5355      fi
5356    fi
5357    $rm conftest*
5358    LDFLAGS="$save_LDFLAGS"
5359
5360 fi
5361 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5362 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5363
5364 if test x"$lt_prog_compiler_static_works" = xyes; then
5365     :
5366 else
5367     lt_prog_compiler_static=
5368 fi
5369
5370
5371
5372 ## CAVEAT EMPTOR:
5373 ## There is no encapsulation within the following macros, do not change
5374 ## the running order or otherwise move them around unless you know exactly
5375 ## what you are doing...
5376
5377 lt_prog_compiler_no_builtin_flag=
5378
5379 if test "$GCC" = yes; then
5380   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5381
5382   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5383 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5384 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5385   echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387   lt_cv_prog_compiler_rtti_exceptions=no
5388   ac_outfile=conftest.$ac_objext
5389    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5390    lt_compiler_flag="-fno-rtti -fno-exceptions"
5391    # Insert the option either (1) after the last *FLAGS variable, or
5392    # (2) before a word containing "conftest.", or (3) at the end.
5393    # Note that $ac_compile itself does not contain backslashes and begins
5394    # with a dollar sign (not a hyphen), so the echo should work correctly.
5395    # The option is referenced via a variable to avoid confusing sed.
5396    lt_compile=`echo "$ac_compile" | $SED \
5397    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5398    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5399    -e 's:$: $lt_compiler_flag:'`
5400    (eval echo "\"\$as_me:5400: $lt_compile\"" >&5)
5401    (eval "$lt_compile" 2>conftest.err)
5402    ac_status=$?
5403    cat conftest.err >&5
5404    echo "$as_me:5404: \$? = $ac_status" >&5
5405    if (exit $ac_status) && test -s "$ac_outfile"; then
5406      # The compiler can only warn and ignore the option if not recognized
5407      # So say no if there are warnings
5408      if test ! -s conftest.err; then
5409        lt_cv_prog_compiler_rtti_exceptions=yes
5410      fi
5411    fi
5412    $rm conftest*
5413
5414 fi
5415 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5416 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5417
5418 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5419     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5420 else
5421     :
5422 fi
5423
5424 fi
5425
5426 lt_prog_compiler_wl=
5427 lt_prog_compiler_pic=
5428 lt_prog_compiler_static=
5429
5430 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5431 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5432
5433   if test "$GCC" = yes; then
5434     lt_prog_compiler_wl='-Wl,'
5435     lt_prog_compiler_static='-static'
5436
5437     case $host_os in
5438       aix*)
5439       # All AIX code is PIC.
5440       if test "$host_cpu" = ia64; then
5441         # AIX 5 now supports IA64 processor
5442         lt_prog_compiler_static='-Bstatic'
5443       fi
5444       ;;
5445
5446     amigaos*)
5447       # FIXME: we need at least 68020 code to build shared libraries, but
5448       # adding the `-m68020' flag to GCC prevents building anything better,
5449       # like `-m68040'.
5450       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5451       ;;
5452
5453     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5454       # PIC is the default for these OSes.
5455       ;;
5456
5457     mingw* | pw32* | os2*)
5458       # This hack is so that the source file can tell whether it is being
5459       # built for inclusion in a dll (and should export symbols for example).
5460       lt_prog_compiler_pic='-DDLL_EXPORT'
5461       ;;
5462
5463     darwin* | rhapsody*)
5464       # PIC is the default on this platform
5465       # Common symbols not allowed in MH_DYLIB files
5466       lt_prog_compiler_pic='-fno-common'
5467       ;;
5468
5469     msdosdjgpp*)
5470       # Just because we use GCC doesn't mean we suddenly get shared libraries
5471       # on systems that don't support them.
5472       lt_prog_compiler_can_build_shared=no
5473       enable_shared=no
5474       ;;
5475
5476     sysv4*MP*)
5477       if test -d /usr/nec; then
5478         lt_prog_compiler_pic=-Kconform_pic
5479       fi
5480       ;;
5481
5482     hpux*)
5483       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5484       # not for PA HP-UX.
5485       case "$host_cpu" in
5486       hppa*64*|ia64*)
5487         # +Z the default
5488         ;;
5489       *)
5490         lt_prog_compiler_pic='-fPIC'
5491         ;;
5492       esac
5493       ;;
5494
5495     *)
5496       lt_prog_compiler_pic='-fPIC'
5497       ;;
5498     esac
5499   else
5500     # PORTME Check for flag to pass linker flags through the system compiler.
5501     case $host_os in
5502     aix*)
5503       lt_prog_compiler_wl='-Wl,'
5504       if test "$host_cpu" = ia64; then
5505         # AIX 5 now supports IA64 processor
5506         lt_prog_compiler_static='-Bstatic'
5507       else
5508         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5509       fi
5510       ;;
5511
5512     mingw* | pw32* | os2*)
5513       # This hack is so that the source file can tell whether it is being
5514       # built for inclusion in a dll (and should export symbols for example).
5515       lt_prog_compiler_pic='-DDLL_EXPORT'
5516       ;;
5517
5518     hpux9* | hpux10* | hpux11*)
5519       lt_prog_compiler_wl='-Wl,'
5520       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5521       # not for PA HP-UX.
5522       case "$host_cpu" in
5523       hppa*64*|ia64*)
5524         # +Z the default
5525         ;;
5526       *)
5527         lt_prog_compiler_pic='+Z'
5528         ;;
5529       esac
5530       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5531       lt_prog_compiler_static='${wl}-a ${wl}archive'
5532       ;;
5533
5534     irix5* | irix6* | nonstopux*)
5535       lt_prog_compiler_wl='-Wl,'
5536       # PIC (with -KPIC) is the default.
5537       lt_prog_compiler_static='-non_shared'
5538       ;;
5539
5540     newsos6)
5541       lt_prog_compiler_pic='-KPIC'
5542       lt_prog_compiler_static='-Bstatic'
5543       ;;
5544
5545     linux*)
5546       case $CC in
5547       icc|ecc)
5548         lt_prog_compiler_wl='-Wl,'
5549         lt_prog_compiler_pic='-KPIC'
5550         lt_prog_compiler_static='-static'
5551         ;;
5552       ccc)
5553         lt_prog_compiler_wl='-Wl,'
5554         # All Alpha code is PIC.
5555         lt_prog_compiler_static='-non_shared'
5556         ;;
5557       esac
5558       ;;
5559
5560     osf3* | osf4* | osf5*)
5561       lt_prog_compiler_wl='-Wl,'
5562       # All OSF/1 code is PIC.
5563       lt_prog_compiler_static='-non_shared'
5564       ;;
5565
5566     sco3.2v5*)
5567       lt_prog_compiler_pic='-Kpic'
5568       lt_prog_compiler_static='-dn'
5569       ;;
5570
5571     solaris*)
5572       lt_prog_compiler_wl='-Wl,'
5573       lt_prog_compiler_pic='-KPIC'
5574       lt_prog_compiler_static='-Bstatic'
5575       ;;
5576
5577     sunos4*)
5578       lt_prog_compiler_wl='-Qoption ld '
5579       lt_prog_compiler_pic='-PIC'
5580       lt_prog_compiler_static='-Bstatic'
5581       ;;
5582
5583     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5584       lt_prog_compiler_wl='-Wl,'
5585       lt_prog_compiler_pic='-KPIC'
5586       lt_prog_compiler_static='-Bstatic'
5587       ;;
5588
5589     sysv4*MP*)
5590       if test -d /usr/nec ;then
5591         lt_prog_compiler_pic='-Kconform_pic'
5592         lt_prog_compiler_static='-Bstatic'
5593       fi
5594       ;;
5595
5596     uts4*)
5597       lt_prog_compiler_pic='-pic'
5598       lt_prog_compiler_static='-Bstatic'
5599       ;;
5600
5601     *)
5602       lt_prog_compiler_can_build_shared=no
5603       ;;
5604     esac
5605   fi
5606
5607 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5608 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5609
5610 #
5611 # Check to make sure the PIC flag actually works.
5612 #
5613 if test -n "$lt_prog_compiler_pic"; then
5614   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5615 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5616 if test "${lt_prog_compiler_pic_works+set}" = set; then
5617   echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619   lt_prog_compiler_pic_works=no
5620   ac_outfile=conftest.$ac_objext
5621    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5622    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5623    # Insert the option either (1) after the last *FLAGS variable, or
5624    # (2) before a word containing "conftest.", or (3) at the end.
5625    # Note that $ac_compile itself does not contain backslashes and begins
5626    # with a dollar sign (not a hyphen), so the echo should work correctly.
5627    # The option is referenced via a variable to avoid confusing sed.
5628    lt_compile=`echo "$ac_compile" | $SED \
5629    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5630    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5631    -e 's:$: $lt_compiler_flag:'`
5632    (eval echo "\"\$as_me:5632: $lt_compile\"" >&5)
5633    (eval "$lt_compile" 2>conftest.err)
5634    ac_status=$?
5635    cat conftest.err >&5
5636    echo "$as_me:5636: \$? = $ac_status" >&5
5637    if (exit $ac_status) && test -s "$ac_outfile"; then
5638      # The compiler can only warn and ignore the option if not recognized
5639      # So say no if there are warnings
5640      if test ! -s conftest.err; then
5641        lt_prog_compiler_pic_works=yes
5642      fi
5643    fi
5644    $rm conftest*
5645
5646 fi
5647 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5648 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5649
5650 if test x"$lt_prog_compiler_pic_works" = xyes; then
5651     case $lt_prog_compiler_pic in
5652      "" | " "*) ;;
5653      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5654      esac
5655 else
5656     lt_prog_compiler_pic=
5657      lt_prog_compiler_can_build_shared=no
5658 fi
5659
5660 fi
5661 case "$host_os" in
5662   # For platforms which do not support PIC, -DPIC is meaningless:
5663   *djgpp*)
5664     lt_prog_compiler_pic=
5665     ;;
5666   *)
5667     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5668     ;;
5669 esac
5670
5671 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5672 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5673 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5674   echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676   lt_cv_prog_compiler_c_o=no
5677    $rm -r conftest 2>/dev/null
5678    mkdir conftest
5679    cd conftest
5680    mkdir out
5681    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5682
5683    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5684    # that will create temporary files in the current directory regardless of
5685    # the output directory.  Thus, making CWD read-only will cause this test
5686    # to fail, enabling locking or at least warning the user not to do parallel
5687    # builds.
5688    chmod -w .
5689
5690    lt_compiler_flag="-o out/conftest2.$ac_objext"
5691    # Insert the option either (1) after the last *FLAGS variable, or
5692    # (2) before a word containing "conftest.", or (3) at the end.
5693    # Note that $ac_compile itself does not contain backslashes and begins
5694    # with a dollar sign (not a hyphen), so the echo should work correctly.
5695    lt_compile=`echo "$ac_compile" | $SED \
5696    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5697    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5698    -e 's:$: $lt_compiler_flag:'`
5699    (eval echo "\"\$as_me:5699: $lt_compile\"" >&5)
5700    (eval "$lt_compile" 2>out/conftest.err)
5701    ac_status=$?
5702    cat out/conftest.err >&5
5703    echo "$as_me:5703: \$? = $ac_status" >&5
5704    if (exit $ac_status) && test -s out/conftest2.$ac_objext
5705    then
5706      # The compiler can only warn and ignore the option if not recognized
5707      # So say no if there are warnings
5708      if test ! -s out/conftest.err; then
5709        lt_cv_prog_compiler_c_o=yes
5710      fi
5711    fi
5712    chmod u+w .
5713    $rm conftest* out/*
5714    rmdir out
5715    cd ..
5716    rmdir conftest
5717    $rm conftest*
5718
5719 fi
5720 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
5721 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
5722
5723
5724 hard_links="nottested"
5725 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
5726   # do not overwrite the value of need_locks provided by the user
5727   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5728 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5729   hard_links=yes
5730   $rm conftest*
5731   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5732   touch conftest.a
5733   ln conftest.a conftest.b 2>&5 || hard_links=no
5734   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5735   echo "$as_me:$LINENO: result: $hard_links" >&5
5736 echo "${ECHO_T}$hard_links" >&6
5737   if test "$hard_links" = no; then
5738     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5739 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5740     need_locks=warn
5741   fi
5742 else
5743   need_locks=no
5744 fi
5745
5746 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
5747 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
5748
5749   runpath_var=
5750   allow_undefined_flag=
5751   enable_shared_with_static_runtimes=no
5752   archive_cmds=
5753   archive_expsym_cmds=
5754   old_archive_From_new_cmds=
5755   old_archive_from_expsyms_cmds=
5756   export_dynamic_flag_spec=
5757   whole_archive_flag_spec=
5758   thread_safe_flag_spec=
5759   hardcode_libdir_flag_spec=
5760   hardcode_libdir_flag_spec_ld=
5761   hardcode_libdir_separator=
5762   hardcode_direct=no
5763   hardcode_minus_L=no
5764   hardcode_shlibpath_var=unsupported
5765   link_all_deplibs=unknown
5766   hardcode_automatic=no
5767   module_cmds=
5768   module_expsym_cmds=
5769   always_export_symbols=no
5770   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5771   # include_expsyms should be a list of space-separated symbols to be *always*
5772   # included in the symbol list
5773   include_expsyms=
5774   # exclude_expsyms can be an extended regexp of symbols to exclude
5775   # it will be wrapped by ` (' and `)$', so one must not match beginning or
5776   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5777   # as well as any symbol that contains `d'.
5778   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5779   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5780   # platforms (ab)use it in PIC code, but their linkers get confused if
5781   # the symbol is explicitly referenced.  Since portable code cannot
5782   # rely on this symbol name, it's probably fine to never include it in
5783   # preloaded symbol tables.
5784   extract_expsyms_cmds=
5785
5786   case $host_os in
5787   cygwin* | mingw* | pw32*)
5788     # FIXME: the MSVC++ port hasn't been tested in a loooong time
5789     # When not using gcc, we currently assume that we are using
5790     # Microsoft Visual C++.
5791     if test "$GCC" != yes; then
5792       with_gnu_ld=no
5793     fi
5794     ;;
5795   openbsd*)
5796     with_gnu_ld=no
5797     ;;
5798   esac
5799
5800   ld_shlibs=yes
5801   if test "$with_gnu_ld" = yes; then
5802     # If archive_cmds runs LD, not CC, wlarc should be empty
5803     wlarc='${wl}'
5804
5805     # See if GNU ld supports shared libraries.
5806     case $host_os in
5807     aix3* | aix4* | aix5*)
5808       # On AIX/PPC, the GNU linker is very broken
5809       if test "$host_cpu" != ia64; then
5810         ld_shlibs=no
5811         cat <<EOF 1>&2
5812
5813 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5814 *** to be unable to reliably create shared libraries on AIX.
5815 *** Therefore, libtool is disabling shared libraries support.  If you
5816 *** really care for shared libraries, you may want to modify your PATH
5817 *** so that a non-GNU linker is found, and then restart.
5818
5819 EOF
5820       fi
5821       ;;
5822
5823     amigaos*)
5824       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)'
5825       hardcode_libdir_flag_spec='-L$libdir'
5826       hardcode_minus_L=yes
5827
5828       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5829       # that the semantics of dynamic libraries on AmigaOS, at least up
5830       # to version 4, is to share data among multiple programs linked
5831       # with the same dynamic library.  Since this doesn't match the
5832       # behavior of shared libraries on other platforms, we can't use
5833       # them.
5834       ld_shlibs=no
5835       ;;
5836
5837     beos*)
5838       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5839         allow_undefined_flag=unsupported
5840         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5841         # support --undefined.  This deserves some investigation.  FIXME
5842         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5843       else
5844         ld_shlibs=no
5845       fi
5846       ;;
5847
5848     cygwin* | mingw* | pw32*)
5849       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
5850       # as there is no search path for DLLs.
5851       hardcode_libdir_flag_spec='-L$libdir'
5852       allow_undefined_flag=unsupported
5853       always_export_symbols=no
5854       enable_shared_with_static_runtimes=yes
5855       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
5856
5857       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5858         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5859         # If the export-symbols file already is a .def file (1st line
5860         # is EXPORTS), use it as is; otherwise, prepend...
5861         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5862           cp $export_symbols $output_objdir/$soname.def;
5863         else
5864           echo EXPORTS > $output_objdir/$soname.def;
5865           cat $export_symbols >> $output_objdir/$soname.def;
5866         fi~
5867         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
5868       else
5869         ld_shlibs=no
5870       fi
5871       ;;
5872
5873     netbsd*)
5874       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5875         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5876         wlarc=
5877       else
5878         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5879         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5880       fi
5881       ;;
5882
5883     solaris* | sysv5*)
5884       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5885         ld_shlibs=no
5886         cat <<EOF 1>&2
5887
5888 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5889 *** create shared libraries on Solaris systems.  Therefore, libtool
5890 *** is disabling shared libraries support.  We urge you to upgrade GNU
5891 *** binutils to release 2.9.1 or newer.  Another option is to modify
5892 *** your PATH or compiler configuration so that the native linker is
5893 *** used, and then restart.
5894
5895 EOF
5896       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5897         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5898         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5899       else
5900         ld_shlibs=no
5901       fi
5902       ;;
5903
5904     sunos4*)
5905       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5906       wlarc=
5907       hardcode_direct=yes
5908       hardcode_shlibpath_var=no
5909       ;;
5910
5911     *)
5912       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5913         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5914         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5915       else
5916         ld_shlibs=no
5917       fi
5918       ;;
5919     esac
5920
5921     if test "$ld_shlibs" = yes; then
5922       runpath_var=LD_RUN_PATH
5923       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5924       export_dynamic_flag_spec='${wl}--export-dynamic'
5925       # ancient GNU ld didn't support --whole-archive et. al.
5926       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5927         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5928       else
5929         whole_archive_flag_spec=
5930       fi
5931     fi
5932   else
5933     # PORTME fill in a description of your system's linker (not GNU ld)
5934     case $host_os in
5935     aix3*)
5936       allow_undefined_flag=unsupported
5937       always_export_symbols=yes
5938       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'
5939       # Note: this linker hardcodes the directories in LIBPATH if there
5940       # are no directories specified by -L.
5941       hardcode_minus_L=yes
5942       if test "$GCC" = yes && test -z "$link_static_flag"; then
5943         # Neither direct hardcoding nor static linking is supported with a
5944         # broken collect2.
5945         hardcode_direct=unsupported
5946       fi
5947       ;;
5948
5949     aix4* | aix5*)
5950       if test "$host_cpu" = ia64; then
5951         # On IA64, the linker does run time linking by default, so we don't
5952         # have to do anything special.
5953         aix_use_runtimelinking=no
5954         exp_sym_flag='-Bexport'
5955         no_entry_flag=""
5956       else
5957         # If we're using GNU nm, then we don't want the "-C" option.
5958         # -C means demangle to AIX nm, but means don't demangle with GNU nm
5959         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5960           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'
5961         else
5962           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'
5963         fi
5964         aix_use_runtimelinking=no
5965
5966         # Test if we are trying to use run time linking or normal
5967         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5968         # need to do runtime linking.
5969         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5970           for ld_flag in $LDFLAGS; do
5971           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5972             aix_use_runtimelinking=yes
5973             break
5974           fi
5975           done
5976         esac
5977
5978         exp_sym_flag='-bexport'
5979         no_entry_flag='-bnoentry'
5980       fi
5981
5982       # When large executables or shared objects are built, AIX ld can
5983       # have problems creating the table of contents.  If linking a library
5984       # or program results in "error TOC overflow" add -mminimal-toc to
5985       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5986       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5987
5988       archive_cmds=''
5989       hardcode_direct=yes
5990       hardcode_libdir_separator=':'
5991       link_all_deplibs=yes
5992
5993       if test "$GCC" = yes; then
5994         case $host_os in aix4.012|aix4.012.*)
5995         # We only want to do this on AIX 4.2 and lower, the check
5996         # below for broken collect2 doesn't work under 4.3+
5997           collect2name=`${CC} -print-prog-name=collect2`
5998           if test -f "$collect2name" && \
5999            strings "$collect2name" | grep resolve_lib_name >/dev/null
6000           then
6001           # We have reworked collect2
6002           hardcode_direct=yes
6003           else
6004           # We have old collect2
6005           hardcode_direct=unsupported
6006           # It fails to find uninstalled libraries when the uninstalled
6007           # path is not listed in the libpath.  Setting hardcode_minus_L
6008           # to unsupported forces relinking
6009           hardcode_minus_L=yes
6010           hardcode_libdir_flag_spec='-L$libdir'
6011           hardcode_libdir_separator=
6012           fi
6013         esac
6014         shared_flag='-shared'
6015       else
6016         # not using gcc
6017         if test "$host_cpu" = ia64; then
6018         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6019         # chokes on -Wl,-G. The following line is correct:
6020           shared_flag='-G'
6021         else
6022         if test "$aix_use_runtimelinking" = yes; then
6023             shared_flag='${wl}-G'
6024           else
6025             shared_flag='${wl}-bM:SRE'
6026         fi
6027         fi
6028       fi
6029
6030       # It seems that -bexpall does not export symbols beginning with
6031       # underscore (_), so it is better to generate a list of symbols to export.
6032       always_export_symbols=yes
6033       if test "$aix_use_runtimelinking" = yes; then
6034         # Warning - without using the other runtime loading flags (-brtl),
6035         # -berok will link without error, but may produce a broken library.
6036         allow_undefined_flag='-berok'
6037        # Determine the default libpath from the value encoded in an empty executable.
6038        cat >conftest.$ac_ext <<_ACEOF
6039 #line $LINENO "configure"
6040 #include "confdefs.h"
6041
6042 #ifdef F77_DUMMY_MAIN
6043 #  ifdef __cplusplus
6044      extern "C"
6045 #  endif
6046    int F77_DUMMY_MAIN() { return 1; }
6047 #endif
6048 int
6049 main ()
6050 {
6051
6052   ;
6053   return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest.$ac_objext conftest$ac_exeext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058   (eval $ac_link) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); } &&
6062          { ac_try='test -s conftest$ac_exeext'
6063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064   (eval $ac_try) 2>&5
6065   ac_status=$?
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); }; }; then
6068
6069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6070 }'`
6071 # Check for a 64-bit object if we didn't find anything.
6072 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; }
6073 }'`; fi
6074 else
6075   echo "$as_me: failed program was:" >&5
6076 cat conftest.$ac_ext >&5
6077 fi
6078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6079 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6080
6081        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6082         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6083        else
6084         if test "$host_cpu" = ia64; then
6085           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6086           allow_undefined_flag="-z nodefs"
6087           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6088         else
6089          # Determine the default libpath from the value encoded in an empty executable.
6090          cat >conftest.$ac_ext <<_ACEOF
6091 #line $LINENO "configure"
6092 #include "confdefs.h"
6093
6094 #ifdef F77_DUMMY_MAIN
6095 #  ifdef __cplusplus
6096      extern "C"
6097 #  endif
6098    int F77_DUMMY_MAIN() { return 1; }
6099 #endif
6100 int
6101 main ()
6102 {
6103
6104   ;
6105   return 0;
6106 }
6107 _ACEOF
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110   (eval $ac_link) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } &&
6114          { ac_try='test -s conftest$ac_exeext'
6115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116   (eval $ac_try) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }; }; then
6120
6121 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6122 }'`
6123 # Check for a 64-bit object if we didn't find anything.
6124 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; }
6125 }'`; fi
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 cat conftest.$ac_ext >&5
6129 fi
6130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6131 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6132
6133          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6134           # Warning - without using the other run time loading flags,
6135           # -berok will link without error, but may produce a broken library.
6136           no_undefined_flag=' ${wl}-bernotok'
6137           allow_undefined_flag=' ${wl}-berok'
6138           # -bexpall does not export symbols beginning with underscore (_)
6139           always_export_symbols=yes
6140           # Exported symbols can be pulled into shared objects from archives
6141           whole_archive_flag_spec=' '
6142           archive_cmds_need_lc=yes
6143           # This is similar to how AIX traditionally builds it's shared libraries.
6144           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6145         fi
6146       fi
6147       ;;
6148
6149     amigaos*)
6150       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)'
6151       hardcode_libdir_flag_spec='-L$libdir'
6152       hardcode_minus_L=yes
6153       # see comment about different semantics on the GNU ld section
6154       ld_shlibs=no
6155       ;;
6156
6157     bsdi4*)
6158       export_dynamic_flag_spec=-rdynamic
6159       ;;
6160
6161     cygwin* | mingw* | pw32*)
6162       # When not using gcc, we currently assume that we are using
6163       # Microsoft Visual C++.
6164       # hardcode_libdir_flag_spec is actually meaningless, as there is
6165       # no search path for DLLs.
6166       hardcode_libdir_flag_spec=' '
6167       allow_undefined_flag=unsupported
6168       # Tell ltmain to make .lib files, not .a files.
6169       libext=lib
6170       # Tell ltmain to make .dll files, not .so files.
6171       shrext=".dll"
6172       # FIXME: Setting linknames here is a bad hack.
6173       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6174       # The linker will automatically build a .lib file if we build a DLL.
6175       old_archive_From_new_cmds='true'
6176       # FIXME: Should let the user specify the lib program.
6177       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6178       fix_srcfile_path='`cygpath -w "$srcfile"`'
6179       enable_shared_with_static_runtimes=yes
6180       ;;
6181
6182     darwin* | rhapsody*)
6183     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6184       archive_cmds_need_lc=no
6185       case "$host_os" in
6186       rhapsody* | darwin1.[012])
6187         allow_undefined_flag='-undefined suppress'
6188         ;;
6189       *) # Darwin 1.3 on
6190         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6191         ;;
6192       esac
6193       # FIXME: Relying on posixy $() will cause problems for
6194       #        cross-compilation, but unfortunately the echo tests do not
6195       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6196       #        `"' quotes if we put them in here... so don't!
6197         lt_int_apple_cc_single_mod=no
6198         output_verbose_link_cmd='echo'
6199         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6200           lt_int_apple_cc_single_mod=yes
6201         fi
6202         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6203           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6204         else
6205         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6206       fi
6207       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6208       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6209         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6210           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6211         else
6212           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6213         fi
6214           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6215       hardcode_direct=no
6216       hardcode_automatic=yes
6217       hardcode_shlibpath_var=unsupported
6218       whole_archive_flag_spec='-all_load $convenience'
6219       link_all_deplibs=yes
6220     fi
6221       ;;
6222
6223     dgux*)
6224       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6225       hardcode_libdir_flag_spec='-L$libdir'
6226       hardcode_shlibpath_var=no
6227       ;;
6228
6229     freebsd1*)
6230       ld_shlibs=no
6231       ;;
6232
6233     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6234     # support.  Future versions do this automatically, but an explicit c++rt0.o
6235     # does not break anything, and helps significantly (at the cost of a little
6236     # extra space).
6237     freebsd2.2*)
6238       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6239       hardcode_libdir_flag_spec='-R$libdir'
6240       hardcode_direct=yes
6241       hardcode_shlibpath_var=no
6242       ;;
6243
6244     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6245     freebsd2*)
6246       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6247       hardcode_direct=yes
6248       hardcode_minus_L=yes
6249       hardcode_shlibpath_var=no
6250       ;;
6251
6252     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6253     freebsd*)
6254       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6255       hardcode_libdir_flag_spec='-R$libdir'
6256       hardcode_direct=yes
6257       hardcode_shlibpath_var=no
6258       ;;
6259
6260     hpux9*)
6261       if test "$GCC" = yes; then
6262         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'
6263       else
6264         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'
6265       fi
6266       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6267       hardcode_libdir_separator=:
6268       hardcode_direct=yes
6269
6270       # hardcode_minus_L: Not really in the search PATH,
6271       # but as the default location of the library.
6272       hardcode_minus_L=yes
6273       export_dynamic_flag_spec='${wl}-E'
6274       ;;
6275
6276     hpux10* | hpux11*)
6277       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6278         case "$host_cpu" in
6279         hppa*64*|ia64*)
6280           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6281           ;;
6282         *)
6283           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6284           ;;
6285         esac
6286       else
6287         case "$host_cpu" in
6288         hppa*64*|ia64*)
6289           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6290           ;;
6291         *)
6292           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6293           ;;
6294         esac
6295       fi
6296       if test "$with_gnu_ld" = no; then
6297         case "$host_cpu" in
6298         hppa*64*)
6299           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6300           hardcode_libdir_flag_spec_ld='+b $libdir'
6301           hardcode_libdir_separator=:
6302           hardcode_direct=no
6303           hardcode_shlibpath_var=no
6304           ;;
6305         ia64*)
6306           hardcode_libdir_flag_spec='-L$libdir'
6307           hardcode_direct=no
6308           hardcode_shlibpath_var=no
6309
6310           # hardcode_minus_L: Not really in the search PATH,
6311           # but as the default location of the library.
6312           hardcode_minus_L=yes
6313           ;;
6314         *)
6315           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6316           hardcode_libdir_separator=:
6317           hardcode_direct=yes
6318           export_dynamic_flag_spec='${wl}-E'
6319
6320           # hardcode_minus_L: Not really in the search PATH,
6321           # but as the default location of the library.
6322           hardcode_minus_L=yes
6323           ;;
6324         esac
6325       fi
6326       ;;
6327
6328     irix5* | irix6* | nonstopux*)
6329       if test "$GCC" = yes; then
6330         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'
6331       else
6332         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'
6333         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6334       fi
6335       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6336       hardcode_libdir_separator=:
6337       link_all_deplibs=yes
6338       ;;
6339
6340     netbsd*)
6341       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6342         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6343       else
6344         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6345       fi
6346       hardcode_libdir_flag_spec='-R$libdir'
6347       hardcode_direct=yes
6348       hardcode_shlibpath_var=no
6349       ;;
6350
6351     newsos6)
6352       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6353       hardcode_direct=yes
6354       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6355       hardcode_libdir_separator=:
6356       hardcode_shlibpath_var=no
6357       ;;
6358
6359     openbsd*)
6360       hardcode_direct=yes
6361       hardcode_shlibpath_var=no
6362       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6363         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6364         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6365         export_dynamic_flag_spec='${wl}-E'
6366       else
6367        case $host_os in
6368          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6369            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6370            hardcode_libdir_flag_spec='-R$libdir'
6371            ;;
6372          *)
6373            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6374            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6375            ;;
6376        esac
6377       fi
6378       ;;
6379
6380     os2*)
6381       hardcode_libdir_flag_spec='-L$libdir'
6382       hardcode_minus_L=yes
6383       allow_undefined_flag=unsupported
6384       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'
6385       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6386       ;;
6387
6388     osf3*)
6389       if test "$GCC" = yes; then
6390         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6391         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'
6392       else
6393         allow_undefined_flag=' -expect_unresolved \*'
6394         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'
6395       fi
6396       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6397       hardcode_libdir_separator=:
6398       ;;
6399
6400     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6401       if test "$GCC" = yes; then
6402         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6403         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'
6404         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6405       else
6406         allow_undefined_flag=' -expect_unresolved \*'
6407         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'
6408         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6409         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6410
6411         # Both c and cxx compiler support -rpath directly
6412         hardcode_libdir_flag_spec='-rpath $libdir'
6413       fi
6414       hardcode_libdir_separator=:
6415       ;;
6416
6417     sco3.2v5*)
6418       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6419       hardcode_shlibpath_var=no
6420       export_dynamic_flag_spec='${wl}-Bexport'
6421       runpath_var=LD_RUN_PATH
6422       hardcode_runpath_var=yes
6423       ;;
6424
6425     solaris*)
6426       no_undefined_flag=' -z text'
6427       if test "$GCC" = yes; then
6428         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6429         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6430           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6431       else
6432         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6433         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6434         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6435       fi
6436       hardcode_libdir_flag_spec='-R$libdir'
6437       hardcode_shlibpath_var=no
6438       case $host_os in
6439       solaris2.[0-5] | solaris2.[0-5].*) ;;
6440       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6441         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6442       esac
6443       link_all_deplibs=yes
6444       ;;
6445
6446     sunos4*)
6447       if test "x$host_vendor" = xsequent; then
6448         # Use $CC to link under sequent, because it throws in some extra .o
6449         # files that make .init and .fini sections work.
6450         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6451       else
6452         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6453       fi
6454       hardcode_libdir_flag_spec='-L$libdir'
6455       hardcode_direct=yes
6456       hardcode_minus_L=yes
6457       hardcode_shlibpath_var=no
6458       ;;
6459
6460     sysv4)
6461       case $host_vendor in
6462         sni)
6463           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6464           hardcode_direct=yes # is this really true???
6465         ;;
6466         siemens)
6467           ## LD is ld it makes a PLAMLIB
6468           ## CC just makes a GrossModule.
6469           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6470           reload_cmds='$CC -r -o $output$reload_objs'
6471           hardcode_direct=no
6472         ;;
6473         motorola)
6474           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6475           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6476         ;;
6477       esac
6478       runpath_var='LD_RUN_PATH'
6479       hardcode_shlibpath_var=no
6480       ;;
6481
6482     sysv4.3*)
6483       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6484       hardcode_shlibpath_var=no
6485       export_dynamic_flag_spec='-Bexport'
6486       ;;
6487
6488     sysv4*MP*)
6489       if test -d /usr/nec; then
6490         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6491         hardcode_shlibpath_var=no
6492         runpath_var=LD_RUN_PATH
6493         hardcode_runpath_var=yes
6494         ld_shlibs=yes
6495       fi
6496       ;;
6497
6498     sysv4.2uw2*)
6499       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6500       hardcode_direct=yes
6501       hardcode_minus_L=no
6502       hardcode_shlibpath_var=no
6503       hardcode_runpath_var=yes
6504       runpath_var=LD_RUN_PATH
6505       ;;
6506
6507    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
6508       no_undefined_flag='${wl}-z ${wl}text'
6509       if test "$GCC" = yes; then
6510         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6511       else
6512         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6513       fi
6514       runpath_var='LD_RUN_PATH'
6515       hardcode_shlibpath_var=no
6516       ;;
6517
6518     sysv5*)
6519       no_undefined_flag=' -z text'
6520       # $CC -shared without GNU ld will not create a library from C++
6521       # object files and a static libstdc++, better avoid it by now
6522       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6523       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6524                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6525       hardcode_libdir_flag_spec=
6526       hardcode_shlibpath_var=no
6527       runpath_var='LD_RUN_PATH'
6528       ;;
6529
6530     uts4*)
6531       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6532       hardcode_libdir_flag_spec='-L$libdir'
6533       hardcode_shlibpath_var=no
6534       ;;
6535
6536     *)
6537       ld_shlibs=no
6538       ;;
6539     esac
6540   fi
6541
6542 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6543 echo "${ECHO_T}$ld_shlibs" >&6
6544 test "$ld_shlibs" = no && can_build_shared=no
6545
6546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6547 if test "$GCC" = yes; then
6548   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6549 fi
6550
6551 #
6552 # Do we need to explicitly link libc?
6553 #
6554 case "x$archive_cmds_need_lc" in
6555 x|xyes)
6556   # Assume -lc should be added
6557   archive_cmds_need_lc=yes
6558
6559   if test "$enable_shared" = yes && test "$GCC" = yes; then
6560     case $archive_cmds in
6561     *'~'*)
6562       # FIXME: we may have to deal with multi-command sequences.
6563       ;;
6564     '$CC '*)
6565       # Test whether the compiler implicitly links with -lc since on some
6566       # systems, -lgcc has to come before -lc. If gcc already passes -lc
6567       # to ld, don't add -lc before -lgcc.
6568       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6569 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6570       $rm conftest*
6571       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6572
6573       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6574   (eval $ac_compile) 2>&5
6575   ac_status=$?
6576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577   (exit $ac_status); } 2>conftest.err; then
6578         soname=conftest
6579         lib=conftest
6580         libobjs=conftest.$ac_objext
6581         deplibs=
6582         wl=$lt_prog_compiler_wl
6583         compiler_flags=-v
6584         linker_flags=-v
6585         verstring=
6586         output_objdir=.
6587         libname=conftest
6588         lt_save_allow_undefined_flag=$allow_undefined_flag
6589         allow_undefined_flag=
6590         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6591   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6592   ac_status=$?
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); }
6595         then
6596           archive_cmds_need_lc=no
6597         else
6598           archive_cmds_need_lc=yes
6599         fi
6600         allow_undefined_flag=$lt_save_allow_undefined_flag
6601       else
6602         cat conftest.err 1>&5
6603       fi
6604       $rm conftest*
6605       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6606 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6607       ;;
6608     esac
6609   fi
6610   ;;
6611 esac
6612
6613 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6614 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6615 hardcode_action=
6616 if test -n "$hardcode_libdir_flag_spec" || \
6617    test -n "$runpath_var " || \
6618    test "X$hardcode_automatic"="Xyes" ; then
6619
6620   # We can hardcode non-existant directories.
6621   if test "$hardcode_direct" != no &&
6622      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6623      # have to relink, otherwise we might link with an installed library
6624      # when we should be linking with a yet-to-be-installed one
6625      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
6626      test "$hardcode_minus_L" != no; then
6627     # Linking always hardcodes the temporary library directory.
6628     hardcode_action=relink
6629   else
6630     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6631     hardcode_action=immediate
6632   fi
6633 else
6634   # We cannot hardcode anything, or else we can only hardcode existing
6635   # directories.
6636   hardcode_action=unsupported
6637 fi
6638 echo "$as_me:$LINENO: result: $hardcode_action" >&5
6639 echo "${ECHO_T}$hardcode_action" >&6
6640
6641 if test "$hardcode_action" = relink; then
6642   # Fast installation is not supported
6643   enable_fast_install=no
6644 elif test "$shlibpath_overrides_runpath" = yes ||
6645      test "$enable_shared" = no; then
6646   # Fast installation is not necessary
6647   enable_fast_install=needless
6648 fi
6649
6650 striplib=
6651 old_striplib=
6652 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6653 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6654 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6655   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6656   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6657   echo "$as_me:$LINENO: result: yes" >&5
6658 echo "${ECHO_T}yes" >&6
6659 else
6660 # FIXME - insert some real tests, host_os isn't really good enough
6661   case $host_os in
6662    darwin*)
6663        if test -n "$STRIP" ; then
6664          striplib="$STRIP -x"
6665          echo "$as_me:$LINENO: result: yes" >&5
6666 echo "${ECHO_T}yes" >&6
6667        else
6668   echo "$as_me:$LINENO: result: no" >&5
6669 echo "${ECHO_T}no" >&6
6670 fi
6671        ;;
6672    *)
6673   echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6
6675     ;;
6676   esac
6677 fi
6678
6679 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6680 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6681 library_names_spec=
6682 libname_spec='lib$name'
6683 soname_spec=
6684 shrext=".so"
6685 postinstall_cmds=
6686 postuninstall_cmds=
6687 finish_cmds=
6688 finish_eval=
6689 shlibpath_var=
6690 shlibpath_overrides_runpath=unknown
6691 version_type=none
6692 dynamic_linker="$host_os ld.so"
6693 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6694 if test "$GCC" = yes; then
6695   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6696   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6697     # if the path contains ";" then we assume it to be the separator
6698     # otherwise default to the standard path separator (i.e. ":") - it is
6699     # assumed that no part of a normal pathname contains ";" but that should
6700     # okay in the real world where ";" in dirpaths is itself problematic.
6701     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6702   else
6703     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6704   fi
6705 else
6706   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6707 fi
6708 need_lib_prefix=unknown
6709 hardcode_into_libs=no
6710
6711 # when you set need_version to no, make sure it does not cause -set_version
6712 # flags to be left without arguments
6713 need_version=unknown
6714
6715 case $host_os in
6716 aix3*)
6717   version_type=linux
6718   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6719   shlibpath_var=LIBPATH
6720
6721   # AIX 3 has no versioning support, so we append a major version to the name.
6722   soname_spec='${libname}${release}${shared_ext}$major'
6723   ;;
6724
6725 aix4* | aix5*)
6726   version_type=linux
6727   need_lib_prefix=no
6728   need_version=no
6729   hardcode_into_libs=yes
6730   if test "$host_cpu" = ia64; then
6731     # AIX 5 supports IA64
6732     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6733     shlibpath_var=LD_LIBRARY_PATH
6734   else
6735     # With GCC up to 2.95.x, collect2 would create an import file
6736     # for dependence libraries.  The import file would start with
6737     # the line `#! .'.  This would cause the generated library to
6738     # depend on `.', always an invalid library.  This was fixed in
6739     # development snapshots of GCC prior to 3.0.
6740     case $host_os in
6741       aix4 | aix4.[01] | aix4.[01].*)
6742       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6743            echo ' yes '
6744            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6745         :
6746       else
6747         can_build_shared=no
6748       fi
6749       ;;
6750     esac
6751     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6752     # soname into executable. Probably we can add versioning support to
6753     # collect2, so additional links can be useful in future.
6754     if test "$aix_use_runtimelinking" = yes; then
6755       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6756       # instead of lib<name>.a to let people know that these are not
6757       # typical AIX shared libraries.
6758       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6759     else
6760       # We preserve .a as extension for shared libraries through AIX4.2
6761       # and later when we are not doing run time linking.
6762       library_names_spec='${libname}${release}.a $libname.a'
6763       soname_spec='${libname}${release}${shared_ext}$major'
6764     fi
6765     shlibpath_var=LIBPATH
6766   fi
6767   ;;
6768
6769 amigaos*)
6770   library_names_spec='$libname.ixlibrary $libname.a'
6771   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6772   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'
6773   ;;
6774
6775 beos*)
6776   library_names_spec='${libname}${shared_ext}'
6777   dynamic_linker="$host_os ld.so"
6778   shlibpath_var=LIBRARY_PATH
6779   ;;
6780
6781 bsdi4*)
6782   version_type=linux
6783   need_version=no
6784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6785   soname_spec='${libname}${release}${shared_ext}$major'
6786   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6787   shlibpath_var=LD_LIBRARY_PATH
6788   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6789   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6790   # the default ld.so.conf also contains /usr/contrib/lib and
6791   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6792   # libtool to hard-code these into programs
6793   ;;
6794
6795 cygwin* | mingw* | pw32*)
6796   version_type=windows
6797   shrext=".dll"
6798   need_version=no
6799   need_lib_prefix=no
6800
6801   case $GCC,$host_os in
6802   yes,cygwin* | yes,mingw* | yes,pw32*)
6803     library_names_spec='$libname.dll.a'
6804     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6805     postinstall_cmds='base_file=`basename \${file}`~
6806       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6807       dldir=$destdir/`dirname \$dlpath`~
6808       test -d \$dldir || mkdir -p \$dldir~
6809       $install_prog $dir/$dlname \$dldir/$dlname'
6810     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6811       dlpath=$dir/\$dldll~
6812        $rm \$dlpath'
6813     shlibpath_overrides_runpath=yes
6814
6815     case $host_os in
6816     cygwin*)
6817       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6818       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6819       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6820       ;;
6821     mingw*)
6822       # MinGW DLLs use traditional 'lib' prefix
6823       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6824       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6825       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6826         # It is most probably a Windows format PATH printed by
6827         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6828         # path with ; separators, and with drive letters. We can handle the
6829         # drive letters (cygwin fileutils understands them), so leave them,
6830         # especially as we might pass files found there to a mingw objdump,
6831         # which wouldn't understand a cygwinified path. Ahh.
6832         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6833       else
6834         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
6835       fi
6836       ;;
6837     pw32*)
6838       # pw32 DLLs use 'pw' prefix rather than 'lib'
6839       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6840       ;;
6841     esac
6842     ;;
6843
6844   *)
6845     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6846     ;;
6847   esac
6848   dynamic_linker='Win32 ld.exe'
6849   # FIXME: first we should search . and the directory the executable is in
6850   shlibpath_var=PATH
6851   ;;
6852
6853 darwin* | rhapsody*)
6854   dynamic_linker="$host_os dyld"
6855   version_type=darwin
6856   need_lib_prefix=no
6857   need_version=no
6858   # FIXME: Relying on posixy $() will cause problems for
6859   #        cross-compilation, but unfortunately the echo tests do not
6860   #        yet detect zsh echo's removal of \ escapes.
6861   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6862   soname_spec='${libname}${release}${major}$shared_ext'
6863   shlibpath_overrides_runpath=yes
6864   shlibpath_var=DYLD_LIBRARY_PATH
6865   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6866   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6867   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6868   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"`
6869   fi
6870   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6871   ;;
6872
6873 dgux*)
6874   version_type=linux
6875   need_lib_prefix=no
6876   need_version=no
6877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6878   soname_spec='${libname}${release}${shared_ext}$major'
6879   shlibpath_var=LD_LIBRARY_PATH
6880   ;;
6881
6882 freebsd1*)
6883   dynamic_linker=no
6884   ;;
6885
6886 freebsd*)
6887   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6888   version_type=freebsd-$objformat
6889   case $version_type in
6890     freebsd-elf*)
6891       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6892       need_version=no
6893       need_lib_prefix=no
6894       ;;
6895     freebsd-*)
6896       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6897       need_version=yes
6898       ;;
6899   esac
6900   shlibpath_var=LD_LIBRARY_PATH
6901   case $host_os in
6902   freebsd2*)
6903     shlibpath_overrides_runpath=yes
6904     ;;
6905   freebsd3.01* | freebsdelf3.01*)
6906     shlibpath_overrides_runpath=yes
6907     hardcode_into_libs=yes
6908     ;;
6909   *) # from 3.2 on
6910     shlibpath_overrides_runpath=no
6911     hardcode_into_libs=yes
6912     ;;
6913   esac
6914   ;;
6915
6916 gnu*)
6917   version_type=linux
6918   need_lib_prefix=no
6919   need_version=no
6920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6921   soname_spec='${libname}${release}${shared_ext}$major'
6922   shlibpath_var=LD_LIBRARY_PATH
6923   hardcode_into_libs=yes
6924   ;;
6925
6926 hpux9* | hpux10* | hpux11*)
6927   # Give a soname corresponding to the major version so that dld.sl refuses to
6928   # link against other versions.
6929   version_type=sunos
6930   need_lib_prefix=no
6931   need_version=no
6932   case "$host_cpu" in
6933   ia64*)
6934     shrext='.so'
6935     hardcode_into_libs=yes
6936     dynamic_linker="$host_os dld.so"
6937     shlibpath_var=LD_LIBRARY_PATH
6938     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6939     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6940     soname_spec='${libname}${release}${shared_ext}$major'
6941     if test "X$HPUX_IA64_MODE" = X32; then
6942       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6943     else
6944       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6945     fi
6946     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6947     ;;
6948    hppa*64*)
6949      shrext='.sl'
6950      hardcode_into_libs=yes
6951      dynamic_linker="$host_os dld.sl"
6952      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6953      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6954      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6955      soname_spec='${libname}${release}${shared_ext}$major'
6956      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6957      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6958      ;;
6959    *)
6960     shrext='.sl'
6961     dynamic_linker="$host_os dld.sl"
6962     shlibpath_var=SHLIB_PATH
6963     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6965     soname_spec='${libname}${release}${shared_ext}$major'
6966     ;;
6967   esac
6968   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6969   postinstall_cmds='chmod 555 $lib'
6970   ;;
6971
6972 irix5* | irix6* | nonstopux*)
6973   case $host_os in
6974     nonstopux*) version_type=nonstopux ;;
6975     *)
6976         if test "$lt_cv_prog_gnu_ld" = yes; then
6977                 version_type=linux
6978         else
6979                 version_type=irix
6980         fi ;;
6981   esac
6982   need_lib_prefix=no
6983   need_version=no
6984   soname_spec='${libname}${release}${shared_ext}$major'
6985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6986   case $host_os in
6987   irix5* | nonstopux*)
6988     libsuff= shlibsuff=
6989     ;;
6990   *)
6991     case $LD in # libtool.m4 will add one of these switches to LD
6992     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6993       libsuff= shlibsuff= libmagic=32-bit;;
6994     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6995       libsuff=32 shlibsuff=N32 libmagic=N32;;
6996     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6997       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6998     *) libsuff= shlibsuff= libmagic=never-match;;
6999     esac
7000     ;;
7001   esac
7002   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7003   shlibpath_overrides_runpath=no
7004   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7005   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7006   hardcode_into_libs=yes
7007   ;;
7008
7009 # No shared lib support for Linux oldld, aout, or coff.
7010 linux*oldld* | linux*aout* | linux*coff*)
7011   dynamic_linker=no
7012   ;;
7013
7014 # This must be Linux ELF.
7015 linux*)
7016   version_type=linux
7017   need_lib_prefix=no
7018   need_version=no
7019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7020   soname_spec='${libname}${release}${shared_ext}$major'
7021   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7022   shlibpath_var=LD_LIBRARY_PATH
7023   shlibpath_overrides_runpath=no
7024   # This implies no fast_install, which is unacceptable.
7025   # Some rework will be needed to allow for fast_install
7026   # before this can be enabled.
7027   hardcode_into_libs=yes
7028
7029   # We used to test for /lib/ld.so.1 and disable shared libraries on
7030   # powerpc, because MkLinux only supported shared libraries with the
7031   # GNU dynamic linker.  Since this was broken with cross compilers,
7032   # most powerpc-linux boxes support dynamic linking these days and
7033   # people can always --disable-shared, the test was removed, and we
7034   # assume the GNU/Linux dynamic linker is in use.
7035   dynamic_linker='GNU/Linux ld.so'
7036   ;;
7037
7038 netbsd*)
7039   version_type=sunos
7040   need_lib_prefix=no
7041   need_version=no
7042   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7044     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7045     dynamic_linker='NetBSD (a.out) ld.so'
7046   else
7047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7048     soname_spec='${libname}${release}${shared_ext}$major'
7049     dynamic_linker='NetBSD ld.elf_so'
7050   fi
7051   shlibpath_var=LD_LIBRARY_PATH
7052   shlibpath_overrides_runpath=yes
7053   hardcode_into_libs=yes
7054   ;;
7055
7056 newsos6)
7057   version_type=linux
7058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7059   shlibpath_var=LD_LIBRARY_PATH
7060   shlibpath_overrides_runpath=yes
7061   ;;
7062
7063 nto-qnx)
7064   version_type=linux
7065   need_lib_prefix=no
7066   need_version=no
7067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7068   soname_spec='${libname}${release}${shared_ext}$major'
7069   shlibpath_var=LD_LIBRARY_PATH
7070   shlibpath_overrides_runpath=yes
7071   ;;
7072
7073 openbsd*)
7074   version_type=sunos
7075   need_lib_prefix=no
7076   need_version=no
7077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7078   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7079   shlibpath_var=LD_LIBRARY_PATH
7080   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7081     case $host_os in
7082       openbsd2.[89] | openbsd2.[89].*)
7083         shlibpath_overrides_runpath=no
7084         ;;
7085       *)
7086         shlibpath_overrides_runpath=yes
7087         ;;
7088       esac
7089   else
7090     shlibpath_overrides_runpath=yes
7091   fi
7092   ;;
7093
7094 os2*)
7095   libname_spec='$name'
7096   shrext=".dll"
7097   need_lib_prefix=no
7098   library_names_spec='$libname${shared_ext} $libname.a'
7099   dynamic_linker='OS/2 ld.exe'
7100   shlibpath_var=LIBPATH
7101   ;;
7102
7103 osf3* | osf4* | osf5*)
7104   version_type=osf
7105   need_lib_prefix=no
7106   need_version=no
7107   soname_spec='${libname}${release}${shared_ext}$major'
7108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7109   shlibpath_var=LD_LIBRARY_PATH
7110   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7111   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7112   ;;
7113
7114 sco3.2v5*)
7115   version_type=osf
7116   soname_spec='${libname}${release}${shared_ext}$major'
7117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7118   shlibpath_var=LD_LIBRARY_PATH
7119   ;;
7120
7121 solaris*)
7122   version_type=linux
7123   need_lib_prefix=no
7124   need_version=no
7125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7126   soname_spec='${libname}${release}${shared_ext}$major'
7127   shlibpath_var=LD_LIBRARY_PATH
7128   shlibpath_overrides_runpath=yes
7129   hardcode_into_libs=yes
7130   # ldd complains unless libraries are executable
7131   postinstall_cmds='chmod +x $lib'
7132   ;;
7133
7134 sunos4*)
7135   version_type=sunos
7136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7137   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7138   shlibpath_var=LD_LIBRARY_PATH
7139   shlibpath_overrides_runpath=yes
7140   if test "$with_gnu_ld" = yes; then
7141     need_lib_prefix=no
7142   fi
7143   need_version=yes
7144   ;;
7145
7146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7147   version_type=linux
7148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7149   soname_spec='${libname}${release}${shared_ext}$major'
7150   shlibpath_var=LD_LIBRARY_PATH
7151   case $host_vendor in
7152     sni)
7153       shlibpath_overrides_runpath=no
7154       need_lib_prefix=no
7155       export_dynamic_flag_spec='${wl}-Blargedynsym'
7156       runpath_var=LD_RUN_PATH
7157       ;;
7158     siemens)
7159       need_lib_prefix=no
7160       ;;
7161     motorola)
7162       need_lib_prefix=no
7163       need_version=no
7164       shlibpath_overrides_runpath=no
7165       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7166       ;;
7167   esac
7168   ;;
7169
7170 sysv4*MP*)
7171   if test -d /usr/nec ;then
7172     version_type=linux
7173     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7174     soname_spec='$libname${shared_ext}.$major'
7175     shlibpath_var=LD_LIBRARY_PATH
7176   fi
7177   ;;
7178
7179 uts4*)
7180   version_type=linux
7181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7182   soname_spec='${libname}${release}${shared_ext}$major'
7183   shlibpath_var=LD_LIBRARY_PATH
7184   ;;
7185
7186 *)
7187   dynamic_linker=no
7188   ;;
7189 esac
7190 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7191 echo "${ECHO_T}$dynamic_linker" >&6
7192 test "$dynamic_linker" = no && can_build_shared=no
7193
7194 if test "x$enable_dlopen" != xyes; then
7195   enable_dlopen=unknown
7196   enable_dlopen_self=unknown
7197   enable_dlopen_self_static=unknown
7198 else
7199   lt_cv_dlopen=no
7200   lt_cv_dlopen_libs=
7201
7202   case $host_os in
7203   beos*)
7204     lt_cv_dlopen="load_add_on"
7205     lt_cv_dlopen_libs=
7206     lt_cv_dlopen_self=yes
7207     ;;
7208
7209   mingw* | pw32*)
7210     lt_cv_dlopen="LoadLibrary"
7211     lt_cv_dlopen_libs=
7212    ;;
7213
7214   cygwin*)
7215     lt_cv_dlopen="dlopen"
7216     lt_cv_dlopen_libs=
7217    ;;
7218
7219   darwin*)
7220   # if libdl is installed we need to link against it
7221     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7222 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7223 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   ac_check_lib_save_LIBS=$LIBS
7227 LIBS="-ldl  $LIBS"
7228 cat >conftest.$ac_ext <<_ACEOF
7229 #line $LINENO "configure"
7230 #include "confdefs.h"
7231
7232 /* Override any gcc2 internal prototype to avoid an error.  */
7233 #ifdef __cplusplus
7234 extern "C"
7235 #endif
7236 /* We use char because int might match the return type of a gcc2
7237    builtin and then its argument prototype would still apply.  */
7238 char dlopen ();
7239 #ifdef F77_DUMMY_MAIN
7240 #  ifdef __cplusplus
7241      extern "C"
7242 #  endif
7243    int F77_DUMMY_MAIN() { return 1; }
7244 #endif
7245 int
7246 main ()
7247 {
7248 dlopen ();
7249   ;
7250   return 0;
7251 }
7252 _ACEOF
7253 rm -f conftest.$ac_objext conftest$ac_exeext
7254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7255   (eval $ac_link) 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } &&
7259          { ac_try='test -s conftest$ac_exeext'
7260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261   (eval $ac_try) 2>&5
7262   ac_status=$?
7263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264   (exit $ac_status); }; }; then
7265   ac_cv_lib_dl_dlopen=yes
7266 else
7267   echo "$as_me: failed program was:" >&5
7268 cat conftest.$ac_ext >&5
7269 ac_cv_lib_dl_dlopen=no
7270 fi
7271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7272 LIBS=$ac_check_lib_save_LIBS
7273 fi
7274 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7275 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7276 if test $ac_cv_lib_dl_dlopen = yes; then
7277   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7278 else
7279
7280     lt_cv_dlopen="dyld"
7281     lt_cv_dlopen_libs=
7282     lt_cv_dlopen_self=yes
7283
7284 fi
7285
7286    ;;
7287
7288   *)
7289     echo "$as_me:$LINENO: checking for shl_load" >&5
7290 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7291 if test "${ac_cv_func_shl_load+set}" = set; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   cat >conftest.$ac_ext <<_ACEOF
7295 #line $LINENO "configure"
7296 #include "confdefs.h"
7297 /* System header to define __stub macros and hopefully few prototypes,
7298     which can conflict with char shl_load (); below.  */
7299 #include <assert.h>
7300 /* Override any gcc2 internal prototype to avoid an error.  */
7301 #ifdef __cplusplus
7302 extern "C"
7303 #endif
7304 /* We use char because int might match the return type of a gcc2
7305    builtin and then its argument prototype would still apply.  */
7306 char shl_load ();
7307 char (*f) ();
7308
7309 #ifdef F77_DUMMY_MAIN
7310 #  ifdef __cplusplus
7311      extern "C"
7312 #  endif
7313    int F77_DUMMY_MAIN() { return 1; }
7314 #endif
7315 int
7316 main ()
7317 {
7318 /* The GNU C library defines this for functions which it implements
7319     to always fail with ENOSYS.  Some functions are actually named
7320     something starting with __ and the normal name is an alias.  */
7321 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7322 choke me
7323 #else
7324 f = shl_load;
7325 #endif
7326
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7333   (eval $ac_link) 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); } &&
7337          { ac_try='test -s conftest$ac_exeext'
7338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339   (eval $ac_try) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); }; }; then
7343   ac_cv_func_shl_load=yes
7344 else
7345   echo "$as_me: failed program was:" >&5
7346 cat conftest.$ac_ext >&5
7347 ac_cv_func_shl_load=no
7348 fi
7349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7350 fi
7351 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7352 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7353 if test $ac_cv_func_shl_load = yes; then
7354   lt_cv_dlopen="shl_load"
7355 else
7356   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7357 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7358 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7359   echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361   ac_check_lib_save_LIBS=$LIBS
7362 LIBS="-ldld  $LIBS"
7363 cat >conftest.$ac_ext <<_ACEOF
7364 #line $LINENO "configure"
7365 #include "confdefs.h"
7366
7367 /* Override any gcc2 internal prototype to avoid an error.  */
7368 #ifdef __cplusplus
7369 extern "C"
7370 #endif
7371 /* We use char because int might match the return type of a gcc2
7372    builtin and then its argument prototype would still apply.  */
7373 char shl_load ();
7374 #ifdef F77_DUMMY_MAIN
7375 #  ifdef __cplusplus
7376      extern "C"
7377 #  endif
7378    int F77_DUMMY_MAIN() { return 1; }
7379 #endif
7380 int
7381 main ()
7382 {
7383 shl_load ();
7384   ;
7385   return 0;
7386 }
7387 _ACEOF
7388 rm -f conftest.$ac_objext conftest$ac_exeext
7389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7390   (eval $ac_link) 2>&5
7391   ac_status=$?
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); } &&
7394          { ac_try='test -s conftest$ac_exeext'
7395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396   (eval $ac_try) 2>&5
7397   ac_status=$?
7398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399   (exit $ac_status); }; }; then
7400   ac_cv_lib_dld_shl_load=yes
7401 else
7402   echo "$as_me: failed program was:" >&5
7403 cat conftest.$ac_ext >&5
7404 ac_cv_lib_dld_shl_load=no
7405 fi
7406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7407 LIBS=$ac_check_lib_save_LIBS
7408 fi
7409 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7410 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7411 if test $ac_cv_lib_dld_shl_load = yes; then
7412   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7413 else
7414   echo "$as_me:$LINENO: checking for dlopen" >&5
7415 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7416 if test "${ac_cv_func_dlopen+set}" = set; then
7417   echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419   cat >conftest.$ac_ext <<_ACEOF
7420 #line $LINENO "configure"
7421 #include "confdefs.h"
7422 /* System header to define __stub macros and hopefully few prototypes,
7423     which can conflict with char dlopen (); below.  */
7424 #include <assert.h>
7425 /* Override any gcc2 internal prototype to avoid an error.  */
7426 #ifdef __cplusplus
7427 extern "C"
7428 #endif
7429 /* We use char because int might match the return type of a gcc2
7430    builtin and then its argument prototype would still apply.  */
7431 char dlopen ();
7432 char (*f) ();
7433
7434 #ifdef F77_DUMMY_MAIN
7435 #  ifdef __cplusplus
7436      extern "C"
7437 #  endif
7438    int F77_DUMMY_MAIN() { return 1; }
7439 #endif
7440 int
7441 main ()
7442 {
7443 /* The GNU C library defines this for functions which it implements
7444     to always fail with ENOSYS.  Some functions are actually named
7445     something starting with __ and the normal name is an alias.  */
7446 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7447 choke me
7448 #else
7449 f = dlopen;
7450 #endif
7451
7452   ;
7453   return 0;
7454 }
7455 _ACEOF
7456 rm -f conftest.$ac_objext conftest$ac_exeext
7457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7458   (eval $ac_link) 2>&5
7459   ac_status=$?
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); } &&
7462          { ac_try='test -s conftest$ac_exeext'
7463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464   (eval $ac_try) 2>&5
7465   ac_status=$?
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); }; }; then
7468   ac_cv_func_dlopen=yes
7469 else
7470   echo "$as_me: failed program was:" >&5
7471 cat conftest.$ac_ext >&5
7472 ac_cv_func_dlopen=no
7473 fi
7474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7475 fi
7476 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7477 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7478 if test $ac_cv_func_dlopen = yes; then
7479   lt_cv_dlopen="dlopen"
7480 else
7481   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7482 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7483 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7484   echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486   ac_check_lib_save_LIBS=$LIBS
7487 LIBS="-ldl  $LIBS"
7488 cat >conftest.$ac_ext <<_ACEOF
7489 #line $LINENO "configure"
7490 #include "confdefs.h"
7491
7492 /* Override any gcc2 internal prototype to avoid an error.  */
7493 #ifdef __cplusplus
7494 extern "C"
7495 #endif
7496 /* We use char because int might match the return type of a gcc2
7497    builtin and then its argument prototype would still apply.  */
7498 char dlopen ();
7499 #ifdef F77_DUMMY_MAIN
7500 #  ifdef __cplusplus
7501      extern "C"
7502 #  endif
7503    int F77_DUMMY_MAIN() { return 1; }
7504 #endif
7505 int
7506 main ()
7507 {
7508 dlopen ();
7509   ;
7510   return 0;
7511 }
7512 _ACEOF
7513 rm -f conftest.$ac_objext conftest$ac_exeext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7515   (eval $ac_link) 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); } &&
7519          { ac_try='test -s conftest$ac_exeext'
7520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521   (eval $ac_try) 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); }; }; then
7525   ac_cv_lib_dl_dlopen=yes
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 cat conftest.$ac_ext >&5
7529 ac_cv_lib_dl_dlopen=no
7530 fi
7531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7532 LIBS=$ac_check_lib_save_LIBS
7533 fi
7534 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7535 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7536 if test $ac_cv_lib_dl_dlopen = yes; then
7537   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7538 else
7539   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7540 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7541 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544   ac_check_lib_save_LIBS=$LIBS
7545 LIBS="-lsvld  $LIBS"
7546 cat >conftest.$ac_ext <<_ACEOF
7547 #line $LINENO "configure"
7548 #include "confdefs.h"
7549
7550 /* Override any gcc2 internal prototype to avoid an error.  */
7551 #ifdef __cplusplus
7552 extern "C"
7553 #endif
7554 /* We use char because int might match the return type of a gcc2
7555    builtin and then its argument prototype would still apply.  */
7556 char dlopen ();
7557 #ifdef F77_DUMMY_MAIN
7558 #  ifdef __cplusplus
7559      extern "C"
7560 #  endif
7561    int F77_DUMMY_MAIN() { return 1; }
7562 #endif
7563 int
7564 main ()
7565 {
7566 dlopen ();
7567   ;
7568   return 0;
7569 }
7570 _ACEOF
7571 rm -f conftest.$ac_objext conftest$ac_exeext
7572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7573   (eval $ac_link) 2>&5
7574   ac_status=$?
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); } &&
7577          { ac_try='test -s conftest$ac_exeext'
7578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579   (eval $ac_try) 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); }; }; then
7583   ac_cv_lib_svld_dlopen=yes
7584 else
7585   echo "$as_me: failed program was:" >&5
7586 cat conftest.$ac_ext >&5
7587 ac_cv_lib_svld_dlopen=no
7588 fi
7589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7590 LIBS=$ac_check_lib_save_LIBS
7591 fi
7592 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7593 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7594 if test $ac_cv_lib_svld_dlopen = yes; then
7595   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7596 else
7597   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7598 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7599 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7600   echo $ECHO_N "(cached) $ECHO_C" >&6
7601 else
7602   ac_check_lib_save_LIBS=$LIBS
7603 LIBS="-ldld  $LIBS"
7604 cat >conftest.$ac_ext <<_ACEOF
7605 #line $LINENO "configure"
7606 #include "confdefs.h"
7607
7608 /* Override any gcc2 internal prototype to avoid an error.  */
7609 #ifdef __cplusplus
7610 extern "C"
7611 #endif
7612 /* We use char because int might match the return type of a gcc2
7613    builtin and then its argument prototype would still apply.  */
7614 char dld_link ();
7615 #ifdef F77_DUMMY_MAIN
7616 #  ifdef __cplusplus
7617      extern "C"
7618 #  endif
7619    int F77_DUMMY_MAIN() { return 1; }
7620 #endif
7621 int
7622 main ()
7623 {
7624 dld_link ();
7625   ;
7626   return 0;
7627 }
7628 _ACEOF
7629 rm -f conftest.$ac_objext conftest$ac_exeext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7631   (eval $ac_link) 2>&5
7632   ac_status=$?
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); } &&
7635          { ac_try='test -s conftest$ac_exeext'
7636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637   (eval $ac_try) 2>&5
7638   ac_status=$?
7639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640   (exit $ac_status); }; }; then
7641   ac_cv_lib_dld_dld_link=yes
7642 else
7643   echo "$as_me: failed program was:" >&5
7644 cat conftest.$ac_ext >&5
7645 ac_cv_lib_dld_dld_link=no
7646 fi
7647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7648 LIBS=$ac_check_lib_save_LIBS
7649 fi
7650 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7651 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7652 if test $ac_cv_lib_dld_dld_link = yes; then
7653   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7654 fi
7655
7656
7657 fi
7658
7659
7660 fi
7661
7662
7663 fi
7664
7665
7666 fi
7667
7668
7669 fi
7670
7671     ;;
7672   esac
7673
7674   if test "x$lt_cv_dlopen" != xno; then
7675     enable_dlopen=yes
7676   else
7677     enable_dlopen=no
7678   fi
7679
7680   case $lt_cv_dlopen in
7681   dlopen)
7682     save_CPPFLAGS="$CPPFLAGS"
7683     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7684
7685     save_LDFLAGS="$LDFLAGS"
7686     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7687
7688     save_LIBS="$LIBS"
7689     LIBS="$lt_cv_dlopen_libs $LIBS"
7690
7691     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7692 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7693 if test "${lt_cv_dlopen_self+set}" = set; then
7694   echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696           if test "$cross_compiling" = yes; then :
7697   lt_cv_dlopen_self=cross
7698 else
7699   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7700   lt_status=$lt_dlunknown
7701   cat > conftest.$ac_ext <<EOF
7702 #line 7702 "configure"
7703 #include "confdefs.h"
7704
7705 #if HAVE_DLFCN_H
7706 #include <dlfcn.h>
7707 #endif
7708
7709 #include <stdio.h>
7710
7711 #ifdef RTLD_GLOBAL
7712 #  define LT_DLGLOBAL           RTLD_GLOBAL
7713 #else
7714 #  ifdef DL_GLOBAL
7715 #    define LT_DLGLOBAL         DL_GLOBAL
7716 #  else
7717 #    define LT_DLGLOBAL         0
7718 #  endif
7719 #endif
7720
7721 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7722    find out it does not work in some platform. */
7723 #ifndef LT_DLLAZY_OR_NOW
7724 #  ifdef RTLD_LAZY
7725 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7726 #  else
7727 #    ifdef DL_LAZY
7728 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7729 #    else
7730 #      ifdef RTLD_NOW
7731 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7732 #      else
7733 #        ifdef DL_NOW
7734 #          define LT_DLLAZY_OR_NOW      DL_NOW
7735 #        else
7736 #          define LT_DLLAZY_OR_NOW      0
7737 #        endif
7738 #      endif
7739 #    endif
7740 #  endif
7741 #endif
7742
7743 #ifdef __cplusplus
7744 extern "C" void exit (int);
7745 #endif
7746
7747 void fnord() { int i=42;}
7748 int main ()
7749 {
7750   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7751   int status = $lt_dlunknown;
7752
7753   if (self)
7754     {
7755       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7756       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7757       /* dlclose (self); */
7758     }
7759
7760     exit (status);
7761 }
7762 EOF
7763   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7764   (eval $ac_link) 2>&5
7765   ac_status=$?
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7768     (./conftest; exit; ) 2>/dev/null
7769     lt_status=$?
7770     case x$lt_status in
7771       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7772       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7773       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7774     esac
7775   else :
7776     # compilation failed
7777     lt_cv_dlopen_self=no
7778   fi
7779 fi
7780 rm -fr conftest*
7781
7782
7783 fi
7784 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7785 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7786
7787     if test "x$lt_cv_dlopen_self" = xyes; then
7788       LDFLAGS="$LDFLAGS $link_static_flag"
7789       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7790 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7791 if test "${lt_cv_dlopen_self_static+set}" = set; then
7792   echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794           if test "$cross_compiling" = yes; then :
7795   lt_cv_dlopen_self_static=cross
7796 else
7797   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7798   lt_status=$lt_dlunknown
7799   cat > conftest.$ac_ext <<EOF
7800 #line 7800 "configure"
7801 #include "confdefs.h"
7802
7803 #if HAVE_DLFCN_H
7804 #include <dlfcn.h>
7805 #endif
7806
7807 #include <stdio.h>
7808
7809 #ifdef RTLD_GLOBAL
7810 #  define LT_DLGLOBAL           RTLD_GLOBAL
7811 #else
7812 #  ifdef DL_GLOBAL
7813 #    define LT_DLGLOBAL         DL_GLOBAL
7814 #  else
7815 #    define LT_DLGLOBAL         0
7816 #  endif
7817 #endif
7818
7819 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7820    find out it does not work in some platform. */
7821 #ifndef LT_DLLAZY_OR_NOW
7822 #  ifdef RTLD_LAZY
7823 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7824 #  else
7825 #    ifdef DL_LAZY
7826 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7827 #    else
7828 #      ifdef RTLD_NOW
7829 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7830 #      else
7831 #        ifdef DL_NOW
7832 #          define LT_DLLAZY_OR_NOW      DL_NOW
7833 #        else
7834 #          define LT_DLLAZY_OR_NOW      0
7835 #        endif
7836 #      endif
7837 #    endif
7838 #  endif
7839 #endif
7840
7841 #ifdef __cplusplus
7842 extern "C" void exit (int);
7843 #endif
7844
7845 void fnord() { int i=42;}
7846 int main ()
7847 {
7848   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7849   int status = $lt_dlunknown;
7850
7851   if (self)
7852     {
7853       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7854       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7855       /* dlclose (self); */
7856     }
7857
7858     exit (status);
7859 }
7860 EOF
7861   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7862   (eval $ac_link) 2>&5
7863   ac_status=$?
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7866     (./conftest; exit; ) 2>/dev/null
7867     lt_status=$?
7868     case x$lt_status in
7869       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7870       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7871       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7872     esac
7873   else :
7874     # compilation failed
7875     lt_cv_dlopen_self_static=no
7876   fi
7877 fi
7878 rm -fr conftest*
7879
7880
7881 fi
7882 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7883 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7884     fi
7885
7886     CPPFLAGS="$save_CPPFLAGS"
7887     LDFLAGS="$save_LDFLAGS"
7888     LIBS="$save_LIBS"
7889     ;;
7890   esac
7891
7892   case $lt_cv_dlopen_self in
7893   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7894   *) enable_dlopen_self=unknown ;;
7895   esac
7896
7897   case $lt_cv_dlopen_self_static in
7898   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7899   *) enable_dlopen_self_static=unknown ;;
7900   esac
7901 fi
7902
7903
7904 # Report which librarie types wil actually be built
7905 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7906 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7907 echo "$as_me:$LINENO: result: $can_build_shared" >&5
7908 echo "${ECHO_T}$can_build_shared" >&6
7909
7910 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7911 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7912 test "$can_build_shared" = "no" && enable_shared=no
7913
7914 # On AIX, shared libraries and static libraries use the same namespace, and
7915 # are all built from PIC.
7916 case "$host_os" in
7917 aix3*)
7918   test "$enable_shared" = yes && enable_static=no
7919   if test -n "$RANLIB"; then
7920     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7921     postinstall_cmds='$RANLIB $lib'
7922   fi
7923   ;;
7924
7925 aix4*)
7926   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7927     test "$enable_shared" = yes && enable_static=no
7928   fi
7929   ;;
7930   darwin* | rhapsody*)
7931   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7932     archive_cmds_need_lc=no
7933     case "$host_os" in
7934     rhapsody* | darwin1.[012])
7935       allow_undefined_flag='-undefined suppress'
7936       ;;
7937     *) # Darwin 1.3 on
7938       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7939       ;;
7940     esac
7941     # FIXME: Relying on posixy $() will cause problems for
7942     #        cross-compilation, but unfortunately the echo tests do not
7943     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7944     #          `"' quotes if we put them in here... so don't!
7945                 output_verbose_link_cmd='echo'
7946     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
7947     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7948     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7949                   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}'
7950                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7951     hardcode_direct=no
7952     hardcode_automatic=yes
7953     hardcode_shlibpath_var=unsupported
7954     whole_archive_flag_spec='-all_load $convenience'
7955     link_all_deplibs=yes
7956     fi
7957     ;;
7958 esac
7959 echo "$as_me:$LINENO: result: $enable_shared" >&5
7960 echo "${ECHO_T}$enable_shared" >&6
7961
7962 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7963 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7964 # Make sure either enable_shared or enable_static is yes.
7965 test "$enable_shared" = yes || enable_static=yes
7966 echo "$as_me:$LINENO: result: $enable_static" >&5
7967 echo "${ECHO_T}$enable_static" >&6
7968
7969 # The else clause should only fire when bootstrapping the
7970 # libtool distribution, otherwise you forgot to ship ltmain.sh
7971 # with your package, and you will get complaints that there are
7972 # no rules to generate ltmain.sh.
7973 if test -f "$ltmain"; then
7974   # See if we are running on zsh, and set the options which allow our commands through
7975   # without removal of \ escapes.
7976   if test -n "${ZSH_VERSION+set}" ; then
7977     setopt NO_GLOB_SUBST
7978   fi
7979   # Now quote all the things that may contain metacharacters while being
7980   # careful not to overquote the AC_SUBSTed values.  We take copies of the
7981   # variables and quote the copies for generation of the libtool script.
7982   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
7983     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
7984     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
7985     deplibs_check_method reload_flag reload_cmds need_locks \
7986     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
7987     lt_cv_sys_global_symbol_to_c_name_address \
7988     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7989     old_postinstall_cmds old_postuninstall_cmds \
7990     compiler \
7991     CC \
7992     LD \
7993     lt_prog_compiler_wl \
7994     lt_prog_compiler_pic \
7995     lt_prog_compiler_static \
7996     lt_prog_compiler_no_builtin_flag \
7997     export_dynamic_flag_spec \
7998     thread_safe_flag_spec \
7999     whole_archive_flag_spec \
8000     enable_shared_with_static_runtimes \
8001     old_archive_cmds \
8002     old_archive_from_new_cmds \
8003     predep_objects \
8004     postdep_objects \
8005     predeps \
8006     postdeps \
8007     compiler_lib_search_path \
8008     archive_cmds \
8009     archive_expsym_cmds \
8010     postinstall_cmds \
8011     postuninstall_cmds \
8012     old_archive_from_expsyms_cmds \
8013     allow_undefined_flag \
8014     no_undefined_flag \
8015     export_symbols_cmds \
8016     hardcode_libdir_flag_spec \
8017     hardcode_libdir_flag_spec_ld \
8018     hardcode_libdir_separator \
8019     hardcode_automatic \
8020     module_cmds \
8021     module_expsym_cmds \
8022     lt_cv_prog_compiler_c_o \
8023     exclude_expsyms \
8024     include_expsyms; do
8025
8026     case $var in
8027     old_archive_cmds | \
8028     old_archive_from_new_cmds | \
8029     archive_cmds | \
8030     archive_expsym_cmds | \
8031     module_cmds | \
8032     module_expsym_cmds | \
8033     old_archive_from_expsyms_cmds | \
8034     export_symbols_cmds | \
8035     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8036     postinstall_cmds | postuninstall_cmds | \
8037     old_postinstall_cmds | old_postuninstall_cmds | \
8038     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8039       # Double-quote double-evaled strings.
8040       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8041       ;;
8042     *)
8043       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8044       ;;
8045     esac
8046   done
8047
8048   case $lt_echo in
8049   *'\$0 --fallback-echo"')
8050     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8051     ;;
8052   esac
8053
8054 cfgfile="${ofile}T"
8055   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8056   $rm -f "$cfgfile"
8057   { echo "$as_me:$LINENO: creating $ofile" >&5
8058 echo "$as_me: creating $ofile" >&6;}
8059
8060   cat <<__EOF__ >> "$cfgfile"
8061 #! $SHELL
8062
8063 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8064 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8065 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8066 #
8067 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8068 # Free Software Foundation, Inc.
8069 #
8070 # This file is part of GNU Libtool:
8071 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8072 #
8073 # This program is free software; you can redistribute it and/or modify
8074 # it under the terms of the GNU General Public License as published by
8075 # the Free Software Foundation; either version 2 of the License, or
8076 # (at your option) any later version.
8077 #
8078 # This program is distributed in the hope that it will be useful, but
8079 # WITHOUT ANY WARRANTY; without even the implied warranty of
8080 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8081 # General Public License for more details.
8082 #
8083 # You should have received a copy of the GNU General Public License
8084 # along with this program; if not, write to the Free Software
8085 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8086 #
8087 # As a special exception to the GNU General Public License, if you
8088 # distribute this file as part of a program that contains a
8089 # configuration script generated by Autoconf, you may include it under
8090 # the same distribution terms that you use for the rest of that program.
8091
8092 # A sed program that does not truncate output.
8093 SED=$lt_SED
8094
8095 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8096 Xsed="$SED -e s/^X//"
8097
8098 # The HP-UX ksh and POSIX shell print the target directory to stdout
8099 # if CDPATH is set.
8100 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8101
8102 # The names of the tagged configurations supported by this script.
8103 available_tags=
8104
8105 # ### BEGIN LIBTOOL CONFIG
8106
8107 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8108
8109 # Shell to use when invoking shell scripts.
8110 SHELL=$lt_SHELL
8111
8112 # Whether or not to build shared libraries.
8113 build_libtool_libs=$enable_shared
8114
8115 # Whether or not to build static libraries.
8116 build_old_libs=$enable_static
8117
8118 # Whether or not to add -lc for building shared libraries.
8119 build_libtool_need_lc=$archive_cmds_need_lc
8120
8121 # Whether or not to disallow shared libs when runtime libs are static
8122 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8123
8124 # Whether or not to optimize for fast installation.
8125 fast_install=$enable_fast_install
8126
8127 # The host system.
8128 host_alias=$host_alias
8129 host=$host
8130
8131 # An echo program that does not interpret backslashes.
8132 echo=$lt_echo
8133
8134 # The archiver.
8135 AR=$lt_AR
8136 AR_FLAGS=$lt_AR_FLAGS
8137
8138 # A C compiler.
8139 LTCC=$lt_LTCC
8140
8141 # A language-specific compiler.
8142 CC=$lt_compiler
8143
8144 # Is the compiler the GNU C compiler?
8145 with_gcc=$GCC
8146
8147 # An ERE matcher.
8148 EGREP=$lt_EGREP
8149
8150 # The linker used to build libraries.
8151 LD=$lt_LD
8152
8153 # Whether we need hard or soft links.
8154 LN_S=$lt_LN_S
8155
8156 # A BSD-compatible nm program.
8157 NM=$lt_NM
8158
8159 # A symbol stripping program
8160 STRIP=$STRIP
8161
8162 # Used to examine libraries when file_magic_cmd begins "file"
8163 MAGIC_CMD=$MAGIC_CMD
8164
8165 # Used on cygwin: DLL creation program.
8166 DLLTOOL="$DLLTOOL"
8167
8168 # Used on cygwin: object dumper.
8169 OBJDUMP="$OBJDUMP"
8170
8171 # Used on cygwin: assembler.
8172 AS="$AS"
8173
8174 # The name of the directory that contains temporary libtool files.
8175 objdir=$objdir
8176
8177 # How to create reloadable object files.
8178 reload_flag=$lt_reload_flag
8179 reload_cmds=$lt_reload_cmds
8180
8181 # How to pass a linker flag through the compiler.
8182 wl=$lt_lt_prog_compiler_wl
8183
8184 # Object file suffix (normally "o").
8185 objext="$ac_objext"
8186
8187 # Old archive suffix (normally "a").
8188 libext="$libext"
8189
8190 # Shared library suffix (normally ".so").
8191 shrext='$shrext'
8192
8193 # Executable file suffix (normally "").
8194 exeext="$exeext"
8195
8196 # Additional compiler flags for building library objects.
8197 pic_flag=$lt_lt_prog_compiler_pic
8198 pic_mode=$pic_mode
8199
8200 # What is the maximum length of a command?
8201 max_cmd_len=$lt_cv_sys_max_cmd_len
8202
8203 # Does compiler simultaneously support -c and -o options?
8204 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8205
8206 # Must we lock files when doing compilation ?
8207 need_locks=$lt_need_locks
8208
8209 # Do we need the lib prefix for modules?
8210 need_lib_prefix=$need_lib_prefix
8211
8212 # Do we need a version for libraries?
8213 need_version=$need_version
8214
8215 # Whether dlopen is supported.
8216 dlopen_support=$enable_dlopen
8217
8218 # Whether dlopen of programs is supported.
8219 dlopen_self=$enable_dlopen_self
8220
8221 # Whether dlopen of statically linked programs is supported.
8222 dlopen_self_static=$enable_dlopen_self_static
8223
8224 # Compiler flag to prevent dynamic linking.
8225 link_static_flag=$lt_lt_prog_compiler_static
8226
8227 # Compiler flag to turn off builtin functions.
8228 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8229
8230 # Compiler flag to allow reflexive dlopens.
8231 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8232
8233 # Compiler flag to generate shared objects directly from archives.
8234 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8235
8236 # Compiler flag to generate thread-safe objects.
8237 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8238
8239 # Library versioning type.
8240 version_type=$version_type
8241
8242 # Format of library name prefix.
8243 libname_spec=$lt_libname_spec
8244
8245 # List of archive names.  First name is the real one, the rest are links.
8246 # The last name is the one that the linker finds with -lNAME.
8247 library_names_spec=$lt_library_names_spec
8248
8249 # The coded name of the library, if different from the real name.
8250 soname_spec=$lt_soname_spec
8251
8252 # Commands used to build and install an old-style archive.
8253 RANLIB=$lt_RANLIB
8254 old_archive_cmds=$lt_old_archive_cmds
8255 old_postinstall_cmds=$lt_old_postinstall_cmds
8256 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8257
8258 # Create an old-style archive from a shared archive.
8259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8260
8261 # Create a temporary old-style archive to link instead of a shared archive.
8262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8263
8264 # Commands used to build and install a shared archive.
8265 archive_cmds=$lt_archive_cmds
8266 archive_expsym_cmds=$lt_archive_expsym_cmds
8267 postinstall_cmds=$lt_postinstall_cmds
8268 postuninstall_cmds=$lt_postuninstall_cmds
8269
8270 # Commands used to build a loadable module (assumed same as above if empty)
8271 module_cmds=$lt_module_cmds
8272 module_expsym_cmds=$lt_module_expsym_cmds
8273
8274 # Commands to strip libraries.
8275 old_striplib=$lt_old_striplib
8276 striplib=$lt_striplib
8277
8278 # Dependencies to place before the objects being linked to create a
8279 # shared library.
8280 predep_objects=$lt_predep_objects
8281
8282 # Dependencies to place after the objects being linked to create a
8283 # shared library.
8284 postdep_objects=$lt_postdep_objects
8285
8286 # Dependencies to place before the objects being linked to create a
8287 # shared library.
8288 predeps=$lt_predeps
8289
8290 # Dependencies to place after the objects being linked to create a
8291 # shared library.
8292 postdeps=$lt_postdeps
8293
8294 # The library search path used internally by the compiler when linking
8295 # a shared library.
8296 compiler_lib_search_path=$lt_compiler_lib_search_path
8297
8298 # Method to check whether dependent libraries are shared objects.
8299 deplibs_check_method=$lt_deplibs_check_method
8300
8301 # Command to use when deplibs_check_method == file_magic.
8302 file_magic_cmd=$lt_file_magic_cmd
8303
8304 # Flag that allows shared libraries with undefined symbols to be built.
8305 allow_undefined_flag=$lt_allow_undefined_flag
8306
8307 # Flag that forces no undefined symbols.
8308 no_undefined_flag=$lt_no_undefined_flag
8309
8310 # Commands used to finish a libtool library installation in a directory.
8311 finish_cmds=$lt_finish_cmds
8312
8313 # Same as above, but a single script fragment to be evaled but not shown.
8314 finish_eval=$lt_finish_eval
8315
8316 # Take the output of nm and produce a listing of raw symbols and C names.
8317 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8318
8319 # Transform the output of nm in a proper C declaration
8320 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8321
8322 # Transform the output of nm in a C name address pair
8323 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8324
8325 # This is the shared library runtime path variable.
8326 runpath_var=$runpath_var
8327
8328 # This is the shared library path variable.
8329 shlibpath_var=$shlibpath_var
8330
8331 # Is shlibpath searched before the hard-coded library search path?
8332 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8333
8334 # How to hardcode a shared library path into an executable.
8335 hardcode_action=$hardcode_action
8336
8337 # Whether we should hardcode library paths into libraries.
8338 hardcode_into_libs=$hardcode_into_libs
8339
8340 # Flag to hardcode \$libdir into a binary during linking.
8341 # This must work even if \$libdir does not exist.
8342 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8343
8344 # If ld is used when linking, flag to hardcode \$libdir into
8345 # a binary during linking. This must work even if \$libdir does
8346 # not exist.
8347 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8348
8349 # Whether we need a single -rpath flag with a separated argument.
8350 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8351
8352 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8353 # resulting binary.
8354 hardcode_direct=$hardcode_direct
8355
8356 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8357 # resulting binary.
8358 hardcode_minus_L=$hardcode_minus_L
8359
8360 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8361 # the resulting binary.
8362 hardcode_shlibpath_var=$hardcode_shlibpath_var
8363
8364 # Set to yes if building a shared library automatically hardcodes DIR into the library
8365 # and all subsequent libraries and executables linked against it.
8366 hardcode_automatic=$hardcode_automatic
8367
8368 # Variables whose values should be saved in libtool wrapper scripts and
8369 # restored at relink time.
8370 variables_saved_for_relink="$variables_saved_for_relink"
8371
8372 # Whether libtool must link a program against all its dependency libraries.
8373 link_all_deplibs=$link_all_deplibs
8374
8375 # Compile-time system search path for libraries
8376 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8377
8378 # Run-time system search path for libraries
8379 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8380
8381 # Fix the shell variable \$srcfile for the compiler.
8382 fix_srcfile_path="$fix_srcfile_path"
8383
8384 # Set to yes if exported symbols are required.
8385 always_export_symbols=$always_export_symbols
8386
8387 # The commands to list exported symbols.
8388 export_symbols_cmds=$lt_export_symbols_cmds
8389
8390 # The commands to extract the exported symbol list from a shared archive.
8391 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8392
8393 # Symbols that should not be listed in the preloaded symbols.
8394 exclude_expsyms=$lt_exclude_expsyms
8395
8396 # Symbols that must always be exported.
8397 include_expsyms=$lt_include_expsyms
8398
8399 # ### END LIBTOOL CONFIG
8400
8401 __EOF__
8402
8403
8404   case $host_os in
8405   aix3*)
8406     cat <<\EOF >> "$cfgfile"
8407
8408 # AIX sometimes has problems with the GCC collect2 program.  For some
8409 # reason, if we set the COLLECT_NAMES environment variable, the problems
8410 # vanish in a puff of smoke.
8411 if test "X${COLLECT_NAMES+set}" != Xset; then
8412   COLLECT_NAMES=
8413   export COLLECT_NAMES
8414 fi
8415 EOF
8416     ;;
8417   esac
8418
8419   # We use sed instead of cat because bash on DJGPP gets confused if
8420   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8421   # text mode, it properly converts lines to CR/LF.  This bash problem
8422   # is reportedly fixed, but why not run on old versions too?
8423   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8424
8425   mv -f "$cfgfile" "$ofile" || \
8426     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8427   chmod +x "$ofile"
8428
8429 else
8430   # If there is no Makefile yet, we rely on a make rule to execute
8431   # `config.status --recheck' to rerun these tests and create the
8432   # libtool script then.
8433   test -f Makefile && make "$ltmain"
8434 fi
8435
8436
8437 ac_ext=c
8438 ac_cpp='$CPP $CPPFLAGS'
8439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8442
8443 CC="$lt_save_CC"
8444
8445
8446 # Check whether --with-tags or --without-tags was given.
8447 if test "${with_tags+set}" = set; then
8448   withval="$with_tags"
8449   tagnames="$withval"
8450 fi;
8451
8452 if test -f "$ltmain" && test -n "$tagnames"; then
8453   if test ! -f "${ofile}"; then
8454     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8455 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8456   fi
8457
8458   if test -z "$LTCC"; then
8459     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8460     if test -z "$LTCC"; then
8461       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8462 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8463     else
8464       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8465 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8466     fi
8467   fi
8468
8469   # Extract list of available tagged configurations in $ofile.
8470   # Note that this assumes the entire list is on one line.
8471   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8472
8473   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8474   for tagname in $tagnames; do
8475     IFS="$lt_save_ifs"
8476     # Check whether tagname contains only valid characters
8477     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8478     "") ;;
8479     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8480 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8481    { (exit 1); exit 1; }; }
8482         ;;
8483     esac
8484
8485     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8486     then
8487       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8488 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8489    { (exit 1); exit 1; }; }
8490     fi
8491
8492     # Update the list of available tags.
8493     if test -n "$tagname"; then
8494       echo appending configuration tag \"$tagname\" to $ofile
8495
8496       case $tagname in
8497       CXX)
8498         if test -n "$CXX" && test "X$CXX" != "Xno"; then
8499           ac_ext=cc
8500 ac_cpp='$CXXCPP $CPPFLAGS'
8501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8504
8505
8506
8507
8508 archive_cmds_need_lc_CXX=no
8509 allow_undefined_flag_CXX=
8510 always_export_symbols_CXX=no
8511 archive_expsym_cmds_CXX=
8512 export_dynamic_flag_spec_CXX=
8513 hardcode_direct_CXX=no
8514 hardcode_libdir_flag_spec_CXX=
8515 hardcode_libdir_flag_spec_ld_CXX=
8516 hardcode_libdir_separator_CXX=
8517 hardcode_minus_L_CXX=no
8518 hardcode_automatic_CXX=no
8519 module_cmds_CXX=
8520 module_expsym_cmds_CXX=
8521 link_all_deplibs_CXX=unknown
8522 old_archive_cmds_CXX=$old_archive_cmds
8523 no_undefined_flag_CXX=
8524 whole_archive_flag_spec_CXX=
8525 enable_shared_with_static_runtimes_CXX=no
8526
8527 # Dependencies to place before and after the object being linked:
8528 predep_objects_CXX=
8529 postdep_objects_CXX=
8530 predeps_CXX=
8531 postdeps_CXX=
8532 compiler_lib_search_path_CXX=
8533
8534 # Source file extension for C++ test sources.
8535 ac_ext=cc
8536
8537 # Object file extension for compiled C++ test sources.
8538 objext=o
8539 objext_CXX=$objext
8540
8541 # Code to be used in simple compile tests
8542 lt_simple_compile_test_code="int some_variable = 0;\n"
8543
8544 # Code to be used in simple link tests
8545 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
8546
8547 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8548
8549 # If no C compiler was specified, use CC.
8550 LTCC=${LTCC-"$CC"}
8551
8552 # Allow CC to be a program name with arguments.
8553 compiler=$CC
8554
8555
8556 # Allow CC to be a program name with arguments.
8557 lt_save_CC=$CC
8558 lt_save_LD=$LD
8559 lt_save_GCC=$GCC
8560 GCC=$GXX
8561 lt_save_with_gnu_ld=$with_gnu_ld
8562 lt_save_path_LD=$lt_cv_path_LD
8563 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
8564   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
8565 else
8566   unset lt_cv_prog_gnu_ld
8567 fi
8568 if test -n "${lt_cv_path_LDCXX+set}"; then
8569   lt_cv_path_LD=$lt_cv_path_LDCXX
8570 else
8571   unset lt_cv_path_LD
8572 fi
8573 test -z "${LDCXX+set}" || LD=$LDCXX
8574 CC=${CXX-"c++"}
8575 compiler=$CC
8576 compiler_CXX=$CC
8577 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8578
8579 # We don't want -fno-exception wen compiling C++ code, so set the
8580 # no_builtin_flag separately
8581 if test "$GXX" = yes; then
8582   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
8583 else
8584   lt_prog_compiler_no_builtin_flag_CXX=
8585 fi
8586
8587 if test "$GXX" = yes; then
8588   # Set up default GNU C++ configuration
8589
8590
8591 # Check whether --with-gnu-ld or --without-gnu-ld was given.
8592 if test "${with_gnu_ld+set}" = set; then
8593   withval="$with_gnu_ld"
8594   test "$withval" = no || with_gnu_ld=yes
8595 else
8596   with_gnu_ld=no
8597 fi;
8598 ac_prog=ld
8599 if test "$GCC" = yes; then
8600   # Check if gcc -print-prog-name=ld gives a path.
8601   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8602 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
8603   case $host in
8604   *-*-mingw*)
8605     # gcc leaves a trailing carriage return which upsets mingw
8606     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8607   *)
8608     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8609   esac
8610   case $ac_prog in
8611     # Accept absolute paths.
8612     [\\/]* | ?:[\\/]*)
8613       re_direlt='/[^/][^/]*/\.\./'
8614       # Canonicalize the path of ld
8615       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8616       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8617         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8618       done
8619       test -z "$LD" && LD="$ac_prog"
8620       ;;
8621   "")
8622     # If it fails, then pretend we aren't using GCC.
8623     ac_prog=ld
8624     ;;
8625   *)
8626     # If it is relative, then search for the first ld in PATH.
8627     with_gnu_ld=unknown
8628     ;;
8629   esac
8630 elif test "$with_gnu_ld" = yes; then
8631   echo "$as_me:$LINENO: checking for GNU ld" >&5
8632 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8633 else
8634   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8635 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8636 fi
8637 if test "${lt_cv_path_LD+set}" = set; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640   if test -z "$LD"; then
8641   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8642   for ac_dir in $PATH; do
8643     IFS="$lt_save_ifs"
8644     test -z "$ac_dir" && ac_dir=.
8645     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8646       lt_cv_path_LD="$ac_dir/$ac_prog"
8647       # Check to see if the program is GNU ld.  I'd rather use --version,
8648       # but apparently some GNU ld's only accept -v.
8649       # Break only if it was the GNU/non-GNU ld that we prefer.
8650       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8651       *GNU* | *'with BFD'*)
8652         test "$with_gnu_ld" != no && break
8653         ;;
8654       *)
8655         test "$with_gnu_ld" != yes && break
8656         ;;
8657       esac
8658     fi
8659   done
8660   IFS="$lt_save_ifs"
8661 else
8662   lt_cv_path_LD="$LD" # Let the user override the test with a path.
8663 fi
8664 fi
8665
8666 LD="$lt_cv_path_LD"
8667 if test -n "$LD"; then
8668   echo "$as_me:$LINENO: result: $LD" >&5
8669 echo "${ECHO_T}$LD" >&6
8670 else
8671   echo "$as_me:$LINENO: result: no" >&5
8672 echo "${ECHO_T}no" >&6
8673 fi
8674 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8675 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8676    { (exit 1); exit 1; }; }
8677 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8678 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8679 if test "${lt_cv_prog_gnu_ld+set}" = set; then
8680   echo $ECHO_N "(cached) $ECHO_C" >&6
8681 else
8682   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8683 case `"$LD" -v 2>&1 </dev/null` in
8684 *GNU* | *'with BFD'*)
8685   lt_cv_prog_gnu_ld=yes
8686   ;;
8687 *)
8688   lt_cv_prog_gnu_ld=no
8689   ;;
8690 esac
8691 fi
8692 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8693 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
8694 with_gnu_ld=$lt_cv_prog_gnu_ld
8695
8696
8697
8698   # Check if GNU C++ uses GNU ld as the underlying linker, since the
8699   # archiving commands below assume that GNU ld is being used.
8700   if test "$with_gnu_ld" = yes; then
8701     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8702     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'
8703
8704     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
8705     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8706
8707     # If archive_cmds runs LD, not CC, wlarc should be empty
8708     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
8709     #     investigate it a little bit more. (MM)
8710     wlarc='${wl}'
8711
8712     # ancient GNU ld didn't support --whole-archive et. al.
8713     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
8714         grep 'no-whole-archive' > /dev/null; then
8715       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8716     else
8717       whole_archive_flag_spec_CXX=
8718     fi
8719   else
8720     with_gnu_ld=no
8721     wlarc=
8722
8723     # A generic and very simple default shared library creation
8724     # command for GNU C++ for the case where it uses the native
8725     # linker, instead of GNU ld.  If possible, this setting should
8726     # overridden to take advantage of the native linker features on
8727     # the platform it is being used on.
8728     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
8729   fi
8730
8731   # Commands to make compiler produce verbose output that lists
8732   # what "hidden" libraries, object files and flags are used when
8733   # linking a shared library.
8734   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8735
8736 else
8737   GXX=no
8738   with_gnu_ld=no
8739   wlarc=
8740 fi
8741
8742 # PORTME: fill in a description of your system's C++ link characteristics
8743 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8744 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8745 ld_shlibs_CXX=yes
8746 case $host_os in
8747   aix3*)
8748     # FIXME: insert proper C++ library support
8749     ld_shlibs_CXX=no
8750     ;;
8751   aix4* | aix5*)
8752     if test "$host_cpu" = ia64; then
8753       # On IA64, the linker does run time linking by default, so we don't
8754       # have to do anything special.
8755       aix_use_runtimelinking=no
8756       exp_sym_flag='-Bexport'
8757       no_entry_flag=""
8758     else
8759       aix_use_runtimelinking=no
8760
8761       # Test if we are trying to use run time linking or normal
8762       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8763       # need to do runtime linking.
8764       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8765         for ld_flag in $LDFLAGS; do
8766           case $ld_flag in
8767           *-brtl*)
8768             aix_use_runtimelinking=yes
8769             break
8770             ;;
8771           esac
8772         done
8773       esac
8774
8775       exp_sym_flag='-bexport'
8776       no_entry_flag='-bnoentry'
8777     fi
8778
8779     # When large executables or shared objects are built, AIX ld can
8780     # have problems creating the table of contents.  If linking a library
8781     # or program results in "error TOC overflow" add -mminimal-toc to
8782     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8783     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8784
8785     archive_cmds_CXX=''
8786     hardcode_direct_CXX=yes
8787     hardcode_libdir_separator_CXX=':'
8788     link_all_deplibs_CXX=yes
8789
8790     if test "$GXX" = yes; then
8791       case $host_os in aix4.012|aix4.012.*)
8792       # We only want to do this on AIX 4.2 and lower, the check
8793       # below for broken collect2 doesn't work under 4.3+
8794         collect2name=`${CC} -print-prog-name=collect2`
8795         if test -f "$collect2name" && \
8796            strings "$collect2name" | grep resolve_lib_name >/dev/null
8797         then
8798           # We have reworked collect2
8799           hardcode_direct_CXX=yes
8800         else
8801           # We have old collect2
8802           hardcode_direct_CXX=unsupported
8803           # It fails to find uninstalled libraries when the uninstalled
8804           # path is not listed in the libpath.  Setting hardcode_minus_L
8805           # to unsupported forces relinking
8806           hardcode_minus_L_CXX=yes
8807           hardcode_libdir_flag_spec_CXX='-L$libdir'
8808           hardcode_libdir_separator_CXX=
8809         fi
8810       esac
8811       shared_flag='-shared'
8812     else
8813       # not using gcc
8814       if test "$host_cpu" = ia64; then
8815         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8816         # chokes on -Wl,-G. The following line is correct:
8817         shared_flag='-G'
8818       else
8819         if test "$aix_use_runtimelinking" = yes; then
8820           shared_flag='${wl}-G'
8821         else
8822           shared_flag='${wl}-bM:SRE'
8823         fi
8824       fi
8825     fi
8826
8827     # It seems that -bexpall does not export symbols beginning with
8828     # underscore (_), so it is better to generate a list of symbols to export.
8829     always_export_symbols_CXX=yes
8830     if test "$aix_use_runtimelinking" = yes; then
8831       # Warning - without using the other runtime loading flags (-brtl),
8832       # -berok will link without error, but may produce a broken library.
8833       allow_undefined_flag_CXX='-berok'
8834       # Determine the default libpath from the value encoded in an empty executable.
8835       cat >conftest.$ac_ext <<_ACEOF
8836 #line $LINENO "configure"
8837 #include "confdefs.h"
8838
8839 #ifdef F77_DUMMY_MAIN
8840 #  ifdef __cplusplus
8841      extern "C"
8842 #  endif
8843    int F77_DUMMY_MAIN() { return 1; }
8844 #endif
8845 int
8846 main ()
8847 {
8848
8849   ;
8850   return 0;
8851 }
8852 _ACEOF
8853 rm -f conftest.$ac_objext conftest$ac_exeext
8854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8855   (eval $ac_link) 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } &&
8859          { ac_try='test -s conftest$ac_exeext'
8860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861   (eval $ac_try) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; }; then
8865
8866 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8867 }'`
8868 # Check for a 64-bit object if we didn't find anything.
8869 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; }
8870 }'`; fi
8871 else
8872   echo "$as_me: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8874 fi
8875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8876 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8877
8878       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
8879
8880       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8881      else
8882       if test "$host_cpu" = ia64; then
8883         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
8884         allow_undefined_flag_CXX="-z nodefs"
8885         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8886       else
8887         # Determine the default libpath from the value encoded in an empty executable.
8888         cat >conftest.$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8890 #include "confdefs.h"
8891
8892 #ifdef F77_DUMMY_MAIN
8893 #  ifdef __cplusplus
8894      extern "C"
8895 #  endif
8896    int F77_DUMMY_MAIN() { return 1; }
8897 #endif
8898 int
8899 main ()
8900 {
8901
8902   ;
8903   return 0;
8904 }
8905 _ACEOF
8906 rm -f conftest.$ac_objext conftest$ac_exeext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908   (eval $ac_link) 2>&5
8909   ac_status=$?
8910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911   (exit $ac_status); } &&
8912          { ac_try='test -s conftest$ac_exeext'
8913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914   (eval $ac_try) 2>&5
8915   ac_status=$?
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); }; }; then
8918
8919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8920 }'`
8921 # Check for a 64-bit object if we didn't find anything.
8922 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; }
8923 }'`; fi
8924 else
8925   echo "$as_me: failed program was:" >&5
8926 cat conftest.$ac_ext >&5
8927 fi
8928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8929 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8930
8931         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
8932         # Warning - without using the other run time loading flags,
8933         # -berok will link without error, but may produce a broken library.
8934         no_undefined_flag_CXX=' ${wl}-bernotok'
8935         allow_undefined_flag_CXX=' ${wl}-berok'
8936         # -bexpall does not export symbols beginning with underscore (_)
8937         always_export_symbols_CXX=yes
8938         # Exported symbols can be pulled into shared objects from archives
8939         whole_archive_flag_spec_CXX=' '
8940         archive_cmds_need_lc_CXX=yes
8941         # This is similar to how AIX traditionally builds it's shared libraries.
8942         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8943       fi
8944     fi
8945     ;;
8946   chorus*)
8947     case $cc_basename in
8948       *)
8949         # FIXME: insert proper C++ library support
8950         ld_shlibs_CXX=no
8951         ;;
8952     esac
8953     ;;
8954
8955   cygwin* | mingw* | pw32*)
8956     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
8957     # as there is no search path for DLLs.
8958     hardcode_libdir_flag_spec_CXX='-L$libdir'
8959     allow_undefined_flag_CXX=unsupported
8960     always_export_symbols_CXX=no
8961     enable_shared_with_static_runtimes_CXX=yes
8962
8963     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8964       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8965       # If the export-symbols file already is a .def file (1st line
8966       # is EXPORTS), use it as is; otherwise, prepend...
8967       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8968         cp $export_symbols $output_objdir/$soname.def;
8969       else
8970         echo EXPORTS > $output_objdir/$soname.def;
8971         cat $export_symbols >> $output_objdir/$soname.def;
8972       fi~
8973       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8974     else
8975       ld_shlibs_CXX=no
8976     fi
8977   ;;
8978
8979   darwin* | rhapsody*)
8980    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8981     archive_cmds_need_lc_CXX=no
8982     case "$host_os" in
8983     rhapsody* | darwin1.[012])
8984       allow_undefined_flag_CXX='-undefined suppress'
8985       ;;
8986     *) # Darwin 1.3 on
8987       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
8988       ;;
8989     esac
8990         lt_int_apple_cc_single_mod=no
8991         output_verbose_link_cmd='echo'
8992         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
8993           lt_int_apple_cc_single_mod=yes
8994         fi
8995         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
8996           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8997         else
8998         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8999       fi
9000       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9001
9002     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9003       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9004         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}'
9005       else
9006         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9007       fi
9008         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9009     hardcode_direct_CXX=no
9010     hardcode_automatic_CXX=yes
9011     hardcode_shlibpath_var_CXX=unsupported
9012     whole_archive_flag_spec_CXX='-all_load $convenience'
9013     link_all_deplibs_CXX=yes
9014    fi
9015     ;;
9016
9017   dgux*)
9018     case $cc_basename in
9019       ec++)
9020         # FIXME: insert proper C++ library support
9021         ld_shlibs_CXX=no
9022         ;;
9023       ghcx)
9024         # Green Hills C++ Compiler
9025         # FIXME: insert proper C++ library support
9026         ld_shlibs_CXX=no
9027         ;;
9028       *)
9029         # FIXME: insert proper C++ library support
9030         ld_shlibs_CXX=no
9031         ;;
9032     esac
9033     ;;
9034   freebsd12*)
9035     # C++ shared libraries reported to be fairly broken before switch to ELF
9036     ld_shlibs_CXX=no
9037     ;;
9038   freebsd-elf*)
9039     archive_cmds_need_lc_CXX=no
9040     ;;
9041   freebsd*)
9042     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9043     # conventions
9044     ld_shlibs_CXX=yes
9045     ;;
9046   gnu*)
9047     ;;
9048   hpux9*)
9049     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9050     hardcode_libdir_separator_CXX=:
9051     export_dynamic_flag_spec_CXX='${wl}-E'
9052     hardcode_direct_CXX=yes
9053     hardcode_minus_L_CXX=yes # Not in the search PATH,
9054                                 # but as the default
9055                                 # location of the library.
9056
9057     case $cc_basename in
9058     CC)
9059       # FIXME: insert proper C++ library support
9060       ld_shlibs_CXX=no
9061       ;;
9062     aCC)
9063       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'
9064       # Commands to make compiler produce verbose output that lists
9065       # what "hidden" libraries, object files and flags are used when
9066       # linking a shared library.
9067       #
9068       # There doesn't appear to be a way to prevent this compiler from
9069       # explicitly linking system object files so we need to strip them
9070       # from the output so that they don't get included in the library
9071       # dependencies.
9072       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9073       ;;
9074     *)
9075       if test "$GXX" = yes; then
9076         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'
9077       else
9078         # FIXME: insert proper C++ library support
9079         ld_shlibs_CXX=no
9080       fi
9081       ;;
9082     esac
9083     ;;
9084   hpux10*|hpux11*)
9085     if test $with_gnu_ld = no; then
9086       case "$host_cpu" in
9087       hppa*64*)
9088         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9089         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9090         hardcode_libdir_separator_CXX=:
9091         ;;
9092       ia64*)
9093         hardcode_libdir_flag_spec_CXX='-L$libdir'
9094         ;;
9095       *)
9096         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9097         hardcode_libdir_separator_CXX=:
9098         export_dynamic_flag_spec_CXX='${wl}-E'
9099         ;;
9100       esac
9101     fi
9102     case "$host_cpu" in
9103     hppa*64*)
9104       hardcode_direct_CXX=no
9105       hardcode_shlibpath_var_CXX=no
9106       ;;
9107     ia64*)
9108       hardcode_direct_CXX=no
9109       hardcode_shlibpath_var_CXX=no
9110       hardcode_minus_L_CXX=yes # Not in the search PATH,
9111                                               # but as the default
9112                                               # location of the library.
9113       ;;
9114     *)
9115       hardcode_direct_CXX=yes
9116       hardcode_minus_L_CXX=yes # Not in the search PATH,
9117                                               # but as the default
9118                                               # location of the library.
9119       ;;
9120     esac
9121
9122     case $cc_basename in
9123       CC)
9124         # FIXME: insert proper C++ library support
9125         ld_shlibs_CXX=no
9126         ;;
9127       aCC)
9128         case "$host_cpu" in
9129         hppa*64*|ia64*)
9130           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9131           ;;
9132         *)
9133           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9134           ;;
9135         esac
9136         # Commands to make compiler produce verbose output that lists
9137         # what "hidden" libraries, object files and flags are used when
9138         # linking a shared library.
9139         #
9140         # There doesn't appear to be a way to prevent this compiler from
9141         # explicitly linking system object files so we need to strip them
9142         # from the output so that they don't get included in the library
9143         # dependencies.
9144         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'
9145         ;;
9146       *)
9147         if test "$GXX" = yes; then
9148           if test $with_gnu_ld = no; then
9149             case "$host_cpu" in
9150             ia64*|hppa*64*)
9151               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9152               ;;
9153             *)
9154               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'
9155               ;;
9156             esac
9157           fi
9158         else
9159           # FIXME: insert proper C++ library support
9160           ld_shlibs_CXX=no
9161         fi
9162         ;;
9163     esac
9164     ;;
9165   irix5* | irix6*)
9166     case $cc_basename in
9167       CC)
9168         # SGI C++
9169         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9170
9171         # Archives containing C++ object files must be created using
9172         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9173         # necessary to make sure instantiated templates are included
9174         # in the archive.
9175         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9176         ;;
9177       *)
9178         if test "$GXX" = yes; then
9179           if test "$with_gnu_ld" = no; then
9180             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9181           else
9182             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'
9183           fi
9184         fi
9185         link_all_deplibs_CXX=yes
9186         ;;
9187     esac
9188     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9189     hardcode_libdir_separator_CXX=:
9190     ;;
9191   linux*)
9192     case $cc_basename in
9193       KCC)
9194         # Kuck and Associates, Inc. (KAI) C++ Compiler
9195
9196         # KCC will only create a shared library if the output file
9197         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9198         # to its proper name (with version) after linking.
9199         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'
9200         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'
9201         # Commands to make compiler produce verbose output that lists
9202         # what "hidden" libraries, object files and flags are used when
9203         # linking a shared library.
9204         #
9205         # There doesn't appear to be a way to prevent this compiler from
9206         # explicitly linking system object files so we need to strip them
9207         # from the output so that they don't get included in the library
9208         # dependencies.
9209         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'
9210
9211         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9212         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9213
9214         # Archives containing C++ object files must be created using
9215         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9216         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9217         ;;
9218       icpc)
9219         # Intel C++
9220         with_gnu_ld=yes
9221         archive_cmds_need_lc_CXX=no
9222         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9223         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'
9224         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9225         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9226         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9227         ;;
9228       cxx)
9229         # Compaq C++
9230         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9231         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'
9232
9233         runpath_var=LD_RUN_PATH
9234         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9235         hardcode_libdir_separator_CXX=:
9236
9237         # Commands to make compiler produce verbose output that lists
9238         # what "hidden" libraries, object files and flags are used when
9239         # linking a shared library.
9240         #
9241         # There doesn't appear to be a way to prevent this compiler from
9242         # explicitly linking system object files so we need to strip them
9243         # from the output so that they don't get included in the library
9244         # dependencies.
9245         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'
9246         ;;
9247     esac
9248     ;;
9249   lynxos*)
9250     # FIXME: insert proper C++ library support
9251     ld_shlibs_CXX=no
9252     ;;
9253   m88k*)
9254     # FIXME: insert proper C++ library support
9255     ld_shlibs_CXX=no
9256     ;;
9257   mvs*)
9258     case $cc_basename in
9259       cxx)
9260         # FIXME: insert proper C++ library support
9261         ld_shlibs_CXX=no
9262         ;;
9263       *)
9264         # FIXME: insert proper C++ library support
9265         ld_shlibs_CXX=no
9266         ;;
9267     esac
9268     ;;
9269   netbsd*)
9270     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9271       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9272       wlarc=
9273       hardcode_libdir_flag_spec_CXX='-R$libdir'
9274       hardcode_direct_CXX=yes
9275       hardcode_shlibpath_var_CXX=no
9276     fi
9277     # Workaround some broken pre-1.5 toolchains
9278     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9279     ;;
9280   osf3*)
9281     case $cc_basename in
9282       KCC)
9283         # Kuck and Associates, Inc. (KAI) C++ Compiler
9284
9285         # KCC will only create a shared library if the output file
9286         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9287         # to its proper name (with version) after linking.
9288         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'
9289
9290         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9291         hardcode_libdir_separator_CXX=:
9292
9293         # Archives containing C++ object files must be created using
9294         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9295         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9296
9297         ;;
9298       RCC)
9299         # Rational C++ 2.4.1
9300         # FIXME: insert proper C++ library support
9301         ld_shlibs_CXX=no
9302         ;;
9303       cxx)
9304         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9305         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9306
9307         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9308         hardcode_libdir_separator_CXX=:
9309
9310         # Commands to make compiler produce verbose output that lists
9311         # what "hidden" libraries, object files and flags are used when
9312         # linking a shared library.
9313         #
9314         # There doesn't appear to be a way to prevent this compiler from
9315         # explicitly linking system object files so we need to strip them
9316         # from the output so that they don't get included in the library
9317         # dependencies.
9318         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'
9319         ;;
9320       *)
9321         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9322           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9323           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9324
9325           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9326           hardcode_libdir_separator_CXX=:
9327
9328           # Commands to make compiler produce verbose output that lists
9329           # what "hidden" libraries, object files and flags are used when
9330           # linking a shared library.
9331           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9332
9333         else
9334           # FIXME: insert proper C++ library support
9335           ld_shlibs_CXX=no
9336         fi
9337         ;;
9338     esac
9339     ;;
9340   osf4* | osf5*)
9341     case $cc_basename in
9342       KCC)
9343         # Kuck and Associates, Inc. (KAI) C++ Compiler
9344
9345         # KCC will only create a shared library if the output file
9346         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9347         # to its proper name (with version) after linking.
9348         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'
9349
9350         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9351         hardcode_libdir_separator_CXX=:
9352
9353         # Archives containing C++ object files must be created using
9354         # the KAI C++ compiler.
9355         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9356         ;;
9357       RCC)
9358         # Rational C++ 2.4.1
9359         # FIXME: insert proper C++ library support
9360         ld_shlibs_CXX=no
9361         ;;
9362       cxx)
9363         allow_undefined_flag_CXX=' -expect_unresolved \*'
9364         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9365         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9366           echo "-hidden">> $lib.exp~
9367           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
9368           $rm $lib.exp'
9369
9370         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9371         hardcode_libdir_separator_CXX=:
9372
9373         # Commands to make compiler produce verbose output that lists
9374         # what "hidden" libraries, object files and flags are used when
9375         # linking a shared library.
9376         #
9377         # There doesn't appear to be a way to prevent this compiler from
9378         # explicitly linking system object files so we need to strip them
9379         # from the output so that they don't get included in the library
9380         # dependencies.
9381         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'
9382         ;;
9383       *)
9384         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9385           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9386          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9387
9388           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9389           hardcode_libdir_separator_CXX=:
9390
9391           # Commands to make compiler produce verbose output that lists
9392           # what "hidden" libraries, object files and flags are used when
9393           # linking a shared library.
9394           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9395
9396         else
9397           # FIXME: insert proper C++ library support
9398           ld_shlibs_CXX=no
9399         fi
9400         ;;
9401     esac
9402     ;;
9403   psos*)
9404     # FIXME: insert proper C++ library support
9405     ld_shlibs_CXX=no
9406     ;;
9407   sco*)
9408     archive_cmds_need_lc_CXX=no
9409     case $cc_basename in
9410       CC)
9411         # FIXME: insert proper C++ library support
9412         ld_shlibs_CXX=no
9413         ;;
9414       *)
9415         # FIXME: insert proper C++ library support
9416         ld_shlibs_CXX=no
9417         ;;
9418     esac
9419     ;;
9420   sunos4*)
9421     case $cc_basename in
9422       CC)
9423         # Sun C++ 4.x
9424         # FIXME: insert proper C++ library support
9425         ld_shlibs_CXX=no
9426         ;;
9427       lcc)
9428         # Lucid
9429         # FIXME: insert proper C++ library support
9430         ld_shlibs_CXX=no
9431         ;;
9432       *)
9433         # FIXME: insert proper C++ library support
9434         ld_shlibs_CXX=no
9435         ;;
9436     esac
9437     ;;
9438   solaris*)
9439     case $cc_basename in
9440       CC)
9441         # Sun C++ 4.2, 5.x and Centerline C++
9442         no_undefined_flag_CXX=' -zdefs'
9443         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9444         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9445         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9446
9447         hardcode_libdir_flag_spec_CXX='-R$libdir'
9448         hardcode_shlibpath_var_CXX=no
9449         case $host_os in
9450           solaris2.0-5 | solaris2.0-5.*) ;;
9451           *)
9452             # The C++ compiler is used as linker so we must use $wl
9453             # flag to pass the commands to the underlying system
9454             # linker.
9455             # Supported since Solaris 2.6 (maybe 2.5.1?)
9456             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9457             ;;
9458         esac
9459         link_all_deplibs_CXX=yes
9460
9461         # Commands to make compiler produce verbose output that lists
9462         # what "hidden" libraries, object files and flags are used when
9463         # linking a shared library.
9464         #
9465         # There doesn't appear to be a way to prevent this compiler from
9466         # explicitly linking system object files so we need to strip them
9467         # from the output so that they don't get included in the library
9468         # dependencies.
9469         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9470
9471         # Archives containing C++ object files must be created using
9472         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9473         # necessary to make sure instantiated templates are included
9474         # in the archive.
9475         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9476         ;;
9477       gcx)
9478         # Green Hills C++ Compiler
9479         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9480
9481         # The C++ compiler must be used to create the archive.
9482         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9483         ;;
9484       *)
9485         # GNU C++ compiler with Solaris linker
9486         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9487           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9488           if $CC --version | grep -v '^2\.7' > /dev/null; then
9489             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9490             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9491                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9492
9493             # Commands to make compiler produce verbose output that lists
9494             # what "hidden" libraries, object files and flags are used when
9495             # linking a shared library.
9496             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9497           else
9498             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9499             # platform.
9500             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9501             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9502                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9503
9504             # Commands to make compiler produce verbose output that lists
9505             # what "hidden" libraries, object files and flags are used when
9506             # linking a shared library.
9507             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9508           fi
9509
9510           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
9511         fi
9512         ;;
9513     esac
9514     ;;
9515   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9516     archive_cmds_need_lc_CXX=no
9517     ;;
9518   tandem*)
9519     case $cc_basename in
9520       NCC)
9521         # NonStop-UX NCC 3.20
9522         # FIXME: insert proper C++ library support
9523         ld_shlibs_CXX=no
9524         ;;
9525       *)
9526         # FIXME: insert proper C++ library support
9527         ld_shlibs_CXX=no
9528         ;;
9529     esac
9530     ;;
9531   vxworks*)
9532     # FIXME: insert proper C++ library support
9533     ld_shlibs_CXX=no
9534     ;;
9535   *)
9536     # FIXME: insert proper C++ library support
9537     ld_shlibs_CXX=no
9538     ;;
9539 esac
9540 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
9541 echo "${ECHO_T}$ld_shlibs_CXX" >&6
9542 test "$ld_shlibs_CXX" = no && can_build_shared=no
9543
9544 GCC_CXX="$GXX"
9545 LD_CXX="$LD"
9546
9547 ## CAVEAT EMPTOR:
9548 ## There is no encapsulation within the following macros, do not change
9549 ## the running order or otherwise move them around unless you know exactly
9550 ## what you are doing...
9551
9552 cat > conftest.$ac_ext <<EOF
9553 class Foo
9554 {
9555 public:
9556   Foo (void) { a = 0; }
9557 private:
9558   int a;
9559 };
9560 EOF
9561
9562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563   (eval $ac_compile) 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); }; then
9567   # Parse the compiler output and extract the necessary
9568   # objects, libraries and library flags.
9569
9570   # Sentinel used to keep track of whether or not we are before
9571   # the conftest object file.
9572   pre_test_object_deps_done=no
9573
9574   # The `*' in the case matches for architectures that use `case' in
9575   # $output_verbose_cmd can trigger glob expansion during the loop
9576   # eval without this substitution.
9577   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
9578
9579   for p in `eval $output_verbose_link_cmd`; do
9580     case $p in
9581
9582     -L* | -R* | -l*)
9583        # Some compilers place space between "-{L,R}" and the path.
9584        # Remove the space.
9585        if test $p = "-L" \
9586           || test $p = "-R"; then
9587          prev=$p
9588          continue
9589        else
9590          prev=
9591        fi
9592
9593        if test "$pre_test_object_deps_done" = no; then
9594          case $p in
9595          -L* | -R*)
9596            # Internal compiler library paths should come after those
9597            # provided the user.  The postdeps already come after the
9598            # user supplied libs so there is no need to process them.
9599            if test -z "$compiler_lib_search_path_CXX"; then
9600              compiler_lib_search_path_CXX="${prev}${p}"
9601            else
9602              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
9603            fi
9604            ;;
9605          # The "-l" case would never come before the object being
9606          # linked, so don't bother handling this case.
9607          esac
9608        else
9609          if test -z "$postdeps_CXX"; then
9610            postdeps_CXX="${prev}${p}"
9611          else
9612            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
9613          fi
9614        fi
9615        ;;
9616
9617     *.$objext)
9618        # This assumes that the test object file only shows up
9619        # once in the compiler output.
9620        if test "$p" = "conftest.$objext"; then
9621          pre_test_object_deps_done=yes
9622          continue
9623        fi
9624
9625        if test "$pre_test_object_deps_done" = no; then
9626          if test -z "$predep_objects_CXX"; then
9627            predep_objects_CXX="$p"
9628          else
9629            predep_objects_CXX="$predep_objects_CXX $p"
9630          fi
9631        else
9632          if test -z "$postdep_objects_CXX"; then
9633            postdep_objects_CXX="$p"
9634          else
9635            postdep_objects_CXX="$postdep_objects_CXX $p"
9636          fi
9637        fi
9638        ;;
9639
9640     *) ;; # Ignore the rest.
9641
9642     esac
9643   done
9644
9645   # Clean up.
9646   rm -f a.out a.exe
9647 else
9648   echo "libtool.m4: error: problem compiling CXX test program"
9649 fi
9650
9651 $rm -f confest.$objext
9652
9653 case " $postdeps_CXX " in
9654 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
9655 esac
9656
9657 lt_prog_compiler_wl_CXX=
9658 lt_prog_compiler_pic_CXX=
9659 lt_prog_compiler_static_CXX=
9660
9661 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9662 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9663
9664   # C++ specific cases for pic, static, wl, etc.
9665   if test "$GXX" = yes; then
9666     lt_prog_compiler_wl_CXX='-Wl,'
9667     lt_prog_compiler_static_CXX='-static'
9668
9669     case $host_os in
9670     aix*)
9671       # All AIX code is PIC.
9672       if test "$host_cpu" = ia64; then
9673         # AIX 5 now supports IA64 processor
9674         lt_prog_compiler_static_CXX='-Bstatic'
9675       fi
9676       ;;
9677     amigaos*)
9678       # FIXME: we need at least 68020 code to build shared libraries, but
9679       # adding the `-m68020' flag to GCC prevents building anything better,
9680       # like `-m68040'.
9681       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
9682       ;;
9683     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9684       # PIC is the default for these OSes.
9685       ;;
9686     mingw* | os2* | pw32*)
9687       # This hack is so that the source file can tell whether it is being
9688       # built for inclusion in a dll (and should export symbols for example).
9689       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9690       ;;
9691     darwin* | rhapsody*)
9692       # PIC is the default on this platform
9693       # Common symbols not allowed in MH_DYLIB files
9694       lt_prog_compiler_pic_CXX='-fno-common'
9695       ;;
9696     *djgpp*)
9697       # DJGPP does not support shared libraries at all
9698       lt_prog_compiler_pic_CXX=
9699       ;;
9700     sysv4*MP*)
9701       if test -d /usr/nec; then
9702         lt_prog_compiler_pic_CXX=-Kconform_pic
9703       fi
9704       ;;
9705     hpux*)
9706       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9707       # not for PA HP-UX.
9708       case "$host_cpu" in
9709       hppa*64*|ia64*)
9710         ;;
9711       *)
9712         lt_prog_compiler_pic_CXX='-fPIC'
9713         ;;
9714       esac
9715       ;;
9716     *)
9717       lt_prog_compiler_pic_CXX='-fPIC'
9718       ;;
9719     esac
9720   else
9721     case $host_os in
9722       aix4* | aix5*)
9723         # All AIX code is PIC.
9724         if test "$host_cpu" = ia64; then
9725           # AIX 5 now supports IA64 processor
9726           lt_prog_compiler_static_CXX='-Bstatic'
9727         else
9728           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
9729         fi
9730         ;;
9731       chorus*)
9732         case $cc_basename in
9733         cxch68)
9734           # Green Hills C++ Compiler
9735           # _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"
9736           ;;
9737         esac
9738         ;;
9739       dgux*)
9740         case $cc_basename in
9741           ec++)
9742             lt_prog_compiler_pic_CXX='-KPIC'
9743             ;;
9744           ghcx)
9745             # Green Hills C++ Compiler
9746             lt_prog_compiler_pic_CXX='-pic'
9747             ;;
9748           *)
9749             ;;
9750         esac
9751         ;;
9752       freebsd*)
9753         # FreeBSD uses GNU C++
9754         ;;
9755       hpux9* | hpux10* | hpux11*)
9756         case $cc_basename in
9757           CC)
9758             lt_prog_compiler_wl_CXX='-Wl,'
9759             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9760             if test "$host_cpu" != ia64; then
9761               lt_prog_compiler_pic_CXX='+Z'
9762             fi
9763             ;;
9764           aCC)
9765             lt_prog_compiler_wl_CXX='-Wl,'
9766             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
9767             case "$host_cpu" in
9768             hppa*64*|ia64*)
9769               # +Z the default
9770               ;;
9771             *)
9772               lt_prog_compiler_pic_CXX='+Z'
9773               ;;
9774             esac
9775             ;;
9776           *)
9777             ;;
9778         esac
9779         ;;
9780       irix5* | irix6* | nonstopux*)
9781         case $cc_basename in
9782           CC)
9783             lt_prog_compiler_wl_CXX='-Wl,'
9784             lt_prog_compiler_static_CXX='-non_shared'
9785             # CC pic flag -KPIC is the default.
9786             ;;
9787           *)
9788             ;;
9789         esac
9790         ;;
9791       linux*)
9792         case $cc_basename in
9793           KCC)
9794             # KAI C++ Compiler
9795             lt_prog_compiler_wl_CXX='--backend -Wl,'
9796             lt_prog_compiler_pic_CXX='-fPIC'
9797             ;;
9798           icpc)
9799             # Intel C++
9800             lt_prog_compiler_wl_CXX='-Wl,'
9801             lt_prog_compiler_pic_CXX='-KPIC'
9802             lt_prog_compiler_static_CXX='-static'
9803             ;;
9804           cxx)
9805             # Compaq C++
9806             # Make sure the PIC flag is empty.  It appears that all Alpha
9807             # Linux and Compaq Tru64 Unix objects are PIC.
9808             lt_prog_compiler_pic_CXX=
9809             lt_prog_compiler_static_CXX='-non_shared'
9810             ;;
9811           *)
9812             ;;
9813         esac
9814         ;;
9815       lynxos*)
9816         ;;
9817       m88k*)
9818         ;;
9819       mvs*)
9820         case $cc_basename in
9821           cxx)
9822             lt_prog_compiler_pic_CXX='-W c,exportall'
9823             ;;
9824           *)
9825             ;;
9826         esac
9827         ;;
9828       netbsd*)
9829         ;;
9830       osf3* | osf4* | osf5*)
9831         case $cc_basename in
9832           KCC)
9833             lt_prog_compiler_wl_CXX='--backend -Wl,'
9834             ;;
9835           RCC)
9836             # Rational C++ 2.4.1
9837             lt_prog_compiler_pic_CXX='-pic'
9838             ;;
9839           cxx)
9840             # Digital/Compaq C++
9841             lt_prog_compiler_wl_CXX='-Wl,'
9842             # Make sure the PIC flag is empty.  It appears that all Alpha
9843             # Linux and Compaq Tru64 Unix objects are PIC.
9844             lt_prog_compiler_pic_CXX=
9845             lt_prog_compiler_static_CXX='-non_shared'
9846             ;;
9847           *)
9848             ;;
9849         esac
9850         ;;
9851       psos*)
9852         ;;
9853       sco*)
9854         case $cc_basename in
9855           CC)
9856             lt_prog_compiler_pic_CXX='-fPIC'
9857             ;;
9858           *)
9859             ;;
9860         esac
9861         ;;
9862       solaris*)
9863         case $cc_basename in
9864           CC)
9865             # Sun C++ 4.2, 5.x and Centerline C++
9866             lt_prog_compiler_pic_CXX='-KPIC'
9867             lt_prog_compiler_static_CXX='-Bstatic'
9868             lt_prog_compiler_wl_CXX='-Qoption ld '
9869             ;;
9870           gcx)
9871             # Green Hills C++ Compiler
9872             lt_prog_compiler_pic_CXX='-PIC'
9873             ;;
9874           *)
9875             ;;
9876         esac
9877         ;;
9878       sunos4*)
9879         case $cc_basename in
9880           CC)
9881             # Sun C++ 4.x
9882             lt_prog_compiler_pic_CXX='-pic'
9883             lt_prog_compiler_static_CXX='-Bstatic'
9884             ;;
9885           lcc)
9886             # Lucid
9887             lt_prog_compiler_pic_CXX='-pic'
9888             ;;
9889           *)
9890             ;;
9891         esac
9892         ;;
9893       tandem*)
9894         case $cc_basename in
9895           NCC)
9896             # NonStop-UX NCC 3.20
9897             lt_prog_compiler_pic_CXX='-KPIC'
9898             ;;
9899           *)
9900             ;;
9901         esac
9902         ;;
9903       unixware*)
9904         ;;
9905       vxworks*)
9906         ;;
9907       *)
9908         lt_prog_compiler_can_build_shared_CXX=no
9909         ;;
9910     esac
9911   fi
9912
9913 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
9914 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
9915
9916 #
9917 # Check to make sure the PIC flag actually works.
9918 #
9919 if test -n "$lt_prog_compiler_pic_CXX"; then
9920   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
9921 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
9922 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
9923   echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925   lt_prog_compiler_pic_works_CXX=no
9926   ac_outfile=conftest.$ac_objext
9927    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9928    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
9929    # Insert the option either (1) after the last *FLAGS variable, or
9930    # (2) before a word containing "conftest.", or (3) at the end.
9931    # Note that $ac_compile itself does not contain backslashes and begins
9932    # with a dollar sign (not a hyphen), so the echo should work correctly.
9933    # The option is referenced via a variable to avoid confusing sed.
9934    lt_compile=`echo "$ac_compile" | $SED \
9935    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9936    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9937    -e 's:$: $lt_compiler_flag:'`
9938    (eval echo "\"\$as_me:9938: $lt_compile\"" >&5)
9939    (eval "$lt_compile" 2>conftest.err)
9940    ac_status=$?
9941    cat conftest.err >&5
9942    echo "$as_me:9942: \$? = $ac_status" >&5
9943    if (exit $ac_status) && test -s "$ac_outfile"; then
9944      # The compiler can only warn and ignore the option if not recognized
9945      # So say no if there are warnings
9946      if test ! -s conftest.err; then
9947        lt_prog_compiler_pic_works_CXX=yes
9948      fi
9949    fi
9950    $rm conftest*
9951
9952 fi
9953 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
9954 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
9955
9956 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
9957     case $lt_prog_compiler_pic_CXX in
9958      "" | " "*) ;;
9959      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
9960      esac
9961 else
9962     lt_prog_compiler_pic_CXX=
9963      lt_prog_compiler_can_build_shared_CXX=no
9964 fi
9965
9966 fi
9967 case "$host_os" in
9968   # For platforms which do not support PIC, -DPIC is meaningless:
9969   *djgpp*)
9970     lt_prog_compiler_pic_CXX=
9971     ;;
9972   *)
9973     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
9974     ;;
9975 esac
9976
9977 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9978 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9979 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
9980   echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982   lt_cv_prog_compiler_c_o_CXX=no
9983    $rm -r conftest 2>/dev/null
9984    mkdir conftest
9985    cd conftest
9986    mkdir out
9987    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9988
9989    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
9990    # that will create temporary files in the current directory regardless of
9991    # the output directory.  Thus, making CWD read-only will cause this test
9992    # to fail, enabling locking or at least warning the user not to do parallel
9993    # builds.
9994    chmod -w .
9995
9996    lt_compiler_flag="-o out/conftest2.$ac_objext"
9997    # Insert the option either (1) after the last *FLAGS variable, or
9998    # (2) before a word containing "conftest.", or (3) at the end.
9999    # Note that $ac_compile itself does not contain backslashes and begins
10000    # with a dollar sign (not a hyphen), so the echo should work correctly.
10001    lt_compile=`echo "$ac_compile" | $SED \
10002    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10004    -e 's:$: $lt_compiler_flag:'`
10005    (eval echo "\"\$as_me:10005: $lt_compile\"" >&5)
10006    (eval "$lt_compile" 2>out/conftest.err)
10007    ac_status=$?
10008    cat out/conftest.err >&5
10009    echo "$as_me:10009: \$? = $ac_status" >&5
10010    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10011    then
10012      # The compiler can only warn and ignore the option if not recognized
10013      # So say no if there are warnings
10014      if test ! -s out/conftest.err; then
10015        lt_cv_prog_compiler_c_o_CXX=yes
10016      fi
10017    fi
10018    chmod u+w .
10019    $rm conftest* out/*
10020    rmdir out
10021    cd ..
10022    rmdir conftest
10023    $rm conftest*
10024
10025 fi
10026 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10027 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10028
10029
10030 hard_links="nottested"
10031 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10032   # do not overwrite the value of need_locks provided by the user
10033   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10034 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10035   hard_links=yes
10036   $rm conftest*
10037   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10038   touch conftest.a
10039   ln conftest.a conftest.b 2>&5 || hard_links=no
10040   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10041   echo "$as_me:$LINENO: result: $hard_links" >&5
10042 echo "${ECHO_T}$hard_links" >&6
10043   if test "$hard_links" = no; then
10044     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10045 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10046     need_locks=warn
10047   fi
10048 else
10049   need_locks=no
10050 fi
10051
10052 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10053 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10054
10055   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10056   case $host_os in
10057   aix4* | aix5*)
10058     # If we're using GNU nm, then we don't want the "-C" option.
10059     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10060     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10061       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'
10062     else
10063       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'
10064     fi
10065     ;;
10066   pw32*)
10067     export_symbols_cmds_CXX="$ltdll_cmds"
10068   ;;
10069   cygwin* | mingw*)
10070     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10071   ;;
10072   *)
10073     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10074   ;;
10075   esac
10076
10077 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10078 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10079 test "$ld_shlibs_CXX" = no && can_build_shared=no
10080
10081 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10082 if test "$GCC" = yes; then
10083   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10084 fi
10085
10086 #
10087 # Do we need to explicitly link libc?
10088 #
10089 case "x$archive_cmds_need_lc_CXX" in
10090 x|xyes)
10091   # Assume -lc should be added
10092   archive_cmds_need_lc_CXX=yes
10093
10094   if test "$enable_shared" = yes && test "$GCC" = yes; then
10095     case $archive_cmds_CXX in
10096     *'~'*)
10097       # FIXME: we may have to deal with multi-command sequences.
10098       ;;
10099     '$CC '*)
10100       # Test whether the compiler implicitly links with -lc since on some
10101       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10102       # to ld, don't add -lc before -lgcc.
10103       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10104 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10105       $rm conftest*
10106       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10107
10108       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10109   (eval $ac_compile) 2>&5
10110   ac_status=$?
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); } 2>conftest.err; then
10113         soname=conftest
10114         lib=conftest
10115         libobjs=conftest.$ac_objext
10116         deplibs=
10117         wl=$lt_prog_compiler_wl_CXX
10118         compiler_flags=-v
10119         linker_flags=-v
10120         verstring=
10121         output_objdir=.
10122         libname=conftest
10123         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10124         allow_undefined_flag_CXX=
10125         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10126   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10127   ac_status=$?
10128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129   (exit $ac_status); }
10130         then
10131           archive_cmds_need_lc_CXX=no
10132         else
10133           archive_cmds_need_lc_CXX=yes
10134         fi
10135         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10136       else
10137         cat conftest.err 1>&5
10138       fi
10139       $rm conftest*
10140       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10141 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10142       ;;
10143     esac
10144   fi
10145   ;;
10146 esac
10147
10148 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10149 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10150 hardcode_action_CXX=
10151 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10152    test -n "$runpath_var CXX" || \
10153    test "X$hardcode_automatic_CXX"="Xyes" ; then
10154
10155   # We can hardcode non-existant directories.
10156   if test "$hardcode_direct_CXX" != no &&
10157      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10158      # have to relink, otherwise we might link with an installed library
10159      # when we should be linking with a yet-to-be-installed one
10160      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10161      test "$hardcode_minus_L_CXX" != no; then
10162     # Linking always hardcodes the temporary library directory.
10163     hardcode_action_CXX=relink
10164   else
10165     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10166     hardcode_action_CXX=immediate
10167   fi
10168 else
10169   # We cannot hardcode anything, or else we can only hardcode existing
10170   # directories.
10171   hardcode_action_CXX=unsupported
10172 fi
10173 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10174 echo "${ECHO_T}$hardcode_action_CXX" >&6
10175
10176 if test "$hardcode_action_CXX" = relink; then
10177   # Fast installation is not supported
10178   enable_fast_install=no
10179 elif test "$shlibpath_overrides_runpath" = yes ||
10180      test "$enable_shared" = no; then
10181   # Fast installation is not necessary
10182   enable_fast_install=needless
10183 fi
10184
10185 striplib=
10186 old_striplib=
10187 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10188 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10189 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10190   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10191   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10192   echo "$as_me:$LINENO: result: yes" >&5
10193 echo "${ECHO_T}yes" >&6
10194 else
10195 # FIXME - insert some real tests, host_os isn't really good enough
10196   case $host_os in
10197    darwin*)
10198        if test -n "$STRIP" ; then
10199          striplib="$STRIP -x"
10200          echo "$as_me:$LINENO: result: yes" >&5
10201 echo "${ECHO_T}yes" >&6
10202        else
10203   echo "$as_me:$LINENO: result: no" >&5
10204 echo "${ECHO_T}no" >&6
10205 fi
10206        ;;
10207    *)
10208   echo "$as_me:$LINENO: result: no" >&5
10209 echo "${ECHO_T}no" >&6
10210     ;;
10211   esac
10212 fi
10213
10214 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10215 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10216 library_names_spec=
10217 libname_spec='lib$name'
10218 soname_spec=
10219 shrext=".so"
10220 postinstall_cmds=
10221 postuninstall_cmds=
10222 finish_cmds=
10223 finish_eval=
10224 shlibpath_var=
10225 shlibpath_overrides_runpath=unknown
10226 version_type=none
10227 dynamic_linker="$host_os ld.so"
10228 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10229 if test "$GCC" = yes; then
10230   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10231   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10232     # if the path contains ";" then we assume it to be the separator
10233     # otherwise default to the standard path separator (i.e. ":") - it is
10234     # assumed that no part of a normal pathname contains ";" but that should
10235     # okay in the real world where ";" in dirpaths is itself problematic.
10236     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10237   else
10238     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10239   fi
10240 else
10241   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10242 fi
10243 need_lib_prefix=unknown
10244 hardcode_into_libs=no
10245
10246 # when you set need_version to no, make sure it does not cause -set_version
10247 # flags to be left without arguments
10248 need_version=unknown
10249
10250 case $host_os in
10251 aix3*)
10252   version_type=linux
10253   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10254   shlibpath_var=LIBPATH
10255
10256   # AIX 3 has no versioning support, so we append a major version to the name.
10257   soname_spec='${libname}${release}${shared_ext}$major'
10258   ;;
10259
10260 aix4* | aix5*)
10261   version_type=linux
10262   need_lib_prefix=no
10263   need_version=no
10264   hardcode_into_libs=yes
10265   if test "$host_cpu" = ia64; then
10266     # AIX 5 supports IA64
10267     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10268     shlibpath_var=LD_LIBRARY_PATH
10269   else
10270     # With GCC up to 2.95.x, collect2 would create an import file
10271     # for dependence libraries.  The import file would start with
10272     # the line `#! .'.  This would cause the generated library to
10273     # depend on `.', always an invalid library.  This was fixed in
10274     # development snapshots of GCC prior to 3.0.
10275     case $host_os in
10276       aix4 | aix4.[01] | aix4.[01].*)
10277       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10278            echo ' yes '
10279            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10280         :
10281       else
10282         can_build_shared=no
10283       fi
10284       ;;
10285     esac
10286     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10287     # soname into executable. Probably we can add versioning support to
10288     # collect2, so additional links can be useful in future.
10289     if test "$aix_use_runtimelinking" = yes; then
10290       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10291       # instead of lib<name>.a to let people know that these are not
10292       # typical AIX shared libraries.
10293       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294     else
10295       # We preserve .a as extension for shared libraries through AIX4.2
10296       # and later when we are not doing run time linking.
10297       library_names_spec='${libname}${release}.a $libname.a'
10298       soname_spec='${libname}${release}${shared_ext}$major'
10299     fi
10300     shlibpath_var=LIBPATH
10301   fi
10302   ;;
10303
10304 amigaos*)
10305   library_names_spec='$libname.ixlibrary $libname.a'
10306   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10307   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'
10308   ;;
10309
10310 beos*)
10311   library_names_spec='${libname}${shared_ext}'
10312   dynamic_linker="$host_os ld.so"
10313   shlibpath_var=LIBRARY_PATH
10314   ;;
10315
10316 bsdi4*)
10317   version_type=linux
10318   need_version=no
10319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320   soname_spec='${libname}${release}${shared_ext}$major'
10321   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10322   shlibpath_var=LD_LIBRARY_PATH
10323   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10324   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10325   # the default ld.so.conf also contains /usr/contrib/lib and
10326   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10327   # libtool to hard-code these into programs
10328   ;;
10329
10330 cygwin* | mingw* | pw32*)
10331   version_type=windows
10332   shrext=".dll"
10333   need_version=no
10334   need_lib_prefix=no
10335
10336   case $GCC,$host_os in
10337   yes,cygwin* | yes,mingw* | yes,pw32*)
10338     library_names_spec='$libname.dll.a'
10339     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10340     postinstall_cmds='base_file=`basename \${file}`~
10341       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10342       dldir=$destdir/`dirname \$dlpath`~
10343       test -d \$dldir || mkdir -p \$dldir~
10344       $install_prog $dir/$dlname \$dldir/$dlname'
10345     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10346       dlpath=$dir/\$dldll~
10347        $rm \$dlpath'
10348     shlibpath_overrides_runpath=yes
10349
10350     case $host_os in
10351     cygwin*)
10352       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10353       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10354       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10355       ;;
10356     mingw*)
10357       # MinGW DLLs use traditional 'lib' prefix
10358       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10359       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10360       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10361         # It is most probably a Windows format PATH printed by
10362         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10363         # path with ; separators, and with drive letters. We can handle the
10364         # drive letters (cygwin fileutils understands them), so leave them,
10365         # especially as we might pass files found there to a mingw objdump,
10366         # which wouldn't understand a cygwinified path. Ahh.
10367         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10368       else
10369         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10370       fi
10371       ;;
10372     pw32*)
10373       # pw32 DLLs use 'pw' prefix rather than 'lib'
10374       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10375       ;;
10376     esac
10377     ;;
10378
10379   *)
10380     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10381     ;;
10382   esac
10383   dynamic_linker='Win32 ld.exe'
10384   # FIXME: first we should search . and the directory the executable is in
10385   shlibpath_var=PATH
10386   ;;
10387
10388 darwin* | rhapsody*)
10389   dynamic_linker="$host_os dyld"
10390   version_type=darwin
10391   need_lib_prefix=no
10392   need_version=no
10393   # FIXME: Relying on posixy $() will cause problems for
10394   #        cross-compilation, but unfortunately the echo tests do not
10395   #        yet detect zsh echo's removal of \ escapes.
10396   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10397   soname_spec='${libname}${release}${major}$shared_ext'
10398   shlibpath_overrides_runpath=yes
10399   shlibpath_var=DYLD_LIBRARY_PATH
10400   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10401   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10402   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10403   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"`
10404   fi
10405   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10406   ;;
10407
10408 dgux*)
10409   version_type=linux
10410   need_lib_prefix=no
10411   need_version=no
10412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10413   soname_spec='${libname}${release}${shared_ext}$major'
10414   shlibpath_var=LD_LIBRARY_PATH
10415   ;;
10416
10417 freebsd1*)
10418   dynamic_linker=no
10419   ;;
10420
10421 freebsd*)
10422   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10423   version_type=freebsd-$objformat
10424   case $version_type in
10425     freebsd-elf*)
10426       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10427       need_version=no
10428       need_lib_prefix=no
10429       ;;
10430     freebsd-*)
10431       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10432       need_version=yes
10433       ;;
10434   esac
10435   shlibpath_var=LD_LIBRARY_PATH
10436   case $host_os in
10437   freebsd2*)
10438     shlibpath_overrides_runpath=yes
10439     ;;
10440   freebsd3.01* | freebsdelf3.01*)
10441     shlibpath_overrides_runpath=yes
10442     hardcode_into_libs=yes
10443     ;;
10444   *) # from 3.2 on
10445     shlibpath_overrides_runpath=no
10446     hardcode_into_libs=yes
10447     ;;
10448   esac
10449   ;;
10450
10451 gnu*)
10452   version_type=linux
10453   need_lib_prefix=no
10454   need_version=no
10455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10456   soname_spec='${libname}${release}${shared_ext}$major'
10457   shlibpath_var=LD_LIBRARY_PATH
10458   hardcode_into_libs=yes
10459   ;;
10460
10461 hpux9* | hpux10* | hpux11*)
10462   # Give a soname corresponding to the major version so that dld.sl refuses to
10463   # link against other versions.
10464   version_type=sunos
10465   need_lib_prefix=no
10466   need_version=no
10467   case "$host_cpu" in
10468   ia64*)
10469     shrext='.so'
10470     hardcode_into_libs=yes
10471     dynamic_linker="$host_os dld.so"
10472     shlibpath_var=LD_LIBRARY_PATH
10473     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10474     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475     soname_spec='${libname}${release}${shared_ext}$major'
10476     if test "X$HPUX_IA64_MODE" = X32; then
10477       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10478     else
10479       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10480     fi
10481     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10482     ;;
10483    hppa*64*)
10484      shrext='.sl'
10485      hardcode_into_libs=yes
10486      dynamic_linker="$host_os dld.sl"
10487      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10488      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10489      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490      soname_spec='${libname}${release}${shared_ext}$major'
10491      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10492      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10493      ;;
10494    *)
10495     shrext='.sl'
10496     dynamic_linker="$host_os dld.sl"
10497     shlibpath_var=SHLIB_PATH
10498     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500     soname_spec='${libname}${release}${shared_ext}$major'
10501     ;;
10502   esac
10503   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10504   postinstall_cmds='chmod 555 $lib'
10505   ;;
10506
10507 irix5* | irix6* | nonstopux*)
10508   case $host_os in
10509     nonstopux*) version_type=nonstopux ;;
10510     *)
10511         if test "$lt_cv_prog_gnu_ld" = yes; then
10512                 version_type=linux
10513         else
10514                 version_type=irix
10515         fi ;;
10516   esac
10517   need_lib_prefix=no
10518   need_version=no
10519   soname_spec='${libname}${release}${shared_ext}$major'
10520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10521   case $host_os in
10522   irix5* | nonstopux*)
10523     libsuff= shlibsuff=
10524     ;;
10525   *)
10526     case $LD in # libtool.m4 will add one of these switches to LD
10527     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10528       libsuff= shlibsuff= libmagic=32-bit;;
10529     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10530       libsuff=32 shlibsuff=N32 libmagic=N32;;
10531     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10532       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10533     *) libsuff= shlibsuff= libmagic=never-match;;
10534     esac
10535     ;;
10536   esac
10537   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10538   shlibpath_overrides_runpath=no
10539   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10540   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10541   hardcode_into_libs=yes
10542   ;;
10543
10544 # No shared lib support for Linux oldld, aout, or coff.
10545 linux*oldld* | linux*aout* | linux*coff*)
10546   dynamic_linker=no
10547   ;;
10548
10549 # This must be Linux ELF.
10550 linux*)
10551   version_type=linux
10552   need_lib_prefix=no
10553   need_version=no
10554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10555   soname_spec='${libname}${release}${shared_ext}$major'
10556   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10557   shlibpath_var=LD_LIBRARY_PATH
10558   shlibpath_overrides_runpath=no
10559   # This implies no fast_install, which is unacceptable.
10560   # Some rework will be needed to allow for fast_install
10561   # before this can be enabled.
10562   hardcode_into_libs=yes
10563
10564   # We used to test for /lib/ld.so.1 and disable shared libraries on
10565   # powerpc, because MkLinux only supported shared libraries with the
10566   # GNU dynamic linker.  Since this was broken with cross compilers,
10567   # most powerpc-linux boxes support dynamic linking these days and
10568   # people can always --disable-shared, the test was removed, and we
10569   # assume the GNU/Linux dynamic linker is in use.
10570   dynamic_linker='GNU/Linux ld.so'
10571   ;;
10572
10573 netbsd*)
10574   version_type=sunos
10575   need_lib_prefix=no
10576   need_version=no
10577   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10578     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10579     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10580     dynamic_linker='NetBSD (a.out) ld.so'
10581   else
10582     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
10583     soname_spec='${libname}${release}${shared_ext}$major'
10584     dynamic_linker='NetBSD ld.elf_so'
10585   fi
10586   shlibpath_var=LD_LIBRARY_PATH
10587   shlibpath_overrides_runpath=yes
10588   hardcode_into_libs=yes
10589   ;;
10590
10591 newsos6)
10592   version_type=linux
10593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594   shlibpath_var=LD_LIBRARY_PATH
10595   shlibpath_overrides_runpath=yes
10596   ;;
10597
10598 nto-qnx)
10599   version_type=linux
10600   need_lib_prefix=no
10601   need_version=no
10602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603   soname_spec='${libname}${release}${shared_ext}$major'
10604   shlibpath_var=LD_LIBRARY_PATH
10605   shlibpath_overrides_runpath=yes
10606   ;;
10607
10608 openbsd*)
10609   version_type=sunos
10610   need_lib_prefix=no
10611   need_version=no
10612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10613   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10614   shlibpath_var=LD_LIBRARY_PATH
10615   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10616     case $host_os in
10617       openbsd2.[89] | openbsd2.[89].*)
10618         shlibpath_overrides_runpath=no
10619         ;;
10620       *)
10621         shlibpath_overrides_runpath=yes
10622         ;;
10623       esac
10624   else
10625     shlibpath_overrides_runpath=yes
10626   fi
10627   ;;
10628
10629 os2*)
10630   libname_spec='$name'
10631   shrext=".dll"
10632   need_lib_prefix=no
10633   library_names_spec='$libname${shared_ext} $libname.a'
10634   dynamic_linker='OS/2 ld.exe'
10635   shlibpath_var=LIBPATH
10636   ;;
10637
10638 osf3* | osf4* | osf5*)
10639   version_type=osf
10640   need_lib_prefix=no
10641   need_version=no
10642   soname_spec='${libname}${release}${shared_ext}$major'
10643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644   shlibpath_var=LD_LIBRARY_PATH
10645   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10646   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10647   ;;
10648
10649 sco3.2v5*)
10650   version_type=osf
10651   soname_spec='${libname}${release}${shared_ext}$major'
10652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653   shlibpath_var=LD_LIBRARY_PATH
10654   ;;
10655
10656 solaris*)
10657   version_type=linux
10658   need_lib_prefix=no
10659   need_version=no
10660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661   soname_spec='${libname}${release}${shared_ext}$major'
10662   shlibpath_var=LD_LIBRARY_PATH
10663   shlibpath_overrides_runpath=yes
10664   hardcode_into_libs=yes
10665   # ldd complains unless libraries are executable
10666   postinstall_cmds='chmod +x $lib'
10667   ;;
10668
10669 sunos4*)
10670   version_type=sunos
10671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10672   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10673   shlibpath_var=LD_LIBRARY_PATH
10674   shlibpath_overrides_runpath=yes
10675   if test "$with_gnu_ld" = yes; then
10676     need_lib_prefix=no
10677   fi
10678   need_version=yes
10679   ;;
10680
10681 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10682   version_type=linux
10683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10684   soname_spec='${libname}${release}${shared_ext}$major'
10685   shlibpath_var=LD_LIBRARY_PATH
10686   case $host_vendor in
10687     sni)
10688       shlibpath_overrides_runpath=no
10689       need_lib_prefix=no
10690       export_dynamic_flag_spec='${wl}-Blargedynsym'
10691       runpath_var=LD_RUN_PATH
10692       ;;
10693     siemens)
10694       need_lib_prefix=no
10695       ;;
10696     motorola)
10697       need_lib_prefix=no
10698       need_version=no
10699       shlibpath_overrides_runpath=no
10700       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10701       ;;
10702   esac
10703   ;;
10704
10705 sysv4*MP*)
10706   if test -d /usr/nec ;then
10707     version_type=linux
10708     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10709     soname_spec='$libname${shared_ext}.$major'
10710     shlibpath_var=LD_LIBRARY_PATH
10711   fi
10712   ;;
10713
10714 uts4*)
10715   version_type=linux
10716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717   soname_spec='${libname}${release}${shared_ext}$major'
10718   shlibpath_var=LD_LIBRARY_PATH
10719   ;;
10720
10721 *)
10722   dynamic_linker=no
10723   ;;
10724 esac
10725 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10726 echo "${ECHO_T}$dynamic_linker" >&6
10727 test "$dynamic_linker" = no && can_build_shared=no
10728
10729 if test "x$enable_dlopen" != xyes; then
10730   enable_dlopen=unknown
10731   enable_dlopen_self=unknown
10732   enable_dlopen_self_static=unknown
10733 else
10734   lt_cv_dlopen=no
10735   lt_cv_dlopen_libs=
10736
10737   case $host_os in
10738   beos*)
10739     lt_cv_dlopen="load_add_on"
10740     lt_cv_dlopen_libs=
10741     lt_cv_dlopen_self=yes
10742     ;;
10743
10744   mingw* | pw32*)
10745     lt_cv_dlopen="LoadLibrary"
10746     lt_cv_dlopen_libs=
10747    ;;
10748
10749   cygwin*)
10750     lt_cv_dlopen="dlopen"
10751     lt_cv_dlopen_libs=
10752    ;;
10753
10754   darwin*)
10755   # if libdl is installed we need to link against it
10756     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10757 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10758 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10759   echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761   ac_check_lib_save_LIBS=$LIBS
10762 LIBS="-ldl  $LIBS"
10763 cat >conftest.$ac_ext <<_ACEOF
10764 #line $LINENO "configure"
10765 #include "confdefs.h"
10766
10767 /* Override any gcc2 internal prototype to avoid an error.  */
10768 #ifdef __cplusplus
10769 extern "C"
10770 #endif
10771 /* We use char because int might match the return type of a gcc2
10772    builtin and then its argument prototype would still apply.  */
10773 char dlopen ();
10774 #ifdef F77_DUMMY_MAIN
10775 #  ifdef __cplusplus
10776      extern "C"
10777 #  endif
10778    int F77_DUMMY_MAIN() { return 1; }
10779 #endif
10780 int
10781 main ()
10782 {
10783 dlopen ();
10784   ;
10785   return 0;
10786 }
10787 _ACEOF
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790   (eval $ac_link) 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); } &&
10794          { ac_try='test -s conftest$ac_exeext'
10795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796   (eval $ac_try) 2>&5
10797   ac_status=$?
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); }; }; then
10800   ac_cv_lib_dl_dlopen=yes
10801 else
10802   echo "$as_me: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 ac_cv_lib_dl_dlopen=no
10805 fi
10806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10807 LIBS=$ac_check_lib_save_LIBS
10808 fi
10809 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10810 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10811 if test $ac_cv_lib_dl_dlopen = yes; then
10812   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10813 else
10814
10815     lt_cv_dlopen="dyld"
10816     lt_cv_dlopen_libs=
10817     lt_cv_dlopen_self=yes
10818
10819 fi
10820
10821    ;;
10822
10823   *)
10824     echo "$as_me:$LINENO: checking for shl_load" >&5
10825 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10826 if test "${ac_cv_func_shl_load+set}" = set; then
10827   echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829   cat >conftest.$ac_ext <<_ACEOF
10830 #line $LINENO "configure"
10831 #include "confdefs.h"
10832 /* System header to define __stub macros and hopefully few prototypes,
10833     which can conflict with char shl_load (); below.  */
10834 #include <assert.h>
10835 /* Override any gcc2 internal prototype to avoid an error.  */
10836 #ifdef __cplusplus
10837 extern "C"
10838 #endif
10839 /* We use char because int might match the return type of a gcc2
10840    builtin and then its argument prototype would still apply.  */
10841 char shl_load ();
10842 char (*f) ();
10843
10844 #ifdef F77_DUMMY_MAIN
10845 #  ifdef __cplusplus
10846      extern "C"
10847 #  endif
10848    int F77_DUMMY_MAIN() { return 1; }
10849 #endif
10850 int
10851 main ()
10852 {
10853 /* The GNU C library defines this for functions which it implements
10854     to always fail with ENOSYS.  Some functions are actually named
10855     something starting with __ and the normal name is an alias.  */
10856 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10857 choke me
10858 #else
10859 f = shl_load;
10860 #endif
10861
10862   ;
10863   return 0;
10864 }
10865 _ACEOF
10866 rm -f conftest.$ac_objext conftest$ac_exeext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10868   (eval $ac_link) 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); } &&
10872          { ac_try='test -s conftest$ac_exeext'
10873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874   (eval $ac_try) 2>&5
10875   ac_status=$?
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); }; }; then
10878   ac_cv_func_shl_load=yes
10879 else
10880   echo "$as_me: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10882 ac_cv_func_shl_load=no
10883 fi
10884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10885 fi
10886 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10887 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10888 if test $ac_cv_func_shl_load = yes; then
10889   lt_cv_dlopen="shl_load"
10890 else
10891   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10892 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10893 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10894   echo $ECHO_N "(cached) $ECHO_C" >&6
10895 else
10896   ac_check_lib_save_LIBS=$LIBS
10897 LIBS="-ldld  $LIBS"
10898 cat >conftest.$ac_ext <<_ACEOF
10899 #line $LINENO "configure"
10900 #include "confdefs.h"
10901
10902 /* Override any gcc2 internal prototype to avoid an error.  */
10903 #ifdef __cplusplus
10904 extern "C"
10905 #endif
10906 /* We use char because int might match the return type of a gcc2
10907    builtin and then its argument prototype would still apply.  */
10908 char shl_load ();
10909 #ifdef F77_DUMMY_MAIN
10910 #  ifdef __cplusplus
10911      extern "C"
10912 #  endif
10913    int F77_DUMMY_MAIN() { return 1; }
10914 #endif
10915 int
10916 main ()
10917 {
10918 shl_load ();
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925   (eval $ac_link) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); } &&
10929          { ac_try='test -s conftest$ac_exeext'
10930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931   (eval $ac_try) 2>&5
10932   ac_status=$?
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); }; }; then
10935   ac_cv_lib_dld_shl_load=yes
10936 else
10937   echo "$as_me: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10939 ac_cv_lib_dld_shl_load=no
10940 fi
10941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10942 LIBS=$ac_check_lib_save_LIBS
10943 fi
10944 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10945 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10946 if test $ac_cv_lib_dld_shl_load = yes; then
10947   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10948 else
10949   echo "$as_me:$LINENO: checking for dlopen" >&5
10950 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10951 if test "${ac_cv_func_dlopen+set}" = set; then
10952   echo $ECHO_N "(cached) $ECHO_C" >&6
10953 else
10954   cat >conftest.$ac_ext <<_ACEOF
10955 #line $LINENO "configure"
10956 #include "confdefs.h"
10957 /* System header to define __stub macros and hopefully few prototypes,
10958     which can conflict with char dlopen (); below.  */
10959 #include <assert.h>
10960 /* Override any gcc2 internal prototype to avoid an error.  */
10961 #ifdef __cplusplus
10962 extern "C"
10963 #endif
10964 /* We use char because int might match the return type of a gcc2
10965    builtin and then its argument prototype would still apply.  */
10966 char dlopen ();
10967 char (*f) ();
10968
10969 #ifdef F77_DUMMY_MAIN
10970 #  ifdef __cplusplus
10971      extern "C"
10972 #  endif
10973    int F77_DUMMY_MAIN() { return 1; }
10974 #endif
10975 int
10976 main ()
10977 {
10978 /* The GNU C library defines this for functions which it implements
10979     to always fail with ENOSYS.  Some functions are actually named
10980     something starting with __ and the normal name is an alias.  */
10981 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10982 choke me
10983 #else
10984 f = dlopen;
10985 #endif
10986
10987   ;
10988   return 0;
10989 }
10990 _ACEOF
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10993   (eval $ac_link) 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); } &&
10997          { ac_try='test -s conftest$ac_exeext'
10998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999   (eval $ac_try) 2>&5
11000   ac_status=$?
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); }; }; then
11003   ac_cv_func_dlopen=yes
11004 else
11005   echo "$as_me: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11007 ac_cv_func_dlopen=no
11008 fi
11009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11010 fi
11011 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11012 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11013 if test $ac_cv_func_dlopen = yes; then
11014   lt_cv_dlopen="dlopen"
11015 else
11016   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11017 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11018 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11019   echo $ECHO_N "(cached) $ECHO_C" >&6
11020 else
11021   ac_check_lib_save_LIBS=$LIBS
11022 LIBS="-ldl  $LIBS"
11023 cat >conftest.$ac_ext <<_ACEOF
11024 #line $LINENO "configure"
11025 #include "confdefs.h"
11026
11027 /* Override any gcc2 internal prototype to avoid an error.  */
11028 #ifdef __cplusplus
11029 extern "C"
11030 #endif
11031 /* We use char because int might match the return type of a gcc2
11032    builtin and then its argument prototype would still apply.  */
11033 char dlopen ();
11034 #ifdef F77_DUMMY_MAIN
11035 #  ifdef __cplusplus
11036      extern "C"
11037 #  endif
11038    int F77_DUMMY_MAIN() { return 1; }
11039 #endif
11040 int
11041 main ()
11042 {
11043 dlopen ();
11044   ;
11045   return 0;
11046 }
11047 _ACEOF
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11050   (eval $ac_link) 2>&5
11051   ac_status=$?
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); } &&
11054          { ac_try='test -s conftest$ac_exeext'
11055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056   (eval $ac_try) 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }; }; then
11060   ac_cv_lib_dl_dlopen=yes
11061 else
11062   echo "$as_me: failed program was:" >&5
11063 cat conftest.$ac_ext >&5
11064 ac_cv_lib_dl_dlopen=no
11065 fi
11066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11068 fi
11069 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11070 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11071 if test $ac_cv_lib_dl_dlopen = yes; then
11072   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11073 else
11074   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11075 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11076 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11077   echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079   ac_check_lib_save_LIBS=$LIBS
11080 LIBS="-lsvld  $LIBS"
11081 cat >conftest.$ac_ext <<_ACEOF
11082 #line $LINENO "configure"
11083 #include "confdefs.h"
11084
11085 /* Override any gcc2 internal prototype to avoid an error.  */
11086 #ifdef __cplusplus
11087 extern "C"
11088 #endif
11089 /* We use char because int might match the return type of a gcc2
11090    builtin and then its argument prototype would still apply.  */
11091 char dlopen ();
11092 #ifdef F77_DUMMY_MAIN
11093 #  ifdef __cplusplus
11094      extern "C"
11095 #  endif
11096    int F77_DUMMY_MAIN() { return 1; }
11097 #endif
11098 int
11099 main ()
11100 {
11101 dlopen ();
11102   ;
11103   return 0;
11104 }
11105 _ACEOF
11106 rm -f conftest.$ac_objext conftest$ac_exeext
11107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11108   (eval $ac_link) 2>&5
11109   ac_status=$?
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); } &&
11112          { ac_try='test -s conftest$ac_exeext'
11113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11114   (eval $ac_try) 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); }; }; then
11118   ac_cv_lib_svld_dlopen=yes
11119 else
11120   echo "$as_me: failed program was:" >&5
11121 cat conftest.$ac_ext >&5
11122 ac_cv_lib_svld_dlopen=no
11123 fi
11124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11125 LIBS=$ac_check_lib_save_LIBS
11126 fi
11127 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11128 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11129 if test $ac_cv_lib_svld_dlopen = yes; then
11130   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11131 else
11132   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11133 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11134 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11135   echo $ECHO_N "(cached) $ECHO_C" >&6
11136 else
11137   ac_check_lib_save_LIBS=$LIBS
11138 LIBS="-ldld  $LIBS"
11139 cat >conftest.$ac_ext <<_ACEOF
11140 #line $LINENO "configure"
11141 #include "confdefs.h"
11142
11143 /* Override any gcc2 internal prototype to avoid an error.  */
11144 #ifdef __cplusplus
11145 extern "C"
11146 #endif
11147 /* We use char because int might match the return type of a gcc2
11148    builtin and then its argument prototype would still apply.  */
11149 char dld_link ();
11150 #ifdef F77_DUMMY_MAIN
11151 #  ifdef __cplusplus
11152      extern "C"
11153 #  endif
11154    int F77_DUMMY_MAIN() { return 1; }
11155 #endif
11156 int
11157 main ()
11158 {
11159 dld_link ();
11160   ;
11161   return 0;
11162 }
11163 _ACEOF
11164 rm -f conftest.$ac_objext conftest$ac_exeext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11166   (eval $ac_link) 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); } &&
11170          { ac_try='test -s conftest$ac_exeext'
11171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172   (eval $ac_try) 2>&5
11173   ac_status=$?
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); }; }; then
11176   ac_cv_lib_dld_dld_link=yes
11177 else
11178   echo "$as_me: failed program was:" >&5
11179 cat conftest.$ac_ext >&5
11180 ac_cv_lib_dld_dld_link=no
11181 fi
11182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11183 LIBS=$ac_check_lib_save_LIBS
11184 fi
11185 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11186 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11187 if test $ac_cv_lib_dld_dld_link = yes; then
11188   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11189 fi
11190
11191
11192 fi
11193
11194
11195 fi
11196
11197
11198 fi
11199
11200
11201 fi
11202
11203
11204 fi
11205
11206     ;;
11207   esac
11208
11209   if test "x$lt_cv_dlopen" != xno; then
11210     enable_dlopen=yes
11211   else
11212     enable_dlopen=no
11213   fi
11214
11215   case $lt_cv_dlopen in
11216   dlopen)
11217     save_CPPFLAGS="$CPPFLAGS"
11218     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11219
11220     save_LDFLAGS="$LDFLAGS"
11221     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11222
11223     save_LIBS="$LIBS"
11224     LIBS="$lt_cv_dlopen_libs $LIBS"
11225
11226     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11227 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11228 if test "${lt_cv_dlopen_self+set}" = set; then
11229   echo $ECHO_N "(cached) $ECHO_C" >&6
11230 else
11231           if test "$cross_compiling" = yes; then :
11232   lt_cv_dlopen_self=cross
11233 else
11234   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11235   lt_status=$lt_dlunknown
11236   cat > conftest.$ac_ext <<EOF
11237 #line 11237 "configure"
11238 #include "confdefs.h"
11239
11240 #if HAVE_DLFCN_H
11241 #include <dlfcn.h>
11242 #endif
11243
11244 #include <stdio.h>
11245
11246 #ifdef RTLD_GLOBAL
11247 #  define LT_DLGLOBAL           RTLD_GLOBAL
11248 #else
11249 #  ifdef DL_GLOBAL
11250 #    define LT_DLGLOBAL         DL_GLOBAL
11251 #  else
11252 #    define LT_DLGLOBAL         0
11253 #  endif
11254 #endif
11255
11256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11257    find out it does not work in some platform. */
11258 #ifndef LT_DLLAZY_OR_NOW
11259 #  ifdef RTLD_LAZY
11260 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11261 #  else
11262 #    ifdef DL_LAZY
11263 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11264 #    else
11265 #      ifdef RTLD_NOW
11266 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11267 #      else
11268 #        ifdef DL_NOW
11269 #          define LT_DLLAZY_OR_NOW      DL_NOW
11270 #        else
11271 #          define LT_DLLAZY_OR_NOW      0
11272 #        endif
11273 #      endif
11274 #    endif
11275 #  endif
11276 #endif
11277
11278 #ifdef __cplusplus
11279 extern "C" void exit (int);
11280 #endif
11281
11282 void fnord() { int i=42;}
11283 int main ()
11284 {
11285   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11286   int status = $lt_dlunknown;
11287
11288   if (self)
11289     {
11290       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11291       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11292       /* dlclose (self); */
11293     }
11294
11295     exit (status);
11296 }
11297 EOF
11298   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299   (eval $ac_link) 2>&5
11300   ac_status=$?
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11303     (./conftest; exit; ) 2>/dev/null
11304     lt_status=$?
11305     case x$lt_status in
11306       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11307       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11308       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11309     esac
11310   else :
11311     # compilation failed
11312     lt_cv_dlopen_self=no
11313   fi
11314 fi
11315 rm -fr conftest*
11316
11317
11318 fi
11319 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11320 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11321
11322     if test "x$lt_cv_dlopen_self" = xyes; then
11323       LDFLAGS="$LDFLAGS $link_static_flag"
11324       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11325 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11326 if test "${lt_cv_dlopen_self_static+set}" = set; then
11327   echo $ECHO_N "(cached) $ECHO_C" >&6
11328 else
11329           if test "$cross_compiling" = yes; then :
11330   lt_cv_dlopen_self_static=cross
11331 else
11332   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11333   lt_status=$lt_dlunknown
11334   cat > conftest.$ac_ext <<EOF
11335 #line 11335 "configure"
11336 #include "confdefs.h"
11337
11338 #if HAVE_DLFCN_H
11339 #include <dlfcn.h>
11340 #endif
11341
11342 #include <stdio.h>
11343
11344 #ifdef RTLD_GLOBAL
11345 #  define LT_DLGLOBAL           RTLD_GLOBAL
11346 #else
11347 #  ifdef DL_GLOBAL
11348 #    define LT_DLGLOBAL         DL_GLOBAL
11349 #  else
11350 #    define LT_DLGLOBAL         0
11351 #  endif
11352 #endif
11353
11354 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11355    find out it does not work in some platform. */
11356 #ifndef LT_DLLAZY_OR_NOW
11357 #  ifdef RTLD_LAZY
11358 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11359 #  else
11360 #    ifdef DL_LAZY
11361 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11362 #    else
11363 #      ifdef RTLD_NOW
11364 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11365 #      else
11366 #        ifdef DL_NOW
11367 #          define LT_DLLAZY_OR_NOW      DL_NOW
11368 #        else
11369 #          define LT_DLLAZY_OR_NOW      0
11370 #        endif
11371 #      endif
11372 #    endif
11373 #  endif
11374 #endif
11375
11376 #ifdef __cplusplus
11377 extern "C" void exit (int);
11378 #endif
11379
11380 void fnord() { int i=42;}
11381 int main ()
11382 {
11383   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11384   int status = $lt_dlunknown;
11385
11386   if (self)
11387     {
11388       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11389       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11390       /* dlclose (self); */
11391     }
11392
11393     exit (status);
11394 }
11395 EOF
11396   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11397   (eval $ac_link) 2>&5
11398   ac_status=$?
11399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11401     (./conftest; exit; ) 2>/dev/null
11402     lt_status=$?
11403     case x$lt_status in
11404       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11405       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11406       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11407     esac
11408   else :
11409     # compilation failed
11410     lt_cv_dlopen_self_static=no
11411   fi
11412 fi
11413 rm -fr conftest*
11414
11415
11416 fi
11417 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11418 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11419     fi
11420
11421     CPPFLAGS="$save_CPPFLAGS"
11422     LDFLAGS="$save_LDFLAGS"
11423     LIBS="$save_LIBS"
11424     ;;
11425   esac
11426
11427   case $lt_cv_dlopen_self in
11428   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11429   *) enable_dlopen_self=unknown ;;
11430   esac
11431
11432   case $lt_cv_dlopen_self_static in
11433   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11434   *) enable_dlopen_self_static=unknown ;;
11435   esac
11436 fi
11437
11438
11439 # The else clause should only fire when bootstrapping the
11440 # libtool distribution, otherwise you forgot to ship ltmain.sh
11441 # with your package, and you will get complaints that there are
11442 # no rules to generate ltmain.sh.
11443 if test -f "$ltmain"; then
11444   # See if we are running on zsh, and set the options which allow our commands through
11445   # without removal of \ escapes.
11446   if test -n "${ZSH_VERSION+set}" ; then
11447     setopt NO_GLOB_SUBST
11448   fi
11449   # Now quote all the things that may contain metacharacters while being
11450   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11451   # variables and quote the copies for generation of the libtool script.
11452   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11453     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11454     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11455     deplibs_check_method reload_flag reload_cmds need_locks \
11456     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11457     lt_cv_sys_global_symbol_to_c_name_address \
11458     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11459     old_postinstall_cmds old_postuninstall_cmds \
11460     compiler_CXX \
11461     CC_CXX \
11462     LD_CXX \
11463     lt_prog_compiler_wl_CXX \
11464     lt_prog_compiler_pic_CXX \
11465     lt_prog_compiler_static_CXX \
11466     lt_prog_compiler_no_builtin_flag_CXX \
11467     export_dynamic_flag_spec_CXX \
11468     thread_safe_flag_spec_CXX \
11469     whole_archive_flag_spec_CXX \
11470     enable_shared_with_static_runtimes_CXX \
11471     old_archive_cmds_CXX \
11472     old_archive_from_new_cmds_CXX \
11473     predep_objects_CXX \
11474     postdep_objects_CXX \
11475     predeps_CXX \
11476     postdeps_CXX \
11477     compiler_lib_search_path_CXX \
11478     archive_cmds_CXX \
11479     archive_expsym_cmds_CXX \
11480     postinstall_cmds_CXX \
11481     postuninstall_cmds_CXX \
11482     old_archive_from_expsyms_cmds_CXX \
11483     allow_undefined_flag_CXX \
11484     no_undefined_flag_CXX \
11485     export_symbols_cmds_CXX \
11486     hardcode_libdir_flag_spec_CXX \
11487     hardcode_libdir_flag_spec_ld_CXX \
11488     hardcode_libdir_separator_CXX \
11489     hardcode_automatic_CXX \
11490     module_cmds_CXX \
11491     module_expsym_cmds_CXX \
11492     lt_cv_prog_compiler_c_o_CXX \
11493     exclude_expsyms_CXX \
11494     include_expsyms_CXX; do
11495
11496     case $var in
11497     old_archive_cmds_CXX | \
11498     old_archive_from_new_cmds_CXX | \
11499     archive_cmds_CXX | \
11500     archive_expsym_cmds_CXX | \
11501     module_cmds_CXX | \
11502     module_expsym_cmds_CXX | \
11503     old_archive_from_expsyms_cmds_CXX | \
11504     export_symbols_cmds_CXX | \
11505     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11506     postinstall_cmds | postuninstall_cmds | \
11507     old_postinstall_cmds | old_postuninstall_cmds | \
11508     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11509       # Double-quote double-evaled strings.
11510       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11511       ;;
11512     *)
11513       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11514       ;;
11515     esac
11516   done
11517
11518   case $lt_echo in
11519   *'\$0 --fallback-echo"')
11520     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11521     ;;
11522   esac
11523
11524 cfgfile="$ofile"
11525
11526   cat <<__EOF__ >> "$cfgfile"
11527 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11528
11529 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11530
11531 # Shell to use when invoking shell scripts.
11532 SHELL=$lt_SHELL
11533
11534 # Whether or not to build shared libraries.
11535 build_libtool_libs=$enable_shared
11536
11537 # Whether or not to build static libraries.
11538 build_old_libs=$enable_static
11539
11540 # Whether or not to add -lc for building shared libraries.
11541 build_libtool_need_lc=$archive_cmds_need_lc_CXX
11542
11543 # Whether or not to disallow shared libs when runtime libs are static
11544 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
11545
11546 # Whether or not to optimize for fast installation.
11547 fast_install=$enable_fast_install
11548
11549 # The host system.
11550 host_alias=$host_alias
11551 host=$host
11552
11553 # An echo program that does not interpret backslashes.
11554 echo=$lt_echo
11555
11556 # The archiver.
11557 AR=$lt_AR
11558 AR_FLAGS=$lt_AR_FLAGS
11559
11560 # A C compiler.
11561 LTCC=$lt_LTCC
11562
11563 # A language-specific compiler.
11564 CC=$lt_compiler_CXX
11565
11566 # Is the compiler the GNU C compiler?
11567 with_gcc=$GCC_CXX
11568
11569 # An ERE matcher.
11570 EGREP=$lt_EGREP
11571
11572 # The linker used to build libraries.
11573 LD=$lt_LD_CXX
11574
11575 # Whether we need hard or soft links.
11576 LN_S=$lt_LN_S
11577
11578 # A BSD-compatible nm program.
11579 NM=$lt_NM
11580
11581 # A symbol stripping program
11582 STRIP=$STRIP
11583
11584 # Used to examine libraries when file_magic_cmd begins "file"
11585 MAGIC_CMD=$MAGIC_CMD
11586
11587 # Used on cygwin: DLL creation program.
11588 DLLTOOL="$DLLTOOL"
11589
11590 # Used on cygwin: object dumper.
11591 OBJDUMP="$OBJDUMP"
11592
11593 # Used on cygwin: assembler.
11594 AS="$AS"
11595
11596 # The name of the directory that contains temporary libtool files.
11597 objdir=$objdir
11598
11599 # How to create reloadable object files.
11600 reload_flag=$lt_reload_flag
11601 reload_cmds=$lt_reload_cmds
11602
11603 # How to pass a linker flag through the compiler.
11604 wl=$lt_lt_prog_compiler_wl_CXX
11605
11606 # Object file suffix (normally "o").
11607 objext="$ac_objext"
11608
11609 # Old archive suffix (normally "a").
11610 libext="$libext"
11611
11612 # Shared library suffix (normally ".so").
11613 shrext='$shrext'
11614
11615 # Executable file suffix (normally "").
11616 exeext="$exeext"
11617
11618 # Additional compiler flags for building library objects.
11619 pic_flag=$lt_lt_prog_compiler_pic_CXX
11620 pic_mode=$pic_mode
11621
11622 # What is the maximum length of a command?
11623 max_cmd_len=$lt_cv_sys_max_cmd_len
11624
11625 # Does compiler simultaneously support -c and -o options?
11626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
11627
11628 # Must we lock files when doing compilation ?
11629 need_locks=$lt_need_locks
11630
11631 # Do we need the lib prefix for modules?
11632 need_lib_prefix=$need_lib_prefix
11633
11634 # Do we need a version for libraries?
11635 need_version=$need_version
11636
11637 # Whether dlopen is supported.
11638 dlopen_support=$enable_dlopen
11639
11640 # Whether dlopen of programs is supported.
11641 dlopen_self=$enable_dlopen_self
11642
11643 # Whether dlopen of statically linked programs is supported.
11644 dlopen_self_static=$enable_dlopen_self_static
11645
11646 # Compiler flag to prevent dynamic linking.
11647 link_static_flag=$lt_lt_prog_compiler_static_CXX
11648
11649 # Compiler flag to turn off builtin functions.
11650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
11651
11652 # Compiler flag to allow reflexive dlopens.
11653 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
11654
11655 # Compiler flag to generate shared objects directly from archives.
11656 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
11657
11658 # Compiler flag to generate thread-safe objects.
11659 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
11660
11661 # Library versioning type.
11662 version_type=$version_type
11663
11664 # Format of library name prefix.
11665 libname_spec=$lt_libname_spec
11666
11667 # List of archive names.  First name is the real one, the rest are links.
11668 # The last name is the one that the linker finds with -lNAME.
11669 library_names_spec=$lt_library_names_spec
11670
11671 # The coded name of the library, if different from the real name.
11672 soname_spec=$lt_soname_spec
11673
11674 # Commands used to build and install an old-style archive.
11675 RANLIB=$lt_RANLIB
11676 old_archive_cmds=$lt_old_archive_cmds_CXX
11677 old_postinstall_cmds=$lt_old_postinstall_cmds
11678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11679
11680 # Create an old-style archive from a shared archive.
11681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
11682
11683 # Create a temporary old-style archive to link instead of a shared archive.
11684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
11685
11686 # Commands used to build and install a shared archive.
11687 archive_cmds=$lt_archive_cmds_CXX
11688 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
11689 postinstall_cmds=$lt_postinstall_cmds
11690 postuninstall_cmds=$lt_postuninstall_cmds
11691
11692 # Commands used to build a loadable module (assumed same as above if empty)
11693 module_cmds=$lt_module_cmds_CXX
11694 module_expsym_cmds=$lt_module_expsym_cmds_CXX
11695
11696 # Commands to strip libraries.
11697 old_striplib=$lt_old_striplib
11698 striplib=$lt_striplib
11699
11700 # Dependencies to place before the objects being linked to create a
11701 # shared library.
11702 predep_objects=$lt_predep_objects_CXX
11703
11704 # Dependencies to place after the objects being linked to create a
11705 # shared library.
11706 postdep_objects=$lt_postdep_objects_CXX
11707
11708 # Dependencies to place before the objects being linked to create a
11709 # shared library.
11710 predeps=$lt_predeps_CXX
11711
11712 # Dependencies to place after the objects being linked to create a
11713 # shared library.
11714 postdeps=$lt_postdeps_CXX
11715
11716 # The library search path used internally by the compiler when linking
11717 # a shared library.
11718 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
11719
11720 # Method to check whether dependent libraries are shared objects.
11721 deplibs_check_method=$lt_deplibs_check_method
11722
11723 # Command to use when deplibs_check_method == file_magic.
11724 file_magic_cmd=$lt_file_magic_cmd
11725
11726 # Flag that allows shared libraries with undefined symbols to be built.
11727 allow_undefined_flag=$lt_allow_undefined_flag_CXX
11728
11729 # Flag that forces no undefined symbols.
11730 no_undefined_flag=$lt_no_undefined_flag_CXX
11731
11732 # Commands used to finish a libtool library installation in a directory.
11733 finish_cmds=$lt_finish_cmds
11734
11735 # Same as above, but a single script fragment to be evaled but not shown.
11736 finish_eval=$lt_finish_eval
11737
11738 # Take the output of nm and produce a listing of raw symbols and C names.
11739 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11740
11741 # Transform the output of nm in a proper C declaration
11742 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11743
11744 # Transform the output of nm in a C name address pair
11745 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11746
11747 # This is the shared library runtime path variable.
11748 runpath_var=$runpath_var
11749
11750 # This is the shared library path variable.
11751 shlibpath_var=$shlibpath_var
11752
11753 # Is shlibpath searched before the hard-coded library search path?
11754 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11755
11756 # How to hardcode a shared library path into an executable.
11757 hardcode_action=$hardcode_action_CXX
11758
11759 # Whether we should hardcode library paths into libraries.
11760 hardcode_into_libs=$hardcode_into_libs
11761
11762 # Flag to hardcode \$libdir into a binary during linking.
11763 # This must work even if \$libdir does not exist.
11764 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
11765
11766 # If ld is used when linking, flag to hardcode \$libdir into
11767 # a binary during linking. This must work even if \$libdir does
11768 # not exist.
11769 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
11770
11771 # Whether we need a single -rpath flag with a separated argument.
11772 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
11773
11774 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11775 # resulting binary.
11776 hardcode_direct=$hardcode_direct_CXX
11777
11778 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11779 # resulting binary.
11780 hardcode_minus_L=$hardcode_minus_L_CXX
11781
11782 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11783 # the resulting binary.
11784 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
11785
11786 # Set to yes if building a shared library automatically hardcodes DIR into the library
11787 # and all subsequent libraries and executables linked against it.
11788 hardcode_automatic=$hardcode_automatic_CXX
11789
11790 # Variables whose values should be saved in libtool wrapper scripts and
11791 # restored at relink time.
11792 variables_saved_for_relink="$variables_saved_for_relink"
11793
11794 # Whether libtool must link a program against all its dependency libraries.
11795 link_all_deplibs=$link_all_deplibs_CXX
11796
11797 # Compile-time system search path for libraries
11798 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11799
11800 # Run-time system search path for libraries
11801 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11802
11803 # Fix the shell variable \$srcfile for the compiler.
11804 fix_srcfile_path="$fix_srcfile_path_CXX"
11805
11806 # Set to yes if exported symbols are required.
11807 always_export_symbols=$always_export_symbols_CXX
11808
11809 # The commands to list exported symbols.
11810 export_symbols_cmds=$lt_export_symbols_cmds_CXX
11811
11812 # The commands to extract the exported symbol list from a shared archive.
11813 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11814
11815 # Symbols that should not be listed in the preloaded symbols.
11816 exclude_expsyms=$lt_exclude_expsyms_CXX
11817
11818 # Symbols that must always be exported.
11819 include_expsyms=$lt_include_expsyms_CXX
11820
11821 # ### END LIBTOOL TAG CONFIG: $tagname
11822
11823 __EOF__
11824
11825
11826 else
11827   # If there is no Makefile yet, we rely on a make rule to execute
11828   # `config.status --recheck' to rerun these tests and create the
11829   # libtool script then.
11830   test -f Makefile && make "$ltmain"
11831 fi
11832
11833
11834 ac_ext=c
11835 ac_cpp='$CPP $CPPFLAGS'
11836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11839
11840 CC=$lt_save_CC
11841 LDCXX=$LD
11842 LD=$lt_save_LD
11843 GCC=$lt_save_GCC
11844 with_gnu_ldcxx=$with_gnu_ld
11845 with_gnu_ld=$lt_save_with_gnu_ld
11846 lt_cv_path_LDCXX=$lt_cv_path_LD
11847 lt_cv_path_LD=$lt_save_path_LD
11848 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
11849 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
11850
11851         else
11852           tagname=""
11853         fi
11854         ;;
11855
11856       F77)
11857         if test -n "$F77" && test "X$F77" != "Xno"; then
11858
11859 ac_ext=f
11860 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11861 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11862 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11863
11864
11865 archive_cmds_need_lc_F77=no
11866 allow_undefined_flag_F77=
11867 always_export_symbols_F77=no
11868 archive_expsym_cmds_F77=
11869 export_dynamic_flag_spec_F77=
11870 hardcode_direct_F77=no
11871 hardcode_libdir_flag_spec_F77=
11872 hardcode_libdir_flag_spec_ld_F77=
11873 hardcode_libdir_separator_F77=
11874 hardcode_minus_L_F77=no
11875 hardcode_automatic_F77=no
11876 module_cmds_F77=
11877 module_expsym_cmds_F77=
11878 link_all_deplibs_F77=unknown
11879 old_archive_cmds_F77=$old_archive_cmds
11880 no_undefined_flag_F77=
11881 whole_archive_flag_spec_F77=
11882 enable_shared_with_static_runtimes_F77=no
11883
11884 # Source file extension for f77 test sources.
11885 ac_ext=f
11886
11887 # Object file extension for compiled f77 test sources.
11888 objext=o
11889 objext_F77=$objext
11890
11891 # Code to be used in simple compile tests
11892 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
11893
11894 # Code to be used in simple link tests
11895 lt_simple_link_test_code="      program t\n      end\n"
11896
11897 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11898
11899 # If no C compiler was specified, use CC.
11900 LTCC=${LTCC-"$CC"}
11901
11902 # Allow CC to be a program name with arguments.
11903 compiler=$CC
11904
11905
11906 # Allow CC to be a program name with arguments.
11907 lt_save_CC="$CC"
11908 CC=${F77-"f77"}
11909 compiler=$CC
11910 compiler_F77=$CC
11911 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11912
11913 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11914 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11915 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11916 echo "${ECHO_T}$can_build_shared" >&6
11917
11918 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11919 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11920 test "$can_build_shared" = "no" && enable_shared=no
11921
11922 # On AIX, shared libraries and static libraries use the same namespace, and
11923 # are all built from PIC.
11924 case "$host_os" in
11925 aix3*)
11926   test "$enable_shared" = yes && enable_static=no
11927   if test -n "$RANLIB"; then
11928     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11929     postinstall_cmds='$RANLIB $lib'
11930   fi
11931   ;;
11932 aix4*)
11933   test "$enable_shared" = yes && enable_static=no
11934   ;;
11935 esac
11936 echo "$as_me:$LINENO: result: $enable_shared" >&5
11937 echo "${ECHO_T}$enable_shared" >&6
11938
11939 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11940 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11941 # Make sure either enable_shared or enable_static is yes.
11942 test "$enable_shared" = yes || enable_static=yes
11943 echo "$as_me:$LINENO: result: $enable_static" >&5
11944 echo "${ECHO_T}$enable_static" >&6
11945
11946 test "$ld_shlibs_F77" = no && can_build_shared=no
11947
11948 GCC_F77="$G77"
11949 LD_F77="$LD"
11950
11951 lt_prog_compiler_wl_F77=
11952 lt_prog_compiler_pic_F77=
11953 lt_prog_compiler_static_F77=
11954
11955 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11956 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11957
11958   if test "$GCC" = yes; then
11959     lt_prog_compiler_wl_F77='-Wl,'
11960     lt_prog_compiler_static_F77='-static'
11961
11962     case $host_os in
11963       aix*)
11964       # All AIX code is PIC.
11965       if test "$host_cpu" = ia64; then
11966         # AIX 5 now supports IA64 processor
11967         lt_prog_compiler_static_F77='-Bstatic'
11968       fi
11969       ;;
11970
11971     amigaos*)
11972       # FIXME: we need at least 68020 code to build shared libraries, but
11973       # adding the `-m68020' flag to GCC prevents building anything better,
11974       # like `-m68040'.
11975       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
11976       ;;
11977
11978     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11979       # PIC is the default for these OSes.
11980       ;;
11981
11982     mingw* | pw32* | os2*)
11983       # This hack is so that the source file can tell whether it is being
11984       # built for inclusion in a dll (and should export symbols for example).
11985       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
11986       ;;
11987
11988     darwin* | rhapsody*)
11989       # PIC is the default on this platform
11990       # Common symbols not allowed in MH_DYLIB files
11991       lt_prog_compiler_pic_F77='-fno-common'
11992       ;;
11993
11994     msdosdjgpp*)
11995       # Just because we use GCC doesn't mean we suddenly get shared libraries
11996       # on systems that don't support them.
11997       lt_prog_compiler_can_build_shared_F77=no
11998       enable_shared=no
11999       ;;
12000
12001     sysv4*MP*)
12002       if test -d /usr/nec; then
12003         lt_prog_compiler_pic_F77=-Kconform_pic
12004       fi
12005       ;;
12006
12007     hpux*)
12008       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12009       # not for PA HP-UX.
12010       case "$host_cpu" in
12011       hppa*64*|ia64*)
12012         # +Z the default
12013         ;;
12014       *)
12015         lt_prog_compiler_pic_F77='-fPIC'
12016         ;;
12017       esac
12018       ;;
12019
12020     *)
12021       lt_prog_compiler_pic_F77='-fPIC'
12022       ;;
12023     esac
12024   else
12025     # PORTME Check for flag to pass linker flags through the system compiler.
12026     case $host_os in
12027     aix*)
12028       lt_prog_compiler_wl_F77='-Wl,'
12029       if test "$host_cpu" = ia64; then
12030         # AIX 5 now supports IA64 processor
12031         lt_prog_compiler_static_F77='-Bstatic'
12032       else
12033         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12034       fi
12035       ;;
12036
12037     mingw* | pw32* | os2*)
12038       # This hack is so that the source file can tell whether it is being
12039       # built for inclusion in a dll (and should export symbols for example).
12040       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12041       ;;
12042
12043     hpux9* | hpux10* | hpux11*)
12044       lt_prog_compiler_wl_F77='-Wl,'
12045       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12046       # not for PA HP-UX.
12047       case "$host_cpu" in
12048       hppa*64*|ia64*)
12049         # +Z the default
12050         ;;
12051       *)
12052         lt_prog_compiler_pic_F77='+Z'
12053         ;;
12054       esac
12055       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12056       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12057       ;;
12058
12059     irix5* | irix6* | nonstopux*)
12060       lt_prog_compiler_wl_F77='-Wl,'
12061       # PIC (with -KPIC) is the default.
12062       lt_prog_compiler_static_F77='-non_shared'
12063       ;;
12064
12065     newsos6)
12066       lt_prog_compiler_pic_F77='-KPIC'
12067       lt_prog_compiler_static_F77='-Bstatic'
12068       ;;
12069
12070     linux*)
12071       case $CC in
12072       icc|ecc)
12073         lt_prog_compiler_wl_F77='-Wl,'
12074         lt_prog_compiler_pic_F77='-KPIC'
12075         lt_prog_compiler_static_F77='-static'
12076         ;;
12077       ccc)
12078         lt_prog_compiler_wl_F77='-Wl,'
12079         # All Alpha code is PIC.
12080         lt_prog_compiler_static_F77='-non_shared'
12081         ;;
12082       esac
12083       ;;
12084
12085     osf3* | osf4* | osf5*)
12086       lt_prog_compiler_wl_F77='-Wl,'
12087       # All OSF/1 code is PIC.
12088       lt_prog_compiler_static_F77='-non_shared'
12089       ;;
12090
12091     sco3.2v5*)
12092       lt_prog_compiler_pic_F77='-Kpic'
12093       lt_prog_compiler_static_F77='-dn'
12094       ;;
12095
12096     solaris*)
12097       lt_prog_compiler_wl_F77='-Wl,'
12098       lt_prog_compiler_pic_F77='-KPIC'
12099       lt_prog_compiler_static_F77='-Bstatic'
12100       ;;
12101
12102     sunos4*)
12103       lt_prog_compiler_wl_F77='-Qoption ld '
12104       lt_prog_compiler_pic_F77='-PIC'
12105       lt_prog_compiler_static_F77='-Bstatic'
12106       ;;
12107
12108     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12109       lt_prog_compiler_wl_F77='-Wl,'
12110       lt_prog_compiler_pic_F77='-KPIC'
12111       lt_prog_compiler_static_F77='-Bstatic'
12112       ;;
12113
12114     sysv4*MP*)
12115       if test -d /usr/nec ;then
12116         lt_prog_compiler_pic_F77='-Kconform_pic'
12117         lt_prog_compiler_static_F77='-Bstatic'
12118       fi
12119       ;;
12120
12121     uts4*)
12122       lt_prog_compiler_pic_F77='-pic'
12123       lt_prog_compiler_static_F77='-Bstatic'
12124       ;;
12125
12126     *)
12127       lt_prog_compiler_can_build_shared_F77=no
12128       ;;
12129     esac
12130   fi
12131
12132 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12133 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12134
12135 #
12136 # Check to make sure the PIC flag actually works.
12137 #
12138 if test -n "$lt_prog_compiler_pic_F77"; then
12139   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12140 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12141 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12142   echo $ECHO_N "(cached) $ECHO_C" >&6
12143 else
12144   lt_prog_compiler_pic_works_F77=no
12145   ac_outfile=conftest.$ac_objext
12146    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12147    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12148    # Insert the option either (1) after the last *FLAGS variable, or
12149    # (2) before a word containing "conftest.", or (3) at the end.
12150    # Note that $ac_compile itself does not contain backslashes and begins
12151    # with a dollar sign (not a hyphen), so the echo should work correctly.
12152    # The option is referenced via a variable to avoid confusing sed.
12153    lt_compile=`echo "$ac_compile" | $SED \
12154    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12155    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12156    -e 's:$: $lt_compiler_flag:'`
12157    (eval echo "\"\$as_me:12157: $lt_compile\"" >&5)
12158    (eval "$lt_compile" 2>conftest.err)
12159    ac_status=$?
12160    cat conftest.err >&5
12161    echo "$as_me:12161: \$? = $ac_status" >&5
12162    if (exit $ac_status) && test -s "$ac_outfile"; then
12163      # The compiler can only warn and ignore the option if not recognized
12164      # So say no if there are warnings
12165      if test ! -s conftest.err; then
12166        lt_prog_compiler_pic_works_F77=yes
12167      fi
12168    fi
12169    $rm conftest*
12170
12171 fi
12172 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12173 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12174
12175 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12176     case $lt_prog_compiler_pic_F77 in
12177      "" | " "*) ;;
12178      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12179      esac
12180 else
12181     lt_prog_compiler_pic_F77=
12182      lt_prog_compiler_can_build_shared_F77=no
12183 fi
12184
12185 fi
12186 case "$host_os" in
12187   # For platforms which do not support PIC, -DPIC is meaningless:
12188   *djgpp*)
12189     lt_prog_compiler_pic_F77=
12190     ;;
12191   *)
12192     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12193     ;;
12194 esac
12195
12196 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12197 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12198 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12199   echo $ECHO_N "(cached) $ECHO_C" >&6
12200 else
12201   lt_cv_prog_compiler_c_o_F77=no
12202    $rm -r conftest 2>/dev/null
12203    mkdir conftest
12204    cd conftest
12205    mkdir out
12206    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12207
12208    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12209    # that will create temporary files in the current directory regardless of
12210    # the output directory.  Thus, making CWD read-only will cause this test
12211    # to fail, enabling locking or at least warning the user not to do parallel
12212    # builds.
12213    chmod -w .
12214
12215    lt_compiler_flag="-o out/conftest2.$ac_objext"
12216    # Insert the option either (1) after the last *FLAGS variable, or
12217    # (2) before a word containing "conftest.", or (3) at the end.
12218    # Note that $ac_compile itself does not contain backslashes and begins
12219    # with a dollar sign (not a hyphen), so the echo should work correctly.
12220    lt_compile=`echo "$ac_compile" | $SED \
12221    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12222    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12223    -e 's:$: $lt_compiler_flag:'`
12224    (eval echo "\"\$as_me:12224: $lt_compile\"" >&5)
12225    (eval "$lt_compile" 2>out/conftest.err)
12226    ac_status=$?
12227    cat out/conftest.err >&5
12228    echo "$as_me:12228: \$? = $ac_status" >&5
12229    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12230    then
12231      # The compiler can only warn and ignore the option if not recognized
12232      # So say no if there are warnings
12233      if test ! -s out/conftest.err; then
12234        lt_cv_prog_compiler_c_o_F77=yes
12235      fi
12236    fi
12237    chmod u+w .
12238    $rm conftest* out/*
12239    rmdir out
12240    cd ..
12241    rmdir conftest
12242    $rm conftest*
12243
12244 fi
12245 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12246 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12247
12248
12249 hard_links="nottested"
12250 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12251   # do not overwrite the value of need_locks provided by the user
12252   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12253 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12254   hard_links=yes
12255   $rm conftest*
12256   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12257   touch conftest.a
12258   ln conftest.a conftest.b 2>&5 || hard_links=no
12259   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12260   echo "$as_me:$LINENO: result: $hard_links" >&5
12261 echo "${ECHO_T}$hard_links" >&6
12262   if test "$hard_links" = no; then
12263     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12264 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12265     need_locks=warn
12266   fi
12267 else
12268   need_locks=no
12269 fi
12270
12271 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12272 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12273
12274   runpath_var=
12275   allow_undefined_flag_F77=
12276   enable_shared_with_static_runtimes_F77=no
12277   archive_cmds_F77=
12278   archive_expsym_cmds_F77=
12279   old_archive_From_new_cmds_F77=
12280   old_archive_from_expsyms_cmds_F77=
12281   export_dynamic_flag_spec_F77=
12282   whole_archive_flag_spec_F77=
12283   thread_safe_flag_spec_F77=
12284   hardcode_libdir_flag_spec_F77=
12285   hardcode_libdir_flag_spec_ld_F77=
12286   hardcode_libdir_separator_F77=
12287   hardcode_direct_F77=no
12288   hardcode_minus_L_F77=no
12289   hardcode_shlibpath_var_F77=unsupported
12290   link_all_deplibs_F77=unknown
12291   hardcode_automatic_F77=no
12292   module_cmds_F77=
12293   module_expsym_cmds_F77=
12294   always_export_symbols_F77=no
12295   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12296   # include_expsyms should be a list of space-separated symbols to be *always*
12297   # included in the symbol list
12298   include_expsyms_F77=
12299   # exclude_expsyms can be an extended regexp of symbols to exclude
12300   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12301   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12302   # as well as any symbol that contains `d'.
12303   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12304   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12305   # platforms (ab)use it in PIC code, but their linkers get confused if
12306   # the symbol is explicitly referenced.  Since portable code cannot
12307   # rely on this symbol name, it's probably fine to never include it in
12308   # preloaded symbol tables.
12309   extract_expsyms_cmds=
12310
12311   case $host_os in
12312   cygwin* | mingw* | pw32*)
12313     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12314     # When not using gcc, we currently assume that we are using
12315     # Microsoft Visual C++.
12316     if test "$GCC" != yes; then
12317       with_gnu_ld=no
12318     fi
12319     ;;
12320   openbsd*)
12321     with_gnu_ld=no
12322     ;;
12323   esac
12324
12325   ld_shlibs_F77=yes
12326   if test "$with_gnu_ld" = yes; then
12327     # If archive_cmds runs LD, not CC, wlarc should be empty
12328     wlarc='${wl}'
12329
12330     # See if GNU ld supports shared libraries.
12331     case $host_os in
12332     aix3* | aix4* | aix5*)
12333       # On AIX/PPC, the GNU linker is very broken
12334       if test "$host_cpu" != ia64; then
12335         ld_shlibs_F77=no
12336         cat <<EOF 1>&2
12337
12338 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12339 *** to be unable to reliably create shared libraries on AIX.
12340 *** Therefore, libtool is disabling shared libraries support.  If you
12341 *** really care for shared libraries, you may want to modify your PATH
12342 *** so that a non-GNU linker is found, and then restart.
12343
12344 EOF
12345       fi
12346       ;;
12347
12348     amigaos*)
12349       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)'
12350       hardcode_libdir_flag_spec_F77='-L$libdir'
12351       hardcode_minus_L_F77=yes
12352
12353       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12354       # that the semantics of dynamic libraries on AmigaOS, at least up
12355       # to version 4, is to share data among multiple programs linked
12356       # with the same dynamic library.  Since this doesn't match the
12357       # behavior of shared libraries on other platforms, we can't use
12358       # them.
12359       ld_shlibs_F77=no
12360       ;;
12361
12362     beos*)
12363       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12364         allow_undefined_flag_F77=unsupported
12365         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12366         # support --undefined.  This deserves some investigation.  FIXME
12367         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12368       else
12369         ld_shlibs_F77=no
12370       fi
12371       ;;
12372
12373     cygwin* | mingw* | pw32*)
12374       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12375       # as there is no search path for DLLs.
12376       hardcode_libdir_flag_spec_F77='-L$libdir'
12377       allow_undefined_flag_F77=unsupported
12378       always_export_symbols_F77=no
12379       enable_shared_with_static_runtimes_F77=yes
12380       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12381
12382       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12383         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12384         # If the export-symbols file already is a .def file (1st line
12385         # is EXPORTS), use it as is; otherwise, prepend...
12386         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12387           cp $export_symbols $output_objdir/$soname.def;
12388         else
12389           echo EXPORTS > $output_objdir/$soname.def;
12390           cat $export_symbols >> $output_objdir/$soname.def;
12391         fi~
12392         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12393       else
12394         ld_shlibs=no
12395       fi
12396       ;;
12397
12398     netbsd*)
12399       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12400         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12401         wlarc=
12402       else
12403         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12404         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12405       fi
12406       ;;
12407
12408     solaris* | sysv5*)
12409       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12410         ld_shlibs_F77=no
12411         cat <<EOF 1>&2
12412
12413 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12414 *** create shared libraries on Solaris systems.  Therefore, libtool
12415 *** is disabling shared libraries support.  We urge you to upgrade GNU
12416 *** binutils to release 2.9.1 or newer.  Another option is to modify
12417 *** your PATH or compiler configuration so that the native linker is
12418 *** used, and then restart.
12419
12420 EOF
12421       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12422         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12423         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12424       else
12425         ld_shlibs_F77=no
12426       fi
12427       ;;
12428
12429     sunos4*)
12430       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12431       wlarc=
12432       hardcode_direct_F77=yes
12433       hardcode_shlibpath_var_F77=no
12434       ;;
12435
12436     *)
12437       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12438         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12439         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12440       else
12441         ld_shlibs_F77=no
12442       fi
12443       ;;
12444     esac
12445
12446     if test "$ld_shlibs_F77" = yes; then
12447       runpath_var=LD_RUN_PATH
12448       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12449       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12450       # ancient GNU ld didn't support --whole-archive et. al.
12451       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12452         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12453       else
12454         whole_archive_flag_spec_F77=
12455       fi
12456     fi
12457   else
12458     # PORTME fill in a description of your system's linker (not GNU ld)
12459     case $host_os in
12460     aix3*)
12461       allow_undefined_flag_F77=unsupported
12462       always_export_symbols_F77=yes
12463       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'
12464       # Note: this linker hardcodes the directories in LIBPATH if there
12465       # are no directories specified by -L.
12466       hardcode_minus_L_F77=yes
12467       if test "$GCC" = yes && test -z "$link_static_flag"; then
12468         # Neither direct hardcoding nor static linking is supported with a
12469         # broken collect2.
12470         hardcode_direct_F77=unsupported
12471       fi
12472       ;;
12473
12474     aix4* | aix5*)
12475       if test "$host_cpu" = ia64; then
12476         # On IA64, the linker does run time linking by default, so we don't
12477         # have to do anything special.
12478         aix_use_runtimelinking=no
12479         exp_sym_flag='-Bexport'
12480         no_entry_flag=""
12481       else
12482         # If we're using GNU nm, then we don't want the "-C" option.
12483         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12484         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12485           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'
12486         else
12487           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'
12488         fi
12489         aix_use_runtimelinking=no
12490
12491         # Test if we are trying to use run time linking or normal
12492         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12493         # need to do runtime linking.
12494         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12495           for ld_flag in $LDFLAGS; do
12496           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12497             aix_use_runtimelinking=yes
12498             break
12499           fi
12500           done
12501         esac
12502
12503         exp_sym_flag='-bexport'
12504         no_entry_flag='-bnoentry'
12505       fi
12506
12507       # When large executables or shared objects are built, AIX ld can
12508       # have problems creating the table of contents.  If linking a library
12509       # or program results in "error TOC overflow" add -mminimal-toc to
12510       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12511       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12512
12513       archive_cmds_F77=''
12514       hardcode_direct_F77=yes
12515       hardcode_libdir_separator_F77=':'
12516       link_all_deplibs_F77=yes
12517
12518       if test "$GCC" = yes; then
12519         case $host_os in aix4.012|aix4.012.*)
12520         # We only want to do this on AIX 4.2 and lower, the check
12521         # below for broken collect2 doesn't work under 4.3+
12522           collect2name=`${CC} -print-prog-name=collect2`
12523           if test -f "$collect2name" && \
12524            strings "$collect2name" | grep resolve_lib_name >/dev/null
12525           then
12526           # We have reworked collect2
12527           hardcode_direct_F77=yes
12528           else
12529           # We have old collect2
12530           hardcode_direct_F77=unsupported
12531           # It fails to find uninstalled libraries when the uninstalled
12532           # path is not listed in the libpath.  Setting hardcode_minus_L
12533           # to unsupported forces relinking
12534           hardcode_minus_L_F77=yes
12535           hardcode_libdir_flag_spec_F77='-L$libdir'
12536           hardcode_libdir_separator_F77=
12537           fi
12538         esac
12539         shared_flag='-shared'
12540       else
12541         # not using gcc
12542         if test "$host_cpu" = ia64; then
12543         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12544         # chokes on -Wl,-G. The following line is correct:
12545           shared_flag='-G'
12546         else
12547         if test "$aix_use_runtimelinking" = yes; then
12548             shared_flag='${wl}-G'
12549           else
12550             shared_flag='${wl}-bM:SRE'
12551         fi
12552         fi
12553       fi
12554
12555       # It seems that -bexpall does not export symbols beginning with
12556       # underscore (_), so it is better to generate a list of symbols to export.
12557       always_export_symbols_F77=yes
12558       if test "$aix_use_runtimelinking" = yes; then
12559         # Warning - without using the other runtime loading flags (-brtl),
12560         # -berok will link without error, but may produce a broken library.
12561         allow_undefined_flag_F77='-berok'
12562        # Determine the default libpath from the value encoded in an empty executable.
12563        cat >conftest.$ac_ext <<_ACEOF
12564       program main
12565
12566       end
12567 _ACEOF
12568 rm -f conftest.$ac_objext conftest$ac_exeext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12570   (eval $ac_link) 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); } &&
12574          { ac_try='test -s conftest$ac_exeext'
12575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576   (eval $ac_try) 2>&5
12577   ac_status=$?
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); }; }; then
12580
12581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12582 }'`
12583 # Check for a 64-bit object if we didn't find anything.
12584 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; }
12585 }'`; fi
12586 else
12587   echo "$as_me: failed program was:" >&5
12588 cat conftest.$ac_ext >&5
12589 fi
12590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12592
12593        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12594         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12595        else
12596         if test "$host_cpu" = ia64; then
12597           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
12598           allow_undefined_flag_F77="-z nodefs"
12599           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12600         else
12601          # Determine the default libpath from the value encoded in an empty executable.
12602          cat >conftest.$ac_ext <<_ACEOF
12603       program main
12604
12605       end
12606 _ACEOF
12607 rm -f conftest.$ac_objext conftest$ac_exeext
12608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12609   (eval $ac_link) 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } &&
12613          { ac_try='test -s conftest$ac_exeext'
12614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615   (eval $ac_try) 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; }; then
12619
12620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12621 }'`
12622 # Check for a 64-bit object if we didn't find anything.
12623 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; }
12624 }'`; fi
12625 else
12626   echo "$as_me: failed program was:" >&5
12627 cat conftest.$ac_ext >&5
12628 fi
12629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12631
12632          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
12633           # Warning - without using the other run time loading flags,
12634           # -berok will link without error, but may produce a broken library.
12635           no_undefined_flag_F77=' ${wl}-bernotok'
12636           allow_undefined_flag_F77=' ${wl}-berok'
12637           # -bexpall does not export symbols beginning with underscore (_)
12638           always_export_symbols_F77=yes
12639           # Exported symbols can be pulled into shared objects from archives
12640           whole_archive_flag_spec_F77=' '
12641           archive_cmds_need_lc_F77=yes
12642           # This is similar to how AIX traditionally builds it's shared libraries.
12643           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12644         fi
12645       fi
12646       ;;
12647
12648     amigaos*)
12649       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)'
12650       hardcode_libdir_flag_spec_F77='-L$libdir'
12651       hardcode_minus_L_F77=yes
12652       # see comment about different semantics on the GNU ld section
12653       ld_shlibs_F77=no
12654       ;;
12655
12656     bsdi4*)
12657       export_dynamic_flag_spec_F77=-rdynamic
12658       ;;
12659
12660     cygwin* | mingw* | pw32*)
12661       # When not using gcc, we currently assume that we are using
12662       # Microsoft Visual C++.
12663       # hardcode_libdir_flag_spec is actually meaningless, as there is
12664       # no search path for DLLs.
12665       hardcode_libdir_flag_spec_F77=' '
12666       allow_undefined_flag_F77=unsupported
12667       # Tell ltmain to make .lib files, not .a files.
12668       libext=lib
12669       # Tell ltmain to make .dll files, not .so files.
12670       shrext=".dll"
12671       # FIXME: Setting linknames here is a bad hack.
12672       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12673       # The linker will automatically build a .lib file if we build a DLL.
12674       old_archive_From_new_cmds_F77='true'
12675       # FIXME: Should let the user specify the lib program.
12676       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
12677       fix_srcfile_path='`cygpath -w "$srcfile"`'
12678       enable_shared_with_static_runtimes_F77=yes
12679       ;;
12680
12681     darwin* | rhapsody*)
12682     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
12683       archive_cmds_need_lc_F77=no
12684       case "$host_os" in
12685       rhapsody* | darwin1.[012])
12686         allow_undefined_flag_F77='-undefined suppress'
12687         ;;
12688       *) # Darwin 1.3 on
12689         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
12690         ;;
12691       esac
12692       # FIXME: Relying on posixy $() will cause problems for
12693       #        cross-compilation, but unfortunately the echo tests do not
12694       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
12695       #        `"' quotes if we put them in here... so don't!
12696         lt_int_apple_cc_single_mod=no
12697         output_verbose_link_cmd='echo'
12698         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12699           lt_int_apple_cc_single_mod=yes
12700         fi
12701         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12702           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12703         else
12704         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12705       fi
12706       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
12707       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12708         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12709           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12710         else
12711           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12712         fi
12713           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12714       hardcode_direct_F77=no
12715       hardcode_automatic_F77=yes
12716       hardcode_shlibpath_var_F77=unsupported
12717       whole_archive_flag_spec_F77='-all_load $convenience'
12718       link_all_deplibs_F77=yes
12719     fi
12720       ;;
12721
12722     dgux*)
12723       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12724       hardcode_libdir_flag_spec_F77='-L$libdir'
12725       hardcode_shlibpath_var_F77=no
12726       ;;
12727
12728     freebsd1*)
12729       ld_shlibs_F77=no
12730       ;;
12731
12732     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12733     # support.  Future versions do this automatically, but an explicit c++rt0.o
12734     # does not break anything, and helps significantly (at the cost of a little
12735     # extra space).
12736     freebsd2.2*)
12737       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12738       hardcode_libdir_flag_spec_F77='-R$libdir'
12739       hardcode_direct_F77=yes
12740       hardcode_shlibpath_var_F77=no
12741       ;;
12742
12743     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12744     freebsd2*)
12745       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12746       hardcode_direct_F77=yes
12747       hardcode_minus_L_F77=yes
12748       hardcode_shlibpath_var_F77=no
12749       ;;
12750
12751     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12752     freebsd*)
12753       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12754       hardcode_libdir_flag_spec_F77='-R$libdir'
12755       hardcode_direct_F77=yes
12756       hardcode_shlibpath_var_F77=no
12757       ;;
12758
12759     hpux9*)
12760       if test "$GCC" = yes; then
12761         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'
12762       else
12763         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'
12764       fi
12765       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12766       hardcode_libdir_separator_F77=:
12767       hardcode_direct_F77=yes
12768
12769       # hardcode_minus_L: Not really in the search PATH,
12770       # but as the default location of the library.
12771       hardcode_minus_L_F77=yes
12772       export_dynamic_flag_spec_F77='${wl}-E'
12773       ;;
12774
12775     hpux10* | hpux11*)
12776       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12777         case "$host_cpu" in
12778         hppa*64*|ia64*)
12779           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12780           ;;
12781         *)
12782           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12783           ;;
12784         esac
12785       else
12786         case "$host_cpu" in
12787         hppa*64*|ia64*)
12788           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12789           ;;
12790         *)
12791           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12792           ;;
12793         esac
12794       fi
12795       if test "$with_gnu_ld" = no; then
12796         case "$host_cpu" in
12797         hppa*64*)
12798           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12799           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
12800           hardcode_libdir_separator_F77=:
12801           hardcode_direct_F77=no
12802           hardcode_shlibpath_var_F77=no
12803           ;;
12804         ia64*)
12805           hardcode_libdir_flag_spec_F77='-L$libdir'
12806           hardcode_direct_F77=no
12807           hardcode_shlibpath_var_F77=no
12808
12809           # hardcode_minus_L: Not really in the search PATH,
12810           # but as the default location of the library.
12811           hardcode_minus_L_F77=yes
12812           ;;
12813         *)
12814           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
12815           hardcode_libdir_separator_F77=:
12816           hardcode_direct_F77=yes
12817           export_dynamic_flag_spec_F77='${wl}-E'
12818
12819           # hardcode_minus_L: Not really in the search PATH,
12820           # but as the default location of the library.
12821           hardcode_minus_L_F77=yes
12822           ;;
12823         esac
12824       fi
12825       ;;
12826
12827     irix5* | irix6* | nonstopux*)
12828       if test "$GCC" = yes; then
12829         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'
12830       else
12831         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'
12832         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
12833       fi
12834       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12835       hardcode_libdir_separator_F77=:
12836       link_all_deplibs_F77=yes
12837       ;;
12838
12839     netbsd*)
12840       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12841         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12842       else
12843         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12844       fi
12845       hardcode_libdir_flag_spec_F77='-R$libdir'
12846       hardcode_direct_F77=yes
12847       hardcode_shlibpath_var_F77=no
12848       ;;
12849
12850     newsos6)
12851       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12852       hardcode_direct_F77=yes
12853       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12854       hardcode_libdir_separator_F77=:
12855       hardcode_shlibpath_var_F77=no
12856       ;;
12857
12858     openbsd*)
12859       hardcode_direct_F77=yes
12860       hardcode_shlibpath_var_F77=no
12861       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12862         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12863         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
12864         export_dynamic_flag_spec_F77='${wl}-E'
12865       else
12866        case $host_os in
12867          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12868            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12869            hardcode_libdir_flag_spec_F77='-R$libdir'
12870            ;;
12871          *)
12872            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12873            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
12874            ;;
12875        esac
12876       fi
12877       ;;
12878
12879     os2*)
12880       hardcode_libdir_flag_spec_F77='-L$libdir'
12881       hardcode_minus_L_F77=yes
12882       allow_undefined_flag_F77=unsupported
12883       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'
12884       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12885       ;;
12886
12887     osf3*)
12888       if test "$GCC" = yes; then
12889         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
12890         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'
12891       else
12892         allow_undefined_flag_F77=' -expect_unresolved \*'
12893         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'
12894       fi
12895       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12896       hardcode_libdir_separator_F77=:
12897       ;;
12898
12899     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12900       if test "$GCC" = yes; then
12901         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
12902         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'
12903         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
12904       else
12905         allow_undefined_flag_F77=' -expect_unresolved \*'
12906         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'
12907         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~
12908         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
12909
12910         # Both c and cxx compiler support -rpath directly
12911         hardcode_libdir_flag_spec_F77='-rpath $libdir'
12912       fi
12913       hardcode_libdir_separator_F77=:
12914       ;;
12915
12916     sco3.2v5*)
12917       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12918       hardcode_shlibpath_var_F77=no
12919       export_dynamic_flag_spec_F77='${wl}-Bexport'
12920       runpath_var=LD_RUN_PATH
12921       hardcode_runpath_var=yes
12922       ;;
12923
12924     solaris*)
12925       no_undefined_flag_F77=' -z text'
12926       if test "$GCC" = yes; then
12927         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12928         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12929           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12930       else
12931         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12932         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12933         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12934       fi
12935       hardcode_libdir_flag_spec_F77='-R$libdir'
12936       hardcode_shlibpath_var_F77=no
12937       case $host_os in
12938       solaris2.[0-5] | solaris2.[0-5].*) ;;
12939       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12940         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
12941       esac
12942       link_all_deplibs_F77=yes
12943       ;;
12944
12945     sunos4*)
12946       if test "x$host_vendor" = xsequent; then
12947         # Use $CC to link under sequent, because it throws in some extra .o
12948         # files that make .init and .fini sections work.
12949         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12950       else
12951         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12952       fi
12953       hardcode_libdir_flag_spec_F77='-L$libdir'
12954       hardcode_direct_F77=yes
12955       hardcode_minus_L_F77=yes
12956       hardcode_shlibpath_var_F77=no
12957       ;;
12958
12959     sysv4)
12960       case $host_vendor in
12961         sni)
12962           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12963           hardcode_direct_F77=yes # is this really true???
12964         ;;
12965         siemens)
12966           ## LD is ld it makes a PLAMLIB
12967           ## CC just makes a GrossModule.
12968           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12969           reload_cmds_F77='$CC -r -o $output$reload_objs'
12970           hardcode_direct_F77=no
12971         ;;
12972         motorola)
12973           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12974           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
12975         ;;
12976       esac
12977       runpath_var='LD_RUN_PATH'
12978       hardcode_shlibpath_var_F77=no
12979       ;;
12980
12981     sysv4.3*)
12982       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12983       hardcode_shlibpath_var_F77=no
12984       export_dynamic_flag_spec_F77='-Bexport'
12985       ;;
12986
12987     sysv4*MP*)
12988       if test -d /usr/nec; then
12989         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12990         hardcode_shlibpath_var_F77=no
12991         runpath_var=LD_RUN_PATH
12992         hardcode_runpath_var=yes
12993         ld_shlibs_F77=yes
12994       fi
12995       ;;
12996
12997     sysv4.2uw2*)
12998       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12999       hardcode_direct_F77=yes
13000       hardcode_minus_L_F77=no
13001       hardcode_shlibpath_var_F77=no
13002       hardcode_runpath_var=yes
13003       runpath_var=LD_RUN_PATH
13004       ;;
13005
13006    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13007       no_undefined_flag_F77='${wl}-z ${wl}text'
13008       if test "$GCC" = yes; then
13009         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13010       else
13011         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13012       fi
13013       runpath_var='LD_RUN_PATH'
13014       hardcode_shlibpath_var_F77=no
13015       ;;
13016
13017     sysv5*)
13018       no_undefined_flag_F77=' -z text'
13019       # $CC -shared without GNU ld will not create a library from C++
13020       # object files and a static libstdc++, better avoid it by now
13021       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13022       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13023                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13024       hardcode_libdir_flag_spec_F77=
13025       hardcode_shlibpath_var_F77=no
13026       runpath_var='LD_RUN_PATH'
13027       ;;
13028
13029     uts4*)
13030       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13031       hardcode_libdir_flag_spec_F77='-L$libdir'
13032       hardcode_shlibpath_var_F77=no
13033       ;;
13034
13035     *)
13036       ld_shlibs_F77=no
13037       ;;
13038     esac
13039   fi
13040
13041 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13042 echo "${ECHO_T}$ld_shlibs_F77" >&6
13043 test "$ld_shlibs_F77" = no && can_build_shared=no
13044
13045 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13046 if test "$GCC" = yes; then
13047   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13048 fi
13049
13050 #
13051 # Do we need to explicitly link libc?
13052 #
13053 case "x$archive_cmds_need_lc_F77" in
13054 x|xyes)
13055   # Assume -lc should be added
13056   archive_cmds_need_lc_F77=yes
13057
13058   if test "$enable_shared" = yes && test "$GCC" = yes; then
13059     case $archive_cmds_F77 in
13060     *'~'*)
13061       # FIXME: we may have to deal with multi-command sequences.
13062       ;;
13063     '$CC '*)
13064       # Test whether the compiler implicitly links with -lc since on some
13065       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13066       # to ld, don't add -lc before -lgcc.
13067       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13068 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13069       $rm conftest*
13070       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13071
13072       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13073   (eval $ac_compile) 2>&5
13074   ac_status=$?
13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076   (exit $ac_status); } 2>conftest.err; then
13077         soname=conftest
13078         lib=conftest
13079         libobjs=conftest.$ac_objext
13080         deplibs=
13081         wl=$lt_prog_compiler_wl_F77
13082         compiler_flags=-v
13083         linker_flags=-v
13084         verstring=
13085         output_objdir=.
13086         libname=conftest
13087         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13088         allow_undefined_flag_F77=
13089         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13090   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13091   ac_status=$?
13092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093   (exit $ac_status); }
13094         then
13095           archive_cmds_need_lc_F77=no
13096         else
13097           archive_cmds_need_lc_F77=yes
13098         fi
13099         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13100       else
13101         cat conftest.err 1>&5
13102       fi
13103       $rm conftest*
13104       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13105 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13106       ;;
13107     esac
13108   fi
13109   ;;
13110 esac
13111
13112 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13113 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13114 hardcode_action_F77=
13115 if test -n "$hardcode_libdir_flag_spec_F77" || \
13116    test -n "$runpath_var F77" || \
13117    test "X$hardcode_automatic_F77"="Xyes" ; then
13118
13119   # We can hardcode non-existant directories.
13120   if test "$hardcode_direct_F77" != no &&
13121      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13122      # have to relink, otherwise we might link with an installed library
13123      # when we should be linking with a yet-to-be-installed one
13124      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13125      test "$hardcode_minus_L_F77" != no; then
13126     # Linking always hardcodes the temporary library directory.
13127     hardcode_action_F77=relink
13128   else
13129     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13130     hardcode_action_F77=immediate
13131   fi
13132 else
13133   # We cannot hardcode anything, or else we can only hardcode existing
13134   # directories.
13135   hardcode_action_F77=unsupported
13136 fi
13137 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13138 echo "${ECHO_T}$hardcode_action_F77" >&6
13139
13140 if test "$hardcode_action_F77" = relink; then
13141   # Fast installation is not supported
13142   enable_fast_install=no
13143 elif test "$shlibpath_overrides_runpath" = yes ||
13144      test "$enable_shared" = no; then
13145   # Fast installation is not necessary
13146   enable_fast_install=needless
13147 fi
13148
13149 striplib=
13150 old_striplib=
13151 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13152 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13153 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13154   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13155   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13156   echo "$as_me:$LINENO: result: yes" >&5
13157 echo "${ECHO_T}yes" >&6
13158 else
13159 # FIXME - insert some real tests, host_os isn't really good enough
13160   case $host_os in
13161    darwin*)
13162        if test -n "$STRIP" ; then
13163          striplib="$STRIP -x"
13164          echo "$as_me:$LINENO: result: yes" >&5
13165 echo "${ECHO_T}yes" >&6
13166        else
13167   echo "$as_me:$LINENO: result: no" >&5
13168 echo "${ECHO_T}no" >&6
13169 fi
13170        ;;
13171    *)
13172   echo "$as_me:$LINENO: result: no" >&5
13173 echo "${ECHO_T}no" >&6
13174     ;;
13175   esac
13176 fi
13177
13178 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13179 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13180 library_names_spec=
13181 libname_spec='lib$name'
13182 soname_spec=
13183 shrext=".so"
13184 postinstall_cmds=
13185 postuninstall_cmds=
13186 finish_cmds=
13187 finish_eval=
13188 shlibpath_var=
13189 shlibpath_overrides_runpath=unknown
13190 version_type=none
13191 dynamic_linker="$host_os ld.so"
13192 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13193 if test "$GCC" = yes; then
13194   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13195   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13196     # if the path contains ";" then we assume it to be the separator
13197     # otherwise default to the standard path separator (i.e. ":") - it is
13198     # assumed that no part of a normal pathname contains ";" but that should
13199     # okay in the real world where ";" in dirpaths is itself problematic.
13200     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13201   else
13202     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13203   fi
13204 else
13205   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13206 fi
13207 need_lib_prefix=unknown
13208 hardcode_into_libs=no
13209
13210 # when you set need_version to no, make sure it does not cause -set_version
13211 # flags to be left without arguments
13212 need_version=unknown
13213
13214 case $host_os in
13215 aix3*)
13216   version_type=linux
13217   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13218   shlibpath_var=LIBPATH
13219
13220   # AIX 3 has no versioning support, so we append a major version to the name.
13221   soname_spec='${libname}${release}${shared_ext}$major'
13222   ;;
13223
13224 aix4* | aix5*)
13225   version_type=linux
13226   need_lib_prefix=no
13227   need_version=no
13228   hardcode_into_libs=yes
13229   if test "$host_cpu" = ia64; then
13230     # AIX 5 supports IA64
13231     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13232     shlibpath_var=LD_LIBRARY_PATH
13233   else
13234     # With GCC up to 2.95.x, collect2 would create an import file
13235     # for dependence libraries.  The import file would start with
13236     # the line `#! .'.  This would cause the generated library to
13237     # depend on `.', always an invalid library.  This was fixed in
13238     # development snapshots of GCC prior to 3.0.
13239     case $host_os in
13240       aix4 | aix4.[01] | aix4.[01].*)
13241       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13242            echo ' yes '
13243            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13244         :
13245       else
13246         can_build_shared=no
13247       fi
13248       ;;
13249     esac
13250     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13251     # soname into executable. Probably we can add versioning support to
13252     # collect2, so additional links can be useful in future.
13253     if test "$aix_use_runtimelinking" = yes; then
13254       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13255       # instead of lib<name>.a to let people know that these are not
13256       # typical AIX shared libraries.
13257       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13258     else
13259       # We preserve .a as extension for shared libraries through AIX4.2
13260       # and later when we are not doing run time linking.
13261       library_names_spec='${libname}${release}.a $libname.a'
13262       soname_spec='${libname}${release}${shared_ext}$major'
13263     fi
13264     shlibpath_var=LIBPATH
13265   fi
13266   ;;
13267
13268 amigaos*)
13269   library_names_spec='$libname.ixlibrary $libname.a'
13270   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13271   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'
13272   ;;
13273
13274 beos*)
13275   library_names_spec='${libname}${shared_ext}'
13276   dynamic_linker="$host_os ld.so"
13277   shlibpath_var=LIBRARY_PATH
13278   ;;
13279
13280 bsdi4*)
13281   version_type=linux
13282   need_version=no
13283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13284   soname_spec='${libname}${release}${shared_ext}$major'
13285   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13286   shlibpath_var=LD_LIBRARY_PATH
13287   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13288   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13289   # the default ld.so.conf also contains /usr/contrib/lib and
13290   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13291   # libtool to hard-code these into programs
13292   ;;
13293
13294 cygwin* | mingw* | pw32*)
13295   version_type=windows
13296   shrext=".dll"
13297   need_version=no
13298   need_lib_prefix=no
13299
13300   case $GCC,$host_os in
13301   yes,cygwin* | yes,mingw* | yes,pw32*)
13302     library_names_spec='$libname.dll.a'
13303     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13304     postinstall_cmds='base_file=`basename \${file}`~
13305       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13306       dldir=$destdir/`dirname \$dlpath`~
13307       test -d \$dldir || mkdir -p \$dldir~
13308       $install_prog $dir/$dlname \$dldir/$dlname'
13309     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13310       dlpath=$dir/\$dldll~
13311        $rm \$dlpath'
13312     shlibpath_overrides_runpath=yes
13313
13314     case $host_os in
13315     cygwin*)
13316       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13317       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13318       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13319       ;;
13320     mingw*)
13321       # MinGW DLLs use traditional 'lib' prefix
13322       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13323       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13324       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13325         # It is most probably a Windows format PATH printed by
13326         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13327         # path with ; separators, and with drive letters. We can handle the
13328         # drive letters (cygwin fileutils understands them), so leave them,
13329         # especially as we might pass files found there to a mingw objdump,
13330         # which wouldn't understand a cygwinified path. Ahh.
13331         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13332       else
13333         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13334       fi
13335       ;;
13336     pw32*)
13337       # pw32 DLLs use 'pw' prefix rather than 'lib'
13338       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13339       ;;
13340     esac
13341     ;;
13342
13343   *)
13344     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13345     ;;
13346   esac
13347   dynamic_linker='Win32 ld.exe'
13348   # FIXME: first we should search . and the directory the executable is in
13349   shlibpath_var=PATH
13350   ;;
13351
13352 darwin* | rhapsody*)
13353   dynamic_linker="$host_os dyld"
13354   version_type=darwin
13355   need_lib_prefix=no
13356   need_version=no
13357   # FIXME: Relying on posixy $() will cause problems for
13358   #        cross-compilation, but unfortunately the echo tests do not
13359   #        yet detect zsh echo's removal of \ escapes.
13360   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13361   soname_spec='${libname}${release}${major}$shared_ext'
13362   shlibpath_overrides_runpath=yes
13363   shlibpath_var=DYLD_LIBRARY_PATH
13364   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13365   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13366   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13367   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"`
13368   fi
13369   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13370   ;;
13371
13372 dgux*)
13373   version_type=linux
13374   need_lib_prefix=no
13375   need_version=no
13376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13377   soname_spec='${libname}${release}${shared_ext}$major'
13378   shlibpath_var=LD_LIBRARY_PATH
13379   ;;
13380
13381 freebsd1*)
13382   dynamic_linker=no
13383   ;;
13384
13385 freebsd*)
13386   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13387   version_type=freebsd-$objformat
13388   case $version_type in
13389     freebsd-elf*)
13390       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13391       need_version=no
13392       need_lib_prefix=no
13393       ;;
13394     freebsd-*)
13395       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13396       need_version=yes
13397       ;;
13398   esac
13399   shlibpath_var=LD_LIBRARY_PATH
13400   case $host_os in
13401   freebsd2*)
13402     shlibpath_overrides_runpath=yes
13403     ;;
13404   freebsd3.01* | freebsdelf3.01*)
13405     shlibpath_overrides_runpath=yes
13406     hardcode_into_libs=yes
13407     ;;
13408   *) # from 3.2 on
13409     shlibpath_overrides_runpath=no
13410     hardcode_into_libs=yes
13411     ;;
13412   esac
13413   ;;
13414
13415 gnu*)
13416   version_type=linux
13417   need_lib_prefix=no
13418   need_version=no
13419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13420   soname_spec='${libname}${release}${shared_ext}$major'
13421   shlibpath_var=LD_LIBRARY_PATH
13422   hardcode_into_libs=yes
13423   ;;
13424
13425 hpux9* | hpux10* | hpux11*)
13426   # Give a soname corresponding to the major version so that dld.sl refuses to
13427   # link against other versions.
13428   version_type=sunos
13429   need_lib_prefix=no
13430   need_version=no
13431   case "$host_cpu" in
13432   ia64*)
13433     shrext='.so'
13434     hardcode_into_libs=yes
13435     dynamic_linker="$host_os dld.so"
13436     shlibpath_var=LD_LIBRARY_PATH
13437     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13439     soname_spec='${libname}${release}${shared_ext}$major'
13440     if test "X$HPUX_IA64_MODE" = X32; then
13441       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13442     else
13443       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13444     fi
13445     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13446     ;;
13447    hppa*64*)
13448      shrext='.sl'
13449      hardcode_into_libs=yes
13450      dynamic_linker="$host_os dld.sl"
13451      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13452      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13453      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13454      soname_spec='${libname}${release}${shared_ext}$major'
13455      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13456      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13457      ;;
13458    *)
13459     shrext='.sl'
13460     dynamic_linker="$host_os dld.sl"
13461     shlibpath_var=SHLIB_PATH
13462     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13464     soname_spec='${libname}${release}${shared_ext}$major'
13465     ;;
13466   esac
13467   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13468   postinstall_cmds='chmod 555 $lib'
13469   ;;
13470
13471 irix5* | irix6* | nonstopux*)
13472   case $host_os in
13473     nonstopux*) version_type=nonstopux ;;
13474     *)
13475         if test "$lt_cv_prog_gnu_ld" = yes; then
13476                 version_type=linux
13477         else
13478                 version_type=irix
13479         fi ;;
13480   esac
13481   need_lib_prefix=no
13482   need_version=no
13483   soname_spec='${libname}${release}${shared_ext}$major'
13484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13485   case $host_os in
13486   irix5* | nonstopux*)
13487     libsuff= shlibsuff=
13488     ;;
13489   *)
13490     case $LD in # libtool.m4 will add one of these switches to LD
13491     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13492       libsuff= shlibsuff= libmagic=32-bit;;
13493     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13494       libsuff=32 shlibsuff=N32 libmagic=N32;;
13495     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13496       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13497     *) libsuff= shlibsuff= libmagic=never-match;;
13498     esac
13499     ;;
13500   esac
13501   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13502   shlibpath_overrides_runpath=no
13503   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13504   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13505   hardcode_into_libs=yes
13506   ;;
13507
13508 # No shared lib support for Linux oldld, aout, or coff.
13509 linux*oldld* | linux*aout* | linux*coff*)
13510   dynamic_linker=no
13511   ;;
13512
13513 # This must be Linux ELF.
13514 linux*)
13515   version_type=linux
13516   need_lib_prefix=no
13517   need_version=no
13518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13519   soname_spec='${libname}${release}${shared_ext}$major'
13520   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13521   shlibpath_var=LD_LIBRARY_PATH
13522   shlibpath_overrides_runpath=no
13523   # This implies no fast_install, which is unacceptable.
13524   # Some rework will be needed to allow for fast_install
13525   # before this can be enabled.
13526   hardcode_into_libs=yes
13527
13528   # We used to test for /lib/ld.so.1 and disable shared libraries on
13529   # powerpc, because MkLinux only supported shared libraries with the
13530   # GNU dynamic linker.  Since this was broken with cross compilers,
13531   # most powerpc-linux boxes support dynamic linking these days and
13532   # people can always --disable-shared, the test was removed, and we
13533   # assume the GNU/Linux dynamic linker is in use.
13534   dynamic_linker='GNU/Linux ld.so'
13535   ;;
13536
13537 netbsd*)
13538   version_type=sunos
13539   need_lib_prefix=no
13540   need_version=no
13541   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13543     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13544     dynamic_linker='NetBSD (a.out) ld.so'
13545   else
13546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
13547     soname_spec='${libname}${release}${shared_ext}$major'
13548     dynamic_linker='NetBSD ld.elf_so'
13549   fi
13550   shlibpath_var=LD_LIBRARY_PATH
13551   shlibpath_overrides_runpath=yes
13552   hardcode_into_libs=yes
13553   ;;
13554
13555 newsos6)
13556   version_type=linux
13557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558   shlibpath_var=LD_LIBRARY_PATH
13559   shlibpath_overrides_runpath=yes
13560   ;;
13561
13562 nto-qnx)
13563   version_type=linux
13564   need_lib_prefix=no
13565   need_version=no
13566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567   soname_spec='${libname}${release}${shared_ext}$major'
13568   shlibpath_var=LD_LIBRARY_PATH
13569   shlibpath_overrides_runpath=yes
13570   ;;
13571
13572 openbsd*)
13573   version_type=sunos
13574   need_lib_prefix=no
13575   need_version=no
13576   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13577   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13578   shlibpath_var=LD_LIBRARY_PATH
13579   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13580     case $host_os in
13581       openbsd2.[89] | openbsd2.[89].*)
13582         shlibpath_overrides_runpath=no
13583         ;;
13584       *)
13585         shlibpath_overrides_runpath=yes
13586         ;;
13587       esac
13588   else
13589     shlibpath_overrides_runpath=yes
13590   fi
13591   ;;
13592
13593 os2*)
13594   libname_spec='$name'
13595   shrext=".dll"
13596   need_lib_prefix=no
13597   library_names_spec='$libname${shared_ext} $libname.a'
13598   dynamic_linker='OS/2 ld.exe'
13599   shlibpath_var=LIBPATH
13600   ;;
13601
13602 osf3* | osf4* | osf5*)
13603   version_type=osf
13604   need_lib_prefix=no
13605   need_version=no
13606   soname_spec='${libname}${release}${shared_ext}$major'
13607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13608   shlibpath_var=LD_LIBRARY_PATH
13609   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13610   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13611   ;;
13612
13613 sco3.2v5*)
13614   version_type=osf
13615   soname_spec='${libname}${release}${shared_ext}$major'
13616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13617   shlibpath_var=LD_LIBRARY_PATH
13618   ;;
13619
13620 solaris*)
13621   version_type=linux
13622   need_lib_prefix=no
13623   need_version=no
13624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13625   soname_spec='${libname}${release}${shared_ext}$major'
13626   shlibpath_var=LD_LIBRARY_PATH
13627   shlibpath_overrides_runpath=yes
13628   hardcode_into_libs=yes
13629   # ldd complains unless libraries are executable
13630   postinstall_cmds='chmod +x $lib'
13631   ;;
13632
13633 sunos4*)
13634   version_type=sunos
13635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13636   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13637   shlibpath_var=LD_LIBRARY_PATH
13638   shlibpath_overrides_runpath=yes
13639   if test "$with_gnu_ld" = yes; then
13640     need_lib_prefix=no
13641   fi
13642   need_version=yes
13643   ;;
13644
13645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13646   version_type=linux
13647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13648   soname_spec='${libname}${release}${shared_ext}$major'
13649   shlibpath_var=LD_LIBRARY_PATH
13650   case $host_vendor in
13651     sni)
13652       shlibpath_overrides_runpath=no
13653       need_lib_prefix=no
13654       export_dynamic_flag_spec='${wl}-Blargedynsym'
13655       runpath_var=LD_RUN_PATH
13656       ;;
13657     siemens)
13658       need_lib_prefix=no
13659       ;;
13660     motorola)
13661       need_lib_prefix=no
13662       need_version=no
13663       shlibpath_overrides_runpath=no
13664       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13665       ;;
13666   esac
13667   ;;
13668
13669 sysv4*MP*)
13670   if test -d /usr/nec ;then
13671     version_type=linux
13672     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13673     soname_spec='$libname${shared_ext}.$major'
13674     shlibpath_var=LD_LIBRARY_PATH
13675   fi
13676   ;;
13677
13678 uts4*)
13679   version_type=linux
13680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13681   soname_spec='${libname}${release}${shared_ext}$major'
13682   shlibpath_var=LD_LIBRARY_PATH
13683   ;;
13684
13685 *)
13686   dynamic_linker=no
13687   ;;
13688 esac
13689 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13690 echo "${ECHO_T}$dynamic_linker" >&6
13691 test "$dynamic_linker" = no && can_build_shared=no
13692
13693
13694 # The else clause should only fire when bootstrapping the
13695 # libtool distribution, otherwise you forgot to ship ltmain.sh
13696 # with your package, and you will get complaints that there are
13697 # no rules to generate ltmain.sh.
13698 if test -f "$ltmain"; then
13699   # See if we are running on zsh, and set the options which allow our commands through
13700   # without removal of \ escapes.
13701   if test -n "${ZSH_VERSION+set}" ; then
13702     setopt NO_GLOB_SUBST
13703   fi
13704   # Now quote all the things that may contain metacharacters while being
13705   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13706   # variables and quote the copies for generation of the libtool script.
13707   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13708     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13709     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13710     deplibs_check_method reload_flag reload_cmds need_locks \
13711     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13712     lt_cv_sys_global_symbol_to_c_name_address \
13713     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13714     old_postinstall_cmds old_postuninstall_cmds \
13715     compiler_F77 \
13716     CC_F77 \
13717     LD_F77 \
13718     lt_prog_compiler_wl_F77 \
13719     lt_prog_compiler_pic_F77 \
13720     lt_prog_compiler_static_F77 \
13721     lt_prog_compiler_no_builtin_flag_F77 \
13722     export_dynamic_flag_spec_F77 \
13723     thread_safe_flag_spec_F77 \
13724     whole_archive_flag_spec_F77 \
13725     enable_shared_with_static_runtimes_F77 \
13726     old_archive_cmds_F77 \
13727     old_archive_from_new_cmds_F77 \
13728     predep_objects_F77 \
13729     postdep_objects_F77 \
13730     predeps_F77 \
13731     postdeps_F77 \
13732     compiler_lib_search_path_F77 \
13733     archive_cmds_F77 \
13734     archive_expsym_cmds_F77 \
13735     postinstall_cmds_F77 \
13736     postuninstall_cmds_F77 \
13737     old_archive_from_expsyms_cmds_F77 \
13738     allow_undefined_flag_F77 \
13739     no_undefined_flag_F77 \
13740     export_symbols_cmds_F77 \
13741     hardcode_libdir_flag_spec_F77 \
13742     hardcode_libdir_flag_spec_ld_F77 \
13743     hardcode_libdir_separator_F77 \
13744     hardcode_automatic_F77 \
13745     module_cmds_F77 \
13746     module_expsym_cmds_F77 \
13747     lt_cv_prog_compiler_c_o_F77 \
13748     exclude_expsyms_F77 \
13749     include_expsyms_F77; do
13750
13751     case $var in
13752     old_archive_cmds_F77 | \
13753     old_archive_from_new_cmds_F77 | \
13754     archive_cmds_F77 | \
13755     archive_expsym_cmds_F77 | \
13756     module_cmds_F77 | \
13757     module_expsym_cmds_F77 | \
13758     old_archive_from_expsyms_cmds_F77 | \
13759     export_symbols_cmds_F77 | \
13760     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13761     postinstall_cmds | postuninstall_cmds | \
13762     old_postinstall_cmds | old_postuninstall_cmds | \
13763     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13764       # Double-quote double-evaled strings.
13765       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13766       ;;
13767     *)
13768       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13769       ;;
13770     esac
13771   done
13772
13773   case $lt_echo in
13774   *'\$0 --fallback-echo"')
13775     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13776     ;;
13777   esac
13778
13779 cfgfile="$ofile"
13780
13781   cat <<__EOF__ >> "$cfgfile"
13782 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13783
13784 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13785
13786 # Shell to use when invoking shell scripts.
13787 SHELL=$lt_SHELL
13788
13789 # Whether or not to build shared libraries.
13790 build_libtool_libs=$enable_shared
13791
13792 # Whether or not to build static libraries.
13793 build_old_libs=$enable_static
13794
13795 # Whether or not to add -lc for building shared libraries.
13796 build_libtool_need_lc=$archive_cmds_need_lc_F77
13797
13798 # Whether or not to disallow shared libs when runtime libs are static
13799 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
13800
13801 # Whether or not to optimize for fast installation.
13802 fast_install=$enable_fast_install
13803
13804 # The host system.
13805 host_alias=$host_alias
13806 host=$host
13807
13808 # An echo program that does not interpret backslashes.
13809 echo=$lt_echo
13810
13811 # The archiver.
13812 AR=$lt_AR
13813 AR_FLAGS=$lt_AR_FLAGS
13814
13815 # A C compiler.
13816 LTCC=$lt_LTCC
13817
13818 # A language-specific compiler.
13819 CC=$lt_compiler_F77
13820
13821 # Is the compiler the GNU C compiler?
13822 with_gcc=$GCC_F77
13823
13824 # An ERE matcher.
13825 EGREP=$lt_EGREP
13826
13827 # The linker used to build libraries.
13828 LD=$lt_LD_F77
13829
13830 # Whether we need hard or soft links.
13831 LN_S=$lt_LN_S
13832
13833 # A BSD-compatible nm program.
13834 NM=$lt_NM
13835
13836 # A symbol stripping program
13837 STRIP=$STRIP
13838
13839 # Used to examine libraries when file_magic_cmd begins "file"
13840 MAGIC_CMD=$MAGIC_CMD
13841
13842 # Used on cygwin: DLL creation program.
13843 DLLTOOL="$DLLTOOL"
13844
13845 # Used on cygwin: object dumper.
13846 OBJDUMP="$OBJDUMP"
13847
13848 # Used on cygwin: assembler.
13849 AS="$AS"
13850
13851 # The name of the directory that contains temporary libtool files.
13852 objdir=$objdir
13853
13854 # How to create reloadable object files.
13855 reload_flag=$lt_reload_flag
13856 reload_cmds=$lt_reload_cmds
13857
13858 # How to pass a linker flag through the compiler.
13859 wl=$lt_lt_prog_compiler_wl_F77
13860
13861 # Object file suffix (normally "o").
13862 objext="$ac_objext"
13863
13864 # Old archive suffix (normally "a").
13865 libext="$libext"
13866
13867 # Shared library suffix (normally ".so").
13868 shrext='$shrext'
13869
13870 # Executable file suffix (normally "").
13871 exeext="$exeext"
13872
13873 # Additional compiler flags for building library objects.
13874 pic_flag=$lt_lt_prog_compiler_pic_F77
13875 pic_mode=$pic_mode
13876
13877 # What is the maximum length of a command?
13878 max_cmd_len=$lt_cv_sys_max_cmd_len
13879
13880 # Does compiler simultaneously support -c and -o options?
13881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
13882
13883 # Must we lock files when doing compilation ?
13884 need_locks=$lt_need_locks
13885
13886 # Do we need the lib prefix for modules?
13887 need_lib_prefix=$need_lib_prefix
13888
13889 # Do we need a version for libraries?
13890 need_version=$need_version
13891
13892 # Whether dlopen is supported.
13893 dlopen_support=$enable_dlopen
13894
13895 # Whether dlopen of programs is supported.
13896 dlopen_self=$enable_dlopen_self
13897
13898 # Whether dlopen of statically linked programs is supported.
13899 dlopen_self_static=$enable_dlopen_self_static
13900
13901 # Compiler flag to prevent dynamic linking.
13902 link_static_flag=$lt_lt_prog_compiler_static_F77
13903
13904 # Compiler flag to turn off builtin functions.
13905 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
13906
13907 # Compiler flag to allow reflexive dlopens.
13908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
13909
13910 # Compiler flag to generate shared objects directly from archives.
13911 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
13912
13913 # Compiler flag to generate thread-safe objects.
13914 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
13915
13916 # Library versioning type.
13917 version_type=$version_type
13918
13919 # Format of library name prefix.
13920 libname_spec=$lt_libname_spec
13921
13922 # List of archive names.  First name is the real one, the rest are links.
13923 # The last name is the one that the linker finds with -lNAME.
13924 library_names_spec=$lt_library_names_spec
13925
13926 # The coded name of the library, if different from the real name.
13927 soname_spec=$lt_soname_spec
13928
13929 # Commands used to build and install an old-style archive.
13930 RANLIB=$lt_RANLIB
13931 old_archive_cmds=$lt_old_archive_cmds_F77
13932 old_postinstall_cmds=$lt_old_postinstall_cmds
13933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13934
13935 # Create an old-style archive from a shared archive.
13936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
13937
13938 # Create a temporary old-style archive to link instead of a shared archive.
13939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
13940
13941 # Commands used to build and install a shared archive.
13942 archive_cmds=$lt_archive_cmds_F77
13943 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
13944 postinstall_cmds=$lt_postinstall_cmds
13945 postuninstall_cmds=$lt_postuninstall_cmds
13946
13947 # Commands used to build a loadable module (assumed same as above if empty)
13948 module_cmds=$lt_module_cmds_F77
13949 module_expsym_cmds=$lt_module_expsym_cmds_F77
13950
13951 # Commands to strip libraries.
13952 old_striplib=$lt_old_striplib
13953 striplib=$lt_striplib
13954
13955 # Dependencies to place before the objects being linked to create a
13956 # shared library.
13957 predep_objects=$lt_predep_objects_F77
13958
13959 # Dependencies to place after the objects being linked to create a
13960 # shared library.
13961 postdep_objects=$lt_postdep_objects_F77
13962
13963 # Dependencies to place before the objects being linked to create a
13964 # shared library.
13965 predeps=$lt_predeps_F77
13966
13967 # Dependencies to place after the objects being linked to create a
13968 # shared library.
13969 postdeps=$lt_postdeps_F77
13970
13971 # The library search path used internally by the compiler when linking
13972 # a shared library.
13973 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
13974
13975 # Method to check whether dependent libraries are shared objects.
13976 deplibs_check_method=$lt_deplibs_check_method
13977
13978 # Command to use when deplibs_check_method == file_magic.
13979 file_magic_cmd=$lt_file_magic_cmd
13980
13981 # Flag that allows shared libraries with undefined symbols to be built.
13982 allow_undefined_flag=$lt_allow_undefined_flag_F77
13983
13984 # Flag that forces no undefined symbols.
13985 no_undefined_flag=$lt_no_undefined_flag_F77
13986
13987 # Commands used to finish a libtool library installation in a directory.
13988 finish_cmds=$lt_finish_cmds
13989
13990 # Same as above, but a single script fragment to be evaled but not shown.
13991 finish_eval=$lt_finish_eval
13992
13993 # Take the output of nm and produce a listing of raw symbols and C names.
13994 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13995
13996 # Transform the output of nm in a proper C declaration
13997 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13998
13999 # Transform the output of nm in a C name address pair
14000 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14001
14002 # This is the shared library runtime path variable.
14003 runpath_var=$runpath_var
14004
14005 # This is the shared library path variable.
14006 shlibpath_var=$shlibpath_var
14007
14008 # Is shlibpath searched before the hard-coded library search path?
14009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14010
14011 # How to hardcode a shared library path into an executable.
14012 hardcode_action=$hardcode_action_F77
14013
14014 # Whether we should hardcode library paths into libraries.
14015 hardcode_into_libs=$hardcode_into_libs
14016
14017 # Flag to hardcode \$libdir into a binary during linking.
14018 # This must work even if \$libdir does not exist.
14019 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14020
14021 # If ld is used when linking, flag to hardcode \$libdir into
14022 # a binary during linking. This must work even if \$libdir does
14023 # not exist.
14024 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14025
14026 # Whether we need a single -rpath flag with a separated argument.
14027 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14028
14029 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14030 # resulting binary.
14031 hardcode_direct=$hardcode_direct_F77
14032
14033 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14034 # resulting binary.
14035 hardcode_minus_L=$hardcode_minus_L_F77
14036
14037 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14038 # the resulting binary.
14039 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14040
14041 # Set to yes if building a shared library automatically hardcodes DIR into the library
14042 # and all subsequent libraries and executables linked against it.
14043 hardcode_automatic=$hardcode_automatic_F77
14044
14045 # Variables whose values should be saved in libtool wrapper scripts and
14046 # restored at relink time.
14047 variables_saved_for_relink="$variables_saved_for_relink"
14048
14049 # Whether libtool must link a program against all its dependency libraries.
14050 link_all_deplibs=$link_all_deplibs_F77
14051
14052 # Compile-time system search path for libraries
14053 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14054
14055 # Run-time system search path for libraries
14056 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14057
14058 # Fix the shell variable \$srcfile for the compiler.
14059 fix_srcfile_path="$fix_srcfile_path_F77"
14060
14061 # Set to yes if exported symbols are required.
14062 always_export_symbols=$always_export_symbols_F77
14063
14064 # The commands to list exported symbols.
14065 export_symbols_cmds=$lt_export_symbols_cmds_F77
14066
14067 # The commands to extract the exported symbol list from a shared archive.
14068 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14069
14070 # Symbols that should not be listed in the preloaded symbols.
14071 exclude_expsyms=$lt_exclude_expsyms_F77
14072
14073 # Symbols that must always be exported.
14074 include_expsyms=$lt_include_expsyms_F77
14075
14076 # ### END LIBTOOL TAG CONFIG: $tagname
14077
14078 __EOF__
14079
14080
14081 else
14082   # If there is no Makefile yet, we rely on a make rule to execute
14083   # `config.status --recheck' to rerun these tests and create the
14084   # libtool script then.
14085   test -f Makefile && make "$ltmain"
14086 fi
14087
14088
14089 ac_ext=c
14090 ac_cpp='$CPP $CPPFLAGS'
14091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14094
14095 CC="$lt_save_CC"
14096
14097         else
14098           tagname=""
14099         fi
14100         ;;
14101
14102       GCJ)
14103         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14104
14105
14106
14107 # Source file extension for Java test sources.
14108 ac_ext=java
14109
14110 # Object file extension for compiled Java test sources.
14111 objext=o
14112 objext_GCJ=$objext
14113
14114 # Code to be used in simple compile tests
14115 lt_simple_compile_test_code="class foo {}\n"
14116
14117 # Code to be used in simple link tests
14118 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14119
14120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14121
14122 # If no C compiler was specified, use CC.
14123 LTCC=${LTCC-"$CC"}
14124
14125 # Allow CC to be a program name with arguments.
14126 compiler=$CC
14127
14128
14129 # Allow CC to be a program name with arguments.
14130 lt_save_CC="$CC"
14131 CC=${GCJ-"gcj"}
14132 compiler=$CC
14133 compiler_GCJ=$CC
14134
14135 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14136 archive_cmds_need_lc_GCJ=no
14137
14138 ## CAVEAT EMPTOR:
14139 ## There is no encapsulation within the following macros, do not change
14140 ## the running order or otherwise move them around unless you know exactly
14141 ## what you are doing...
14142
14143 lt_prog_compiler_no_builtin_flag_GCJ=
14144
14145 if test "$GCC" = yes; then
14146   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14147
14148   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14149 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14150 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14151   echo $ECHO_N "(cached) $ECHO_C" >&6
14152 else
14153   lt_cv_prog_compiler_rtti_exceptions=no
14154   ac_outfile=conftest.$ac_objext
14155    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14156    lt_compiler_flag="-fno-rtti -fno-exceptions"
14157    # Insert the option either (1) after the last *FLAGS variable, or
14158    # (2) before a word containing "conftest.", or (3) at the end.
14159    # Note that $ac_compile itself does not contain backslashes and begins
14160    # with a dollar sign (not a hyphen), so the echo should work correctly.
14161    # The option is referenced via a variable to avoid confusing sed.
14162    lt_compile=`echo "$ac_compile" | $SED \
14163    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14164    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14165    -e 's:$: $lt_compiler_flag:'`
14166    (eval echo "\"\$as_me:14166: $lt_compile\"" >&5)
14167    (eval "$lt_compile" 2>conftest.err)
14168    ac_status=$?
14169    cat conftest.err >&5
14170    echo "$as_me:14170: \$? = $ac_status" >&5
14171    if (exit $ac_status) && test -s "$ac_outfile"; then
14172      # The compiler can only warn and ignore the option if not recognized
14173      # So say no if there are warnings
14174      if test ! -s conftest.err; then
14175        lt_cv_prog_compiler_rtti_exceptions=yes
14176      fi
14177    fi
14178    $rm conftest*
14179
14180 fi
14181 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14182 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14183
14184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14185     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14186 else
14187     :
14188 fi
14189
14190 fi
14191
14192 lt_prog_compiler_wl_GCJ=
14193 lt_prog_compiler_pic_GCJ=
14194 lt_prog_compiler_static_GCJ=
14195
14196 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14197 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14198
14199   if test "$GCC" = yes; then
14200     lt_prog_compiler_wl_GCJ='-Wl,'
14201     lt_prog_compiler_static_GCJ='-static'
14202
14203     case $host_os in
14204       aix*)
14205       # All AIX code is PIC.
14206       if test "$host_cpu" = ia64; then
14207         # AIX 5 now supports IA64 processor
14208         lt_prog_compiler_static_GCJ='-Bstatic'
14209       fi
14210       ;;
14211
14212     amigaos*)
14213       # FIXME: we need at least 68020 code to build shared libraries, but
14214       # adding the `-m68020' flag to GCC prevents building anything better,
14215       # like `-m68040'.
14216       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14217       ;;
14218
14219     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14220       # PIC is the default for these OSes.
14221       ;;
14222
14223     mingw* | pw32* | os2*)
14224       # This hack is so that the source file can tell whether it is being
14225       # built for inclusion in a dll (and should export symbols for example).
14226       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14227       ;;
14228
14229     darwin* | rhapsody*)
14230       # PIC is the default on this platform
14231       # Common symbols not allowed in MH_DYLIB files
14232       lt_prog_compiler_pic_GCJ='-fno-common'
14233       ;;
14234
14235     msdosdjgpp*)
14236       # Just because we use GCC doesn't mean we suddenly get shared libraries
14237       # on systems that don't support them.
14238       lt_prog_compiler_can_build_shared_GCJ=no
14239       enable_shared=no
14240       ;;
14241
14242     sysv4*MP*)
14243       if test -d /usr/nec; then
14244         lt_prog_compiler_pic_GCJ=-Kconform_pic
14245       fi
14246       ;;
14247
14248     hpux*)
14249       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14250       # not for PA HP-UX.
14251       case "$host_cpu" in
14252       hppa*64*|ia64*)
14253         # +Z the default
14254         ;;
14255       *)
14256         lt_prog_compiler_pic_GCJ='-fPIC'
14257         ;;
14258       esac
14259       ;;
14260
14261     *)
14262       lt_prog_compiler_pic_GCJ='-fPIC'
14263       ;;
14264     esac
14265   else
14266     # PORTME Check for flag to pass linker flags through the system compiler.
14267     case $host_os in
14268     aix*)
14269       lt_prog_compiler_wl_GCJ='-Wl,'
14270       if test "$host_cpu" = ia64; then
14271         # AIX 5 now supports IA64 processor
14272         lt_prog_compiler_static_GCJ='-Bstatic'
14273       else
14274         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14275       fi
14276       ;;
14277
14278     mingw* | pw32* | os2*)
14279       # This hack is so that the source file can tell whether it is being
14280       # built for inclusion in a dll (and should export symbols for example).
14281       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14282       ;;
14283
14284     hpux9* | hpux10* | hpux11*)
14285       lt_prog_compiler_wl_GCJ='-Wl,'
14286       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14287       # not for PA HP-UX.
14288       case "$host_cpu" in
14289       hppa*64*|ia64*)
14290         # +Z the default
14291         ;;
14292       *)
14293         lt_prog_compiler_pic_GCJ='+Z'
14294         ;;
14295       esac
14296       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14297       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14298       ;;
14299
14300     irix5* | irix6* | nonstopux*)
14301       lt_prog_compiler_wl_GCJ='-Wl,'
14302       # PIC (with -KPIC) is the default.
14303       lt_prog_compiler_static_GCJ='-non_shared'
14304       ;;
14305
14306     newsos6)
14307       lt_prog_compiler_pic_GCJ='-KPIC'
14308       lt_prog_compiler_static_GCJ='-Bstatic'
14309       ;;
14310
14311     linux*)
14312       case $CC in
14313       icc|ecc)
14314         lt_prog_compiler_wl_GCJ='-Wl,'
14315         lt_prog_compiler_pic_GCJ='-KPIC'
14316         lt_prog_compiler_static_GCJ='-static'
14317         ;;
14318       ccc)
14319         lt_prog_compiler_wl_GCJ='-Wl,'
14320         # All Alpha code is PIC.
14321         lt_prog_compiler_static_GCJ='-non_shared'
14322         ;;
14323       esac
14324       ;;
14325
14326     osf3* | osf4* | osf5*)
14327       lt_prog_compiler_wl_GCJ='-Wl,'
14328       # All OSF/1 code is PIC.
14329       lt_prog_compiler_static_GCJ='-non_shared'
14330       ;;
14331
14332     sco3.2v5*)
14333       lt_prog_compiler_pic_GCJ='-Kpic'
14334       lt_prog_compiler_static_GCJ='-dn'
14335       ;;
14336
14337     solaris*)
14338       lt_prog_compiler_wl_GCJ='-Wl,'
14339       lt_prog_compiler_pic_GCJ='-KPIC'
14340       lt_prog_compiler_static_GCJ='-Bstatic'
14341       ;;
14342
14343     sunos4*)
14344       lt_prog_compiler_wl_GCJ='-Qoption ld '
14345       lt_prog_compiler_pic_GCJ='-PIC'
14346       lt_prog_compiler_static_GCJ='-Bstatic'
14347       ;;
14348
14349     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14350       lt_prog_compiler_wl_GCJ='-Wl,'
14351       lt_prog_compiler_pic_GCJ='-KPIC'
14352       lt_prog_compiler_static_GCJ='-Bstatic'
14353       ;;
14354
14355     sysv4*MP*)
14356       if test -d /usr/nec ;then
14357         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14358         lt_prog_compiler_static_GCJ='-Bstatic'
14359       fi
14360       ;;
14361
14362     uts4*)
14363       lt_prog_compiler_pic_GCJ='-pic'
14364       lt_prog_compiler_static_GCJ='-Bstatic'
14365       ;;
14366
14367     *)
14368       lt_prog_compiler_can_build_shared_GCJ=no
14369       ;;
14370     esac
14371   fi
14372
14373 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14374 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14375
14376 #
14377 # Check to make sure the PIC flag actually works.
14378 #
14379 if test -n "$lt_prog_compiler_pic_GCJ"; then
14380   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14381 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14382 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14383   echo $ECHO_N "(cached) $ECHO_C" >&6
14384 else
14385   lt_prog_compiler_pic_works_GCJ=no
14386   ac_outfile=conftest.$ac_objext
14387    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14388    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14389    # Insert the option either (1) after the last *FLAGS variable, or
14390    # (2) before a word containing "conftest.", or (3) at the end.
14391    # Note that $ac_compile itself does not contain backslashes and begins
14392    # with a dollar sign (not a hyphen), so the echo should work correctly.
14393    # The option is referenced via a variable to avoid confusing sed.
14394    lt_compile=`echo "$ac_compile" | $SED \
14395    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14396    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14397    -e 's:$: $lt_compiler_flag:'`
14398    (eval echo "\"\$as_me:14398: $lt_compile\"" >&5)
14399    (eval "$lt_compile" 2>conftest.err)
14400    ac_status=$?
14401    cat conftest.err >&5
14402    echo "$as_me:14402: \$? = $ac_status" >&5
14403    if (exit $ac_status) && test -s "$ac_outfile"; then
14404      # The compiler can only warn and ignore the option if not recognized
14405      # So say no if there are warnings
14406      if test ! -s conftest.err; then
14407        lt_prog_compiler_pic_works_GCJ=yes
14408      fi
14409    fi
14410    $rm conftest*
14411
14412 fi
14413 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14414 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14415
14416 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14417     case $lt_prog_compiler_pic_GCJ in
14418      "" | " "*) ;;
14419      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14420      esac
14421 else
14422     lt_prog_compiler_pic_GCJ=
14423      lt_prog_compiler_can_build_shared_GCJ=no
14424 fi
14425
14426 fi
14427 case "$host_os" in
14428   # For platforms which do not support PIC, -DPIC is meaningless:
14429   *djgpp*)
14430     lt_prog_compiler_pic_GCJ=
14431     ;;
14432   *)
14433     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14434     ;;
14435 esac
14436
14437 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14438 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14439 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14440   echo $ECHO_N "(cached) $ECHO_C" >&6
14441 else
14442   lt_cv_prog_compiler_c_o_GCJ=no
14443    $rm -r conftest 2>/dev/null
14444    mkdir conftest
14445    cd conftest
14446    mkdir out
14447    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14448
14449    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14450    # that will create temporary files in the current directory regardless of
14451    # the output directory.  Thus, making CWD read-only will cause this test
14452    # to fail, enabling locking or at least warning the user not to do parallel
14453    # builds.
14454    chmod -w .
14455
14456    lt_compiler_flag="-o out/conftest2.$ac_objext"
14457    # Insert the option either (1) after the last *FLAGS variable, or
14458    # (2) before a word containing "conftest.", or (3) at the end.
14459    # Note that $ac_compile itself does not contain backslashes and begins
14460    # with a dollar sign (not a hyphen), so the echo should work correctly.
14461    lt_compile=`echo "$ac_compile" | $SED \
14462    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14463    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14464    -e 's:$: $lt_compiler_flag:'`
14465    (eval echo "\"\$as_me:14465: $lt_compile\"" >&5)
14466    (eval "$lt_compile" 2>out/conftest.err)
14467    ac_status=$?
14468    cat out/conftest.err >&5
14469    echo "$as_me:14469: \$? = $ac_status" >&5
14470    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14471    then
14472      # The compiler can only warn and ignore the option if not recognized
14473      # So say no if there are warnings
14474      if test ! -s out/conftest.err; then
14475        lt_cv_prog_compiler_c_o_GCJ=yes
14476      fi
14477    fi
14478    chmod u+w .
14479    $rm conftest* out/*
14480    rmdir out
14481    cd ..
14482    rmdir conftest
14483    $rm conftest*
14484
14485 fi
14486 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14487 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14488
14489
14490 hard_links="nottested"
14491 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14492   # do not overwrite the value of need_locks provided by the user
14493   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14494 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14495   hard_links=yes
14496   $rm conftest*
14497   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14498   touch conftest.a
14499   ln conftest.a conftest.b 2>&5 || hard_links=no
14500   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14501   echo "$as_me:$LINENO: result: $hard_links" >&5
14502 echo "${ECHO_T}$hard_links" >&6
14503   if test "$hard_links" = no; then
14504     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14505 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14506     need_locks=warn
14507   fi
14508 else
14509   need_locks=no
14510 fi
14511
14512 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14513 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14514
14515   runpath_var=
14516   allow_undefined_flag_GCJ=
14517   enable_shared_with_static_runtimes_GCJ=no
14518   archive_cmds_GCJ=
14519   archive_expsym_cmds_GCJ=
14520   old_archive_From_new_cmds_GCJ=
14521   old_archive_from_expsyms_cmds_GCJ=
14522   export_dynamic_flag_spec_GCJ=
14523   whole_archive_flag_spec_GCJ=
14524   thread_safe_flag_spec_GCJ=
14525   hardcode_libdir_flag_spec_GCJ=
14526   hardcode_libdir_flag_spec_ld_GCJ=
14527   hardcode_libdir_separator_GCJ=
14528   hardcode_direct_GCJ=no
14529   hardcode_minus_L_GCJ=no
14530   hardcode_shlibpath_var_GCJ=unsupported
14531   link_all_deplibs_GCJ=unknown
14532   hardcode_automatic_GCJ=no
14533   module_cmds_GCJ=
14534   module_expsym_cmds_GCJ=
14535   always_export_symbols_GCJ=no
14536   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14537   # include_expsyms should be a list of space-separated symbols to be *always*
14538   # included in the symbol list
14539   include_expsyms_GCJ=
14540   # exclude_expsyms can be an extended regexp of symbols to exclude
14541   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14542   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14543   # as well as any symbol that contains `d'.
14544   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
14545   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14546   # platforms (ab)use it in PIC code, but their linkers get confused if
14547   # the symbol is explicitly referenced.  Since portable code cannot
14548   # rely on this symbol name, it's probably fine to never include it in
14549   # preloaded symbol tables.
14550   extract_expsyms_cmds=
14551
14552   case $host_os in
14553   cygwin* | mingw* | pw32*)
14554     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14555     # When not using gcc, we currently assume that we are using
14556     # Microsoft Visual C++.
14557     if test "$GCC" != yes; then
14558       with_gnu_ld=no
14559     fi
14560     ;;
14561   openbsd*)
14562     with_gnu_ld=no
14563     ;;
14564   esac
14565
14566   ld_shlibs_GCJ=yes
14567   if test "$with_gnu_ld" = yes; then
14568     # If archive_cmds runs LD, not CC, wlarc should be empty
14569     wlarc='${wl}'
14570
14571     # See if GNU ld supports shared libraries.
14572     case $host_os in
14573     aix3* | aix4* | aix5*)
14574       # On AIX/PPC, the GNU linker is very broken
14575       if test "$host_cpu" != ia64; then
14576         ld_shlibs_GCJ=no
14577         cat <<EOF 1>&2
14578
14579 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14580 *** to be unable to reliably create shared libraries on AIX.
14581 *** Therefore, libtool is disabling shared libraries support.  If you
14582 *** really care for shared libraries, you may want to modify your PATH
14583 *** so that a non-GNU linker is found, and then restart.
14584
14585 EOF
14586       fi
14587       ;;
14588
14589     amigaos*)
14590       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)'
14591       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14592       hardcode_minus_L_GCJ=yes
14593
14594       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14595       # that the semantics of dynamic libraries on AmigaOS, at least up
14596       # to version 4, is to share data among multiple programs linked
14597       # with the same dynamic library.  Since this doesn't match the
14598       # behavior of shared libraries on other platforms, we can't use
14599       # them.
14600       ld_shlibs_GCJ=no
14601       ;;
14602
14603     beos*)
14604       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14605         allow_undefined_flag_GCJ=unsupported
14606         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14607         # support --undefined.  This deserves some investigation.  FIXME
14608         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14609       else
14610         ld_shlibs_GCJ=no
14611       fi
14612       ;;
14613
14614     cygwin* | mingw* | pw32*)
14615       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
14616       # as there is no search path for DLLs.
14617       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14618       allow_undefined_flag_GCJ=unsupported
14619       always_export_symbols_GCJ=no
14620       enable_shared_with_static_runtimes_GCJ=yes
14621       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14622
14623       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14624         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14625         # If the export-symbols file already is a .def file (1st line
14626         # is EXPORTS), use it as is; otherwise, prepend...
14627         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14628           cp $export_symbols $output_objdir/$soname.def;
14629         else
14630           echo EXPORTS > $output_objdir/$soname.def;
14631           cat $export_symbols >> $output_objdir/$soname.def;
14632         fi~
14633         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14634       else
14635         ld_shlibs=no
14636       fi
14637       ;;
14638
14639     netbsd*)
14640       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14641         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14642         wlarc=
14643       else
14644         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14645         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14646       fi
14647       ;;
14648
14649     solaris* | sysv5*)
14650       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14651         ld_shlibs_GCJ=no
14652         cat <<EOF 1>&2
14653
14654 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14655 *** create shared libraries on Solaris systems.  Therefore, libtool
14656 *** is disabling shared libraries support.  We urge you to upgrade GNU
14657 *** binutils to release 2.9.1 or newer.  Another option is to modify
14658 *** your PATH or compiler configuration so that the native linker is
14659 *** used, and then restart.
14660
14661 EOF
14662       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14663         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14664         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14665       else
14666         ld_shlibs_GCJ=no
14667       fi
14668       ;;
14669
14670     sunos4*)
14671       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14672       wlarc=
14673       hardcode_direct_GCJ=yes
14674       hardcode_shlibpath_var_GCJ=no
14675       ;;
14676
14677     *)
14678       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14679         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14680         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14681       else
14682         ld_shlibs_GCJ=no
14683       fi
14684       ;;
14685     esac
14686
14687     if test "$ld_shlibs_GCJ" = yes; then
14688       runpath_var=LD_RUN_PATH
14689       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
14690       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
14691       # ancient GNU ld didn't support --whole-archive et. al.
14692       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14693         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14694       else
14695         whole_archive_flag_spec_GCJ=
14696       fi
14697     fi
14698   else
14699     # PORTME fill in a description of your system's linker (not GNU ld)
14700     case $host_os in
14701     aix3*)
14702       allow_undefined_flag_GCJ=unsupported
14703       always_export_symbols_GCJ=yes
14704       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'
14705       # Note: this linker hardcodes the directories in LIBPATH if there
14706       # are no directories specified by -L.
14707       hardcode_minus_L_GCJ=yes
14708       if test "$GCC" = yes && test -z "$link_static_flag"; then
14709         # Neither direct hardcoding nor static linking is supported with a
14710         # broken collect2.
14711         hardcode_direct_GCJ=unsupported
14712       fi
14713       ;;
14714
14715     aix4* | aix5*)
14716       if test "$host_cpu" = ia64; then
14717         # On IA64, the linker does run time linking by default, so we don't
14718         # have to do anything special.
14719         aix_use_runtimelinking=no
14720         exp_sym_flag='-Bexport'
14721         no_entry_flag=""
14722       else
14723         # If we're using GNU nm, then we don't want the "-C" option.
14724         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14725         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14726           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'
14727         else
14728           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'
14729         fi
14730         aix_use_runtimelinking=no
14731
14732         # Test if we are trying to use run time linking or normal
14733         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14734         # need to do runtime linking.
14735         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14736           for ld_flag in $LDFLAGS; do
14737           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14738             aix_use_runtimelinking=yes
14739             break
14740           fi
14741           done
14742         esac
14743
14744         exp_sym_flag='-bexport'
14745         no_entry_flag='-bnoentry'
14746       fi
14747
14748       # When large executables or shared objects are built, AIX ld can
14749       # have problems creating the table of contents.  If linking a library
14750       # or program results in "error TOC overflow" add -mminimal-toc to
14751       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14752       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14753
14754       archive_cmds_GCJ=''
14755       hardcode_direct_GCJ=yes
14756       hardcode_libdir_separator_GCJ=':'
14757       link_all_deplibs_GCJ=yes
14758
14759       if test "$GCC" = yes; then
14760         case $host_os in aix4.012|aix4.012.*)
14761         # We only want to do this on AIX 4.2 and lower, the check
14762         # below for broken collect2 doesn't work under 4.3+
14763           collect2name=`${CC} -print-prog-name=collect2`
14764           if test -f "$collect2name" && \
14765            strings "$collect2name" | grep resolve_lib_name >/dev/null
14766           then
14767           # We have reworked collect2
14768           hardcode_direct_GCJ=yes
14769           else
14770           # We have old collect2
14771           hardcode_direct_GCJ=unsupported
14772           # It fails to find uninstalled libraries when the uninstalled
14773           # path is not listed in the libpath.  Setting hardcode_minus_L
14774           # to unsupported forces relinking
14775           hardcode_minus_L_GCJ=yes
14776           hardcode_libdir_flag_spec_GCJ='-L$libdir'
14777           hardcode_libdir_separator_GCJ=
14778           fi
14779         esac
14780         shared_flag='-shared'
14781       else
14782         # not using gcc
14783         if test "$host_cpu" = ia64; then
14784         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14785         # chokes on -Wl,-G. The following line is correct:
14786           shared_flag='-G'
14787         else
14788         if test "$aix_use_runtimelinking" = yes; then
14789             shared_flag='${wl}-G'
14790           else
14791             shared_flag='${wl}-bM:SRE'
14792         fi
14793         fi
14794       fi
14795
14796       # It seems that -bexpall does not export symbols beginning with
14797       # underscore (_), so it is better to generate a list of symbols to export.
14798       always_export_symbols_GCJ=yes
14799       if test "$aix_use_runtimelinking" = yes; then
14800         # Warning - without using the other runtime loading flags (-brtl),
14801         # -berok will link without error, but may produce a broken library.
14802         allow_undefined_flag_GCJ='-berok'
14803        # Determine the default libpath from the value encoded in an empty executable.
14804        cat >conftest.$ac_ext <<_ACEOF
14805 #line $LINENO "configure"
14806 #include "confdefs.h"
14807
14808 #ifdef F77_DUMMY_MAIN
14809 #  ifdef __cplusplus
14810      extern "C"
14811 #  endif
14812    int F77_DUMMY_MAIN() { return 1; }
14813 #endif
14814 int
14815 main ()
14816 {
14817
14818   ;
14819   return 0;
14820 }
14821 _ACEOF
14822 rm -f conftest.$ac_objext conftest$ac_exeext
14823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14824   (eval $ac_link) 2>&5
14825   ac_status=$?
14826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); } &&
14828          { ac_try='test -s conftest$ac_exeext'
14829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830   (eval $ac_try) 2>&5
14831   ac_status=$?
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); }; }; then
14834
14835 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14836 }'`
14837 # Check for a 64-bit object if we didn't find anything.
14838 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; }
14839 }'`; fi
14840 else
14841   echo "$as_me: failed program was:" >&5
14842 cat conftest.$ac_ext >&5
14843 fi
14844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14845 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14846
14847        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14848         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14849        else
14850         if test "$host_cpu" = ia64; then
14851           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
14852           allow_undefined_flag_GCJ="-z nodefs"
14853           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14854         else
14855          # Determine the default libpath from the value encoded in an empty executable.
14856          cat >conftest.$ac_ext <<_ACEOF
14857 #line $LINENO "configure"
14858 #include "confdefs.h"
14859
14860 #ifdef F77_DUMMY_MAIN
14861 #  ifdef __cplusplus
14862      extern "C"
14863 #  endif
14864    int F77_DUMMY_MAIN() { return 1; }
14865 #endif
14866 int
14867 main ()
14868 {
14869
14870   ;
14871   return 0;
14872 }
14873 _ACEOF
14874 rm -f conftest.$ac_objext conftest$ac_exeext
14875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14876   (eval $ac_link) 2>&5
14877   ac_status=$?
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); } &&
14880          { ac_try='test -s conftest$ac_exeext'
14881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882   (eval $ac_try) 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); }; }; then
14886
14887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14888 }'`
14889 # Check for a 64-bit object if we didn't find anything.
14890 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; }
14891 }'`; fi
14892 else
14893   echo "$as_me: failed program was:" >&5
14894 cat conftest.$ac_ext >&5
14895 fi
14896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14897 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14898
14899          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
14900           # Warning - without using the other run time loading flags,
14901           # -berok will link without error, but may produce a broken library.
14902           no_undefined_flag_GCJ=' ${wl}-bernotok'
14903           allow_undefined_flag_GCJ=' ${wl}-berok'
14904           # -bexpall does not export symbols beginning with underscore (_)
14905           always_export_symbols_GCJ=yes
14906           # Exported symbols can be pulled into shared objects from archives
14907           whole_archive_flag_spec_GCJ=' '
14908           archive_cmds_need_lc_GCJ=yes
14909           # This is similar to how AIX traditionally builds it's shared libraries.
14910           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14911         fi
14912       fi
14913       ;;
14914
14915     amigaos*)
14916       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)'
14917       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14918       hardcode_minus_L_GCJ=yes
14919       # see comment about different semantics on the GNU ld section
14920       ld_shlibs_GCJ=no
14921       ;;
14922
14923     bsdi4*)
14924       export_dynamic_flag_spec_GCJ=-rdynamic
14925       ;;
14926
14927     cygwin* | mingw* | pw32*)
14928       # When not using gcc, we currently assume that we are using
14929       # Microsoft Visual C++.
14930       # hardcode_libdir_flag_spec is actually meaningless, as there is
14931       # no search path for DLLs.
14932       hardcode_libdir_flag_spec_GCJ=' '
14933       allow_undefined_flag_GCJ=unsupported
14934       # Tell ltmain to make .lib files, not .a files.
14935       libext=lib
14936       # Tell ltmain to make .dll files, not .so files.
14937       shrext=".dll"
14938       # FIXME: Setting linknames here is a bad hack.
14939       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14940       # The linker will automatically build a .lib file if we build a DLL.
14941       old_archive_From_new_cmds_GCJ='true'
14942       # FIXME: Should let the user specify the lib program.
14943       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
14944       fix_srcfile_path='`cygpath -w "$srcfile"`'
14945       enable_shared_with_static_runtimes_GCJ=yes
14946       ;;
14947
14948     darwin* | rhapsody*)
14949     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14950       archive_cmds_need_lc_GCJ=no
14951       case "$host_os" in
14952       rhapsody* | darwin1.[012])
14953         allow_undefined_flag_GCJ='-undefined suppress'
14954         ;;
14955       *) # Darwin 1.3 on
14956         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
14957         ;;
14958       esac
14959       # FIXME: Relying on posixy $() will cause problems for
14960       #        cross-compilation, but unfortunately the echo tests do not
14961       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
14962       #        `"' quotes if we put them in here... so don't!
14963         lt_int_apple_cc_single_mod=no
14964         output_verbose_link_cmd='echo'
14965         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14966           lt_int_apple_cc_single_mod=yes
14967         fi
14968         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14969           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14970         else
14971         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14972       fi
14973       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
14974       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14975         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14976           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14977         else
14978           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14979         fi
14980           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14981       hardcode_direct_GCJ=no
14982       hardcode_automatic_GCJ=yes
14983       hardcode_shlibpath_var_GCJ=unsupported
14984       whole_archive_flag_spec_GCJ='-all_load $convenience'
14985       link_all_deplibs_GCJ=yes
14986     fi
14987       ;;
14988
14989     dgux*)
14990       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14991       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14992       hardcode_shlibpath_var_GCJ=no
14993       ;;
14994
14995     freebsd1*)
14996       ld_shlibs_GCJ=no
14997       ;;
14998
14999     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15000     # support.  Future versions do this automatically, but an explicit c++rt0.o
15001     # does not break anything, and helps significantly (at the cost of a little
15002     # extra space).
15003     freebsd2.2*)
15004       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15005       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15006       hardcode_direct_GCJ=yes
15007       hardcode_shlibpath_var_GCJ=no
15008       ;;
15009
15010     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15011     freebsd2*)
15012       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15013       hardcode_direct_GCJ=yes
15014       hardcode_minus_L_GCJ=yes
15015       hardcode_shlibpath_var_GCJ=no
15016       ;;
15017
15018     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15019     freebsd*)
15020       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15021       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15022       hardcode_direct_GCJ=yes
15023       hardcode_shlibpath_var_GCJ=no
15024       ;;
15025
15026     hpux9*)
15027       if test "$GCC" = yes; then
15028         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'
15029       else
15030         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'
15031       fi
15032       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15033       hardcode_libdir_separator_GCJ=:
15034       hardcode_direct_GCJ=yes
15035
15036       # hardcode_minus_L: Not really in the search PATH,
15037       # but as the default location of the library.
15038       hardcode_minus_L_GCJ=yes
15039       export_dynamic_flag_spec_GCJ='${wl}-E'
15040       ;;
15041
15042     hpux10* | hpux11*)
15043       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15044         case "$host_cpu" in
15045         hppa*64*|ia64*)
15046           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15047           ;;
15048         *)
15049           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15050           ;;
15051         esac
15052       else
15053         case "$host_cpu" in
15054         hppa*64*|ia64*)
15055           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15056           ;;
15057         *)
15058           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15059           ;;
15060         esac
15061       fi
15062       if test "$with_gnu_ld" = no; then
15063         case "$host_cpu" in
15064         hppa*64*)
15065           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15066           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15067           hardcode_libdir_separator_GCJ=:
15068           hardcode_direct_GCJ=no
15069           hardcode_shlibpath_var_GCJ=no
15070           ;;
15071         ia64*)
15072           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15073           hardcode_direct_GCJ=no
15074           hardcode_shlibpath_var_GCJ=no
15075
15076           # hardcode_minus_L: Not really in the search PATH,
15077           # but as the default location of the library.
15078           hardcode_minus_L_GCJ=yes
15079           ;;
15080         *)
15081           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15082           hardcode_libdir_separator_GCJ=:
15083           hardcode_direct_GCJ=yes
15084           export_dynamic_flag_spec_GCJ='${wl}-E'
15085
15086           # hardcode_minus_L: Not really in the search PATH,
15087           # but as the default location of the library.
15088           hardcode_minus_L_GCJ=yes
15089           ;;
15090         esac
15091       fi
15092       ;;
15093
15094     irix5* | irix6* | nonstopux*)
15095       if test "$GCC" = yes; then
15096         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'
15097       else
15098         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'
15099         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15100       fi
15101       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15102       hardcode_libdir_separator_GCJ=:
15103       link_all_deplibs_GCJ=yes
15104       ;;
15105
15106     netbsd*)
15107       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15108         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15109       else
15110         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15111       fi
15112       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15113       hardcode_direct_GCJ=yes
15114       hardcode_shlibpath_var_GCJ=no
15115       ;;
15116
15117     newsos6)
15118       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15119       hardcode_direct_GCJ=yes
15120       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15121       hardcode_libdir_separator_GCJ=:
15122       hardcode_shlibpath_var_GCJ=no
15123       ;;
15124
15125     openbsd*)
15126       hardcode_direct_GCJ=yes
15127       hardcode_shlibpath_var_GCJ=no
15128       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15129         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15130         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15131         export_dynamic_flag_spec_GCJ='${wl}-E'
15132       else
15133        case $host_os in
15134          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15135            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15136            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15137            ;;
15138          *)
15139            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15140            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15141            ;;
15142        esac
15143       fi
15144       ;;
15145
15146     os2*)
15147       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15148       hardcode_minus_L_GCJ=yes
15149       allow_undefined_flag_GCJ=unsupported
15150       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'
15151       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15152       ;;
15153
15154     osf3*)
15155       if test "$GCC" = yes; then
15156         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15157         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'
15158       else
15159         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15160         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'
15161       fi
15162       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15163       hardcode_libdir_separator_GCJ=:
15164       ;;
15165
15166     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15167       if test "$GCC" = yes; then
15168         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15169         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'
15170         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15171       else
15172         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15173         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'
15174         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~
15175         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15176
15177         # Both c and cxx compiler support -rpath directly
15178         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15179       fi
15180       hardcode_libdir_separator_GCJ=:
15181       ;;
15182
15183     sco3.2v5*)
15184       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15185       hardcode_shlibpath_var_GCJ=no
15186       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15187       runpath_var=LD_RUN_PATH
15188       hardcode_runpath_var=yes
15189       ;;
15190
15191     solaris*)
15192       no_undefined_flag_GCJ=' -z text'
15193       if test "$GCC" = yes; then
15194         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15195         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15196           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15197       else
15198         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15200         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15201       fi
15202       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15203       hardcode_shlibpath_var_GCJ=no
15204       case $host_os in
15205       solaris2.[0-5] | solaris2.[0-5].*) ;;
15206       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15207         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15208       esac
15209       link_all_deplibs_GCJ=yes
15210       ;;
15211
15212     sunos4*)
15213       if test "x$host_vendor" = xsequent; then
15214         # Use $CC to link under sequent, because it throws in some extra .o
15215         # files that make .init and .fini sections work.
15216         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15217       else
15218         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15219       fi
15220       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15221       hardcode_direct_GCJ=yes
15222       hardcode_minus_L_GCJ=yes
15223       hardcode_shlibpath_var_GCJ=no
15224       ;;
15225
15226     sysv4)
15227       case $host_vendor in
15228         sni)
15229           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15230           hardcode_direct_GCJ=yes # is this really true???
15231         ;;
15232         siemens)
15233           ## LD is ld it makes a PLAMLIB
15234           ## CC just makes a GrossModule.
15235           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15236           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15237           hardcode_direct_GCJ=no
15238         ;;
15239         motorola)
15240           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15241           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15242         ;;
15243       esac
15244       runpath_var='LD_RUN_PATH'
15245       hardcode_shlibpath_var_GCJ=no
15246       ;;
15247
15248     sysv4.3*)
15249       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15250       hardcode_shlibpath_var_GCJ=no
15251       export_dynamic_flag_spec_GCJ='-Bexport'
15252       ;;
15253
15254     sysv4*MP*)
15255       if test -d /usr/nec; then
15256         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15257         hardcode_shlibpath_var_GCJ=no
15258         runpath_var=LD_RUN_PATH
15259         hardcode_runpath_var=yes
15260         ld_shlibs_GCJ=yes
15261       fi
15262       ;;
15263
15264     sysv4.2uw2*)
15265       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15266       hardcode_direct_GCJ=yes
15267       hardcode_minus_L_GCJ=no
15268       hardcode_shlibpath_var_GCJ=no
15269       hardcode_runpath_var=yes
15270       runpath_var=LD_RUN_PATH
15271       ;;
15272
15273    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15274       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15275       if test "$GCC" = yes; then
15276         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15277       else
15278         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15279       fi
15280       runpath_var='LD_RUN_PATH'
15281       hardcode_shlibpath_var_GCJ=no
15282       ;;
15283
15284     sysv5*)
15285       no_undefined_flag_GCJ=' -z text'
15286       # $CC -shared without GNU ld will not create a library from C++
15287       # object files and a static libstdc++, better avoid it by now
15288       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15289       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15290                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15291       hardcode_libdir_flag_spec_GCJ=
15292       hardcode_shlibpath_var_GCJ=no
15293       runpath_var='LD_RUN_PATH'
15294       ;;
15295
15296     uts4*)
15297       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15298       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15299       hardcode_shlibpath_var_GCJ=no
15300       ;;
15301
15302     *)
15303       ld_shlibs_GCJ=no
15304       ;;
15305     esac
15306   fi
15307
15308 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15309 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15310 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15311
15312 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15313 if test "$GCC" = yes; then
15314   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15315 fi
15316
15317 #
15318 # Do we need to explicitly link libc?
15319 #
15320 case "x$archive_cmds_need_lc_GCJ" in
15321 x|xyes)
15322   # Assume -lc should be added
15323   archive_cmds_need_lc_GCJ=yes
15324
15325   if test "$enable_shared" = yes && test "$GCC" = yes; then
15326     case $archive_cmds_GCJ in
15327     *'~'*)
15328       # FIXME: we may have to deal with multi-command sequences.
15329       ;;
15330     '$CC '*)
15331       # Test whether the compiler implicitly links with -lc since on some
15332       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15333       # to ld, don't add -lc before -lgcc.
15334       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15335 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15336       $rm conftest*
15337       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15338
15339       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340   (eval $ac_compile) 2>&5
15341   ac_status=$?
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); } 2>conftest.err; then
15344         soname=conftest
15345         lib=conftest
15346         libobjs=conftest.$ac_objext
15347         deplibs=
15348         wl=$lt_prog_compiler_wl_GCJ
15349         compiler_flags=-v
15350         linker_flags=-v
15351         verstring=
15352         output_objdir=.
15353         libname=conftest
15354         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15355         allow_undefined_flag_GCJ=
15356         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15357   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15358   ac_status=$?
15359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360   (exit $ac_status); }
15361         then
15362           archive_cmds_need_lc_GCJ=no
15363         else
15364           archive_cmds_need_lc_GCJ=yes
15365         fi
15366         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15367       else
15368         cat conftest.err 1>&5
15369       fi
15370       $rm conftest*
15371       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15372 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15373       ;;
15374     esac
15375   fi
15376   ;;
15377 esac
15378
15379 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15380 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15381 hardcode_action_GCJ=
15382 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15383    test -n "$runpath_var GCJ" || \
15384    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15385
15386   # We can hardcode non-existant directories.
15387   if test "$hardcode_direct_GCJ" != no &&
15388      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15389      # have to relink, otherwise we might link with an installed library
15390      # when we should be linking with a yet-to-be-installed one
15391      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15392      test "$hardcode_minus_L_GCJ" != no; then
15393     # Linking always hardcodes the temporary library directory.
15394     hardcode_action_GCJ=relink
15395   else
15396     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15397     hardcode_action_GCJ=immediate
15398   fi
15399 else
15400   # We cannot hardcode anything, or else we can only hardcode existing
15401   # directories.
15402   hardcode_action_GCJ=unsupported
15403 fi
15404 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15405 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15406
15407 if test "$hardcode_action_GCJ" = relink; then
15408   # Fast installation is not supported
15409   enable_fast_install=no
15410 elif test "$shlibpath_overrides_runpath" = yes ||
15411      test "$enable_shared" = no; then
15412   # Fast installation is not necessary
15413   enable_fast_install=needless
15414 fi
15415
15416 striplib=
15417 old_striplib=
15418 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15419 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15420 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15421   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15422   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15423   echo "$as_me:$LINENO: result: yes" >&5
15424 echo "${ECHO_T}yes" >&6
15425 else
15426 # FIXME - insert some real tests, host_os isn't really good enough
15427   case $host_os in
15428    darwin*)
15429        if test -n "$STRIP" ; then
15430          striplib="$STRIP -x"
15431          echo "$as_me:$LINENO: result: yes" >&5
15432 echo "${ECHO_T}yes" >&6
15433        else
15434   echo "$as_me:$LINENO: result: no" >&5
15435 echo "${ECHO_T}no" >&6
15436 fi
15437        ;;
15438    *)
15439   echo "$as_me:$LINENO: result: no" >&5
15440 echo "${ECHO_T}no" >&6
15441     ;;
15442   esac
15443 fi
15444
15445 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15446 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15447 library_names_spec=
15448 libname_spec='lib$name'
15449 soname_spec=
15450 shrext=".so"
15451 postinstall_cmds=
15452 postuninstall_cmds=
15453 finish_cmds=
15454 finish_eval=
15455 shlibpath_var=
15456 shlibpath_overrides_runpath=unknown
15457 version_type=none
15458 dynamic_linker="$host_os ld.so"
15459 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15460 if test "$GCC" = yes; then
15461   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15462   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15463     # if the path contains ";" then we assume it to be the separator
15464     # otherwise default to the standard path separator (i.e. ":") - it is
15465     # assumed that no part of a normal pathname contains ";" but that should
15466     # okay in the real world where ";" in dirpaths is itself problematic.
15467     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15468   else
15469     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15470   fi
15471 else
15472   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15473 fi
15474 need_lib_prefix=unknown
15475 hardcode_into_libs=no
15476
15477 # when you set need_version to no, make sure it does not cause -set_version
15478 # flags to be left without arguments
15479 need_version=unknown
15480
15481 case $host_os in
15482 aix3*)
15483   version_type=linux
15484   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15485   shlibpath_var=LIBPATH
15486
15487   # AIX 3 has no versioning support, so we append a major version to the name.
15488   soname_spec='${libname}${release}${shared_ext}$major'
15489   ;;
15490
15491 aix4* | aix5*)
15492   version_type=linux
15493   need_lib_prefix=no
15494   need_version=no
15495   hardcode_into_libs=yes
15496   if test "$host_cpu" = ia64; then
15497     # AIX 5 supports IA64
15498     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15499     shlibpath_var=LD_LIBRARY_PATH
15500   else
15501     # With GCC up to 2.95.x, collect2 would create an import file
15502     # for dependence libraries.  The import file would start with
15503     # the line `#! .'.  This would cause the generated library to
15504     # depend on `.', always an invalid library.  This was fixed in
15505     # development snapshots of GCC prior to 3.0.
15506     case $host_os in
15507       aix4 | aix4.[01] | aix4.[01].*)
15508       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15509            echo ' yes '
15510            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15511         :
15512       else
15513         can_build_shared=no
15514       fi
15515       ;;
15516     esac
15517     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15518     # soname into executable. Probably we can add versioning support to
15519     # collect2, so additional links can be useful in future.
15520     if test "$aix_use_runtimelinking" = yes; then
15521       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15522       # instead of lib<name>.a to let people know that these are not
15523       # typical AIX shared libraries.
15524       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525     else
15526       # We preserve .a as extension for shared libraries through AIX4.2
15527       # and later when we are not doing run time linking.
15528       library_names_spec='${libname}${release}.a $libname.a'
15529       soname_spec='${libname}${release}${shared_ext}$major'
15530     fi
15531     shlibpath_var=LIBPATH
15532   fi
15533   ;;
15534
15535 amigaos*)
15536   library_names_spec='$libname.ixlibrary $libname.a'
15537   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15538   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'
15539   ;;
15540
15541 beos*)
15542   library_names_spec='${libname}${shared_ext}'
15543   dynamic_linker="$host_os ld.so"
15544   shlibpath_var=LIBRARY_PATH
15545   ;;
15546
15547 bsdi4*)
15548   version_type=linux
15549   need_version=no
15550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15551   soname_spec='${libname}${release}${shared_ext}$major'
15552   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15553   shlibpath_var=LD_LIBRARY_PATH
15554   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15555   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15556   # the default ld.so.conf also contains /usr/contrib/lib and
15557   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15558   # libtool to hard-code these into programs
15559   ;;
15560
15561 cygwin* | mingw* | pw32*)
15562   version_type=windows
15563   shrext=".dll"
15564   need_version=no
15565   need_lib_prefix=no
15566
15567   case $GCC,$host_os in
15568   yes,cygwin* | yes,mingw* | yes,pw32*)
15569     library_names_spec='$libname.dll.a'
15570     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15571     postinstall_cmds='base_file=`basename \${file}`~
15572       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15573       dldir=$destdir/`dirname \$dlpath`~
15574       test -d \$dldir || mkdir -p \$dldir~
15575       $install_prog $dir/$dlname \$dldir/$dlname'
15576     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15577       dlpath=$dir/\$dldll~
15578        $rm \$dlpath'
15579     shlibpath_overrides_runpath=yes
15580
15581     case $host_os in
15582     cygwin*)
15583       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15584       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15585       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
15586       ;;
15587     mingw*)
15588       # MinGW DLLs use traditional 'lib' prefix
15589       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15590       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15591       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15592         # It is most probably a Windows format PATH printed by
15593         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15594         # path with ; separators, and with drive letters. We can handle the
15595         # drive letters (cygwin fileutils understands them), so leave them,
15596         # especially as we might pass files found there to a mingw objdump,
15597         # which wouldn't understand a cygwinified path. Ahh.
15598         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15599       else
15600         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15601       fi
15602       ;;
15603     pw32*)
15604       # pw32 DLLs use 'pw' prefix rather than 'lib'
15605       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15606       ;;
15607     esac
15608     ;;
15609
15610   *)
15611     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15612     ;;
15613   esac
15614   dynamic_linker='Win32 ld.exe'
15615   # FIXME: first we should search . and the directory the executable is in
15616   shlibpath_var=PATH
15617   ;;
15618
15619 darwin* | rhapsody*)
15620   dynamic_linker="$host_os dyld"
15621   version_type=darwin
15622   need_lib_prefix=no
15623   need_version=no
15624   # FIXME: Relying on posixy $() will cause problems for
15625   #        cross-compilation, but unfortunately the echo tests do not
15626   #        yet detect zsh echo's removal of \ escapes.
15627   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15628   soname_spec='${libname}${release}${major}$shared_ext'
15629   shlibpath_overrides_runpath=yes
15630   shlibpath_var=DYLD_LIBRARY_PATH
15631   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15632   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15633   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15634   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"`
15635   fi
15636   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15637   ;;
15638
15639 dgux*)
15640   version_type=linux
15641   need_lib_prefix=no
15642   need_version=no
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15644   soname_spec='${libname}${release}${shared_ext}$major'
15645   shlibpath_var=LD_LIBRARY_PATH
15646   ;;
15647
15648 freebsd1*)
15649   dynamic_linker=no
15650   ;;
15651
15652 freebsd*)
15653   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15654   version_type=freebsd-$objformat
15655   case $version_type in
15656     freebsd-elf*)
15657       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15658       need_version=no
15659       need_lib_prefix=no
15660       ;;
15661     freebsd-*)
15662       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15663       need_version=yes
15664       ;;
15665   esac
15666   shlibpath_var=LD_LIBRARY_PATH
15667   case $host_os in
15668   freebsd2*)
15669     shlibpath_overrides_runpath=yes
15670     ;;
15671   freebsd3.01* | freebsdelf3.01*)
15672     shlibpath_overrides_runpath=yes
15673     hardcode_into_libs=yes
15674     ;;
15675   *) # from 3.2 on
15676     shlibpath_overrides_runpath=no
15677     hardcode_into_libs=yes
15678     ;;
15679   esac
15680   ;;
15681
15682 gnu*)
15683   version_type=linux
15684   need_lib_prefix=no
15685   need_version=no
15686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15687   soname_spec='${libname}${release}${shared_ext}$major'
15688   shlibpath_var=LD_LIBRARY_PATH
15689   hardcode_into_libs=yes
15690   ;;
15691
15692 hpux9* | hpux10* | hpux11*)
15693   # Give a soname corresponding to the major version so that dld.sl refuses to
15694   # link against other versions.
15695   version_type=sunos
15696   need_lib_prefix=no
15697   need_version=no
15698   case "$host_cpu" in
15699   ia64*)
15700     shrext='.so'
15701     hardcode_into_libs=yes
15702     dynamic_linker="$host_os dld.so"
15703     shlibpath_var=LD_LIBRARY_PATH
15704     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706     soname_spec='${libname}${release}${shared_ext}$major'
15707     if test "X$HPUX_IA64_MODE" = X32; then
15708       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15709     else
15710       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15711     fi
15712     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15713     ;;
15714    hppa*64*)
15715      shrext='.sl'
15716      hardcode_into_libs=yes
15717      dynamic_linker="$host_os dld.sl"
15718      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15719      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15720      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721      soname_spec='${libname}${release}${shared_ext}$major'
15722      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15723      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15724      ;;
15725    *)
15726     shrext='.sl'
15727     dynamic_linker="$host_os dld.sl"
15728     shlibpath_var=SHLIB_PATH
15729     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15730     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15731     soname_spec='${libname}${release}${shared_ext}$major'
15732     ;;
15733   esac
15734   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15735   postinstall_cmds='chmod 555 $lib'
15736   ;;
15737
15738 irix5* | irix6* | nonstopux*)
15739   case $host_os in
15740     nonstopux*) version_type=nonstopux ;;
15741     *)
15742         if test "$lt_cv_prog_gnu_ld" = yes; then
15743                 version_type=linux
15744         else
15745                 version_type=irix
15746         fi ;;
15747   esac
15748   need_lib_prefix=no
15749   need_version=no
15750   soname_spec='${libname}${release}${shared_ext}$major'
15751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15752   case $host_os in
15753   irix5* | nonstopux*)
15754     libsuff= shlibsuff=
15755     ;;
15756   *)
15757     case $LD in # libtool.m4 will add one of these switches to LD
15758     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15759       libsuff= shlibsuff= libmagic=32-bit;;
15760     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15761       libsuff=32 shlibsuff=N32 libmagic=N32;;
15762     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15763       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15764     *) libsuff= shlibsuff= libmagic=never-match;;
15765     esac
15766     ;;
15767   esac
15768   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15769   shlibpath_overrides_runpath=no
15770   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15771   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15772   hardcode_into_libs=yes
15773   ;;
15774
15775 # No shared lib support for Linux oldld, aout, or coff.
15776 linux*oldld* | linux*aout* | linux*coff*)
15777   dynamic_linker=no
15778   ;;
15779
15780 # This must be Linux ELF.
15781 linux*)
15782   version_type=linux
15783   need_lib_prefix=no
15784   need_version=no
15785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786   soname_spec='${libname}${release}${shared_ext}$major'
15787   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15788   shlibpath_var=LD_LIBRARY_PATH
15789   shlibpath_overrides_runpath=no
15790   # This implies no fast_install, which is unacceptable.
15791   # Some rework will be needed to allow for fast_install
15792   # before this can be enabled.
15793   hardcode_into_libs=yes
15794
15795   # We used to test for /lib/ld.so.1 and disable shared libraries on
15796   # powerpc, because MkLinux only supported shared libraries with the
15797   # GNU dynamic linker.  Since this was broken with cross compilers,
15798   # most powerpc-linux boxes support dynamic linking these days and
15799   # people can always --disable-shared, the test was removed, and we
15800   # assume the GNU/Linux dynamic linker is in use.
15801   dynamic_linker='GNU/Linux ld.so'
15802   ;;
15803
15804 netbsd*)
15805   version_type=sunos
15806   need_lib_prefix=no
15807   need_version=no
15808   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15809     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15810     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15811     dynamic_linker='NetBSD (a.out) ld.so'
15812   else
15813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15814     soname_spec='${libname}${release}${shared_ext}$major'
15815     dynamic_linker='NetBSD ld.elf_so'
15816   fi
15817   shlibpath_var=LD_LIBRARY_PATH
15818   shlibpath_overrides_runpath=yes
15819   hardcode_into_libs=yes
15820   ;;
15821
15822 newsos6)
15823   version_type=linux
15824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15825   shlibpath_var=LD_LIBRARY_PATH
15826   shlibpath_overrides_runpath=yes
15827   ;;
15828
15829 nto-qnx)
15830   version_type=linux
15831   need_lib_prefix=no
15832   need_version=no
15833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834   soname_spec='${libname}${release}${shared_ext}$major'
15835   shlibpath_var=LD_LIBRARY_PATH
15836   shlibpath_overrides_runpath=yes
15837   ;;
15838
15839 openbsd*)
15840   version_type=sunos
15841   need_lib_prefix=no
15842   need_version=no
15843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15844   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15845   shlibpath_var=LD_LIBRARY_PATH
15846   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15847     case $host_os in
15848       openbsd2.[89] | openbsd2.[89].*)
15849         shlibpath_overrides_runpath=no
15850         ;;
15851       *)
15852         shlibpath_overrides_runpath=yes
15853         ;;
15854       esac
15855   else
15856     shlibpath_overrides_runpath=yes
15857   fi
15858   ;;
15859
15860 os2*)
15861   libname_spec='$name'
15862   shrext=".dll"
15863   need_lib_prefix=no
15864   library_names_spec='$libname${shared_ext} $libname.a'
15865   dynamic_linker='OS/2 ld.exe'
15866   shlibpath_var=LIBPATH
15867   ;;
15868
15869 osf3* | osf4* | osf5*)
15870   version_type=osf
15871   need_lib_prefix=no
15872   need_version=no
15873   soname_spec='${libname}${release}${shared_ext}$major'
15874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15875   shlibpath_var=LD_LIBRARY_PATH
15876   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15877   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15878   ;;
15879
15880 sco3.2v5*)
15881   version_type=osf
15882   soname_spec='${libname}${release}${shared_ext}$major'
15883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15884   shlibpath_var=LD_LIBRARY_PATH
15885   ;;
15886
15887 solaris*)
15888   version_type=linux
15889   need_lib_prefix=no
15890   need_version=no
15891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892   soname_spec='${libname}${release}${shared_ext}$major'
15893   shlibpath_var=LD_LIBRARY_PATH
15894   shlibpath_overrides_runpath=yes
15895   hardcode_into_libs=yes
15896   # ldd complains unless libraries are executable
15897   postinstall_cmds='chmod +x $lib'
15898   ;;
15899
15900 sunos4*)
15901   version_type=sunos
15902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15903   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15904   shlibpath_var=LD_LIBRARY_PATH
15905   shlibpath_overrides_runpath=yes
15906   if test "$with_gnu_ld" = yes; then
15907     need_lib_prefix=no
15908   fi
15909   need_version=yes
15910   ;;
15911
15912 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15913   version_type=linux
15914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15915   soname_spec='${libname}${release}${shared_ext}$major'
15916   shlibpath_var=LD_LIBRARY_PATH
15917   case $host_vendor in
15918     sni)
15919       shlibpath_overrides_runpath=no
15920       need_lib_prefix=no
15921       export_dynamic_flag_spec='${wl}-Blargedynsym'
15922       runpath_var=LD_RUN_PATH
15923       ;;
15924     siemens)
15925       need_lib_prefix=no
15926       ;;
15927     motorola)
15928       need_lib_prefix=no
15929       need_version=no
15930       shlibpath_overrides_runpath=no
15931       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15932       ;;
15933   esac
15934   ;;
15935
15936 sysv4*MP*)
15937   if test -d /usr/nec ;then
15938     version_type=linux
15939     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15940     soname_spec='$libname${shared_ext}.$major'
15941     shlibpath_var=LD_LIBRARY_PATH
15942   fi
15943   ;;
15944
15945 uts4*)
15946   version_type=linux
15947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948   soname_spec='${libname}${release}${shared_ext}$major'
15949   shlibpath_var=LD_LIBRARY_PATH
15950   ;;
15951
15952 *)
15953   dynamic_linker=no
15954   ;;
15955 esac
15956 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15957 echo "${ECHO_T}$dynamic_linker" >&6
15958 test "$dynamic_linker" = no && can_build_shared=no
15959
15960 if test "x$enable_dlopen" != xyes; then
15961   enable_dlopen=unknown
15962   enable_dlopen_self=unknown
15963   enable_dlopen_self_static=unknown
15964 else
15965   lt_cv_dlopen=no
15966   lt_cv_dlopen_libs=
15967
15968   case $host_os in
15969   beos*)
15970     lt_cv_dlopen="load_add_on"
15971     lt_cv_dlopen_libs=
15972     lt_cv_dlopen_self=yes
15973     ;;
15974
15975   mingw* | pw32*)
15976     lt_cv_dlopen="LoadLibrary"
15977     lt_cv_dlopen_libs=
15978    ;;
15979
15980   cygwin*)
15981     lt_cv_dlopen="dlopen"
15982     lt_cv_dlopen_libs=
15983    ;;
15984
15985   darwin*)
15986   # if libdl is installed we need to link against it
15987     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15988 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15989 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15990   echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992   ac_check_lib_save_LIBS=$LIBS
15993 LIBS="-ldl  $LIBS"
15994 cat >conftest.$ac_ext <<_ACEOF
15995 #line $LINENO "configure"
15996 #include "confdefs.h"
15997
15998 /* Override any gcc2 internal prototype to avoid an error.  */
15999 #ifdef __cplusplus
16000 extern "C"
16001 #endif
16002 /* We use char because int might match the return type of a gcc2
16003    builtin and then its argument prototype would still apply.  */
16004 char dlopen ();
16005 #ifdef F77_DUMMY_MAIN
16006 #  ifdef __cplusplus
16007      extern "C"
16008 #  endif
16009    int F77_DUMMY_MAIN() { return 1; }
16010 #endif
16011 int
16012 main ()
16013 {
16014 dlopen ();
16015   ;
16016   return 0;
16017 }
16018 _ACEOF
16019 rm -f conftest.$ac_objext conftest$ac_exeext
16020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16021   (eval $ac_link) 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); } &&
16025          { ac_try='test -s conftest$ac_exeext'
16026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027   (eval $ac_try) 2>&5
16028   ac_status=$?
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); }; }; then
16031   ac_cv_lib_dl_dlopen=yes
16032 else
16033   echo "$as_me: failed program was:" >&5
16034 cat conftest.$ac_ext >&5
16035 ac_cv_lib_dl_dlopen=no
16036 fi
16037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16038 LIBS=$ac_check_lib_save_LIBS
16039 fi
16040 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16041 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16042 if test $ac_cv_lib_dl_dlopen = yes; then
16043   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16044 else
16045
16046     lt_cv_dlopen="dyld"
16047     lt_cv_dlopen_libs=
16048     lt_cv_dlopen_self=yes
16049
16050 fi
16051
16052    ;;
16053
16054   *)
16055     echo "$as_me:$LINENO: checking for shl_load" >&5
16056 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16057 if test "${ac_cv_func_shl_load+set}" = set; then
16058   echo $ECHO_N "(cached) $ECHO_C" >&6
16059 else
16060   cat >conftest.$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16062 #include "confdefs.h"
16063 /* System header to define __stub macros and hopefully few prototypes,
16064     which can conflict with char shl_load (); below.  */
16065 #include <assert.h>
16066 /* Override any gcc2 internal prototype to avoid an error.  */
16067 #ifdef __cplusplus
16068 extern "C"
16069 #endif
16070 /* We use char because int might match the return type of a gcc2
16071    builtin and then its argument prototype would still apply.  */
16072 char shl_load ();
16073 char (*f) ();
16074
16075 #ifdef F77_DUMMY_MAIN
16076 #  ifdef __cplusplus
16077      extern "C"
16078 #  endif
16079    int F77_DUMMY_MAIN() { return 1; }
16080 #endif
16081 int
16082 main ()
16083 {
16084 /* The GNU C library defines this for functions which it implements
16085     to always fail with ENOSYS.  Some functions are actually named
16086     something starting with __ and the normal name is an alias.  */
16087 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16088 choke me
16089 #else
16090 f = shl_load;
16091 #endif
16092
16093   ;
16094   return 0;
16095 }
16096 _ACEOF
16097 rm -f conftest.$ac_objext conftest$ac_exeext
16098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16099   (eval $ac_link) 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); } &&
16103          { ac_try='test -s conftest$ac_exeext'
16104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105   (eval $ac_try) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; }; then
16109   ac_cv_func_shl_load=yes
16110 else
16111   echo "$as_me: failed program was:" >&5
16112 cat conftest.$ac_ext >&5
16113 ac_cv_func_shl_load=no
16114 fi
16115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16116 fi
16117 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16118 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16119 if test $ac_cv_func_shl_load = yes; then
16120   lt_cv_dlopen="shl_load"
16121 else
16122   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16123 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16124 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16125   echo $ECHO_N "(cached) $ECHO_C" >&6
16126 else
16127   ac_check_lib_save_LIBS=$LIBS
16128 LIBS="-ldld  $LIBS"
16129 cat >conftest.$ac_ext <<_ACEOF
16130 #line $LINENO "configure"
16131 #include "confdefs.h"
16132
16133 /* Override any gcc2 internal prototype to avoid an error.  */
16134 #ifdef __cplusplus
16135 extern "C"
16136 #endif
16137 /* We use char because int might match the return type of a gcc2
16138    builtin and then its argument prototype would still apply.  */
16139 char shl_load ();
16140 #ifdef F77_DUMMY_MAIN
16141 #  ifdef __cplusplus
16142      extern "C"
16143 #  endif
16144    int F77_DUMMY_MAIN() { return 1; }
16145 #endif
16146 int
16147 main ()
16148 {
16149 shl_load ();
16150   ;
16151   return 0;
16152 }
16153 _ACEOF
16154 rm -f conftest.$ac_objext conftest$ac_exeext
16155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16156   (eval $ac_link) 2>&5
16157   ac_status=$?
16158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159   (exit $ac_status); } &&
16160          { ac_try='test -s conftest$ac_exeext'
16161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162   (eval $ac_try) 2>&5
16163   ac_status=$?
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); }; }; then
16166   ac_cv_lib_dld_shl_load=yes
16167 else
16168   echo "$as_me: failed program was:" >&5
16169 cat conftest.$ac_ext >&5
16170 ac_cv_lib_dld_shl_load=no
16171 fi
16172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16173 LIBS=$ac_check_lib_save_LIBS
16174 fi
16175 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16176 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16177 if test $ac_cv_lib_dld_shl_load = yes; then
16178   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16179 else
16180   echo "$as_me:$LINENO: checking for dlopen" >&5
16181 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16182 if test "${ac_cv_func_dlopen+set}" = set; then
16183   echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185   cat >conftest.$ac_ext <<_ACEOF
16186 #line $LINENO "configure"
16187 #include "confdefs.h"
16188 /* System header to define __stub macros and hopefully few prototypes,
16189     which can conflict with char dlopen (); below.  */
16190 #include <assert.h>
16191 /* Override any gcc2 internal prototype to avoid an error.  */
16192 #ifdef __cplusplus
16193 extern "C"
16194 #endif
16195 /* We use char because int might match the return type of a gcc2
16196    builtin and then its argument prototype would still apply.  */
16197 char dlopen ();
16198 char (*f) ();
16199
16200 #ifdef F77_DUMMY_MAIN
16201 #  ifdef __cplusplus
16202      extern "C"
16203 #  endif
16204    int F77_DUMMY_MAIN() { return 1; }
16205 #endif
16206 int
16207 main ()
16208 {
16209 /* The GNU C library defines this for functions which it implements
16210     to always fail with ENOSYS.  Some functions are actually named
16211     something starting with __ and the normal name is an alias.  */
16212 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16213 choke me
16214 #else
16215 f = dlopen;
16216 #endif
16217
16218   ;
16219   return 0;
16220 }
16221 _ACEOF
16222 rm -f conftest.$ac_objext conftest$ac_exeext
16223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16224   (eval $ac_link) 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); } &&
16228          { ac_try='test -s conftest$ac_exeext'
16229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230   (eval $ac_try) 2>&5
16231   ac_status=$?
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); }; }; then
16234   ac_cv_func_dlopen=yes
16235 else
16236   echo "$as_me: failed program was:" >&5
16237 cat conftest.$ac_ext >&5
16238 ac_cv_func_dlopen=no
16239 fi
16240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16241 fi
16242 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16243 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16244 if test $ac_cv_func_dlopen = yes; then
16245   lt_cv_dlopen="dlopen"
16246 else
16247   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16248 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16249 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16250   echo $ECHO_N "(cached) $ECHO_C" >&6
16251 else
16252   ac_check_lib_save_LIBS=$LIBS
16253 LIBS="-ldl  $LIBS"
16254 cat >conftest.$ac_ext <<_ACEOF
16255 #line $LINENO "configure"
16256 #include "confdefs.h"
16257
16258 /* Override any gcc2 internal prototype to avoid an error.  */
16259 #ifdef __cplusplus
16260 extern "C"
16261 #endif
16262 /* We use char because int might match the return type of a gcc2
16263    builtin and then its argument prototype would still apply.  */
16264 char dlopen ();
16265 #ifdef F77_DUMMY_MAIN
16266 #  ifdef __cplusplus
16267      extern "C"
16268 #  endif
16269    int F77_DUMMY_MAIN() { return 1; }
16270 #endif
16271 int
16272 main ()
16273 {
16274 dlopen ();
16275   ;
16276   return 0;
16277 }
16278 _ACEOF
16279 rm -f conftest.$ac_objext conftest$ac_exeext
16280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16281   (eval $ac_link) 2>&5
16282   ac_status=$?
16283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284   (exit $ac_status); } &&
16285          { ac_try='test -s conftest$ac_exeext'
16286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287   (eval $ac_try) 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; }; then
16291   ac_cv_lib_dl_dlopen=yes
16292 else
16293   echo "$as_me: failed program was:" >&5
16294 cat conftest.$ac_ext >&5
16295 ac_cv_lib_dl_dlopen=no
16296 fi
16297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16298 LIBS=$ac_check_lib_save_LIBS
16299 fi
16300 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16301 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16302 if test $ac_cv_lib_dl_dlopen = yes; then
16303   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16304 else
16305   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16306 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16307 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16308   echo $ECHO_N "(cached) $ECHO_C" >&6
16309 else
16310   ac_check_lib_save_LIBS=$LIBS
16311 LIBS="-lsvld  $LIBS"
16312 cat >conftest.$ac_ext <<_ACEOF
16313 #line $LINENO "configure"
16314 #include "confdefs.h"
16315
16316 /* Override any gcc2 internal prototype to avoid an error.  */
16317 #ifdef __cplusplus
16318 extern "C"
16319 #endif
16320 /* We use char because int might match the return type of a gcc2
16321    builtin and then its argument prototype would still apply.  */
16322 char dlopen ();
16323 #ifdef F77_DUMMY_MAIN
16324 #  ifdef __cplusplus
16325      extern "C"
16326 #  endif
16327    int F77_DUMMY_MAIN() { return 1; }
16328 #endif
16329 int
16330 main ()
16331 {
16332 dlopen ();
16333   ;
16334   return 0;
16335 }
16336 _ACEOF
16337 rm -f conftest.$ac_objext conftest$ac_exeext
16338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16339   (eval $ac_link) 2>&5
16340   ac_status=$?
16341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342   (exit $ac_status); } &&
16343          { ac_try='test -s conftest$ac_exeext'
16344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345   (eval $ac_try) 2>&5
16346   ac_status=$?
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); }; }; then
16349   ac_cv_lib_svld_dlopen=yes
16350 else
16351   echo "$as_me: failed program was:" >&5
16352 cat conftest.$ac_ext >&5
16353 ac_cv_lib_svld_dlopen=no
16354 fi
16355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16356 LIBS=$ac_check_lib_save_LIBS
16357 fi
16358 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16359 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16360 if test $ac_cv_lib_svld_dlopen = yes; then
16361   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16362 else
16363   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16364 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16365 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16366   echo $ECHO_N "(cached) $ECHO_C" >&6
16367 else
16368   ac_check_lib_save_LIBS=$LIBS
16369 LIBS="-ldld  $LIBS"
16370 cat >conftest.$ac_ext <<_ACEOF
16371 #line $LINENO "configure"
16372 #include "confdefs.h"
16373
16374 /* Override any gcc2 internal prototype to avoid an error.  */
16375 #ifdef __cplusplus
16376 extern "C"
16377 #endif
16378 /* We use char because int might match the return type of a gcc2
16379    builtin and then its argument prototype would still apply.  */
16380 char dld_link ();
16381 #ifdef F77_DUMMY_MAIN
16382 #  ifdef __cplusplus
16383      extern "C"
16384 #  endif
16385    int F77_DUMMY_MAIN() { return 1; }
16386 #endif
16387 int
16388 main ()
16389 {
16390 dld_link ();
16391   ;
16392   return 0;
16393 }
16394 _ACEOF
16395 rm -f conftest.$ac_objext conftest$ac_exeext
16396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16397   (eval $ac_link) 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); } &&
16401          { ac_try='test -s conftest$ac_exeext'
16402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16403   (eval $ac_try) 2>&5
16404   ac_status=$?
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); }; }; then
16407   ac_cv_lib_dld_dld_link=yes
16408 else
16409   echo "$as_me: failed program was:" >&5
16410 cat conftest.$ac_ext >&5
16411 ac_cv_lib_dld_dld_link=no
16412 fi
16413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16414 LIBS=$ac_check_lib_save_LIBS
16415 fi
16416 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16417 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16418 if test $ac_cv_lib_dld_dld_link = yes; then
16419   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16420 fi
16421
16422
16423 fi
16424
16425
16426 fi
16427
16428
16429 fi
16430
16431
16432 fi
16433
16434
16435 fi
16436
16437     ;;
16438   esac
16439
16440   if test "x$lt_cv_dlopen" != xno; then
16441     enable_dlopen=yes
16442   else
16443     enable_dlopen=no
16444   fi
16445
16446   case $lt_cv_dlopen in
16447   dlopen)
16448     save_CPPFLAGS="$CPPFLAGS"
16449     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16450
16451     save_LDFLAGS="$LDFLAGS"
16452     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16453
16454     save_LIBS="$LIBS"
16455     LIBS="$lt_cv_dlopen_libs $LIBS"
16456
16457     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16458 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16459 if test "${lt_cv_dlopen_self+set}" = set; then
16460   echo $ECHO_N "(cached) $ECHO_C" >&6
16461 else
16462           if test "$cross_compiling" = yes; then :
16463   lt_cv_dlopen_self=cross
16464 else
16465   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16466   lt_status=$lt_dlunknown
16467   cat > conftest.$ac_ext <<EOF
16468 #line 16468 "configure"
16469 #include "confdefs.h"
16470
16471 #if HAVE_DLFCN_H
16472 #include <dlfcn.h>
16473 #endif
16474
16475 #include <stdio.h>
16476
16477 #ifdef RTLD_GLOBAL
16478 #  define LT_DLGLOBAL           RTLD_GLOBAL
16479 #else
16480 #  ifdef DL_GLOBAL
16481 #    define LT_DLGLOBAL         DL_GLOBAL
16482 #  else
16483 #    define LT_DLGLOBAL         0
16484 #  endif
16485 #endif
16486
16487 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16488    find out it does not work in some platform. */
16489 #ifndef LT_DLLAZY_OR_NOW
16490 #  ifdef RTLD_LAZY
16491 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16492 #  else
16493 #    ifdef DL_LAZY
16494 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16495 #    else
16496 #      ifdef RTLD_NOW
16497 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16498 #      else
16499 #        ifdef DL_NOW
16500 #          define LT_DLLAZY_OR_NOW      DL_NOW
16501 #        else
16502 #          define LT_DLLAZY_OR_NOW      0
16503 #        endif
16504 #      endif
16505 #    endif
16506 #  endif
16507 #endif
16508
16509 #ifdef __cplusplus
16510 extern "C" void exit (int);
16511 #endif
16512
16513 void fnord() { int i=42;}
16514 int main ()
16515 {
16516   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16517   int status = $lt_dlunknown;
16518
16519   if (self)
16520     {
16521       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16522       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16523       /* dlclose (self); */
16524     }
16525
16526     exit (status);
16527 }
16528 EOF
16529   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16530   (eval $ac_link) 2>&5
16531   ac_status=$?
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16534     (./conftest; exit; ) 2>/dev/null
16535     lt_status=$?
16536     case x$lt_status in
16537       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16538       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16539       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16540     esac
16541   else :
16542     # compilation failed
16543     lt_cv_dlopen_self=no
16544   fi
16545 fi
16546 rm -fr conftest*
16547
16548
16549 fi
16550 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16551 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
16552
16553     if test "x$lt_cv_dlopen_self" = xyes; then
16554       LDFLAGS="$LDFLAGS $link_static_flag"
16555       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16556 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
16557 if test "${lt_cv_dlopen_self_static+set}" = set; then
16558   echo $ECHO_N "(cached) $ECHO_C" >&6
16559 else
16560           if test "$cross_compiling" = yes; then :
16561   lt_cv_dlopen_self_static=cross
16562 else
16563   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16564   lt_status=$lt_dlunknown
16565   cat > conftest.$ac_ext <<EOF
16566 #line 16566 "configure"
16567 #include "confdefs.h"
16568
16569 #if HAVE_DLFCN_H
16570 #include <dlfcn.h>
16571 #endif
16572
16573 #include <stdio.h>
16574
16575 #ifdef RTLD_GLOBAL
16576 #  define LT_DLGLOBAL           RTLD_GLOBAL
16577 #else
16578 #  ifdef DL_GLOBAL
16579 #    define LT_DLGLOBAL         DL_GLOBAL
16580 #  else
16581 #    define LT_DLGLOBAL         0
16582 #  endif
16583 #endif
16584
16585 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16586    find out it does not work in some platform. */
16587 #ifndef LT_DLLAZY_OR_NOW
16588 #  ifdef RTLD_LAZY
16589 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16590 #  else
16591 #    ifdef DL_LAZY
16592 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16593 #    else
16594 #      ifdef RTLD_NOW
16595 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16596 #      else
16597 #        ifdef DL_NOW
16598 #          define LT_DLLAZY_OR_NOW      DL_NOW
16599 #        else
16600 #          define LT_DLLAZY_OR_NOW      0
16601 #        endif
16602 #      endif
16603 #    endif
16604 #  endif
16605 #endif
16606
16607 #ifdef __cplusplus
16608 extern "C" void exit (int);
16609 #endif
16610
16611 void fnord() { int i=42;}
16612 int main ()
16613 {
16614   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16615   int status = $lt_dlunknown;
16616
16617   if (self)
16618     {
16619       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16620       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16621       /* dlclose (self); */
16622     }
16623
16624     exit (status);
16625 }
16626 EOF
16627   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16628   (eval $ac_link) 2>&5
16629   ac_status=$?
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16632     (./conftest; exit; ) 2>/dev/null
16633     lt_status=$?
16634     case x$lt_status in
16635       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16636       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16637       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16638     esac
16639   else :
16640     # compilation failed
16641     lt_cv_dlopen_self_static=no
16642   fi
16643 fi
16644 rm -fr conftest*
16645
16646
16647 fi
16648 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16649 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
16650     fi
16651
16652     CPPFLAGS="$save_CPPFLAGS"
16653     LDFLAGS="$save_LDFLAGS"
16654     LIBS="$save_LIBS"
16655     ;;
16656   esac
16657
16658   case $lt_cv_dlopen_self in
16659   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16660   *) enable_dlopen_self=unknown ;;
16661   esac
16662
16663   case $lt_cv_dlopen_self_static in
16664   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16665   *) enable_dlopen_self_static=unknown ;;
16666   esac
16667 fi
16668
16669
16670 # The else clause should only fire when bootstrapping the
16671 # libtool distribution, otherwise you forgot to ship ltmain.sh
16672 # with your package, and you will get complaints that there are
16673 # no rules to generate ltmain.sh.
16674 if test -f "$ltmain"; then
16675   # See if we are running on zsh, and set the options which allow our commands through
16676   # without removal of \ escapes.
16677   if test -n "${ZSH_VERSION+set}" ; then
16678     setopt NO_GLOB_SUBST
16679   fi
16680   # Now quote all the things that may contain metacharacters while being
16681   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16682   # variables and quote the copies for generation of the libtool script.
16683   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16684     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16685     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16686     deplibs_check_method reload_flag reload_cmds need_locks \
16687     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16688     lt_cv_sys_global_symbol_to_c_name_address \
16689     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16690     old_postinstall_cmds old_postuninstall_cmds \
16691     compiler_GCJ \
16692     CC_GCJ \
16693     LD_GCJ \
16694     lt_prog_compiler_wl_GCJ \
16695     lt_prog_compiler_pic_GCJ \
16696     lt_prog_compiler_static_GCJ \
16697     lt_prog_compiler_no_builtin_flag_GCJ \
16698     export_dynamic_flag_spec_GCJ \
16699     thread_safe_flag_spec_GCJ \
16700     whole_archive_flag_spec_GCJ \
16701     enable_shared_with_static_runtimes_GCJ \
16702     old_archive_cmds_GCJ \
16703     old_archive_from_new_cmds_GCJ \
16704     predep_objects_GCJ \
16705     postdep_objects_GCJ \
16706     predeps_GCJ \
16707     postdeps_GCJ \
16708     compiler_lib_search_path_GCJ \
16709     archive_cmds_GCJ \
16710     archive_expsym_cmds_GCJ \
16711     postinstall_cmds_GCJ \
16712     postuninstall_cmds_GCJ \
16713     old_archive_from_expsyms_cmds_GCJ \
16714     allow_undefined_flag_GCJ \
16715     no_undefined_flag_GCJ \
16716     export_symbols_cmds_GCJ \
16717     hardcode_libdir_flag_spec_GCJ \
16718     hardcode_libdir_flag_spec_ld_GCJ \
16719     hardcode_libdir_separator_GCJ \
16720     hardcode_automatic_GCJ \
16721     module_cmds_GCJ \
16722     module_expsym_cmds_GCJ \
16723     lt_cv_prog_compiler_c_o_GCJ \
16724     exclude_expsyms_GCJ \
16725     include_expsyms_GCJ; do
16726
16727     case $var in
16728     old_archive_cmds_GCJ | \
16729     old_archive_from_new_cmds_GCJ | \
16730     archive_cmds_GCJ | \
16731     archive_expsym_cmds_GCJ | \
16732     module_cmds_GCJ | \
16733     module_expsym_cmds_GCJ | \
16734     old_archive_from_expsyms_cmds_GCJ | \
16735     export_symbols_cmds_GCJ | \
16736     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16737     postinstall_cmds | postuninstall_cmds | \
16738     old_postinstall_cmds | old_postuninstall_cmds | \
16739     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16740       # Double-quote double-evaled strings.
16741       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16742       ;;
16743     *)
16744       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16745       ;;
16746     esac
16747   done
16748
16749   case $lt_echo in
16750   *'\$0 --fallback-echo"')
16751     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16752     ;;
16753   esac
16754
16755 cfgfile="$ofile"
16756
16757   cat <<__EOF__ >> "$cfgfile"
16758 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16759
16760 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16761
16762 # Shell to use when invoking shell scripts.
16763 SHELL=$lt_SHELL
16764
16765 # Whether or not to build shared libraries.
16766 build_libtool_libs=$enable_shared
16767
16768 # Whether or not to build static libraries.
16769 build_old_libs=$enable_static
16770
16771 # Whether or not to add -lc for building shared libraries.
16772 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
16773
16774 # Whether or not to disallow shared libs when runtime libs are static
16775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
16776
16777 # Whether or not to optimize for fast installation.
16778 fast_install=$enable_fast_install
16779
16780 # The host system.
16781 host_alias=$host_alias
16782 host=$host
16783
16784 # An echo program that does not interpret backslashes.
16785 echo=$lt_echo
16786
16787 # The archiver.
16788 AR=$lt_AR
16789 AR_FLAGS=$lt_AR_FLAGS
16790
16791 # A C compiler.
16792 LTCC=$lt_LTCC
16793
16794 # A language-specific compiler.
16795 CC=$lt_compiler_GCJ
16796
16797 # Is the compiler the GNU C compiler?
16798 with_gcc=$GCC_GCJ
16799
16800 # An ERE matcher.
16801 EGREP=$lt_EGREP
16802
16803 # The linker used to build libraries.
16804 LD=$lt_LD_GCJ
16805
16806 # Whether we need hard or soft links.
16807 LN_S=$lt_LN_S
16808
16809 # A BSD-compatible nm program.
16810 NM=$lt_NM
16811
16812 # A symbol stripping program
16813 STRIP=$STRIP
16814
16815 # Used to examine libraries when file_magic_cmd begins "file"
16816 MAGIC_CMD=$MAGIC_CMD
16817
16818 # Used on cygwin: DLL creation program.
16819 DLLTOOL="$DLLTOOL"
16820
16821 # Used on cygwin: object dumper.
16822 OBJDUMP="$OBJDUMP"
16823
16824 # Used on cygwin: assembler.
16825 AS="$AS"
16826
16827 # The name of the directory that contains temporary libtool files.
16828 objdir=$objdir
16829
16830 # How to create reloadable object files.
16831 reload_flag=$lt_reload_flag
16832 reload_cmds=$lt_reload_cmds
16833
16834 # How to pass a linker flag through the compiler.
16835 wl=$lt_lt_prog_compiler_wl_GCJ
16836
16837 # Object file suffix (normally "o").
16838 objext="$ac_objext"
16839
16840 # Old archive suffix (normally "a").
16841 libext="$libext"
16842
16843 # Shared library suffix (normally ".so").
16844 shrext='$shrext'
16845
16846 # Executable file suffix (normally "").
16847 exeext="$exeext"
16848
16849 # Additional compiler flags for building library objects.
16850 pic_flag=$lt_lt_prog_compiler_pic_GCJ
16851 pic_mode=$pic_mode
16852
16853 # What is the maximum length of a command?
16854 max_cmd_len=$lt_cv_sys_max_cmd_len
16855
16856 # Does compiler simultaneously support -c and -o options?
16857 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
16858
16859 # Must we lock files when doing compilation ?
16860 need_locks=$lt_need_locks
16861
16862 # Do we need the lib prefix for modules?
16863 need_lib_prefix=$need_lib_prefix
16864
16865 # Do we need a version for libraries?
16866 need_version=$need_version
16867
16868 # Whether dlopen is supported.
16869 dlopen_support=$enable_dlopen
16870
16871 # Whether dlopen of programs is supported.
16872 dlopen_self=$enable_dlopen_self
16873
16874 # Whether dlopen of statically linked programs is supported.
16875 dlopen_self_static=$enable_dlopen_self_static
16876
16877 # Compiler flag to prevent dynamic linking.
16878 link_static_flag=$lt_lt_prog_compiler_static_GCJ
16879
16880 # Compiler flag to turn off builtin functions.
16881 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
16882
16883 # Compiler flag to allow reflexive dlopens.
16884 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
16885
16886 # Compiler flag to generate shared objects directly from archives.
16887 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
16888
16889 # Compiler flag to generate thread-safe objects.
16890 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
16891
16892 # Library versioning type.
16893 version_type=$version_type
16894
16895 # Format of library name prefix.
16896 libname_spec=$lt_libname_spec
16897
16898 # List of archive names.  First name is the real one, the rest are links.
16899 # The last name is the one that the linker finds with -lNAME.
16900 library_names_spec=$lt_library_names_spec
16901
16902 # The coded name of the library, if different from the real name.
16903 soname_spec=$lt_soname_spec
16904
16905 # Commands used to build and install an old-style archive.
16906 RANLIB=$lt_RANLIB
16907 old_archive_cmds=$lt_old_archive_cmds_GCJ
16908 old_postinstall_cmds=$lt_old_postinstall_cmds
16909 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16910
16911 # Create an old-style archive from a shared archive.
16912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
16913
16914 # Create a temporary old-style archive to link instead of a shared archive.
16915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
16916
16917 # Commands used to build and install a shared archive.
16918 archive_cmds=$lt_archive_cmds_GCJ
16919 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
16920 postinstall_cmds=$lt_postinstall_cmds
16921 postuninstall_cmds=$lt_postuninstall_cmds
16922
16923 # Commands used to build a loadable module (assumed same as above if empty)
16924 module_cmds=$lt_module_cmds_GCJ
16925 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
16926
16927 # Commands to strip libraries.
16928 old_striplib=$lt_old_striplib
16929 striplib=$lt_striplib
16930
16931 # Dependencies to place before the objects being linked to create a
16932 # shared library.
16933 predep_objects=$lt_predep_objects_GCJ
16934
16935 # Dependencies to place after the objects being linked to create a
16936 # shared library.
16937 postdep_objects=$lt_postdep_objects_GCJ
16938
16939 # Dependencies to place before the objects being linked to create a
16940 # shared library.
16941 predeps=$lt_predeps_GCJ
16942
16943 # Dependencies to place after the objects being linked to create a
16944 # shared library.
16945 postdeps=$lt_postdeps_GCJ
16946
16947 # The library search path used internally by the compiler when linking
16948 # a shared library.
16949 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
16950
16951 # Method to check whether dependent libraries are shared objects.
16952 deplibs_check_method=$lt_deplibs_check_method
16953
16954 # Command to use when deplibs_check_method == file_magic.
16955 file_magic_cmd=$lt_file_magic_cmd
16956
16957 # Flag that allows shared libraries with undefined symbols to be built.
16958 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
16959
16960 # Flag that forces no undefined symbols.
16961 no_undefined_flag=$lt_no_undefined_flag_GCJ
16962
16963 # Commands used to finish a libtool library installation in a directory.
16964 finish_cmds=$lt_finish_cmds
16965
16966 # Same as above, but a single script fragment to be evaled but not shown.
16967 finish_eval=$lt_finish_eval
16968
16969 # Take the output of nm and produce a listing of raw symbols and C names.
16970 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16971
16972 # Transform the output of nm in a proper C declaration
16973 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16974
16975 # Transform the output of nm in a C name address pair
16976 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16977
16978 # This is the shared library runtime path variable.
16979 runpath_var=$runpath_var
16980
16981 # This is the shared library path variable.
16982 shlibpath_var=$shlibpath_var
16983
16984 # Is shlibpath searched before the hard-coded library search path?
16985 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16986
16987 # How to hardcode a shared library path into an executable.
16988 hardcode_action=$hardcode_action_GCJ
16989
16990 # Whether we should hardcode library paths into libraries.
16991 hardcode_into_libs=$hardcode_into_libs
16992
16993 # Flag to hardcode \$libdir into a binary during linking.
16994 # This must work even if \$libdir does not exist.
16995 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
16996
16997 # If ld is used when linking, flag to hardcode \$libdir into
16998 # a binary during linking. This must work even if \$libdir does
16999 # not exist.
17000 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17001
17002 # Whether we need a single -rpath flag with a separated argument.
17003 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17004
17005 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17006 # resulting binary.
17007 hardcode_direct=$hardcode_direct_GCJ
17008
17009 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17010 # resulting binary.
17011 hardcode_minus_L=$hardcode_minus_L_GCJ
17012
17013 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17014 # the resulting binary.
17015 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17016
17017 # Set to yes if building a shared library automatically hardcodes DIR into the library
17018 # and all subsequent libraries and executables linked against it.
17019 hardcode_automatic=$hardcode_automatic_GCJ
17020
17021 # Variables whose values should be saved in libtool wrapper scripts and
17022 # restored at relink time.
17023 variables_saved_for_relink="$variables_saved_for_relink"
17024
17025 # Whether libtool must link a program against all its dependency libraries.
17026 link_all_deplibs=$link_all_deplibs_GCJ
17027
17028 # Compile-time system search path for libraries
17029 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17030
17031 # Run-time system search path for libraries
17032 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17033
17034 # Fix the shell variable \$srcfile for the compiler.
17035 fix_srcfile_path="$fix_srcfile_path_GCJ"
17036
17037 # Set to yes if exported symbols are required.
17038 always_export_symbols=$always_export_symbols_GCJ
17039
17040 # The commands to list exported symbols.
17041 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17042
17043 # The commands to extract the exported symbol list from a shared archive.
17044 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17045
17046 # Symbols that should not be listed in the preloaded symbols.
17047 exclude_expsyms=$lt_exclude_expsyms_GCJ
17048
17049 # Symbols that must always be exported.
17050 include_expsyms=$lt_include_expsyms_GCJ
17051
17052 # ### END LIBTOOL TAG CONFIG: $tagname
17053
17054 __EOF__
17055
17056
17057 else
17058   # If there is no Makefile yet, we rely on a make rule to execute
17059   # `config.status --recheck' to rerun these tests and create the
17060   # libtool script then.
17061   test -f Makefile && make "$ltmain"
17062 fi
17063
17064
17065 ac_ext=c
17066 ac_cpp='$CPP $CPPFLAGS'
17067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17070
17071 CC="$lt_save_CC"
17072
17073         else
17074           tagname=""
17075         fi
17076         ;;
17077
17078       RC)
17079
17080
17081
17082 # Source file extension for RC test sources.
17083 ac_ext=rc
17084
17085 # Object file extension for compiled RC test sources.
17086 objext=o
17087 objext_RC=$objext
17088
17089 # Code to be used in simple compile tests
17090 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17091
17092 # Code to be used in simple link tests
17093 lt_simple_link_test_code="$lt_simple_compile_test_code"
17094
17095 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17096
17097 # If no C compiler was specified, use CC.
17098 LTCC=${LTCC-"$CC"}
17099
17100 # Allow CC to be a program name with arguments.
17101 compiler=$CC
17102
17103
17104 # Allow CC to be a program name with arguments.
17105 lt_save_CC="$CC"
17106 CC=${RC-"windres"}
17107 compiler=$CC
17108 compiler_RC=$CC
17109 lt_cv_prog_compiler_c_o_RC=yes
17110
17111 # The else clause should only fire when bootstrapping the
17112 # libtool distribution, otherwise you forgot to ship ltmain.sh
17113 # with your package, and you will get complaints that there are
17114 # no rules to generate ltmain.sh.
17115 if test -f "$ltmain"; then
17116   # See if we are running on zsh, and set the options which allow our commands through
17117   # without removal of \ escapes.
17118   if test -n "${ZSH_VERSION+set}" ; then
17119     setopt NO_GLOB_SUBST
17120   fi
17121   # Now quote all the things that may contain metacharacters while being
17122   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17123   # variables and quote the copies for generation of the libtool script.
17124   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17125     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17126     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17127     deplibs_check_method reload_flag reload_cmds need_locks \
17128     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17129     lt_cv_sys_global_symbol_to_c_name_address \
17130     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17131     old_postinstall_cmds old_postuninstall_cmds \
17132     compiler_RC \
17133     CC_RC \
17134     LD_RC \
17135     lt_prog_compiler_wl_RC \
17136     lt_prog_compiler_pic_RC \
17137     lt_prog_compiler_static_RC \
17138     lt_prog_compiler_no_builtin_flag_RC \
17139     export_dynamic_flag_spec_RC \
17140     thread_safe_flag_spec_RC \
17141     whole_archive_flag_spec_RC \
17142     enable_shared_with_static_runtimes_RC \
17143     old_archive_cmds_RC \
17144     old_archive_from_new_cmds_RC \
17145     predep_objects_RC \
17146     postdep_objects_RC \
17147     predeps_RC \
17148     postdeps_RC \
17149     compiler_lib_search_path_RC \
17150     archive_cmds_RC \
17151     archive_expsym_cmds_RC \
17152     postinstall_cmds_RC \
17153     postuninstall_cmds_RC \
17154     old_archive_from_expsyms_cmds_RC \
17155     allow_undefined_flag_RC \
17156     no_undefined_flag_RC \
17157     export_symbols_cmds_RC \
17158     hardcode_libdir_flag_spec_RC \
17159     hardcode_libdir_flag_spec_ld_RC \
17160     hardcode_libdir_separator_RC \
17161     hardcode_automatic_RC \
17162     module_cmds_RC \
17163     module_expsym_cmds_RC \
17164     lt_cv_prog_compiler_c_o_RC \
17165     exclude_expsyms_RC \
17166     include_expsyms_RC; do
17167
17168     case $var in
17169     old_archive_cmds_RC | \
17170     old_archive_from_new_cmds_RC | \
17171     archive_cmds_RC | \
17172     archive_expsym_cmds_RC | \
17173     module_cmds_RC | \
17174     module_expsym_cmds_RC | \
17175     old_archive_from_expsyms_cmds_RC | \
17176     export_symbols_cmds_RC | \
17177     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17178     postinstall_cmds | postuninstall_cmds | \
17179     old_postinstall_cmds | old_postuninstall_cmds | \
17180     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17181       # Double-quote double-evaled strings.
17182       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17183       ;;
17184     *)
17185       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17186       ;;
17187     esac
17188   done
17189
17190   case $lt_echo in
17191   *'\$0 --fallback-echo"')
17192     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17193     ;;
17194   esac
17195
17196 cfgfile="$ofile"
17197
17198   cat <<__EOF__ >> "$cfgfile"
17199 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17200
17201 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17202
17203 # Shell to use when invoking shell scripts.
17204 SHELL=$lt_SHELL
17205
17206 # Whether or not to build shared libraries.
17207 build_libtool_libs=$enable_shared
17208
17209 # Whether or not to build static libraries.
17210 build_old_libs=$enable_static
17211
17212 # Whether or not to add -lc for building shared libraries.
17213 build_libtool_need_lc=$archive_cmds_need_lc_RC
17214
17215 # Whether or not to disallow shared libs when runtime libs are static
17216 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17217
17218 # Whether or not to optimize for fast installation.
17219 fast_install=$enable_fast_install
17220
17221 # The host system.
17222 host_alias=$host_alias
17223 host=$host
17224
17225 # An echo program that does not interpret backslashes.
17226 echo=$lt_echo
17227
17228 # The archiver.
17229 AR=$lt_AR
17230 AR_FLAGS=$lt_AR_FLAGS
17231
17232 # A C compiler.
17233 LTCC=$lt_LTCC
17234
17235 # A language-specific compiler.
17236 CC=$lt_compiler_RC
17237
17238 # Is the compiler the GNU C compiler?
17239 with_gcc=$GCC_RC
17240
17241 # An ERE matcher.
17242 EGREP=$lt_EGREP
17243
17244 # The linker used to build libraries.
17245 LD=$lt_LD_RC
17246
17247 # Whether we need hard or soft links.
17248 LN_S=$lt_LN_S
17249
17250 # A BSD-compatible nm program.
17251 NM=$lt_NM
17252
17253 # A symbol stripping program
17254 STRIP=$STRIP
17255
17256 # Used to examine libraries when file_magic_cmd begins "file"
17257 MAGIC_CMD=$MAGIC_CMD
17258
17259 # Used on cygwin: DLL creation program.
17260 DLLTOOL="$DLLTOOL"
17261
17262 # Used on cygwin: object dumper.
17263 OBJDUMP="$OBJDUMP"
17264
17265 # Used on cygwin: assembler.
17266 AS="$AS"
17267
17268 # The name of the directory that contains temporary libtool files.
17269 objdir=$objdir
17270
17271 # How to create reloadable object files.
17272 reload_flag=$lt_reload_flag
17273 reload_cmds=$lt_reload_cmds
17274
17275 # How to pass a linker flag through the compiler.
17276 wl=$lt_lt_prog_compiler_wl_RC
17277
17278 # Object file suffix (normally "o").
17279 objext="$ac_objext"
17280
17281 # Old archive suffix (normally "a").
17282 libext="$libext"
17283
17284 # Shared library suffix (normally ".so").
17285 shrext='$shrext'
17286
17287 # Executable file suffix (normally "").
17288 exeext="$exeext"
17289
17290 # Additional compiler flags for building library objects.
17291 pic_flag=$lt_lt_prog_compiler_pic_RC
17292 pic_mode=$pic_mode
17293
17294 # What is the maximum length of a command?
17295 max_cmd_len=$lt_cv_sys_max_cmd_len
17296
17297 # Does compiler simultaneously support -c and -o options?
17298 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17299
17300 # Must we lock files when doing compilation ?
17301 need_locks=$lt_need_locks
17302
17303 # Do we need the lib prefix for modules?
17304 need_lib_prefix=$need_lib_prefix
17305
17306 # Do we need a version for libraries?
17307 need_version=$need_version
17308
17309 # Whether dlopen is supported.
17310 dlopen_support=$enable_dlopen
17311
17312 # Whether dlopen of programs is supported.
17313 dlopen_self=$enable_dlopen_self
17314
17315 # Whether dlopen of statically linked programs is supported.
17316 dlopen_self_static=$enable_dlopen_self_static
17317
17318 # Compiler flag to prevent dynamic linking.
17319 link_static_flag=$lt_lt_prog_compiler_static_RC
17320
17321 # Compiler flag to turn off builtin functions.
17322 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17323
17324 # Compiler flag to allow reflexive dlopens.
17325 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17326
17327 # Compiler flag to generate shared objects directly from archives.
17328 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17329
17330 # Compiler flag to generate thread-safe objects.
17331 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17332
17333 # Library versioning type.
17334 version_type=$version_type
17335
17336 # Format of library name prefix.
17337 libname_spec=$lt_libname_spec
17338
17339 # List of archive names.  First name is the real one, the rest are links.
17340 # The last name is the one that the linker finds with -lNAME.
17341 library_names_spec=$lt_library_names_spec
17342
17343 # The coded name of the library, if different from the real name.
17344 soname_spec=$lt_soname_spec
17345
17346 # Commands used to build and install an old-style archive.
17347 RANLIB=$lt_RANLIB
17348 old_archive_cmds=$lt_old_archive_cmds_RC
17349 old_postinstall_cmds=$lt_old_postinstall_cmds
17350 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17351
17352 # Create an old-style archive from a shared archive.
17353 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17354
17355 # Create a temporary old-style archive to link instead of a shared archive.
17356 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17357
17358 # Commands used to build and install a shared archive.
17359 archive_cmds=$lt_archive_cmds_RC
17360 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17361 postinstall_cmds=$lt_postinstall_cmds
17362 postuninstall_cmds=$lt_postuninstall_cmds
17363
17364 # Commands used to build a loadable module (assumed same as above if empty)
17365 module_cmds=$lt_module_cmds_RC
17366 module_expsym_cmds=$lt_module_expsym_cmds_RC
17367
17368 # Commands to strip libraries.
17369 old_striplib=$lt_old_striplib
17370 striplib=$lt_striplib
17371
17372 # Dependencies to place before the objects being linked to create a
17373 # shared library.
17374 predep_objects=$lt_predep_objects_RC
17375
17376 # Dependencies to place after the objects being linked to create a
17377 # shared library.
17378 postdep_objects=$lt_postdep_objects_RC
17379
17380 # Dependencies to place before the objects being linked to create a
17381 # shared library.
17382 predeps=$lt_predeps_RC
17383
17384 # Dependencies to place after the objects being linked to create a
17385 # shared library.
17386 postdeps=$lt_postdeps_RC
17387
17388 # The library search path used internally by the compiler when linking
17389 # a shared library.
17390 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17391
17392 # Method to check whether dependent libraries are shared objects.
17393 deplibs_check_method=$lt_deplibs_check_method
17394
17395 # Command to use when deplibs_check_method == file_magic.
17396 file_magic_cmd=$lt_file_magic_cmd
17397
17398 # Flag that allows shared libraries with undefined symbols to be built.
17399 allow_undefined_flag=$lt_allow_undefined_flag_RC
17400
17401 # Flag that forces no undefined symbols.
17402 no_undefined_flag=$lt_no_undefined_flag_RC
17403
17404 # Commands used to finish a libtool library installation in a directory.
17405 finish_cmds=$lt_finish_cmds
17406
17407 # Same as above, but a single script fragment to be evaled but not shown.
17408 finish_eval=$lt_finish_eval
17409
17410 # Take the output of nm and produce a listing of raw symbols and C names.
17411 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17412
17413 # Transform the output of nm in a proper C declaration
17414 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17415
17416 # Transform the output of nm in a C name address pair
17417 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17418
17419 # This is the shared library runtime path variable.
17420 runpath_var=$runpath_var
17421
17422 # This is the shared library path variable.
17423 shlibpath_var=$shlibpath_var
17424
17425 # Is shlibpath searched before the hard-coded library search path?
17426 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17427
17428 # How to hardcode a shared library path into an executable.
17429 hardcode_action=$hardcode_action_RC
17430
17431 # Whether we should hardcode library paths into libraries.
17432 hardcode_into_libs=$hardcode_into_libs
17433
17434 # Flag to hardcode \$libdir into a binary during linking.
17435 # This must work even if \$libdir does not exist.
17436 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17437
17438 # If ld is used when linking, flag to hardcode \$libdir into
17439 # a binary during linking. This must work even if \$libdir does
17440 # not exist.
17441 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17442
17443 # Whether we need a single -rpath flag with a separated argument.
17444 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17445
17446 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17447 # resulting binary.
17448 hardcode_direct=$hardcode_direct_RC
17449
17450 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17451 # resulting binary.
17452 hardcode_minus_L=$hardcode_minus_L_RC
17453
17454 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17455 # the resulting binary.
17456 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17457
17458 # Set to yes if building a shared library automatically hardcodes DIR into the library
17459 # and all subsequent libraries and executables linked against it.
17460 hardcode_automatic=$hardcode_automatic_RC
17461
17462 # Variables whose values should be saved in libtool wrapper scripts and
17463 # restored at relink time.
17464 variables_saved_for_relink="$variables_saved_for_relink"
17465
17466 # Whether libtool must link a program against all its dependency libraries.
17467 link_all_deplibs=$link_all_deplibs_RC
17468
17469 # Compile-time system search path for libraries
17470 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17471
17472 # Run-time system search path for libraries
17473 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17474
17475 # Fix the shell variable \$srcfile for the compiler.
17476 fix_srcfile_path="$fix_srcfile_path_RC"
17477
17478 # Set to yes if exported symbols are required.
17479 always_export_symbols=$always_export_symbols_RC
17480
17481 # The commands to list exported symbols.
17482 export_symbols_cmds=$lt_export_symbols_cmds_RC
17483
17484 # The commands to extract the exported symbol list from a shared archive.
17485 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17486
17487 # Symbols that should not be listed in the preloaded symbols.
17488 exclude_expsyms=$lt_exclude_expsyms_RC
17489
17490 # Symbols that must always be exported.
17491 include_expsyms=$lt_include_expsyms_RC
17492
17493 # ### END LIBTOOL TAG CONFIG: $tagname
17494
17495 __EOF__
17496
17497
17498 else
17499   # If there is no Makefile yet, we rely on a make rule to execute
17500   # `config.status --recheck' to rerun these tests and create the
17501   # libtool script then.
17502   test -f Makefile && make "$ltmain"
17503 fi
17504
17505
17506 ac_ext=c
17507 ac_cpp='$CPP $CPPFLAGS'
17508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17511
17512 CC="$lt_save_CC"
17513
17514         ;;
17515
17516       *)
17517         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
17518 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
17519    { (exit 1); exit 1; }; }
17520         ;;
17521       esac
17522
17523       # Append the new tag name to the list of available tags.
17524       if test -n "$tagname" ; then
17525       available_tags="$available_tags $tagname"
17526     fi
17527     fi
17528   done
17529   IFS="$lt_save_ifs"
17530
17531   # Now substitute the updated list of available tags.
17532   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
17533     mv "${ofile}T" "$ofile"
17534     chmod +x "$ofile"
17535   else
17536     rm -f "${ofile}T"
17537     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
17538 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
17539    { (exit 1); exit 1; }; }
17540   fi
17541 fi
17542
17543
17544
17545 # This can be used to rebuild libtool when needed
17546 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
17547
17548 # Always use our own libtool.
17549 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
17550
17551 # Prevent multiple expansion
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573 # Extract the first word of "ar", so it can be a program name with args.
17574 set dummy ar; ac_word=$2
17575 echo "$as_me:$LINENO: checking for $ac_word" >&5
17576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17577 if test "${ac_cv_path_AR+set}" = set; then
17578   echo $ECHO_N "(cached) $ECHO_C" >&6
17579 else
17580   case $AR in
17581   [\\/]* | ?:[\\/]*)
17582   ac_cv_path_AR="$AR" # Let the user override the test with a path.
17583   ;;
17584   *)
17585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17586 for as_dir in $PATH
17587 do
17588   IFS=$as_save_IFS
17589   test -z "$as_dir" && as_dir=.
17590   for ac_exec_ext in '' $ac_executable_extensions; do
17591   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17592     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
17593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17594     break 2
17595   fi
17596 done
17597 done
17598
17599   ;;
17600 esac
17601 fi
17602 AR=$ac_cv_path_AR
17603
17604 if test -n "$AR"; then
17605   echo "$as_me:$LINENO: result: $AR" >&5
17606 echo "${ECHO_T}$AR" >&6
17607 else
17608   echo "$as_me:$LINENO: result: no" >&5
17609 echo "${ECHO_T}no" >&6
17610 fi
17611
17612 # Extract the first word of "sed", so it can be a program name with args.
17613 set dummy sed; ac_word=$2
17614 echo "$as_me:$LINENO: checking for $ac_word" >&5
17615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17616 if test "${ac_cv_path_SED+set}" = set; then
17617   echo $ECHO_N "(cached) $ECHO_C" >&6
17618 else
17619   case $SED in
17620   [\\/]* | ?:[\\/]*)
17621   ac_cv_path_SED="$SED" # Let the user override the test with a path.
17622   ;;
17623   *)
17624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17625 for as_dir in $PATH
17626 do
17627   IFS=$as_save_IFS
17628   test -z "$as_dir" && as_dir=.
17629   for ac_exec_ext in '' $ac_executable_extensions; do
17630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17631     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
17632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17633     break 2
17634   fi
17635 done
17636 done
17637
17638   ;;
17639 esac
17640 fi
17641 SED=$ac_cv_path_SED
17642
17643 if test -n "$SED"; then
17644   echo "$as_me:$LINENO: result: $SED" >&5
17645 echo "${ECHO_T}$SED" >&6
17646 else
17647   echo "$as_me:$LINENO: result: no" >&5
17648 echo "${ECHO_T}no" >&6
17649 fi
17650
17651 # Extract the first word of "rm", so it can be a program name with args.
17652 set dummy rm; ac_word=$2
17653 echo "$as_me:$LINENO: checking for $ac_word" >&5
17654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17655 if test "${ac_cv_path_RM+set}" = set; then
17656   echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658   case $RM in
17659   [\\/]* | ?:[\\/]*)
17660   ac_cv_path_RM="$RM" # Let the user override the test with a path.
17661   ;;
17662   *)
17663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17664 for as_dir in $PATH
17665 do
17666   IFS=$as_save_IFS
17667   test -z "$as_dir" && as_dir=.
17668   for ac_exec_ext in '' $ac_executable_extensions; do
17669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17670     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
17671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17672     break 2
17673   fi
17674 done
17675 done
17676
17677   ;;
17678 esac
17679 fi
17680 RM=$ac_cv_path_RM
17681
17682 if test -n "$RM"; then
17683   echo "$as_me:$LINENO: result: $RM" >&5
17684 echo "${ECHO_T}$RM" >&6
17685 else
17686   echo "$as_me:$LINENO: result: no" >&5
17687 echo "${ECHO_T}no" >&6
17688 fi
17689
17690 # Extract the first word of "echo", so it can be a program name with args.
17691 set dummy echo; ac_word=$2
17692 echo "$as_me:$LINENO: checking for $ac_word" >&5
17693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17694 if test "${ac_cv_path_ECHO+set}" = set; then
17695   echo $ECHO_N "(cached) $ECHO_C" >&6
17696 else
17697   case $ECHO in
17698   [\\/]* | ?:[\\/]*)
17699   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
17700   ;;
17701   *)
17702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17703 for as_dir in $PATH
17704 do
17705   IFS=$as_save_IFS
17706   test -z "$as_dir" && as_dir=.
17707   for ac_exec_ext in '' $ac_executable_extensions; do
17708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17709     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
17710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17711     break 2
17712   fi
17713 done
17714 done
17715
17716   ;;
17717 esac
17718 fi
17719 ECHO=$ac_cv_path_ECHO
17720
17721 if test -n "$ECHO"; then
17722   echo "$as_me:$LINENO: result: $ECHO" >&5
17723 echo "${ECHO_T}$ECHO" >&6
17724 else
17725   echo "$as_me:$LINENO: result: no" >&5
17726 echo "${ECHO_T}no" >&6
17727 fi
17728
17729 # Extract the first word of "mkdir", so it can be a program name with args.
17730 set dummy mkdir; ac_word=$2
17731 echo "$as_me:$LINENO: checking for $ac_word" >&5
17732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17733 if test "${ac_cv_path_MKDIR+set}" = set; then
17734   echo $ECHO_N "(cached) $ECHO_C" >&6
17735 else
17736   case $MKDIR in
17737   [\\/]* | ?:[\\/]*)
17738   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
17739   ;;
17740   *)
17741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17742 for as_dir in $PATH
17743 do
17744   IFS=$as_save_IFS
17745   test -z "$as_dir" && as_dir=.
17746   for ac_exec_ext in '' $ac_executable_extensions; do
17747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17748     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
17749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17750     break 2
17751   fi
17752 done
17753 done
17754
17755   ;;
17756 esac
17757 fi
17758 MKDIR=$ac_cv_path_MKDIR
17759
17760 if test -n "$MKDIR"; then
17761   echo "$as_me:$LINENO: result: $MKDIR" >&5
17762 echo "${ECHO_T}$MKDIR" >&6
17763 else
17764   echo "$as_me:$LINENO: result: no" >&5
17765 echo "${ECHO_T}no" >&6
17766 fi
17767
17768 # Extract the first word of "date", so it can be a program name with args.
17769 set dummy date; ac_word=$2
17770 echo "$as_me:$LINENO: checking for $ac_word" >&5
17771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17772 if test "${ac_cv_path_DATE+set}" = set; then
17773   echo $ECHO_N "(cached) $ECHO_C" >&6
17774 else
17775   case $DATE in
17776   [\\/]* | ?:[\\/]*)
17777   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
17778   ;;
17779   *)
17780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17781 for as_dir in $PATH
17782 do
17783   IFS=$as_save_IFS
17784   test -z "$as_dir" && as_dir=.
17785   for ac_exec_ext in '' $ac_executable_extensions; do
17786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17787     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
17788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17789     break 2
17790   fi
17791 done
17792 done
17793
17794   ;;
17795 esac
17796 fi
17797 DATE=$ac_cv_path_DATE
17798
17799 if test -n "$DATE"; then
17800   echo "$as_me:$LINENO: result: $DATE" >&5
17801 echo "${ECHO_T}$DATE" >&6
17802 else
17803   echo "$as_me:$LINENO: result: no" >&5
17804 echo "${ECHO_T}no" >&6
17805 fi
17806
17807 # Extract the first word of "mv", so it can be a program name with args.
17808 set dummy mv; ac_word=$2
17809 echo "$as_me:$LINENO: checking for $ac_word" >&5
17810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17811 if test "${ac_cv_path_MV+set}" = set; then
17812   echo $ECHO_N "(cached) $ECHO_C" >&6
17813 else
17814   case $MV in
17815   [\\/]* | ?:[\\/]*)
17816   ac_cv_path_MV="$MV" # Let the user override the test with a path.
17817   ;;
17818   *)
17819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17820 for as_dir in $PATH
17821 do
17822   IFS=$as_save_IFS
17823   test -z "$as_dir" && as_dir=.
17824   for ac_exec_ext in '' $ac_executable_extensions; do
17825   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17826     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
17827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17828     break 2
17829   fi
17830 done
17831 done
17832
17833   ;;
17834 esac
17835 fi
17836 MV=$ac_cv_path_MV
17837
17838 if test -n "$MV"; then
17839   echo "$as_me:$LINENO: result: $MV" >&5
17840 echo "${ECHO_T}$MV" >&6
17841 else
17842   echo "$as_me:$LINENO: result: no" >&5
17843 echo "${ECHO_T}no" >&6
17844 fi
17845
17846 # Extract the first word of "dot", so it can be a program name with args.
17847 set dummy dot; ac_word=$2
17848 echo "$as_me:$LINENO: checking for $ac_word" >&5
17849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17850 if test "${ac_cv_path_DOT+set}" = set; then
17851   echo $ECHO_N "(cached) $ECHO_C" >&6
17852 else
17853   case $DOT in
17854   [\\/]* | ?:[\\/]*)
17855   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
17856   ;;
17857   *)
17858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17859 for as_dir in $PATH
17860 do
17861   IFS=$as_save_IFS
17862   test -z "$as_dir" && as_dir=.
17863   for ac_exec_ext in '' $ac_executable_extensions; do
17864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17865     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
17866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17867     break 2
17868   fi
17869 done
17870 done
17871
17872   ;;
17873 esac
17874 fi
17875 DOT=$ac_cv_path_DOT
17876
17877 if test -n "$DOT"; then
17878   echo "$as_me:$LINENO: result: $DOT" >&5
17879 echo "${ECHO_T}$DOT" >&6
17880 else
17881   echo "$as_me:$LINENO: result: no" >&5
17882 echo "${ECHO_T}no" >&6
17883 fi
17884
17885 # Extract the first word of "etags", so it can be a program name with args.
17886 set dummy etags; ac_word=$2
17887 echo "$as_me:$LINENO: checking for $ac_word" >&5
17888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17889 if test "${ac_cv_path_ETAGS+set}" = set; then
17890   echo $ECHO_N "(cached) $ECHO_C" >&6
17891 else
17892   case $ETAGS in
17893   [\\/]* | ?:[\\/]*)
17894   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
17895   ;;
17896   *)
17897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17898 for as_dir in $PATH
17899 do
17900   IFS=$as_save_IFS
17901   test -z "$as_dir" && as_dir=.
17902   for ac_exec_ext in '' $ac_executable_extensions; do
17903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17904     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
17905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17906     break 2
17907   fi
17908 done
17909 done
17910
17911   ;;
17912 esac
17913 fi
17914 ETAGS=$ac_cv_path_ETAGS
17915
17916 if test -n "$ETAGS"; then
17917   echo "$as_me:$LINENO: result: $ETAGS" >&5
17918 echo "${ECHO_T}$ETAGS" >&6
17919 else
17920   echo "$as_me:$LINENO: result: no" >&5
17921 echo "${ECHO_T}no" >&6
17922 fi
17923
17924 # Extract the first word of "purify", so it can be a program name with args.
17925 set dummy purify; ac_word=$2
17926 echo "$as_me:$LINENO: checking for $ac_word" >&5
17927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17928 if test "${ac_cv_path_PURIFY+set}" = set; then
17929   echo $ECHO_N "(cached) $ECHO_C" >&6
17930 else
17931   case $PURIFY in
17932   [\\/]* | ?:[\\/]*)
17933   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
17934   ;;
17935   *)
17936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17937 for as_dir in $PATH
17938 do
17939   IFS=$as_save_IFS
17940   test -z "$as_dir" && as_dir=.
17941   for ac_exec_ext in '' $ac_executable_extensions; do
17942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17943     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
17944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17945     break 2
17946   fi
17947 done
17948 done
17949
17950   ;;
17951 esac
17952 fi
17953 PURIFY=$ac_cv_path_PURIFY
17954
17955 if test -n "$PURIFY"; then
17956   echo "$as_me:$LINENO: result: $PURIFY" >&5
17957 echo "${ECHO_T}$PURIFY" >&6
17958 else
17959   echo "$as_me:$LINENO: result: no" >&5
17960 echo "${ECHO_T}no" >&6
17961 fi
17962
17963
17964
17965
17966
17967
17968 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17969 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
17970 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17971   echo $ECHO_N "(cached) $ECHO_C" >&6
17972 else
17973   ac_check_lib_save_LIBS=$LIBS
17974 LIBS="-lelf  $LIBS"
17975 cat >conftest.$ac_ext <<_ACEOF
17976 #line $LINENO "configure"
17977 #include "confdefs.h"
17978
17979 /* Override any gcc2 internal prototype to avoid an error.  */
17980 #ifdef __cplusplus
17981 extern "C"
17982 #endif
17983 /* We use char because int might match the return type of a gcc2
17984    builtin and then its argument prototype would still apply.  */
17985 char elf_begin ();
17986 #ifdef F77_DUMMY_MAIN
17987 #  ifdef __cplusplus
17988      extern "C"
17989 #  endif
17990    int F77_DUMMY_MAIN() { return 1; }
17991 #endif
17992 int
17993 main ()
17994 {
17995 elf_begin ();
17996   ;
17997   return 0;
17998 }
17999 _ACEOF
18000 rm -f conftest.$ac_objext conftest$ac_exeext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18002   (eval $ac_link) 2>&5
18003   ac_status=$?
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); } &&
18006          { ac_try='test -s conftest$ac_exeext'
18007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008   (eval $ac_try) 2>&5
18009   ac_status=$?
18010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011   (exit $ac_status); }; }; then
18012   ac_cv_lib_elf_elf_begin=yes
18013 else
18014   echo "$as_me: failed program was:" >&5
18015 cat conftest.$ac_ext >&5
18016 ac_cv_lib_elf_elf_begin=no
18017 fi
18018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18019 LIBS=$ac_check_lib_save_LIBS
18020 fi
18021 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18022 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18023 if test $ac_cv_lib_elf_elf_begin = yes; then
18024   cat >>confdefs.h <<_ACEOF
18025 #define HAVE_LIBELF 1
18026 _ACEOF
18027
18028   LIBS="-lelf $LIBS"
18029
18030 fi
18031
18032
18033 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18034 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18035 if test "${ac_cv_search_dlopen+set}" = set; then
18036   echo $ECHO_N "(cached) $ECHO_C" >&6
18037 else
18038   ac_func_search_save_LIBS=$LIBS
18039 ac_cv_search_dlopen=no
18040 cat >conftest.$ac_ext <<_ACEOF
18041 #line $LINENO "configure"
18042 #include "confdefs.h"
18043
18044 /* Override any gcc2 internal prototype to avoid an error.  */
18045 #ifdef __cplusplus
18046 extern "C"
18047 #endif
18048 /* We use char because int might match the return type of a gcc2
18049    builtin and then its argument prototype would still apply.  */
18050 char dlopen ();
18051 #ifdef F77_DUMMY_MAIN
18052 #  ifdef __cplusplus
18053      extern "C"
18054 #  endif
18055    int F77_DUMMY_MAIN() { return 1; }
18056 #endif
18057 int
18058 main ()
18059 {
18060 dlopen ();
18061   ;
18062   return 0;
18063 }
18064 _ACEOF
18065 rm -f conftest.$ac_objext conftest$ac_exeext
18066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18067   (eval $ac_link) 2>&5
18068   ac_status=$?
18069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070   (exit $ac_status); } &&
18071          { ac_try='test -s conftest$ac_exeext'
18072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073   (eval $ac_try) 2>&5
18074   ac_status=$?
18075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076   (exit $ac_status); }; }; then
18077   ac_cv_search_dlopen="none required"
18078 else
18079   echo "$as_me: failed program was:" >&5
18080 cat conftest.$ac_ext >&5
18081 fi
18082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18083 if test "$ac_cv_search_dlopen" = no; then
18084   for ac_lib in dl; do
18085     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18086     cat >conftest.$ac_ext <<_ACEOF
18087 #line $LINENO "configure"
18088 #include "confdefs.h"
18089
18090 /* Override any gcc2 internal prototype to avoid an error.  */
18091 #ifdef __cplusplus
18092 extern "C"
18093 #endif
18094 /* We use char because int might match the return type of a gcc2
18095    builtin and then its argument prototype would still apply.  */
18096 char dlopen ();
18097 #ifdef F77_DUMMY_MAIN
18098 #  ifdef __cplusplus
18099      extern "C"
18100 #  endif
18101    int F77_DUMMY_MAIN() { return 1; }
18102 #endif
18103 int
18104 main ()
18105 {
18106 dlopen ();
18107   ;
18108   return 0;
18109 }
18110 _ACEOF
18111 rm -f conftest.$ac_objext conftest$ac_exeext
18112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18113   (eval $ac_link) 2>&5
18114   ac_status=$?
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); } &&
18117          { ac_try='test -s conftest$ac_exeext'
18118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119   (eval $ac_try) 2>&5
18120   ac_status=$?
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); }; }; then
18123   ac_cv_search_dlopen="-l$ac_lib"
18124 break
18125 else
18126   echo "$as_me: failed program was:" >&5
18127 cat conftest.$ac_ext >&5
18128 fi
18129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18130   done
18131 fi
18132 LIBS=$ac_func_search_save_LIBS
18133 fi
18134 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18135 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18136 if test "$ac_cv_search_dlopen" != no; then
18137   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18138
18139 else
18140   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
18141 echo "$as_me: error: dlopen() required but not found" >&2;}
18142    { (exit 1); exit 1; }; }
18143 fi
18144
18145
18146 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18147 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18148 if test "${ac_cv_search_mallinfo+set}" = set; then
18149   echo $ECHO_N "(cached) $ECHO_C" >&6
18150 else
18151   ac_func_search_save_LIBS=$LIBS
18152 ac_cv_search_mallinfo=no
18153 cat >conftest.$ac_ext <<_ACEOF
18154 #line $LINENO "configure"
18155 #include "confdefs.h"
18156
18157 /* Override any gcc2 internal prototype to avoid an error.  */
18158 #ifdef __cplusplus
18159 extern "C"
18160 #endif
18161 /* We use char because int might match the return type of a gcc2
18162    builtin and then its argument prototype would still apply.  */
18163 char mallinfo ();
18164 #ifdef F77_DUMMY_MAIN
18165 #  ifdef __cplusplus
18166      extern "C"
18167 #  endif
18168    int F77_DUMMY_MAIN() { return 1; }
18169 #endif
18170 int
18171 main ()
18172 {
18173 mallinfo ();
18174   ;
18175   return 0;
18176 }
18177 _ACEOF
18178 rm -f conftest.$ac_objext conftest$ac_exeext
18179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18180   (eval $ac_link) 2>&5
18181   ac_status=$?
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); } &&
18184          { ac_try='test -s conftest$ac_exeext'
18185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186   (eval $ac_try) 2>&5
18187   ac_status=$?
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); }; }; then
18190   ac_cv_search_mallinfo="none required"
18191 else
18192   echo "$as_me: failed program was:" >&5
18193 cat conftest.$ac_ext >&5
18194 fi
18195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18196 if test "$ac_cv_search_mallinfo" = no; then
18197   for ac_lib in malloc; do
18198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18199     cat >conftest.$ac_ext <<_ACEOF
18200 #line $LINENO "configure"
18201 #include "confdefs.h"
18202
18203 /* Override any gcc2 internal prototype to avoid an error.  */
18204 #ifdef __cplusplus
18205 extern "C"
18206 #endif
18207 /* We use char because int might match the return type of a gcc2
18208    builtin and then its argument prototype would still apply.  */
18209 char mallinfo ();
18210 #ifdef F77_DUMMY_MAIN
18211 #  ifdef __cplusplus
18212      extern "C"
18213 #  endif
18214    int F77_DUMMY_MAIN() { return 1; }
18215 #endif
18216 int
18217 main ()
18218 {
18219 mallinfo ();
18220   ;
18221   return 0;
18222 }
18223 _ACEOF
18224 rm -f conftest.$ac_objext conftest$ac_exeext
18225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18226   (eval $ac_link) 2>&5
18227   ac_status=$?
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); } &&
18230          { ac_try='test -s conftest$ac_exeext'
18231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232   (eval $ac_try) 2>&5
18233   ac_status=$?
18234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235   (exit $ac_status); }; }; then
18236   ac_cv_search_mallinfo="-l$ac_lib"
18237 break
18238 else
18239   echo "$as_me: failed program was:" >&5
18240 cat conftest.$ac_ext >&5
18241 fi
18242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18243   done
18244 fi
18245 LIBS=$ac_func_search_save_LIBS
18246 fi
18247 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18248 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18249 if test "$ac_cv_search_mallinfo" != no; then
18250   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18251   cat >>confdefs.h <<\_ACEOF
18252 #define HAVE_MALLINFO 1
18253 _ACEOF
18254
18255 fi
18256
18257
18258
18259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18261 if test "${ac_cv_header_stdc+set}" = set; then
18262   echo $ECHO_N "(cached) $ECHO_C" >&6
18263 else
18264   cat >conftest.$ac_ext <<_ACEOF
18265 #line $LINENO "configure"
18266 #include "confdefs.h"
18267 #include <stdlib.h>
18268 #include <stdarg.h>
18269 #include <string.h>
18270 #include <float.h>
18271
18272 _ACEOF
18273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18274   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18275   ac_status=$?
18276   egrep -v '^ *\+' conftest.er1 >conftest.err
18277   rm -f conftest.er1
18278   cat conftest.err >&5
18279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280   (exit $ac_status); } >/dev/null; then
18281   if test -s conftest.err; then
18282     ac_cpp_err=$ac_c_preproc_warn_flag
18283   else
18284     ac_cpp_err=
18285   fi
18286 else
18287   ac_cpp_err=yes
18288 fi
18289 if test -z "$ac_cpp_err"; then
18290   ac_cv_header_stdc=yes
18291 else
18292   echo "$as_me: failed program was:" >&5
18293   cat conftest.$ac_ext >&5
18294   ac_cv_header_stdc=no
18295 fi
18296 rm -f conftest.err conftest.$ac_ext
18297
18298 if test $ac_cv_header_stdc = yes; then
18299   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18300   cat >conftest.$ac_ext <<_ACEOF
18301 #line $LINENO "configure"
18302 #include "confdefs.h"
18303 #include <string.h>
18304
18305 _ACEOF
18306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18307   egrep "memchr" >/dev/null 2>&1; then
18308   :
18309 else
18310   ac_cv_header_stdc=no
18311 fi
18312 rm -f conftest*
18313
18314 fi
18315
18316 if test $ac_cv_header_stdc = yes; then
18317   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18318   cat >conftest.$ac_ext <<_ACEOF
18319 #line $LINENO "configure"
18320 #include "confdefs.h"
18321 #include <stdlib.h>
18322
18323 _ACEOF
18324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18325   egrep "free" >/dev/null 2>&1; then
18326   :
18327 else
18328   ac_cv_header_stdc=no
18329 fi
18330 rm -f conftest*
18331
18332 fi
18333
18334 if test $ac_cv_header_stdc = yes; then
18335   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18336   if test "$cross_compiling" = yes; then
18337   :
18338 else
18339   cat >conftest.$ac_ext <<_ACEOF
18340 #line $LINENO "configure"
18341 #include "confdefs.h"
18342 #include <ctype.h>
18343 #if ((' ' & 0x0FF) == 0x020)
18344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18346 #else
18347 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18348                      || ('j' <= (c) && (c) <= 'r') \
18349                      || ('s' <= (c) && (c) <= 'z'))
18350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18351 #endif
18352
18353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18354 int
18355 main ()
18356 {
18357   int i;
18358   for (i = 0; i < 256; i++)
18359     if (XOR (islower (i), ISLOWER (i))
18360         || toupper (i) != TOUPPER (i))
18361       exit(2);
18362   exit (0);
18363 }
18364 _ACEOF
18365 rm -f conftest$ac_exeext
18366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18367   (eval $ac_link) 2>&5
18368   ac_status=$?
18369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372   (eval $ac_try) 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; }; then
18376   :
18377 else
18378   echo "$as_me: program exited with status $ac_status" >&5
18379 echo "$as_me: failed program was:" >&5
18380 cat conftest.$ac_ext >&5
18381 ( exit $ac_status )
18382 ac_cv_header_stdc=no
18383 fi
18384 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18385 fi
18386 fi
18387 fi
18388 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18389 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18390 if test $ac_cv_header_stdc = yes; then
18391
18392 cat >>confdefs.h <<\_ACEOF
18393 #define STDC_HEADERS 1
18394 _ACEOF
18395
18396 fi
18397
18398 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18399 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18400 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18401   echo $ECHO_N "(cached) $ECHO_C" >&6
18402 else
18403   cat >conftest.$ac_ext <<_ACEOF
18404 #line $LINENO "configure"
18405 #include "confdefs.h"
18406 #include <sys/types.h>
18407 #include <sys/wait.h>
18408 #ifndef WEXITSTATUS
18409 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18410 #endif
18411 #ifndef WIFEXITED
18412 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18413 #endif
18414
18415 #ifdef F77_DUMMY_MAIN
18416 #  ifdef __cplusplus
18417      extern "C"
18418 #  endif
18419    int F77_DUMMY_MAIN() { return 1; }
18420 #endif
18421 int
18422 main ()
18423 {
18424   int s;
18425   wait (&s);
18426   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18427   ;
18428   return 0;
18429 }
18430 _ACEOF
18431 rm -f conftest.$ac_objext
18432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18433   (eval $ac_compile) 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); } &&
18437          { ac_try='test -s conftest.$ac_objext'
18438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439   (eval $ac_try) 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); }; }; then
18443   ac_cv_header_sys_wait_h=yes
18444 else
18445   echo "$as_me: failed program was:" >&5
18446 cat conftest.$ac_ext >&5
18447 ac_cv_header_sys_wait_h=no
18448 fi
18449 rm -f conftest.$ac_objext conftest.$ac_ext
18450 fi
18451 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18452 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18453 if test $ac_cv_header_sys_wait_h = yes; then
18454
18455 cat >>confdefs.h <<\_ACEOF
18456 #define HAVE_SYS_WAIT_H 1
18457 _ACEOF
18458
18459 fi
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
18471 do
18472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18474   echo "$as_me:$LINENO: checking for $ac_header" >&5
18475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18477   echo $ECHO_N "(cached) $ECHO_C" >&6
18478 fi
18479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18481 else
18482   # Is the header compilable?
18483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18485 cat >conftest.$ac_ext <<_ACEOF
18486 #line $LINENO "configure"
18487 #include "confdefs.h"
18488 $ac_includes_default
18489 #include <$ac_header>
18490 _ACEOF
18491 rm -f conftest.$ac_objext
18492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18493   (eval $ac_compile) 2>&5
18494   ac_status=$?
18495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496   (exit $ac_status); } &&
18497          { ac_try='test -s conftest.$ac_objext'
18498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499   (eval $ac_try) 2>&5
18500   ac_status=$?
18501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502   (exit $ac_status); }; }; then
18503   ac_header_compiler=yes
18504 else
18505   echo "$as_me: failed program was:" >&5
18506 cat conftest.$ac_ext >&5
18507 ac_header_compiler=no
18508 fi
18509 rm -f conftest.$ac_objext conftest.$ac_ext
18510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18511 echo "${ECHO_T}$ac_header_compiler" >&6
18512
18513 # Is the header present?
18514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18516 cat >conftest.$ac_ext <<_ACEOF
18517 #line $LINENO "configure"
18518 #include "confdefs.h"
18519 #include <$ac_header>
18520 _ACEOF
18521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18522   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18523   ac_status=$?
18524   egrep -v '^ *\+' conftest.er1 >conftest.err
18525   rm -f conftest.er1
18526   cat conftest.err >&5
18527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); } >/dev/null; then
18529   if test -s conftest.err; then
18530     ac_cpp_err=$ac_c_preproc_warn_flag
18531   else
18532     ac_cpp_err=
18533   fi
18534 else
18535   ac_cpp_err=yes
18536 fi
18537 if test -z "$ac_cpp_err"; then
18538   ac_header_preproc=yes
18539 else
18540   echo "$as_me: failed program was:" >&5
18541   cat conftest.$ac_ext >&5
18542   ac_header_preproc=no
18543 fi
18544 rm -f conftest.err conftest.$ac_ext
18545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18546 echo "${ECHO_T}$ac_header_preproc" >&6
18547
18548 # So?  What about this header?
18549 case $ac_header_compiler:$ac_header_preproc in
18550   yes:no )
18551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18555   no:yes )
18556     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18558     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18562 esac
18563 echo "$as_me:$LINENO: checking for $ac_header" >&5
18564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18566   echo $ECHO_N "(cached) $ECHO_C" >&6
18567 else
18568   eval "$as_ac_Header=$ac_header_preproc"
18569 fi
18570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18571 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18572
18573 fi
18574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18575   cat >>confdefs.h <<_ACEOF
18576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18577 _ACEOF
18578
18579 fi
18580
18581 done
18582
18583
18584
18585
18586
18587
18588 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
18589 do
18590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18592   echo "$as_me:$LINENO: checking for $ac_header" >&5
18593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18595   echo $ECHO_N "(cached) $ECHO_C" >&6
18596 fi
18597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18599 else
18600   # Is the header compilable?
18601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18603 cat >conftest.$ac_ext <<_ACEOF
18604 #line $LINENO "configure"
18605 #include "confdefs.h"
18606 $ac_includes_default
18607 #include <$ac_header>
18608 _ACEOF
18609 rm -f conftest.$ac_objext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18611   (eval $ac_compile) 2>&5
18612   ac_status=$?
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); } &&
18615          { ac_try='test -s conftest.$ac_objext'
18616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18617   (eval $ac_try) 2>&5
18618   ac_status=$?
18619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620   (exit $ac_status); }; }; then
18621   ac_header_compiler=yes
18622 else
18623   echo "$as_me: failed program was:" >&5
18624 cat conftest.$ac_ext >&5
18625 ac_header_compiler=no
18626 fi
18627 rm -f conftest.$ac_objext conftest.$ac_ext
18628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18629 echo "${ECHO_T}$ac_header_compiler" >&6
18630
18631 # Is the header present?
18632 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18634 cat >conftest.$ac_ext <<_ACEOF
18635 #line $LINENO "configure"
18636 #include "confdefs.h"
18637 #include <$ac_header>
18638 _ACEOF
18639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18640   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18641   ac_status=$?
18642   egrep -v '^ *\+' conftest.er1 >conftest.err
18643   rm -f conftest.er1
18644   cat conftest.err >&5
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); } >/dev/null; then
18647   if test -s conftest.err; then
18648     ac_cpp_err=$ac_c_preproc_warn_flag
18649   else
18650     ac_cpp_err=
18651   fi
18652 else
18653   ac_cpp_err=yes
18654 fi
18655 if test -z "$ac_cpp_err"; then
18656   ac_header_preproc=yes
18657 else
18658   echo "$as_me: failed program was:" >&5
18659   cat conftest.$ac_ext >&5
18660   ac_header_preproc=no
18661 fi
18662 rm -f conftest.err conftest.$ac_ext
18663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18664 echo "${ECHO_T}$ac_header_preproc" >&6
18665
18666 # So?  What about this header?
18667 case $ac_header_compiler:$ac_header_preproc in
18668   yes:no )
18669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18673   no:yes )
18674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18676     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18678     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18680 esac
18681 echo "$as_me:$LINENO: checking for $ac_header" >&5
18682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18684   echo $ECHO_N "(cached) $ECHO_C" >&6
18685 else
18686   eval "$as_ac_Header=$ac_header_preproc"
18687 fi
18688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18690
18691 fi
18692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18693   cat >>confdefs.h <<_ACEOF
18694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18695 _ACEOF
18696
18697 fi
18698
18699 done
18700
18701
18702
18703
18704 for ac_header in dlfcn.h link.h
18705 do
18706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18708   echo "$as_me:$LINENO: checking for $ac_header" >&5
18709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18711   echo $ECHO_N "(cached) $ECHO_C" >&6
18712 fi
18713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18715 else
18716   # Is the header compilable?
18717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18719 cat >conftest.$ac_ext <<_ACEOF
18720 #line $LINENO "configure"
18721 #include "confdefs.h"
18722 $ac_includes_default
18723 #include <$ac_header>
18724 _ACEOF
18725 rm -f conftest.$ac_objext
18726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18727   (eval $ac_compile) 2>&5
18728   ac_status=$?
18729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730   (exit $ac_status); } &&
18731          { ac_try='test -s conftest.$ac_objext'
18732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733   (eval $ac_try) 2>&5
18734   ac_status=$?
18735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736   (exit $ac_status); }; }; then
18737   ac_header_compiler=yes
18738 else
18739   echo "$as_me: failed program was:" >&5
18740 cat conftest.$ac_ext >&5
18741 ac_header_compiler=no
18742 fi
18743 rm -f conftest.$ac_objext conftest.$ac_ext
18744 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18745 echo "${ECHO_T}$ac_header_compiler" >&6
18746
18747 # Is the header present?
18748 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18750 cat >conftest.$ac_ext <<_ACEOF
18751 #line $LINENO "configure"
18752 #include "confdefs.h"
18753 #include <$ac_header>
18754 _ACEOF
18755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18756   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18757   ac_status=$?
18758   egrep -v '^ *\+' conftest.er1 >conftest.err
18759   rm -f conftest.er1
18760   cat conftest.err >&5
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); } >/dev/null; then
18763   if test -s conftest.err; then
18764     ac_cpp_err=$ac_c_preproc_warn_flag
18765   else
18766     ac_cpp_err=
18767   fi
18768 else
18769   ac_cpp_err=yes
18770 fi
18771 if test -z "$ac_cpp_err"; then
18772   ac_header_preproc=yes
18773 else
18774   echo "$as_me: failed program was:" >&5
18775   cat conftest.$ac_ext >&5
18776   ac_header_preproc=no
18777 fi
18778 rm -f conftest.err conftest.$ac_ext
18779 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18780 echo "${ECHO_T}$ac_header_preproc" >&6
18781
18782 # So?  What about this header?
18783 case $ac_header_compiler:$ac_header_preproc in
18784   yes:no )
18785     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18789   no:yes )
18790     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18792     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18793 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
18796 esac
18797 echo "$as_me:$LINENO: checking for $ac_header" >&5
18798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18800   echo $ECHO_N "(cached) $ECHO_C" >&6
18801 else
18802   eval "$as_ac_Header=$ac_header_preproc"
18803 fi
18804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18806
18807 fi
18808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18809   cat >>confdefs.h <<_ACEOF
18810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18811 _ACEOF
18812
18813 fi
18814
18815 done
18816
18817
18818
18819 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
18820 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
18821 if test "${ac_cv_prog_cc_stdc+set}" = set; then
18822   echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824   ac_cv_prog_cc_stdc=no
18825 ac_save_CC=$CC
18826 cat >conftest.$ac_ext <<_ACEOF
18827 #line $LINENO "configure"
18828 #include "confdefs.h"
18829 #include <stdarg.h>
18830 #include <stdio.h>
18831 #include <sys/types.h>
18832 #include <sys/stat.h>
18833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
18834 struct buf { int x; };
18835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18836 static char *e (p, i)
18837      char **p;
18838      int i;
18839 {
18840   return p[i];
18841 }
18842 static char *f (char * (*g) (char **, int), char **p, ...)
18843 {
18844   char *s;
18845   va_list v;
18846   va_start (v,p);
18847   s = g (p, va_arg (v,int));
18848   va_end (v);
18849   return s;
18850 }
18851 int test (int i, double x);
18852 struct s1 {int (*f) (int a);};
18853 struct s2 {int (*f) (double a);};
18854 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18855 int argc;
18856 char **argv;
18857 #ifdef F77_DUMMY_MAIN
18858 #  ifdef __cplusplus
18859      extern "C"
18860 #  endif
18861    int F77_DUMMY_MAIN() { return 1; }
18862 #endif
18863 int
18864 main ()
18865 {
18866 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
18867   ;
18868   return 0;
18869 }
18870 _ACEOF
18871 # Don't try gcc -ansi; that turns off useful extensions and
18872 # breaks some systems' header files.
18873 # AIX                   -qlanglvl=ansi
18874 # Ultrix and OSF/1      -std1
18875 # HP-UX 10.20 and later -Ae
18876 # HP-UX older versions  -Aa -D_HPUX_SOURCE
18877 # SVR4                  -Xc -D__EXTENSIONS__
18878 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18879 do
18880   CC="$ac_save_CC $ac_arg"
18881   rm -f conftest.$ac_objext
18882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18883   (eval $ac_compile) 2>&5
18884   ac_status=$?
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); } &&
18887          { ac_try='test -s conftest.$ac_objext'
18888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889   (eval $ac_try) 2>&5
18890   ac_status=$?
18891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892   (exit $ac_status); }; }; then
18893   ac_cv_prog_cc_stdc=$ac_arg
18894 break
18895 else
18896   echo "$as_me: failed program was:" >&5
18897 cat conftest.$ac_ext >&5
18898 fi
18899 rm -f conftest.$ac_objext
18900 done
18901 rm -f conftest.$ac_ext conftest.$ac_objext
18902 CC=$ac_save_CC
18903
18904 fi
18905
18906 case "x$ac_cv_prog_cc_stdc" in
18907   x|xno)
18908     echo "$as_me:$LINENO: result: none needed" >&5
18909 echo "${ECHO_T}none needed" >&6 ;;
18910   *)
18911     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
18912 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
18913     CC="$CC $ac_cv_prog_cc_stdc" ;;
18914 esac
18915
18916 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18917 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
18918 if test "${ac_cv_c_const+set}" = set; then
18919   echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921   cat >conftest.$ac_ext <<_ACEOF
18922 #line $LINENO "configure"
18923 #include "confdefs.h"
18924
18925 #ifdef F77_DUMMY_MAIN
18926 #  ifdef __cplusplus
18927      extern "C"
18928 #  endif
18929    int F77_DUMMY_MAIN() { return 1; }
18930 #endif
18931 int
18932 main ()
18933 {
18934 /* FIXME: Include the comments suggested by Paul. */
18935 #ifndef __cplusplus
18936   /* Ultrix mips cc rejects this.  */
18937   typedef int charset[2];
18938   const charset x;
18939   /* SunOS 4.1.1 cc rejects this.  */
18940   char const *const *ccp;
18941   char **p;
18942   /* NEC SVR4.0.2 mips cc rejects this.  */
18943   struct point {int x, y;};
18944   static struct point const zero = {0,0};
18945   /* AIX XL C 1.02.0.0 rejects this.
18946      It does not let you subtract one const X* pointer from another in
18947      an arm of an if-expression whose if-part is not a constant
18948      expression */
18949   const char *g = "string";
18950   ccp = &g + (g ? g-g : 0);
18951   /* HPUX 7.0 cc rejects these. */
18952   ++ccp;
18953   p = (char**) ccp;
18954   ccp = (char const *const *) p;
18955   { /* SCO 3.2v4 cc rejects this.  */
18956     char *t;
18957     char const *s = 0 ? (char *) 0 : (char const *) 0;
18958
18959     *t++ = 0;
18960   }
18961   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18962     int x[] = {25, 17};
18963     const int *foo = &x[0];
18964     ++foo;
18965   }
18966   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18967     typedef const int *iptr;
18968     iptr p = 0;
18969     ++p;
18970   }
18971   { /* AIX XL C 1.02.0.0 rejects this saying
18972        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18973     struct s { int j; const int *ap[3]; };
18974     struct s *b; b->j = 5;
18975   }
18976   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18977     const int foo = 10;
18978   }
18979 #endif
18980
18981   ;
18982   return 0;
18983 }
18984 _ACEOF
18985 rm -f conftest.$ac_objext
18986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18987   (eval $ac_compile) 2>&5
18988   ac_status=$?
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); } &&
18991          { ac_try='test -s conftest.$ac_objext'
18992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993   (eval $ac_try) 2>&5
18994   ac_status=$?
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); }; }; then
18997   ac_cv_c_const=yes
18998 else
18999   echo "$as_me: failed program was:" >&5
19000 cat conftest.$ac_ext >&5
19001 ac_cv_c_const=no
19002 fi
19003 rm -f conftest.$ac_objext conftest.$ac_ext
19004 fi
19005 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19006 echo "${ECHO_T}$ac_cv_c_const" >&6
19007 if test $ac_cv_c_const = no; then
19008
19009 cat >>confdefs.h <<\_ACEOF
19010 #define const
19011 _ACEOF
19012
19013 fi
19014
19015 echo "$as_me:$LINENO: checking for inline" >&5
19016 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19017 if test "${ac_cv_c_inline+set}" = set; then
19018   echo $ECHO_N "(cached) $ECHO_C" >&6
19019 else
19020   ac_cv_c_inline=no
19021 for ac_kw in inline __inline__ __inline; do
19022   cat >conftest.$ac_ext <<_ACEOF
19023 #line $LINENO "configure"
19024 #include "confdefs.h"
19025 #ifndef __cplusplus
19026 static $ac_kw int static_foo () {return 0; }
19027 $ac_kw int foo () {return 0; }
19028 #endif
19029
19030 _ACEOF
19031 rm -f conftest.$ac_objext
19032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19033   (eval $ac_compile) 2>&5
19034   ac_status=$?
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); } &&
19037          { ac_try='test -s conftest.$ac_objext'
19038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19039   (eval $ac_try) 2>&5
19040   ac_status=$?
19041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042   (exit $ac_status); }; }; then
19043   ac_cv_c_inline=$ac_kw; break
19044 else
19045   echo "$as_me: failed program was:" >&5
19046 cat conftest.$ac_ext >&5
19047 fi
19048 rm -f conftest.$ac_objext conftest.$ac_ext
19049 done
19050
19051 fi
19052 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19053 echo "${ECHO_T}$ac_cv_c_inline" >&6
19054 case $ac_cv_c_inline in
19055   inline | yes) ;;
19056   no)
19057 cat >>confdefs.h <<\_ACEOF
19058 #define inline
19059 _ACEOF
19060  ;;
19061   *)  cat >>confdefs.h <<_ACEOF
19062 #define inline $ac_cv_c_inline
19063 _ACEOF
19064  ;;
19065 esac
19066
19067
19068 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19069 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19070 if test "${ac_cv_c_bigendian+set}" = set; then
19071   echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073   # See if sys/param.h defines the BYTE_ORDER macro.
19074 cat >conftest.$ac_ext <<_ACEOF
19075 #line $LINENO "configure"
19076 #include "confdefs.h"
19077 #include <sys/types.h>
19078 #include <sys/param.h>
19079
19080 #ifdef F77_DUMMY_MAIN
19081 #  ifdef __cplusplus
19082      extern "C"
19083 #  endif
19084    int F77_DUMMY_MAIN() { return 1; }
19085 #endif
19086 int
19087 main ()
19088 {
19089 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19090  bogus endian macros
19091 #endif
19092
19093   ;
19094   return 0;
19095 }
19096 _ACEOF
19097 rm -f conftest.$ac_objext
19098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19099   (eval $ac_compile) 2>&5
19100   ac_status=$?
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); } &&
19103          { ac_try='test -s conftest.$ac_objext'
19104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19105   (eval $ac_try) 2>&5
19106   ac_status=$?
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); }; }; then
19109   # It does; now see whether it defined to BIG_ENDIAN or not.
19110 cat >conftest.$ac_ext <<_ACEOF
19111 #line $LINENO "configure"
19112 #include "confdefs.h"
19113 #include <sys/types.h>
19114 #include <sys/param.h>
19115
19116 #ifdef F77_DUMMY_MAIN
19117 #  ifdef __cplusplus
19118      extern "C"
19119 #  endif
19120    int F77_DUMMY_MAIN() { return 1; }
19121 #endif
19122 int
19123 main ()
19124 {
19125 #if BYTE_ORDER != BIG_ENDIAN
19126  not big endian
19127 #endif
19128
19129   ;
19130   return 0;
19131 }
19132 _ACEOF
19133 rm -f conftest.$ac_objext
19134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19135   (eval $ac_compile) 2>&5
19136   ac_status=$?
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); } &&
19139          { ac_try='test -s conftest.$ac_objext'
19140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19141   (eval $ac_try) 2>&5
19142   ac_status=$?
19143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144   (exit $ac_status); }; }; then
19145   ac_cv_c_bigendian=yes
19146 else
19147   echo "$as_me: failed program was:" >&5
19148 cat conftest.$ac_ext >&5
19149 ac_cv_c_bigendian=no
19150 fi
19151 rm -f conftest.$ac_objext conftest.$ac_ext
19152 else
19153   echo "$as_me: failed program was:" >&5
19154 cat conftest.$ac_ext >&5
19155 # It does not; compile a test program.
19156 if test "$cross_compiling" = yes; then
19157   # try to guess the endianess by grep'ing values into an object file
19158   ac_cv_c_bigendian=unknown
19159   cat >conftest.$ac_ext <<_ACEOF
19160 #line $LINENO "configure"
19161 #include "confdefs.h"
19162 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19163 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19164 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19165 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19166 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19167 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19168 #ifdef F77_DUMMY_MAIN
19169 #  ifdef __cplusplus
19170      extern "C"
19171 #  endif
19172    int F77_DUMMY_MAIN() { return 1; }
19173 #endif
19174 int
19175 main ()
19176 {
19177  _ascii (); _ebcdic ();
19178   ;
19179   return 0;
19180 }
19181 _ACEOF
19182 rm -f conftest.$ac_objext
19183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19184   (eval $ac_compile) 2>&5
19185   ac_status=$?
19186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187   (exit $ac_status); } &&
19188          { ac_try='test -s conftest.$ac_objext'
19189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190   (eval $ac_try) 2>&5
19191   ac_status=$?
19192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193   (exit $ac_status); }; }; then
19194   if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19195   ac_cv_c_bigendian=yes
19196 fi
19197 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19198   if test "$ac_cv_c_bigendian" = unknown; then
19199     ac_cv_c_bigendian=no
19200   else
19201     # finding both strings is unlikely to happen, but who knows?
19202     ac_cv_c_bigendian=unknown
19203   fi
19204 fi
19205 else
19206   echo "$as_me: failed program was:" >&5
19207 cat conftest.$ac_ext >&5
19208 fi
19209 rm -f conftest.$ac_objext conftest.$ac_ext
19210 else
19211   cat >conftest.$ac_ext <<_ACEOF
19212 #line $LINENO "configure"
19213 #include "confdefs.h"
19214 int
19215 main ()
19216 {
19217   /* Are we little or big endian?  From Harbison&Steele.  */
19218   union
19219   {
19220     long l;
19221     char c[sizeof (long)];
19222   } u;
19223   u.l = 1;
19224   exit (u.c[sizeof (long) - 1] == 1);
19225 }
19226 _ACEOF
19227 rm -f conftest$ac_exeext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19229   (eval $ac_link) 2>&5
19230   ac_status=$?
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234   (eval $ac_try) 2>&5
19235   ac_status=$?
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); }; }; then
19238   ac_cv_c_bigendian=no
19239 else
19240   echo "$as_me: program exited with status $ac_status" >&5
19241 echo "$as_me: failed program was:" >&5
19242 cat conftest.$ac_ext >&5
19243 ( exit $ac_status )
19244 ac_cv_c_bigendian=yes
19245 fi
19246 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19247 fi
19248 fi
19249 rm -f conftest.$ac_objext conftest.$ac_ext
19250 fi
19251 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19252 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19253 case $ac_cv_c_bigendian in
19254   yes)
19255     cat >>confdefs.h <<\_ACEOF
19256 #define ENDIAN_BIG 1
19257 _ACEOF
19258  ;;
19259   no)
19260     cat >>confdefs.h <<\_ACEOF
19261 #define ENDIAN_LITTLE 1
19262 _ACEOF
19263  ;;
19264   *)
19265     { { echo "$as_me:$LINENO: error: unknown endianess
19266 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19267 echo "$as_me: error: unknown endianess
19268 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19269    { (exit 1); exit 1; }; } ;;
19270 esac
19271
19272
19273 echo "$as_me:$LINENO: checking for pid_t" >&5
19274 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19275 if test "${ac_cv_type_pid_t+set}" = set; then
19276   echo $ECHO_N "(cached) $ECHO_C" >&6
19277 else
19278   cat >conftest.$ac_ext <<_ACEOF
19279 #line $LINENO "configure"
19280 #include "confdefs.h"
19281 $ac_includes_default
19282 #ifdef F77_DUMMY_MAIN
19283 #  ifdef __cplusplus
19284      extern "C"
19285 #  endif
19286    int F77_DUMMY_MAIN() { return 1; }
19287 #endif
19288 int
19289 main ()
19290 {
19291 if ((pid_t *) 0)
19292   return 0;
19293 if (sizeof (pid_t))
19294   return 0;
19295   ;
19296   return 0;
19297 }
19298 _ACEOF
19299 rm -f conftest.$ac_objext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19301   (eval $ac_compile) 2>&5
19302   ac_status=$?
19303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304   (exit $ac_status); } &&
19305          { ac_try='test -s conftest.$ac_objext'
19306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307   (eval $ac_try) 2>&5
19308   ac_status=$?
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); }; }; then
19311   ac_cv_type_pid_t=yes
19312 else
19313   echo "$as_me: failed program was:" >&5
19314 cat conftest.$ac_ext >&5
19315 ac_cv_type_pid_t=no
19316 fi
19317 rm -f conftest.$ac_objext conftest.$ac_ext
19318 fi
19319 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19320 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19321 if test $ac_cv_type_pid_t = yes; then
19322   :
19323 else
19324
19325 cat >>confdefs.h <<_ACEOF
19326 #define pid_t int
19327 _ACEOF
19328
19329 fi
19330
19331 echo "$as_me:$LINENO: checking for size_t" >&5
19332 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19333 if test "${ac_cv_type_size_t+set}" = set; then
19334   echo $ECHO_N "(cached) $ECHO_C" >&6
19335 else
19336   cat >conftest.$ac_ext <<_ACEOF
19337 #line $LINENO "configure"
19338 #include "confdefs.h"
19339 $ac_includes_default
19340 #ifdef F77_DUMMY_MAIN
19341 #  ifdef __cplusplus
19342      extern "C"
19343 #  endif
19344    int F77_DUMMY_MAIN() { return 1; }
19345 #endif
19346 int
19347 main ()
19348 {
19349 if ((size_t *) 0)
19350   return 0;
19351 if (sizeof (size_t))
19352   return 0;
19353   ;
19354   return 0;
19355 }
19356 _ACEOF
19357 rm -f conftest.$ac_objext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19359   (eval $ac_compile) 2>&5
19360   ac_status=$?
19361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362   (exit $ac_status); } &&
19363          { ac_try='test -s conftest.$ac_objext'
19364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365   (eval $ac_try) 2>&5
19366   ac_status=$?
19367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368   (exit $ac_status); }; }; then
19369   ac_cv_type_size_t=yes
19370 else
19371   echo "$as_me: failed program was:" >&5
19372 cat conftest.$ac_ext >&5
19373 ac_cv_type_size_t=no
19374 fi
19375 rm -f conftest.$ac_objext conftest.$ac_ext
19376 fi
19377 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19378 echo "${ECHO_T}$ac_cv_type_size_t" >&6
19379 if test $ac_cv_type_size_t = yes; then
19380   :
19381 else
19382
19383 cat >>confdefs.h <<_ACEOF
19384 #define size_t unsigned
19385 _ACEOF
19386
19387 fi
19388
19389 echo "$as_me:$LINENO: checking for int64_t" >&5
19390 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19391 if test "${ac_cv_type_int64_t+set}" = set; then
19392   echo $ECHO_N "(cached) $ECHO_C" >&6
19393 else
19394   cat >conftest.$ac_ext <<_ACEOF
19395 #line $LINENO "configure"
19396 #include "confdefs.h"
19397 $ac_includes_default
19398 #ifdef F77_DUMMY_MAIN
19399 #  ifdef __cplusplus
19400      extern "C"
19401 #  endif
19402    int F77_DUMMY_MAIN() { return 1; }
19403 #endif
19404 int
19405 main ()
19406 {
19407 if ((int64_t *) 0)
19408   return 0;
19409 if (sizeof (int64_t))
19410   return 0;
19411   ;
19412   return 0;
19413 }
19414 _ACEOF
19415 rm -f conftest.$ac_objext
19416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19417   (eval $ac_compile) 2>&5
19418   ac_status=$?
19419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420   (exit $ac_status); } &&
19421          { ac_try='test -s conftest.$ac_objext'
19422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423   (eval $ac_try) 2>&5
19424   ac_status=$?
19425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426   (exit $ac_status); }; }; then
19427   ac_cv_type_int64_t=yes
19428 else
19429   echo "$as_me: failed program was:" >&5
19430 cat conftest.$ac_ext >&5
19431 ac_cv_type_int64_t=no
19432 fi
19433 rm -f conftest.$ac_objext conftest.$ac_ext
19434 fi
19435 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19436 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19437 if test $ac_cv_type_int64_t = yes; then
19438
19439 cat >>confdefs.h <<_ACEOF
19440 #define HAVE_INT64_T 1
19441 _ACEOF
19442
19443
19444 else
19445   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19446 echo "$as_me: error: Type int64_t required but not found" >&2;}
19447    { (exit 1); exit 1; }; }
19448 fi
19449
19450 echo "$as_me:$LINENO: checking for uint64_t" >&5
19451 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19452 if test "${ac_cv_type_uint64_t+set}" = set; then
19453   echo $ECHO_N "(cached) $ECHO_C" >&6
19454 else
19455   cat >conftest.$ac_ext <<_ACEOF
19456 #line $LINENO "configure"
19457 #include "confdefs.h"
19458 $ac_includes_default
19459 #ifdef F77_DUMMY_MAIN
19460 #  ifdef __cplusplus
19461      extern "C"
19462 #  endif
19463    int F77_DUMMY_MAIN() { return 1; }
19464 #endif
19465 int
19466 main ()
19467 {
19468 if ((uint64_t *) 0)
19469   return 0;
19470 if (sizeof (uint64_t))
19471   return 0;
19472   ;
19473   return 0;
19474 }
19475 _ACEOF
19476 rm -f conftest.$ac_objext
19477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19478   (eval $ac_compile) 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); } &&
19482          { ac_try='test -s conftest.$ac_objext'
19483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484   (eval $ac_try) 2>&5
19485   ac_status=$?
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); }; }; then
19488   ac_cv_type_uint64_t=yes
19489 else
19490   echo "$as_me: failed program was:" >&5
19491 cat conftest.$ac_ext >&5
19492 ac_cv_type_uint64_t=no
19493 fi
19494 rm -f conftest.$ac_objext conftest.$ac_ext
19495 fi
19496 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19497 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19498 if test $ac_cv_type_uint64_t = yes; then
19499
19500 cat >>confdefs.h <<_ACEOF
19501 #define HAVE_UINT64_T 1
19502 _ACEOF
19503
19504
19505 else
19506   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
19507 echo "$as_me: error: Type uint64_t required but not found" >&2;}
19508    { (exit 1); exit 1; }; }
19509 fi
19510
19511 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19512 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19513 if test "${ac_cv_header_time+set}" = set; then
19514   echo $ECHO_N "(cached) $ECHO_C" >&6
19515 else
19516   cat >conftest.$ac_ext <<_ACEOF
19517 #line $LINENO "configure"
19518 #include "confdefs.h"
19519 #include <sys/types.h>
19520 #include <sys/time.h>
19521 #include <time.h>
19522
19523 #ifdef F77_DUMMY_MAIN
19524 #  ifdef __cplusplus
19525      extern "C"
19526 #  endif
19527    int F77_DUMMY_MAIN() { return 1; }
19528 #endif
19529 int
19530 main ()
19531 {
19532 if ((struct tm *) 0)
19533 return 0;
19534   ;
19535   return 0;
19536 }
19537 _ACEOF
19538 rm -f conftest.$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540   (eval $ac_compile) 2>&5
19541   ac_status=$?
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); } &&
19544          { ac_try='test -s conftest.$ac_objext'
19545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546   (eval $ac_try) 2>&5
19547   ac_status=$?
19548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549   (exit $ac_status); }; }; then
19550   ac_cv_header_time=yes
19551 else
19552   echo "$as_me: failed program was:" >&5
19553 cat conftest.$ac_ext >&5
19554 ac_cv_header_time=no
19555 fi
19556 rm -f conftest.$ac_objext conftest.$ac_ext
19557 fi
19558 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19559 echo "${ECHO_T}$ac_cv_header_time" >&6
19560 if test $ac_cv_header_time = yes; then
19561
19562 cat >>confdefs.h <<\_ACEOF
19563 #define TIME_WITH_SYS_TIME 1
19564 _ACEOF
19565
19566 fi
19567
19568 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19569 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19570 if test "${ac_cv_struct_tm+set}" = set; then
19571   echo $ECHO_N "(cached) $ECHO_C" >&6
19572 else
19573   cat >conftest.$ac_ext <<_ACEOF
19574 #line $LINENO "configure"
19575 #include "confdefs.h"
19576 #include <sys/types.h>
19577 #include <time.h>
19578
19579 #ifdef F77_DUMMY_MAIN
19580 #  ifdef __cplusplus
19581      extern "C"
19582 #  endif
19583    int F77_DUMMY_MAIN() { return 1; }
19584 #endif
19585 int
19586 main ()
19587 {
19588 struct tm *tp; tp->tm_sec;
19589   ;
19590   return 0;
19591 }
19592 _ACEOF
19593 rm -f conftest.$ac_objext
19594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19595   (eval $ac_compile) 2>&5
19596   ac_status=$?
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); } &&
19599          { ac_try='test -s conftest.$ac_objext'
19600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19601   (eval $ac_try) 2>&5
19602   ac_status=$?
19603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604   (exit $ac_status); }; }; then
19605   ac_cv_struct_tm=time.h
19606 else
19607   echo "$as_me: failed program was:" >&5
19608 cat conftest.$ac_ext >&5
19609 ac_cv_struct_tm=sys/time.h
19610 fi
19611 rm -f conftest.$ac_objext conftest.$ac_ext
19612 fi
19613 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19614 echo "${ECHO_T}$ac_cv_struct_tm" >&6
19615 if test $ac_cv_struct_tm = sys/time.h; then
19616
19617 cat >>confdefs.h <<\_ACEOF
19618 #define TM_IN_SYS_TIME 1
19619 _ACEOF
19620
19621 fi
19622
19623
19624 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
19625 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
19626 if test "${ac_cv_cxx_namespaces+set}" = set; then
19627   echo $ECHO_N "(cached) $ECHO_C" >&6
19628 else
19629
19630
19631  ac_ext=cc
19632 ac_cpp='$CXXCPP $CPPFLAGS'
19633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19636
19637  cat >conftest.$ac_ext <<_ACEOF
19638 #line $LINENO "configure"
19639 #include "confdefs.h"
19640 namespace Outer { namespace Inner { int i = 0; }}
19641 #ifdef F77_DUMMY_MAIN
19642 #  ifdef __cplusplus
19643      extern "C"
19644 #  endif
19645    int F77_DUMMY_MAIN() { return 1; }
19646 #endif
19647 int
19648 main ()
19649 {
19650 using namespace Outer::Inner; return i;
19651   ;
19652   return 0;
19653 }
19654 _ACEOF
19655 rm -f conftest.$ac_objext
19656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19657   (eval $ac_compile) 2>&5
19658   ac_status=$?
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); } &&
19661          { ac_try='test -s conftest.$ac_objext'
19662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663   (eval $ac_try) 2>&5
19664   ac_status=$?
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); }; }; then
19667   ac_cv_cxx_namespaces=yes
19668 else
19669   echo "$as_me: failed program was:" >&5
19670 cat conftest.$ac_ext >&5
19671 ac_cv_cxx_namespaces=no
19672 fi
19673 rm -f conftest.$ac_objext conftest.$ac_ext
19674  ac_ext=c
19675 ac_cpp='$CPP $CPPFLAGS'
19676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19679
19680
19681 fi
19682 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
19683 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
19684 if test "$ac_cv_cxx_namespaces" = yes; then
19685
19686 cat >>confdefs.h <<\_ACEOF
19687 #define HAVE_NAMESPACES
19688 _ACEOF
19689
19690 fi
19691
19692 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
19693 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
19694 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
19695   echo $ECHO_N "(cached) $ECHO_C" >&6
19696 else
19697
19698
19699
19700   ac_ext=cc
19701 ac_cpp='$CXXCPP $CPPFLAGS'
19702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19705
19706   cat >conftest.$ac_ext <<_ACEOF
19707 #line $LINENO "configure"
19708 #include "confdefs.h"
19709 #include <ext/hash_map>
19710 #ifdef HAVE_NAMESPACES
19711 using namespace std;
19712 #endif
19713 #ifdef F77_DUMMY_MAIN
19714 #  ifdef __cplusplus
19715      extern "C"
19716 #  endif
19717    int F77_DUMMY_MAIN() { return 1; }
19718 #endif
19719 int
19720 main ()
19721 {
19722 hash_map<int, int> t; return 0;
19723   ;
19724   return 0;
19725 }
19726 _ACEOF
19727 rm -f conftest.$ac_objext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19729   (eval $ac_compile) 2>&5
19730   ac_status=$?
19731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732   (exit $ac_status); } &&
19733          { ac_try='test -s conftest.$ac_objext'
19734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735   (eval $ac_try) 2>&5
19736   ac_status=$?
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); }; }; then
19739   ac_cv_cxx_have_ext_hash_map=std
19740 else
19741   echo "$as_me: failed program was:" >&5
19742 cat conftest.$ac_ext >&5
19743 ac_cv_cxx_have_ext_hash_map=no
19744 fi
19745 rm -f conftest.$ac_objext conftest.$ac_ext
19746   cat >conftest.$ac_ext <<_ACEOF
19747 #line $LINENO "configure"
19748 #include "confdefs.h"
19749 #include <ext/hash_map>
19750 #ifdef HAVE_NAMESPACES
19751 using namespace __gnu_cxx;
19752 #endif
19753 #ifdef F77_DUMMY_MAIN
19754 #  ifdef __cplusplus
19755      extern "C"
19756 #  endif
19757    int F77_DUMMY_MAIN() { return 1; }
19758 #endif
19759 int
19760 main ()
19761 {
19762 hash_map<int, int> t; return 0;
19763   ;
19764   return 0;
19765 }
19766 _ACEOF
19767 rm -f conftest.$ac_objext
19768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19769   (eval $ac_compile) 2>&5
19770   ac_status=$?
19771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772   (exit $ac_status); } &&
19773          { ac_try='test -s conftest.$ac_objext'
19774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775   (eval $ac_try) 2>&5
19776   ac_status=$?
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); }; }; then
19779   ac_cv_cxx_have_ext_hash_map=gnu
19780 else
19781   echo "$as_me: failed program was:" >&5
19782 cat conftest.$ac_ext >&5
19783 ac_cv_cxx_have_ext_hash_map=no
19784 fi
19785 rm -f conftest.$ac_objext conftest.$ac_ext
19786   ac_ext=c
19787 ac_cpp='$CPP $CPPFLAGS'
19788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19791
19792
19793 fi
19794 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
19795 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
19796 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
19797
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE_STD_EXT_HASH_MAP
19800 _ACEOF
19801
19802 fi
19803 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
19804
19805 cat >>confdefs.h <<\_ACEOF
19806 #define HAVE_GNU_EXT_HASH_MAP
19807 _ACEOF
19808
19809 fi
19810
19811 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
19812 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
19813 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
19814   echo $ECHO_N "(cached) $ECHO_C" >&6
19815 else
19816
19817
19818
19819   ac_ext=cc
19820 ac_cpp='$CXXCPP $CPPFLAGS'
19821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19824
19825   cat >conftest.$ac_ext <<_ACEOF
19826 #line $LINENO "configure"
19827 #include "confdefs.h"
19828 #include <ext/hash_set>
19829 #ifdef HAVE_NAMESPACES
19830 using namespace std;
19831 #endif
19832 #ifdef F77_DUMMY_MAIN
19833 #  ifdef __cplusplus
19834      extern "C"
19835 #  endif
19836    int F77_DUMMY_MAIN() { return 1; }
19837 #endif
19838 int
19839 main ()
19840 {
19841 hash_set<int> t; return 0;
19842   ;
19843   return 0;
19844 }
19845 _ACEOF
19846 rm -f conftest.$ac_objext
19847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19848   (eval $ac_compile) 2>&5
19849   ac_status=$?
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); } &&
19852          { ac_try='test -s conftest.$ac_objext'
19853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854   (eval $ac_try) 2>&5
19855   ac_status=$?
19856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857   (exit $ac_status); }; }; then
19858   ac_cv_cxx_have_ext_hash_set=std
19859 else
19860   echo "$as_me: failed program was:" >&5
19861 cat conftest.$ac_ext >&5
19862 ac_cv_cxx_have_ext_hash_set=no
19863 fi
19864 rm -f conftest.$ac_objext conftest.$ac_ext
19865   cat >conftest.$ac_ext <<_ACEOF
19866 #line $LINENO "configure"
19867 #include "confdefs.h"
19868 #include <ext/hash_set>
19869 #ifdef HAVE_NAMESPACES
19870 using namespace __gnu_cxx;
19871 #endif
19872 #ifdef F77_DUMMY_MAIN
19873 #  ifdef __cplusplus
19874      extern "C"
19875 #  endif
19876    int F77_DUMMY_MAIN() { return 1; }
19877 #endif
19878 int
19879 main ()
19880 {
19881 hash_set<int> t; return 0;
19882   ;
19883   return 0;
19884 }
19885 _ACEOF
19886 rm -f conftest.$ac_objext
19887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19888   (eval $ac_compile) 2>&5
19889   ac_status=$?
19890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891   (exit $ac_status); } &&
19892          { ac_try='test -s conftest.$ac_objext'
19893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19894   (eval $ac_try) 2>&5
19895   ac_status=$?
19896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897   (exit $ac_status); }; }; then
19898   ac_cv_cxx_have_ext_hash_set=gnu
19899 else
19900   echo "$as_me: failed program was:" >&5
19901 cat conftest.$ac_ext >&5
19902 ac_cv_cxx_have_ext_hash_set=no
19903 fi
19904 rm -f conftest.$ac_objext conftest.$ac_ext
19905   ac_ext=c
19906 ac_cpp='$CPP $CPPFLAGS'
19907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19910
19911
19912 fi
19913 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
19914 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
19915 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
19916
19917 cat >>confdefs.h <<\_ACEOF
19918 #define HAVE_STD_EXT_HASH_SET
19919 _ACEOF
19920
19921 fi
19922 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
19923
19924 cat >>confdefs.h <<\_ACEOF
19925 #define HAVE_GNU_EXT_HASH_SET
19926 _ACEOF
19927
19928 fi
19929
19930 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
19931 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
19932 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
19933   echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935
19936
19937
19938   ac_ext=cc
19939 ac_cpp='$CXXCPP $CPPFLAGS'
19940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19943
19944   cat >conftest.$ac_ext <<_ACEOF
19945 #line $LINENO "configure"
19946 #include "confdefs.h"
19947 #include <ext/slist>
19948 #ifdef HAVE_NAMESPACES
19949 using namespace std;
19950 #endif
19951 #ifdef F77_DUMMY_MAIN
19952 #  ifdef __cplusplus
19953      extern "C"
19954 #  endif
19955    int F77_DUMMY_MAIN() { return 1; }
19956 #endif
19957 int
19958 main ()
19959 {
19960 slist<int> s; return 0;
19961   ;
19962   return 0;
19963 }
19964 _ACEOF
19965 rm -f conftest.$ac_objext
19966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19967   (eval $ac_compile) 2>&5
19968   ac_status=$?
19969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970   (exit $ac_status); } &&
19971          { ac_try='test -s conftest.$ac_objext'
19972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973   (eval $ac_try) 2>&5
19974   ac_status=$?
19975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976   (exit $ac_status); }; }; then
19977   ac_cv_cxx_have_ext_slist=std
19978 else
19979   echo "$as_me: failed program was:" >&5
19980 cat conftest.$ac_ext >&5
19981 ac_cv_cxx_have_ext_slist=no
19982 fi
19983 rm -f conftest.$ac_objext conftest.$ac_ext
19984   cat >conftest.$ac_ext <<_ACEOF
19985 #line $LINENO "configure"
19986 #include "confdefs.h"
19987 #include <ext/slist>
19988 #ifdef HAVE_NAMESPACES
19989 using namespace __gnu_cxx;
19990 #endif
19991 #ifdef F77_DUMMY_MAIN
19992 #  ifdef __cplusplus
19993      extern "C"
19994 #  endif
19995    int F77_DUMMY_MAIN() { return 1; }
19996 #endif
19997 int
19998 main ()
19999 {
20000 slist<int> s; return 0;
20001   ;
20002   return 0;
20003 }
20004 _ACEOF
20005 rm -f conftest.$ac_objext
20006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20007   (eval $ac_compile) 2>&5
20008   ac_status=$?
20009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010   (exit $ac_status); } &&
20011          { ac_try='test -s conftest.$ac_objext'
20012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20013   (eval $ac_try) 2>&5
20014   ac_status=$?
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); }; }; then
20017   ac_cv_cxx_have_ext_slist=gnu
20018 else
20019   echo "$as_me: failed program was:" >&5
20020 cat conftest.$ac_ext >&5
20021 ac_cv_cxx_have_ext_slist=no
20022 fi
20023 rm -f conftest.$ac_objext conftest.$ac_ext
20024
20025   ac_ext=c
20026 ac_cpp='$CPP $CPPFLAGS'
20027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20030
20031
20032 fi
20033 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20034 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20035 if test "$ac_cv_cxx_have_ext_slist" = std; then
20036
20037 cat >>confdefs.h <<\_ACEOF
20038 #define HAVE_EXT_SLIST std
20039 _ACEOF
20040
20041 fi
20042 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20043
20044 cat >>confdefs.h <<\_ACEOF
20045 #define HAVE_EXT_SLIST gnu
20046 _ACEOF
20047
20048 fi
20049
20050 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20051 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20052 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20053   echo $ECHO_N "(cached) $ECHO_C" >&6
20054 else
20055
20056
20057
20058   ac_ext=cc
20059 ac_cpp='$CXXCPP $CPPFLAGS'
20060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20063
20064   cat >conftest.$ac_ext <<_ACEOF
20065 #line $LINENO "configure"
20066 #include "confdefs.h"
20067 #include <iterator>
20068 #ifdef HAVE_NAMESPACES
20069 using namespace std;
20070 #endif
20071 #ifdef F77_DUMMY_MAIN
20072 #  ifdef __cplusplus
20073      extern "C"
20074 #  endif
20075    int F77_DUMMY_MAIN() { return 1; }
20076 #endif
20077 int
20078 main ()
20079 {
20080 iterator<int,int,int> t; return 0;
20081   ;
20082   return 0;
20083 }
20084 _ACEOF
20085 rm -f conftest.$ac_objext
20086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20087   (eval $ac_compile) 2>&5
20088   ac_status=$?
20089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090   (exit $ac_status); } &&
20091          { ac_try='test -s conftest.$ac_objext'
20092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093   (eval $ac_try) 2>&5
20094   ac_status=$?
20095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096   (exit $ac_status); }; }; then
20097   ac_cv_cxx_have_std_iterator=yes
20098 else
20099   echo "$as_me: failed program was:" >&5
20100 cat conftest.$ac_ext >&5
20101 ac_cv_cxx_have_std_iterator=no
20102 fi
20103 rm -f conftest.$ac_objext conftest.$ac_ext
20104   ac_ext=c
20105 ac_cpp='$CPP $CPPFLAGS'
20106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20109
20110
20111 fi
20112 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20113 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20114 if test "$ac_cv_cxx_have_std_iterator" = yes; then
20115
20116 cat >>confdefs.h <<\_ACEOF
20117 #define HAVE_STD_ITERATOR
20118 _ACEOF
20119
20120 fi
20121
20122 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20123 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20124 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20125   echo $ECHO_N "(cached) $ECHO_C" >&6
20126 else
20127
20128
20129
20130   ac_ext=cc
20131 ac_cpp='$CXXCPP $CPPFLAGS'
20132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20135
20136   cat >conftest.$ac_ext <<_ACEOF
20137 #line $LINENO "configure"
20138 #include "confdefs.h"
20139 #include <iterator>
20140 #ifdef HAVE_NAMESPACES
20141 using namespace std;
20142 #endif
20143 #ifdef F77_DUMMY_MAIN
20144 #  ifdef __cplusplus
20145      extern "C"
20146 #  endif
20147    int F77_DUMMY_MAIN() { return 1; }
20148 #endif
20149 int
20150 main ()
20151 {
20152 bidirectional_iterator<int,int,int> t; return 0;
20153   ;
20154   return 0;
20155 }
20156 _ACEOF
20157 rm -f conftest.$ac_objext
20158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20159   (eval $ac_compile) 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); } &&
20163          { ac_try='test -s conftest.$ac_objext'
20164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165   (eval $ac_try) 2>&5
20166   ac_status=$?
20167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168   (exit $ac_status); }; }; then
20169   ac_cv_cxx_have_bi_iterator=yes
20170 else
20171   echo "$as_me: failed program was:" >&5
20172 cat conftest.$ac_ext >&5
20173 ac_cv_cxx_have_bi_iterator=no
20174 fi
20175 rm -f conftest.$ac_objext conftest.$ac_ext
20176   ac_ext=c
20177 ac_cpp='$CPP $CPPFLAGS'
20178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20181
20182
20183 fi
20184 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20185 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20186 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20187
20188 cat >>confdefs.h <<\_ACEOF
20189 #define HAVE_BI_ITERATOR
20190 _ACEOF
20191
20192 fi
20193
20194 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20195 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20196 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20197   echo $ECHO_N "(cached) $ECHO_C" >&6
20198 else
20199
20200
20201
20202   ac_ext=cc
20203 ac_cpp='$CXXCPP $CPPFLAGS'
20204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20207
20208   cat >conftest.$ac_ext <<_ACEOF
20209 #line $LINENO "configure"
20210 #include "confdefs.h"
20211 #include <iterator>
20212 #ifdef HAVE_NAMESPACES
20213 using namespace std;
20214 #endif
20215 #ifdef F77_DUMMY_MAIN
20216 #  ifdef __cplusplus
20217      extern "C"
20218 #  endif
20219    int F77_DUMMY_MAIN() { return 1; }
20220 #endif
20221 int
20222 main ()
20223 {
20224 forward_iterator<int,int,int> t; return 0;
20225   ;
20226   return 0;
20227 }
20228 _ACEOF
20229 rm -f conftest.$ac_objext
20230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20231   (eval $ac_compile) 2>&5
20232   ac_status=$?
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); } &&
20235          { ac_try='test -s conftest.$ac_objext'
20236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237   (eval $ac_try) 2>&5
20238   ac_status=$?
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); }; }; then
20241   ac_cv_cxx_have_fwd_iterator=yes
20242 else
20243   echo "$as_me: failed program was:" >&5
20244 cat conftest.$ac_ext >&5
20245 ac_cv_cxx_have_fwd_iterator=no
20246 fi
20247 rm -f conftest.$ac_objext conftest.$ac_ext
20248   ac_ext=c
20249 ac_cpp='$CPP $CPPFLAGS'
20250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20253
20254
20255 fi
20256 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20257 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20258 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20259
20260 cat >>confdefs.h <<\_ACEOF
20261 #define HAVE_FWD_ITERATOR
20262 _ACEOF
20263
20264 fi
20265
20266
20267 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20268 # for constant arguments.  Useless!
20269 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20270 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20271 if test "${ac_cv_working_alloca_h+set}" = set; then
20272   echo $ECHO_N "(cached) $ECHO_C" >&6
20273 else
20274   cat >conftest.$ac_ext <<_ACEOF
20275 #line $LINENO "configure"
20276 #include "confdefs.h"
20277 #include <alloca.h>
20278 #ifdef F77_DUMMY_MAIN
20279 #  ifdef __cplusplus
20280      extern "C"
20281 #  endif
20282    int F77_DUMMY_MAIN() { return 1; }
20283 #endif
20284 int
20285 main ()
20286 {
20287 char *p = (char *) alloca (2 * sizeof (int));
20288   ;
20289   return 0;
20290 }
20291 _ACEOF
20292 rm -f conftest.$ac_objext conftest$ac_exeext
20293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20294   (eval $ac_link) 2>&5
20295   ac_status=$?
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); } &&
20298          { ac_try='test -s conftest$ac_exeext'
20299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20300   (eval $ac_try) 2>&5
20301   ac_status=$?
20302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20303   (exit $ac_status); }; }; then
20304   ac_cv_working_alloca_h=yes
20305 else
20306   echo "$as_me: failed program was:" >&5
20307 cat conftest.$ac_ext >&5
20308 ac_cv_working_alloca_h=no
20309 fi
20310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20311 fi
20312 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20313 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20314 if test $ac_cv_working_alloca_h = yes; then
20315
20316 cat >>confdefs.h <<\_ACEOF
20317 #define HAVE_ALLOCA_H 1
20318 _ACEOF
20319
20320 fi
20321
20322 echo "$as_me:$LINENO: checking for alloca" >&5
20323 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20324 if test "${ac_cv_func_alloca_works+set}" = set; then
20325   echo $ECHO_N "(cached) $ECHO_C" >&6
20326 else
20327   cat >conftest.$ac_ext <<_ACEOF
20328 #line $LINENO "configure"
20329 #include "confdefs.h"
20330 #ifdef __GNUC__
20331 # define alloca __builtin_alloca
20332 #else
20333 # ifdef _MSC_VER
20334 #  include <malloc.h>
20335 #  define alloca _alloca
20336 # else
20337 #  if HAVE_ALLOCA_H
20338 #   include <alloca.h>
20339 #  else
20340 #   ifdef _AIX
20341  #pragma alloca
20342 #   else
20343 #    ifndef alloca /* predefined by HP cc +Olibcalls */
20344 char *alloca ();
20345 #    endif
20346 #   endif
20347 #  endif
20348 # endif
20349 #endif
20350
20351 #ifdef F77_DUMMY_MAIN
20352 #  ifdef __cplusplus
20353      extern "C"
20354 #  endif
20355    int F77_DUMMY_MAIN() { return 1; }
20356 #endif
20357 int
20358 main ()
20359 {
20360 char *p = (char *) alloca (1);
20361   ;
20362   return 0;
20363 }
20364 _ACEOF
20365 rm -f conftest.$ac_objext conftest$ac_exeext
20366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20367   (eval $ac_link) 2>&5
20368   ac_status=$?
20369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370   (exit $ac_status); } &&
20371          { ac_try='test -s conftest$ac_exeext'
20372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20373   (eval $ac_try) 2>&5
20374   ac_status=$?
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); }; }; then
20377   ac_cv_func_alloca_works=yes
20378 else
20379   echo "$as_me: failed program was:" >&5
20380 cat conftest.$ac_ext >&5
20381 ac_cv_func_alloca_works=no
20382 fi
20383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20384 fi
20385 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20386 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20387
20388 if test $ac_cv_func_alloca_works = yes; then
20389
20390 cat >>confdefs.h <<\_ACEOF
20391 #define HAVE_ALLOCA 1
20392 _ACEOF
20393
20394 else
20395   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20396 # that cause trouble.  Some versions do not even contain alloca or
20397 # contain a buggy version.  If you still want to use their alloca,
20398 # use ar to extract alloca.o from them instead of compiling alloca.c.
20399
20400 ALLOCA=alloca.$ac_objext
20401
20402 cat >>confdefs.h <<\_ACEOF
20403 #define C_ALLOCA 1
20404 _ACEOF
20405
20406
20407 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20408 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20409 if test "${ac_cv_os_cray+set}" = set; then
20410   echo $ECHO_N "(cached) $ECHO_C" >&6
20411 else
20412   cat >conftest.$ac_ext <<_ACEOF
20413 #line $LINENO "configure"
20414 #include "confdefs.h"
20415 #if defined(CRAY) && ! defined(CRAY2)
20416 webecray
20417 #else
20418 wenotbecray
20419 #endif
20420
20421 _ACEOF
20422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20423   egrep "webecray" >/dev/null 2>&1; then
20424   ac_cv_os_cray=yes
20425 else
20426   ac_cv_os_cray=no
20427 fi
20428 rm -f conftest*
20429
20430 fi
20431 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20432 echo "${ECHO_T}$ac_cv_os_cray" >&6
20433 if test $ac_cv_os_cray = yes; then
20434   for ac_func in _getb67 GETB67 getb67; do
20435     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20436 echo "$as_me:$LINENO: checking for $ac_func" >&5
20437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20438 if eval "test \"\${$as_ac_var+set}\" = set"; then
20439   echo $ECHO_N "(cached) $ECHO_C" >&6
20440 else
20441   cat >conftest.$ac_ext <<_ACEOF
20442 #line $LINENO "configure"
20443 #include "confdefs.h"
20444 /* System header to define __stub macros and hopefully few prototypes,
20445     which can conflict with char $ac_func (); below.  */
20446 #include <assert.h>
20447 /* Override any gcc2 internal prototype to avoid an error.  */
20448 #ifdef __cplusplus
20449 extern "C"
20450 #endif
20451 /* We use char because int might match the return type of a gcc2
20452    builtin and then its argument prototype would still apply.  */
20453 char $ac_func ();
20454 char (*f) ();
20455
20456 #ifdef F77_DUMMY_MAIN
20457 #  ifdef __cplusplus
20458      extern "C"
20459 #  endif
20460    int F77_DUMMY_MAIN() { return 1; }
20461 #endif
20462 int
20463 main ()
20464 {
20465 /* The GNU C library defines this for functions which it implements
20466     to always fail with ENOSYS.  Some functions are actually named
20467     something starting with __ and the normal name is an alias.  */
20468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20469 choke me
20470 #else
20471 f = $ac_func;
20472 #endif
20473
20474   ;
20475   return 0;
20476 }
20477 _ACEOF
20478 rm -f conftest.$ac_objext conftest$ac_exeext
20479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20480   (eval $ac_link) 2>&5
20481   ac_status=$?
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); } &&
20484          { ac_try='test -s conftest$ac_exeext'
20485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20486   (eval $ac_try) 2>&5
20487   ac_status=$?
20488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489   (exit $ac_status); }; }; then
20490   eval "$as_ac_var=yes"
20491 else
20492   echo "$as_me: failed program was:" >&5
20493 cat conftest.$ac_ext >&5
20494 eval "$as_ac_var=no"
20495 fi
20496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20497 fi
20498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20500 if test `eval echo '${'$as_ac_var'}'` = yes; then
20501
20502 cat >>confdefs.h <<_ACEOF
20503 #define CRAY_STACKSEG_END $ac_func
20504 _ACEOF
20505
20506     break
20507 fi
20508
20509   done
20510 fi
20511
20512 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20513 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20514 if test "${ac_cv_c_stack_direction+set}" = set; then
20515   echo $ECHO_N "(cached) $ECHO_C" >&6
20516 else
20517   if test "$cross_compiling" = yes; then
20518   ac_cv_c_stack_direction=0
20519 else
20520   cat >conftest.$ac_ext <<_ACEOF
20521 #line $LINENO "configure"
20522 #include "confdefs.h"
20523 int
20524 find_stack_direction ()
20525 {
20526   static char *addr = 0;
20527   auto char dummy;
20528   if (addr == 0)
20529     {
20530       addr = &dummy;
20531       return find_stack_direction ();
20532     }
20533   else
20534     return (&dummy > addr) ? 1 : -1;
20535 }
20536
20537 int
20538 main ()
20539 {
20540   exit (find_stack_direction () < 0);
20541 }
20542 _ACEOF
20543 rm -f conftest$ac_exeext
20544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20545   (eval $ac_link) 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550   (eval $ac_try) 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; }; then
20554   ac_cv_c_stack_direction=1
20555 else
20556   echo "$as_me: program exited with status $ac_status" >&5
20557 echo "$as_me: failed program was:" >&5
20558 cat conftest.$ac_ext >&5
20559 ( exit $ac_status )
20560 ac_cv_c_stack_direction=-1
20561 fi
20562 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20563 fi
20564 fi
20565 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20566 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20567
20568 cat >>confdefs.h <<_ACEOF
20569 #define STACK_DIRECTION $ac_cv_c_stack_direction
20570 _ACEOF
20571
20572
20573 fi
20574
20575 if test $ac_cv_c_compiler_gnu = yes; then
20576     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
20577 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
20578 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
20579   echo $ECHO_N "(cached) $ECHO_C" >&6
20580 else
20581     ac_pattern="Autoconf.*'x'"
20582   cat >conftest.$ac_ext <<_ACEOF
20583 #line $LINENO "configure"
20584 #include "confdefs.h"
20585 #include <sgtty.h>
20586 Autoconf TIOCGETP
20587 _ACEOF
20588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20589   egrep "$ac_pattern" >/dev/null 2>&1; then
20590   ac_cv_prog_gcc_traditional=yes
20591 else
20592   ac_cv_prog_gcc_traditional=no
20593 fi
20594 rm -f conftest*
20595
20596
20597   if test $ac_cv_prog_gcc_traditional = no; then
20598     cat >conftest.$ac_ext <<_ACEOF
20599 #line $LINENO "configure"
20600 #include "confdefs.h"
20601 #include <termio.h>
20602 Autoconf TCGETA
20603 _ACEOF
20604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20605   egrep "$ac_pattern" >/dev/null 2>&1; then
20606   ac_cv_prog_gcc_traditional=yes
20607 fi
20608 rm -f conftest*
20609
20610   fi
20611 fi
20612 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
20613 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
20614   if test $ac_cv_prog_gcc_traditional = yes; then
20615     CC="$CC -traditional"
20616   fi
20617 fi
20618
20619 echo "$as_me:$LINENO: checking for working memcmp" >&5
20620 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
20621 if test "${ac_cv_func_memcmp_working+set}" = set; then
20622   echo $ECHO_N "(cached) $ECHO_C" >&6
20623 else
20624   if test "$cross_compiling" = yes; then
20625   ac_cv_func_memcmp_working=no
20626 else
20627   cat >conftest.$ac_ext <<_ACEOF
20628 #line $LINENO "configure"
20629 #include "confdefs.h"
20630
20631 #ifdef F77_DUMMY_MAIN
20632 #  ifdef __cplusplus
20633      extern "C"
20634 #  endif
20635    int F77_DUMMY_MAIN() { return 1; }
20636 #endif
20637 int
20638 main ()
20639 {
20640
20641   /* Some versions of memcmp are not 8-bit clean.  */
20642   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20643   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
20644     exit (1);
20645
20646   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
20647      or more and with at least one buffer not starting on a 4-byte boundary.
20648      William Lewis provided this test program.   */
20649   {
20650     char foo[21];
20651     char bar[21];
20652     int i;
20653     for (i = 0; i < 4; i++)
20654       {
20655         char *a = foo + i;
20656         char *b = bar + i;
20657         strcpy (a, "--------01111111");
20658         strcpy (b, "--------10000000");
20659         if (memcmp (a, b, 16) >= 0)
20660           exit (1);
20661       }
20662     exit (0);
20663   }
20664
20665   ;
20666   return 0;
20667 }
20668 _ACEOF
20669 rm -f conftest$ac_exeext
20670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20671   (eval $ac_link) 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676   (eval $ac_try) 2>&5
20677   ac_status=$?
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); }; }; then
20680   ac_cv_func_memcmp_working=yes
20681 else
20682   echo "$as_me: program exited with status $ac_status" >&5
20683 echo "$as_me: failed program was:" >&5
20684 cat conftest.$ac_ext >&5
20685 ( exit $ac_status )
20686 ac_cv_func_memcmp_working=no
20687 fi
20688 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20689 fi
20690 fi
20691 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
20692 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
20693 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
20694
20695
20696
20697 for ac_header in stdlib.h unistd.h
20698 do
20699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20701   echo "$as_me:$LINENO: checking for $ac_header" >&5
20702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20704   echo $ECHO_N "(cached) $ECHO_C" >&6
20705 fi
20706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20708 else
20709   # Is the header compilable?
20710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20712 cat >conftest.$ac_ext <<_ACEOF
20713 #line $LINENO "configure"
20714 #include "confdefs.h"
20715 $ac_includes_default
20716 #include <$ac_header>
20717 _ACEOF
20718 rm -f conftest.$ac_objext
20719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20720   (eval $ac_compile) 2>&5
20721   ac_status=$?
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); } &&
20724          { ac_try='test -s conftest.$ac_objext'
20725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726   (eval $ac_try) 2>&5
20727   ac_status=$?
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); }; }; then
20730   ac_header_compiler=yes
20731 else
20732   echo "$as_me: failed program was:" >&5
20733 cat conftest.$ac_ext >&5
20734 ac_header_compiler=no
20735 fi
20736 rm -f conftest.$ac_objext conftest.$ac_ext
20737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20738 echo "${ECHO_T}$ac_header_compiler" >&6
20739
20740 # Is the header present?
20741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20743 cat >conftest.$ac_ext <<_ACEOF
20744 #line $LINENO "configure"
20745 #include "confdefs.h"
20746 #include <$ac_header>
20747 _ACEOF
20748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20750   ac_status=$?
20751   egrep -v '^ *\+' conftest.er1 >conftest.err
20752   rm -f conftest.er1
20753   cat conftest.err >&5
20754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755   (exit $ac_status); } >/dev/null; then
20756   if test -s conftest.err; then
20757     ac_cpp_err=$ac_c_preproc_warn_flag
20758   else
20759     ac_cpp_err=
20760   fi
20761 else
20762   ac_cpp_err=yes
20763 fi
20764 if test -z "$ac_cpp_err"; then
20765   ac_header_preproc=yes
20766 else
20767   echo "$as_me: failed program was:" >&5
20768   cat conftest.$ac_ext >&5
20769   ac_header_preproc=no
20770 fi
20771 rm -f conftest.err conftest.$ac_ext
20772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20773 echo "${ECHO_T}$ac_header_preproc" >&6
20774
20775 # So?  What about this header?
20776 case $ac_header_compiler:$ac_header_preproc in
20777   yes:no )
20778     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20782   no:yes )
20783     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20785     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
20789 esac
20790 echo "$as_me:$LINENO: checking for $ac_header" >&5
20791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20793   echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795   eval "$as_ac_Header=$ac_header_preproc"
20796 fi
20797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20799
20800 fi
20801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20802   cat >>confdefs.h <<_ACEOF
20803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20804 _ACEOF
20805
20806 fi
20807
20808 done
20809
20810
20811 for ac_func in getpagesize
20812 do
20813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20814 echo "$as_me:$LINENO: checking for $ac_func" >&5
20815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20816 if eval "test \"\${$as_ac_var+set}\" = set"; then
20817   echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819   cat >conftest.$ac_ext <<_ACEOF
20820 #line $LINENO "configure"
20821 #include "confdefs.h"
20822 /* System header to define __stub macros and hopefully few prototypes,
20823     which can conflict with char $ac_func (); below.  */
20824 #include <assert.h>
20825 /* Override any gcc2 internal prototype to avoid an error.  */
20826 #ifdef __cplusplus
20827 extern "C"
20828 #endif
20829 /* We use char because int might match the return type of a gcc2
20830    builtin and then its argument prototype would still apply.  */
20831 char $ac_func ();
20832 char (*f) ();
20833
20834 #ifdef F77_DUMMY_MAIN
20835 #  ifdef __cplusplus
20836      extern "C"
20837 #  endif
20838    int F77_DUMMY_MAIN() { return 1; }
20839 #endif
20840 int
20841 main ()
20842 {
20843 /* The GNU C library defines this for functions which it implements
20844     to always fail with ENOSYS.  Some functions are actually named
20845     something starting with __ and the normal name is an alias.  */
20846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20847 choke me
20848 #else
20849 f = $ac_func;
20850 #endif
20851
20852   ;
20853   return 0;
20854 }
20855 _ACEOF
20856 rm -f conftest.$ac_objext conftest$ac_exeext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20858   (eval $ac_link) 2>&5
20859   ac_status=$?
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); } &&
20862          { ac_try='test -s conftest$ac_exeext'
20863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864   (eval $ac_try) 2>&5
20865   ac_status=$?
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); }; }; then
20868   eval "$as_ac_var=yes"
20869 else
20870   echo "$as_me: failed program was:" >&5
20871 cat conftest.$ac_ext >&5
20872 eval "$as_ac_var=no"
20873 fi
20874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20875 fi
20876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20878 if test `eval echo '${'$as_ac_var'}'` = yes; then
20879   cat >>confdefs.h <<_ACEOF
20880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20881 _ACEOF
20882
20883 fi
20884 done
20885
20886 echo "$as_me:$LINENO: checking for working mmap" >&5
20887 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
20888 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20889   echo $ECHO_N "(cached) $ECHO_C" >&6
20890 else
20891   if test "$cross_compiling" = yes; then
20892   ac_cv_func_mmap_fixed_mapped=no
20893 else
20894   cat >conftest.$ac_ext <<_ACEOF
20895 #line $LINENO "configure"
20896 #include "confdefs.h"
20897 $ac_includes_default
20898 /* malloc might have been renamed as rpl_malloc. */
20899 #undef malloc
20900
20901 /* Thanks to Mike Haertel and Jim Avera for this test.
20902    Here is a matrix of mmap possibilities:
20903         mmap private not fixed
20904         mmap private fixed at somewhere currently unmapped
20905         mmap private fixed at somewhere already mapped
20906         mmap shared not fixed
20907         mmap shared fixed at somewhere currently unmapped
20908         mmap shared fixed at somewhere already mapped
20909    For private mappings, we should verify that changes cannot be read()
20910    back from the file, nor mmap's back from the file at a different
20911    address.  (There have been systems where private was not correctly
20912    implemented like the infamous i386 svr4.0, and systems where the
20913    VM page cache was not coherent with the file system buffer cache
20914    like early versions of FreeBSD and possibly contemporary NetBSD.)
20915    For shared mappings, we should conversely verify that changes get
20916    propagated back to all the places they're supposed to be.
20917
20918    Grep wants private fixed already mapped.
20919    The main things grep needs to know about mmap are:
20920    * does it exist and is it safe to write into the mmap'd area
20921    * how to use it (BSD variants)  */
20922
20923 #include <fcntl.h>
20924 #include <sys/mman.h>
20925
20926 #if !STDC_HEADERS && !HAVE_STDLIB_H
20927 char *malloc ();
20928 #endif
20929
20930 /* This mess was copied from the GNU getpagesize.h.  */
20931 #if !HAVE_GETPAGESIZE
20932 /* Assume that all systems that can run configure have sys/param.h.  */
20933 # if !HAVE_SYS_PARAM_H
20934 #  define HAVE_SYS_PARAM_H 1
20935 # endif
20936
20937 # ifdef _SC_PAGESIZE
20938 #  define getpagesize() sysconf(_SC_PAGESIZE)
20939 # else /* no _SC_PAGESIZE */
20940 #  if HAVE_SYS_PARAM_H
20941 #   include <sys/param.h>
20942 #   ifdef EXEC_PAGESIZE
20943 #    define getpagesize() EXEC_PAGESIZE
20944 #   else /* no EXEC_PAGESIZE */
20945 #    ifdef NBPG
20946 #     define getpagesize() NBPG * CLSIZE
20947 #     ifndef CLSIZE
20948 #      define CLSIZE 1
20949 #     endif /* no CLSIZE */
20950 #    else /* no NBPG */
20951 #     ifdef NBPC
20952 #      define getpagesize() NBPC
20953 #     else /* no NBPC */
20954 #      ifdef PAGESIZE
20955 #       define getpagesize() PAGESIZE
20956 #      endif /* PAGESIZE */
20957 #     endif /* no NBPC */
20958 #    endif /* no NBPG */
20959 #   endif /* no EXEC_PAGESIZE */
20960 #  else /* no HAVE_SYS_PARAM_H */
20961 #   define getpagesize() 8192   /* punt totally */
20962 #  endif /* no HAVE_SYS_PARAM_H */
20963 # endif /* no _SC_PAGESIZE */
20964
20965 #endif /* no HAVE_GETPAGESIZE */
20966
20967 int
20968 main ()
20969 {
20970   char *data, *data2, *data3;
20971   int i, pagesize;
20972   int fd;
20973
20974   pagesize = getpagesize ();
20975
20976   /* First, make a file with some known garbage in it. */
20977   data = (char *) malloc (pagesize);
20978   if (!data)
20979     exit (1);
20980   for (i = 0; i < pagesize; ++i)
20981     *(data + i) = rand ();
20982   umask (0);
20983   fd = creat ("conftest.mmap", 0600);
20984   if (fd < 0)
20985     exit (1);
20986   if (write (fd, data, pagesize) != pagesize)
20987     exit (1);
20988   close (fd);
20989
20990   /* Next, try to mmap the file at a fixed address which already has
20991      something else allocated at it.  If we can, also make sure that
20992      we see the same garbage.  */
20993   fd = open ("conftest.mmap", O_RDWR);
20994   if (fd < 0)
20995     exit (1);
20996   data2 = (char *) malloc (2 * pagesize);
20997   if (!data2)
20998     exit (1);
20999   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21000   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21001                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21002     exit (1);
21003   for (i = 0; i < pagesize; ++i)
21004     if (*(data + i) != *(data2 + i))
21005       exit (1);
21006
21007   /* Finally, make sure that changes to the mapped area do not
21008      percolate back to the file as seen by read().  (This is a bug on
21009      some variants of i386 svr4.0.)  */
21010   for (i = 0; i < pagesize; ++i)
21011     *(data2 + i) = *(data2 + i) + 1;
21012   data3 = (char *) malloc (pagesize);
21013   if (!data3)
21014     exit (1);
21015   if (read (fd, data3, pagesize) != pagesize)
21016     exit (1);
21017   for (i = 0; i < pagesize; ++i)
21018     if (*(data + i) != *(data3 + i))
21019       exit (1);
21020   close (fd);
21021   exit (0);
21022 }
21023 _ACEOF
21024 rm -f conftest$ac_exeext
21025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21026   (eval $ac_link) 2>&5
21027   ac_status=$?
21028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21031   (eval $ac_try) 2>&5
21032   ac_status=$?
21033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034   (exit $ac_status); }; }; then
21035   ac_cv_func_mmap_fixed_mapped=yes
21036 else
21037   echo "$as_me: program exited with status $ac_status" >&5
21038 echo "$as_me: failed program was:" >&5
21039 cat conftest.$ac_ext >&5
21040 ( exit $ac_status )
21041 ac_cv_func_mmap_fixed_mapped=no
21042 fi
21043 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21044 fi
21045 fi
21046 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21047 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21048 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21049
21050 cat >>confdefs.h <<\_ACEOF
21051 #define HAVE_MMAP 1
21052 _ACEOF
21053
21054 fi
21055 rm -f conftest.mmap
21056
21057 echo "$as_me:$LINENO: checking for mmap of files" >&5
21058 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21059 if test "${ac_cv_func_mmap_file+set}" = set; then
21060   echo $ECHO_N "(cached) $ECHO_C" >&6
21061 else
21062
21063
21064   ac_ext=c
21065 ac_cpp='$CPP $CPPFLAGS'
21066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21069
21070   if test "$cross_compiling" = yes; then
21071   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
21072 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21073    { (exit 1); exit 1; }; }
21074 else
21075   cat >conftest.$ac_ext <<_ACEOF
21076 #line $LINENO "configure"
21077 #include "confdefs.h"
21078
21079 #ifdef HAVE_SYS_MMAN_H
21080 #include <sys/mman.h>
21081 #endif
21082
21083 #ifdef HAVE_SYS_TYPES_H
21084 #include <sys/types.h>
21085 #endif
21086
21087 #ifdef HAVE_FCNTL_H
21088 #include <fcntl.h>
21089 #endif
21090
21091   int fd;
21092   int main () {
21093   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
21094 _ACEOF
21095 rm -f conftest$ac_exeext
21096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21097   (eval $ac_link) 2>&5
21098   ac_status=$?
21099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102   (eval $ac_try) 2>&5
21103   ac_status=$?
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); }; }; then
21106   ac_cv_func_mmap_file=yes
21107 else
21108   echo "$as_me: program exited with status $ac_status" >&5
21109 echo "$as_me: failed program was:" >&5
21110 cat conftest.$ac_ext >&5
21111 ( exit $ac_status )
21112 ac_cv_func_mmap_file=no
21113 fi
21114 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21115 fi
21116   ac_ext=c
21117 ac_cpp='$CPP $CPPFLAGS'
21118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21121
21122
21123 fi
21124 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21125 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21126 if test "$ac_cv_func_mmap_file" = yes; then
21127    cat >>confdefs.h <<\_ACEOF
21128 #define HAVE_MMAP_FILE 1
21129 _ACEOF
21130
21131    MMAP_FILE=yes
21132
21133 fi
21134
21135 if test ${ac_cv_func_mmap_file} = "no"
21136 then
21137         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21138 echo "$as_me: error: mmap() of files required but not found" >&2;}
21139    { (exit 1); exit 1; }; }
21140 fi
21141 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21142 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21143 if test "${ac_cv_header_mmap_anon+set}" = set; then
21144   echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21146
21147
21148   ac_ext=c
21149 ac_cpp='$CPP $CPPFLAGS'
21150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21153
21154   cat >conftest.$ac_ext <<_ACEOF
21155 #line $LINENO "configure"
21156 #include "confdefs.h"
21157 #include <sys/mman.h>
21158   #include <unistd.h>
21159   #include <fcntl.h>
21160 #ifdef F77_DUMMY_MAIN
21161 #  ifdef __cplusplus
21162      extern "C"
21163 #  endif
21164    int F77_DUMMY_MAIN() { return 1; }
21165 #endif
21166 int
21167 main ()
21168 {
21169 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21170   ;
21171   return 0;
21172 }
21173 _ACEOF
21174 rm -f conftest.$ac_objext
21175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21176   (eval $ac_compile) 2>&5
21177   ac_status=$?
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); } &&
21180          { ac_try='test -s conftest.$ac_objext'
21181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182   (eval $ac_try) 2>&5
21183   ac_status=$?
21184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185   (exit $ac_status); }; }; then
21186   ac_cv_header_mmap_anon=yes
21187 else
21188   echo "$as_me: failed program was:" >&5
21189 cat conftest.$ac_ext >&5
21190 ac_cv_header_mmap_anon=no
21191 fi
21192 rm -f conftest.$ac_objext conftest.$ac_ext
21193   ac_ext=c
21194 ac_cpp='$CPP $CPPFLAGS'
21195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21198
21199
21200 fi
21201 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21202 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21203 if test "$ac_cv_header_mmap_anon" = yes; then
21204    cat >>confdefs.h <<\_ACEOF
21205 #define HAVE_MMAP_ANONYMOUS 1
21206 _ACEOF
21207
21208 fi
21209
21210 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21211 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21212 if test "${ac_cv_type_signal+set}" = set; then
21213   echo $ECHO_N "(cached) $ECHO_C" >&6
21214 else
21215   cat >conftest.$ac_ext <<_ACEOF
21216 #line $LINENO "configure"
21217 #include "confdefs.h"
21218 #include <sys/types.h>
21219 #include <signal.h>
21220 #ifdef signal
21221 # undef signal
21222 #endif
21223 #ifdef __cplusplus
21224 extern "C" void (*signal (int, void (*)(int)))(int);
21225 #else
21226 void (*signal ()) ();
21227 #endif
21228
21229 #ifdef F77_DUMMY_MAIN
21230 #  ifdef __cplusplus
21231      extern "C"
21232 #  endif
21233    int F77_DUMMY_MAIN() { return 1; }
21234 #endif
21235 int
21236 main ()
21237 {
21238 int i;
21239   ;
21240   return 0;
21241 }
21242 _ACEOF
21243 rm -f conftest.$ac_objext
21244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21245   (eval $ac_compile) 2>&5
21246   ac_status=$?
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); } &&
21249          { ac_try='test -s conftest.$ac_objext'
21250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251   (eval $ac_try) 2>&5
21252   ac_status=$?
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); }; }; then
21255   ac_cv_type_signal=void
21256 else
21257   echo "$as_me: failed program was:" >&5
21258 cat conftest.$ac_ext >&5
21259 ac_cv_type_signal=int
21260 fi
21261 rm -f conftest.$ac_objext conftest.$ac_ext
21262 fi
21263 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21264 echo "${ECHO_T}$ac_cv_type_signal" >&6
21265
21266 cat >>confdefs.h <<_ACEOF
21267 #define RETSIGTYPE $ac_cv_type_signal
21268 _ACEOF
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
21281 do
21282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21283 echo "$as_me:$LINENO: checking for $ac_func" >&5
21284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21285 if eval "test \"\${$as_ac_var+set}\" = set"; then
21286   echo $ECHO_N "(cached) $ECHO_C" >&6
21287 else
21288   cat >conftest.$ac_ext <<_ACEOF
21289 #line $LINENO "configure"
21290 #include "confdefs.h"
21291 /* System header to define __stub macros and hopefully few prototypes,
21292     which can conflict with char $ac_func (); below.  */
21293 #include <assert.h>
21294 /* Override any gcc2 internal prototype to avoid an error.  */
21295 #ifdef __cplusplus
21296 extern "C"
21297 #endif
21298 /* We use char because int might match the return type of a gcc2
21299    builtin and then its argument prototype would still apply.  */
21300 char $ac_func ();
21301 char (*f) ();
21302
21303 #ifdef F77_DUMMY_MAIN
21304 #  ifdef __cplusplus
21305      extern "C"
21306 #  endif
21307    int F77_DUMMY_MAIN() { return 1; }
21308 #endif
21309 int
21310 main ()
21311 {
21312 /* The GNU C library defines this for functions which it implements
21313     to always fail with ENOSYS.  Some functions are actually named
21314     something starting with __ and the normal name is an alias.  */
21315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21316 choke me
21317 #else
21318 f = $ac_func;
21319 #endif
21320
21321   ;
21322   return 0;
21323 }
21324 _ACEOF
21325 rm -f conftest.$ac_objext conftest$ac_exeext
21326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21327   (eval $ac_link) 2>&5
21328   ac_status=$?
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); } &&
21331          { ac_try='test -s conftest$ac_exeext'
21332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333   (eval $ac_try) 2>&5
21334   ac_status=$?
21335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336   (exit $ac_status); }; }; then
21337   eval "$as_ac_var=yes"
21338 else
21339   echo "$as_me: failed program was:" >&5
21340 cat conftest.$ac_ext >&5
21341 eval "$as_ac_var=no"
21342 fi
21343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21344 fi
21345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21347 if test `eval echo '${'$as_ac_var'}'` = yes; then
21348   cat >>confdefs.h <<_ACEOF
21349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21350 _ACEOF
21351
21352 fi
21353 done
21354
21355
21356
21357 echo "$as_me:$LINENO: checking for mmap" >&5
21358 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
21359 if test "${ac_cv_func_mmap+set}" = set; then
21360   echo $ECHO_N "(cached) $ECHO_C" >&6
21361 else
21362   cat >conftest.$ac_ext <<_ACEOF
21363 #line $LINENO "configure"
21364 #include "confdefs.h"
21365 /* System header to define __stub macros and hopefully few prototypes,
21366     which can conflict with char mmap (); below.  */
21367 #include <assert.h>
21368 /* Override any gcc2 internal prototype to avoid an error.  */
21369 #ifdef __cplusplus
21370 extern "C"
21371 #endif
21372 /* We use char because int might match the return type of a gcc2
21373    builtin and then its argument prototype would still apply.  */
21374 char mmap ();
21375 char (*f) ();
21376
21377 #ifdef F77_DUMMY_MAIN
21378 #  ifdef __cplusplus
21379      extern "C"
21380 #  endif
21381    int F77_DUMMY_MAIN() { return 1; }
21382 #endif
21383 int
21384 main ()
21385 {
21386 /* The GNU C library defines this for functions which it implements
21387     to always fail with ENOSYS.  Some functions are actually named
21388     something starting with __ and the normal name is an alias.  */
21389 #if defined (__stub_mmap) || defined (__stub___mmap)
21390 choke me
21391 #else
21392 f = mmap;
21393 #endif
21394
21395   ;
21396   return 0;
21397 }
21398 _ACEOF
21399 rm -f conftest.$ac_objext conftest$ac_exeext
21400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21401   (eval $ac_link) 2>&5
21402   ac_status=$?
21403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404   (exit $ac_status); } &&
21405          { ac_try='test -s conftest$ac_exeext'
21406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407   (eval $ac_try) 2>&5
21408   ac_status=$?
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); }; }; then
21411   ac_cv_func_mmap=yes
21412 else
21413   echo "$as_me: failed program was:" >&5
21414 cat conftest.$ac_ext >&5
21415 ac_cv_func_mmap=no
21416 fi
21417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21418 fi
21419 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
21420 echo "${ECHO_T}$ac_cv_func_mmap" >&6
21421 if test $ac_cv_func_mmap = yes; then
21422   :
21423 else
21424   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
21425 echo "$as_me: error: Function mmap() required but not found" >&2;}
21426    { (exit 1); exit 1; }; }
21427 fi
21428
21429 echo "$as_me:$LINENO: checking for mprotect" >&5
21430 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
21431 if test "${ac_cv_func_mprotect+set}" = set; then
21432   echo $ECHO_N "(cached) $ECHO_C" >&6
21433 else
21434   cat >conftest.$ac_ext <<_ACEOF
21435 #line $LINENO "configure"
21436 #include "confdefs.h"
21437 /* System header to define __stub macros and hopefully few prototypes,
21438     which can conflict with char mprotect (); below.  */
21439 #include <assert.h>
21440 /* Override any gcc2 internal prototype to avoid an error.  */
21441 #ifdef __cplusplus
21442 extern "C"
21443 #endif
21444 /* We use char because int might match the return type of a gcc2
21445    builtin and then its argument prototype would still apply.  */
21446 char mprotect ();
21447 char (*f) ();
21448
21449 #ifdef F77_DUMMY_MAIN
21450 #  ifdef __cplusplus
21451      extern "C"
21452 #  endif
21453    int F77_DUMMY_MAIN() { return 1; }
21454 #endif
21455 int
21456 main ()
21457 {
21458 /* The GNU C library defines this for functions which it implements
21459     to always fail with ENOSYS.  Some functions are actually named
21460     something starting with __ and the normal name is an alias.  */
21461 #if defined (__stub_mprotect) || defined (__stub___mprotect)
21462 choke me
21463 #else
21464 f = mprotect;
21465 #endif
21466
21467   ;
21468   return 0;
21469 }
21470 _ACEOF
21471 rm -f conftest.$ac_objext conftest$ac_exeext
21472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21473   (eval $ac_link) 2>&5
21474   ac_status=$?
21475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476   (exit $ac_status); } &&
21477          { ac_try='test -s conftest$ac_exeext'
21478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479   (eval $ac_try) 2>&5
21480   ac_status=$?
21481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482   (exit $ac_status); }; }; then
21483   ac_cv_func_mprotect=yes
21484 else
21485   echo "$as_me: failed program was:" >&5
21486 cat conftest.$ac_ext >&5
21487 ac_cv_func_mprotect=no
21488 fi
21489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21490 fi
21491 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
21492 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
21493 if test $ac_cv_func_mprotect = yes; then
21494   :
21495 else
21496   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
21497 echo "$as_me: error: Function mprotect() required but not found" >&2;}
21498    { (exit 1); exit 1; }; }
21499 fi
21500
21501
21502 # Check whether --enable-purify or --disable-purify was given.
21503 if test "${enable_purify+set}" = set; then
21504   enableval="$enable_purify"
21505   ENABLE_PURIFY=ENABLE_PURIFY=1
21506
21507 else
21508   ENABLE_PURIFY=
21509
21510 fi;
21511 # Check whether --enable-optimized or --disable-optimized was given.
21512 if test "${enable_optimized+set}" = set; then
21513   enableval="$enable_optimized"
21514   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
21515
21516 else
21517   ENABLE_OPTIMIZED=
21518
21519 fi;
21520 # Check whether --enable-spec or --disable-spec was given.
21521 if test "${enable_spec+set}" = set; then
21522   enableval="$enable_spec"
21523   USE_SPEC=USE_SPEC=1
21524
21525 else
21526   USE_SPEC=
21527
21528 fi;
21529 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
21530 if test "${enable_precompiled_bytecode+set}" = set; then
21531   enableval="$enable_precompiled_bytecode"
21532   UPB=USE_PRECOMPILED_BYTECODE=1
21533
21534 else
21535   UPB=
21536
21537 fi;
21538 case $build in
21539         *i*86*)  # Check whether --enable-jit or --disable-jit was given.
21540 if test "${enable_jit+set}" = set; then
21541   enableval="$enable_jit"
21542   JIT=TARGET_HAS_JIT=1
21543
21544 else
21545   JIT=
21546
21547 fi;
21548                  ;;
21549         *)
21550                  ;;
21551 esac
21552
21553
21554 # Check whether --with-spec or --without-spec was given.
21555 if test "${with_spec+set}" = set; then
21556   withval="$with_spec"
21557   SPEC_ROOT=$withval
21558
21559 else
21560   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
21561
21562 fi;
21563
21564 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
21565 if test "${with_llvmgccdir+set}" = set; then
21566   withval="$with_llvmgccdir"
21567   LLVMGCCDIR=$withval
21568
21569 fi;
21570
21571 # Check whether --with-bcrepos or --without-bcrepos was given.
21572 if test "${with_bcrepos+set}" = set; then
21573   withval="$with_bcrepos"
21574   BCR=$withval
21575
21576 else
21577   BCR=/home/vadve/lattner/LLVMPrograms
21578
21579 fi;
21580
21581 # Check whether --with-papi or --without-papi was given.
21582 if test "${with_papi+set}" = set; then
21583   withval="$with_papi"
21584   PAPIDIR=$withval
21585
21586 else
21587   PAPIDIR=/home/vadve/shared/papi-2.3.4.1
21588
21589 fi;
21590
21591 # Check whether --with-objroot or --without-objroot was given.
21592 if test "${with_objroot+set}" = set; then
21593   withval="$with_objroot"
21594   OBJROOT=$withval
21595
21596 else
21597   OBJROOT=.
21598
21599 fi;
21600
21601 # Check whether --with-purify or --without-purify was given.
21602 if test "${with_purify+set}" = set; then
21603   withval="$with_purify"
21604   PURIFY=$withval
21605
21606 fi;
21607
21608 ac_config_files="$ac_config_files Makefile.config"
21609 cat >confcache <<\_ACEOF
21610 # This file is a shell script that caches the results of configure
21611 # tests run on this system so they can be shared between configure
21612 # scripts and configure runs, see configure's option --config-cache.
21613 # It is not useful on other systems.  If it contains results you don't
21614 # want to keep, you may remove or edit it.
21615 #
21616 # config.status only pays attention to the cache file if you give it
21617 # the --recheck option to rerun configure.
21618 #
21619 # `ac_cv_env_foo' variables (set or unset) will be overriden when
21620 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21621 # following values.
21622
21623 _ACEOF
21624
21625 # The following way of writing the cache mishandles newlines in values,
21626 # but we know of no workaround that is simple, portable, and efficient.
21627 # So, don't put newlines in cache variables' values.
21628 # Ultrix sh set writes to stderr and can't be redirected directly,
21629 # and sets the high bit in the cache file unless we assign to the vars.
21630 {
21631   (set) 2>&1 |
21632     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21633     *ac_space=\ *)
21634       # `set' does not quote correctly, so add quotes (double-quote
21635       # substitution turns \\\\ into \\, and sed turns \\ into \).
21636       sed -n \
21637         "s/'/'\\\\''/g;
21638           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21639       ;;
21640     *)
21641       # `set' quotes correctly as required by POSIX, so do not add quotes.
21642       sed -n \
21643         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21644       ;;
21645     esac;
21646 } |
21647   sed '
21648      t clear
21649      : clear
21650      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21651      t end
21652      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21653      : end' >>confcache
21654 if cmp -s $cache_file confcache; then :; else
21655   if test -w $cache_file; then
21656     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21657     cat confcache >$cache_file
21658   else
21659     echo "not updating unwritable cache $cache_file"
21660   fi
21661 fi
21662 rm -f confcache
21663
21664 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21665 # Let make expand exec_prefix.
21666 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21667
21668 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21669 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21670 # trailing colons and then remove the whole line if VPATH becomes empty
21671 # (actually we leave an empty line to preserve line numbers).
21672 if test "x$srcdir" = x.; then
21673   ac_vpsub='/^[         ]*VPATH[        ]*=/{
21674 s/:*\$(srcdir):*/:/;
21675 s/:*\${srcdir}:*/:/;
21676 s/:*@srcdir@:*/:/;
21677 s/^\([^=]*=[    ]*\):*/\1/;
21678 s/:*$//;
21679 s/^[^=]*=[      ]*$//;
21680 }'
21681 fi
21682
21683 DEFS=-DHAVE_CONFIG_H
21684
21685
21686 : ${CONFIG_STATUS=./config.status}
21687 ac_clean_files_save=$ac_clean_files
21688 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21689 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21690 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21691 cat >$CONFIG_STATUS <<_ACEOF
21692 #! $SHELL
21693 # Generated by $as_me.
21694 # Run this file to recreate the current configuration.
21695 # Compiler output produced by configure, useful for debugging
21696 # configure, is in config.log if it exists.
21697
21698 debug=false
21699 SHELL=\${CONFIG_SHELL-$SHELL}
21700 _ACEOF
21701
21702 cat >>$CONFIG_STATUS <<\_ACEOF
21703
21704 ## --------------------- ##
21705 ## M4sh Initialization.  ##
21706 ## --------------------- ##
21707
21708 # Be Bourne compatible
21709 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21710   emulate sh
21711   NULLCMD=:
21712 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21713   set -o posix
21714 fi
21715
21716 # NLS nuisances.
21717 # Support unset when possible.
21718 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21719   as_unset=unset
21720 else
21721   as_unset=false
21722 fi
21723
21724 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
21725     { $as_unset LANG || test "${LANG+set}" != set; } ||
21726       { LANG=C; export LANG; }
21727 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
21728     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
21729       { LC_ALL=C; export LC_ALL; }
21730 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
21731     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
21732       { LC_TIME=C; export LC_TIME; }
21733 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
21734     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
21735       { LC_CTYPE=C; export LC_CTYPE; }
21736 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
21737     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
21738       { LANGUAGE=C; export LANGUAGE; }
21739 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
21740     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
21741       { LC_COLLATE=C; export LC_COLLATE; }
21742 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
21743     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
21744       { LC_NUMERIC=C; export LC_NUMERIC; }
21745 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
21746     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
21747       { LC_MESSAGES=C; export LC_MESSAGES; }
21748
21749
21750 # Name of the executable.
21751 as_me=`(basename "$0") 2>/dev/null ||
21752 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21753          X"$0" : 'X\(//\)$' \| \
21754          X"$0" : 'X\(/\)$' \| \
21755          .     : '\(.\)' 2>/dev/null ||
21756 echo X/"$0" |
21757     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21758           /^X\/\(\/\/\)$/{ s//\1/; q; }
21759           /^X\/\(\/\).*/{ s//\1/; q; }
21760           s/.*/./; q'`
21761
21762 # PATH needs CR, and LINENO needs CR and PATH.
21763 # Avoid depending upon Character Ranges.
21764 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21765 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21766 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21767 as_cr_digits='0123456789'
21768 as_cr_alnum=$as_cr_Letters$as_cr_digits
21769
21770 # The user is always right.
21771 if test "${PATH_SEPARATOR+set}" != set; then
21772   echo "#! /bin/sh" >conftest.sh
21773   echo  "exit 0"   >>conftest.sh
21774   chmod +x conftest.sh
21775   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
21776     PATH_SEPARATOR=';'
21777   else
21778     PATH_SEPARATOR=:
21779   fi
21780   rm -f conftest.sh
21781 fi
21782
21783
21784   as_lineno_1=$LINENO
21785   as_lineno_2=$LINENO
21786   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21787   test "x$as_lineno_1" != "x$as_lineno_2" &&
21788   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21789   # Find who we are.  Look in the path if we contain no path at all
21790   # relative or not.
21791   case $0 in
21792     *[\\/]* ) as_myself=$0 ;;
21793     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21794 for as_dir in $PATH
21795 do
21796   IFS=$as_save_IFS
21797   test -z "$as_dir" && as_dir=.
21798   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21799 done
21800
21801        ;;
21802   esac
21803   # We did not find ourselves, most probably we were run as `sh COMMAND'
21804   # in which case we are not to be found in the path.
21805   if test "x$as_myself" = x; then
21806     as_myself=$0
21807   fi
21808   if test ! -f "$as_myself"; then
21809     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21810 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21811    { (exit 1); exit 1; }; }
21812   fi
21813   case $CONFIG_SHELL in
21814   '')
21815     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21816 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21817 do
21818   IFS=$as_save_IFS
21819   test -z "$as_dir" && as_dir=.
21820   for as_base in sh bash ksh sh5; do
21821          case $as_dir in
21822          /*)
21823            if ("$as_dir/$as_base" -c '
21824   as_lineno_1=$LINENO
21825   as_lineno_2=$LINENO
21826   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21827   test "x$as_lineno_1" != "x$as_lineno_2" &&
21828   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21829              CONFIG_SHELL=$as_dir/$as_base
21830              export CONFIG_SHELL
21831              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21832            fi;;
21833          esac
21834        done
21835 done
21836 ;;
21837   esac
21838
21839   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21840   # uniformly replaced by the line number.  The first 'sed' inserts a
21841   # line-number line before each line; the second 'sed' does the real
21842   # work.  The second script uses 'N' to pair each line-number line
21843   # with the numbered line, and appends trailing '-' during
21844   # substitution so that $LINENO is not a special case at line end.
21845   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21846   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21847   sed '=' <$as_myself |
21848     sed '
21849       N
21850       s,$,-,
21851       : loop
21852       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21853       t loop
21854       s,-$,,
21855       s,^['$as_cr_digits']*\n,,
21856     ' >$as_me.lineno &&
21857   chmod +x $as_me.lineno ||
21858     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21859 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21860    { (exit 1); exit 1; }; }
21861
21862   # Don't try to exec as it changes $[0], causing all sort of problems
21863   # (the dirname of $[0] is not the place where we might find the
21864   # original and so on.  Autoconf is especially sensible to this).
21865   . ./$as_me.lineno
21866   # Exit status is that of the last command.
21867   exit
21868 }
21869
21870
21871 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21872   *c*,-n*) ECHO_N= ECHO_C='
21873 ' ECHO_T='      ' ;;
21874   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21875   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21876 esac
21877
21878 if expr a : '\(a\)' >/dev/null 2>&1; then
21879   as_expr=expr
21880 else
21881   as_expr=false
21882 fi
21883
21884 rm -f conf$$ conf$$.exe conf$$.file
21885 echo >conf$$.file
21886 if ln -s conf$$.file conf$$ 2>/dev/null; then
21887   # We could just check for DJGPP; but this test a) works b) is more generic
21888   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21889   if test -f conf$$.exe; then
21890     # Don't use ln at all; we don't have any links
21891     as_ln_s='cp -p'
21892   else
21893     as_ln_s='ln -s'
21894   fi
21895 elif ln conf$$.file conf$$ 2>/dev/null; then
21896   as_ln_s=ln
21897 else
21898   as_ln_s='cp -p'
21899 fi
21900 rm -f conf$$ conf$$.exe conf$$.file
21901
21902 as_executable_p="test -f"
21903
21904 # Sed expression to map a string onto a valid CPP name.
21905 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21906
21907 # Sed expression to map a string onto a valid variable name.
21908 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21909
21910
21911 # IFS
21912 # We need space, tab and new line, in precisely that order.
21913 as_nl='
21914 '
21915 IFS="   $as_nl"
21916
21917 # CDPATH.
21918 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
21919
21920 exec 6>&1
21921
21922 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21923 # report actual input values of CONFIG_FILES etc. instead of their
21924 # values after options handling.  Logging --version etc. is OK.
21925 exec 5>>config.log
21926 {
21927   echo
21928   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21929 ## Running $as_me. ##
21930 _ASBOX
21931 } >&5
21932 cat >&5 <<_CSEOF
21933
21934 This file was extended by [LLVM] $as_me [1.0], which was
21935 generated by GNU Autoconf 2.53.  Invocation command line was
21936
21937   CONFIG_FILES    = $CONFIG_FILES
21938   CONFIG_HEADERS  = $CONFIG_HEADERS
21939   CONFIG_LINKS    = $CONFIG_LINKS
21940   CONFIG_COMMANDS = $CONFIG_COMMANDS
21941   $ $0 $@
21942
21943 _CSEOF
21944 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21945 echo >&5
21946 _ACEOF
21947
21948 # Files that config.status was made for.
21949 if test -n "$ac_config_files"; then
21950   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21951 fi
21952
21953 if test -n "$ac_config_headers"; then
21954   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21955 fi
21956
21957 if test -n "$ac_config_links"; then
21958   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21959 fi
21960
21961 if test -n "$ac_config_commands"; then
21962   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21963 fi
21964
21965 cat >>$CONFIG_STATUS <<\_ACEOF
21966
21967 ac_cs_usage="\
21968 \`$as_me' instantiates files from templates according to the
21969 current configuration.
21970
21971 Usage: $0 [OPTIONS] [FILE]...
21972
21973   -h, --help       print this help, then exit
21974   -V, --version    print version number, then exit
21975   -d, --debug      don't remove temporary files
21976       --recheck    update $as_me by reconfiguring in the same conditions
21977   --file=FILE[:TEMPLATE]
21978                    instantiate the configuration file FILE
21979   --header=FILE[:TEMPLATE]
21980                    instantiate the configuration header FILE
21981
21982 Configuration files:
21983 $config_files
21984
21985 Configuration headers:
21986 $config_headers
21987
21988 Report bugs to <bug-autoconf@gnu.org>."
21989 _ACEOF
21990
21991 cat >>$CONFIG_STATUS <<_ACEOF
21992 ac_cs_version="\\
21993 [LLVM] config.status [1.0]
21994 configured by $0, generated by GNU Autoconf 2.53,
21995   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21996
21997 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21998 Free Software Foundation, Inc.
21999 This config.status script is free software; the Free Software Foundation
22000 gives unlimited permission to copy, distribute and modify it."
22001 srcdir=$srcdir
22002 INSTALL="$INSTALL"
22003 _ACEOF
22004
22005 cat >>$CONFIG_STATUS <<\_ACEOF
22006 # If no file are specified by the user, then we need to provide default
22007 # value.  By we need to know if files were specified by the user.
22008 ac_need_defaults=:
22009 while test $# != 0
22010 do
22011   case $1 in
22012   --*=*)
22013     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22014     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22015     shift
22016     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
22017     shift
22018     ;;
22019   -*);;
22020   *) # This is not an option, so the user has probably given explicit
22021      # arguments.
22022      ac_need_defaults=false;;
22023   esac
22024
22025   case $1 in
22026   # Handling of the options.
22027 _ACEOF
22028 cat >>$CONFIG_STATUS <<_ACEOF
22029   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22030     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
22031     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
22032 _ACEOF
22033 cat >>$CONFIG_STATUS <<\_ACEOF
22034   --version | --vers* | -V )
22035     echo "$ac_cs_version"; exit 0 ;;
22036   --he | --h)
22037     # Conflict between --help and --header
22038     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22039 Try \`$0 --help' for more information." >&5
22040 echo "$as_me: error: ambiguous option: $1
22041 Try \`$0 --help' for more information." >&2;}
22042    { (exit 1); exit 1; }; };;
22043   --help | --hel | -h )
22044     echo "$ac_cs_usage"; exit 0 ;;
22045   --debug | --d* | -d )
22046     debug=: ;;
22047   --file | --fil | --fi | --f )
22048     shift
22049     CONFIG_FILES="$CONFIG_FILES $1"
22050     ac_need_defaults=false;;
22051   --header | --heade | --head | --hea )
22052     shift
22053     CONFIG_HEADERS="$CONFIG_HEADERS $1"
22054     ac_need_defaults=false;;
22055
22056   # This is an error.
22057   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22058 Try \`$0 --help' for more information." >&5
22059 echo "$as_me: error: unrecognized option: $1
22060 Try \`$0 --help' for more information." >&2;}
22061    { (exit 1); exit 1; }; } ;;
22062
22063   *) ac_config_targets="$ac_config_targets $1" ;;
22064
22065   esac
22066   shift
22067 done
22068
22069 _ACEOF
22070
22071
22072
22073
22074
22075 cat >>$CONFIG_STATUS <<\_ACEOF
22076 for ac_config_target in $ac_config_targets
22077 do
22078   case "$ac_config_target" in
22079   # Handling of arguments.
22080   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22081   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
22082   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22083 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22084    { (exit 1); exit 1; }; };;
22085   esac
22086 done
22087
22088 # If the user did not use the arguments to specify the items to instantiate,
22089 # then the envvar interface is used.  Set only those that are not.
22090 # We use the long form for the default assignment because of an extremely
22091 # bizarre bug on SunOS 4.1.3.
22092 if $ac_need_defaults; then
22093   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22094   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22095 fi
22096
22097 # Create a temporary directory, and hook for its removal unless debugging.
22098 $debug ||
22099 {
22100   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22101   trap '{ (exit 1); exit 1; }' 1 2 13 15
22102 }
22103
22104 # Create a (secure) tmp directory for tmp files.
22105 : ${TMPDIR=/tmp}
22106 {
22107   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
22108   test -n "$tmp" && test -d "$tmp"
22109 }  ||
22110 {
22111   tmp=$TMPDIR/cs$$-$RANDOM
22112   (umask 077 && mkdir $tmp)
22113 } ||
22114 {
22115    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
22116    { (exit 1); exit 1; }
22117 }
22118
22119 _ACEOF
22120
22121 cat >>$CONFIG_STATUS <<_ACEOF
22122
22123 #
22124 # CONFIG_FILES section.
22125 #
22126
22127 # No need to generate the scripts if there are no CONFIG_FILES.
22128 # This happens for instance when ./config.status config.h
22129 if test -n "\$CONFIG_FILES"; then
22130   # Protect against being on the right side of a sed subst in config.status.
22131   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22132    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22133 s,@SHELL@,$SHELL,;t t
22134 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22135 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22136 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22137 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22138 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22139 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22140 s,@exec_prefix@,$exec_prefix,;t t
22141 s,@prefix@,$prefix,;t t
22142 s,@program_transform_name@,$program_transform_name,;t t
22143 s,@bindir@,$bindir,;t t
22144 s,@sbindir@,$sbindir,;t t
22145 s,@libexecdir@,$libexecdir,;t t
22146 s,@datadir@,$datadir,;t t
22147 s,@sysconfdir@,$sysconfdir,;t t
22148 s,@sharedstatedir@,$sharedstatedir,;t t
22149 s,@localstatedir@,$localstatedir,;t t
22150 s,@libdir@,$libdir,;t t
22151 s,@includedir@,$includedir,;t t
22152 s,@oldincludedir@,$oldincludedir,;t t
22153 s,@infodir@,$infodir,;t t
22154 s,@mandir@,$mandir,;t t
22155 s,@build_alias@,$build_alias,;t t
22156 s,@host_alias@,$host_alias,;t t
22157 s,@target_alias@,$target_alias,;t t
22158 s,@DEFS@,$DEFS,;t t
22159 s,@ECHO_C@,$ECHO_C,;t t
22160 s,@ECHO_N@,$ECHO_N,;t t
22161 s,@ECHO_T@,$ECHO_T,;t t
22162 s,@LIBS@,$LIBS,;t t
22163 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22164 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22165 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22166 s,@build@,$build,;t t
22167 s,@build_cpu@,$build_cpu,;t t
22168 s,@build_vendor@,$build_vendor,;t t
22169 s,@build_os@,$build_os,;t t
22170 s,@host@,$host,;t t
22171 s,@host_cpu@,$host_cpu,;t t
22172 s,@host_vendor@,$host_vendor,;t t
22173 s,@host_os@,$host_os,;t t
22174 s,@target@,$target,;t t
22175 s,@target_cpu@,$target_cpu,;t t
22176 s,@target_vendor@,$target_vendor,;t t
22177 s,@target_os@,$target_os,;t t
22178 s,@OS@,$OS,;t t
22179 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
22180 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
22181 s,@ARCH@,$ARCH,;t t
22182 s,@CXX@,$CXX,;t t
22183 s,@CXXFLAGS@,$CXXFLAGS,;t t
22184 s,@LDFLAGS@,$LDFLAGS,;t t
22185 s,@CPPFLAGS@,$CPPFLAGS,;t t
22186 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22187 s,@EXEEXT@,$EXEEXT,;t t
22188 s,@OBJEXT@,$OBJEXT,;t t
22189 s,@CC@,$CC,;t t
22190 s,@CFLAGS@,$CFLAGS,;t t
22191 s,@ac_ct_CC@,$ac_ct_CC,;t t
22192 s,@CPP@,$CPP,;t t
22193 s,@ifGNUmake@,$ifGNUmake,;t t
22194 s,@LEX@,$LEX,;t t
22195 s,@LEXLIB@,$LEXLIB,;t t
22196 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
22197 s,@YACC@,$YACC,;t t
22198 s,@EGREP@,$EGREP,;t t
22199 s,@LN_S@,$LN_S,;t t
22200 s,@ECHO@,$ECHO,;t t
22201 s,@AR@,$AR,;t t
22202 s,@ac_ct_AR@,$ac_ct_AR,;t t
22203 s,@RANLIB@,$RANLIB,;t t
22204 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22205 s,@STRIP@,$STRIP,;t t
22206 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22207 s,@CXXCPP@,$CXXCPP,;t t
22208 s,@F77@,$F77,;t t
22209 s,@FFLAGS@,$FFLAGS,;t t
22210 s,@ac_ct_F77@,$ac_ct_F77,;t t
22211 s,@LIBTOOL@,$LIBTOOL,;t t
22212 s,@SED@,$SED,;t t
22213 s,@RM@,$RM,;t t
22214 s,@MKDIR@,$MKDIR,;t t
22215 s,@DATE@,$DATE,;t t
22216 s,@MV@,$MV,;t t
22217 s,@DOT@,$DOT,;t t
22218 s,@ETAGS@,$ETAGS,;t t
22219 s,@PURIFY@,$PURIFY,;t t
22220 s,@ALLOCA@,$ALLOCA,;t t
22221 s,@LIBOBJS@,$LIBOBJS,;t t
22222 s,@MMAP_FILE@,$MMAP_FILE,;t t
22223 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
22224 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
22225 s,@USE_SPEC@,$USE_SPEC,;t t
22226 s,@UPB@,$UPB,;t t
22227 s,@JIT@,$JIT,;t t
22228 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
22229 s,@BCR@,$BCR,;t t
22230 s,@PAPIDIR@,$PAPIDIR,;t t
22231 s,@OBJROOT@,$OBJROOT,;t t
22232 CEOF
22233
22234 _ACEOF
22235
22236   cat >>$CONFIG_STATUS <<\_ACEOF
22237   # Split the substitutions into bite-sized pieces for seds with
22238   # small command number limits, like on Digital OSF/1 and HP-UX.
22239   ac_max_sed_lines=48
22240   ac_sed_frag=1 # Number of current file.
22241   ac_beg=1 # First line for current file.
22242   ac_end=$ac_max_sed_lines # Line after last line for current file.
22243   ac_more_lines=:
22244   ac_sed_cmds=
22245   while $ac_more_lines; do
22246     if test $ac_beg -gt 1; then
22247       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22248     else
22249       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22250     fi
22251     if test ! -s $tmp/subs.frag; then
22252       ac_more_lines=false
22253     else
22254       # The purpose of the label and of the branching condition is to
22255       # speed up the sed processing (if there are no `@' at all, there
22256       # is no need to browse any of the substitutions).
22257       # These are the two extra sed commands mentioned above.
22258       (echo ':t
22259   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22260       if test -z "$ac_sed_cmds"; then
22261         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22262       else
22263         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22264       fi
22265       ac_sed_frag=`expr $ac_sed_frag + 1`
22266       ac_beg=$ac_end
22267       ac_end=`expr $ac_end + $ac_max_sed_lines`
22268     fi
22269   done
22270   if test -z "$ac_sed_cmds"; then
22271     ac_sed_cmds=cat
22272   fi
22273 fi # test -n "$CONFIG_FILES"
22274
22275 _ACEOF
22276 cat >>$CONFIG_STATUS <<\_ACEOF
22277 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22278   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22279   case $ac_file in
22280   - | *:- | *:-:* ) # input from stdin
22281         cat >$tmp/stdin
22282         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22283         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22284   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22285         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22286   * )   ac_file_in=$ac_file.in ;;
22287   esac
22288
22289   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22290   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22292          X"$ac_file" : 'X\(//\)[^/]' \| \
22293          X"$ac_file" : 'X\(//\)$' \| \
22294          X"$ac_file" : 'X\(/\)' \| \
22295          .     : '\(.\)' 2>/dev/null ||
22296 echo X"$ac_file" |
22297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22298           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22299           /^X\(\/\/\)$/{ s//\1/; q; }
22300           /^X\(\/\).*/{ s//\1/; q; }
22301           s/.*/./; q'`
22302   { case "$ac_dir" in
22303   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22304   *)                      as_incr_dir=.;;
22305 esac
22306 as_dummy="$ac_dir"
22307 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22308   case $as_mkdir_dir in
22309     # Skip DOS drivespec
22310     ?:) as_incr_dir=$as_mkdir_dir ;;
22311     *)
22312       as_incr_dir=$as_incr_dir/$as_mkdir_dir
22313       test -d "$as_incr_dir" ||
22314         mkdir "$as_incr_dir" ||
22315         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
22316 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
22317    { (exit 1); exit 1; }; }
22318     ;;
22319   esac
22320 done; }
22321
22322   ac_builddir=.
22323
22324 if test "$ac_dir" != .; then
22325   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22326   # A "../" for each directory in $ac_dir_suffix.
22327   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22328 else
22329   ac_dir_suffix= ac_top_builddir=
22330 fi
22331
22332 case $srcdir in
22333   .)  # No --srcdir option.  We are building in place.
22334     ac_srcdir=.
22335     if test -z "$ac_top_builddir"; then
22336        ac_top_srcdir=.
22337     else
22338        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22339     fi ;;
22340   [\\/]* | ?:[\\/]* )  # Absolute path.
22341     ac_srcdir=$srcdir$ac_dir_suffix;
22342     ac_top_srcdir=$srcdir ;;
22343   *) # Relative path.
22344     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22345     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22346 esac
22347 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
22348 # absolute.
22349 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
22350 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
22351 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
22352 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
22353
22354
22355   case $INSTALL in
22356   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22357   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22358   esac
22359
22360   if test x"$ac_file" != x-; then
22361     { echo "$as_me:$LINENO: creating $ac_file" >&5
22362 echo "$as_me: creating $ac_file" >&6;}
22363     rm -f "$ac_file"
22364   fi
22365   # Let's still pretend it is `configure' which instantiates (i.e., don't
22366   # use $as_me), people would be surprised to read:
22367   #    /* config.h.  Generated by config.status.  */
22368   if test x"$ac_file" = x-; then
22369     configure_input=
22370   else
22371     configure_input="$ac_file.  "
22372   fi
22373   configure_input=$configure_input"Generated from `echo $ac_file_in |
22374                                      sed 's,.*/,,'` by configure."
22375
22376   # First look for the input files in the build tree, otherwise in the
22377   # src tree.
22378   ac_file_inputs=`IFS=:
22379     for f in $ac_file_in; do
22380       case $f in
22381       -) echo $tmp/stdin ;;
22382       [\\/$]*)
22383          # Absolute (can't be DOS-style, as IFS=:)
22384          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22385 echo "$as_me: error: cannot find input file: $f" >&2;}
22386    { (exit 1); exit 1; }; }
22387          echo $f;;
22388       *) # Relative
22389          if test -f "$f"; then
22390            # Build tree
22391            echo $f
22392          elif test -f "$srcdir/$f"; then
22393            # Source tree
22394            echo $srcdir/$f
22395          else
22396            # /dev/null tree
22397            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22398 echo "$as_me: error: cannot find input file: $f" >&2;}
22399    { (exit 1); exit 1; }; }
22400          fi;;
22401       esac
22402     done` || { (exit 1); exit 1; }
22403 _ACEOF
22404 cat >>$CONFIG_STATUS <<_ACEOF
22405   sed "$ac_vpsub
22406 $extrasub
22407 _ACEOF
22408 cat >>$CONFIG_STATUS <<\_ACEOF
22409 :t
22410 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22411 s,@configure_input@,$configure_input,;t t
22412 s,@srcdir@,$ac_srcdir,;t t
22413 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22414 s,@top_srcdir@,$ac_top_srcdir,;t t
22415 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22416 s,@builddir@,$ac_builddir,;t t
22417 s,@abs_builddir@,$ac_abs_builddir,;t t
22418 s,@top_builddir@,$ac_top_builddir,;t t
22419 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22420 s,@INSTALL@,$ac_INSTALL,;t t
22421 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22422   rm -f $tmp/stdin
22423   if test x"$ac_file" != x-; then
22424     mv $tmp/out $ac_file
22425   else
22426     cat $tmp/out
22427     rm -f $tmp/out
22428   fi
22429
22430 done
22431 _ACEOF
22432 cat >>$CONFIG_STATUS <<\_ACEOF
22433
22434 #
22435 # CONFIG_HEADER section.
22436 #
22437
22438 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22439 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22440 #
22441 # ac_d sets the value in "#define NAME VALUE" lines.
22442 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
22443 ac_dB='[        ].*$,\1#\2'
22444 ac_dC=' '
22445 ac_dD=',;t'
22446 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22447 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22448 ac_uB='$,\1#\2define\3'
22449 ac_uC=' '
22450 ac_uD=',;t'
22451
22452 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22453   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22454   case $ac_file in
22455   - | *:- | *:-:* ) # input from stdin
22456         cat >$tmp/stdin
22457         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22458         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22459   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22460         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22461   * )   ac_file_in=$ac_file.in ;;
22462   esac
22463
22464   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22465 echo "$as_me: creating $ac_file" >&6;}
22466
22467   # First look for the input files in the build tree, otherwise in the
22468   # src tree.
22469   ac_file_inputs=`IFS=:
22470     for f in $ac_file_in; do
22471       case $f in
22472       -) echo $tmp/stdin ;;
22473       [\\/$]*)
22474          # Absolute (can't be DOS-style, as IFS=:)
22475          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22476 echo "$as_me: error: cannot find input file: $f" >&2;}
22477    { (exit 1); exit 1; }; }
22478          echo $f;;
22479       *) # Relative
22480          if test -f "$f"; then
22481            # Build tree
22482            echo $f
22483          elif test -f "$srcdir/$f"; then
22484            # Source tree
22485            echo $srcdir/$f
22486          else
22487            # /dev/null tree
22488            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22489 echo "$as_me: error: cannot find input file: $f" >&2;}
22490    { (exit 1); exit 1; }; }
22491          fi;;
22492       esac
22493     done` || { (exit 1); exit 1; }
22494   # Remove the trailing spaces.
22495   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
22496
22497 _ACEOF
22498
22499 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22500 # `conftest.undefs', that substitutes the proper values into
22501 # config.h.in to produce config.h.  The first handles `#define'
22502 # templates, and the second `#undef' templates.
22503 # And first: Protect against being on the right side of a sed subst in
22504 # config.status.  Protect against being in an unquoted here document
22505 # in config.status.
22506 rm -f conftest.defines conftest.undefs
22507 # Using a here document instead of a string reduces the quoting nightmare.
22508 # Putting comments in sed scripts is not portable.
22509 #
22510 # `end' is used to avoid that the second main sed command (meant for
22511 # 0-ary CPP macros) applies to n-ary macro definitions.
22512 # See the Autoconf documentation for `clear'.
22513 cat >confdef2sed.sed <<\_ACEOF
22514 s/[\\&,]/\\&/g
22515 s,[\\$`],\\&,g
22516 t clear
22517 : clear
22518 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22519 t end
22520 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22521 : end
22522 _ACEOF
22523 # If some macros were called several times there might be several times
22524 # the same #defines, which is useless.  Nevertheless, we may not want to
22525 # sort them, since we want the *last* AC-DEFINE to be honored.
22526 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22527 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22528 rm -f confdef2sed.sed
22529
22530 # This sed command replaces #undef with comments.  This is necessary, for
22531 # example, in the case of _POSIX_SOURCE, which is predefined and required
22532 # on some systems where configure will not decide to define it.
22533 cat >>conftest.undefs <<\_ACEOF
22534 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22535 _ACEOF
22536
22537 # Break up conftest.defines because some shells have a limit on the size
22538 # of here documents, and old seds have small limits too (100 cmds).
22539 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22540 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22541 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22542 echo '  :' >>$CONFIG_STATUS
22543 rm -f conftest.tail
22544 while grep . conftest.defines >/dev/null
22545 do
22546   # Write a limited-size here document to $tmp/defines.sed.
22547   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22548   # Speed up: don't consider the non `#define' lines.
22549   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
22550   # Work around the forget-to-reset-the-flag bug.
22551   echo 't clr' >>$CONFIG_STATUS
22552   echo ': clr' >>$CONFIG_STATUS
22553   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22554   echo 'CEOF
22555   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22556   rm -f $tmp/in
22557   mv $tmp/out $tmp/in
22558 ' >>$CONFIG_STATUS
22559   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22560   rm -f conftest.defines
22561   mv conftest.tail conftest.defines
22562 done
22563 rm -f conftest.defines
22564 echo '  fi # egrep' >>$CONFIG_STATUS
22565 echo >>$CONFIG_STATUS
22566
22567 # Break up conftest.undefs because some shells have a limit on the size
22568 # of here documents, and old seds have small limits too (100 cmds).
22569 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22570 rm -f conftest.tail
22571 while grep . conftest.undefs >/dev/null
22572 do
22573   # Write a limited-size here document to $tmp/undefs.sed.
22574   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22575   # Speed up: don't consider the non `#undef'
22576   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22577   # Work around the forget-to-reset-the-flag bug.
22578   echo 't clr' >>$CONFIG_STATUS
22579   echo ': clr' >>$CONFIG_STATUS
22580   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22581   echo 'CEOF
22582   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22583   rm -f $tmp/in
22584   mv $tmp/out $tmp/in
22585 ' >>$CONFIG_STATUS
22586   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22587   rm -f conftest.undefs
22588   mv conftest.tail conftest.undefs
22589 done
22590 rm -f conftest.undefs
22591
22592 cat >>$CONFIG_STATUS <<\_ACEOF
22593   # Let's still pretend it is `configure' which instantiates (i.e., don't
22594   # use $as_me), people would be surprised to read:
22595   #    /* config.h.  Generated by config.status.  */
22596   if test x"$ac_file" = x-; then
22597     echo "/* Generated by configure.  */" >$tmp/config.h
22598   else
22599     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22600   fi
22601   cat $tmp/in >>$tmp/config.h
22602   rm -f $tmp/in
22603   if test x"$ac_file" != x-; then
22604     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
22605       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22606 echo "$as_me: $ac_file is unchanged" >&6;}
22607     else
22608       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22610          X"$ac_file" : 'X\(//\)[^/]' \| \
22611          X"$ac_file" : 'X\(//\)$' \| \
22612          X"$ac_file" : 'X\(/\)' \| \
22613          .     : '\(.\)' 2>/dev/null ||
22614 echo X"$ac_file" |
22615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22616           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22617           /^X\(\/\/\)$/{ s//\1/; q; }
22618           /^X\(\/\).*/{ s//\1/; q; }
22619           s/.*/./; q'`
22620       { case "$ac_dir" in
22621   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22622   *)                      as_incr_dir=.;;
22623 esac
22624 as_dummy="$ac_dir"
22625 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22626   case $as_mkdir_dir in
22627     # Skip DOS drivespec
22628     ?:) as_incr_dir=$as_mkdir_dir ;;
22629     *)
22630       as_incr_dir=$as_incr_dir/$as_mkdir_dir
22631       test -d "$as_incr_dir" ||
22632         mkdir "$as_incr_dir" ||
22633         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
22634 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
22635    { (exit 1); exit 1; }; }
22636     ;;
22637   esac
22638 done; }
22639
22640       rm -f $ac_file
22641       mv $tmp/config.h $ac_file
22642     fi
22643   else
22644     cat $tmp/config.h
22645     rm -f $tmp/config.h
22646   fi
22647 done
22648 _ACEOF
22649
22650 cat >>$CONFIG_STATUS <<\_ACEOF
22651
22652 { (exit 0); exit 0; }
22653 _ACEOF
22654 chmod +x $CONFIG_STATUS
22655 ac_clean_files=$ac_clean_files_save
22656
22657
22658 # configure is writing to config.log, and then calls config.status.
22659 # config.status does its own redirection, appending to config.log.
22660 # Unfortunately, on DOS this fails, as config.log is still kept open
22661 # by configure, so config.status won't be able to write to it; its
22662 # output is simply discarded.  So we exec the FD to /dev/null,
22663 # effectively closing config.log, so it can be properly (re)opened and
22664 # appended to by config.status.  When coming back to configure, we
22665 # need to make the FD available again.
22666 if test "$no_create" != yes; then
22667   ac_cs_success=:
22668   exec 5>/dev/null
22669   $SHELL $CONFIG_STATUS || ac_cs_success=false
22670   exec 5>>config.log
22671   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22672   # would make configure fail if this is the last instruction.
22673   $ac_cs_success || { (exit 1); exit 1; }
22674 fi
22675