140d24668ec346addc537599a817a6ece8efb85d
[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-llc_diffs      Enable LLC Diffs when testing (default is YES)
1021   --enable-jit            Enable Just In Time Compiling (default is YES)
1022
1023 Optional Packages:
1024   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1025   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1026   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1027   --with-pic              try to use only PIC/non-PIC objects [default=use
1028                           both]
1029   --with-tags[=TAGS]
1030                           include additional configurations [automatic]
1031   --with-spec             Location of SPEC benchmarks
1032   --with-llvmgccdir       Location of LLVM GCC front-end
1033   --with-bcrepos          Location of Bytecode Repository
1034   --with-papi             Location of PAPI
1035   --with-purify           Location of purify program
1036
1037 Some influential environment variables:
1038   CXX         C++ compiler command
1039   CXXFLAGS    C++ compiler flags
1040   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1041               nonstandard directory <lib dir>
1042   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1043               headers in a nonstandard directory <include dir>
1044   CC          C compiler command
1045   CFLAGS      C compiler flags
1046   CPP         C preprocessor
1047   CXXCPP      C++ preprocessor
1048   F77         Fortran 77 compiler command
1049   FFLAGS      Fortran 77 compiler flags
1050
1051 Use these variables to override the choices made by `configure' or to help
1052 it to find libraries and programs with nonstandard names/locations.
1053
1054 Report bugs to <llvmbugs@cs.uiuc.edu>.
1055 _ACEOF
1056 fi
1057
1058 if test "$ac_init_help" = "recursive"; then
1059   # If there are subdirs, report their specific --help.
1060   ac_popdir=`pwd`
1061   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1062     test -d $ac_dir || continue
1063     ac_builddir=.
1064
1065 if test "$ac_dir" != .; then
1066   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1067   # A "../" for each directory in $ac_dir_suffix.
1068   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1069 else
1070   ac_dir_suffix= ac_top_builddir=
1071 fi
1072
1073 case $srcdir in
1074   .)  # No --srcdir option.  We are building in place.
1075     ac_srcdir=.
1076     if test -z "$ac_top_builddir"; then
1077        ac_top_srcdir=.
1078     else
1079        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1080     fi ;;
1081   [\\/]* | ?:[\\/]* )  # Absolute path.
1082     ac_srcdir=$srcdir$ac_dir_suffix;
1083     ac_top_srcdir=$srcdir ;;
1084   *) # Relative path.
1085     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1086     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1087 esac
1088 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1089 # absolute.
1090 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1091 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1092 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1093 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1094
1095     cd $ac_dir
1096     # Check for guested configure; otherwise get Cygnus style configure.
1097     if test -f $ac_srcdir/configure.gnu; then
1098       echo
1099       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1100     elif test -f $ac_srcdir/configure; then
1101       echo
1102       $SHELL $ac_srcdir/configure  --help=recursive
1103     elif test -f $ac_srcdir/configure.ac ||
1104            test -f $ac_srcdir/configure.in; then
1105       echo
1106       $ac_configure --help
1107     else
1108       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1109     fi
1110     cd $ac_popdir
1111   done
1112 fi
1113
1114 test -n "$ac_init_help" && exit 0
1115 if $ac_init_version; then
1116   cat <<\_ACEOF
1117 [LLVM] configure [1.0]
1118 generated by GNU Autoconf 2.53
1119
1120 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1121 Free Software Foundation, Inc.
1122 This configure script is free software; the Free Software Foundation
1123 gives unlimited permission to copy, distribute and modify it.
1124 _ACEOF
1125   exit 0
1126 fi
1127 exec 5>config.log
1128 cat >&5 <<_ACEOF
1129 This file contains any messages produced by compilers while
1130 running configure, to aid debugging if configure makes a mistake.
1131
1132 It was created by [LLVM] $as_me [1.0], which was
1133 generated by GNU Autoconf 2.53.  Invocation command line was
1134
1135   $ $0 $@
1136
1137 _ACEOF
1138 {
1139 cat <<_ASUNAME
1140 ## --------- ##
1141 ## Platform. ##
1142 ## --------- ##
1143
1144 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1145 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1146 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1147 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1148 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1149
1150 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1151 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1152
1153 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1154 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1155 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1156 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1157 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1158 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1159 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1160
1161 _ASUNAME
1162
1163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1164 for as_dir in $PATH
1165 do
1166   IFS=$as_save_IFS
1167   test -z "$as_dir" && as_dir=.
1168   echo "PATH: $as_dir"
1169 done
1170
1171 } >&5
1172
1173 cat >&5 <<_ACEOF
1174
1175
1176 ## ----------- ##
1177 ## Core tests. ##
1178 ## ----------- ##
1179
1180 _ACEOF
1181
1182
1183 # Keep a trace of the command line.
1184 # Strip out --no-create and --no-recursion so they do not pile up.
1185 # Also quote any args containing shell meta-characters.
1186 ac_configure_args=
1187 ac_sep=
1188 for ac_arg
1189 do
1190   case $ac_arg in
1191   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192   | --no-cr | --no-c | -n ) continue ;;
1193   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1194   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1195     continue ;;
1196   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1197     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1198   esac
1199   case " $ac_configure_args " in
1200     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1201     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1202        ac_sep=" " ;;
1203   esac
1204   # Get rid of the leading space.
1205 done
1206
1207 # When interrupted or exit'd, cleanup temporary files, and complete
1208 # config.log.  We remove comments because anyway the quotes in there
1209 # would cause problems or look ugly.
1210 # WARNING: Be sure not to use single quotes in there, as some shells,
1211 # such as our DU 5.0 friend, will then `close' the trap.
1212 trap 'exit_status=$?
1213   # Save into config.log some information that might help in debugging.
1214   {
1215     echo
1216     cat <<\_ASBOX
1217 ## ---------------- ##
1218 ## Cache variables. ##
1219 ## ---------------- ##
1220 _ASBOX
1221     echo
1222     # The following way of writing the cache mishandles newlines in values,
1223 {
1224   (set) 2>&1 |
1225     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1226     *ac_space=\ *)
1227       sed -n \
1228         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1229           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1230       ;;
1231     *)
1232       sed -n \
1233         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1234       ;;
1235     esac;
1236 }
1237     echo
1238     if test -s confdefs.h; then
1239       cat <<\_ASBOX
1240 ## ----------- ##
1241 ## confdefs.h. ##
1242 ## ----------- ##
1243 _ASBOX
1244       echo
1245       sed "/^$/d" confdefs.h
1246       echo
1247     fi
1248     test "$ac_signal" != 0 &&
1249       echo "$as_me: caught signal $ac_signal"
1250     echo "$as_me: exit $exit_status"
1251   } >&5
1252   rm -f core core.* *.core &&
1253   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1254     exit $exit_status
1255      ' 0
1256 for ac_signal in 1 2 13 15; do
1257   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1258 done
1259 ac_signal=0
1260
1261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1262 rm -rf conftest* confdefs.h
1263 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1264 echo >confdefs.h
1265
1266 # Predefined preprocessor variables.
1267
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_NAME "$PACKAGE_NAME"
1270 _ACEOF
1271
1272
1273 cat >>confdefs.h <<_ACEOF
1274 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1275 _ACEOF
1276
1277
1278 cat >>confdefs.h <<_ACEOF
1279 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1280 _ACEOF
1281
1282
1283 cat >>confdefs.h <<_ACEOF
1284 #define PACKAGE_STRING "$PACKAGE_STRING"
1285 _ACEOF
1286
1287
1288 cat >>confdefs.h <<_ACEOF
1289 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1290 _ACEOF
1291
1292
1293 # Let the site file select an alternate cache file if it wants to.
1294 # Prefer explicitly selected file to automatically selected ones.
1295 if test -z "$CONFIG_SITE"; then
1296   if test "x$prefix" != xNONE; then
1297     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1298   else
1299     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1300   fi
1301 fi
1302 for ac_site_file in $CONFIG_SITE; do
1303   if test -r "$ac_site_file"; then
1304     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1305 echo "$as_me: loading site script $ac_site_file" >&6;}
1306     sed 's/^/| /' "$ac_site_file" >&5
1307     . "$ac_site_file"
1308   fi
1309 done
1310
1311 if test -r "$cache_file"; then
1312   # Some versions of bash will fail to source /dev/null (special
1313   # files actually), so we avoid doing that.
1314   if test -f "$cache_file"; then
1315     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1316 echo "$as_me: loading cache $cache_file" >&6;}
1317     case $cache_file in
1318       [\\/]* | ?:[\\/]* ) . $cache_file;;
1319       *)                      . ./$cache_file;;
1320     esac
1321   fi
1322 else
1323   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1324 echo "$as_me: creating cache $cache_file" >&6;}
1325   >$cache_file
1326 fi
1327
1328 # Check that the precious variables saved in the cache have kept the same
1329 # value.
1330 ac_cache_corrupted=false
1331 for ac_var in `(set) 2>&1 |
1332                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1333   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1334   eval ac_new_set=\$ac_env_${ac_var}_set
1335   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1336   eval ac_new_val="\$ac_env_${ac_var}_value"
1337   case $ac_old_set,$ac_new_set in
1338     set,)
1339       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1340 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1341       ac_cache_corrupted=: ;;
1342     ,set)
1343       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1344 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1345       ac_cache_corrupted=: ;;
1346     ,);;
1347     *)
1348       if test "x$ac_old_val" != "x$ac_new_val"; then
1349         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1350 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1351         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1352 echo "$as_me:   former value:  $ac_old_val" >&2;}
1353         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1354 echo "$as_me:   current value: $ac_new_val" >&2;}
1355         ac_cache_corrupted=:
1356       fi;;
1357   esac
1358   # Pass precious variables to config.status.
1359   if test "$ac_new_set" = set; then
1360     case $ac_new_val in
1361     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1362       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1363     *) ac_arg=$ac_var=$ac_new_val ;;
1364     esac
1365     case " $ac_configure_args " in
1366       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1367       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1368     esac
1369   fi
1370 done
1371 if $ac_cache_corrupted; then
1372   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1373 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1374   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1375 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1376    { (exit 1); exit 1; }; }
1377 fi
1378
1379 ac_ext=c
1380 ac_cpp='$CPP $CPPFLAGS'
1381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1384
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 ac_aux_dir=
1412 for ac_dir in autoconf $srcdir/autoconf; do
1413   if test -f $ac_dir/install-sh; then
1414     ac_aux_dir=$ac_dir
1415     ac_install_sh="$ac_aux_dir/install-sh -c"
1416     break
1417   elif test -f $ac_dir/install.sh; then
1418     ac_aux_dir=$ac_dir
1419     ac_install_sh="$ac_aux_dir/install.sh -c"
1420     break
1421   elif test -f $ac_dir/shtool; then
1422     ac_aux_dir=$ac_dir
1423     ac_install_sh="$ac_aux_dir/shtool install -c"
1424     break
1425   fi
1426 done
1427 if test -z "$ac_aux_dir"; then
1428   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1429 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1430    { (exit 1); exit 1; }; }
1431 fi
1432 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1433 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1434 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1435
1436
1437 ac_config_headers="$ac_config_headers include/Config/config.h"
1438
1439 ac_config_commands="$ac_config_commands Makefile"
1440
1441
1442 ac_config_commands="$ac_config_commands Makefile.common"
1443
1444
1445 ac_config_commands="$ac_config_commands Makefile.rules"
1446
1447
1448 ac_config_commands="$ac_config_commands lib/Makefile"
1449
1450
1451 ac_config_commands="$ac_config_commands lib/Analysis/Makefile"
1452
1453
1454 ac_config_commands="$ac_config_commands lib/Analysis/DataStructure/Makefile"
1455
1456
1457 ac_config_commands="$ac_config_commands lib/Analysis/IPA/Makefile"
1458
1459
1460 ac_config_commands="$ac_config_commands lib/Analysis/LiveVar/Makefile"
1461
1462
1463 ac_config_commands="$ac_config_commands lib/AsmParser/Makefile"
1464
1465
1466 ac_config_commands="$ac_config_commands lib/Bytecode/Makefile"
1467
1468
1469 ac_config_commands="$ac_config_commands lib/Bytecode/Reader/Makefile"
1470
1471
1472 ac_config_commands="$ac_config_commands lib/Bytecode/Writer/Makefile"
1473
1474
1475 ac_config_commands="$ac_config_commands lib/CWriter/Makefile"
1476
1477
1478 ac_config_commands="$ac_config_commands lib/CodeGen/Makefile"
1479
1480
1481 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSched/Makefile"
1482
1483
1484 ac_config_commands="$ac_config_commands lib/CodeGen/InstrSelection/Makefile"
1485
1486
1487 ac_config_commands="$ac_config_commands lib/CodeGen/ModuloScheduling/Makefile"
1488
1489
1490 ac_config_commands="$ac_config_commands lib/CodeGen/RegAlloc/Makefile"
1491
1492
1493 ac_config_commands="$ac_config_commands lib/CodeGen/SelectionDAG/Makefile"
1494
1495
1496 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Makefile"
1497
1498
1499 ac_config_commands="$ac_config_commands lib/ExecutionEngine/Interpreter/Makefile"
1500
1501
1502 ac_config_commands="$ac_config_commands lib/ExecutionEngine/JIT/Makefile"
1503
1504
1505 ac_config_commands="$ac_config_commands lib/Support/Makefile"
1506
1507
1508 ac_config_commands="$ac_config_commands lib/Target/Makefile"
1509
1510
1511 ac_config_commands="$ac_config_commands lib/Target/Sparc/Makefile"
1512
1513
1514 ac_config_commands="$ac_config_commands lib/Target/X86/Makefile"
1515
1516
1517 ac_config_commands="$ac_config_commands lib/Transforms/Makefile"
1518
1519
1520 ac_config_commands="$ac_config_commands lib/Transforms/Hello/Makefile"
1521
1522
1523 ac_config_commands="$ac_config_commands lib/Transforms/IPO/Makefile"
1524
1525
1526 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/Makefile"
1527
1528
1529 ac_config_commands="$ac_config_commands lib/Transforms/Instrumentation/ProfilePaths/Makefile"
1530
1531
1532 ac_config_commands="$ac_config_commands lib/Transforms/Scalar/Makefile"
1533
1534
1535 ac_config_commands="$ac_config_commands lib/Transforms/Utils/Makefile"
1536
1537
1538 ac_config_commands="$ac_config_commands lib/VMCore/Makefile"
1539
1540
1541 ac_config_commands="$ac_config_commands runtime/Makefile"
1542
1543
1544 ac_config_commands="$ac_config_commands runtime/GCCLibraries/Makefile"
1545
1546
1547 ac_config_commands="$ac_config_commands runtime/GCCLibraries/crtend/Makefile"
1548
1549
1550 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libc/Makefile"
1551
1552
1553 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libg/Makefile"
1554
1555
1556 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libgcc/Makefile"
1557
1558
1559 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libm/Makefile"
1560
1561
1562 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libmalloc/Makefile"
1563
1564
1565 ac_config_commands="$ac_config_commands runtime/GCCLibraries/libucb/Makefile"
1566
1567
1568 ac_config_commands="$ac_config_commands runtime/libdummy/Makefile"
1569
1570
1571 ac_config_commands="$ac_config_commands runtime/libtrace/Makefile"
1572
1573
1574 ac_config_commands="$ac_config_commands test/Makefile"
1575
1576
1577 ac_config_commands="$ac_config_commands test/Makefile.tests"
1578
1579
1580 ac_config_commands="$ac_config_commands test/Programs/Makefile"
1581
1582
1583 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
1584
1585
1586 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
1587
1588
1589 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
1590
1591
1592 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.report"
1593
1594
1595 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
1596
1597
1598 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
1599
1600
1601 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
1602
1603
1604 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
1605
1606
1607 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
1608
1609
1610 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
1611
1612
1613 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
1614
1615
1616 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
1617
1618
1619 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
1620
1621
1622 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
1623
1624
1625 ac_config_commands="$ac_config_commands test/Programs/TEST.micro.Makefile"
1626
1627
1628 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
1629
1630
1631 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
1632
1633
1634 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/Makefile"
1635
1636
1637 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/179.art/Makefile"
1638
1639
1640 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/183.equake/Makefile"
1641
1642
1643 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CFP2000/188.ammp/Makefile"
1644
1645
1646 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/Makefile"
1647
1648
1649 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/164.gzip/Makefile"
1650
1651
1652 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/175.vpr/Makefile"
1653
1654
1655 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/176.gcc/Makefile"
1656
1657
1658 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/181.mcf/Makefile"
1659
1660
1661 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/186.crafty/Makefile"
1662
1663
1664 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/197.parser/Makefile"
1665
1666
1667 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/254.gap/Makefile"
1668
1669
1670 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/255.vortex/Makefile"
1671
1672
1673 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile"
1674
1675
1676 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/CINT2000/300.twolf/Makefile"
1677
1678
1679 ac_config_commands="$ac_config_commands test/Programs/LLVMSource/Makefile"
1680
1681
1682 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
1683
1684
1685 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
1686
1687
1688 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Burg/Makefile"
1689
1690
1691 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Fhourstones/Makefile"
1692
1693
1694 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/Makefile"
1695
1696
1697 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/01-qbsort/Makefile"
1698
1699
1700 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/03-testtrie/Makefile"
1701
1702
1703 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/04-bisect/Makefile"
1704
1705
1706 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/05-eks/Makefile"
1707
1708
1709 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/08-main/Makefile"
1710
1711
1712 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/09-vor/Makefile"
1713
1714
1715 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/12-IOtest/Makefile"
1716
1717
1718 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/15-trie/Makefile"
1719
1720
1721 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/17-bintr/Makefile"
1722
1723
1724 ac_config_commands="$ac_config_commands test/Programs/MultiSource/McCat/18-imp/Makefile"
1725
1726
1727 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/Makefile"
1728
1729
1730 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bh/Makefile"
1731
1732
1733 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/bisort/Makefile"
1734
1735
1736 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/em3d/Makefile"
1737
1738
1739 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/health/Makefile"
1740
1741
1742 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/mst/Makefile"
1743
1744
1745 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/perimeter/Makefile"
1746
1747
1748 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/power/Makefile"
1749
1750
1751 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/treeadd/Makefile"
1752
1753
1754 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/tsp/Makefile"
1755
1756
1757 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Olden/voronoi/Makefile"
1758
1759
1760 ac_config_commands="$ac_config_commands test/Programs/MultiSource/OptimizerEval/Makefile"
1761
1762
1763 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/Makefile"
1764
1765
1766 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/anagram/Makefile"
1767
1768
1769 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/bc/Makefile"
1770
1771
1772 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ft/Makefile"
1773
1774
1775 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/ks/Makefile"
1776
1777
1778 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Ptrdist/yacr2/Makefile"
1779
1780
1781 ac_config_commands="$ac_config_commands test/Programs/MultiSource/aha/Makefile"
1782
1783
1784 ac_config_commands="$ac_config_commands test/Programs/MultiSource/llubenchmark/Makefile"
1785
1786
1787 ac_config_commands="$ac_config_commands test/Programs/MultiSource/sgefa/Makefile"
1788
1789
1790 ac_config_commands="$ac_config_commands test/Programs/MultiSource/sim/Makefile"
1791
1792
1793 ac_config_commands="$ac_config_commands test/Programs/NoSource/Makefile"
1794
1795
1796 ac_config_commands="$ac_config_commands test/Programs/NoSource/Flex/Makefile"
1797
1798
1799 ac_config_commands="$ac_config_commands test/Programs/NoSource/Larn/Makefile"
1800
1801
1802 ac_config_commands="$ac_config_commands test/Programs/NoSource/Moria-5.5.2/Makefile"
1803
1804
1805 ac_config_commands="$ac_config_commands test/Programs/NoSource/Povray31/Makefile"
1806
1807
1808 ac_config_commands="$ac_config_commands test/Programs/NoSource/m4/Makefile"
1809
1810
1811 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
1812
1813
1814 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
1815
1816
1817 ac_config_commands="$ac_config_commands test/Programs/SingleSource/CustomChecked/Makefile"
1818
1819
1820 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Shootout/Makefile"
1821
1822
1823 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Stanford/Makefile"
1824
1825
1826 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/Makefile"
1827
1828
1829 ac_config_commands="$ac_config_commands tools/Makefile"
1830
1831
1832 ac_config_commands="$ac_config_commands tools/analyze/Makefile"
1833
1834
1835 ac_config_commands="$ac_config_commands tools/as/Makefile"
1836
1837
1838 ac_config_commands="$ac_config_commands tools/bugpoint/Makefile"
1839
1840
1841 ac_config_commands="$ac_config_commands tools/dis/Makefile"
1842
1843
1844 ac_config_commands="$ac_config_commands tools/extract/Makefile"
1845
1846
1847 ac_config_commands="$ac_config_commands tools/gccas/Makefile"
1848
1849
1850 ac_config_commands="$ac_config_commands tools/gccld/Makefile"
1851
1852
1853 ac_config_commands="$ac_config_commands tools/link/Makefile"
1854
1855
1856 ac_config_commands="$ac_config_commands tools/llc/Makefile"
1857
1858
1859 ac_config_commands="$ac_config_commands tools/lli/Makefile"
1860
1861
1862 ac_config_commands="$ac_config_commands tools/opt/Makefile"
1863
1864
1865 ac_config_commands="$ac_config_commands tools/llee/Makefile"
1866
1867
1868 ac_config_commands="$ac_config_commands tools/llvm-as/Makefile"
1869
1870
1871 ac_config_commands="$ac_config_commands tools/llvm-dis/Makefile"
1872
1873
1874 ac_config_commands="$ac_config_commands utils/Makefile"
1875
1876
1877 ac_config_commands="$ac_config_commands utils/Burg/Makefile"
1878
1879
1880 ac_config_commands="$ac_config_commands utils/Burg/Doc/Makefile"
1881
1882
1883 ac_config_commands="$ac_config_commands utils/TableGen/Makefile"
1884
1885
1886 ac_config_commands="$ac_config_commands www/docs/Makefile"
1887
1888
1889 ac_config_commands="$ac_config_commands projects/Makefile"
1890
1891
1892 ac_config_commands="$ac_config_commands projects/sample/Makefile"
1893
1894
1895 ac_config_commands="$ac_config_commands projects/sample/Makefile.common"
1896
1897
1898 ac_config_commands="$ac_config_commands projects/sample/Makefile.config"
1899
1900
1901 ac_config_commands="$ac_config_commands projects/sample/lib/Makefile"
1902
1903
1904 ac_config_commands="$ac_config_commands projects/sample/lib/sample/Makefile"
1905
1906
1907 ac_config_commands="$ac_config_commands projects/sample/tools/Makefile"
1908
1909
1910 ac_config_commands="$ac_config_commands projects/sample/tools/sample/Makefile"
1911
1912
1913 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile"
1914
1915
1916 ac_config_commands="$ac_config_commands projects/ModuleMaker/Makefile.common"
1917
1918
1919 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/Makefile"
1920
1921
1922 ac_config_commands="$ac_config_commands projects/ModuleMaker/tools/ModuleMaker/Makefile"
1923
1924
1925
1926
1927 # Find a good install program.  We prefer a C program (faster),
1928 # so one script is as good as another.  But avoid the broken or
1929 # incompatible versions:
1930 # SysV /etc/install, /usr/sbin/install
1931 # SunOS /usr/etc/install
1932 # IRIX /sbin/install
1933 # AIX /bin/install
1934 # AmigaOS /C/install, which installs bootblocks on floppy discs
1935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1938 # ./install, which can be erroneously created by make from ./install.sh.
1939 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1940 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1941 if test -z "$INSTALL"; then
1942 if test "${ac_cv_path_install+set}" = set; then
1943   echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948   IFS=$as_save_IFS
1949   test -z "$as_dir" && as_dir=.
1950   # Account for people who put trailing slashes in PATH elements.
1951 case $as_dir/ in
1952   ./ | .// | /cC/* | \
1953   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1954   /usr/ucb/* ) ;;
1955   *)
1956     # OSF1 and SCO ODT 3.0 have their own names for install.
1957     # Don't use installbsd from OSF since it installs stuff as root
1958     # by default.
1959     for ac_prog in ginstall scoinst install; do
1960       for ac_exec_ext in '' $ac_executable_extensions; do
1961         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1962           if test $ac_prog = install &&
1963             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1964             # AIX install.  It has an incompatible calling convention.
1965             :
1966           elif test $ac_prog = install &&
1967             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1968             # program-specific install script used by HP pwplus--don't use.
1969             :
1970           else
1971             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1972             break 3
1973           fi
1974         fi
1975       done
1976     done
1977     ;;
1978 esac
1979 done
1980
1981
1982 fi
1983   if test "${ac_cv_path_install+set}" = set; then
1984     INSTALL=$ac_cv_path_install
1985   else
1986     # As a last resort, use the slow shell script.  We don't cache a
1987     # path for INSTALL within a source directory, because that will
1988     # break other packages using the cache if that directory is
1989     # removed, or if the path is relative.
1990     INSTALL=$ac_install_sh
1991   fi
1992 fi
1993 echo "$as_me:$LINENO: result: $INSTALL" >&5
1994 echo "${ECHO_T}$INSTALL" >&6
1995
1996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1997 # It thinks the first close brace ends the variable substitution.
1998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1999
2000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2001
2002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2003
2004
2005 # Make sure we can run config.sub.
2006 $ac_config_sub sun4 >/dev/null 2>&1 ||
2007   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2008 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2009    { (exit 1); exit 1; }; }
2010
2011 echo "$as_me:$LINENO: checking build system type" >&5
2012 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2013 if test "${ac_cv_build+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   ac_cv_build_alias=$build_alias
2017 test -z "$ac_cv_build_alias" &&
2018   ac_cv_build_alias=`$ac_config_guess`
2019 test -z "$ac_cv_build_alias" &&
2020   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2021 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2022    { (exit 1); exit 1; }; }
2023 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2024   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2025 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2026    { (exit 1); exit 1; }; }
2027
2028 fi
2029 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2030 echo "${ECHO_T}$ac_cv_build" >&6
2031 build=$ac_cv_build
2032 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2033 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2034 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2035
2036
2037 echo "$as_me:$LINENO: checking host system type" >&5
2038 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2039 if test "${ac_cv_host+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   ac_cv_host_alias=$host_alias
2043 test -z "$ac_cv_host_alias" &&
2044   ac_cv_host_alias=$ac_cv_build_alias
2045 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2046   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2047 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2048    { (exit 1); exit 1; }; }
2049
2050 fi
2051 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2052 echo "${ECHO_T}$ac_cv_host" >&6
2053 host=$ac_cv_host
2054 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2055 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2056 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2057
2058
2059 echo "$as_me:$LINENO: checking target system type" >&5
2060 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2061 if test "${ac_cv_target+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   ac_cv_target_alias=$target_alias
2065 test "x$ac_cv_target_alias" = "x" &&
2066   ac_cv_target_alias=$ac_cv_host_alias
2067 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2068   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2069 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2070    { (exit 1); exit 1; }; }
2071
2072 fi
2073 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2074 echo "${ECHO_T}$ac_cv_target" >&6
2075 target=$ac_cv_target
2076 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2077 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2078 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2079
2080
2081 # The aliases save the names the user supplied, while $host etc.
2082 # will get canonicalized.
2083 test -n "$target_alias" &&
2084   test "$program_prefix$program_suffix$program_transform_name" = \
2085     NONENONEs,x,x, &&
2086   program_prefix=${target_alias}-
2087
2088 case $build in
2089         *i*86*)  OS=Linux
2090
2091                  LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2092
2093                  ;;
2094
2095         *sparc*) OS=SunOS
2096
2097                  LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
2098
2099                  ;;
2100
2101         *)       OS=Unknown
2102
2103                  ;;
2104 esac
2105
2106 case $target in
2107         *sparc*solaris*)  target=sparcv9-sun-solaris2.8
2108
2109                           ;;
2110 esac
2111
2112 case $target in
2113         *i*86*)           ARCH=x86
2114
2115                           ;;
2116         *sparc*solaris*)  ARCH=Sparc
2117
2118                           ;;
2119 esac
2120
2121
2122 ac_ext=cc
2123 ac_cpp='$CXXCPP $CPPFLAGS'
2124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2127 if test -n "$ac_tool_prefix"; then
2128   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2129   do
2130     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134 if test "${ac_cv_prog_CXX+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   if test -n "$CXX"; then
2138   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143   IFS=$as_save_IFS
2144   test -z "$as_dir" && as_dir=.
2145   for ac_exec_ext in '' $ac_executable_extensions; do
2146   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149     break 2
2150   fi
2151 done
2152 done
2153
2154 fi
2155 fi
2156 CXX=$ac_cv_prog_CXX
2157 if test -n "$CXX"; then
2158   echo "$as_me:$LINENO: result: $CXX" >&5
2159 echo "${ECHO_T}$CXX" >&6
2160 else
2161   echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2163 fi
2164
2165     test -n "$CXX" && break
2166   done
2167 fi
2168 if test -z "$CXX"; then
2169   ac_ct_CXX=$CXX
2170   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2171 do
2172   # Extract the first word of "$ac_prog", so it can be a program name with args.
2173 set dummy $ac_prog; ac_word=$2
2174 echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2177   echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179   if test -n "$ac_ct_CXX"; then
2180   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2181 else
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 for as_dir in $PATH
2184 do
2185   IFS=$as_save_IFS
2186   test -z "$as_dir" && as_dir=.
2187   for ac_exec_ext in '' $ac_executable_extensions; do
2188   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189     ac_cv_prog_ac_ct_CXX="$ac_prog"
2190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191     break 2
2192   fi
2193 done
2194 done
2195
2196 fi
2197 fi
2198 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2199 if test -n "$ac_ct_CXX"; then
2200   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2201 echo "${ECHO_T}$ac_ct_CXX" >&6
2202 else
2203   echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6
2205 fi
2206
2207   test -n "$ac_ct_CXX" && break
2208 done
2209 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2210
2211   CXX=$ac_ct_CXX
2212 fi
2213
2214
2215 # Provide some information about the compiler.
2216 echo "$as_me:$LINENO:" \
2217      "checking for C++ compiler version" >&5
2218 ac_compiler=`set X $ac_compile; echo $2`
2219 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2220   (eval $ac_compiler --version </dev/null >&5) 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); }
2224 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2225   (eval $ac_compiler -v </dev/null >&5) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); }
2229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2230   (eval $ac_compiler -V </dev/null >&5) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }
2234
2235 cat >conftest.$ac_ext <<_ACEOF
2236 #line $LINENO "configure"
2237 #include "confdefs.h"
2238
2239 #ifdef F77_DUMMY_MAIN
2240 #  ifdef __cplusplus
2241      extern "C"
2242 #  endif
2243    int F77_DUMMY_MAIN() { return 1; }
2244 #endif
2245 int
2246 main ()
2247 {
2248
2249   ;
2250   return 0;
2251 }
2252 _ACEOF
2253 ac_clean_files_save=$ac_clean_files
2254 ac_clean_files="$ac_clean_files a.out a.exe"
2255 # Try to create an executable without -o first, disregard a.out.
2256 # It will help us diagnose broken compilers, and finding out an intuition
2257 # of exeext.
2258 echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2259 echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
2260 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2261 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2262   (eval $ac_link_default) 2>&5
2263   ac_status=$?
2264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265   (exit $ac_status); }; then
2266   # Find the output, starting from the most likely.  This scheme is
2267 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2268 # resort.
2269
2270 # Be careful to initialize this variable, since it used to be cached.
2271 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2272 ac_cv_exeext=
2273 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2274                 ls a.out conftest 2>/dev/null;
2275                 ls a.* conftest.* 2>/dev/null`; do
2276   case $ac_file in
2277     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2278     a.out ) # We found the default executable, but exeext='' is most
2279             # certainly right.
2280             break;;
2281     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2282           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2283           export ac_cv_exeext
2284           break;;
2285     * ) break;;
2286   esac
2287 done
2288 else
2289   echo "$as_me: failed program was:" >&5
2290 cat conftest.$ac_ext >&5
2291 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5
2292 echo "$as_me: error: C++ compiler cannot create executables" >&2;}
2293    { (exit 77); exit 77; }; }
2294 fi
2295
2296 ac_exeext=$ac_cv_exeext
2297 echo "$as_me:$LINENO: result: $ac_file" >&5
2298 echo "${ECHO_T}$ac_file" >&6
2299
2300 # Check the compiler produces executables we can run.  If not, either
2301 # the compiler is broken, or we cross compile.
2302 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2303 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2304 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2305 # If not cross compiling, check that we can run a simple program.
2306 if test "$cross_compiling" != yes; then
2307   if { ac_try='./$ac_file'
2308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309   (eval $ac_try) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); }; }; then
2313     cross_compiling=no
2314   else
2315     if test "$cross_compiling" = maybe; then
2316         cross_compiling=yes
2317     else
2318         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2319 If you meant to cross compile, use \`--host'." >&5
2320 echo "$as_me: error: cannot run C++ compiled programs.
2321 If you meant to cross compile, use \`--host'." >&2;}
2322    { (exit 1); exit 1; }; }
2323     fi
2324   fi
2325 fi
2326 echo "$as_me:$LINENO: result: yes" >&5
2327 echo "${ECHO_T}yes" >&6
2328
2329 rm -f a.out a.exe conftest$ac_cv_exeext
2330 ac_clean_files=$ac_clean_files_save
2331 # Check the compiler produces executables we can run.  If not, either
2332 # the compiler is broken, or we cross compile.
2333 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2334 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2335 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2336 echo "${ECHO_T}$cross_compiling" >&6
2337
2338 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2339 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2341   (eval $ac_link) 2>&5
2342   ac_status=$?
2343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344   (exit $ac_status); }; then
2345   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2346 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2347 # work properly (i.e., refer to `conftest.exe'), while it won't with
2348 # `rm'.
2349 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2350   case $ac_file in
2351     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2352     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2353           export ac_cv_exeext
2354           break;;
2355     * ) break;;
2356   esac
2357 done
2358 else
2359   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2360 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2361    { (exit 1); exit 1; }; }
2362 fi
2363
2364 rm -f conftest$ac_cv_exeext
2365 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2366 echo "${ECHO_T}$ac_cv_exeext" >&6
2367
2368 rm -f conftest.$ac_ext
2369 EXEEXT=$ac_cv_exeext
2370 ac_exeext=$EXEEXT
2371 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2372 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2373 if test "${ac_cv_objext+set}" = set; then
2374   echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376   cat >conftest.$ac_ext <<_ACEOF
2377 #line $LINENO "configure"
2378 #include "confdefs.h"
2379
2380 #ifdef F77_DUMMY_MAIN
2381 #  ifdef __cplusplus
2382      extern "C"
2383 #  endif
2384    int F77_DUMMY_MAIN() { return 1; }
2385 #endif
2386 int
2387 main ()
2388 {
2389
2390   ;
2391   return 0;
2392 }
2393 _ACEOF
2394 rm -f conftest.o conftest.obj
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396   (eval $ac_compile) 2>&5
2397   ac_status=$?
2398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399   (exit $ac_status); }; then
2400   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2401   case $ac_file in
2402     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2403     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2404        break;;
2405   esac
2406 done
2407 else
2408   echo "$as_me: failed program was:" >&5
2409 cat conftest.$ac_ext >&5
2410 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2411 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2412    { (exit 1); exit 1; }; }
2413 fi
2414
2415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2416 fi
2417 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2418 echo "${ECHO_T}$ac_cv_objext" >&6
2419 OBJEXT=$ac_cv_objext
2420 ac_objext=$OBJEXT
2421 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2422 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2423 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2424   echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426   cat >conftest.$ac_ext <<_ACEOF
2427 #line $LINENO "configure"
2428 #include "confdefs.h"
2429
2430 #ifdef F77_DUMMY_MAIN
2431 #  ifdef __cplusplus
2432      extern "C"
2433 #  endif
2434    int F77_DUMMY_MAIN() { return 1; }
2435 #endif
2436 int
2437 main ()
2438 {
2439 #ifndef __GNUC__
2440        choke me
2441 #endif
2442
2443   ;
2444   return 0;
2445 }
2446 _ACEOF
2447 rm -f conftest.$ac_objext
2448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449   (eval $ac_compile) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); } &&
2453          { ac_try='test -s conftest.$ac_objext'
2454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455   (eval $ac_try) 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; }; then
2459   ac_compiler_gnu=yes
2460 else
2461   echo "$as_me: failed program was:" >&5
2462 cat conftest.$ac_ext >&5
2463 ac_compiler_gnu=no
2464 fi
2465 rm -f conftest.$ac_objext conftest.$ac_ext
2466 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2467
2468 fi
2469 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2470 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2471 GXX=`test $ac_compiler_gnu = yes && echo yes`
2472 ac_test_CXXFLAGS=${CXXFLAGS+set}
2473 ac_save_CXXFLAGS=$CXXFLAGS
2474 CXXFLAGS="-g"
2475 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2476 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2477 if test "${ac_cv_prog_cxx_g+set}" = set; then
2478   echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480   cat >conftest.$ac_ext <<_ACEOF
2481 #line $LINENO "configure"
2482 #include "confdefs.h"
2483
2484 #ifdef F77_DUMMY_MAIN
2485 #  ifdef __cplusplus
2486      extern "C"
2487 #  endif
2488    int F77_DUMMY_MAIN() { return 1; }
2489 #endif
2490 int
2491 main ()
2492 {
2493
2494   ;
2495   return 0;
2496 }
2497 _ACEOF
2498 rm -f conftest.$ac_objext
2499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500   (eval $ac_compile) 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } &&
2504          { ac_try='test -s conftest.$ac_objext'
2505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506   (eval $ac_try) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }; }; then
2510   ac_cv_prog_cxx_g=yes
2511 else
2512   echo "$as_me: failed program was:" >&5
2513 cat conftest.$ac_ext >&5
2514 ac_cv_prog_cxx_g=no
2515 fi
2516 rm -f conftest.$ac_objext conftest.$ac_ext
2517 fi
2518 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2519 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2520 if test "$ac_test_CXXFLAGS" = set; then
2521   CXXFLAGS=$ac_save_CXXFLAGS
2522 elif test $ac_cv_prog_cxx_g = yes; then
2523   if test "$GXX" = yes; then
2524     CXXFLAGS="-g -O2"
2525   else
2526     CXXFLAGS="-g"
2527   fi
2528 else
2529   if test "$GXX" = yes; then
2530     CXXFLAGS="-O2"
2531   else
2532     CXXFLAGS=
2533   fi
2534 fi
2535 for ac_declaration in \
2536    ''\
2537    '#include <stdlib.h>' \
2538    'extern "C" void std::exit (int) throw (); using std::exit;' \
2539    'extern "C" void std::exit (int); using std::exit;' \
2540    'extern "C" void exit (int) throw ();' \
2541    'extern "C" void exit (int);' \
2542    'void exit (int);'
2543 do
2544   cat >conftest.$ac_ext <<_ACEOF
2545 #line $LINENO "configure"
2546 #include "confdefs.h"
2547 #include <stdlib.h>
2548 $ac_declaration
2549 #ifdef F77_DUMMY_MAIN
2550 #  ifdef __cplusplus
2551      extern "C"
2552 #  endif
2553    int F77_DUMMY_MAIN() { return 1; }
2554 #endif
2555 int
2556 main ()
2557 {
2558 exit (42);
2559   ;
2560   return 0;
2561 }
2562 _ACEOF
2563 rm -f conftest.$ac_objext
2564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565   (eval $ac_compile) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); } &&
2569          { ac_try='test -s conftest.$ac_objext'
2570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571   (eval $ac_try) 2>&5
2572   ac_status=$?
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); }; }; then
2575   :
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 cat conftest.$ac_ext >&5
2579 continue
2580 fi
2581 rm -f conftest.$ac_objext conftest.$ac_ext
2582   cat >conftest.$ac_ext <<_ACEOF
2583 #line $LINENO "configure"
2584 #include "confdefs.h"
2585 $ac_declaration
2586 #ifdef F77_DUMMY_MAIN
2587 #  ifdef __cplusplus
2588      extern "C"
2589 #  endif
2590    int F77_DUMMY_MAIN() { return 1; }
2591 #endif
2592 int
2593 main ()
2594 {
2595 exit (42);
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602   (eval $ac_compile) 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); } &&
2606          { ac_try='test -s conftest.$ac_objext'
2607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608   (eval $ac_try) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; }; then
2612   break
2613 else
2614   echo "$as_me: failed program was:" >&5
2615 cat conftest.$ac_ext >&5
2616 fi
2617 rm -f conftest.$ac_objext conftest.$ac_ext
2618 done
2619 rm -f conftest*
2620 if test -n "$ac_declaration"; then
2621   echo '#ifdef __cplusplus' >>confdefs.h
2622   echo $ac_declaration      >>confdefs.h
2623   echo '#endif'             >>confdefs.h
2624 fi
2625
2626 ac_ext=c
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631
2632 ac_ext=c
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637 if test -n "$ac_tool_prefix"; then
2638   for ac_prog in gcc
2639   do
2640     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2642 echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2644 if test "${ac_cv_prog_CC+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   if test -n "$CC"; then
2648   ac_cv_prog_CC="$CC" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655   for ac_exec_ext in '' $ac_executable_extensions; do
2656   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662 done
2663
2664 fi
2665 fi
2666 CC=$ac_cv_prog_CC
2667 if test -n "$CC"; then
2668   echo "$as_me:$LINENO: result: $CC" >&5
2669 echo "${ECHO_T}$CC" >&6
2670 else
2671   echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6
2673 fi
2674
2675     test -n "$CC" && break
2676   done
2677 fi
2678 if test -z "$CC"; then
2679   ac_ct_CC=$CC
2680   for ac_prog in gcc
2681 do
2682   # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 echo "$as_me:$LINENO: checking for $ac_word" >&5
2685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2686 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2687   echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689   if test -n "$ac_ct_CC"; then
2690   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691 else
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695   IFS=$as_save_IFS
2696   test -z "$as_dir" && as_dir=.
2697   for ac_exec_ext in '' $ac_executable_extensions; do
2698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699     ac_cv_prog_ac_ct_CC="$ac_prog"
2700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2701     break 2
2702   fi
2703 done
2704 done
2705
2706 fi
2707 fi
2708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2709 if test -n "$ac_ct_CC"; then
2710   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2711 echo "${ECHO_T}$ac_ct_CC" >&6
2712 else
2713   echo "$as_me:$LINENO: result: no" >&5
2714 echo "${ECHO_T}no" >&6
2715 fi
2716
2717   test -n "$ac_ct_CC" && break
2718 done
2719
2720   CC=$ac_ct_CC
2721 fi
2722
2723
2724 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2725 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2726    { (exit 1); exit 1; }; }
2727
2728 # Provide some information about the compiler.
2729 echo "$as_me:$LINENO:" \
2730      "checking for C compiler version" >&5
2731 ac_compiler=`set X $ac_compile; echo $2`
2732 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2733   (eval $ac_compiler --version </dev/null >&5) 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }
2737 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2738   (eval $ac_compiler -v </dev/null >&5) 2>&5
2739   ac_status=$?
2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741   (exit $ac_status); }
2742 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2743   (eval $ac_compiler -V </dev/null >&5) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }
2747
2748 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2749 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2750 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2751   echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753   cat >conftest.$ac_ext <<_ACEOF
2754 #line $LINENO "configure"
2755 #include "confdefs.h"
2756
2757 #ifdef F77_DUMMY_MAIN
2758 #  ifdef __cplusplus
2759      extern "C"
2760 #  endif
2761    int F77_DUMMY_MAIN() { return 1; }
2762 #endif
2763 int
2764 main ()
2765 {
2766 #ifndef __GNUC__
2767        choke me
2768 #endif
2769
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776   (eval $ac_compile) 2>&5
2777   ac_status=$?
2778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779   (exit $ac_status); } &&
2780          { ac_try='test -s conftest.$ac_objext'
2781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782   (eval $ac_try) 2>&5
2783   ac_status=$?
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); }; }; then
2786   ac_compiler_gnu=yes
2787 else
2788   echo "$as_me: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2790 ac_compiler_gnu=no
2791 fi
2792 rm -f conftest.$ac_objext conftest.$ac_ext
2793 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2794
2795 fi
2796 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2797 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2798 GCC=`test $ac_compiler_gnu = yes && echo yes`
2799 ac_test_CFLAGS=${CFLAGS+set}
2800 ac_save_CFLAGS=$CFLAGS
2801 CFLAGS="-g"
2802 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2803 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2804 if test "${ac_cv_prog_cc_g+set}" = set; then
2805   echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807   cat >conftest.$ac_ext <<_ACEOF
2808 #line $LINENO "configure"
2809 #include "confdefs.h"
2810
2811 #ifdef F77_DUMMY_MAIN
2812 #  ifdef __cplusplus
2813      extern "C"
2814 #  endif
2815    int F77_DUMMY_MAIN() { return 1; }
2816 #endif
2817 int
2818 main ()
2819 {
2820
2821   ;
2822   return 0;
2823 }
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827   (eval $ac_compile) 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); } &&
2831          { ac_try='test -s conftest.$ac_objext'
2832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833   (eval $ac_try) 2>&5
2834   ac_status=$?
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); }; }; then
2837   ac_cv_prog_cc_g=yes
2838 else
2839   echo "$as_me: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2841 ac_cv_prog_cc_g=no
2842 fi
2843 rm -f conftest.$ac_objext conftest.$ac_ext
2844 fi
2845 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2846 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2847 if test "$ac_test_CFLAGS" = set; then
2848   CFLAGS=$ac_save_CFLAGS
2849 elif test $ac_cv_prog_cc_g = yes; then
2850   if test "$GCC" = yes; then
2851     CFLAGS="-g -O2"
2852   else
2853     CFLAGS="-g"
2854   fi
2855 else
2856   if test "$GCC" = yes; then
2857     CFLAGS="-O2"
2858   else
2859     CFLAGS=
2860   fi
2861 fi
2862 # Some people use a C++ compiler to compile C.  Since we use `exit',
2863 # in C++ we need to declare it.  In case someone uses the same compiler
2864 # for both compiling C and C++ we need to have the C++ compiler decide
2865 # the declaration of exit, since it's the most demanding environment.
2866 cat >conftest.$ac_ext <<_ACEOF
2867 #ifndef __cplusplus
2868   choke me
2869 #endif
2870 _ACEOF
2871 rm -f conftest.$ac_objext
2872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2873   (eval $ac_compile) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); } &&
2877          { ac_try='test -s conftest.$ac_objext'
2878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); }; }; then
2883   for ac_declaration in \
2884    ''\
2885    '#include <stdlib.h>' \
2886    'extern "C" void std::exit (int) throw (); using std::exit;' \
2887    'extern "C" void std::exit (int); using std::exit;' \
2888    'extern "C" void exit (int) throw ();' \
2889    'extern "C" void exit (int);' \
2890    'void exit (int);'
2891 do
2892   cat >conftest.$ac_ext <<_ACEOF
2893 #line $LINENO "configure"
2894 #include "confdefs.h"
2895 #include <stdlib.h>
2896 $ac_declaration
2897 #ifdef F77_DUMMY_MAIN
2898 #  ifdef __cplusplus
2899      extern "C"
2900 #  endif
2901    int F77_DUMMY_MAIN() { return 1; }
2902 #endif
2903 int
2904 main ()
2905 {
2906 exit (42);
2907   ;
2908   return 0;
2909 }
2910 _ACEOF
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913   (eval $ac_compile) 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); } &&
2917          { ac_try='test -s conftest.$ac_objext'
2918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919   (eval $ac_try) 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }; }; then
2923   :
2924 else
2925   echo "$as_me: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2927 continue
2928 fi
2929 rm -f conftest.$ac_objext conftest.$ac_ext
2930   cat >conftest.$ac_ext <<_ACEOF
2931 #line $LINENO "configure"
2932 #include "confdefs.h"
2933 $ac_declaration
2934 #ifdef F77_DUMMY_MAIN
2935 #  ifdef __cplusplus
2936      extern "C"
2937 #  endif
2938    int F77_DUMMY_MAIN() { return 1; }
2939 #endif
2940 int
2941 main ()
2942 {
2943 exit (42);
2944   ;
2945   return 0;
2946 }
2947 _ACEOF
2948 rm -f conftest.$ac_objext
2949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2950   (eval $ac_compile) 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); } &&
2954          { ac_try='test -s conftest.$ac_objext'
2955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956   (eval $ac_try) 2>&5
2957   ac_status=$?
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); }; }; then
2960   break
2961 else
2962   echo "$as_me: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2964 fi
2965 rm -f conftest.$ac_objext conftest.$ac_ext
2966 done
2967 rm -f conftest*
2968 if test -n "$ac_declaration"; then
2969   echo '#ifdef __cplusplus' >>confdefs.h
2970   echo $ac_declaration      >>confdefs.h
2971   echo '#endif'             >>confdefs.h
2972 fi
2973
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 cat conftest.$ac_ext >&5
2977 fi
2978 rm -f conftest.$ac_objext conftest.$ac_ext
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984
2985 ac_ext=c
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2991 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2992 # On Suns, sometimes $CPP names a directory.
2993 if test -n "$CPP" && test -d "$CPP"; then
2994   CPP=
2995 fi
2996 if test -z "$CPP"; then
2997   if test "${ac_cv_prog_CPP+set}" = set; then
2998   echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000       # Double quotes because CPP needs to be expanded
3001     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3002     do
3003       ac_preproc_ok=false
3004 for ac_c_preproc_warn_flag in '' yes
3005 do
3006   # Use a header file that comes with gcc, so configuring glibc
3007   # with a fresh cross-compiler works.
3008   # On the NeXT, cc -E runs the code through the compiler's parser,
3009   # not just through cpp. "Syntax error" is here to catch this case.
3010   cat >conftest.$ac_ext <<_ACEOF
3011 #line $LINENO "configure"
3012 #include "confdefs.h"
3013 #include <assert.h>
3014                      Syntax error
3015 _ACEOF
3016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3017   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3018   ac_status=$?
3019   egrep -v '^ *\+' conftest.er1 >conftest.err
3020   rm -f conftest.er1
3021   cat conftest.err >&5
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); } >/dev/null; then
3024   if test -s conftest.err; then
3025     ac_cpp_err=$ac_c_preproc_warn_flag
3026   else
3027     ac_cpp_err=
3028   fi
3029 else
3030   ac_cpp_err=yes
3031 fi
3032 if test -z "$ac_cpp_err"; then
3033   :
3034 else
3035   echo "$as_me: failed program was:" >&5
3036   cat conftest.$ac_ext >&5
3037   # Broken: fails on valid input.
3038 continue
3039 fi
3040 rm -f conftest.err conftest.$ac_ext
3041
3042   # OK, works on sane cases.  Now check whether non-existent headers
3043   # can be detected and how.
3044   cat >conftest.$ac_ext <<_ACEOF
3045 #line $LINENO "configure"
3046 #include "confdefs.h"
3047 #include <ac_nonexistent.h>
3048 _ACEOF
3049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3051   ac_status=$?
3052   egrep -v '^ *\+' conftest.er1 >conftest.err
3053   rm -f conftest.er1
3054   cat conftest.err >&5
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); } >/dev/null; then
3057   if test -s conftest.err; then
3058     ac_cpp_err=$ac_c_preproc_warn_flag
3059   else
3060     ac_cpp_err=
3061   fi
3062 else
3063   ac_cpp_err=yes
3064 fi
3065 if test -z "$ac_cpp_err"; then
3066   # Broken: success on invalid input.
3067 continue
3068 else
3069   echo "$as_me: failed program was:" >&5
3070   cat conftest.$ac_ext >&5
3071   # Passes both tests.
3072 ac_preproc_ok=:
3073 break
3074 fi
3075 rm -f conftest.err conftest.$ac_ext
3076
3077 done
3078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3079 rm -f conftest.err conftest.$ac_ext
3080 if $ac_preproc_ok; then
3081   break
3082 fi
3083
3084     done
3085     ac_cv_prog_CPP=$CPP
3086
3087 fi
3088   CPP=$ac_cv_prog_CPP
3089 else
3090   ac_cv_prog_CPP=$CPP
3091 fi
3092 echo "$as_me:$LINENO: result: $CPP" >&5
3093 echo "${ECHO_T}$CPP" >&6
3094 ac_preproc_ok=false
3095 for ac_c_preproc_warn_flag in '' yes
3096 do
3097   # Use a header file that comes with gcc, so configuring glibc
3098   # with a fresh cross-compiler works.
3099   # On the NeXT, cc -E runs the code through the compiler's parser,
3100   # not just through cpp. "Syntax error" is here to catch this case.
3101   cat >conftest.$ac_ext <<_ACEOF
3102 #line $LINENO "configure"
3103 #include "confdefs.h"
3104 #include <assert.h>
3105                      Syntax error
3106 _ACEOF
3107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3109   ac_status=$?
3110   egrep -v '^ *\+' conftest.er1 >conftest.err
3111   rm -f conftest.er1
3112   cat conftest.err >&5
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); } >/dev/null; then
3115   if test -s conftest.err; then
3116     ac_cpp_err=$ac_c_preproc_warn_flag
3117   else
3118     ac_cpp_err=
3119   fi
3120 else
3121   ac_cpp_err=yes
3122 fi
3123 if test -z "$ac_cpp_err"; then
3124   :
3125 else
3126   echo "$as_me: failed program was:" >&5
3127   cat conftest.$ac_ext >&5
3128   # Broken: fails on valid input.
3129 continue
3130 fi
3131 rm -f conftest.err conftest.$ac_ext
3132
3133   # OK, works on sane cases.  Now check whether non-existent headers
3134   # can be detected and how.
3135   cat >conftest.$ac_ext <<_ACEOF
3136 #line $LINENO "configure"
3137 #include "confdefs.h"
3138 #include <ac_nonexistent.h>
3139 _ACEOF
3140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3142   ac_status=$?
3143   egrep -v '^ *\+' conftest.er1 >conftest.err
3144   rm -f conftest.er1
3145   cat conftest.err >&5
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); } >/dev/null; then
3148   if test -s conftest.err; then
3149     ac_cpp_err=$ac_c_preproc_warn_flag
3150   else
3151     ac_cpp_err=
3152   fi
3153 else
3154   ac_cpp_err=yes
3155 fi
3156 if test -z "$ac_cpp_err"; then
3157   # Broken: success on invalid input.
3158 continue
3159 else
3160   echo "$as_me: failed program was:" >&5
3161   cat conftest.$ac_ext >&5
3162   # Passes both tests.
3163 ac_preproc_ok=:
3164 break
3165 fi
3166 rm -f conftest.err conftest.$ac_ext
3167
3168 done
3169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3170 rm -f conftest.err conftest.$ac_ext
3171 if $ac_preproc_ok; then
3172   :
3173 else
3174   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3175 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3176    { (exit 1); exit 1; }; }
3177 fi
3178
3179 ac_ext=c
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184
3185
3186 if test "$GCC" != "yes"
3187 then
3188         { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3189 echo "$as_me: error: gcc required but not found" >&2;}
3190    { (exit 1); exit 1; }; }
3191 fi
3192
3193 if test "$GXX" != "yes"
3194 then
3195         { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3196 echo "$as_me: error: g++ required but not found" >&2;}
3197    { (exit 1); exit 1; }; }
3198 fi
3199
3200 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3201 if test "$gccmajor" -lt "3"
3202 then
3203         { { echo "$as_me:$LINENO: error: gcc 3.x required" >&5
3204 echo "$as_me: error: gcc 3.x required" >&2;}
3205    { (exit 1); exit 1; }; }
3206 fi
3207
3208  echo "$as_me:$LINENO: checking for GNU make" >&5
3209 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3210 if test "${_cv_gnu_make_command+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213   _cv_gnu_make_command='' ;
3214                 for a in "$MAKE" make gmake gnumake ; do
3215                         if test -z "$a" ; then continue ; fi ;
3216                         if  ( sh -c "$a --version" 2> /dev/null | grep GNU  2>&1 > /dev/null ) ;  then
3217                                 _cv_gnu_make_command=$a ;
3218                                 break;
3219                         fi
3220                 done ;
3221
3222 fi
3223 echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3224 echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3225         if test  "x$_cv_gnu_make_command" != "x"  ; then
3226                 ifGNUmake='' ;
3227         else
3228                 ifGNUmake='#' ;
3229                 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3230 echo "${ECHO_T}\"Not found\"" >&6;
3231         fi
3232
3233
3234 if test -z "$_cv_gnu_make_command"
3235 then
3236         { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3237 echo "$as_me: error: GNU Make required but not found" >&2;}
3238    { (exit 1); exit 1; }; }
3239 fi
3240
3241
3242 echo "$as_me:$LINENO: checking " >&5
3243 echo $ECHO_N "checking ... $ECHO_C" >&6
3244 if test "${ac_cv_has_flex+set}" = set; then
3245   echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247   for ac_prog in flex lex
3248 do
3249   # Extract the first word of "$ac_prog", so it can be a program name with args.
3250 set dummy $ac_prog; ac_word=$2
3251 echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_prog_LEX+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   if test -n "$LEX"; then
3257   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262   IFS=$as_save_IFS
3263   test -z "$as_dir" && as_dir=.
3264   for ac_exec_ext in '' $ac_executable_extensions; do
3265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266     ac_cv_prog_LEX="$ac_prog"
3267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268     break 2
3269   fi
3270 done
3271 done
3272
3273 fi
3274 fi
3275 LEX=$ac_cv_prog_LEX
3276 if test -n "$LEX"; then
3277   echo "$as_me:$LINENO: result: $LEX" >&5
3278 echo "${ECHO_T}$LEX" >&6
3279 else
3280   echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3282 fi
3283
3284   test -n "$LEX" && break
3285 done
3286 test -n "$LEX" || LEX=":"
3287
3288 if test -z "$LEXLIB"
3289 then
3290   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3291 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3292 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   ac_check_lib_save_LIBS=$LIBS
3296 LIBS="-lfl  $LIBS"
3297 cat >conftest.$ac_ext <<_ACEOF
3298 #line $LINENO "configure"
3299 #include "confdefs.h"
3300
3301 /* Override any gcc2 internal prototype to avoid an error.  */
3302 #ifdef __cplusplus
3303 extern "C"
3304 #endif
3305 /* We use char because int might match the return type of a gcc2
3306    builtin and then its argument prototype would still apply.  */
3307 char yywrap ();
3308 #ifdef F77_DUMMY_MAIN
3309 #  ifdef __cplusplus
3310      extern "C"
3311 #  endif
3312    int F77_DUMMY_MAIN() { return 1; }
3313 #endif
3314 int
3315 main ()
3316 {
3317 yywrap ();
3318   ;
3319   return 0;
3320 }
3321 _ACEOF
3322 rm -f conftest.$ac_objext conftest$ac_exeext
3323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3324   (eval $ac_link) 2>&5
3325   ac_status=$?
3326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327   (exit $ac_status); } &&
3328          { ac_try='test -s conftest$ac_exeext'
3329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330   (eval $ac_try) 2>&5
3331   ac_status=$?
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); }; }; then
3334   ac_cv_lib_fl_yywrap=yes
3335 else
3336   echo "$as_me: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3338 ac_cv_lib_fl_yywrap=no
3339 fi
3340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3341 LIBS=$ac_check_lib_save_LIBS
3342 fi
3343 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3344 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3345 if test $ac_cv_lib_fl_yywrap = yes; then
3346   LEXLIB="-lfl"
3347 else
3348   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3349 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3350 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3351   echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353   ac_check_lib_save_LIBS=$LIBS
3354 LIBS="-ll  $LIBS"
3355 cat >conftest.$ac_ext <<_ACEOF
3356 #line $LINENO "configure"
3357 #include "confdefs.h"
3358
3359 /* Override any gcc2 internal prototype to avoid an error.  */
3360 #ifdef __cplusplus
3361 extern "C"
3362 #endif
3363 /* We use char because int might match the return type of a gcc2
3364    builtin and then its argument prototype would still apply.  */
3365 char yywrap ();
3366 #ifdef F77_DUMMY_MAIN
3367 #  ifdef __cplusplus
3368      extern "C"
3369 #  endif
3370    int F77_DUMMY_MAIN() { return 1; }
3371 #endif
3372 int
3373 main ()
3374 {
3375 yywrap ();
3376   ;
3377   return 0;
3378 }
3379 _ACEOF
3380 rm -f conftest.$ac_objext conftest$ac_exeext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3382   (eval $ac_link) 2>&5
3383   ac_status=$?
3384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385   (exit $ac_status); } &&
3386          { ac_try='test -s conftest$ac_exeext'
3387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388   (eval $ac_try) 2>&5
3389   ac_status=$?
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); }; }; then
3392   ac_cv_lib_l_yywrap=yes
3393 else
3394   echo "$as_me: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3396 ac_cv_lib_l_yywrap=no
3397 fi
3398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3399 LIBS=$ac_check_lib_save_LIBS
3400 fi
3401 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3402 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3403 if test $ac_cv_lib_l_yywrap = yes; then
3404   LEXLIB="-ll"
3405 fi
3406
3407 fi
3408
3409 fi
3410
3411 if test "x$LEX" != "x:"; then
3412   echo "$as_me:$LINENO: checking lex output file root" >&5
3413 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3414 if test "${ac_cv_prog_lex_root+set}" = set; then
3415   echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417   # The minimal lex program is just a single line: %%.  But some broken lexes
3418 # (Solaris, I think it was) want two %% lines, so accommodate them.
3419 cat >conftest.l <<_ACEOF
3420 %%
3421 %%
3422 _ACEOF
3423 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3424   (eval $LEX conftest.l) 2>&5
3425   ac_status=$?
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); }
3428 if test -f lex.yy.c; then
3429   ac_cv_prog_lex_root=lex.yy
3430 elif test -f lexyy.c; then
3431   ac_cv_prog_lex_root=lexyy
3432 else
3433   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3434 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3435    { (exit 1); exit 1; }; }
3436 fi
3437 fi
3438 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3439 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3440 rm -f conftest.l
3441 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3442
3443 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3444 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3445 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3446   echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448   # POSIX says lex can declare yytext either as a pointer or an array; the
3449 # default is implementation-dependent. Figure out which it is, since
3450 # not all implementations provide the %pointer and %array declarations.
3451 ac_cv_prog_lex_yytext_pointer=no
3452 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3453 ac_save_LIBS=$LIBS
3454 LIBS="$LIBS $LEXLIB"
3455 cat >conftest.$ac_ext <<_ACEOF
3456 `cat $LEX_OUTPUT_ROOT.c`
3457 _ACEOF
3458 rm -f conftest.$ac_objext conftest$ac_exeext
3459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3460   (eval $ac_link) 2>&5
3461   ac_status=$?
3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); } &&
3464          { ac_try='test -s conftest$ac_exeext'
3465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466   (eval $ac_try) 2>&5
3467   ac_status=$?
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); }; }; then
3470   ac_cv_prog_lex_yytext_pointer=yes
3471 else
3472   echo "$as_me: failed program was:" >&5
3473 cat conftest.$ac_ext >&5
3474 fi
3475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3476 LIBS=$ac_save_LIBS
3477 rm -f "${LEX_OUTPUT_ROOT}.c"
3478
3479 fi
3480 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3481 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3482 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3483
3484 cat >>confdefs.h <<\_ACEOF
3485 #define YYTEXT_POINTER 1
3486 _ACEOF
3487
3488 fi
3489
3490 fi
3491
3492 fi
3493 echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3494 echo "${ECHO_T}$ac_cv_has_flex" >&6
3495 if test "$LEX" != "flex"; then
3496   { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3497 echo "$as_me: error: flex not found but required" >&2;}
3498    { (exit 1); exit 1; }; }
3499 fi
3500
3501 echo "$as_me:$LINENO: checking " >&5
3502 echo $ECHO_N "checking ... $ECHO_C" >&6
3503 if test "${ac_cv_has_bison+set}" = set; then
3504   echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506   for ac_prog in 'bison -y' byacc
3507 do
3508   # Extract the first word of "$ac_prog", so it can be a program name with args.
3509 set dummy $ac_prog; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_prog_YACC+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   if test -n "$YACC"; then
3516   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3517 else
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521   IFS=$as_save_IFS
3522   test -z "$as_dir" && as_dir=.
3523   for ac_exec_ext in '' $ac_executable_extensions; do
3524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525     ac_cv_prog_YACC="$ac_prog"
3526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527     break 2
3528   fi
3529 done
3530 done
3531
3532 fi
3533 fi
3534 YACC=$ac_cv_prog_YACC
3535 if test -n "$YACC"; then
3536   echo "$as_me:$LINENO: result: $YACC" >&5
3537 echo "${ECHO_T}$YACC" >&6
3538 else
3539   echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 fi
3542
3543   test -n "$YACC" && break
3544 done
3545 test -n "$YACC" || YACC="yacc"
3546
3547
3548 fi
3549 echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3550 echo "${ECHO_T}$ac_cv_has_bison" >&6
3551 if test "$YACC" != "bison -y"; then
3552   { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3553 echo "$as_me: error: bison not found but required" >&2;}
3554    { (exit 1); exit 1; }; }
3555 else
3556   YACC=bison
3557
3558 fi
3559
3560
3561 # Check whether --enable-shared or --disable-shared was given.
3562 if test "${enable_shared+set}" = set; then
3563   enableval="$enable_shared"
3564   p=${PACKAGE-default}
3565     case $enableval in
3566     yes) enable_shared=yes ;;
3567     no) enable_shared=no ;;
3568     *)
3569       enable_shared=no
3570       # Look at the argument we got.  We use all the common list separators.
3571       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3572       for pkg in $enableval; do
3573         IFS="$lt_save_ifs"
3574         if test "X$pkg" = "X$p"; then
3575           enable_shared=yes
3576         fi
3577       done
3578       IFS="$lt_save_ifs"
3579       ;;
3580     esac
3581 else
3582   enable_shared=yes
3583 fi;
3584
3585 # Check whether --enable-static or --disable-static was given.
3586 if test "${enable_static+set}" = set; then
3587   enableval="$enable_static"
3588   p=${PACKAGE-default}
3589     case $enableval in
3590     yes) enable_static=yes ;;
3591     no) enable_static=no ;;
3592     *)
3593      enable_static=no
3594       # Look at the argument we got.  We use all the common list separators.
3595       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3596       for pkg in $enableval; do
3597         IFS="$lt_save_ifs"
3598         if test "X$pkg" = "X$p"; then
3599           enable_static=yes
3600         fi
3601       done
3602       IFS="$lt_save_ifs"
3603       ;;
3604     esac
3605 else
3606   enable_static=yes
3607 fi;
3608
3609 # Check whether --enable-fast-install or --disable-fast-install was given.
3610 if test "${enable_fast_install+set}" = set; then
3611   enableval="$enable_fast_install"
3612   p=${PACKAGE-default}
3613     case $enableval in
3614     yes) enable_fast_install=yes ;;
3615     no) enable_fast_install=no ;;
3616     *)
3617       enable_fast_install=no
3618       # Look at the argument we got.  We use all the common list separators.
3619       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3620       for pkg in $enableval; do
3621         IFS="$lt_save_ifs"
3622         if test "X$pkg" = "X$p"; then
3623           enable_fast_install=yes
3624         fi
3625       done
3626       IFS="$lt_save_ifs"
3627       ;;
3628     esac
3629 else
3630   enable_fast_install=yes
3631 fi;
3632
3633 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3634 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3635 if test "${lt_cv_path_SED+set}" = set; then
3636   echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638   # Loop through the user's path and test for sed and gsed.
3639 # Then use that list of sed's as ones to test for truncation.
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3642 do
3643   IFS=$as_save_IFS
3644   test -z "$as_dir" && as_dir=.
3645   for lt_ac_prog in sed gsed; do
3646     for ac_exec_ext in '' $ac_executable_extensions; do
3647       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3648         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3649       fi
3650     done
3651   done
3652 done
3653 lt_ac_max=0
3654 lt_ac_count=0
3655 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3656 # along with /bin/sed that truncates output.
3657 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3658   test ! -f $lt_ac_sed && break
3659   cat /dev/null > conftest.in
3660   lt_ac_count=0
3661   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3662   # Check for GNU sed and select it if it is found.
3663   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3664     lt_cv_path_SED=$lt_ac_sed
3665     break
3666   fi
3667   while true; do
3668     cat conftest.in conftest.in >conftest.tmp
3669     mv conftest.tmp conftest.in
3670     cp conftest.in conftest.nl
3671     echo >>conftest.nl
3672     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3673     cmp -s conftest.out conftest.nl || break
3674     # 10000 chars as input seems more than enough
3675     test $lt_ac_count -gt 10 && break
3676     lt_ac_count=`expr $lt_ac_count + 1`
3677     if test $lt_ac_count -gt $lt_ac_max; then
3678       lt_ac_max=$lt_ac_count
3679       lt_cv_path_SED=$lt_ac_sed
3680     fi
3681   done
3682 done
3683 SED=$lt_cv_path_SED
3684
3685 fi
3686
3687 echo "$as_me:$LINENO: result: $SED" >&5
3688 echo "${ECHO_T}$SED" >&6
3689
3690 echo "$as_me:$LINENO: checking for egrep" >&5
3691 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3692 if test "${ac_cv_prog_egrep+set}" = set; then
3693   echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3696     then ac_cv_prog_egrep='grep -E'
3697     else ac_cv_prog_egrep='egrep'
3698     fi
3699 fi
3700 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3701 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3702  EGREP=$ac_cv_prog_egrep
3703
3704
3705
3706 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3707 if test "${with_gnu_ld+set}" = set; then
3708   withval="$with_gnu_ld"
3709   test "$withval" = no || with_gnu_ld=yes
3710 else
3711   with_gnu_ld=no
3712 fi;
3713 ac_prog=ld
3714 if test "$GCC" = yes; then
3715   # Check if gcc -print-prog-name=ld gives a path.
3716   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3717 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3718   case $host in
3719   *-*-mingw*)
3720     # gcc leaves a trailing carriage return which upsets mingw
3721     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3722   *)
3723     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3724   esac
3725   case $ac_prog in
3726     # Accept absolute paths.
3727     [\\/]* | ?:[\\/]*)
3728       re_direlt='/[^/][^/]*/\.\./'
3729       # Canonicalize the path of ld
3730       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3731       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3732         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3733       done
3734       test -z "$LD" && LD="$ac_prog"
3735       ;;
3736   "")
3737     # If it fails, then pretend we aren't using GCC.
3738     ac_prog=ld
3739     ;;
3740   *)
3741     # If it is relative, then search for the first ld in PATH.
3742     with_gnu_ld=unknown
3743     ;;
3744   esac
3745 elif test "$with_gnu_ld" = yes; then
3746   echo "$as_me:$LINENO: checking for GNU ld" >&5
3747 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3748 else
3749   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3750 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3751 fi
3752 if test "${lt_cv_path_LD+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   if test -z "$LD"; then
3756   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3757   for ac_dir in $PATH; do
3758     IFS="$lt_save_ifs"
3759     test -z "$ac_dir" && ac_dir=.
3760     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3761       lt_cv_path_LD="$ac_dir/$ac_prog"
3762       # Check to see if the program is GNU ld.  I'd rather use --version,
3763       # but apparently some GNU ld's only accept -v.
3764       # Break only if it was the GNU/non-GNU ld that we prefer.
3765       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3766       *GNU* | *'with BFD'*)
3767         test "$with_gnu_ld" != no && break
3768         ;;
3769       *)
3770         test "$with_gnu_ld" != yes && break
3771         ;;
3772       esac
3773     fi
3774   done
3775   IFS="$lt_save_ifs"
3776 else
3777   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3778 fi
3779 fi
3780
3781 LD="$lt_cv_path_LD"
3782 if test -n "$LD"; then
3783   echo "$as_me:$LINENO: result: $LD" >&5
3784 echo "${ECHO_T}$LD" >&6
3785 else
3786   echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3788 fi
3789 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3790 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3791    { (exit 1); exit 1; }; }
3792 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3793 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3794 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3798 case `"$LD" -v 2>&1 </dev/null` in
3799 *GNU* | *'with BFD'*)
3800   lt_cv_prog_gnu_ld=yes
3801   ;;
3802 *)
3803   lt_cv_prog_gnu_ld=no
3804   ;;
3805 esac
3806 fi
3807 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3808 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3809 with_gnu_ld=$lt_cv_prog_gnu_ld
3810
3811
3812 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3813 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3814 if test "${lt_cv_ld_reload_flag+set}" = set; then
3815   echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817   lt_cv_ld_reload_flag='-r'
3818 fi
3819 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3820 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3821 reload_flag=$lt_cv_ld_reload_flag
3822 case $reload_flag in
3823 "" | " "*) ;;
3824 *) reload_flag=" $reload_flag" ;;
3825 esac
3826 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3827
3828 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3829 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3830 if test "${lt_cv_path_NM+set}" = set; then
3831   echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833   if test -n "$NM"; then
3834   # Let the user override the test.
3835   lt_cv_path_NM="$NM"
3836 else
3837   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3838   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3839     IFS="$lt_save_ifs"
3840     test -z "$ac_dir" && ac_dir=.
3841     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3842     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3843       # Check to see if the nm accepts a BSD-compat flag.
3844       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3845       #   nm: unknown option "B" ignored
3846       # Tru64's nm complains that /dev/null is an invalid object file
3847       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3848       */dev/null* | *'Invalid file or object type'*)
3849         lt_cv_path_NM="$tmp_nm -B"
3850         break
3851         ;;
3852       *)
3853         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3854         */dev/null*)
3855           lt_cv_path_NM="$tmp_nm -p"
3856           break
3857           ;;
3858         *)
3859           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3860           continue # so that we can try to find one that supports BSD flags
3861           ;;
3862         esac
3863       esac
3864     fi
3865   done
3866   IFS="$lt_save_ifs"
3867   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3868 fi
3869 fi
3870 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3871 echo "${ECHO_T}$lt_cv_path_NM" >&6
3872 NM="$lt_cv_path_NM"
3873
3874 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3875 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3876 LN_S=$as_ln_s
3877 if test "$LN_S" = "ln -s"; then
3878   echo "$as_me:$LINENO: result: yes" >&5
3879 echo "${ECHO_T}yes" >&6
3880 else
3881   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3882 echo "${ECHO_T}no, using $LN_S" >&6
3883 fi
3884
3885 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3886 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3887 if test "${lt_cv_deplibs_check_method+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   lt_cv_file_magic_cmd='$MAGIC_CMD'
3891 lt_cv_file_magic_test_file=
3892 lt_cv_deplibs_check_method='unknown'
3893 # Need to set the preceding variable on all platforms that support
3894 # interlibrary dependencies.
3895 # 'none' -- dependencies not supported.
3896 # `unknown' -- same as none, but documents that we really don't know.
3897 # 'pass_all' -- all dependencies passed with no checks.
3898 # 'test_compile' -- check by making test program.
3899 # 'file_magic [[regex]]' -- check by looking for files in library path
3900 # which responds to the $file_magic_cmd with a given extended regex.
3901 # If you have `file' or equivalent on your system and you're not sure
3902 # whether `pass_all' will *always* work, you probably want this one.
3903
3904 case $host_os in
3905 aix4* | aix5*)
3906   lt_cv_deplibs_check_method=pass_all
3907   ;;
3908
3909 beos*)
3910   lt_cv_deplibs_check_method=pass_all
3911   ;;
3912
3913 bsdi4*)
3914   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3915   lt_cv_file_magic_cmd='/usr/bin/file -L'
3916   lt_cv_file_magic_test_file=/shlib/libc.so
3917   ;;
3918
3919 cygwin* | mingw* | pw32*)
3920   # win32_libid is a shell function defined in ltmain.sh
3921   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3922   lt_cv_file_magic_cmd='win32_libid'
3923   ;;
3924
3925 darwin* | rhapsody*)
3926   # this will be overwritten by pass_all, but leave it in just in case
3927   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3928   lt_cv_file_magic_cmd='/usr/bin/file -L'
3929   case "$host_os" in
3930   rhapsody* | darwin1.[012])
3931     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
3932     ;;
3933   *) # Darwin 1.3 on
3934     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3935     ;;
3936   esac
3937   lt_cv_deplibs_check_method=pass_all
3938   ;;
3939
3940 freebsd*)
3941   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3942     case $host_cpu in
3943     i*86 )
3944       # Not sure whether the presence of OpenBSD here was a mistake.
3945       # Let's accept both of them until this is cleared up.
3946       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3947       lt_cv_file_magic_cmd=/usr/bin/file
3948       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3949       ;;
3950     esac
3951   else
3952     lt_cv_deplibs_check_method=pass_all
3953   fi
3954   ;;
3955
3956 gnu*)
3957   lt_cv_deplibs_check_method=pass_all
3958   ;;
3959
3960 hpux10.20* | hpux11*)
3961   lt_cv_file_magic_cmd=/usr/bin/file
3962   case "$host_cpu" in
3963   ia64*)
3964     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3965     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3966     ;;
3967   hppa*64*)
3968     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]'
3969     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3970     ;;
3971   *)
3972     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3973     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3974     ;;
3975   esac
3976   ;;
3977
3978 irix5* | irix6* | nonstopux*)
3979   case $host_os in
3980   irix5* | nonstopux*)
3981     # this will be overridden with pass_all, but let us keep it just in case
3982     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3983     ;;
3984   *)
3985     case $LD in
3986     *-32|*"-32 ") libmagic=32-bit;;
3987     *-n32|*"-n32 ") libmagic=N32;;
3988     *-64|*"-64 ") libmagic=64-bit;;
3989     *) libmagic=never-match;;
3990     esac
3991     # this will be overridden with pass_all, but let us keep it just in case
3992     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3993     ;;
3994   esac
3995   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3996   lt_cv_deplibs_check_method=pass_all
3997   ;;
3998
3999 # This must be Linux ELF.
4000 linux*)
4001   case $host_cpu in
4002   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
4003     lt_cv_deplibs_check_method=pass_all ;;
4004   *)
4005     # glibc up to 2.1.1 does not perform some relocations on ARM
4006     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4007   esac
4008   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4009   ;;
4010
4011 netbsd*)
4012   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4013     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4014   else
4015     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4016   fi
4017   ;;
4018
4019 newos6*)
4020   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4021   lt_cv_file_magic_cmd=/usr/bin/file
4022   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4023   ;;
4024
4025 nto-qnx)
4026   lt_cv_deplibs_check_method=unknown
4027   ;;
4028
4029 openbsd*)
4030   lt_cv_file_magic_cmd=/usr/bin/file
4031   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4032   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4033     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4034   else
4035     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4036   fi
4037   ;;
4038
4039 osf3* | osf4* | osf5*)
4040   # this will be overridden with pass_all, but let us keep it just in case
4041   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4042   lt_cv_file_magic_test_file=/shlib/libc.so
4043   lt_cv_deplibs_check_method=pass_all
4044   ;;
4045
4046 sco3.2v5*)
4047   lt_cv_deplibs_check_method=pass_all
4048   ;;
4049
4050 solaris*)
4051   lt_cv_deplibs_check_method=pass_all
4052   lt_cv_file_magic_test_file=/lib/libc.so
4053   ;;
4054
4055 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4056   case $host_vendor in
4057   motorola)
4058     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]'
4059     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4060     ;;
4061   ncr)
4062     lt_cv_deplibs_check_method=pass_all
4063     ;;
4064   sequent)
4065     lt_cv_file_magic_cmd='/bin/file'
4066     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4067     ;;
4068   sni)
4069     lt_cv_file_magic_cmd='/bin/file'
4070     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4071     lt_cv_file_magic_test_file=/lib/libc.so
4072     ;;
4073   siemens)
4074     lt_cv_deplibs_check_method=pass_all
4075     ;;
4076   esac
4077   ;;
4078
4079 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4080   lt_cv_deplibs_check_method=pass_all
4081   ;;
4082 esac
4083
4084 fi
4085 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4086 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4087 file_magic_cmd=$lt_cv_file_magic_cmd
4088 deplibs_check_method=$lt_cv_deplibs_check_method
4089 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4090
4091
4092
4093
4094 # If no C compiler was specified, use CC.
4095 LTCC=${LTCC-"$CC"}
4096
4097 # Allow CC to be a program name with arguments.
4098 compiler=$CC
4099
4100 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4101 if test "${enable_libtool_lock+set}" = set; then
4102   enableval="$enable_libtool_lock"
4103
4104 fi;
4105 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4106
4107 # Some flags need to be propagated to the compiler or linker for good
4108 # libtool support.
4109 case $host in
4110 ia64-*-hpux*)
4111   # Find out which ABI we are using.
4112   echo 'int i;' > conftest.$ac_ext
4113   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114   (eval $ac_compile) 2>&5
4115   ac_status=$?
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); }; then
4118     case `/usr/bin/file conftest.$ac_objext` in
4119     *ELF-32*)
4120       HPUX_IA64_MODE="32"
4121       ;;
4122     *ELF-64*)
4123       HPUX_IA64_MODE="64"
4124       ;;
4125     esac
4126   fi
4127   rm -rf conftest*
4128   ;;
4129 *-*-irix6*)
4130   # Find out which ABI we are using.
4131   echo '#line 4131 "configure"' > conftest.$ac_ext
4132   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133   (eval $ac_compile) 2>&5
4134   ac_status=$?
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); }; then
4137    if test "$lt_cv_prog_gnu_ld" = yes; then
4138     case `/usr/bin/file conftest.$ac_objext` in
4139     *32-bit*)
4140       LD="${LD-ld} -melf32bsmip"
4141       ;;
4142     *N32*)
4143       LD="${LD-ld} -melf32bmipn32"
4144       ;;
4145     *64-bit*)
4146       LD="${LD-ld} -melf64bmip"
4147       ;;
4148     esac
4149    else
4150     case `/usr/bin/file conftest.$ac_objext` in
4151     *32-bit*)
4152       LD="${LD-ld} -32"
4153       ;;
4154     *N32*)
4155       LD="${LD-ld} -n32"
4156       ;;
4157     *64-bit*)
4158       LD="${LD-ld} -64"
4159       ;;
4160     esac
4161    fi
4162   fi
4163   rm -rf conftest*
4164   ;;
4165
4166 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4167   # Find out which ABI we are using.
4168   echo 'int i;' > conftest.$ac_ext
4169   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4170   (eval $ac_compile) 2>&5
4171   ac_status=$?
4172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173   (exit $ac_status); }; then
4174     case "`/usr/bin/file conftest.o`" in
4175     *32-bit*)
4176       case $host in
4177         x86_64-*linux*)
4178           LD="${LD-ld} -m elf_i386"
4179           ;;
4180         ppc64-*linux*)
4181           LD="${LD-ld} -m elf32ppclinux"
4182           ;;
4183         s390x-*linux*)
4184           LD="${LD-ld} -m elf_s390"
4185           ;;
4186         sparc64-*linux*)
4187           LD="${LD-ld} -m elf32_sparc"
4188           ;;
4189       esac
4190       ;;
4191     *64-bit*)
4192       case $host in
4193         x86_64-*linux*)
4194           LD="${LD-ld} -m elf_x86_64"
4195           ;;
4196         ppc*-*linux*|powerpc*-*linux*)
4197           LD="${LD-ld} -m elf64ppc"
4198           ;;
4199         s390*-*linux*)
4200           LD="${LD-ld} -m elf64_s390"
4201           ;;
4202         sparc*-*linux*)
4203           LD="${LD-ld} -m elf64_sparc"
4204           ;;
4205       esac
4206       ;;
4207     esac
4208   fi
4209   rm -rf conftest*
4210   ;;
4211
4212 *-*-sco3.2v5*)
4213   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4214   SAVE_CFLAGS="$CFLAGS"
4215   CFLAGS="$CFLAGS -belf"
4216   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4217 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4218 if test "${lt_cv_cc_needs_belf+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   ac_ext=c
4222 ac_cpp='$CPP $CPPFLAGS'
4223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226
4227      cat >conftest.$ac_ext <<_ACEOF
4228 #line $LINENO "configure"
4229 #include "confdefs.h"
4230
4231 #ifdef F77_DUMMY_MAIN
4232 #  ifdef __cplusplus
4233      extern "C"
4234 #  endif
4235    int F77_DUMMY_MAIN() { return 1; }
4236 #endif
4237 int
4238 main ()
4239 {
4240
4241   ;
4242   return 0;
4243 }
4244 _ACEOF
4245 rm -f conftest.$ac_objext conftest$ac_exeext
4246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4247   (eval $ac_link) 2>&5
4248   ac_status=$?
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); } &&
4251          { ac_try='test -s conftest$ac_exeext'
4252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4253   (eval $ac_try) 2>&5
4254   ac_status=$?
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); }; }; then
4257   lt_cv_cc_needs_belf=yes
4258 else
4259   echo "$as_me: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4261 lt_cv_cc_needs_belf=no
4262 fi
4263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4264      ac_ext=c
4265 ac_cpp='$CPP $CPPFLAGS'
4266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269
4270 fi
4271 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4272 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4273   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4274     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4275     CFLAGS="$SAVE_CFLAGS"
4276   fi
4277   ;;
4278
4279 esac
4280
4281 need_locks="$enable_libtool_lock"
4282
4283
4284
4285 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4286 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4287 if test "${ac_cv_header_stdc+set}" = set; then
4288   echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290   cat >conftest.$ac_ext <<_ACEOF
4291 #line $LINENO "configure"
4292 #include "confdefs.h"
4293 #include <stdlib.h>
4294 #include <stdarg.h>
4295 #include <string.h>
4296 #include <float.h>
4297
4298 _ACEOF
4299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4301   ac_status=$?
4302   egrep -v '^ *\+' conftest.er1 >conftest.err
4303   rm -f conftest.er1
4304   cat conftest.err >&5
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); } >/dev/null; then
4307   if test -s conftest.err; then
4308     ac_cpp_err=$ac_c_preproc_warn_flag
4309   else
4310     ac_cpp_err=
4311   fi
4312 else
4313   ac_cpp_err=yes
4314 fi
4315 if test -z "$ac_cpp_err"; then
4316   ac_cv_header_stdc=yes
4317 else
4318   echo "$as_me: failed program was:" >&5
4319   cat conftest.$ac_ext >&5
4320   ac_cv_header_stdc=no
4321 fi
4322 rm -f conftest.err conftest.$ac_ext
4323
4324 if test $ac_cv_header_stdc = yes; then
4325   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4326   cat >conftest.$ac_ext <<_ACEOF
4327 #line $LINENO "configure"
4328 #include "confdefs.h"
4329 #include <string.h>
4330
4331 _ACEOF
4332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4333   egrep "memchr" >/dev/null 2>&1; then
4334   :
4335 else
4336   ac_cv_header_stdc=no
4337 fi
4338 rm -f conftest*
4339
4340 fi
4341
4342 if test $ac_cv_header_stdc = yes; then
4343   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4344   cat >conftest.$ac_ext <<_ACEOF
4345 #line $LINENO "configure"
4346 #include "confdefs.h"
4347 #include <stdlib.h>
4348
4349 _ACEOF
4350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4351   egrep "free" >/dev/null 2>&1; then
4352   :
4353 else
4354   ac_cv_header_stdc=no
4355 fi
4356 rm -f conftest*
4357
4358 fi
4359
4360 if test $ac_cv_header_stdc = yes; then
4361   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4362   if test "$cross_compiling" = yes; then
4363   :
4364 else
4365   cat >conftest.$ac_ext <<_ACEOF
4366 #line $LINENO "configure"
4367 #include "confdefs.h"
4368 #include <ctype.h>
4369 #if ((' ' & 0x0FF) == 0x020)
4370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4372 #else
4373 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4374                      || ('j' <= (c) && (c) <= 'r') \
4375                      || ('s' <= (c) && (c) <= 'z'))
4376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4377 #endif
4378
4379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4380 int
4381 main ()
4382 {
4383   int i;
4384   for (i = 0; i < 256; i++)
4385     if (XOR (islower (i), ISLOWER (i))
4386         || toupper (i) != TOUPPER (i))
4387       exit(2);
4388   exit (0);
4389 }
4390 _ACEOF
4391 rm -f conftest$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393   (eval $ac_link) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398   (eval $ac_try) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; }; then
4402   :
4403 else
4404   echo "$as_me: program exited with status $ac_status" >&5
4405 echo "$as_me: failed program was:" >&5
4406 cat conftest.$ac_ext >&5
4407 ( exit $ac_status )
4408 ac_cv_header_stdc=no
4409 fi
4410 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4411 fi
4412 fi
4413 fi
4414 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4415 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4416 if test $ac_cv_header_stdc = yes; then
4417
4418 cat >>confdefs.h <<\_ACEOF
4419 #define STDC_HEADERS 1
4420 _ACEOF
4421
4422 fi
4423
4424 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4435                   inttypes.h stdint.h unistd.h
4436 do
4437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4438 echo "$as_me:$LINENO: checking for $ac_header" >&5
4439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   cat >conftest.$ac_ext <<_ACEOF
4444 #line $LINENO "configure"
4445 #include "confdefs.h"
4446 $ac_includes_default
4447
4448 #include <$ac_header>
4449 _ACEOF
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452   (eval $ac_compile) 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); } &&
4456          { ac_try='test -s conftest.$ac_objext'
4457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458   (eval $ac_try) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; }; then
4462   eval "$as_ac_Header=yes"
4463 else
4464   echo "$as_me: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4466 eval "$as_ac_Header=no"
4467 fi
4468 rm -f conftest.$ac_objext conftest.$ac_ext
4469 fi
4470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4471 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4473   cat >>confdefs.h <<_ACEOF
4474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475 _ACEOF
4476
4477 fi
4478
4479 done
4480
4481
4482
4483 for ac_header in dlfcn.h
4484 do
4485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4487   echo "$as_me:$LINENO: checking for $ac_header" >&5
4488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 fi
4492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4494 else
4495   # Is the header compilable?
4496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4498 cat >conftest.$ac_ext <<_ACEOF
4499 #line $LINENO "configure"
4500 #include "confdefs.h"
4501 $ac_includes_default
4502 #include <$ac_header>
4503 _ACEOF
4504 rm -f conftest.$ac_objext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506   (eval $ac_compile) 2>&5
4507   ac_status=$?
4508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509   (exit $ac_status); } &&
4510          { ac_try='test -s conftest.$ac_objext'
4511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512   (eval $ac_try) 2>&5
4513   ac_status=$?
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); }; }; then
4516   ac_header_compiler=yes
4517 else
4518   echo "$as_me: failed program was:" >&5
4519 cat conftest.$ac_ext >&5
4520 ac_header_compiler=no
4521 fi
4522 rm -f conftest.$ac_objext conftest.$ac_ext
4523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4524 echo "${ECHO_T}$ac_header_compiler" >&6
4525
4526 # Is the header present?
4527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4529 cat >conftest.$ac_ext <<_ACEOF
4530 #line $LINENO "configure"
4531 #include "confdefs.h"
4532 #include <$ac_header>
4533 _ACEOF
4534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4536   ac_status=$?
4537   egrep -v '^ *\+' conftest.er1 >conftest.err
4538   rm -f conftest.er1
4539   cat conftest.err >&5
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); } >/dev/null; then
4542   if test -s conftest.err; then
4543     ac_cpp_err=$ac_c_preproc_warn_flag
4544   else
4545     ac_cpp_err=
4546   fi
4547 else
4548   ac_cpp_err=yes
4549 fi
4550 if test -z "$ac_cpp_err"; then
4551   ac_header_preproc=yes
4552 else
4553   echo "$as_me: failed program was:" >&5
4554   cat conftest.$ac_ext >&5
4555   ac_header_preproc=no
4556 fi
4557 rm -f conftest.err conftest.$ac_ext
4558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4559 echo "${ECHO_T}$ac_header_preproc" >&6
4560
4561 # So?  What about this header?
4562 case $ac_header_compiler:$ac_header_preproc in
4563   yes:no )
4564     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4568   no:yes )
4569     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4570 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4571     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4572 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4575 esac
4576 echo "$as_me:$LINENO: checking for $ac_header" >&5
4577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4578 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4579   echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581   eval "$as_ac_Header=$ac_header_preproc"
4582 fi
4583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4585
4586 fi
4587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4588   cat >>confdefs.h <<_ACEOF
4589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4590 _ACEOF
4591
4592 fi
4593
4594 done
4595
4596 ac_ext=cc
4597 ac_cpp='$CXXCPP $CPPFLAGS'
4598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4601 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4602 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4603 if test -z "$CXXCPP"; then
4604   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607       # Double quotes because CXXCPP needs to be expanded
4608     for CXXCPP in "$CXX -E" "/lib/cpp"
4609     do
4610       ac_preproc_ok=false
4611 for ac_cxx_preproc_warn_flag in '' yes
4612 do
4613   # Use a header file that comes with gcc, so configuring glibc
4614   # with a fresh cross-compiler works.
4615   # On the NeXT, cc -E runs the code through the compiler's parser,
4616   # not just through cpp. "Syntax error" is here to catch this case.
4617   cat >conftest.$ac_ext <<_ACEOF
4618 #line $LINENO "configure"
4619 #include "confdefs.h"
4620 #include <assert.h>
4621                      Syntax error
4622 _ACEOF
4623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4624   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4625   ac_status=$?
4626   egrep -v '^ *\+' conftest.er1 >conftest.err
4627   rm -f conftest.er1
4628   cat conftest.err >&5
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); } >/dev/null; then
4631   if test -s conftest.err; then
4632     ac_cpp_err=$ac_cxx_preproc_warn_flag
4633   else
4634     ac_cpp_err=
4635   fi
4636 else
4637   ac_cpp_err=yes
4638 fi
4639 if test -z "$ac_cpp_err"; then
4640   :
4641 else
4642   echo "$as_me: failed program was:" >&5
4643   cat conftest.$ac_ext >&5
4644   # Broken: fails on valid input.
4645 continue
4646 fi
4647 rm -f conftest.err conftest.$ac_ext
4648
4649   # OK, works on sane cases.  Now check whether non-existent headers
4650   # can be detected and how.
4651   cat >conftest.$ac_ext <<_ACEOF
4652 #line $LINENO "configure"
4653 #include "confdefs.h"
4654 #include <ac_nonexistent.h>
4655 _ACEOF
4656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4657   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4658   ac_status=$?
4659   egrep -v '^ *\+' conftest.er1 >conftest.err
4660   rm -f conftest.er1
4661   cat conftest.err >&5
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } >/dev/null; then
4664   if test -s conftest.err; then
4665     ac_cpp_err=$ac_cxx_preproc_warn_flag
4666   else
4667     ac_cpp_err=
4668   fi
4669 else
4670   ac_cpp_err=yes
4671 fi
4672 if test -z "$ac_cpp_err"; then
4673   # Broken: success on invalid input.
4674 continue
4675 else
4676   echo "$as_me: failed program was:" >&5
4677   cat conftest.$ac_ext >&5
4678   # Passes both tests.
4679 ac_preproc_ok=:
4680 break
4681 fi
4682 rm -f conftest.err conftest.$ac_ext
4683
4684 done
4685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4686 rm -f conftest.err conftest.$ac_ext
4687 if $ac_preproc_ok; then
4688   break
4689 fi
4690
4691     done
4692     ac_cv_prog_CXXCPP=$CXXCPP
4693
4694 fi
4695   CXXCPP=$ac_cv_prog_CXXCPP
4696 else
4697   ac_cv_prog_CXXCPP=$CXXCPP
4698 fi
4699 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4700 echo "${ECHO_T}$CXXCPP" >&6
4701 ac_preproc_ok=false
4702 for ac_cxx_preproc_warn_flag in '' yes
4703 do
4704   # Use a header file that comes with gcc, so configuring glibc
4705   # with a fresh cross-compiler works.
4706   # On the NeXT, cc -E runs the code through the compiler's parser,
4707   # not just through cpp. "Syntax error" is here to catch this case.
4708   cat >conftest.$ac_ext <<_ACEOF
4709 #line $LINENO "configure"
4710 #include "confdefs.h"
4711 #include <assert.h>
4712                      Syntax error
4713 _ACEOF
4714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4716   ac_status=$?
4717   egrep -v '^ *\+' conftest.er1 >conftest.err
4718   rm -f conftest.er1
4719   cat conftest.err >&5
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); } >/dev/null; then
4722   if test -s conftest.err; then
4723     ac_cpp_err=$ac_cxx_preproc_warn_flag
4724   else
4725     ac_cpp_err=
4726   fi
4727 else
4728   ac_cpp_err=yes
4729 fi
4730 if test -z "$ac_cpp_err"; then
4731   :
4732 else
4733   echo "$as_me: failed program was:" >&5
4734   cat conftest.$ac_ext >&5
4735   # Broken: fails on valid input.
4736 continue
4737 fi
4738 rm -f conftest.err conftest.$ac_ext
4739
4740   # OK, works on sane cases.  Now check whether non-existent headers
4741   # can be detected and how.
4742   cat >conftest.$ac_ext <<_ACEOF
4743 #line $LINENO "configure"
4744 #include "confdefs.h"
4745 #include <ac_nonexistent.h>
4746 _ACEOF
4747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4748   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4749   ac_status=$?
4750   egrep -v '^ *\+' conftest.er1 >conftest.err
4751   rm -f conftest.er1
4752   cat conftest.err >&5
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); } >/dev/null; then
4755   if test -s conftest.err; then
4756     ac_cpp_err=$ac_cxx_preproc_warn_flag
4757   else
4758     ac_cpp_err=
4759   fi
4760 else
4761   ac_cpp_err=yes
4762 fi
4763 if test -z "$ac_cpp_err"; then
4764   # Broken: success on invalid input.
4765 continue
4766 else
4767   echo "$as_me: failed program was:" >&5
4768   cat conftest.$ac_ext >&5
4769   # Passes both tests.
4770 ac_preproc_ok=:
4771 break
4772 fi
4773 rm -f conftest.err conftest.$ac_ext
4774
4775 done
4776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4777 rm -f conftest.err conftest.$ac_ext
4778 if $ac_preproc_ok; then
4779   :
4780 else
4781   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
4782 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
4783    { (exit 1); exit 1; }; }
4784 fi
4785
4786 ac_ext=cc
4787 ac_cpp='$CXXCPP $CPPFLAGS'
4788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4791
4792
4793 ac_ext=f
4794 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4795 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4797 if test -n "$ac_tool_prefix"; then
4798   for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc
4799   do
4800     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4802 echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4804 if test "${ac_cv_prog_F77+set}" = set; then
4805   echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807   if test -n "$F77"; then
4808   ac_cv_prog_F77="$F77" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4812 do
4813   IFS=$as_save_IFS
4814   test -z "$as_dir" && as_dir=.
4815   for ac_exec_ext in '' $ac_executable_extensions; do
4816   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4819     break 2
4820   fi
4821 done
4822 done
4823
4824 fi
4825 fi
4826 F77=$ac_cv_prog_F77
4827 if test -n "$F77"; then
4828   echo "$as_me:$LINENO: result: $F77" >&5
4829 echo "${ECHO_T}$F77" >&6
4830 else
4831   echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6
4833 fi
4834
4835     test -n "$F77" && break
4836   done
4837 fi
4838 if test -z "$F77"; then
4839   ac_ct_F77=$F77
4840   for ac_prog in g77 f77 xlf cf77 cft77 frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95 fc
4841 do
4842   # Extract the first word of "$ac_prog", so it can be a program name with args.
4843 set dummy $ac_prog; ac_word=$2
4844 echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   if test -n "$ac_ct_F77"; then
4850   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4851 else
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857   for ac_exec_ext in '' $ac_executable_extensions; do
4858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4859     ac_cv_prog_ac_ct_F77="$ac_prog"
4860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861     break 2
4862   fi
4863 done
4864 done
4865
4866 fi
4867 fi
4868 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4869 if test -n "$ac_ct_F77"; then
4870   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4871 echo "${ECHO_T}$ac_ct_F77" >&6
4872 else
4873   echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6
4875 fi
4876
4877   test -n "$ac_ct_F77" && break
4878 done
4879
4880   F77=$ac_ct_F77
4881 fi
4882
4883
4884 # Provide some information about the compiler.
4885 echo "$as_me:4885:" \
4886      "checking for Fortran 77 compiler version" >&5
4887 ac_compiler=`set X $ac_compile; echo $2`
4888 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4889   (eval $ac_compiler --version </dev/null >&5) 2>&5
4890   ac_status=$?
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); }
4893 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4894   (eval $ac_compiler -v </dev/null >&5) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }
4898 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4899   (eval $ac_compiler -V </dev/null >&5) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }
4903
4904 # If we don't use `.F' as extension, the preprocessor is not run on the
4905 # input file.
4906 ac_save_ext=$ac_ext
4907 ac_ext=F
4908 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4909 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4910 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4911   echo $ECHO_N "(cached) $ECHO_C" >&6
4912 else
4913   cat >conftest.$ac_ext <<_ACEOF
4914       program main
4915 #ifndef __GNUC__
4916        choke me
4917 #endif
4918
4919       end
4920 _ACEOF
4921 rm -f conftest.$ac_objext
4922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923   (eval $ac_compile) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); } &&
4927          { ac_try='test -s conftest.$ac_objext'
4928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929   (eval $ac_try) 2>&5
4930   ac_status=$?
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); }; }; then
4933   ac_compiler_gnu=yes
4934 else
4935   echo "$as_me: failed program was:" >&5
4936 cat conftest.$ac_ext >&5
4937 ac_compiler_gnu=no
4938 fi
4939 rm -f conftest.$ac_objext conftest.$ac_ext
4940 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4941
4942 fi
4943 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4944 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4945 ac_ext=$ac_save_ext
4946 G77=`test $ac_compiler_gnu = yes && echo yes`
4947 ac_test_FFLAGS=${FFLAGS+set}
4948 ac_save_FFLAGS=$FFLAGS
4949 FFLAGS=
4950 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4951 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4952 if test "${ac_cv_prog_f77_g+set}" = set; then
4953   echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955   FFLAGS=-g
4956 cat >conftest.$ac_ext <<_ACEOF
4957       program main
4958
4959       end
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963   (eval $ac_compile) 2>&5
4964   ac_status=$?
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } &&
4967          { ac_try='test -s conftest.$ac_objext'
4968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4969   (eval $ac_try) 2>&5
4970   ac_status=$?
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); }; }; then
4973   ac_cv_prog_f77_g=yes
4974 else
4975   echo "$as_me: failed program was:" >&5
4976 cat conftest.$ac_ext >&5
4977 ac_cv_prog_f77_g=no
4978 fi
4979 rm -f conftest.$ac_objext conftest.$ac_ext
4980
4981 fi
4982 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4983 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4984 if test "$ac_test_FFLAGS" = set; then
4985   FFLAGS=$ac_save_FFLAGS
4986 elif test $ac_cv_prog_f77_g = yes; then
4987   if test "$G77" = yes; then
4988     FFLAGS="-g -O2"
4989   else
4990     FFLAGS="-g"
4991   fi
4992 else
4993   if test "$G77" = yes; then
4994     FFLAGS="-O2"
4995   else
4996     FFLAGS=
4997   fi
4998 fi
4999 ac_ext=c
5000 ac_cpp='$CPP $CPPFLAGS'
5001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5004
5005
5006
5007 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5008
5009 # find the maximum length of command line arguments
5010 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5011 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5012 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5013   echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015     i=0
5016   testring="ABCD"
5017
5018   case $build_os in
5019   msdosdjgpp*)
5020     # On DJGPP, this test can blow up pretty badly due to problems in libc
5021     # (any single argument exceeding 2000 bytes causes a buffer overrun
5022     # during glob expansion).  Even if it were fixed, the result of this
5023     # check would be larger than it should be.
5024     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5025     ;;
5026
5027   gnu*)
5028     # Under GNU Hurd, this test is not required because there is
5029     # no limit to the length of command line arguments.
5030     # Libtool will interpret -1 as no limit whatsoever
5031     lt_cv_sys_max_cmd_len=-1;
5032     ;;
5033
5034   cygwin* | mingw*)
5035     # On Win9x/ME, this test blows up -- it succeeds, but takes
5036     # about 5 minutes as the teststring grows exponentially.
5037     # Worse, since 9x/ME are not pre-emptively multitasking,
5038     # you end up with a "frozen" computer, even though with patience
5039     # the test eventually succeeds (with a max line length of 256k).
5040     # Instead, let's just punt: use the minimum linelength reported by
5041     # all of the supported platforms: 8192 (on NT/2K/XP).
5042     lt_cv_sys_max_cmd_len=8192;
5043     ;;
5044
5045  *)
5046     # If test is not a shell built-in, we'll probably end up computing a
5047     # maximum length that is only half of the actual maximum length, but
5048     # we can't tell.
5049     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5050                = "XX$testring") >/dev/null 2>&1 &&
5051             new_result=`expr "X$testring" : ".*" 2>&1` &&
5052             lt_cv_sys_max_cmd_len=$new_result &&
5053             test $i != 17 # 1/2 MB should be enough
5054     do
5055       i=`expr $i + 1`
5056       testring=$testring$testring
5057     done
5058     testring=
5059     # Add a significant safety factor because C++ compilers can tack on massive
5060     # amounts of additional arguments before passing them to the linker.
5061     # It appears as though 1/2 is a usable value.
5062     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5063     ;;
5064   esac
5065
5066 fi
5067
5068 if test -n $lt_cv_sys_max_cmd_len ; then
5069   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5070 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5071 else
5072   echo "$as_me:$LINENO: result: none" >&5
5073 echo "${ECHO_T}none" >&6
5074 fi
5075
5076
5077
5078
5079 # Check for command to grab the raw symbol name followed by C symbol from nm.
5080 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5081 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5082 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085
5086 # These are sane defaults that work on at least a few old systems.
5087 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5088
5089 # Character class describing NM global symbol codes.
5090 symcode='[BCDEGRST]'
5091
5092 # Regexp to match symbols that can be accessed directly from C.
5093 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5094
5095 # Transform the above into a raw symbol and a C symbol.
5096 symxfrm='\1 \2\3 \3'
5097
5098 # Transform an extracted symbol line into a proper C declaration
5099 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5100
5101 # Transform an extracted symbol line into symbol name and symbol address
5102 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'"
5103
5104 # Define system-specific variables.
5105 case $host_os in
5106 aix*)
5107   symcode='[BCDT]'
5108   ;;
5109 cygwin* | mingw* | pw32*)
5110   symcode='[ABCDGISTW]'
5111   ;;
5112 hpux*) # Its linker distinguishes data from code symbols
5113   if test "$host_cpu" = ia64; then
5114     symcode='[ABCDEGRST]'
5115   fi
5116   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5117   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'"
5118   ;;
5119 irix* | nonstopux*)
5120   symcode='[BCDEGRST]'
5121   ;;
5122 osf*)
5123   symcode='[BCDEGQRST]'
5124   ;;
5125 solaris* | sysv5*)
5126   symcode='[BDT]'
5127   ;;
5128 sysv4)
5129   symcode='[DFNSTU]'
5130   ;;
5131 esac
5132
5133 # Handle CRLF in mingw tool chain
5134 opt_cr=
5135 case $build_os in
5136 mingw*)
5137   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5138   ;;
5139 esac
5140
5141 # If we're using GNU nm, then use its standard symbol codes.
5142 case `$NM -V 2>&1` in
5143 *GNU* | *'with BFD'*)
5144   symcode='[ABCDGISTW]' ;;
5145 esac
5146
5147 # Try without a prefix undercore, then with it.
5148 for ac_symprfx in "" "_"; do
5149
5150   # Write the raw and C identifiers.
5151   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5152
5153   # Check to see that the pipe works correctly.
5154   pipe_works=no
5155
5156   rm -f conftest*
5157   cat > conftest.$ac_ext <<EOF
5158 #ifdef __cplusplus
5159 extern "C" {
5160 #endif
5161 char nm_test_var;
5162 void nm_test_func(){}
5163 #ifdef __cplusplus
5164 }
5165 #endif
5166 int main(){nm_test_var='a';nm_test_func();return(0);}
5167 EOF
5168
5169   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5170   (eval $ac_compile) 2>&5
5171   ac_status=$?
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); }; then
5174     # Now try to grab the symbols.
5175     nlist=conftest.nm
5176     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5177   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5178   ac_status=$?
5179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180   (exit $ac_status); } && test -s "$nlist"; then
5181       # Try sorting and uniquifying the output.
5182       if sort "$nlist" | uniq > "$nlist"T; then
5183         mv -f "$nlist"T "$nlist"
5184       else
5185         rm -f "$nlist"T
5186       fi
5187
5188       # Make sure that we snagged all the symbols we need.
5189       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5190         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5191           cat <<EOF > conftest.$ac_ext
5192 #ifdef __cplusplus
5193 extern "C" {
5194 #endif
5195
5196 EOF
5197           # Now generate the symbol file.
5198           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5199
5200           cat <<EOF >> conftest.$ac_ext
5201 #if defined (__STDC__) && __STDC__
5202 # define lt_ptr_t void *
5203 #else
5204 # define lt_ptr_t char *
5205 # define const
5206 #endif
5207
5208 /* The mapping between symbol names and symbols. */
5209 const struct {
5210   const char *name;
5211   lt_ptr_t address;
5212 }
5213 lt_preloaded_symbols[] =
5214 {
5215 EOF
5216           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5217           cat <<\EOF >> conftest.$ac_ext
5218   {0, (lt_ptr_t) 0}
5219 };
5220
5221 #ifdef __cplusplus
5222 }
5223 #endif
5224 EOF
5225           # Now try linking the two files.
5226           mv conftest.$ac_objext conftstm.$ac_objext
5227           lt_save_LIBS="$LIBS"
5228           lt_save_CFLAGS="$CFLAGS"
5229           LIBS="conftstm.$ac_objext"
5230           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5231           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232   (eval $ac_link) 2>&5
5233   ac_status=$?
5234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5236             pipe_works=yes
5237           fi
5238           LIBS="$lt_save_LIBS"
5239           CFLAGS="$lt_save_CFLAGS"
5240         else
5241           echo "cannot find nm_test_func in $nlist" >&5
5242         fi
5243       else
5244         echo "cannot find nm_test_var in $nlist" >&5
5245       fi
5246     else
5247       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5248     fi
5249   else
5250     echo "$progname: failed program was:" >&5
5251     cat conftest.$ac_ext >&5
5252   fi
5253   rm -f conftest* conftst*
5254
5255   # Do not use the global_symbol_pipe unless it works.
5256   if test "$pipe_works" = yes; then
5257     break
5258   else
5259     lt_cv_sys_global_symbol_pipe=
5260   fi
5261 done
5262
5263 fi
5264
5265 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5266   lt_cv_sys_global_symbol_to_cdecl=
5267 fi
5268 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5269   echo "$as_me:$LINENO: result: failed" >&5
5270 echo "${ECHO_T}failed" >&6
5271 else
5272   echo "$as_me:$LINENO: result: ok" >&5
5273 echo "${ECHO_T}ok" >&6
5274 fi
5275
5276 echo "$as_me:$LINENO: checking for objdir" >&5
5277 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5278 if test "${lt_cv_objdir+set}" = set; then
5279   echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281   rm -f .libs 2>/dev/null
5282 mkdir .libs 2>/dev/null
5283 if test -d .libs; then
5284   lt_cv_objdir=.libs
5285 else
5286   # MS-DOS does not allow filenames that begin with a dot.
5287   lt_cv_objdir=_libs
5288 fi
5289 rmdir .libs 2>/dev/null
5290 fi
5291 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5292 echo "${ECHO_T}$lt_cv_objdir" >&6
5293 objdir=$lt_cv_objdir
5294
5295
5296
5297
5298
5299 case $host_os in
5300 aix3*)
5301   # AIX sometimes has problems with the GCC collect2 program.  For some
5302   # reason, if we set the COLLECT_NAMES environment variable, the problems
5303   # vanish in a puff of smoke.
5304   if test "X${COLLECT_NAMES+set}" != Xset; then
5305     COLLECT_NAMES=
5306     export COLLECT_NAMES
5307   fi
5308   ;;
5309 esac
5310
5311 # Sed substitution that helps us do robust quoting.  It backslashifies
5312 # metacharacters that are still active within double-quoted strings.
5313 Xsed='sed -e s/^X//'
5314 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5315
5316 # Same as above, but do not quote variable references.
5317 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5318
5319 # Sed substitution to delay expansion of an escaped shell variable in a
5320 # double_quote_subst'ed string.
5321 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5322
5323 # Sed substitution to avoid accidental globbing in evaled expressions
5324 no_glob_subst='s/\*/\\\*/g'
5325
5326 # Constants:
5327 rm="rm -f"
5328
5329 # Global variables:
5330 default_ofile=mklib
5331 can_build_shared=yes
5332
5333 # All known linkers require a `.a' archive for static linking (except M$VC,
5334 # which needs '.lib').
5335 libext=a
5336 ltmain="$ac_aux_dir/ltmain.sh"
5337 ofile="$default_ofile"
5338 with_gnu_ld="$lt_cv_prog_gnu_ld"
5339
5340 if test -n "$ac_tool_prefix"; then
5341   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5342 set dummy ${ac_tool_prefix}ar; ac_word=$2
5343 echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5345 if test "${ac_cv_prog_AR+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   if test -n "$AR"; then
5349   ac_cv_prog_AR="$AR" # Let the user override the test.
5350 else
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5353 do
5354   IFS=$as_save_IFS
5355   test -z "$as_dir" && as_dir=.
5356   for ac_exec_ext in '' $ac_executable_extensions; do
5357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358     ac_cv_prog_AR="${ac_tool_prefix}ar"
5359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360     break 2
5361   fi
5362 done
5363 done
5364
5365 fi
5366 fi
5367 AR=$ac_cv_prog_AR
5368 if test -n "$AR"; then
5369   echo "$as_me:$LINENO: result: $AR" >&5
5370 echo "${ECHO_T}$AR" >&6
5371 else
5372   echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5374 fi
5375
5376 fi
5377 if test -z "$ac_cv_prog_AR"; then
5378   ac_ct_AR=$AR
5379   # Extract the first word of "ar", so it can be a program name with args.
5380 set dummy ar; ac_word=$2
5381 echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   if test -n "$ac_ct_AR"; then
5387   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5391 do
5392   IFS=$as_save_IFS
5393   test -z "$as_dir" && as_dir=.
5394   for ac_exec_ext in '' $ac_executable_extensions; do
5395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396     ac_cv_prog_ac_ct_AR="ar"
5397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5398     break 2
5399   fi
5400 done
5401 done
5402
5403   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5404 fi
5405 fi
5406 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5407 if test -n "$ac_ct_AR"; then
5408   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5409 echo "${ECHO_T}$ac_ct_AR" >&6
5410 else
5411   echo "$as_me:$LINENO: result: no" >&5
5412 echo "${ECHO_T}no" >&6
5413 fi
5414
5415   AR=$ac_ct_AR
5416 else
5417   AR="$ac_cv_prog_AR"
5418 fi
5419
5420 if test -n "$ac_tool_prefix"; then
5421   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5422 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5423 echo "$as_me:$LINENO: checking for $ac_word" >&5
5424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5425 if test "${ac_cv_prog_RANLIB+set}" = set; then
5426   echo $ECHO_N "(cached) $ECHO_C" >&6
5427 else
5428   if test -n "$RANLIB"; then
5429   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434   IFS=$as_save_IFS
5435   test -z "$as_dir" && as_dir=.
5436   for ac_exec_ext in '' $ac_executable_extensions; do
5437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5440     break 2
5441   fi
5442 done
5443 done
5444
5445 fi
5446 fi
5447 RANLIB=$ac_cv_prog_RANLIB
5448 if test -n "$RANLIB"; then
5449   echo "$as_me:$LINENO: result: $RANLIB" >&5
5450 echo "${ECHO_T}$RANLIB" >&6
5451 else
5452   echo "$as_me:$LINENO: result: no" >&5
5453 echo "${ECHO_T}no" >&6
5454 fi
5455
5456 fi
5457 if test -z "$ac_cv_prog_RANLIB"; then
5458   ac_ct_RANLIB=$RANLIB
5459   # Extract the first word of "ranlib", so it can be a program name with args.
5460 set dummy ranlib; ac_word=$2
5461 echo "$as_me:$LINENO: checking for $ac_word" >&5
5462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5463 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5464   echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466   if test -n "$ac_ct_RANLIB"; then
5467   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472   IFS=$as_save_IFS
5473   test -z "$as_dir" && as_dir=.
5474   for ac_exec_ext in '' $ac_executable_extensions; do
5475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476     ac_cv_prog_ac_ct_RANLIB="ranlib"
5477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478     break 2
5479   fi
5480 done
5481 done
5482
5483   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5484 fi
5485 fi
5486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5487 if test -n "$ac_ct_RANLIB"; then
5488   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5489 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5490 else
5491   echo "$as_me:$LINENO: result: no" >&5
5492 echo "${ECHO_T}no" >&6
5493 fi
5494
5495   RANLIB=$ac_ct_RANLIB
5496 else
5497   RANLIB="$ac_cv_prog_RANLIB"
5498 fi
5499
5500 if test -n "$ac_tool_prefix"; then
5501   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5502 set dummy ${ac_tool_prefix}strip; ac_word=$2
5503 echo "$as_me:$LINENO: checking for $ac_word" >&5
5504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5505 if test "${ac_cv_prog_STRIP+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508   if test -n "$STRIP"; then
5509   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5510 else
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514   IFS=$as_save_IFS
5515   test -z "$as_dir" && as_dir=.
5516   for ac_exec_ext in '' $ac_executable_extensions; do
5517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5520     break 2
5521   fi
5522 done
5523 done
5524
5525 fi
5526 fi
5527 STRIP=$ac_cv_prog_STRIP
5528 if test -n "$STRIP"; then
5529   echo "$as_me:$LINENO: result: $STRIP" >&5
5530 echo "${ECHO_T}$STRIP" >&6
5531 else
5532   echo "$as_me:$LINENO: result: no" >&5
5533 echo "${ECHO_T}no" >&6
5534 fi
5535
5536 fi
5537 if test -z "$ac_cv_prog_STRIP"; then
5538   ac_ct_STRIP=$STRIP
5539   # Extract the first word of "strip", so it can be a program name with args.
5540 set dummy strip; ac_word=$2
5541 echo "$as_me:$LINENO: checking for $ac_word" >&5
5542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5543 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546   if test -n "$ac_ct_STRIP"; then
5547   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5551 do
5552   IFS=$as_save_IFS
5553   test -z "$as_dir" && as_dir=.
5554   for ac_exec_ext in '' $ac_executable_extensions; do
5555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556     ac_cv_prog_ac_ct_STRIP="strip"
5557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558     break 2
5559   fi
5560 done
5561 done
5562
5563   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5564 fi
5565 fi
5566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5567 if test -n "$ac_ct_STRIP"; then
5568   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5569 echo "${ECHO_T}$ac_ct_STRIP" >&6
5570 else
5571   echo "$as_me:$LINENO: result: no" >&5
5572 echo "${ECHO_T}no" >&6
5573 fi
5574
5575   STRIP=$ac_ct_STRIP
5576 else
5577   STRIP="$ac_cv_prog_STRIP"
5578 fi
5579
5580
5581 old_CC="$CC"
5582 old_CFLAGS="$CFLAGS"
5583
5584 # Set sane defaults for various variables
5585 test -z "$AR" && AR=ar
5586 test -z "$AR_FLAGS" && AR_FLAGS=cru
5587 test -z "$AS" && AS=as
5588 test -z "$CC" && CC=cc
5589 test -z "$LTCC" && LTCC=$CC
5590 test -z "$DLLTOOL" && DLLTOOL=dlltool
5591 test -z "$LD" && LD=ld
5592 test -z "$LN_S" && LN_S="ln -s"
5593 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5594 test -z "$NM" && NM=nm
5595 test -z "$SED" && SED=sed
5596 test -z "$OBJDUMP" && OBJDUMP=objdump
5597 test -z "$RANLIB" && RANLIB=:
5598 test -z "$STRIP" && STRIP=:
5599 test -z "$ac_objext" && ac_objext=o
5600
5601 # Determine commands to create old-style static archives.
5602 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5603 old_postinstall_cmds='chmod 644 $oldlib'
5604 old_postuninstall_cmds=
5605
5606 if test -n "$RANLIB"; then
5607   case $host_os in
5608   openbsd*)
5609     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5610     ;;
5611   *)
5612     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5613     ;;
5614   esac
5615   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5616 fi
5617
5618 # Only perform the check for file, if the check method requires it
5619 case $deplibs_check_method in
5620 file_magic*)
5621   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5622     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5623 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5624 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5625   echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627   case $MAGIC_CMD in
5628 [\\/*] |  ?:[\\/]*)
5629   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5630   ;;
5631 *)
5632   lt_save_MAGIC_CMD="$MAGIC_CMD"
5633   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5634   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5635   for ac_dir in $ac_dummy; do
5636     IFS="$lt_save_ifs"
5637     test -z "$ac_dir" && ac_dir=.
5638     if test -f $ac_dir/${ac_tool_prefix}file; then
5639       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5640       if test -n "$file_magic_test_file"; then
5641         case $deplibs_check_method in
5642         "file_magic "*)
5643           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5644           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5645           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5646             $EGREP "$file_magic_regex" > /dev/null; then
5647             :
5648           else
5649             cat <<EOF 1>&2
5650
5651 *** Warning: the command libtool uses to detect shared libraries,
5652 *** $file_magic_cmd, produces output that libtool cannot recognize.
5653 *** The result is that libtool may fail to recognize shared libraries
5654 *** as such.  This will affect the creation of libtool libraries that
5655 *** depend on shared libraries, but programs linked with such libtool
5656 *** libraries will work regardless of this problem.  Nevertheless, you
5657 *** may want to report the problem to your system manager and/or to
5658 *** bug-libtool@gnu.org
5659
5660 EOF
5661           fi ;;
5662         esac
5663       fi
5664       break
5665     fi
5666   done
5667   IFS="$lt_save_ifs"
5668   MAGIC_CMD="$lt_save_MAGIC_CMD"
5669   ;;
5670 esac
5671 fi
5672
5673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5674 if test -n "$MAGIC_CMD"; then
5675   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5676 echo "${ECHO_T}$MAGIC_CMD" >&6
5677 else
5678   echo "$as_me:$LINENO: result: no" >&5
5679 echo "${ECHO_T}no" >&6
5680 fi
5681
5682 if test -z "$lt_cv_path_MAGIC_CMD"; then
5683   if test -n "$ac_tool_prefix"; then
5684     echo "$as_me:$LINENO: checking for file" >&5
5685 echo $ECHO_N "checking for file... $ECHO_C" >&6
5686 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689   case $MAGIC_CMD in
5690 [\\/*] |  ?:[\\/]*)
5691   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5692   ;;
5693 *)
5694   lt_save_MAGIC_CMD="$MAGIC_CMD"
5695   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5696   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5697   for ac_dir in $ac_dummy; do
5698     IFS="$lt_save_ifs"
5699     test -z "$ac_dir" && ac_dir=.
5700     if test -f $ac_dir/file; then
5701       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5702       if test -n "$file_magic_test_file"; then
5703         case $deplibs_check_method in
5704         "file_magic "*)
5705           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5706           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5707           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5708             $EGREP "$file_magic_regex" > /dev/null; then
5709             :
5710           else
5711             cat <<EOF 1>&2
5712
5713 *** Warning: the command libtool uses to detect shared libraries,
5714 *** $file_magic_cmd, produces output that libtool cannot recognize.
5715 *** The result is that libtool may fail to recognize shared libraries
5716 *** as such.  This will affect the creation of libtool libraries that
5717 *** depend on shared libraries, but programs linked with such libtool
5718 *** libraries will work regardless of this problem.  Nevertheless, you
5719 *** may want to report the problem to your system manager and/or to
5720 *** bug-libtool@gnu.org
5721
5722 EOF
5723           fi ;;
5724         esac
5725       fi
5726       break
5727     fi
5728   done
5729   IFS="$lt_save_ifs"
5730   MAGIC_CMD="$lt_save_MAGIC_CMD"
5731   ;;
5732 esac
5733 fi
5734
5735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5736 if test -n "$MAGIC_CMD"; then
5737   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5738 echo "${ECHO_T}$MAGIC_CMD" >&6
5739 else
5740   echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6
5742 fi
5743
5744   else
5745     MAGIC_CMD=:
5746   fi
5747 fi
5748
5749   fi
5750   ;;
5751 esac
5752
5753 enable_dlopen=no
5754 enable_win32_dll=no
5755
5756 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5757 if test "${enable_libtool_lock+set}" = set; then
5758   enableval="$enable_libtool_lock"
5759
5760 fi;
5761 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5762
5763
5764 # Check whether --with-pic or --without-pic was given.
5765 if test "${with_pic+set}" = set; then
5766   withval="$with_pic"
5767   pic_mode="$withval"
5768 else
5769   pic_mode=default
5770 fi;
5771 test -z "$pic_mode" && pic_mode=default
5772
5773 # Use C for the default configuration in the libtool script
5774 tagname=
5775 lt_save_CC="$CC"
5776 ac_ext=c
5777 ac_cpp='$CPP $CPPFLAGS'
5778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5781
5782
5783 # Source file extension for C test sources.
5784 ac_ext=c
5785
5786 # Object file extension for compiled C test sources.
5787 objext=o
5788 objext=$objext
5789
5790 # Code to be used in simple compile tests
5791 lt_simple_compile_test_code="int some_variable = 0;\n"
5792
5793 # Code to be used in simple link tests
5794 lt_simple_link_test_code='int main(){return(0);}\n'
5795
5796
5797 # If no C compiler was specified, use CC.
5798 LTCC=${LTCC-"$CC"}
5799
5800 # Allow CC to be a program name with arguments.
5801 compiler=$CC
5802
5803
5804 #
5805 # Check for any special shared library compilation flags.
5806 #
5807 lt_prog_cc_shlib=
5808 if test "$GCC" = no; then
5809   case $host_os in
5810   sco3.2v5*)
5811     lt_prog_cc_shlib='-belf'
5812     ;;
5813   esac
5814 fi
5815 if test -n "$lt_prog_cc_shlib"; then
5816   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5817 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5818   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
5819   else
5820     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5821 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5822     lt_cv_prog_cc_can_build_shared=no
5823   fi
5824 fi
5825
5826
5827 #
5828 # Check to make sure the static flag actually works.
5829 #
5830 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5831 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5832 if test "${lt_prog_compiler_static_works+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   lt_prog_compiler_static_works=no
5836    save_LDFLAGS="$LDFLAGS"
5837    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5838    printf "$lt_simple_link_test_code" > conftest.$ac_ext
5839    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5840      # The compiler can only warn and ignore the option if not recognized
5841      # So say no if there are warnings
5842      if test -s conftest.err; then
5843        # Append any errors to the config.log.
5844        cat conftest.err 1>&5
5845      else
5846        lt_prog_compiler_static_works=yes
5847      fi
5848    fi
5849    $rm conftest*
5850    LDFLAGS="$save_LDFLAGS"
5851
5852 fi
5853 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5854 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5855
5856 if test x"$lt_prog_compiler_static_works" = xyes; then
5857     :
5858 else
5859     lt_prog_compiler_static=
5860 fi
5861
5862
5863
5864 ## CAVEAT EMPTOR:
5865 ## There is no encapsulation within the following macros, do not change
5866 ## the running order or otherwise move them around unless you know exactly
5867 ## what you are doing...
5868
5869 lt_prog_compiler_no_builtin_flag=
5870
5871 if test "$GCC" = yes; then
5872   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5873
5874   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5875 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5876 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   lt_cv_prog_compiler_rtti_exceptions=no
5880   ac_outfile=conftest.$ac_objext
5881    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5882    lt_compiler_flag="-fno-rtti -fno-exceptions"
5883    # Insert the option either (1) after the last *FLAGS variable, or
5884    # (2) before a word containing "conftest.", or (3) at the end.
5885    # Note that $ac_compile itself does not contain backslashes and begins
5886    # with a dollar sign (not a hyphen), so the echo should work correctly.
5887    # The option is referenced via a variable to avoid confusing sed.
5888    lt_compile=`echo "$ac_compile" | $SED \
5889    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5890    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5891    -e 's:$: $lt_compiler_flag:'`
5892    (eval echo "\"\$as_me:5892: $lt_compile\"" >&5)
5893    (eval "$lt_compile" 2>conftest.err)
5894    ac_status=$?
5895    cat conftest.err >&5
5896    echo "$as_me:5896: \$? = $ac_status" >&5
5897    if (exit $ac_status) && test -s "$ac_outfile"; then
5898      # The compiler can only warn and ignore the option if not recognized
5899      # So say no if there are warnings
5900      if test ! -s conftest.err; then
5901        lt_cv_prog_compiler_rtti_exceptions=yes
5902      fi
5903    fi
5904    $rm conftest*
5905
5906 fi
5907 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5908 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5909
5910 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5911     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5912 else
5913     :
5914 fi
5915
5916 fi
5917
5918 lt_prog_compiler_wl=
5919 lt_prog_compiler_pic=
5920 lt_prog_compiler_static=
5921
5922 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5923 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5924
5925   if test "$GCC" = yes; then
5926     lt_prog_compiler_wl='-Wl,'
5927     lt_prog_compiler_static='-static'
5928
5929     case $host_os in
5930       aix*)
5931       # All AIX code is PIC.
5932       if test "$host_cpu" = ia64; then
5933         # AIX 5 now supports IA64 processor
5934         lt_prog_compiler_static='-Bstatic'
5935       fi
5936       ;;
5937
5938     amigaos*)
5939       # FIXME: we need at least 68020 code to build shared libraries, but
5940       # adding the `-m68020' flag to GCC prevents building anything better,
5941       # like `-m68040'.
5942       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5943       ;;
5944
5945     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5946       # PIC is the default for these OSes.
5947       ;;
5948
5949     mingw* | pw32* | os2*)
5950       # This hack is so that the source file can tell whether it is being
5951       # built for inclusion in a dll (and should export symbols for example).
5952       lt_prog_compiler_pic='-DDLL_EXPORT'
5953       ;;
5954
5955     darwin* | rhapsody*)
5956       # PIC is the default on this platform
5957       # Common symbols not allowed in MH_DYLIB files
5958       lt_prog_compiler_pic='-fno-common'
5959       ;;
5960
5961     msdosdjgpp*)
5962       # Just because we use GCC doesn't mean we suddenly get shared libraries
5963       # on systems that don't support them.
5964       lt_prog_compiler_can_build_shared=no
5965       enable_shared=no
5966       ;;
5967
5968     sysv4*MP*)
5969       if test -d /usr/nec; then
5970         lt_prog_compiler_pic=-Kconform_pic
5971       fi
5972       ;;
5973
5974     hpux*)
5975       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5976       # not for PA HP-UX.
5977       case "$host_cpu" in
5978       hppa*64*|ia64*)
5979         # +Z the default
5980         ;;
5981       *)
5982         lt_prog_compiler_pic='-fPIC'
5983         ;;
5984       esac
5985       ;;
5986
5987     *)
5988       lt_prog_compiler_pic='-fPIC'
5989       ;;
5990     esac
5991   else
5992     # PORTME Check for flag to pass linker flags through the system compiler.
5993     case $host_os in
5994     aix*)
5995       lt_prog_compiler_wl='-Wl,'
5996       if test "$host_cpu" = ia64; then
5997         # AIX 5 now supports IA64 processor
5998         lt_prog_compiler_static='-Bstatic'
5999       else
6000         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6001       fi
6002       ;;
6003
6004     mingw* | pw32* | os2*)
6005       # This hack is so that the source file can tell whether it is being
6006       # built for inclusion in a dll (and should export symbols for example).
6007       lt_prog_compiler_pic='-DDLL_EXPORT'
6008       ;;
6009
6010     hpux9* | hpux10* | hpux11*)
6011       lt_prog_compiler_wl='-Wl,'
6012       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6013       # not for PA HP-UX.
6014       case "$host_cpu" in
6015       hppa*64*|ia64*)
6016         # +Z the default
6017         ;;
6018       *)
6019         lt_prog_compiler_pic='+Z'
6020         ;;
6021       esac
6022       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6023       lt_prog_compiler_static='${wl}-a ${wl}archive'
6024       ;;
6025
6026     irix5* | irix6* | nonstopux*)
6027       lt_prog_compiler_wl='-Wl,'
6028       # PIC (with -KPIC) is the default.
6029       lt_prog_compiler_static='-non_shared'
6030       ;;
6031
6032     newsos6)
6033       lt_prog_compiler_pic='-KPIC'
6034       lt_prog_compiler_static='-Bstatic'
6035       ;;
6036
6037     linux*)
6038       case $CC in
6039       icc|ecc)
6040         lt_prog_compiler_wl='-Wl,'
6041         lt_prog_compiler_pic='-KPIC'
6042         lt_prog_compiler_static='-static'
6043         ;;
6044       ccc)
6045         lt_prog_compiler_wl='-Wl,'
6046         # All Alpha code is PIC.
6047         lt_prog_compiler_static='-non_shared'
6048         ;;
6049       esac
6050       ;;
6051
6052     osf3* | osf4* | osf5*)
6053       lt_prog_compiler_wl='-Wl,'
6054       # All OSF/1 code is PIC.
6055       lt_prog_compiler_static='-non_shared'
6056       ;;
6057
6058     sco3.2v5*)
6059       lt_prog_compiler_pic='-Kpic'
6060       lt_prog_compiler_static='-dn'
6061       ;;
6062
6063     solaris*)
6064       lt_prog_compiler_wl='-Wl,'
6065       lt_prog_compiler_pic='-KPIC'
6066       lt_prog_compiler_static='-Bstatic'
6067       ;;
6068
6069     sunos4*)
6070       lt_prog_compiler_wl='-Qoption ld '
6071       lt_prog_compiler_pic='-PIC'
6072       lt_prog_compiler_static='-Bstatic'
6073       ;;
6074
6075     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6076       lt_prog_compiler_wl='-Wl,'
6077       lt_prog_compiler_pic='-KPIC'
6078       lt_prog_compiler_static='-Bstatic'
6079       ;;
6080
6081     sysv4*MP*)
6082       if test -d /usr/nec ;then
6083         lt_prog_compiler_pic='-Kconform_pic'
6084         lt_prog_compiler_static='-Bstatic'
6085       fi
6086       ;;
6087
6088     uts4*)
6089       lt_prog_compiler_pic='-pic'
6090       lt_prog_compiler_static='-Bstatic'
6091       ;;
6092
6093     *)
6094       lt_prog_compiler_can_build_shared=no
6095       ;;
6096     esac
6097   fi
6098
6099 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6100 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6101
6102 #
6103 # Check to make sure the PIC flag actually works.
6104 #
6105 if test -n "$lt_prog_compiler_pic"; then
6106   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6107 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6108 if test "${lt_prog_compiler_pic_works+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   lt_prog_compiler_pic_works=no
6112   ac_outfile=conftest.$ac_objext
6113    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6114    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6115    # Insert the option either (1) after the last *FLAGS variable, or
6116    # (2) before a word containing "conftest.", or (3) at the end.
6117    # Note that $ac_compile itself does not contain backslashes and begins
6118    # with a dollar sign (not a hyphen), so the echo should work correctly.
6119    # The option is referenced via a variable to avoid confusing sed.
6120    lt_compile=`echo "$ac_compile" | $SED \
6121    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6122    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6123    -e 's:$: $lt_compiler_flag:'`
6124    (eval echo "\"\$as_me:6124: $lt_compile\"" >&5)
6125    (eval "$lt_compile" 2>conftest.err)
6126    ac_status=$?
6127    cat conftest.err >&5
6128    echo "$as_me:6128: \$? = $ac_status" >&5
6129    if (exit $ac_status) && test -s "$ac_outfile"; then
6130      # The compiler can only warn and ignore the option if not recognized
6131      # So say no if there are warnings
6132      if test ! -s conftest.err; then
6133        lt_prog_compiler_pic_works=yes
6134      fi
6135    fi
6136    $rm conftest*
6137
6138 fi
6139 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6140 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6141
6142 if test x"$lt_prog_compiler_pic_works" = xyes; then
6143     case $lt_prog_compiler_pic in
6144      "" | " "*) ;;
6145      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6146      esac
6147 else
6148     lt_prog_compiler_pic=
6149      lt_prog_compiler_can_build_shared=no
6150 fi
6151
6152 fi
6153 case "$host_os" in
6154   # For platforms which do not support PIC, -DPIC is meaningless:
6155   *djgpp*)
6156     lt_prog_compiler_pic=
6157     ;;
6158   *)
6159     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6160     ;;
6161 esac
6162
6163 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6164 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6165 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6166   echo $ECHO_N "(cached) $ECHO_C" >&6
6167 else
6168   lt_cv_prog_compiler_c_o=no
6169    $rm -r conftest 2>/dev/null
6170    mkdir conftest
6171    cd conftest
6172    mkdir out
6173    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6174
6175    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6176    # that will create temporary files in the current directory regardless of
6177    # the output directory.  Thus, making CWD read-only will cause this test
6178    # to fail, enabling locking or at least warning the user not to do parallel
6179    # builds.
6180    chmod -w .
6181
6182    lt_compiler_flag="-o out/conftest2.$ac_objext"
6183    # Insert the option either (1) after the last *FLAGS variable, or
6184    # (2) before a word containing "conftest.", or (3) at the end.
6185    # Note that $ac_compile itself does not contain backslashes and begins
6186    # with a dollar sign (not a hyphen), so the echo should work correctly.
6187    lt_compile=`echo "$ac_compile" | $SED \
6188    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6189    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6190    -e 's:$: $lt_compiler_flag:'`
6191    (eval echo "\"\$as_me:6191: $lt_compile\"" >&5)
6192    (eval "$lt_compile" 2>out/conftest.err)
6193    ac_status=$?
6194    cat out/conftest.err >&5
6195    echo "$as_me:6195: \$? = $ac_status" >&5
6196    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6197    then
6198      # The compiler can only warn and ignore the option if not recognized
6199      # So say no if there are warnings
6200      if test ! -s out/conftest.err; then
6201        lt_cv_prog_compiler_c_o=yes
6202      fi
6203    fi
6204    chmod u+w .
6205    $rm conftest* out/*
6206    rmdir out
6207    cd ..
6208    rmdir conftest
6209    $rm conftest*
6210
6211 fi
6212 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6213 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6214
6215
6216 hard_links="nottested"
6217 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6218   # do not overwrite the value of need_locks provided by the user
6219   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6220 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6221   hard_links=yes
6222   $rm conftest*
6223   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6224   touch conftest.a
6225   ln conftest.a conftest.b 2>&5 || hard_links=no
6226   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6227   echo "$as_me:$LINENO: result: $hard_links" >&5
6228 echo "${ECHO_T}$hard_links" >&6
6229   if test "$hard_links" = no; then
6230     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6231 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6232     need_locks=warn
6233   fi
6234 else
6235   need_locks=no
6236 fi
6237
6238 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6239 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6240
6241   runpath_var=
6242   allow_undefined_flag=
6243   enable_shared_with_static_runtimes=no
6244   archive_cmds=
6245   archive_expsym_cmds=
6246   old_archive_From_new_cmds=
6247   old_archive_from_expsyms_cmds=
6248   export_dynamic_flag_spec=
6249   whole_archive_flag_spec=
6250   thread_safe_flag_spec=
6251   hardcode_libdir_flag_spec=
6252   hardcode_libdir_flag_spec_ld=
6253   hardcode_libdir_separator=
6254   hardcode_direct=no
6255   hardcode_minus_L=no
6256   hardcode_shlibpath_var=unsupported
6257   link_all_deplibs=unknown
6258   hardcode_automatic=no
6259   module_cmds=
6260   module_expsym_cmds=
6261   always_export_symbols=no
6262   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6263   # include_expsyms should be a list of space-separated symbols to be *always*
6264   # included in the symbol list
6265   include_expsyms=
6266   # exclude_expsyms can be an extended regexp of symbols to exclude
6267   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6268   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6269   # as well as any symbol that contains `d'.
6270   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6271   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6272   # platforms (ab)use it in PIC code, but their linkers get confused if
6273   # the symbol is explicitly referenced.  Since portable code cannot
6274   # rely on this symbol name, it's probably fine to never include it in
6275   # preloaded symbol tables.
6276   extract_expsyms_cmds=
6277
6278   case $host_os in
6279   cygwin* | mingw* | pw32*)
6280     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6281     # When not using gcc, we currently assume that we are using
6282     # Microsoft Visual C++.
6283     if test "$GCC" != yes; then
6284       with_gnu_ld=no
6285     fi
6286     ;;
6287   openbsd*)
6288     with_gnu_ld=no
6289     ;;
6290   esac
6291
6292   ld_shlibs=yes
6293   if test "$with_gnu_ld" = yes; then
6294     # If archive_cmds runs LD, not CC, wlarc should be empty
6295     wlarc='${wl}'
6296
6297     # See if GNU ld supports shared libraries.
6298     case $host_os in
6299     aix3* | aix4* | aix5*)
6300       # On AIX/PPC, the GNU linker is very broken
6301       if test "$host_cpu" != ia64; then
6302         ld_shlibs=no
6303         cat <<EOF 1>&2
6304
6305 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6306 *** to be unable to reliably create shared libraries on AIX.
6307 *** Therefore, libtool is disabling shared libraries support.  If you
6308 *** really care for shared libraries, you may want to modify your PATH
6309 *** so that a non-GNU linker is found, and then restart.
6310
6311 EOF
6312       fi
6313       ;;
6314
6315     amigaos*)
6316       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)'
6317       hardcode_libdir_flag_spec='-L$libdir'
6318       hardcode_minus_L=yes
6319
6320       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6321       # that the semantics of dynamic libraries on AmigaOS, at least up
6322       # to version 4, is to share data among multiple programs linked
6323       # with the same dynamic library.  Since this doesn't match the
6324       # behavior of shared libraries on other platforms, we can't use
6325       # them.
6326       ld_shlibs=no
6327       ;;
6328
6329     beos*)
6330       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6331         allow_undefined_flag=unsupported
6332         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6333         # support --undefined.  This deserves some investigation.  FIXME
6334         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6335       else
6336         ld_shlibs=no
6337       fi
6338       ;;
6339
6340     cygwin* | mingw* | pw32*)
6341       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6342       # as there is no search path for DLLs.
6343       hardcode_libdir_flag_spec='-L$libdir'
6344       allow_undefined_flag=unsupported
6345       always_export_symbols=no
6346       enable_shared_with_static_runtimes=yes
6347       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6348
6349       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6350         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6351         # If the export-symbols file already is a .def file (1st line
6352         # is EXPORTS), use it as is; otherwise, prepend...
6353         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6354           cp $export_symbols $output_objdir/$soname.def;
6355         else
6356           echo EXPORTS > $output_objdir/$soname.def;
6357           cat $export_symbols >> $output_objdir/$soname.def;
6358         fi~
6359         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6360       else
6361         ld_shlibs=no
6362       fi
6363       ;;
6364
6365     netbsd*)
6366       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6367         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6368         wlarc=
6369       else
6370         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6371         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6372       fi
6373       ;;
6374
6375     solaris* | sysv5*)
6376       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6377         ld_shlibs=no
6378         cat <<EOF 1>&2
6379
6380 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6381 *** create shared libraries on Solaris systems.  Therefore, libtool
6382 *** is disabling shared libraries support.  We urge you to upgrade GNU
6383 *** binutils to release 2.9.1 or newer.  Another option is to modify
6384 *** your PATH or compiler configuration so that the native linker is
6385 *** used, and then restart.
6386
6387 EOF
6388       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6389         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6390         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6391       else
6392         ld_shlibs=no
6393       fi
6394       ;;
6395
6396     sunos4*)
6397       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6398       wlarc=
6399       hardcode_direct=yes
6400       hardcode_shlibpath_var=no
6401       ;;
6402
6403     *)
6404       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6405         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6406         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6407       else
6408         ld_shlibs=no
6409       fi
6410       ;;
6411     esac
6412
6413     if test "$ld_shlibs" = yes; then
6414       runpath_var=LD_RUN_PATH
6415       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6416       export_dynamic_flag_spec='${wl}--export-dynamic'
6417       # ancient GNU ld didn't support --whole-archive et. al.
6418       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6419         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6420       else
6421         whole_archive_flag_spec=
6422       fi
6423     fi
6424   else
6425     # PORTME fill in a description of your system's linker (not GNU ld)
6426     case $host_os in
6427     aix3*)
6428       allow_undefined_flag=unsupported
6429       always_export_symbols=yes
6430       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'
6431       # Note: this linker hardcodes the directories in LIBPATH if there
6432       # are no directories specified by -L.
6433       hardcode_minus_L=yes
6434       if test "$GCC" = yes && test -z "$link_static_flag"; then
6435         # Neither direct hardcoding nor static linking is supported with a
6436         # broken collect2.
6437         hardcode_direct=unsupported
6438       fi
6439       ;;
6440
6441     aix4* | aix5*)
6442       if test "$host_cpu" = ia64; then
6443         # On IA64, the linker does run time linking by default, so we don't
6444         # have to do anything special.
6445         aix_use_runtimelinking=no
6446         exp_sym_flag='-Bexport'
6447         no_entry_flag=""
6448       else
6449         # If we're using GNU nm, then we don't want the "-C" option.
6450         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6451         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6452           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'
6453         else
6454           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'
6455         fi
6456         aix_use_runtimelinking=no
6457
6458         # Test if we are trying to use run time linking or normal
6459         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6460         # need to do runtime linking.
6461         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6462           for ld_flag in $LDFLAGS; do
6463           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6464             aix_use_runtimelinking=yes
6465             break
6466           fi
6467           done
6468         esac
6469
6470         exp_sym_flag='-bexport'
6471         no_entry_flag='-bnoentry'
6472       fi
6473
6474       # When large executables or shared objects are built, AIX ld can
6475       # have problems creating the table of contents.  If linking a library
6476       # or program results in "error TOC overflow" add -mminimal-toc to
6477       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6478       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6479
6480       archive_cmds=''
6481       hardcode_direct=yes
6482       hardcode_libdir_separator=':'
6483       link_all_deplibs=yes
6484
6485       if test "$GCC" = yes; then
6486         case $host_os in aix4.012|aix4.012.*)
6487         # We only want to do this on AIX 4.2 and lower, the check
6488         # below for broken collect2 doesn't work under 4.3+
6489           collect2name=`${CC} -print-prog-name=collect2`
6490           if test -f "$collect2name" && \
6491            strings "$collect2name" | grep resolve_lib_name >/dev/null
6492           then
6493           # We have reworked collect2
6494           hardcode_direct=yes
6495           else
6496           # We have old collect2
6497           hardcode_direct=unsupported
6498           # It fails to find uninstalled libraries when the uninstalled
6499           # path is not listed in the libpath.  Setting hardcode_minus_L
6500           # to unsupported forces relinking
6501           hardcode_minus_L=yes
6502           hardcode_libdir_flag_spec='-L$libdir'
6503           hardcode_libdir_separator=
6504           fi
6505         esac
6506         shared_flag='-shared'
6507       else
6508         # not using gcc
6509         if test "$host_cpu" = ia64; then
6510         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6511         # chokes on -Wl,-G. The following line is correct:
6512           shared_flag='-G'
6513         else
6514         if test "$aix_use_runtimelinking" = yes; then
6515             shared_flag='${wl}-G'
6516           else
6517             shared_flag='${wl}-bM:SRE'
6518         fi
6519         fi
6520       fi
6521
6522       # It seems that -bexpall does not export symbols beginning with
6523       # underscore (_), so it is better to generate a list of symbols to export.
6524       always_export_symbols=yes
6525       if test "$aix_use_runtimelinking" = yes; then
6526         # Warning - without using the other runtime loading flags (-brtl),
6527         # -berok will link without error, but may produce a broken library.
6528         allow_undefined_flag='-berok'
6529        # Determine the default libpath from the value encoded in an empty executable.
6530        cat >conftest.$ac_ext <<_ACEOF
6531 #line $LINENO "configure"
6532 #include "confdefs.h"
6533
6534 #ifdef F77_DUMMY_MAIN
6535 #  ifdef __cplusplus
6536      extern "C"
6537 #  endif
6538    int F77_DUMMY_MAIN() { return 1; }
6539 #endif
6540 int
6541 main ()
6542 {
6543
6544   ;
6545   return 0;
6546 }
6547 _ACEOF
6548 rm -f conftest.$ac_objext conftest$ac_exeext
6549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6550   (eval $ac_link) 2>&5
6551   ac_status=$?
6552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553   (exit $ac_status); } &&
6554          { ac_try='test -s conftest$ac_exeext'
6555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6556   (eval $ac_try) 2>&5
6557   ac_status=$?
6558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559   (exit $ac_status); }; }; then
6560
6561 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6562 }'`
6563 # Check for a 64-bit object if we didn't find anything.
6564 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; }
6565 }'`; fi
6566 else
6567   echo "$as_me: failed program was:" >&5
6568 cat conftest.$ac_ext >&5
6569 fi
6570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6571 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6572
6573        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6574         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"
6575        else
6576         if test "$host_cpu" = ia64; then
6577           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6578           allow_undefined_flag="-z nodefs"
6579           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"
6580         else
6581          # Determine the default libpath from the value encoded in an empty executable.
6582          cat >conftest.$ac_ext <<_ACEOF
6583 #line $LINENO "configure"
6584 #include "confdefs.h"
6585
6586 #ifdef F77_DUMMY_MAIN
6587 #  ifdef __cplusplus
6588      extern "C"
6589 #  endif
6590    int F77_DUMMY_MAIN() { return 1; }
6591 #endif
6592 int
6593 main ()
6594 {
6595
6596   ;
6597   return 0;
6598 }
6599 _ACEOF
6600 rm -f conftest.$ac_objext conftest$ac_exeext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6602   (eval $ac_link) 2>&5
6603   ac_status=$?
6604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605   (exit $ac_status); } &&
6606          { ac_try='test -s conftest$ac_exeext'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; }; then
6612
6613 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6614 }'`
6615 # Check for a 64-bit object if we didn't find anything.
6616 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; }
6617 }'`; fi
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 cat conftest.$ac_ext >&5
6621 fi
6622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6623 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6624
6625          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6626           # Warning - without using the other run time loading flags,
6627           # -berok will link without error, but may produce a broken library.
6628           no_undefined_flag=' ${wl}-bernotok'
6629           allow_undefined_flag=' ${wl}-berok'
6630           # -bexpall does not export symbols beginning with underscore (_)
6631           always_export_symbols=yes
6632           # Exported symbols can be pulled into shared objects from archives
6633           whole_archive_flag_spec=' '
6634           archive_cmds_need_lc=yes
6635           # This is similar to how AIX traditionally builds it's shared libraries.
6636           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'
6637         fi
6638       fi
6639       ;;
6640
6641     amigaos*)
6642       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)'
6643       hardcode_libdir_flag_spec='-L$libdir'
6644       hardcode_minus_L=yes
6645       # see comment about different semantics on the GNU ld section
6646       ld_shlibs=no
6647       ;;
6648
6649     bsdi4*)
6650       export_dynamic_flag_spec=-rdynamic
6651       ;;
6652
6653     cygwin* | mingw* | pw32*)
6654       # When not using gcc, we currently assume that we are using
6655       # Microsoft Visual C++.
6656       # hardcode_libdir_flag_spec is actually meaningless, as there is
6657       # no search path for DLLs.
6658       hardcode_libdir_flag_spec=' '
6659       allow_undefined_flag=unsupported
6660       # Tell ltmain to make .lib files, not .a files.
6661       libext=lib
6662       # Tell ltmain to make .dll files, not .so files.
6663       shrext=".dll"
6664       # FIXME: Setting linknames here is a bad hack.
6665       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6666       # The linker will automatically build a .lib file if we build a DLL.
6667       old_archive_From_new_cmds='true'
6668       # FIXME: Should let the user specify the lib program.
6669       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6670       fix_srcfile_path='`cygpath -w "$srcfile"`'
6671       enable_shared_with_static_runtimes=yes
6672       ;;
6673
6674     darwin* | rhapsody*)
6675     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6676       archive_cmds_need_lc=no
6677       case "$host_os" in
6678       rhapsody* | darwin1.[012])
6679         allow_undefined_flag='-undefined suppress'
6680         ;;
6681       *) # Darwin 1.3 on
6682         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6683         ;;
6684       esac
6685       # FIXME: Relying on posixy $() will cause problems for
6686       #        cross-compilation, but unfortunately the echo tests do not
6687       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6688       #        `"' quotes if we put them in here... so don't!
6689         lt_int_apple_cc_single_mod=no
6690         output_verbose_link_cmd='echo'
6691         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6692           lt_int_apple_cc_single_mod=yes
6693         fi
6694         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6695           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6696         else
6697         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'
6698       fi
6699       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6700       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6701         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6702           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}'
6703         else
6704           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}'
6705         fi
6706           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}'
6707       hardcode_direct=no
6708       hardcode_automatic=yes
6709       hardcode_shlibpath_var=unsupported
6710       whole_archive_flag_spec='-all_load $convenience'
6711       link_all_deplibs=yes
6712     fi
6713       ;;
6714
6715     dgux*)
6716       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6717       hardcode_libdir_flag_spec='-L$libdir'
6718       hardcode_shlibpath_var=no
6719       ;;
6720
6721     freebsd1*)
6722       ld_shlibs=no
6723       ;;
6724
6725     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6726     # support.  Future versions do this automatically, but an explicit c++rt0.o
6727     # does not break anything, and helps significantly (at the cost of a little
6728     # extra space).
6729     freebsd2.2*)
6730       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6731       hardcode_libdir_flag_spec='-R$libdir'
6732       hardcode_direct=yes
6733       hardcode_shlibpath_var=no
6734       ;;
6735
6736     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6737     freebsd2*)
6738       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6739       hardcode_direct=yes
6740       hardcode_minus_L=yes
6741       hardcode_shlibpath_var=no
6742       ;;
6743
6744     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6745     freebsd*)
6746       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6747       hardcode_libdir_flag_spec='-R$libdir'
6748       hardcode_direct=yes
6749       hardcode_shlibpath_var=no
6750       ;;
6751
6752     hpux9*)
6753       if test "$GCC" = yes; then
6754         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'
6755       else
6756         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'
6757       fi
6758       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6759       hardcode_libdir_separator=:
6760       hardcode_direct=yes
6761
6762       # hardcode_minus_L: Not really in the search PATH,
6763       # but as the default location of the library.
6764       hardcode_minus_L=yes
6765       export_dynamic_flag_spec='${wl}-E'
6766       ;;
6767
6768     hpux10* | hpux11*)
6769       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6770         case "$host_cpu" in
6771         hppa*64*|ia64*)
6772           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6773           ;;
6774         *)
6775           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6776           ;;
6777         esac
6778       else
6779         case "$host_cpu" in
6780         hppa*64*|ia64*)
6781           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6782           ;;
6783         *)
6784           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6785           ;;
6786         esac
6787       fi
6788       if test "$with_gnu_ld" = no; then
6789         case "$host_cpu" in
6790         hppa*64*)
6791           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6792           hardcode_libdir_flag_spec_ld='+b $libdir'
6793           hardcode_libdir_separator=:
6794           hardcode_direct=no
6795           hardcode_shlibpath_var=no
6796           ;;
6797         ia64*)
6798           hardcode_libdir_flag_spec='-L$libdir'
6799           hardcode_direct=no
6800           hardcode_shlibpath_var=no
6801
6802           # hardcode_minus_L: Not really in the search PATH,
6803           # but as the default location of the library.
6804           hardcode_minus_L=yes
6805           ;;
6806         *)
6807           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6808           hardcode_libdir_separator=:
6809           hardcode_direct=yes
6810           export_dynamic_flag_spec='${wl}-E'
6811
6812           # hardcode_minus_L: Not really in the search PATH,
6813           # but as the default location of the library.
6814           hardcode_minus_L=yes
6815           ;;
6816         esac
6817       fi
6818       ;;
6819
6820     irix5* | irix6* | nonstopux*)
6821       if test "$GCC" = yes; then
6822         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'
6823       else
6824         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'
6825         hardcode_libdir_flag_spec_ld='-rpath $libdir'
6826       fi
6827       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6828       hardcode_libdir_separator=:
6829       link_all_deplibs=yes
6830       ;;
6831
6832     netbsd*)
6833       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6834         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6835       else
6836         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6837       fi
6838       hardcode_libdir_flag_spec='-R$libdir'
6839       hardcode_direct=yes
6840       hardcode_shlibpath_var=no
6841       ;;
6842
6843     newsos6)
6844       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6845       hardcode_direct=yes
6846       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6847       hardcode_libdir_separator=:
6848       hardcode_shlibpath_var=no
6849       ;;
6850
6851     openbsd*)
6852       hardcode_direct=yes
6853       hardcode_shlibpath_var=no
6854       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6855         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6856         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6857         export_dynamic_flag_spec='${wl}-E'
6858       else
6859        case $host_os in
6860          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6861            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6862            hardcode_libdir_flag_spec='-R$libdir'
6863            ;;
6864          *)
6865            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6866            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6867            ;;
6868        esac
6869       fi
6870       ;;
6871
6872     os2*)
6873       hardcode_libdir_flag_spec='-L$libdir'
6874       hardcode_minus_L=yes
6875       allow_undefined_flag=unsupported
6876       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'
6877       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6878       ;;
6879
6880     osf3*)
6881       if test "$GCC" = yes; then
6882         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6883         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'
6884       else
6885         allow_undefined_flag=' -expect_unresolved \*'
6886         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'
6887       fi
6888       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6889       hardcode_libdir_separator=:
6890       ;;
6891
6892     osf4* | osf5*)      # as osf3* with the addition of -msym flag
6893       if test "$GCC" = yes; then
6894         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6895         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'
6896         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6897       else
6898         allow_undefined_flag=' -expect_unresolved \*'
6899         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'
6900         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6901         $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'
6902
6903         # Both c and cxx compiler support -rpath directly
6904         hardcode_libdir_flag_spec='-rpath $libdir'
6905       fi
6906       hardcode_libdir_separator=:
6907       ;;
6908
6909     sco3.2v5*)
6910       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6911       hardcode_shlibpath_var=no
6912       export_dynamic_flag_spec='${wl}-Bexport'
6913       runpath_var=LD_RUN_PATH
6914       hardcode_runpath_var=yes
6915       ;;
6916
6917     solaris*)
6918       no_undefined_flag=' -z text'
6919       if test "$GCC" = yes; then
6920         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6921         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6922           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6923       else
6924         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6925         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6926         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6927       fi
6928       hardcode_libdir_flag_spec='-R$libdir'
6929       hardcode_shlibpath_var=no
6930       case $host_os in
6931       solaris2.[0-5] | solaris2.[0-5].*) ;;
6932       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6933         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6934       esac
6935       link_all_deplibs=yes
6936       ;;
6937
6938     sunos4*)
6939       if test "x$host_vendor" = xsequent; then
6940         # Use $CC to link under sequent, because it throws in some extra .o
6941         # files that make .init and .fini sections work.
6942         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6943       else
6944         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6945       fi
6946       hardcode_libdir_flag_spec='-L$libdir'
6947       hardcode_direct=yes
6948       hardcode_minus_L=yes
6949       hardcode_shlibpath_var=no
6950       ;;
6951
6952     sysv4)
6953       case $host_vendor in
6954         sni)
6955           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6956           hardcode_direct=yes # is this really true???
6957         ;;
6958         siemens)
6959           ## LD is ld it makes a PLAMLIB
6960           ## CC just makes a GrossModule.
6961           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6962           reload_cmds='$CC -r -o $output$reload_objs'
6963           hardcode_direct=no
6964         ;;
6965         motorola)
6966           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6967           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6968         ;;
6969       esac
6970       runpath_var='LD_RUN_PATH'
6971       hardcode_shlibpath_var=no
6972       ;;
6973
6974     sysv4.3*)
6975       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6976       hardcode_shlibpath_var=no
6977       export_dynamic_flag_spec='-Bexport'
6978       ;;
6979
6980     sysv4*MP*)
6981       if test -d /usr/nec; then
6982         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6983         hardcode_shlibpath_var=no
6984         runpath_var=LD_RUN_PATH
6985         hardcode_runpath_var=yes
6986         ld_shlibs=yes
6987       fi
6988       ;;
6989
6990     sysv4.2uw2*)
6991       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6992       hardcode_direct=yes
6993       hardcode_minus_L=no
6994       hardcode_shlibpath_var=no
6995       hardcode_runpath_var=yes
6996       runpath_var=LD_RUN_PATH
6997       ;;
6998
6999    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7000       no_undefined_flag='${wl}-z ${wl}text'
7001       if test "$GCC" = yes; then
7002         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7003       else
7004         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7005       fi
7006       runpath_var='LD_RUN_PATH'
7007       hardcode_shlibpath_var=no
7008       ;;
7009
7010     sysv5*)
7011       no_undefined_flag=' -z text'
7012       # $CC -shared without GNU ld will not create a library from C++
7013       # object files and a static libstdc++, better avoid it by now
7014       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7015       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7016                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7017       hardcode_libdir_flag_spec=
7018       hardcode_shlibpath_var=no
7019       runpath_var='LD_RUN_PATH'
7020       ;;
7021
7022     uts4*)
7023       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7024       hardcode_libdir_flag_spec='-L$libdir'
7025       hardcode_shlibpath_var=no
7026       ;;
7027
7028     *)
7029       ld_shlibs=no
7030       ;;
7031     esac
7032   fi
7033
7034 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7035 echo "${ECHO_T}$ld_shlibs" >&6
7036 test "$ld_shlibs" = no && can_build_shared=no
7037
7038 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7039 if test "$GCC" = yes; then
7040   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7041 fi
7042
7043 #
7044 # Do we need to explicitly link libc?
7045 #
7046 case "x$archive_cmds_need_lc" in
7047 x|xyes)
7048   # Assume -lc should be added
7049   archive_cmds_need_lc=yes
7050
7051   if test "$enable_shared" = yes && test "$GCC" = yes; then
7052     case $archive_cmds in
7053     *'~'*)
7054       # FIXME: we may have to deal with multi-command sequences.
7055       ;;
7056     '$CC '*)
7057       # Test whether the compiler implicitly links with -lc since on some
7058       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7059       # to ld, don't add -lc before -lgcc.
7060       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7061 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7062       $rm conftest*
7063       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7064
7065       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066   (eval $ac_compile) 2>&5
7067   ac_status=$?
7068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069   (exit $ac_status); } 2>conftest.err; then
7070         soname=conftest
7071         lib=conftest
7072         libobjs=conftest.$ac_objext
7073         deplibs=
7074         wl=$lt_prog_compiler_wl
7075         compiler_flags=-v
7076         linker_flags=-v
7077         verstring=
7078         output_objdir=.
7079         libname=conftest
7080         lt_save_allow_undefined_flag=$allow_undefined_flag
7081         allow_undefined_flag=
7082         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7083   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); }
7087         then
7088           archive_cmds_need_lc=no
7089         else
7090           archive_cmds_need_lc=yes
7091         fi
7092         allow_undefined_flag=$lt_save_allow_undefined_flag
7093       else
7094         cat conftest.err 1>&5
7095       fi
7096       $rm conftest*
7097       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7098 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7099       ;;
7100     esac
7101   fi
7102   ;;
7103 esac
7104
7105 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7106 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7107 hardcode_action=
7108 if test -n "$hardcode_libdir_flag_spec" || \
7109    test -n "$runpath_var " || \
7110    test "X$hardcode_automatic"="Xyes" ; then
7111
7112   # We can hardcode non-existant directories.
7113   if test "$hardcode_direct" != no &&
7114      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7115      # have to relink, otherwise we might link with an installed library
7116      # when we should be linking with a yet-to-be-installed one
7117      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7118      test "$hardcode_minus_L" != no; then
7119     # Linking always hardcodes the temporary library directory.
7120     hardcode_action=relink
7121   else
7122     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7123     hardcode_action=immediate
7124   fi
7125 else
7126   # We cannot hardcode anything, or else we can only hardcode existing
7127   # directories.
7128   hardcode_action=unsupported
7129 fi
7130 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7131 echo "${ECHO_T}$hardcode_action" >&6
7132
7133 if test "$hardcode_action" = relink; then
7134   # Fast installation is not supported
7135   enable_fast_install=no
7136 elif test "$shlibpath_overrides_runpath" = yes ||
7137      test "$enable_shared" = no; then
7138   # Fast installation is not necessary
7139   enable_fast_install=needless
7140 fi
7141
7142 striplib=
7143 old_striplib=
7144 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7145 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7146 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7147   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7148   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7149   echo "$as_me:$LINENO: result: yes" >&5
7150 echo "${ECHO_T}yes" >&6
7151 else
7152 # FIXME - insert some real tests, host_os isn't really good enough
7153   case $host_os in
7154    darwin*)
7155        if test -n "$STRIP" ; then
7156          striplib="$STRIP -x"
7157          echo "$as_me:$LINENO: result: yes" >&5
7158 echo "${ECHO_T}yes" >&6
7159        else
7160   echo "$as_me:$LINENO: result: no" >&5
7161 echo "${ECHO_T}no" >&6
7162 fi
7163        ;;
7164    *)
7165   echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6
7167     ;;
7168   esac
7169 fi
7170
7171 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7172 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7173 library_names_spec=
7174 libname_spec='lib$name'
7175 soname_spec=
7176 shrext=".so"
7177 postinstall_cmds=
7178 postuninstall_cmds=
7179 finish_cmds=
7180 finish_eval=
7181 shlibpath_var=
7182 shlibpath_overrides_runpath=unknown
7183 version_type=none
7184 dynamic_linker="$host_os ld.so"
7185 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7186 if test "$GCC" = yes; then
7187   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7188   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7189     # if the path contains ";" then we assume it to be the separator
7190     # otherwise default to the standard path separator (i.e. ":") - it is
7191     # assumed that no part of a normal pathname contains ";" but that should
7192     # okay in the real world where ";" in dirpaths is itself problematic.
7193     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7194   else
7195     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7196   fi
7197 else
7198   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7199 fi
7200 need_lib_prefix=unknown
7201 hardcode_into_libs=no
7202
7203 # when you set need_version to no, make sure it does not cause -set_version
7204 # flags to be left without arguments
7205 need_version=unknown
7206
7207 case $host_os in
7208 aix3*)
7209   version_type=linux
7210   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7211   shlibpath_var=LIBPATH
7212
7213   # AIX 3 has no versioning support, so we append a major version to the name.
7214   soname_spec='${libname}${release}${shared_ext}$major'
7215   ;;
7216
7217 aix4* | aix5*)
7218   version_type=linux
7219   need_lib_prefix=no
7220   need_version=no
7221   hardcode_into_libs=yes
7222   if test "$host_cpu" = ia64; then
7223     # AIX 5 supports IA64
7224     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7225     shlibpath_var=LD_LIBRARY_PATH
7226   else
7227     # With GCC up to 2.95.x, collect2 would create an import file
7228     # for dependence libraries.  The import file would start with
7229     # the line `#! .'.  This would cause the generated library to
7230     # depend on `.', always an invalid library.  This was fixed in
7231     # development snapshots of GCC prior to 3.0.
7232     case $host_os in
7233       aix4 | aix4.[01] | aix4.[01].*)
7234       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7235            echo ' yes '
7236            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7237         :
7238       else
7239         can_build_shared=no
7240       fi
7241       ;;
7242     esac
7243     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7244     # soname into executable. Probably we can add versioning support to
7245     # collect2, so additional links can be useful in future.
7246     if test "$aix_use_runtimelinking" = yes; then
7247       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7248       # instead of lib<name>.a to let people know that these are not
7249       # typical AIX shared libraries.
7250       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7251     else
7252       # We preserve .a as extension for shared libraries through AIX4.2
7253       # and later when we are not doing run time linking.
7254       library_names_spec='${libname}${release}.a $libname.a'
7255       soname_spec='${libname}${release}${shared_ext}$major'
7256     fi
7257     shlibpath_var=LIBPATH
7258   fi
7259   ;;
7260
7261 amigaos*)
7262   library_names_spec='$libname.ixlibrary $libname.a'
7263   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7264   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'
7265   ;;
7266
7267 beos*)
7268   library_names_spec='${libname}${shared_ext}'
7269   dynamic_linker="$host_os ld.so"
7270   shlibpath_var=LIBRARY_PATH
7271   ;;
7272
7273 bsdi4*)
7274   version_type=linux
7275   need_version=no
7276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7277   soname_spec='${libname}${release}${shared_ext}$major'
7278   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7279   shlibpath_var=LD_LIBRARY_PATH
7280   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7281   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7282   # the default ld.so.conf also contains /usr/contrib/lib and
7283   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7284   # libtool to hard-code these into programs
7285   ;;
7286
7287 cygwin* | mingw* | pw32*)
7288   version_type=windows
7289   shrext=".dll"
7290   need_version=no
7291   need_lib_prefix=no
7292
7293   case $GCC,$host_os in
7294   yes,cygwin* | yes,mingw* | yes,pw32*)
7295     library_names_spec='$libname.dll.a'
7296     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7297     postinstall_cmds='base_file=`basename \${file}`~
7298       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7299       dldir=$destdir/`dirname \$dlpath`~
7300       test -d \$dldir || mkdir -p \$dldir~
7301       $install_prog $dir/$dlname \$dldir/$dlname'
7302     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7303       dlpath=$dir/\$dldll~
7304        $rm \$dlpath'
7305     shlibpath_overrides_runpath=yes
7306
7307     case $host_os in
7308     cygwin*)
7309       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7310       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7311       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7312       ;;
7313     mingw*)
7314       # MinGW DLLs use traditional 'lib' prefix
7315       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7316       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7317       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7318         # It is most probably a Windows format PATH printed by
7319         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7320         # path with ; separators, and with drive letters. We can handle the
7321         # drive letters (cygwin fileutils understands them), so leave them,
7322         # especially as we might pass files found there to a mingw objdump,
7323         # which wouldn't understand a cygwinified path. Ahh.
7324         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7325       else
7326         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7327       fi
7328       ;;
7329     pw32*)
7330       # pw32 DLLs use 'pw' prefix rather than 'lib'
7331       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7332       ;;
7333     esac
7334     ;;
7335
7336   *)
7337     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7338     ;;
7339   esac
7340   dynamic_linker='Win32 ld.exe'
7341   # FIXME: first we should search . and the directory the executable is in
7342   shlibpath_var=PATH
7343   ;;
7344
7345 darwin* | rhapsody*)
7346   dynamic_linker="$host_os dyld"
7347   version_type=darwin
7348   need_lib_prefix=no
7349   need_version=no
7350   # FIXME: Relying on posixy $() will cause problems for
7351   #        cross-compilation, but unfortunately the echo tests do not
7352   #        yet detect zsh echo's removal of \ escapes.
7353   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7354   soname_spec='${libname}${release}${major}$shared_ext'
7355   shlibpath_overrides_runpath=yes
7356   shlibpath_var=DYLD_LIBRARY_PATH
7357   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7358   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7359   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7360   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"`
7361   fi
7362   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7363   ;;
7364
7365 dgux*)
7366   version_type=linux
7367   need_lib_prefix=no
7368   need_version=no
7369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7370   soname_spec='${libname}${release}${shared_ext}$major'
7371   shlibpath_var=LD_LIBRARY_PATH
7372   ;;
7373
7374 freebsd1*)
7375   dynamic_linker=no
7376   ;;
7377
7378 freebsd*)
7379   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7380   version_type=freebsd-$objformat
7381   case $version_type in
7382     freebsd-elf*)
7383       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7384       need_version=no
7385       need_lib_prefix=no
7386       ;;
7387     freebsd-*)
7388       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7389       need_version=yes
7390       ;;
7391   esac
7392   shlibpath_var=LD_LIBRARY_PATH
7393   case $host_os in
7394   freebsd2*)
7395     shlibpath_overrides_runpath=yes
7396     ;;
7397   freebsd3.01* | freebsdelf3.01*)
7398     shlibpath_overrides_runpath=yes
7399     hardcode_into_libs=yes
7400     ;;
7401   *) # from 3.2 on
7402     shlibpath_overrides_runpath=no
7403     hardcode_into_libs=yes
7404     ;;
7405   esac
7406   ;;
7407
7408 gnu*)
7409   version_type=linux
7410   need_lib_prefix=no
7411   need_version=no
7412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7413   soname_spec='${libname}${release}${shared_ext}$major'
7414   shlibpath_var=LD_LIBRARY_PATH
7415   hardcode_into_libs=yes
7416   ;;
7417
7418 hpux9* | hpux10* | hpux11*)
7419   # Give a soname corresponding to the major version so that dld.sl refuses to
7420   # link against other versions.
7421   version_type=sunos
7422   need_lib_prefix=no
7423   need_version=no
7424   case "$host_cpu" in
7425   ia64*)
7426     shrext='.so'
7427     hardcode_into_libs=yes
7428     dynamic_linker="$host_os dld.so"
7429     shlibpath_var=LD_LIBRARY_PATH
7430     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7432     soname_spec='${libname}${release}${shared_ext}$major'
7433     if test "X$HPUX_IA64_MODE" = X32; then
7434       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7435     else
7436       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7437     fi
7438     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7439     ;;
7440    hppa*64*)
7441      shrext='.sl'
7442      hardcode_into_libs=yes
7443      dynamic_linker="$host_os dld.sl"
7444      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7445      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7446      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7447      soname_spec='${libname}${release}${shared_ext}$major'
7448      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7449      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7450      ;;
7451    *)
7452     shrext='.sl'
7453     dynamic_linker="$host_os dld.sl"
7454     shlibpath_var=SHLIB_PATH
7455     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7456     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7457     soname_spec='${libname}${release}${shared_ext}$major'
7458     ;;
7459   esac
7460   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7461   postinstall_cmds='chmod 555 $lib'
7462   ;;
7463
7464 irix5* | irix6* | nonstopux*)
7465   case $host_os in
7466     nonstopux*) version_type=nonstopux ;;
7467     *)
7468         if test "$lt_cv_prog_gnu_ld" = yes; then
7469                 version_type=linux
7470         else
7471                 version_type=irix
7472         fi ;;
7473   esac
7474   need_lib_prefix=no
7475   need_version=no
7476   soname_spec='${libname}${release}${shared_ext}$major'
7477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7478   case $host_os in
7479   irix5* | nonstopux*)
7480     libsuff= shlibsuff=
7481     ;;
7482   *)
7483     case $LD in # libtool.m4 will add one of these switches to LD
7484     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7485       libsuff= shlibsuff= libmagic=32-bit;;
7486     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7487       libsuff=32 shlibsuff=N32 libmagic=N32;;
7488     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7489       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7490     *) libsuff= shlibsuff= libmagic=never-match;;
7491     esac
7492     ;;
7493   esac
7494   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7495   shlibpath_overrides_runpath=no
7496   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7497   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7498   hardcode_into_libs=yes
7499   ;;
7500
7501 # No shared lib support for Linux oldld, aout, or coff.
7502 linux*oldld* | linux*aout* | linux*coff*)
7503   dynamic_linker=no
7504   ;;
7505
7506 # This must be Linux ELF.
7507 linux*)
7508   version_type=linux
7509   need_lib_prefix=no
7510   need_version=no
7511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7512   soname_spec='${libname}${release}${shared_ext}$major'
7513   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7514   shlibpath_var=LD_LIBRARY_PATH
7515   shlibpath_overrides_runpath=no
7516   # This implies no fast_install, which is unacceptable.
7517   # Some rework will be needed to allow for fast_install
7518   # before this can be enabled.
7519   hardcode_into_libs=yes
7520
7521   # We used to test for /lib/ld.so.1 and disable shared libraries on
7522   # powerpc, because MkLinux only supported shared libraries with the
7523   # GNU dynamic linker.  Since this was broken with cross compilers,
7524   # most powerpc-linux boxes support dynamic linking these days and
7525   # people can always --disable-shared, the test was removed, and we
7526   # assume the GNU/Linux dynamic linker is in use.
7527   dynamic_linker='GNU/Linux ld.so'
7528   ;;
7529
7530 netbsd*)
7531   version_type=sunos
7532   need_lib_prefix=no
7533   need_version=no
7534   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7535     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7536     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7537     dynamic_linker='NetBSD (a.out) ld.so'
7538   else
7539     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7540     soname_spec='${libname}${release}${shared_ext}$major'
7541     dynamic_linker='NetBSD ld.elf_so'
7542   fi
7543   shlibpath_var=LD_LIBRARY_PATH
7544   shlibpath_overrides_runpath=yes
7545   hardcode_into_libs=yes
7546   ;;
7547
7548 newsos6)
7549   version_type=linux
7550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7551   shlibpath_var=LD_LIBRARY_PATH
7552   shlibpath_overrides_runpath=yes
7553   ;;
7554
7555 nto-qnx)
7556   version_type=linux
7557   need_lib_prefix=no
7558   need_version=no
7559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7560   soname_spec='${libname}${release}${shared_ext}$major'
7561   shlibpath_var=LD_LIBRARY_PATH
7562   shlibpath_overrides_runpath=yes
7563   ;;
7564
7565 openbsd*)
7566   version_type=sunos
7567   need_lib_prefix=no
7568   need_version=no
7569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7570   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7571   shlibpath_var=LD_LIBRARY_PATH
7572   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7573     case $host_os in
7574       openbsd2.[89] | openbsd2.[89].*)
7575         shlibpath_overrides_runpath=no
7576         ;;
7577       *)
7578         shlibpath_overrides_runpath=yes
7579         ;;
7580       esac
7581   else
7582     shlibpath_overrides_runpath=yes
7583   fi
7584   ;;
7585
7586 os2*)
7587   libname_spec='$name'
7588   shrext=".dll"
7589   need_lib_prefix=no
7590   library_names_spec='$libname${shared_ext} $libname.a'
7591   dynamic_linker='OS/2 ld.exe'
7592   shlibpath_var=LIBPATH
7593   ;;
7594
7595 osf3* | osf4* | osf5*)
7596   version_type=osf
7597   need_lib_prefix=no
7598   need_version=no
7599   soname_spec='${libname}${release}${shared_ext}$major'
7600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7601   shlibpath_var=LD_LIBRARY_PATH
7602   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7603   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7604   ;;
7605
7606 sco3.2v5*)
7607   version_type=osf
7608   soname_spec='${libname}${release}${shared_ext}$major'
7609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7610   shlibpath_var=LD_LIBRARY_PATH
7611   ;;
7612
7613 solaris*)
7614   version_type=linux
7615   need_lib_prefix=no
7616   need_version=no
7617   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7618   soname_spec='${libname}${release}${shared_ext}$major'
7619   shlibpath_var=LD_LIBRARY_PATH
7620   shlibpath_overrides_runpath=yes
7621   hardcode_into_libs=yes
7622   # ldd complains unless libraries are executable
7623   postinstall_cmds='chmod +x $lib'
7624   ;;
7625
7626 sunos4*)
7627   version_type=sunos
7628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7629   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7630   shlibpath_var=LD_LIBRARY_PATH
7631   shlibpath_overrides_runpath=yes
7632   if test "$with_gnu_ld" = yes; then
7633     need_lib_prefix=no
7634   fi
7635   need_version=yes
7636   ;;
7637
7638 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7639   version_type=linux
7640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7641   soname_spec='${libname}${release}${shared_ext}$major'
7642   shlibpath_var=LD_LIBRARY_PATH
7643   case $host_vendor in
7644     sni)
7645       shlibpath_overrides_runpath=no
7646       need_lib_prefix=no
7647       export_dynamic_flag_spec='${wl}-Blargedynsym'
7648       runpath_var=LD_RUN_PATH
7649       ;;
7650     siemens)
7651       need_lib_prefix=no
7652       ;;
7653     motorola)
7654       need_lib_prefix=no
7655       need_version=no
7656       shlibpath_overrides_runpath=no
7657       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7658       ;;
7659   esac
7660   ;;
7661
7662 sysv4*MP*)
7663   if test -d /usr/nec ;then
7664     version_type=linux
7665     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7666     soname_spec='$libname${shared_ext}.$major'
7667     shlibpath_var=LD_LIBRARY_PATH
7668   fi
7669   ;;
7670
7671 uts4*)
7672   version_type=linux
7673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7674   soname_spec='${libname}${release}${shared_ext}$major'
7675   shlibpath_var=LD_LIBRARY_PATH
7676   ;;
7677
7678 *)
7679   dynamic_linker=no
7680   ;;
7681 esac
7682 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7683 echo "${ECHO_T}$dynamic_linker" >&6
7684 test "$dynamic_linker" = no && can_build_shared=no
7685
7686 if test "x$enable_dlopen" != xyes; then
7687   enable_dlopen=unknown
7688   enable_dlopen_self=unknown
7689   enable_dlopen_self_static=unknown
7690 else
7691   lt_cv_dlopen=no
7692   lt_cv_dlopen_libs=
7693
7694   case $host_os in
7695   beos*)
7696     lt_cv_dlopen="load_add_on"
7697     lt_cv_dlopen_libs=
7698     lt_cv_dlopen_self=yes
7699     ;;
7700
7701   mingw* | pw32*)
7702     lt_cv_dlopen="LoadLibrary"
7703     lt_cv_dlopen_libs=
7704    ;;
7705
7706   cygwin*)
7707     lt_cv_dlopen="dlopen"
7708     lt_cv_dlopen_libs=
7709    ;;
7710
7711   darwin*)
7712   # if libdl is installed we need to link against it
7713     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718   ac_check_lib_save_LIBS=$LIBS
7719 LIBS="-ldl  $LIBS"
7720 cat >conftest.$ac_ext <<_ACEOF
7721 #line $LINENO "configure"
7722 #include "confdefs.h"
7723
7724 /* Override any gcc2 internal prototype to avoid an error.  */
7725 #ifdef __cplusplus
7726 extern "C"
7727 #endif
7728 /* We use char because int might match the return type of a gcc2
7729    builtin and then its argument prototype would still apply.  */
7730 char dlopen ();
7731 #ifdef F77_DUMMY_MAIN
7732 #  ifdef __cplusplus
7733      extern "C"
7734 #  endif
7735    int F77_DUMMY_MAIN() { return 1; }
7736 #endif
7737 int
7738 main ()
7739 {
7740 dlopen ();
7741   ;
7742   return 0;
7743 }
7744 _ACEOF
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747   (eval $ac_link) 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); } &&
7751          { ac_try='test -s conftest$ac_exeext'
7752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753   (eval $ac_try) 2>&5
7754   ac_status=$?
7755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756   (exit $ac_status); }; }; then
7757   ac_cv_lib_dl_dlopen=yes
7758 else
7759   echo "$as_me: failed program was:" >&5
7760 cat conftest.$ac_ext >&5
7761 ac_cv_lib_dl_dlopen=no
7762 fi
7763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7764 LIBS=$ac_check_lib_save_LIBS
7765 fi
7766 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7767 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7768 if test $ac_cv_lib_dl_dlopen = yes; then
7769   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7770 else
7771
7772     lt_cv_dlopen="dyld"
7773     lt_cv_dlopen_libs=
7774     lt_cv_dlopen_self=yes
7775
7776 fi
7777
7778    ;;
7779
7780   *)
7781     echo "$as_me:$LINENO: checking for shl_load" >&5
7782 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7783 if test "${ac_cv_func_shl_load+set}" = set; then
7784   echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786   cat >conftest.$ac_ext <<_ACEOF
7787 #line $LINENO "configure"
7788 #include "confdefs.h"
7789 /* System header to define __stub macros and hopefully few prototypes,
7790     which can conflict with char shl_load (); below.  */
7791 #include <assert.h>
7792 /* Override any gcc2 internal prototype to avoid an error.  */
7793 #ifdef __cplusplus
7794 extern "C"
7795 #endif
7796 /* We use char because int might match the return type of a gcc2
7797    builtin and then its argument prototype would still apply.  */
7798 char shl_load ();
7799 char (*f) ();
7800
7801 #ifdef F77_DUMMY_MAIN
7802 #  ifdef __cplusplus
7803      extern "C"
7804 #  endif
7805    int F77_DUMMY_MAIN() { return 1; }
7806 #endif
7807 int
7808 main ()
7809 {
7810 /* The GNU C library defines this for functions which it implements
7811     to always fail with ENOSYS.  Some functions are actually named
7812     something starting with __ and the normal name is an alias.  */
7813 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7814 choke me
7815 #else
7816 f = shl_load;
7817 #endif
7818
7819   ;
7820   return 0;
7821 }
7822 _ACEOF
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7825   (eval $ac_link) 2>&5
7826   ac_status=$?
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } &&
7829          { ac_try='test -s conftest$ac_exeext'
7830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831   (eval $ac_try) 2>&5
7832   ac_status=$?
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); }; }; then
7835   ac_cv_func_shl_load=yes
7836 else
7837   echo "$as_me: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 ac_cv_func_shl_load=no
7840 fi
7841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7842 fi
7843 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7844 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7845 if test $ac_cv_func_shl_load = yes; then
7846   lt_cv_dlopen="shl_load"
7847 else
7848   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7849 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7850 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7851   echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853   ac_check_lib_save_LIBS=$LIBS
7854 LIBS="-ldld  $LIBS"
7855 cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7857 #include "confdefs.h"
7858
7859 /* Override any gcc2 internal prototype to avoid an error.  */
7860 #ifdef __cplusplus
7861 extern "C"
7862 #endif
7863 /* We use char because int might match the return type of a gcc2
7864    builtin and then its argument prototype would still apply.  */
7865 char shl_load ();
7866 #ifdef F77_DUMMY_MAIN
7867 #  ifdef __cplusplus
7868      extern "C"
7869 #  endif
7870    int F77_DUMMY_MAIN() { return 1; }
7871 #endif
7872 int
7873 main ()
7874 {
7875 shl_load ();
7876   ;
7877   return 0;
7878 }
7879 _ACEOF
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7882   (eval $ac_link) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); } &&
7886          { ac_try='test -s conftest$ac_exeext'
7887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888   (eval $ac_try) 2>&5
7889   ac_status=$?
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); }; }; then
7892   ac_cv_lib_dld_shl_load=yes
7893 else
7894   echo "$as_me: failed program was:" >&5
7895 cat conftest.$ac_ext >&5
7896 ac_cv_lib_dld_shl_load=no
7897 fi
7898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7899 LIBS=$ac_check_lib_save_LIBS
7900 fi
7901 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7902 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7903 if test $ac_cv_lib_dld_shl_load = yes; then
7904   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7905 else
7906   echo "$as_me:$LINENO: checking for dlopen" >&5
7907 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7908 if test "${ac_cv_func_dlopen+set}" = set; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911   cat >conftest.$ac_ext <<_ACEOF
7912 #line $LINENO "configure"
7913 #include "confdefs.h"
7914 /* System header to define __stub macros and hopefully few prototypes,
7915     which can conflict with char dlopen (); below.  */
7916 #include <assert.h>
7917 /* Override any gcc2 internal prototype to avoid an error.  */
7918 #ifdef __cplusplus
7919 extern "C"
7920 #endif
7921 /* We use char because int might match the return type of a gcc2
7922    builtin and then its argument prototype would still apply.  */
7923 char dlopen ();
7924 char (*f) ();
7925
7926 #ifdef F77_DUMMY_MAIN
7927 #  ifdef __cplusplus
7928      extern "C"
7929 #  endif
7930    int F77_DUMMY_MAIN() { return 1; }
7931 #endif
7932 int
7933 main ()
7934 {
7935 /* The GNU C library defines this for functions which it implements
7936     to always fail with ENOSYS.  Some functions are actually named
7937     something starting with __ and the normal name is an alias.  */
7938 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7939 choke me
7940 #else
7941 f = dlopen;
7942 #endif
7943
7944   ;
7945   return 0;
7946 }
7947 _ACEOF
7948 rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950   (eval $ac_link) 2>&5
7951   ac_status=$?
7952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); } &&
7954          { ac_try='test -s conftest$ac_exeext'
7955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956   (eval $ac_try) 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; }; then
7960   ac_cv_func_dlopen=yes
7961 else
7962   echo "$as_me: failed program was:" >&5
7963 cat conftest.$ac_ext >&5
7964 ac_cv_func_dlopen=no
7965 fi
7966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7967 fi
7968 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7969 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7970 if test $ac_cv_func_dlopen = yes; then
7971   lt_cv_dlopen="dlopen"
7972 else
7973   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7974 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7975 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7976   echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978   ac_check_lib_save_LIBS=$LIBS
7979 LIBS="-ldl  $LIBS"
7980 cat >conftest.$ac_ext <<_ACEOF
7981 #line $LINENO "configure"
7982 #include "confdefs.h"
7983
7984 /* Override any gcc2 internal prototype to avoid an error.  */
7985 #ifdef __cplusplus
7986 extern "C"
7987 #endif
7988 /* We use char because int might match the return type of a gcc2
7989    builtin and then its argument prototype would still apply.  */
7990 char dlopen ();
7991 #ifdef F77_DUMMY_MAIN
7992 #  ifdef __cplusplus
7993      extern "C"
7994 #  endif
7995    int F77_DUMMY_MAIN() { return 1; }
7996 #endif
7997 int
7998 main ()
7999 {
8000 dlopen ();
8001   ;
8002   return 0;
8003 }
8004 _ACEOF
8005 rm -f conftest.$ac_objext conftest$ac_exeext
8006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007   (eval $ac_link) 2>&5
8008   ac_status=$?
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); } &&
8011          { ac_try='test -s conftest$ac_exeext'
8012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013   (eval $ac_try) 2>&5
8014   ac_status=$?
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   (exit $ac_status); }; }; then
8017   ac_cv_lib_dl_dlopen=yes
8018 else
8019   echo "$as_me: failed program was:" >&5
8020 cat conftest.$ac_ext >&5
8021 ac_cv_lib_dl_dlopen=no
8022 fi
8023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8024 LIBS=$ac_check_lib_save_LIBS
8025 fi
8026 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8027 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8028 if test $ac_cv_lib_dl_dlopen = yes; then
8029   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8030 else
8031   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8032 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8033 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8034   echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036   ac_check_lib_save_LIBS=$LIBS
8037 LIBS="-lsvld  $LIBS"
8038 cat >conftest.$ac_ext <<_ACEOF
8039 #line $LINENO "configure"
8040 #include "confdefs.h"
8041
8042 /* Override any gcc2 internal prototype to avoid an error.  */
8043 #ifdef __cplusplus
8044 extern "C"
8045 #endif
8046 /* We use char because int might match the return type of a gcc2
8047    builtin and then its argument prototype would still apply.  */
8048 char dlopen ();
8049 #ifdef F77_DUMMY_MAIN
8050 #  ifdef __cplusplus
8051      extern "C"
8052 #  endif
8053    int F77_DUMMY_MAIN() { return 1; }
8054 #endif
8055 int
8056 main ()
8057 {
8058 dlopen ();
8059   ;
8060   return 0;
8061 }
8062 _ACEOF
8063 rm -f conftest.$ac_objext conftest$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065   (eval $ac_link) 2>&5
8066   ac_status=$?
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); } &&
8069          { ac_try='test -s conftest$ac_exeext'
8070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8071   (eval $ac_try) 2>&5
8072   ac_status=$?
8073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074   (exit $ac_status); }; }; then
8075   ac_cv_lib_svld_dlopen=yes
8076 else
8077   echo "$as_me: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8079 ac_cv_lib_svld_dlopen=no
8080 fi
8081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8082 LIBS=$ac_check_lib_save_LIBS
8083 fi
8084 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8085 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8086 if test $ac_cv_lib_svld_dlopen = yes; then
8087   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8088 else
8089   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8090 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8091 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8092   echo $ECHO_N "(cached) $ECHO_C" >&6
8093 else
8094   ac_check_lib_save_LIBS=$LIBS
8095 LIBS="-ldld  $LIBS"
8096 cat >conftest.$ac_ext <<_ACEOF
8097 #line $LINENO "configure"
8098 #include "confdefs.h"
8099
8100 /* Override any gcc2 internal prototype to avoid an error.  */
8101 #ifdef __cplusplus
8102 extern "C"
8103 #endif
8104 /* We use char because int might match the return type of a gcc2
8105    builtin and then its argument prototype would still apply.  */
8106 char dld_link ();
8107 #ifdef F77_DUMMY_MAIN
8108 #  ifdef __cplusplus
8109      extern "C"
8110 #  endif
8111    int F77_DUMMY_MAIN() { return 1; }
8112 #endif
8113 int
8114 main ()
8115 {
8116 dld_link ();
8117   ;
8118   return 0;
8119 }
8120 _ACEOF
8121 rm -f conftest.$ac_objext conftest$ac_exeext
8122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8123   (eval $ac_link) 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); } &&
8127          { ac_try='test -s conftest$ac_exeext'
8128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129   (eval $ac_try) 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); }; }; then
8133   ac_cv_lib_dld_dld_link=yes
8134 else
8135   echo "$as_me: failed program was:" >&5
8136 cat conftest.$ac_ext >&5
8137 ac_cv_lib_dld_dld_link=no
8138 fi
8139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8140 LIBS=$ac_check_lib_save_LIBS
8141 fi
8142 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8143 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8144 if test $ac_cv_lib_dld_dld_link = yes; then
8145   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8146 fi
8147
8148
8149 fi
8150
8151
8152 fi
8153
8154
8155 fi
8156
8157
8158 fi
8159
8160
8161 fi
8162
8163     ;;
8164   esac
8165
8166   if test "x$lt_cv_dlopen" != xno; then
8167     enable_dlopen=yes
8168   else
8169     enable_dlopen=no
8170   fi
8171
8172   case $lt_cv_dlopen in
8173   dlopen)
8174     save_CPPFLAGS="$CPPFLAGS"
8175     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8176
8177     save_LDFLAGS="$LDFLAGS"
8178     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8179
8180     save_LIBS="$LIBS"
8181     LIBS="$lt_cv_dlopen_libs $LIBS"
8182
8183     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8184 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8185 if test "${lt_cv_dlopen_self+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188           if test "$cross_compiling" = yes; then :
8189   lt_cv_dlopen_self=cross
8190 else
8191   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8192   lt_status=$lt_dlunknown
8193   cat > conftest.$ac_ext <<EOF
8194 #line 8194 "configure"
8195 #include "confdefs.h"
8196
8197 #if HAVE_DLFCN_H
8198 #include <dlfcn.h>
8199 #endif
8200
8201 #include <stdio.h>
8202
8203 #ifdef RTLD_GLOBAL
8204 #  define LT_DLGLOBAL           RTLD_GLOBAL
8205 #else
8206 #  ifdef DL_GLOBAL
8207 #    define LT_DLGLOBAL         DL_GLOBAL
8208 #  else
8209 #    define LT_DLGLOBAL         0
8210 #  endif
8211 #endif
8212
8213 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8214    find out it does not work in some platform. */
8215 #ifndef LT_DLLAZY_OR_NOW
8216 #  ifdef RTLD_LAZY
8217 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8218 #  else
8219 #    ifdef DL_LAZY
8220 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8221 #    else
8222 #      ifdef RTLD_NOW
8223 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8224 #      else
8225 #        ifdef DL_NOW
8226 #          define LT_DLLAZY_OR_NOW      DL_NOW
8227 #        else
8228 #          define LT_DLLAZY_OR_NOW      0
8229 #        endif
8230 #      endif
8231 #    endif
8232 #  endif
8233 #endif
8234
8235 #ifdef __cplusplus
8236 extern "C" void exit (int);
8237 #endif
8238
8239 void fnord() { int i=42;}
8240 int main ()
8241 {
8242   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8243   int status = $lt_dlunknown;
8244
8245   if (self)
8246     {
8247       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8248       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8249       /* dlclose (self); */
8250     }
8251
8252     exit (status);
8253 }
8254 EOF
8255   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256   (eval $ac_link) 2>&5
8257   ac_status=$?
8258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8260     (./conftest; exit; ) 2>/dev/null
8261     lt_status=$?
8262     case x$lt_status in
8263       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8264       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8265       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8266     esac
8267   else :
8268     # compilation failed
8269     lt_cv_dlopen_self=no
8270   fi
8271 fi
8272 rm -fr conftest*
8273
8274
8275 fi
8276 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8277 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8278
8279     if test "x$lt_cv_dlopen_self" = xyes; then
8280       LDFLAGS="$LDFLAGS $link_static_flag"
8281       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8282 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8283 if test "${lt_cv_dlopen_self_static+set}" = set; then
8284   echo $ECHO_N "(cached) $ECHO_C" >&6
8285 else
8286           if test "$cross_compiling" = yes; then :
8287   lt_cv_dlopen_self_static=cross
8288 else
8289   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8290   lt_status=$lt_dlunknown
8291   cat > conftest.$ac_ext <<EOF
8292 #line 8292 "configure"
8293 #include "confdefs.h"
8294
8295 #if HAVE_DLFCN_H
8296 #include <dlfcn.h>
8297 #endif
8298
8299 #include <stdio.h>
8300
8301 #ifdef RTLD_GLOBAL
8302 #  define LT_DLGLOBAL           RTLD_GLOBAL
8303 #else
8304 #  ifdef DL_GLOBAL
8305 #    define LT_DLGLOBAL         DL_GLOBAL
8306 #  else
8307 #    define LT_DLGLOBAL         0
8308 #  endif
8309 #endif
8310
8311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8312    find out it does not work in some platform. */
8313 #ifndef LT_DLLAZY_OR_NOW
8314 #  ifdef RTLD_LAZY
8315 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8316 #  else
8317 #    ifdef DL_LAZY
8318 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8319 #    else
8320 #      ifdef RTLD_NOW
8321 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8322 #      else
8323 #        ifdef DL_NOW
8324 #          define LT_DLLAZY_OR_NOW      DL_NOW
8325 #        else
8326 #          define LT_DLLAZY_OR_NOW      0
8327 #        endif
8328 #      endif
8329 #    endif
8330 #  endif
8331 #endif
8332
8333 #ifdef __cplusplus
8334 extern "C" void exit (int);
8335 #endif
8336
8337 void fnord() { int i=42;}
8338 int main ()
8339 {
8340   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8341   int status = $lt_dlunknown;
8342
8343   if (self)
8344     {
8345       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8346       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8347       /* dlclose (self); */
8348     }
8349
8350     exit (status);
8351 }
8352 EOF
8353   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8354   (eval $ac_link) 2>&5
8355   ac_status=$?
8356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8358     (./conftest; exit; ) 2>/dev/null
8359     lt_status=$?
8360     case x$lt_status in
8361       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8362       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8363       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8364     esac
8365   else :
8366     # compilation failed
8367     lt_cv_dlopen_self_static=no
8368   fi
8369 fi
8370 rm -fr conftest*
8371
8372
8373 fi
8374 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8375 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8376     fi
8377
8378     CPPFLAGS="$save_CPPFLAGS"
8379     LDFLAGS="$save_LDFLAGS"
8380     LIBS="$save_LIBS"
8381     ;;
8382   esac
8383
8384   case $lt_cv_dlopen_self in
8385   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8386   *) enable_dlopen_self=unknown ;;
8387   esac
8388
8389   case $lt_cv_dlopen_self_static in
8390   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8391   *) enable_dlopen_self_static=unknown ;;
8392   esac
8393 fi
8394
8395
8396 # Report which librarie types wil actually be built
8397 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8398 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8399 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8400 echo "${ECHO_T}$can_build_shared" >&6
8401
8402 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8403 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8404 test "$can_build_shared" = "no" && enable_shared=no
8405
8406 # On AIX, shared libraries and static libraries use the same namespace, and
8407 # are all built from PIC.
8408 case "$host_os" in
8409 aix3*)
8410   test "$enable_shared" = yes && enable_static=no
8411   if test -n "$RANLIB"; then
8412     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8413     postinstall_cmds='$RANLIB $lib'
8414   fi
8415   ;;
8416
8417 aix4*)
8418   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8419     test "$enable_shared" = yes && enable_static=no
8420   fi
8421   ;;
8422   darwin* | rhapsody*)
8423   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8424     archive_cmds_need_lc=no
8425     case "$host_os" in
8426     rhapsody* | darwin1.[012])
8427       allow_undefined_flag='-undefined suppress'
8428       ;;
8429     *) # Darwin 1.3 on
8430       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8431       ;;
8432     esac
8433     # FIXME: Relying on posixy $() will cause problems for
8434     #        cross-compilation, but unfortunately the echo tests do not
8435     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8436     #          `"' quotes if we put them in here... so don't!
8437                 output_verbose_link_cmd='echo'
8438     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8439     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8440     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8441                   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}'
8442                   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}'
8443     hardcode_direct=no
8444     hardcode_automatic=yes
8445     hardcode_shlibpath_var=unsupported
8446     whole_archive_flag_spec='-all_load $convenience'
8447     link_all_deplibs=yes
8448     fi
8449     ;;
8450 esac
8451 echo "$as_me:$LINENO: result: $enable_shared" >&5
8452 echo "${ECHO_T}$enable_shared" >&6
8453
8454 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8455 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8456 # Make sure either enable_shared or enable_static is yes.
8457 test "$enable_shared" = yes || enable_static=yes
8458 echo "$as_me:$LINENO: result: $enable_static" >&5
8459 echo "${ECHO_T}$enable_static" >&6
8460
8461 # The else clause should only fire when bootstrapping the
8462 # libtool distribution, otherwise you forgot to ship ltmain.sh
8463 # with your package, and you will get complaints that there are
8464 # no rules to generate ltmain.sh.
8465 if test -f "$ltmain"; then
8466   # See if we are running on zsh, and set the options which allow our commands through
8467   # without removal of \ escapes.
8468   if test -n "${ZSH_VERSION+set}" ; then
8469     setopt NO_GLOB_SUBST
8470   fi
8471   # Now quote all the things that may contain metacharacters while being
8472   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8473   # variables and quote the copies for generation of the libtool script.
8474   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8475     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8476     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8477     deplibs_check_method reload_flag reload_cmds need_locks \
8478     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8479     lt_cv_sys_global_symbol_to_c_name_address \
8480     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8481     old_postinstall_cmds old_postuninstall_cmds \
8482     compiler \
8483     CC \
8484     LD \
8485     lt_prog_compiler_wl \
8486     lt_prog_compiler_pic \
8487     lt_prog_compiler_static \
8488     lt_prog_compiler_no_builtin_flag \
8489     export_dynamic_flag_spec \
8490     thread_safe_flag_spec \
8491     whole_archive_flag_spec \
8492     enable_shared_with_static_runtimes \
8493     old_archive_cmds \
8494     old_archive_from_new_cmds \
8495     predep_objects \
8496     postdep_objects \
8497     predeps \
8498     postdeps \
8499     compiler_lib_search_path \
8500     archive_cmds \
8501     archive_expsym_cmds \
8502     postinstall_cmds \
8503     postuninstall_cmds \
8504     old_archive_from_expsyms_cmds \
8505     allow_undefined_flag \
8506     no_undefined_flag \
8507     export_symbols_cmds \
8508     hardcode_libdir_flag_spec \
8509     hardcode_libdir_flag_spec_ld \
8510     hardcode_libdir_separator \
8511     hardcode_automatic \
8512     module_cmds \
8513     module_expsym_cmds \
8514     lt_cv_prog_compiler_c_o \
8515     exclude_expsyms \
8516     include_expsyms; do
8517
8518     case $var in
8519     old_archive_cmds | \
8520     old_archive_from_new_cmds | \
8521     archive_cmds | \
8522     archive_expsym_cmds | \
8523     module_cmds | \
8524     module_expsym_cmds | \
8525     old_archive_from_expsyms_cmds | \
8526     export_symbols_cmds | \
8527     extract_expsyms_cmds | reload_cmds | finish_cmds | \
8528     postinstall_cmds | postuninstall_cmds | \
8529     old_postinstall_cmds | old_postuninstall_cmds | \
8530     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8531       # Double-quote double-evaled strings.
8532       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8533       ;;
8534     *)
8535       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8536       ;;
8537     esac
8538   done
8539
8540   case $lt_echo in
8541   *'\$0 --fallback-echo"')
8542     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8543     ;;
8544   esac
8545
8546 cfgfile="${ofile}T"
8547   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8548   $rm -f "$cfgfile"
8549   { echo "$as_me:$LINENO: creating $ofile" >&5
8550 echo "$as_me: creating $ofile" >&6;}
8551
8552   cat <<__EOF__ >> "$cfgfile"
8553 #! $SHELL
8554
8555 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8556 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8557 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8558 #
8559 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8560 # Free Software Foundation, Inc.
8561 #
8562 # This file is part of GNU Libtool:
8563 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8564 #
8565 # This program is free software; you can redistribute it and/or modify
8566 # it under the terms of the GNU General Public License as published by
8567 # the Free Software Foundation; either version 2 of the License, or
8568 # (at your option) any later version.
8569 #
8570 # This program is distributed in the hope that it will be useful, but
8571 # WITHOUT ANY WARRANTY; without even the implied warranty of
8572 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8573 # General Public License for more details.
8574 #
8575 # You should have received a copy of the GNU General Public License
8576 # along with this program; if not, write to the Free Software
8577 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8578 #
8579 # As a special exception to the GNU General Public License, if you
8580 # distribute this file as part of a program that contains a
8581 # configuration script generated by Autoconf, you may include it under
8582 # the same distribution terms that you use for the rest of that program.
8583
8584 # A sed program that does not truncate output.
8585 SED=$lt_SED
8586
8587 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8588 Xsed="$SED -e s/^X//"
8589
8590 # The HP-UX ksh and POSIX shell print the target directory to stdout
8591 # if CDPATH is set.
8592 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8593
8594 # The names of the tagged configurations supported by this script.
8595 available_tags=
8596
8597 # ### BEGIN LIBTOOL CONFIG
8598
8599 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8600
8601 # Shell to use when invoking shell scripts.
8602 SHELL=$lt_SHELL
8603
8604 # Whether or not to build shared libraries.
8605 build_libtool_libs=$enable_shared
8606
8607 # Whether or not to build static libraries.
8608 build_old_libs=$enable_static
8609
8610 # Whether or not to add -lc for building shared libraries.
8611 build_libtool_need_lc=$archive_cmds_need_lc
8612
8613 # Whether or not to disallow shared libs when runtime libs are static
8614 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8615
8616 # Whether or not to optimize for fast installation.
8617 fast_install=$enable_fast_install
8618
8619 # The host system.
8620 host_alias=$host_alias
8621 host=$host
8622
8623 # An echo program that does not interpret backslashes.
8624 echo=$lt_echo
8625
8626 # The archiver.
8627 AR=$lt_AR
8628 AR_FLAGS=$lt_AR_FLAGS
8629
8630 # A C compiler.
8631 LTCC=$lt_LTCC
8632
8633 # A language-specific compiler.
8634 CC=$lt_compiler
8635
8636 # Is the compiler the GNU C compiler?
8637 with_gcc=$GCC
8638
8639 # An ERE matcher.
8640 EGREP=$lt_EGREP
8641
8642 # The linker used to build libraries.
8643 LD=$lt_LD
8644
8645 # Whether we need hard or soft links.
8646 LN_S=$lt_LN_S
8647
8648 # A BSD-compatible nm program.
8649 NM=$lt_NM
8650
8651 # A symbol stripping program
8652 STRIP=$STRIP
8653
8654 # Used to examine libraries when file_magic_cmd begins "file"
8655 MAGIC_CMD=$MAGIC_CMD
8656
8657 # Used on cygwin: DLL creation program.
8658 DLLTOOL="$DLLTOOL"
8659
8660 # Used on cygwin: object dumper.
8661 OBJDUMP="$OBJDUMP"
8662
8663 # Used on cygwin: assembler.
8664 AS="$AS"
8665
8666 # The name of the directory that contains temporary libtool files.
8667 objdir=$objdir
8668
8669 # How to create reloadable object files.
8670 reload_flag=$lt_reload_flag
8671 reload_cmds=$lt_reload_cmds
8672
8673 # How to pass a linker flag through the compiler.
8674 wl=$lt_lt_prog_compiler_wl
8675
8676 # Object file suffix (normally "o").
8677 objext="$ac_objext"
8678
8679 # Old archive suffix (normally "a").
8680 libext="$libext"
8681
8682 # Shared library suffix (normally ".so").
8683 shrext='$shrext'
8684
8685 # Executable file suffix (normally "").
8686 exeext="$exeext"
8687
8688 # Additional compiler flags for building library objects.
8689 pic_flag=$lt_lt_prog_compiler_pic
8690 pic_mode=$pic_mode
8691
8692 # What is the maximum length of a command?
8693 max_cmd_len=$lt_cv_sys_max_cmd_len
8694
8695 # Does compiler simultaneously support -c and -o options?
8696 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8697
8698 # Must we lock files when doing compilation ?
8699 need_locks=$lt_need_locks
8700
8701 # Do we need the lib prefix for modules?
8702 need_lib_prefix=$need_lib_prefix
8703
8704 # Do we need a version for libraries?
8705 need_version=$need_version
8706
8707 # Whether dlopen is supported.
8708 dlopen_support=$enable_dlopen
8709
8710 # Whether dlopen of programs is supported.
8711 dlopen_self=$enable_dlopen_self
8712
8713 # Whether dlopen of statically linked programs is supported.
8714 dlopen_self_static=$enable_dlopen_self_static
8715
8716 # Compiler flag to prevent dynamic linking.
8717 link_static_flag=$lt_lt_prog_compiler_static
8718
8719 # Compiler flag to turn off builtin functions.
8720 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8721
8722 # Compiler flag to allow reflexive dlopens.
8723 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8724
8725 # Compiler flag to generate shared objects directly from archives.
8726 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8727
8728 # Compiler flag to generate thread-safe objects.
8729 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8730
8731 # Library versioning type.
8732 version_type=$version_type
8733
8734 # Format of library name prefix.
8735 libname_spec=$lt_libname_spec
8736
8737 # List of archive names.  First name is the real one, the rest are links.
8738 # The last name is the one that the linker finds with -lNAME.
8739 library_names_spec=$lt_library_names_spec
8740
8741 # The coded name of the library, if different from the real name.
8742 soname_spec=$lt_soname_spec
8743
8744 # Commands used to build and install an old-style archive.
8745 RANLIB=$lt_RANLIB
8746 old_archive_cmds=$lt_old_archive_cmds
8747 old_postinstall_cmds=$lt_old_postinstall_cmds
8748 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8749
8750 # Create an old-style archive from a shared archive.
8751 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8752
8753 # Create a temporary old-style archive to link instead of a shared archive.
8754 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8755
8756 # Commands used to build and install a shared archive.
8757 archive_cmds=$lt_archive_cmds
8758 archive_expsym_cmds=$lt_archive_expsym_cmds
8759 postinstall_cmds=$lt_postinstall_cmds
8760 postuninstall_cmds=$lt_postuninstall_cmds
8761
8762 # Commands used to build a loadable module (assumed same as above if empty)
8763 module_cmds=$lt_module_cmds
8764 module_expsym_cmds=$lt_module_expsym_cmds
8765
8766 # Commands to strip libraries.
8767 old_striplib=$lt_old_striplib
8768 striplib=$lt_striplib
8769
8770 # Dependencies to place before the objects being linked to create a
8771 # shared library.
8772 predep_objects=$lt_predep_objects
8773
8774 # Dependencies to place after the objects being linked to create a
8775 # shared library.
8776 postdep_objects=$lt_postdep_objects
8777
8778 # Dependencies to place before the objects being linked to create a
8779 # shared library.
8780 predeps=$lt_predeps
8781
8782 # Dependencies to place after the objects being linked to create a
8783 # shared library.
8784 postdeps=$lt_postdeps
8785
8786 # The library search path used internally by the compiler when linking
8787 # a shared library.
8788 compiler_lib_search_path=$lt_compiler_lib_search_path
8789
8790 # Method to check whether dependent libraries are shared objects.
8791 deplibs_check_method=$lt_deplibs_check_method
8792
8793 # Command to use when deplibs_check_method == file_magic.
8794 file_magic_cmd=$lt_file_magic_cmd
8795
8796 # Flag that allows shared libraries with undefined symbols to be built.
8797 allow_undefined_flag=$lt_allow_undefined_flag
8798
8799 # Flag that forces no undefined symbols.
8800 no_undefined_flag=$lt_no_undefined_flag
8801
8802 # Commands used to finish a libtool library installation in a directory.
8803 finish_cmds=$lt_finish_cmds
8804
8805 # Same as above, but a single script fragment to be evaled but not shown.
8806 finish_eval=$lt_finish_eval
8807
8808 # Take the output of nm and produce a listing of raw symbols and C names.
8809 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8810
8811 # Transform the output of nm in a proper C declaration
8812 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8813
8814 # Transform the output of nm in a C name address pair
8815 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8816
8817 # This is the shared library runtime path variable.
8818 runpath_var=$runpath_var
8819
8820 # This is the shared library path variable.
8821 shlibpath_var=$shlibpath_var
8822
8823 # Is shlibpath searched before the hard-coded library search path?
8824 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8825
8826 # How to hardcode a shared library path into an executable.
8827 hardcode_action=$hardcode_action
8828
8829 # Whether we should hardcode library paths into libraries.
8830 hardcode_into_libs=$hardcode_into_libs
8831
8832 # Flag to hardcode \$libdir into a binary during linking.
8833 # This must work even if \$libdir does not exist.
8834 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8835
8836 # If ld is used when linking, flag to hardcode \$libdir into
8837 # a binary during linking. This must work even if \$libdir does
8838 # not exist.
8839 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8840
8841 # Whether we need a single -rpath flag with a separated argument.
8842 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8843
8844 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8845 # resulting binary.
8846 hardcode_direct=$hardcode_direct
8847
8848 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8849 # resulting binary.
8850 hardcode_minus_L=$hardcode_minus_L
8851
8852 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8853 # the resulting binary.
8854 hardcode_shlibpath_var=$hardcode_shlibpath_var
8855
8856 # Set to yes if building a shared library automatically hardcodes DIR into the library
8857 # and all subsequent libraries and executables linked against it.
8858 hardcode_automatic=$hardcode_automatic
8859
8860 # Variables whose values should be saved in libtool wrapper scripts and
8861 # restored at relink time.
8862 variables_saved_for_relink="$variables_saved_for_relink"
8863
8864 # Whether libtool must link a program against all its dependency libraries.
8865 link_all_deplibs=$link_all_deplibs
8866
8867 # Compile-time system search path for libraries
8868 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8869
8870 # Run-time system search path for libraries
8871 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8872
8873 # Fix the shell variable \$srcfile for the compiler.
8874 fix_srcfile_path="$fix_srcfile_path"
8875
8876 # Set to yes if exported symbols are required.
8877 always_export_symbols=$always_export_symbols
8878
8879 # The commands to list exported symbols.
8880 export_symbols_cmds=$lt_export_symbols_cmds
8881
8882 # The commands to extract the exported symbol list from a shared archive.
8883 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8884
8885 # Symbols that should not be listed in the preloaded symbols.
8886 exclude_expsyms=$lt_exclude_expsyms
8887
8888 # Symbols that must always be exported.
8889 include_expsyms=$lt_include_expsyms
8890
8891 # ### END LIBTOOL CONFIG
8892
8893 __EOF__
8894
8895
8896   case $host_os in
8897   aix3*)
8898     cat <<\EOF >> "$cfgfile"
8899
8900 # AIX sometimes has problems with the GCC collect2 program.  For some
8901 # reason, if we set the COLLECT_NAMES environment variable, the problems
8902 # vanish in a puff of smoke.
8903 if test "X${COLLECT_NAMES+set}" != Xset; then
8904   COLLECT_NAMES=
8905   export COLLECT_NAMES
8906 fi
8907 EOF
8908     ;;
8909   esac
8910
8911   # We use sed instead of cat because bash on DJGPP gets confused if
8912   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8913   # text mode, it properly converts lines to CR/LF.  This bash problem
8914   # is reportedly fixed, but why not run on old versions too?
8915   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8916
8917   mv -f "$cfgfile" "$ofile" || \
8918     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8919   chmod +x "$ofile"
8920
8921 else
8922   # If there is no Makefile yet, we rely on a make rule to execute
8923   # `config.status --recheck' to rerun these tests and create the
8924   # libtool script then.
8925   test -f Makefile && make "$ltmain"
8926 fi
8927
8928
8929 ac_ext=c
8930 ac_cpp='$CPP $CPPFLAGS'
8931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8934
8935 CC="$lt_save_CC"
8936
8937
8938 # Check whether --with-tags or --without-tags was given.
8939 if test "${with_tags+set}" = set; then
8940   withval="$with_tags"
8941   tagnames="$withval"
8942 fi;
8943
8944 if test -f "$ltmain" && test -n "$tagnames"; then
8945   if test ! -f "${ofile}"; then
8946     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8947 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8948   fi
8949
8950   if test -z "$LTCC"; then
8951     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8952     if test -z "$LTCC"; then
8953       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8954 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8955     else
8956       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8957 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8958     fi
8959   fi
8960
8961   # Extract list of available tagged configurations in $ofile.
8962   # Note that this assumes the entire list is on one line.
8963   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8964
8965   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8966   for tagname in $tagnames; do
8967     IFS="$lt_save_ifs"
8968     # Check whether tagname contains only valid characters
8969     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8970     "") ;;
8971     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8972 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8973    { (exit 1); exit 1; }; }
8974         ;;
8975     esac
8976
8977     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8978     then
8979       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8980 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8981    { (exit 1); exit 1; }; }
8982     fi
8983
8984     # Update the list of available tags.
8985     if test -n "$tagname"; then
8986       echo appending configuration tag \"$tagname\" to $ofile
8987
8988       case $tagname in
8989       CXX)
8990         if test -n "$CXX" && test "X$CXX" != "Xno"; then
8991           ac_ext=cc
8992 ac_cpp='$CXXCPP $CPPFLAGS'
8993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8996
8997
8998
8999
9000 archive_cmds_need_lc_CXX=no
9001 allow_undefined_flag_CXX=
9002 always_export_symbols_CXX=no
9003 archive_expsym_cmds_CXX=
9004 export_dynamic_flag_spec_CXX=
9005 hardcode_direct_CXX=no
9006 hardcode_libdir_flag_spec_CXX=
9007 hardcode_libdir_flag_spec_ld_CXX=
9008 hardcode_libdir_separator_CXX=
9009 hardcode_minus_L_CXX=no
9010 hardcode_automatic_CXX=no
9011 module_cmds_CXX=
9012 module_expsym_cmds_CXX=
9013 link_all_deplibs_CXX=unknown
9014 old_archive_cmds_CXX=$old_archive_cmds
9015 no_undefined_flag_CXX=
9016 whole_archive_flag_spec_CXX=
9017 enable_shared_with_static_runtimes_CXX=no
9018
9019 # Dependencies to place before and after the object being linked:
9020 predep_objects_CXX=
9021 postdep_objects_CXX=
9022 predeps_CXX=
9023 postdeps_CXX=
9024 compiler_lib_search_path_CXX=
9025
9026 # Source file extension for C++ test sources.
9027 ac_ext=cc
9028
9029 # Object file extension for compiled C++ test sources.
9030 objext=o
9031 objext_CXX=$objext
9032
9033 # Code to be used in simple compile tests
9034 lt_simple_compile_test_code="int some_variable = 0;\n"
9035
9036 # Code to be used in simple link tests
9037 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9038
9039 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9040
9041 # If no C compiler was specified, use CC.
9042 LTCC=${LTCC-"$CC"}
9043
9044 # Allow CC to be a program name with arguments.
9045 compiler=$CC
9046
9047
9048 # Allow CC to be a program name with arguments.
9049 lt_save_CC=$CC
9050 lt_save_LD=$LD
9051 lt_save_GCC=$GCC
9052 GCC=$GXX
9053 lt_save_with_gnu_ld=$with_gnu_ld
9054 lt_save_path_LD=$lt_cv_path_LD
9055 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9056   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9057 else
9058   unset lt_cv_prog_gnu_ld
9059 fi
9060 if test -n "${lt_cv_path_LDCXX+set}"; then
9061   lt_cv_path_LD=$lt_cv_path_LDCXX
9062 else
9063   unset lt_cv_path_LD
9064 fi
9065 test -z "${LDCXX+set}" || LD=$LDCXX
9066 CC=${CXX-"c++"}
9067 compiler=$CC
9068 compiler_CXX=$CC
9069 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9070
9071 # We don't want -fno-exception wen compiling C++ code, so set the
9072 # no_builtin_flag separately
9073 if test "$GXX" = yes; then
9074   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9075 else
9076   lt_prog_compiler_no_builtin_flag_CXX=
9077 fi
9078
9079 if test "$GXX" = yes; then
9080   # Set up default GNU C++ configuration
9081
9082
9083 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9084 if test "${with_gnu_ld+set}" = set; then
9085   withval="$with_gnu_ld"
9086   test "$withval" = no || with_gnu_ld=yes
9087 else
9088   with_gnu_ld=no
9089 fi;
9090 ac_prog=ld
9091 if test "$GCC" = yes; then
9092   # Check if gcc -print-prog-name=ld gives a path.
9093   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9094 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9095   case $host in
9096   *-*-mingw*)
9097     # gcc leaves a trailing carriage return which upsets mingw
9098     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9099   *)
9100     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9101   esac
9102   case $ac_prog in
9103     # Accept absolute paths.
9104     [\\/]* | ?:[\\/]*)
9105       re_direlt='/[^/][^/]*/\.\./'
9106       # Canonicalize the path of ld
9107       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9108       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9109         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9110       done
9111       test -z "$LD" && LD="$ac_prog"
9112       ;;
9113   "")
9114     # If it fails, then pretend we aren't using GCC.
9115     ac_prog=ld
9116     ;;
9117   *)
9118     # If it is relative, then search for the first ld in PATH.
9119     with_gnu_ld=unknown
9120     ;;
9121   esac
9122 elif test "$with_gnu_ld" = yes; then
9123   echo "$as_me:$LINENO: checking for GNU ld" >&5
9124 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9125 else
9126   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9127 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9128 fi
9129 if test "${lt_cv_path_LD+set}" = set; then
9130   echo $ECHO_N "(cached) $ECHO_C" >&6
9131 else
9132   if test -z "$LD"; then
9133   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9134   for ac_dir in $PATH; do
9135     IFS="$lt_save_ifs"
9136     test -z "$ac_dir" && ac_dir=.
9137     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9138       lt_cv_path_LD="$ac_dir/$ac_prog"
9139       # Check to see if the program is GNU ld.  I'd rather use --version,
9140       # but apparently some GNU ld's only accept -v.
9141       # Break only if it was the GNU/non-GNU ld that we prefer.
9142       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9143       *GNU* | *'with BFD'*)
9144         test "$with_gnu_ld" != no && break
9145         ;;
9146       *)
9147         test "$with_gnu_ld" != yes && break
9148         ;;
9149       esac
9150     fi
9151   done
9152   IFS="$lt_save_ifs"
9153 else
9154   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9155 fi
9156 fi
9157
9158 LD="$lt_cv_path_LD"
9159 if test -n "$LD"; then
9160   echo "$as_me:$LINENO: result: $LD" >&5
9161 echo "${ECHO_T}$LD" >&6
9162 else
9163   echo "$as_me:$LINENO: result: no" >&5
9164 echo "${ECHO_T}no" >&6
9165 fi
9166 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9167 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9168    { (exit 1); exit 1; }; }
9169 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9170 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9171 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9172   echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9175 case `"$LD" -v 2>&1 </dev/null` in
9176 *GNU* | *'with BFD'*)
9177   lt_cv_prog_gnu_ld=yes
9178   ;;
9179 *)
9180   lt_cv_prog_gnu_ld=no
9181   ;;
9182 esac
9183 fi
9184 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9185 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9186 with_gnu_ld=$lt_cv_prog_gnu_ld
9187
9188
9189
9190   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9191   # archiving commands below assume that GNU ld is being used.
9192   if test "$with_gnu_ld" = yes; then
9193     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9194     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'
9195
9196     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9197     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9198
9199     # If archive_cmds runs LD, not CC, wlarc should be empty
9200     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9201     #     investigate it a little bit more. (MM)
9202     wlarc='${wl}'
9203
9204     # ancient GNU ld didn't support --whole-archive et. al.
9205     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9206         grep 'no-whole-archive' > /dev/null; then
9207       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9208     else
9209       whole_archive_flag_spec_CXX=
9210     fi
9211   else
9212     with_gnu_ld=no
9213     wlarc=
9214
9215     # A generic and very simple default shared library creation
9216     # command for GNU C++ for the case where it uses the native
9217     # linker, instead of GNU ld.  If possible, this setting should
9218     # overridden to take advantage of the native linker features on
9219     # the platform it is being used on.
9220     archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9221   fi
9222
9223   # Commands to make compiler produce verbose output that lists
9224   # what "hidden" libraries, object files and flags are used when
9225   # linking a shared library.
9226   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9227
9228 else
9229   GXX=no
9230   with_gnu_ld=no
9231   wlarc=
9232 fi
9233
9234 # PORTME: fill in a description of your system's C++ link characteristics
9235 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9236 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9237 ld_shlibs_CXX=yes
9238 case $host_os in
9239   aix3*)
9240     # FIXME: insert proper C++ library support
9241     ld_shlibs_CXX=no
9242     ;;
9243   aix4* | aix5*)
9244     if test "$host_cpu" = ia64; then
9245       # On IA64, the linker does run time linking by default, so we don't
9246       # have to do anything special.
9247       aix_use_runtimelinking=no
9248       exp_sym_flag='-Bexport'
9249       no_entry_flag=""
9250     else
9251       aix_use_runtimelinking=no
9252
9253       # Test if we are trying to use run time linking or normal
9254       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9255       # need to do runtime linking.
9256       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9257         for ld_flag in $LDFLAGS; do
9258           case $ld_flag in
9259           *-brtl*)
9260             aix_use_runtimelinking=yes
9261             break
9262             ;;
9263           esac
9264         done
9265       esac
9266
9267       exp_sym_flag='-bexport'
9268       no_entry_flag='-bnoentry'
9269     fi
9270
9271     # When large executables or shared objects are built, AIX ld can
9272     # have problems creating the table of contents.  If linking a library
9273     # or program results in "error TOC overflow" add -mminimal-toc to
9274     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9275     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9276
9277     archive_cmds_CXX=''
9278     hardcode_direct_CXX=yes
9279     hardcode_libdir_separator_CXX=':'
9280     link_all_deplibs_CXX=yes
9281
9282     if test "$GXX" = yes; then
9283       case $host_os in aix4.012|aix4.012.*)
9284       # We only want to do this on AIX 4.2 and lower, the check
9285       # below for broken collect2 doesn't work under 4.3+
9286         collect2name=`${CC} -print-prog-name=collect2`
9287         if test -f "$collect2name" && \
9288            strings "$collect2name" | grep resolve_lib_name >/dev/null
9289         then
9290           # We have reworked collect2
9291           hardcode_direct_CXX=yes
9292         else
9293           # We have old collect2
9294           hardcode_direct_CXX=unsupported
9295           # It fails to find uninstalled libraries when the uninstalled
9296           # path is not listed in the libpath.  Setting hardcode_minus_L
9297           # to unsupported forces relinking
9298           hardcode_minus_L_CXX=yes
9299           hardcode_libdir_flag_spec_CXX='-L$libdir'
9300           hardcode_libdir_separator_CXX=
9301         fi
9302       esac
9303       shared_flag='-shared'
9304     else
9305       # not using gcc
9306       if test "$host_cpu" = ia64; then
9307         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9308         # chokes on -Wl,-G. The following line is correct:
9309         shared_flag='-G'
9310       else
9311         if test "$aix_use_runtimelinking" = yes; then
9312           shared_flag='${wl}-G'
9313         else
9314           shared_flag='${wl}-bM:SRE'
9315         fi
9316       fi
9317     fi
9318
9319     # It seems that -bexpall does not export symbols beginning with
9320     # underscore (_), so it is better to generate a list of symbols to export.
9321     always_export_symbols_CXX=yes
9322     if test "$aix_use_runtimelinking" = yes; then
9323       # Warning - without using the other runtime loading flags (-brtl),
9324       # -berok will link without error, but may produce a broken library.
9325       allow_undefined_flag_CXX='-berok'
9326       # Determine the default libpath from the value encoded in an empty executable.
9327       cat >conftest.$ac_ext <<_ACEOF
9328 #line $LINENO "configure"
9329 #include "confdefs.h"
9330
9331 #ifdef F77_DUMMY_MAIN
9332 #  ifdef __cplusplus
9333      extern "C"
9334 #  endif
9335    int F77_DUMMY_MAIN() { return 1; }
9336 #endif
9337 int
9338 main ()
9339 {
9340
9341   ;
9342   return 0;
9343 }
9344 _ACEOF
9345 rm -f conftest.$ac_objext conftest$ac_exeext
9346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9347   (eval $ac_link) 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); } &&
9351          { ac_try='test -s conftest$ac_exeext'
9352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353   (eval $ac_try) 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; }; then
9357
9358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9359 }'`
9360 # Check for a 64-bit object if we didn't find anything.
9361 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; }
9362 }'`; fi
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 cat conftest.$ac_ext >&5
9366 fi
9367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9369
9370       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9371
9372       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"
9373      else
9374       if test "$host_cpu" = ia64; then
9375         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9376         allow_undefined_flag_CXX="-z nodefs"
9377         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"
9378       else
9379         # Determine the default libpath from the value encoded in an empty executable.
9380         cat >conftest.$ac_ext <<_ACEOF
9381 #line $LINENO "configure"
9382 #include "confdefs.h"
9383
9384 #ifdef F77_DUMMY_MAIN
9385 #  ifdef __cplusplus
9386      extern "C"
9387 #  endif
9388    int F77_DUMMY_MAIN() { return 1; }
9389 #endif
9390 int
9391 main ()
9392 {
9393
9394   ;
9395   return 0;
9396 }
9397 _ACEOF
9398 rm -f conftest.$ac_objext conftest$ac_exeext
9399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9400   (eval $ac_link) 2>&5
9401   ac_status=$?
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); } &&
9404          { ac_try='test -s conftest$ac_exeext'
9405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406   (eval $ac_try) 2>&5
9407   ac_status=$?
9408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); }; }; then
9410
9411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9412 }'`
9413 # Check for a 64-bit object if we didn't find anything.
9414 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; }
9415 }'`; fi
9416 else
9417   echo "$as_me: failed program was:" >&5
9418 cat conftest.$ac_ext >&5
9419 fi
9420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9421 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9422
9423         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9424         # Warning - without using the other run time loading flags,
9425         # -berok will link without error, but may produce a broken library.
9426         no_undefined_flag_CXX=' ${wl}-bernotok'
9427         allow_undefined_flag_CXX=' ${wl}-berok'
9428         # -bexpall does not export symbols beginning with underscore (_)
9429         always_export_symbols_CXX=yes
9430         # Exported symbols can be pulled into shared objects from archives
9431         whole_archive_flag_spec_CXX=' '
9432         archive_cmds_need_lc_CXX=yes
9433         # This is similar to how AIX traditionally builds it's shared libraries.
9434         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'
9435       fi
9436     fi
9437     ;;
9438   chorus*)
9439     case $cc_basename in
9440       *)
9441         # FIXME: insert proper C++ library support
9442         ld_shlibs_CXX=no
9443         ;;
9444     esac
9445     ;;
9446
9447   cygwin* | mingw* | pw32*)
9448     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9449     # as there is no search path for DLLs.
9450     hardcode_libdir_flag_spec_CXX='-L$libdir'
9451     allow_undefined_flag_CXX=unsupported
9452     always_export_symbols_CXX=no
9453     enable_shared_with_static_runtimes_CXX=yes
9454
9455     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9456       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'
9457       # If the export-symbols file already is a .def file (1st line
9458       # is EXPORTS), use it as is; otherwise, prepend...
9459       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9460         cp $export_symbols $output_objdir/$soname.def;
9461       else
9462         echo EXPORTS > $output_objdir/$soname.def;
9463         cat $export_symbols >> $output_objdir/$soname.def;
9464       fi~
9465       $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'
9466     else
9467       ld_shlibs_CXX=no
9468     fi
9469   ;;
9470
9471   darwin* | rhapsody*)
9472    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9473     archive_cmds_need_lc_CXX=no
9474     case "$host_os" in
9475     rhapsody* | darwin1.[012])
9476       allow_undefined_flag_CXX='-undefined suppress'
9477       ;;
9478     *) # Darwin 1.3 on
9479       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9480       ;;
9481     esac
9482         lt_int_apple_cc_single_mod=no
9483         output_verbose_link_cmd='echo'
9484         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9485           lt_int_apple_cc_single_mod=yes
9486         fi
9487         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9488           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9489         else
9490         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'
9491       fi
9492       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9493
9494     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9495       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9496         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}'
9497       else
9498         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}'
9499       fi
9500         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}'
9501     hardcode_direct_CXX=no
9502     hardcode_automatic_CXX=yes
9503     hardcode_shlibpath_var_CXX=unsupported
9504     whole_archive_flag_spec_CXX='-all_load $convenience'
9505     link_all_deplibs_CXX=yes
9506    fi
9507     ;;
9508
9509   dgux*)
9510     case $cc_basename in
9511       ec++)
9512         # FIXME: insert proper C++ library support
9513         ld_shlibs_CXX=no
9514         ;;
9515       ghcx)
9516         # Green Hills C++ Compiler
9517         # FIXME: insert proper C++ library support
9518         ld_shlibs_CXX=no
9519         ;;
9520       *)
9521         # FIXME: insert proper C++ library support
9522         ld_shlibs_CXX=no
9523         ;;
9524     esac
9525     ;;
9526   freebsd12*)
9527     # C++ shared libraries reported to be fairly broken before switch to ELF
9528     ld_shlibs_CXX=no
9529     ;;
9530   freebsd-elf*)
9531     archive_cmds_need_lc_CXX=no
9532     ;;
9533   freebsd*)
9534     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9535     # conventions
9536     ld_shlibs_CXX=yes
9537     ;;
9538   gnu*)
9539     ;;
9540   hpux9*)
9541     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9542     hardcode_libdir_separator_CXX=:
9543     export_dynamic_flag_spec_CXX='${wl}-E'
9544     hardcode_direct_CXX=yes
9545     hardcode_minus_L_CXX=yes # Not in the search PATH,
9546                                 # but as the default
9547                                 # location of the library.
9548
9549     case $cc_basename in
9550     CC)
9551       # FIXME: insert proper C++ library support
9552       ld_shlibs_CXX=no
9553       ;;
9554     aCC)
9555       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'
9556       # Commands to make compiler produce verbose output that lists
9557       # what "hidden" libraries, object files and flags are used when
9558       # linking a shared library.
9559       #
9560       # There doesn't appear to be a way to prevent this compiler from
9561       # explicitly linking system object files so we need to strip them
9562       # from the output so that they don't get included in the library
9563       # dependencies.
9564       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'
9565       ;;
9566     *)
9567       if test "$GXX" = yes; then
9568         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'
9569       else
9570         # FIXME: insert proper C++ library support
9571         ld_shlibs_CXX=no
9572       fi
9573       ;;
9574     esac
9575     ;;
9576   hpux10*|hpux11*)
9577     if test $with_gnu_ld = no; then
9578       case "$host_cpu" in
9579       hppa*64*)
9580         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9581         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9582         hardcode_libdir_separator_CXX=:
9583         ;;
9584       ia64*)
9585         hardcode_libdir_flag_spec_CXX='-L$libdir'
9586         ;;
9587       *)
9588         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9589         hardcode_libdir_separator_CXX=:
9590         export_dynamic_flag_spec_CXX='${wl}-E'
9591         ;;
9592       esac
9593     fi
9594     case "$host_cpu" in
9595     hppa*64*)
9596       hardcode_direct_CXX=no
9597       hardcode_shlibpath_var_CXX=no
9598       ;;
9599     ia64*)
9600       hardcode_direct_CXX=no
9601       hardcode_shlibpath_var_CXX=no
9602       hardcode_minus_L_CXX=yes # Not in the search PATH,
9603                                               # but as the default
9604                                               # location of the library.
9605       ;;
9606     *)
9607       hardcode_direct_CXX=yes
9608       hardcode_minus_L_CXX=yes # Not in the search PATH,
9609                                               # but as the default
9610                                               # location of the library.
9611       ;;
9612     esac
9613
9614     case $cc_basename in
9615       CC)
9616         # FIXME: insert proper C++ library support
9617         ld_shlibs_CXX=no
9618         ;;
9619       aCC)
9620         case "$host_cpu" in
9621         hppa*64*|ia64*)
9622           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9623           ;;
9624         *)
9625           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9626           ;;
9627         esac
9628         # Commands to make compiler produce verbose output that lists
9629         # what "hidden" libraries, object files and flags are used when
9630         # linking a shared library.
9631         #
9632         # There doesn't appear to be a way to prevent this compiler from
9633         # explicitly linking system object files so we need to strip them
9634         # from the output so that they don't get included in the library
9635         # dependencies.
9636         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'
9637         ;;
9638       *)
9639         if test "$GXX" = yes; then
9640           if test $with_gnu_ld = no; then
9641             case "$host_cpu" in
9642             ia64*|hppa*64*)
9643               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9644               ;;
9645             *)
9646               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'
9647               ;;
9648             esac
9649           fi
9650         else
9651           # FIXME: insert proper C++ library support
9652           ld_shlibs_CXX=no
9653         fi
9654         ;;
9655     esac
9656     ;;
9657   irix5* | irix6*)
9658     case $cc_basename in
9659       CC)
9660         # SGI C++
9661         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'
9662
9663         # Archives containing C++ object files must be created using
9664         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
9665         # necessary to make sure instantiated templates are included
9666         # in the archive.
9667         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9668         ;;
9669       *)
9670         if test "$GXX" = yes; then
9671           if test "$with_gnu_ld" = no; then
9672             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'
9673           else
9674             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'
9675           fi
9676         fi
9677         link_all_deplibs_CXX=yes
9678         ;;
9679     esac
9680     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9681     hardcode_libdir_separator_CXX=:
9682     ;;
9683   linux*)
9684     case $cc_basename in
9685       KCC)
9686         # Kuck and Associates, Inc. (KAI) C++ Compiler
9687
9688         # KCC will only create a shared library if the output file
9689         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9690         # to its proper name (with version) after linking.
9691         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'
9692         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'
9693         # Commands to make compiler produce verbose output that lists
9694         # what "hidden" libraries, object files and flags are used when
9695         # linking a shared library.
9696         #
9697         # There doesn't appear to be a way to prevent this compiler from
9698         # explicitly linking system object files so we need to strip them
9699         # from the output so that they don't get included in the library
9700         # dependencies.
9701         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'
9702
9703         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9704         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9705
9706         # Archives containing C++ object files must be created using
9707         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9708         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9709         ;;
9710       icpc)
9711         # Intel C++
9712         with_gnu_ld=yes
9713         archive_cmds_need_lc_CXX=no
9714         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9715         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'
9716         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9717         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9718         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9719         ;;
9720       cxx)
9721         # Compaq C++
9722         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723         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'
9724
9725         runpath_var=LD_RUN_PATH
9726         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9727         hardcode_libdir_separator_CXX=:
9728
9729         # Commands to make compiler produce verbose output that lists
9730         # what "hidden" libraries, object files and flags are used when
9731         # linking a shared library.
9732         #
9733         # There doesn't appear to be a way to prevent this compiler from
9734         # explicitly linking system object files so we need to strip them
9735         # from the output so that they don't get included in the library
9736         # dependencies.
9737         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'
9738         ;;
9739     esac
9740     ;;
9741   lynxos*)
9742     # FIXME: insert proper C++ library support
9743     ld_shlibs_CXX=no
9744     ;;
9745   m88k*)
9746     # FIXME: insert proper C++ library support
9747     ld_shlibs_CXX=no
9748     ;;
9749   mvs*)
9750     case $cc_basename in
9751       cxx)
9752         # FIXME: insert proper C++ library support
9753         ld_shlibs_CXX=no
9754         ;;
9755       *)
9756         # FIXME: insert proper C++ library support
9757         ld_shlibs_CXX=no
9758         ;;
9759     esac
9760     ;;
9761   netbsd*)
9762     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9763       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9764       wlarc=
9765       hardcode_libdir_flag_spec_CXX='-R$libdir'
9766       hardcode_direct_CXX=yes
9767       hardcode_shlibpath_var_CXX=no
9768     fi
9769     # Workaround some broken pre-1.5 toolchains
9770     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9771     ;;
9772   osf3*)
9773     case $cc_basename in
9774       KCC)
9775         # Kuck and Associates, Inc. (KAI) C++ Compiler
9776
9777         # KCC will only create a shared library if the output file
9778         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9779         # to its proper name (with version) after linking.
9780         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'
9781
9782         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9783         hardcode_libdir_separator_CXX=:
9784
9785         # Archives containing C++ object files must be created using
9786         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9787         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9788
9789         ;;
9790       RCC)
9791         # Rational C++ 2.4.1
9792         # FIXME: insert proper C++ library support
9793         ld_shlibs_CXX=no
9794         ;;
9795       cxx)
9796         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9797         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'
9798
9799         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9800         hardcode_libdir_separator_CXX=:
9801
9802         # Commands to make compiler produce verbose output that lists
9803         # what "hidden" libraries, object files and flags are used when
9804         # linking a shared library.
9805         #
9806         # There doesn't appear to be a way to prevent this compiler from
9807         # explicitly linking system object files so we need to strip them
9808         # from the output so that they don't get included in the library
9809         # dependencies.
9810         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'
9811         ;;
9812       *)
9813         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9814           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9815           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'
9816
9817           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9818           hardcode_libdir_separator_CXX=:
9819
9820           # Commands to make compiler produce verbose output that lists
9821           # what "hidden" libraries, object files and flags are used when
9822           # linking a shared library.
9823           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9824
9825         else
9826           # FIXME: insert proper C++ library support
9827           ld_shlibs_CXX=no
9828         fi
9829         ;;
9830     esac
9831     ;;
9832   osf4* | osf5*)
9833     case $cc_basename in
9834       KCC)
9835         # Kuck and Associates, Inc. (KAI) C++ Compiler
9836
9837         # KCC will only create a shared library if the output file
9838         # ends with ".so" (or ".sl" for HP-UX), so rename the library
9839         # to its proper name (with version) after linking.
9840         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'
9841
9842         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9843         hardcode_libdir_separator_CXX=:
9844
9845         # Archives containing C++ object files must be created using
9846         # the KAI C++ compiler.
9847         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9848         ;;
9849       RCC)
9850         # Rational C++ 2.4.1
9851         # FIXME: insert proper C++ library support
9852         ld_shlibs_CXX=no
9853         ;;
9854       cxx)
9855         allow_undefined_flag_CXX=' -expect_unresolved \*'
9856         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'
9857         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9858           echo "-hidden">> $lib.exp~
9859           $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~
9860           $rm $lib.exp'
9861
9862         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9863         hardcode_libdir_separator_CXX=:
9864
9865         # Commands to make compiler produce verbose output that lists
9866         # what "hidden" libraries, object files and flags are used when
9867         # linking a shared library.
9868         #
9869         # There doesn't appear to be a way to prevent this compiler from
9870         # explicitly linking system object files so we need to strip them
9871         # from the output so that they don't get included in the library
9872         # dependencies.
9873         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'
9874         ;;
9875       *)
9876         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9877           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9878          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'
9879
9880           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9881           hardcode_libdir_separator_CXX=:
9882
9883           # Commands to make compiler produce verbose output that lists
9884           # what "hidden" libraries, object files and flags are used when
9885           # linking a shared library.
9886           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9887
9888         else
9889           # FIXME: insert proper C++ library support
9890           ld_shlibs_CXX=no
9891         fi
9892         ;;
9893     esac
9894     ;;
9895   psos*)
9896     # FIXME: insert proper C++ library support
9897     ld_shlibs_CXX=no
9898     ;;
9899   sco*)
9900     archive_cmds_need_lc_CXX=no
9901     case $cc_basename in
9902       CC)
9903         # FIXME: insert proper C++ library support
9904         ld_shlibs_CXX=no
9905         ;;
9906       *)
9907         # FIXME: insert proper C++ library support
9908         ld_shlibs_CXX=no
9909         ;;
9910     esac
9911     ;;
9912   sunos4*)
9913     case $cc_basename in
9914       CC)
9915         # Sun C++ 4.x
9916         # FIXME: insert proper C++ library support
9917         ld_shlibs_CXX=no
9918         ;;
9919       lcc)
9920         # Lucid
9921         # FIXME: insert proper C++ library support
9922         ld_shlibs_CXX=no
9923         ;;
9924       *)
9925         # FIXME: insert proper C++ library support
9926         ld_shlibs_CXX=no
9927         ;;
9928     esac
9929     ;;
9930   solaris*)
9931     case $cc_basename in
9932       CC)
9933         # Sun C++ 4.2, 5.x and Centerline C++
9934         no_undefined_flag_CXX=' -zdefs'
9935         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9936         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9937         $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'
9938
9939         hardcode_libdir_flag_spec_CXX='-R$libdir'
9940         hardcode_shlibpath_var_CXX=no
9941         case $host_os in
9942           solaris2.0-5 | solaris2.0-5.*) ;;
9943           *)
9944             # The C++ compiler is used as linker so we must use $wl
9945             # flag to pass the commands to the underlying system
9946             # linker.
9947             # Supported since Solaris 2.6 (maybe 2.5.1?)
9948             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9949             ;;
9950         esac
9951         link_all_deplibs_CXX=yes
9952
9953         # Commands to make compiler produce verbose output that lists
9954         # what "hidden" libraries, object files and flags are used when
9955         # linking a shared library.
9956         #
9957         # There doesn't appear to be a way to prevent this compiler from
9958         # explicitly linking system object files so we need to strip them
9959         # from the output so that they don't get included in the library
9960         # dependencies.
9961         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'
9962
9963         # Archives containing C++ object files must be created using
9964         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
9965         # necessary to make sure instantiated templates are included
9966         # in the archive.
9967         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9968         ;;
9969       gcx)
9970         # Green Hills C++ Compiler
9971         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9972
9973         # The C++ compiler must be used to create the archive.
9974         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9975         ;;
9976       *)
9977         # GNU C++ compiler with Solaris linker
9978         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9979           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9980           if $CC --version | grep -v '^2\.7' > /dev/null; then
9981             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9982             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9983                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9984
9985             # Commands to make compiler produce verbose output that lists
9986             # what "hidden" libraries, object files and flags are used when
9987             # linking a shared library.
9988             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9989           else
9990             # g++ 2.7 appears to require `-G' NOT `-shared' on this
9991             # platform.
9992             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9993             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9994                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9995
9996             # Commands to make compiler produce verbose output that lists
9997             # what "hidden" libraries, object files and flags are used when
9998             # linking a shared library.
9999             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10000           fi
10001
10002           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10003         fi
10004         ;;
10005     esac
10006     ;;
10007   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10008     archive_cmds_need_lc_CXX=no
10009     ;;
10010   tandem*)
10011     case $cc_basename in
10012       NCC)
10013         # NonStop-UX NCC 3.20
10014         # FIXME: insert proper C++ library support
10015         ld_shlibs_CXX=no
10016         ;;
10017       *)
10018         # FIXME: insert proper C++ library support
10019         ld_shlibs_CXX=no
10020         ;;
10021     esac
10022     ;;
10023   vxworks*)
10024     # FIXME: insert proper C++ library support
10025     ld_shlibs_CXX=no
10026     ;;
10027   *)
10028     # FIXME: insert proper C++ library support
10029     ld_shlibs_CXX=no
10030     ;;
10031 esac
10032 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10033 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10034 test "$ld_shlibs_CXX" = no && can_build_shared=no
10035
10036 GCC_CXX="$GXX"
10037 LD_CXX="$LD"
10038
10039 ## CAVEAT EMPTOR:
10040 ## There is no encapsulation within the following macros, do not change
10041 ## the running order or otherwise move them around unless you know exactly
10042 ## what you are doing...
10043
10044 cat > conftest.$ac_ext <<EOF
10045 class Foo
10046 {
10047 public:
10048   Foo (void) { a = 0; }
10049 private:
10050   int a;
10051 };
10052 EOF
10053
10054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055   (eval $ac_compile) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); }; then
10059   # Parse the compiler output and extract the necessary
10060   # objects, libraries and library flags.
10061
10062   # Sentinel used to keep track of whether or not we are before
10063   # the conftest object file.
10064   pre_test_object_deps_done=no
10065
10066   # The `*' in the case matches for architectures that use `case' in
10067   # $output_verbose_cmd can trigger glob expansion during the loop
10068   # eval without this substitution.
10069   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10070
10071   for p in `eval $output_verbose_link_cmd`; do
10072     case $p in
10073
10074     -L* | -R* | -l*)
10075        # Some compilers place space between "-{L,R}" and the path.
10076        # Remove the space.
10077        if test $p = "-L" \
10078           || test $p = "-R"; then
10079          prev=$p
10080          continue
10081        else
10082          prev=
10083        fi
10084
10085        if test "$pre_test_object_deps_done" = no; then
10086          case $p in
10087          -L* | -R*)
10088            # Internal compiler library paths should come after those
10089            # provided the user.  The postdeps already come after the
10090            # user supplied libs so there is no need to process them.
10091            if test -z "$compiler_lib_search_path_CXX"; then
10092              compiler_lib_search_path_CXX="${prev}${p}"
10093            else
10094              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10095            fi
10096            ;;
10097          # The "-l" case would never come before the object being
10098          # linked, so don't bother handling this case.
10099          esac
10100        else
10101          if test -z "$postdeps_CXX"; then
10102            postdeps_CXX="${prev}${p}"
10103          else
10104            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10105          fi
10106        fi
10107        ;;
10108
10109     *.$objext)
10110        # This assumes that the test object file only shows up
10111        # once in the compiler output.
10112        if test "$p" = "conftest.$objext"; then
10113          pre_test_object_deps_done=yes
10114          continue
10115        fi
10116
10117        if test "$pre_test_object_deps_done" = no; then
10118          if test -z "$predep_objects_CXX"; then
10119            predep_objects_CXX="$p"
10120          else
10121            predep_objects_CXX="$predep_objects_CXX $p"
10122          fi
10123        else
10124          if test -z "$postdep_objects_CXX"; then
10125            postdep_objects_CXX="$p"
10126          else
10127            postdep_objects_CXX="$postdep_objects_CXX $p"
10128          fi
10129        fi
10130        ;;
10131
10132     *) ;; # Ignore the rest.
10133
10134     esac
10135   done
10136
10137   # Clean up.
10138   rm -f a.out a.exe
10139 else
10140   echo "libtool.m4: error: problem compiling CXX test program"
10141 fi
10142
10143 $rm -f confest.$objext
10144
10145 case " $postdeps_CXX " in
10146 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10147 esac
10148
10149 lt_prog_compiler_wl_CXX=
10150 lt_prog_compiler_pic_CXX=
10151 lt_prog_compiler_static_CXX=
10152
10153 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10154 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10155
10156   # C++ specific cases for pic, static, wl, etc.
10157   if test "$GXX" = yes; then
10158     lt_prog_compiler_wl_CXX='-Wl,'
10159     lt_prog_compiler_static_CXX='-static'
10160
10161     case $host_os in
10162     aix*)
10163       # All AIX code is PIC.
10164       if test "$host_cpu" = ia64; then
10165         # AIX 5 now supports IA64 processor
10166         lt_prog_compiler_static_CXX='-Bstatic'
10167       fi
10168       ;;
10169     amigaos*)
10170       # FIXME: we need at least 68020 code to build shared libraries, but
10171       # adding the `-m68020' flag to GCC prevents building anything better,
10172       # like `-m68040'.
10173       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10174       ;;
10175     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10176       # PIC is the default for these OSes.
10177       ;;
10178     mingw* | os2* | pw32*)
10179       # This hack is so that the source file can tell whether it is being
10180       # built for inclusion in a dll (and should export symbols for example).
10181       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10182       ;;
10183     darwin* | rhapsody*)
10184       # PIC is the default on this platform
10185       # Common symbols not allowed in MH_DYLIB files
10186       lt_prog_compiler_pic_CXX='-fno-common'
10187       ;;
10188     *djgpp*)
10189       # DJGPP does not support shared libraries at all
10190       lt_prog_compiler_pic_CXX=
10191       ;;
10192     sysv4*MP*)
10193       if test -d /usr/nec; then
10194         lt_prog_compiler_pic_CXX=-Kconform_pic
10195       fi
10196       ;;
10197     hpux*)
10198       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10199       # not for PA HP-UX.
10200       case "$host_cpu" in
10201       hppa*64*|ia64*)
10202         ;;
10203       *)
10204         lt_prog_compiler_pic_CXX='-fPIC'
10205         ;;
10206       esac
10207       ;;
10208     *)
10209       lt_prog_compiler_pic_CXX='-fPIC'
10210       ;;
10211     esac
10212   else
10213     case $host_os in
10214       aix4* | aix5*)
10215         # All AIX code is PIC.
10216         if test "$host_cpu" = ia64; then
10217           # AIX 5 now supports IA64 processor
10218           lt_prog_compiler_static_CXX='-Bstatic'
10219         else
10220           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10221         fi
10222         ;;
10223       chorus*)
10224         case $cc_basename in
10225         cxch68)
10226           # Green Hills C++ Compiler
10227           # _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"
10228           ;;
10229         esac
10230         ;;
10231       dgux*)
10232         case $cc_basename in
10233           ec++)
10234             lt_prog_compiler_pic_CXX='-KPIC'
10235             ;;
10236           ghcx)
10237             # Green Hills C++ Compiler
10238             lt_prog_compiler_pic_CXX='-pic'
10239             ;;
10240           *)
10241             ;;
10242         esac
10243         ;;
10244       freebsd*)
10245         # FreeBSD uses GNU C++
10246         ;;
10247       hpux9* | hpux10* | hpux11*)
10248         case $cc_basename in
10249           CC)
10250             lt_prog_compiler_wl_CXX='-Wl,'
10251             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10252             if test "$host_cpu" != ia64; then
10253               lt_prog_compiler_pic_CXX='+Z'
10254             fi
10255             ;;
10256           aCC)
10257             lt_prog_compiler_wl_CXX='-Wl,'
10258             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10259             case "$host_cpu" in
10260             hppa*64*|ia64*)
10261               # +Z the default
10262               ;;
10263             *)
10264               lt_prog_compiler_pic_CXX='+Z'
10265               ;;
10266             esac
10267             ;;
10268           *)
10269             ;;
10270         esac
10271         ;;
10272       irix5* | irix6* | nonstopux*)
10273         case $cc_basename in
10274           CC)
10275             lt_prog_compiler_wl_CXX='-Wl,'
10276             lt_prog_compiler_static_CXX='-non_shared'
10277             # CC pic flag -KPIC is the default.
10278             ;;
10279           *)
10280             ;;
10281         esac
10282         ;;
10283       linux*)
10284         case $cc_basename in
10285           KCC)
10286             # KAI C++ Compiler
10287             lt_prog_compiler_wl_CXX='--backend -Wl,'
10288             lt_prog_compiler_pic_CXX='-fPIC'
10289             ;;
10290           icpc)
10291             # Intel C++
10292             lt_prog_compiler_wl_CXX='-Wl,'
10293             lt_prog_compiler_pic_CXX='-KPIC'
10294             lt_prog_compiler_static_CXX='-static'
10295             ;;
10296           cxx)
10297             # Compaq C++
10298             # Make sure the PIC flag is empty.  It appears that all Alpha
10299             # Linux and Compaq Tru64 Unix objects are PIC.
10300             lt_prog_compiler_pic_CXX=
10301             lt_prog_compiler_static_CXX='-non_shared'
10302             ;;
10303           *)
10304             ;;
10305         esac
10306         ;;
10307       lynxos*)
10308         ;;
10309       m88k*)
10310         ;;
10311       mvs*)
10312         case $cc_basename in
10313           cxx)
10314             lt_prog_compiler_pic_CXX='-W c,exportall'
10315             ;;
10316           *)
10317             ;;
10318         esac
10319         ;;
10320       netbsd*)
10321         ;;
10322       osf3* | osf4* | osf5*)
10323         case $cc_basename in
10324           KCC)
10325             lt_prog_compiler_wl_CXX='--backend -Wl,'
10326             ;;
10327           RCC)
10328             # Rational C++ 2.4.1
10329             lt_prog_compiler_pic_CXX='-pic'
10330             ;;
10331           cxx)
10332             # Digital/Compaq C++
10333             lt_prog_compiler_wl_CXX='-Wl,'
10334             # Make sure the PIC flag is empty.  It appears that all Alpha
10335             # Linux and Compaq Tru64 Unix objects are PIC.
10336             lt_prog_compiler_pic_CXX=
10337             lt_prog_compiler_static_CXX='-non_shared'
10338             ;;
10339           *)
10340             ;;
10341         esac
10342         ;;
10343       psos*)
10344         ;;
10345       sco*)
10346         case $cc_basename in
10347           CC)
10348             lt_prog_compiler_pic_CXX='-fPIC'
10349             ;;
10350           *)
10351             ;;
10352         esac
10353         ;;
10354       solaris*)
10355         case $cc_basename in
10356           CC)
10357             # Sun C++ 4.2, 5.x and Centerline C++
10358             lt_prog_compiler_pic_CXX='-KPIC'
10359             lt_prog_compiler_static_CXX='-Bstatic'
10360             lt_prog_compiler_wl_CXX='-Qoption ld '
10361             ;;
10362           gcx)
10363             # Green Hills C++ Compiler
10364             lt_prog_compiler_pic_CXX='-PIC'
10365             ;;
10366           *)
10367             ;;
10368         esac
10369         ;;
10370       sunos4*)
10371         case $cc_basename in
10372           CC)
10373             # Sun C++ 4.x
10374             lt_prog_compiler_pic_CXX='-pic'
10375             lt_prog_compiler_static_CXX='-Bstatic'
10376             ;;
10377           lcc)
10378             # Lucid
10379             lt_prog_compiler_pic_CXX='-pic'
10380             ;;
10381           *)
10382             ;;
10383         esac
10384         ;;
10385       tandem*)
10386         case $cc_basename in
10387           NCC)
10388             # NonStop-UX NCC 3.20
10389             lt_prog_compiler_pic_CXX='-KPIC'
10390             ;;
10391           *)
10392             ;;
10393         esac
10394         ;;
10395       unixware*)
10396         ;;
10397       vxworks*)
10398         ;;
10399       *)
10400         lt_prog_compiler_can_build_shared_CXX=no
10401         ;;
10402     esac
10403   fi
10404
10405 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10406 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10407
10408 #
10409 # Check to make sure the PIC flag actually works.
10410 #
10411 if test -n "$lt_prog_compiler_pic_CXX"; then
10412   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10413 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10414 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10415   echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417   lt_prog_compiler_pic_works_CXX=no
10418   ac_outfile=conftest.$ac_objext
10419    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10420    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10421    # Insert the option either (1) after the last *FLAGS variable, or
10422    # (2) before a word containing "conftest.", or (3) at the end.
10423    # Note that $ac_compile itself does not contain backslashes and begins
10424    # with a dollar sign (not a hyphen), so the echo should work correctly.
10425    # The option is referenced via a variable to avoid confusing sed.
10426    lt_compile=`echo "$ac_compile" | $SED \
10427    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10428    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10429    -e 's:$: $lt_compiler_flag:'`
10430    (eval echo "\"\$as_me:10430: $lt_compile\"" >&5)
10431    (eval "$lt_compile" 2>conftest.err)
10432    ac_status=$?
10433    cat conftest.err >&5
10434    echo "$as_me:10434: \$? = $ac_status" >&5
10435    if (exit $ac_status) && test -s "$ac_outfile"; then
10436      # The compiler can only warn and ignore the option if not recognized
10437      # So say no if there are warnings
10438      if test ! -s conftest.err; then
10439        lt_prog_compiler_pic_works_CXX=yes
10440      fi
10441    fi
10442    $rm conftest*
10443
10444 fi
10445 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10446 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10447
10448 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10449     case $lt_prog_compiler_pic_CXX in
10450      "" | " "*) ;;
10451      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10452      esac
10453 else
10454     lt_prog_compiler_pic_CXX=
10455      lt_prog_compiler_can_build_shared_CXX=no
10456 fi
10457
10458 fi
10459 case "$host_os" in
10460   # For platforms which do not support PIC, -DPIC is meaningless:
10461   *djgpp*)
10462     lt_prog_compiler_pic_CXX=
10463     ;;
10464   *)
10465     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10466     ;;
10467 esac
10468
10469 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10470 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10471 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10472   echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474   lt_cv_prog_compiler_c_o_CXX=no
10475    $rm -r conftest 2>/dev/null
10476    mkdir conftest
10477    cd conftest
10478    mkdir out
10479    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10480
10481    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10482    # that will create temporary files in the current directory regardless of
10483    # the output directory.  Thus, making CWD read-only will cause this test
10484    # to fail, enabling locking or at least warning the user not to do parallel
10485    # builds.
10486    chmod -w .
10487
10488    lt_compiler_flag="-o out/conftest2.$ac_objext"
10489    # Insert the option either (1) after the last *FLAGS variable, or
10490    # (2) before a word containing "conftest.", or (3) at the end.
10491    # Note that $ac_compile itself does not contain backslashes and begins
10492    # with a dollar sign (not a hyphen), so the echo should work correctly.
10493    lt_compile=`echo "$ac_compile" | $SED \
10494    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10495    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10496    -e 's:$: $lt_compiler_flag:'`
10497    (eval echo "\"\$as_me:10497: $lt_compile\"" >&5)
10498    (eval "$lt_compile" 2>out/conftest.err)
10499    ac_status=$?
10500    cat out/conftest.err >&5
10501    echo "$as_me:10501: \$? = $ac_status" >&5
10502    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10503    then
10504      # The compiler can only warn and ignore the option if not recognized
10505      # So say no if there are warnings
10506      if test ! -s out/conftest.err; then
10507        lt_cv_prog_compiler_c_o_CXX=yes
10508      fi
10509    fi
10510    chmod u+w .
10511    $rm conftest* out/*
10512    rmdir out
10513    cd ..
10514    rmdir conftest
10515    $rm conftest*
10516
10517 fi
10518 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10519 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10520
10521
10522 hard_links="nottested"
10523 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10524   # do not overwrite the value of need_locks provided by the user
10525   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10526 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10527   hard_links=yes
10528   $rm conftest*
10529   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10530   touch conftest.a
10531   ln conftest.a conftest.b 2>&5 || hard_links=no
10532   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10533   echo "$as_me:$LINENO: result: $hard_links" >&5
10534 echo "${ECHO_T}$hard_links" >&6
10535   if test "$hard_links" = no; then
10536     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10537 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10538     need_locks=warn
10539   fi
10540 else
10541   need_locks=no
10542 fi
10543
10544 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10545 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10546
10547   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10548   case $host_os in
10549   aix4* | aix5*)
10550     # If we're using GNU nm, then we don't want the "-C" option.
10551     # -C means demangle to AIX nm, but means don't demangle with GNU nm
10552     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10553       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'
10554     else
10555       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'
10556     fi
10557     ;;
10558   pw32*)
10559     export_symbols_cmds_CXX="$ltdll_cmds"
10560   ;;
10561   cygwin* | mingw*)
10562     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10563   ;;
10564   *)
10565     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10566   ;;
10567   esac
10568
10569 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10570 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10571 test "$ld_shlibs_CXX" = no && can_build_shared=no
10572
10573 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10574 if test "$GCC" = yes; then
10575   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10576 fi
10577
10578 #
10579 # Do we need to explicitly link libc?
10580 #
10581 case "x$archive_cmds_need_lc_CXX" in
10582 x|xyes)
10583   # Assume -lc should be added
10584   archive_cmds_need_lc_CXX=yes
10585
10586   if test "$enable_shared" = yes && test "$GCC" = yes; then
10587     case $archive_cmds_CXX in
10588     *'~'*)
10589       # FIXME: we may have to deal with multi-command sequences.
10590       ;;
10591     '$CC '*)
10592       # Test whether the compiler implicitly links with -lc since on some
10593       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10594       # to ld, don't add -lc before -lgcc.
10595       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10596 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10597       $rm conftest*
10598       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10599
10600       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601   (eval $ac_compile) 2>&5
10602   ac_status=$?
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); } 2>conftest.err; then
10605         soname=conftest
10606         lib=conftest
10607         libobjs=conftest.$ac_objext
10608         deplibs=
10609         wl=$lt_prog_compiler_wl_CXX
10610         compiler_flags=-v
10611         linker_flags=-v
10612         verstring=
10613         output_objdir=.
10614         libname=conftest
10615         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10616         allow_undefined_flag_CXX=
10617         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10618   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); }
10622         then
10623           archive_cmds_need_lc_CXX=no
10624         else
10625           archive_cmds_need_lc_CXX=yes
10626         fi
10627         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10628       else
10629         cat conftest.err 1>&5
10630       fi
10631       $rm conftest*
10632       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10633 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10634       ;;
10635     esac
10636   fi
10637   ;;
10638 esac
10639
10640 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10641 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10642 hardcode_action_CXX=
10643 if test -n "$hardcode_libdir_flag_spec_CXX" || \
10644    test -n "$runpath_var CXX" || \
10645    test "X$hardcode_automatic_CXX"="Xyes" ; then
10646
10647   # We can hardcode non-existant directories.
10648   if test "$hardcode_direct_CXX" != no &&
10649      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10650      # have to relink, otherwise we might link with an installed library
10651      # when we should be linking with a yet-to-be-installed one
10652      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10653      test "$hardcode_minus_L_CXX" != no; then
10654     # Linking always hardcodes the temporary library directory.
10655     hardcode_action_CXX=relink
10656   else
10657     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10658     hardcode_action_CXX=immediate
10659   fi
10660 else
10661   # We cannot hardcode anything, or else we can only hardcode existing
10662   # directories.
10663   hardcode_action_CXX=unsupported
10664 fi
10665 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10666 echo "${ECHO_T}$hardcode_action_CXX" >&6
10667
10668 if test "$hardcode_action_CXX" = relink; then
10669   # Fast installation is not supported
10670   enable_fast_install=no
10671 elif test "$shlibpath_overrides_runpath" = yes ||
10672      test "$enable_shared" = no; then
10673   # Fast installation is not necessary
10674   enable_fast_install=needless
10675 fi
10676
10677 striplib=
10678 old_striplib=
10679 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10680 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10681 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10682   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10683   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10684   echo "$as_me:$LINENO: result: yes" >&5
10685 echo "${ECHO_T}yes" >&6
10686 else
10687 # FIXME - insert some real tests, host_os isn't really good enough
10688   case $host_os in
10689    darwin*)
10690        if test -n "$STRIP" ; then
10691          striplib="$STRIP -x"
10692          echo "$as_me:$LINENO: result: yes" >&5
10693 echo "${ECHO_T}yes" >&6
10694        else
10695   echo "$as_me:$LINENO: result: no" >&5
10696 echo "${ECHO_T}no" >&6
10697 fi
10698        ;;
10699    *)
10700   echo "$as_me:$LINENO: result: no" >&5
10701 echo "${ECHO_T}no" >&6
10702     ;;
10703   esac
10704 fi
10705
10706 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10707 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10708 library_names_spec=
10709 libname_spec='lib$name'
10710 soname_spec=
10711 shrext=".so"
10712 postinstall_cmds=
10713 postuninstall_cmds=
10714 finish_cmds=
10715 finish_eval=
10716 shlibpath_var=
10717 shlibpath_overrides_runpath=unknown
10718 version_type=none
10719 dynamic_linker="$host_os ld.so"
10720 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10721 if test "$GCC" = yes; then
10722   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10723   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10724     # if the path contains ";" then we assume it to be the separator
10725     # otherwise default to the standard path separator (i.e. ":") - it is
10726     # assumed that no part of a normal pathname contains ";" but that should
10727     # okay in the real world where ";" in dirpaths is itself problematic.
10728     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10729   else
10730     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10731   fi
10732 else
10733   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10734 fi
10735 need_lib_prefix=unknown
10736 hardcode_into_libs=no
10737
10738 # when you set need_version to no, make sure it does not cause -set_version
10739 # flags to be left without arguments
10740 need_version=unknown
10741
10742 case $host_os in
10743 aix3*)
10744   version_type=linux
10745   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10746   shlibpath_var=LIBPATH
10747
10748   # AIX 3 has no versioning support, so we append a major version to the name.
10749   soname_spec='${libname}${release}${shared_ext}$major'
10750   ;;
10751
10752 aix4* | aix5*)
10753   version_type=linux
10754   need_lib_prefix=no
10755   need_version=no
10756   hardcode_into_libs=yes
10757   if test "$host_cpu" = ia64; then
10758     # AIX 5 supports IA64
10759     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10760     shlibpath_var=LD_LIBRARY_PATH
10761   else
10762     # With GCC up to 2.95.x, collect2 would create an import file
10763     # for dependence libraries.  The import file would start with
10764     # the line `#! .'.  This would cause the generated library to
10765     # depend on `.', always an invalid library.  This was fixed in
10766     # development snapshots of GCC prior to 3.0.
10767     case $host_os in
10768       aix4 | aix4.[01] | aix4.[01].*)
10769       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10770            echo ' yes '
10771            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10772         :
10773       else
10774         can_build_shared=no
10775       fi
10776       ;;
10777     esac
10778     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10779     # soname into executable. Probably we can add versioning support to
10780     # collect2, so additional links can be useful in future.
10781     if test "$aix_use_runtimelinking" = yes; then
10782       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10783       # instead of lib<name>.a to let people know that these are not
10784       # typical AIX shared libraries.
10785       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10786     else
10787       # We preserve .a as extension for shared libraries through AIX4.2
10788       # and later when we are not doing run time linking.
10789       library_names_spec='${libname}${release}.a $libname.a'
10790       soname_spec='${libname}${release}${shared_ext}$major'
10791     fi
10792     shlibpath_var=LIBPATH
10793   fi
10794   ;;
10795
10796 amigaos*)
10797   library_names_spec='$libname.ixlibrary $libname.a'
10798   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10799   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'
10800   ;;
10801
10802 beos*)
10803   library_names_spec='${libname}${shared_ext}'
10804   dynamic_linker="$host_os ld.so"
10805   shlibpath_var=LIBRARY_PATH
10806   ;;
10807
10808 bsdi4*)
10809   version_type=linux
10810   need_version=no
10811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812   soname_spec='${libname}${release}${shared_ext}$major'
10813   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10814   shlibpath_var=LD_LIBRARY_PATH
10815   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10816   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10817   # the default ld.so.conf also contains /usr/contrib/lib and
10818   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10819   # libtool to hard-code these into programs
10820   ;;
10821
10822 cygwin* | mingw* | pw32*)
10823   version_type=windows
10824   shrext=".dll"
10825   need_version=no
10826   need_lib_prefix=no
10827
10828   case $GCC,$host_os in
10829   yes,cygwin* | yes,mingw* | yes,pw32*)
10830     library_names_spec='$libname.dll.a'
10831     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10832     postinstall_cmds='base_file=`basename \${file}`~
10833       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10834       dldir=$destdir/`dirname \$dlpath`~
10835       test -d \$dldir || mkdir -p \$dldir~
10836       $install_prog $dir/$dlname \$dldir/$dlname'
10837     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10838       dlpath=$dir/\$dldll~
10839        $rm \$dlpath'
10840     shlibpath_overrides_runpath=yes
10841
10842     case $host_os in
10843     cygwin*)
10844       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10845       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10846       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10847       ;;
10848     mingw*)
10849       # MinGW DLLs use traditional 'lib' prefix
10850       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10851       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10852       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10853         # It is most probably a Windows format PATH printed by
10854         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10855         # path with ; separators, and with drive letters. We can handle the
10856         # drive letters (cygwin fileutils understands them), so leave them,
10857         # especially as we might pass files found there to a mingw objdump,
10858         # which wouldn't understand a cygwinified path. Ahh.
10859         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10860       else
10861         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10862       fi
10863       ;;
10864     pw32*)
10865       # pw32 DLLs use 'pw' prefix rather than 'lib'
10866       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10867       ;;
10868     esac
10869     ;;
10870
10871   *)
10872     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10873     ;;
10874   esac
10875   dynamic_linker='Win32 ld.exe'
10876   # FIXME: first we should search . and the directory the executable is in
10877   shlibpath_var=PATH
10878   ;;
10879
10880 darwin* | rhapsody*)
10881   dynamic_linker="$host_os dyld"
10882   version_type=darwin
10883   need_lib_prefix=no
10884   need_version=no
10885   # FIXME: Relying on posixy $() will cause problems for
10886   #        cross-compilation, but unfortunately the echo tests do not
10887   #        yet detect zsh echo's removal of \ escapes.
10888   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10889   soname_spec='${libname}${release}${major}$shared_ext'
10890   shlibpath_overrides_runpath=yes
10891   shlibpath_var=DYLD_LIBRARY_PATH
10892   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10893   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10894   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10895   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"`
10896   fi
10897   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10898   ;;
10899
10900 dgux*)
10901   version_type=linux
10902   need_lib_prefix=no
10903   need_version=no
10904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10905   soname_spec='${libname}${release}${shared_ext}$major'
10906   shlibpath_var=LD_LIBRARY_PATH
10907   ;;
10908
10909 freebsd1*)
10910   dynamic_linker=no
10911   ;;
10912
10913 freebsd*)
10914   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10915   version_type=freebsd-$objformat
10916   case $version_type in
10917     freebsd-elf*)
10918       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10919       need_version=no
10920       need_lib_prefix=no
10921       ;;
10922     freebsd-*)
10923       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10924       need_version=yes
10925       ;;
10926   esac
10927   shlibpath_var=LD_LIBRARY_PATH
10928   case $host_os in
10929   freebsd2*)
10930     shlibpath_overrides_runpath=yes
10931     ;;
10932   freebsd3.01* | freebsdelf3.01*)
10933     shlibpath_overrides_runpath=yes
10934     hardcode_into_libs=yes
10935     ;;
10936   *) # from 3.2 on
10937     shlibpath_overrides_runpath=no
10938     hardcode_into_libs=yes
10939     ;;
10940   esac
10941   ;;
10942
10943 gnu*)
10944   version_type=linux
10945   need_lib_prefix=no
10946   need_version=no
10947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10948   soname_spec='${libname}${release}${shared_ext}$major'
10949   shlibpath_var=LD_LIBRARY_PATH
10950   hardcode_into_libs=yes
10951   ;;
10952
10953 hpux9* | hpux10* | hpux11*)
10954   # Give a soname corresponding to the major version so that dld.sl refuses to
10955   # link against other versions.
10956   version_type=sunos
10957   need_lib_prefix=no
10958   need_version=no
10959   case "$host_cpu" in
10960   ia64*)
10961     shrext='.so'
10962     hardcode_into_libs=yes
10963     dynamic_linker="$host_os dld.so"
10964     shlibpath_var=LD_LIBRARY_PATH
10965     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10966     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967     soname_spec='${libname}${release}${shared_ext}$major'
10968     if test "X$HPUX_IA64_MODE" = X32; then
10969       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10970     else
10971       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10972     fi
10973     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10974     ;;
10975    hppa*64*)
10976      shrext='.sl'
10977      hardcode_into_libs=yes
10978      dynamic_linker="$host_os dld.sl"
10979      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10980      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10981      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982      soname_spec='${libname}${release}${shared_ext}$major'
10983      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10984      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10985      ;;
10986    *)
10987     shrext='.sl'
10988     dynamic_linker="$host_os dld.sl"
10989     shlibpath_var=SHLIB_PATH
10990     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992     soname_spec='${libname}${release}${shared_ext}$major'
10993     ;;
10994   esac
10995   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10996   postinstall_cmds='chmod 555 $lib'
10997   ;;
10998
10999 irix5* | irix6* | nonstopux*)
11000   case $host_os in
11001     nonstopux*) version_type=nonstopux ;;
11002     *)
11003         if test "$lt_cv_prog_gnu_ld" = yes; then
11004                 version_type=linux
11005         else
11006                 version_type=irix
11007         fi ;;
11008   esac
11009   need_lib_prefix=no
11010   need_version=no
11011   soname_spec='${libname}${release}${shared_ext}$major'
11012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11013   case $host_os in
11014   irix5* | nonstopux*)
11015     libsuff= shlibsuff=
11016     ;;
11017   *)
11018     case $LD in # libtool.m4 will add one of these switches to LD
11019     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11020       libsuff= shlibsuff= libmagic=32-bit;;
11021     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11022       libsuff=32 shlibsuff=N32 libmagic=N32;;
11023     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11024       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11025     *) libsuff= shlibsuff= libmagic=never-match;;
11026     esac
11027     ;;
11028   esac
11029   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11030   shlibpath_overrides_runpath=no
11031   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11032   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11033   hardcode_into_libs=yes
11034   ;;
11035
11036 # No shared lib support for Linux oldld, aout, or coff.
11037 linux*oldld* | linux*aout* | linux*coff*)
11038   dynamic_linker=no
11039   ;;
11040
11041 # This must be Linux ELF.
11042 linux*)
11043   version_type=linux
11044   need_lib_prefix=no
11045   need_version=no
11046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047   soname_spec='${libname}${release}${shared_ext}$major'
11048   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11049   shlibpath_var=LD_LIBRARY_PATH
11050   shlibpath_overrides_runpath=no
11051   # This implies no fast_install, which is unacceptable.
11052   # Some rework will be needed to allow for fast_install
11053   # before this can be enabled.
11054   hardcode_into_libs=yes
11055
11056   # We used to test for /lib/ld.so.1 and disable shared libraries on
11057   # powerpc, because MkLinux only supported shared libraries with the
11058   # GNU dynamic linker.  Since this was broken with cross compilers,
11059   # most powerpc-linux boxes support dynamic linking these days and
11060   # people can always --disable-shared, the test was removed, and we
11061   # assume the GNU/Linux dynamic linker is in use.
11062   dynamic_linker='GNU/Linux ld.so'
11063   ;;
11064
11065 netbsd*)
11066   version_type=sunos
11067   need_lib_prefix=no
11068   need_version=no
11069   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11071     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11072     dynamic_linker='NetBSD (a.out) ld.so'
11073   else
11074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11075     soname_spec='${libname}${release}${shared_ext}$major'
11076     dynamic_linker='NetBSD ld.elf_so'
11077   fi
11078   shlibpath_var=LD_LIBRARY_PATH
11079   shlibpath_overrides_runpath=yes
11080   hardcode_into_libs=yes
11081   ;;
11082
11083 newsos6)
11084   version_type=linux
11085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086   shlibpath_var=LD_LIBRARY_PATH
11087   shlibpath_overrides_runpath=yes
11088   ;;
11089
11090 nto-qnx)
11091   version_type=linux
11092   need_lib_prefix=no
11093   need_version=no
11094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11095   soname_spec='${libname}${release}${shared_ext}$major'
11096   shlibpath_var=LD_LIBRARY_PATH
11097   shlibpath_overrides_runpath=yes
11098   ;;
11099
11100 openbsd*)
11101   version_type=sunos
11102   need_lib_prefix=no
11103   need_version=no
11104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11105   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11106   shlibpath_var=LD_LIBRARY_PATH
11107   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11108     case $host_os in
11109       openbsd2.[89] | openbsd2.[89].*)
11110         shlibpath_overrides_runpath=no
11111         ;;
11112       *)
11113         shlibpath_overrides_runpath=yes
11114         ;;
11115       esac
11116   else
11117     shlibpath_overrides_runpath=yes
11118   fi
11119   ;;
11120
11121 os2*)
11122   libname_spec='$name'
11123   shrext=".dll"
11124   need_lib_prefix=no
11125   library_names_spec='$libname${shared_ext} $libname.a'
11126   dynamic_linker='OS/2 ld.exe'
11127   shlibpath_var=LIBPATH
11128   ;;
11129
11130 osf3* | osf4* | osf5*)
11131   version_type=osf
11132   need_lib_prefix=no
11133   need_version=no
11134   soname_spec='${libname}${release}${shared_ext}$major'
11135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136   shlibpath_var=LD_LIBRARY_PATH
11137   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11138   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11139   ;;
11140
11141 sco3.2v5*)
11142   version_type=osf
11143   soname_spec='${libname}${release}${shared_ext}$major'
11144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11145   shlibpath_var=LD_LIBRARY_PATH
11146   ;;
11147
11148 solaris*)
11149   version_type=linux
11150   need_lib_prefix=no
11151   need_version=no
11152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153   soname_spec='${libname}${release}${shared_ext}$major'
11154   shlibpath_var=LD_LIBRARY_PATH
11155   shlibpath_overrides_runpath=yes
11156   hardcode_into_libs=yes
11157   # ldd complains unless libraries are executable
11158   postinstall_cmds='chmod +x $lib'
11159   ;;
11160
11161 sunos4*)
11162   version_type=sunos
11163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11164   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11165   shlibpath_var=LD_LIBRARY_PATH
11166   shlibpath_overrides_runpath=yes
11167   if test "$with_gnu_ld" = yes; then
11168     need_lib_prefix=no
11169   fi
11170   need_version=yes
11171   ;;
11172
11173 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11174   version_type=linux
11175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176   soname_spec='${libname}${release}${shared_ext}$major'
11177   shlibpath_var=LD_LIBRARY_PATH
11178   case $host_vendor in
11179     sni)
11180       shlibpath_overrides_runpath=no
11181       need_lib_prefix=no
11182       export_dynamic_flag_spec='${wl}-Blargedynsym'
11183       runpath_var=LD_RUN_PATH
11184       ;;
11185     siemens)
11186       need_lib_prefix=no
11187       ;;
11188     motorola)
11189       need_lib_prefix=no
11190       need_version=no
11191       shlibpath_overrides_runpath=no
11192       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11193       ;;
11194   esac
11195   ;;
11196
11197 sysv4*MP*)
11198   if test -d /usr/nec ;then
11199     version_type=linux
11200     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11201     soname_spec='$libname${shared_ext}.$major'
11202     shlibpath_var=LD_LIBRARY_PATH
11203   fi
11204   ;;
11205
11206 uts4*)
11207   version_type=linux
11208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11209   soname_spec='${libname}${release}${shared_ext}$major'
11210   shlibpath_var=LD_LIBRARY_PATH
11211   ;;
11212
11213 *)
11214   dynamic_linker=no
11215   ;;
11216 esac
11217 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11218 echo "${ECHO_T}$dynamic_linker" >&6
11219 test "$dynamic_linker" = no && can_build_shared=no
11220
11221 if test "x$enable_dlopen" != xyes; then
11222   enable_dlopen=unknown
11223   enable_dlopen_self=unknown
11224   enable_dlopen_self_static=unknown
11225 else
11226   lt_cv_dlopen=no
11227   lt_cv_dlopen_libs=
11228
11229   case $host_os in
11230   beos*)
11231     lt_cv_dlopen="load_add_on"
11232     lt_cv_dlopen_libs=
11233     lt_cv_dlopen_self=yes
11234     ;;
11235
11236   mingw* | pw32*)
11237     lt_cv_dlopen="LoadLibrary"
11238     lt_cv_dlopen_libs=
11239    ;;
11240
11241   cygwin*)
11242     lt_cv_dlopen="dlopen"
11243     lt_cv_dlopen_libs=
11244    ;;
11245
11246   darwin*)
11247   # if libdl is installed we need to link against it
11248     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11249 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11251   echo $ECHO_N "(cached) $ECHO_C" >&6
11252 else
11253   ac_check_lib_save_LIBS=$LIBS
11254 LIBS="-ldl  $LIBS"
11255 cat >conftest.$ac_ext <<_ACEOF
11256 #line $LINENO "configure"
11257 #include "confdefs.h"
11258
11259 /* Override any gcc2 internal prototype to avoid an error.  */
11260 #ifdef __cplusplus
11261 extern "C"
11262 #endif
11263 /* We use char because int might match the return type of a gcc2
11264    builtin and then its argument prototype would still apply.  */
11265 char dlopen ();
11266 #ifdef F77_DUMMY_MAIN
11267 #  ifdef __cplusplus
11268      extern "C"
11269 #  endif
11270    int F77_DUMMY_MAIN() { return 1; }
11271 #endif
11272 int
11273 main ()
11274 {
11275 dlopen ();
11276   ;
11277   return 0;
11278 }
11279 _ACEOF
11280 rm -f conftest.$ac_objext conftest$ac_exeext
11281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11282   (eval $ac_link) 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); } &&
11286          { ac_try='test -s conftest$ac_exeext'
11287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288   (eval $ac_try) 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; }; then
11292   ac_cv_lib_dl_dlopen=yes
11293 else
11294   echo "$as_me: failed program was:" >&5
11295 cat conftest.$ac_ext >&5
11296 ac_cv_lib_dl_dlopen=no
11297 fi
11298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11299 LIBS=$ac_check_lib_save_LIBS
11300 fi
11301 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11302 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11303 if test $ac_cv_lib_dl_dlopen = yes; then
11304   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11305 else
11306
11307     lt_cv_dlopen="dyld"
11308     lt_cv_dlopen_libs=
11309     lt_cv_dlopen_self=yes
11310
11311 fi
11312
11313    ;;
11314
11315   *)
11316     echo "$as_me:$LINENO: checking for shl_load" >&5
11317 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11318 if test "${ac_cv_func_shl_load+set}" = set; then
11319   echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321   cat >conftest.$ac_ext <<_ACEOF
11322 #line $LINENO "configure"
11323 #include "confdefs.h"
11324 /* System header to define __stub macros and hopefully few prototypes,
11325     which can conflict with char shl_load (); below.  */
11326 #include <assert.h>
11327 /* Override any gcc2 internal prototype to avoid an error.  */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 /* We use char because int might match the return type of a gcc2
11332    builtin and then its argument prototype would still apply.  */
11333 char shl_load ();
11334 char (*f) ();
11335
11336 #ifdef F77_DUMMY_MAIN
11337 #  ifdef __cplusplus
11338      extern "C"
11339 #  endif
11340    int F77_DUMMY_MAIN() { return 1; }
11341 #endif
11342 int
11343 main ()
11344 {
11345 /* The GNU C library defines this for functions which it implements
11346     to always fail with ENOSYS.  Some functions are actually named
11347     something starting with __ and the normal name is an alias.  */
11348 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11349 choke me
11350 #else
11351 f = shl_load;
11352 #endif
11353
11354   ;
11355   return 0;
11356 }
11357 _ACEOF
11358 rm -f conftest.$ac_objext conftest$ac_exeext
11359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11360   (eval $ac_link) 2>&5
11361   ac_status=$?
11362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363   (exit $ac_status); } &&
11364          { ac_try='test -s conftest$ac_exeext'
11365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366   (eval $ac_try) 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); }; }; then
11370   ac_cv_func_shl_load=yes
11371 else
11372   echo "$as_me: failed program was:" >&5
11373 cat conftest.$ac_ext >&5
11374 ac_cv_func_shl_load=no
11375 fi
11376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11377 fi
11378 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11379 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11380 if test $ac_cv_func_shl_load = yes; then
11381   lt_cv_dlopen="shl_load"
11382 else
11383   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11384 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11385 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   ac_check_lib_save_LIBS=$LIBS
11389 LIBS="-ldld  $LIBS"
11390 cat >conftest.$ac_ext <<_ACEOF
11391 #line $LINENO "configure"
11392 #include "confdefs.h"
11393
11394 /* Override any gcc2 internal prototype to avoid an error.  */
11395 #ifdef __cplusplus
11396 extern "C"
11397 #endif
11398 /* We use char because int might match the return type of a gcc2
11399    builtin and then its argument prototype would still apply.  */
11400 char shl_load ();
11401 #ifdef F77_DUMMY_MAIN
11402 #  ifdef __cplusplus
11403      extern "C"
11404 #  endif
11405    int F77_DUMMY_MAIN() { return 1; }
11406 #endif
11407 int
11408 main ()
11409 {
11410 shl_load ();
11411   ;
11412   return 0;
11413 }
11414 _ACEOF
11415 rm -f conftest.$ac_objext conftest$ac_exeext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11417   (eval $ac_link) 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); } &&
11421          { ac_try='test -s conftest$ac_exeext'
11422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423   (eval $ac_try) 2>&5
11424   ac_status=$?
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); }; }; then
11427   ac_cv_lib_dld_shl_load=yes
11428 else
11429   echo "$as_me: failed program was:" >&5
11430 cat conftest.$ac_ext >&5
11431 ac_cv_lib_dld_shl_load=no
11432 fi
11433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11434 LIBS=$ac_check_lib_save_LIBS
11435 fi
11436 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11437 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11438 if test $ac_cv_lib_dld_shl_load = yes; then
11439   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11440 else
11441   echo "$as_me:$LINENO: checking for dlopen" >&5
11442 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11443 if test "${ac_cv_func_dlopen+set}" = set; then
11444   echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446   cat >conftest.$ac_ext <<_ACEOF
11447 #line $LINENO "configure"
11448 #include "confdefs.h"
11449 /* System header to define __stub macros and hopefully few prototypes,
11450     which can conflict with char dlopen (); below.  */
11451 #include <assert.h>
11452 /* Override any gcc2 internal prototype to avoid an error.  */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 /* We use char because int might match the return type of a gcc2
11457    builtin and then its argument prototype would still apply.  */
11458 char dlopen ();
11459 char (*f) ();
11460
11461 #ifdef F77_DUMMY_MAIN
11462 #  ifdef __cplusplus
11463      extern "C"
11464 #  endif
11465    int F77_DUMMY_MAIN() { return 1; }
11466 #endif
11467 int
11468 main ()
11469 {
11470 /* The GNU C library defines this for functions which it implements
11471     to always fail with ENOSYS.  Some functions are actually named
11472     something starting with __ and the normal name is an alias.  */
11473 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11474 choke me
11475 #else
11476 f = dlopen;
11477 #endif
11478
11479   ;
11480   return 0;
11481 }
11482 _ACEOF
11483 rm -f conftest.$ac_objext conftest$ac_exeext
11484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11485   (eval $ac_link) 2>&5
11486   ac_status=$?
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); } &&
11489          { ac_try='test -s conftest$ac_exeext'
11490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11491   (eval $ac_try) 2>&5
11492   ac_status=$?
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); }; }; then
11495   ac_cv_func_dlopen=yes
11496 else
11497   echo "$as_me: failed program was:" >&5
11498 cat conftest.$ac_ext >&5
11499 ac_cv_func_dlopen=no
11500 fi
11501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11502 fi
11503 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11504 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11505 if test $ac_cv_func_dlopen = yes; then
11506   lt_cv_dlopen="dlopen"
11507 else
11508   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11509 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11510 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11511   echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513   ac_check_lib_save_LIBS=$LIBS
11514 LIBS="-ldl  $LIBS"
11515 cat >conftest.$ac_ext <<_ACEOF
11516 #line $LINENO "configure"
11517 #include "confdefs.h"
11518
11519 /* Override any gcc2 internal prototype to avoid an error.  */
11520 #ifdef __cplusplus
11521 extern "C"
11522 #endif
11523 /* We use char because int might match the return type of a gcc2
11524    builtin and then its argument prototype would still apply.  */
11525 char dlopen ();
11526 #ifdef F77_DUMMY_MAIN
11527 #  ifdef __cplusplus
11528      extern "C"
11529 #  endif
11530    int F77_DUMMY_MAIN() { return 1; }
11531 #endif
11532 int
11533 main ()
11534 {
11535 dlopen ();
11536   ;
11537   return 0;
11538 }
11539 _ACEOF
11540 rm -f conftest.$ac_objext conftest$ac_exeext
11541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11542   (eval $ac_link) 2>&5
11543   ac_status=$?
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); } &&
11546          { ac_try='test -s conftest$ac_exeext'
11547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548   (eval $ac_try) 2>&5
11549   ac_status=$?
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); }; }; then
11552   ac_cv_lib_dl_dlopen=yes
11553 else
11554   echo "$as_me: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11556 ac_cv_lib_dl_dlopen=no
11557 fi
11558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11559 LIBS=$ac_check_lib_save_LIBS
11560 fi
11561 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11562 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11563 if test $ac_cv_lib_dl_dlopen = yes; then
11564   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11565 else
11566   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11567 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11568 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11569   echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571   ac_check_lib_save_LIBS=$LIBS
11572 LIBS="-lsvld  $LIBS"
11573 cat >conftest.$ac_ext <<_ACEOF
11574 #line $LINENO "configure"
11575 #include "confdefs.h"
11576
11577 /* Override any gcc2 internal prototype to avoid an error.  */
11578 #ifdef __cplusplus
11579 extern "C"
11580 #endif
11581 /* We use char because int might match the return type of a gcc2
11582    builtin and then its argument prototype would still apply.  */
11583 char dlopen ();
11584 #ifdef F77_DUMMY_MAIN
11585 #  ifdef __cplusplus
11586      extern "C"
11587 #  endif
11588    int F77_DUMMY_MAIN() { return 1; }
11589 #endif
11590 int
11591 main ()
11592 {
11593 dlopen ();
11594   ;
11595   return 0;
11596 }
11597 _ACEOF
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600   (eval $ac_link) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); } &&
11604          { ac_try='test -s conftest$ac_exeext'
11605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606   (eval $ac_try) 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); }; }; then
11610   ac_cv_lib_svld_dlopen=yes
11611 else
11612   echo "$as_me: failed program was:" >&5
11613 cat conftest.$ac_ext >&5
11614 ac_cv_lib_svld_dlopen=no
11615 fi
11616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11617 LIBS=$ac_check_lib_save_LIBS
11618 fi
11619 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11620 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11621 if test $ac_cv_lib_svld_dlopen = yes; then
11622   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11623 else
11624   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11625 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11626 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11627   echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629   ac_check_lib_save_LIBS=$LIBS
11630 LIBS="-ldld  $LIBS"
11631 cat >conftest.$ac_ext <<_ACEOF
11632 #line $LINENO "configure"
11633 #include "confdefs.h"
11634
11635 /* Override any gcc2 internal prototype to avoid an error.  */
11636 #ifdef __cplusplus
11637 extern "C"
11638 #endif
11639 /* We use char because int might match the return type of a gcc2
11640    builtin and then its argument prototype would still apply.  */
11641 char dld_link ();
11642 #ifdef F77_DUMMY_MAIN
11643 #  ifdef __cplusplus
11644      extern "C"
11645 #  endif
11646    int F77_DUMMY_MAIN() { return 1; }
11647 #endif
11648 int
11649 main ()
11650 {
11651 dld_link ();
11652   ;
11653   return 0;
11654 }
11655 _ACEOF
11656 rm -f conftest.$ac_objext conftest$ac_exeext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658   (eval $ac_link) 2>&5
11659   ac_status=$?
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); } &&
11662          { ac_try='test -s conftest$ac_exeext'
11663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664   (eval $ac_try) 2>&5
11665   ac_status=$?
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); }; }; then
11668   ac_cv_lib_dld_dld_link=yes
11669 else
11670   echo "$as_me: failed program was:" >&5
11671 cat conftest.$ac_ext >&5
11672 ac_cv_lib_dld_dld_link=no
11673 fi
11674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11675 LIBS=$ac_check_lib_save_LIBS
11676 fi
11677 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11678 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11679 if test $ac_cv_lib_dld_dld_link = yes; then
11680   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11681 fi
11682
11683
11684 fi
11685
11686
11687 fi
11688
11689
11690 fi
11691
11692
11693 fi
11694
11695
11696 fi
11697
11698     ;;
11699   esac
11700
11701   if test "x$lt_cv_dlopen" != xno; then
11702     enable_dlopen=yes
11703   else
11704     enable_dlopen=no
11705   fi
11706
11707   case $lt_cv_dlopen in
11708   dlopen)
11709     save_CPPFLAGS="$CPPFLAGS"
11710     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11711
11712     save_LDFLAGS="$LDFLAGS"
11713     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11714
11715     save_LIBS="$LIBS"
11716     LIBS="$lt_cv_dlopen_libs $LIBS"
11717
11718     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11719 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11720 if test "${lt_cv_dlopen_self+set}" = set; then
11721   echo $ECHO_N "(cached) $ECHO_C" >&6
11722 else
11723           if test "$cross_compiling" = yes; then :
11724   lt_cv_dlopen_self=cross
11725 else
11726   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11727   lt_status=$lt_dlunknown
11728   cat > conftest.$ac_ext <<EOF
11729 #line 11729 "configure"
11730 #include "confdefs.h"
11731
11732 #if HAVE_DLFCN_H
11733 #include <dlfcn.h>
11734 #endif
11735
11736 #include <stdio.h>
11737
11738 #ifdef RTLD_GLOBAL
11739 #  define LT_DLGLOBAL           RTLD_GLOBAL
11740 #else
11741 #  ifdef DL_GLOBAL
11742 #    define LT_DLGLOBAL         DL_GLOBAL
11743 #  else
11744 #    define LT_DLGLOBAL         0
11745 #  endif
11746 #endif
11747
11748 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11749    find out it does not work in some platform. */
11750 #ifndef LT_DLLAZY_OR_NOW
11751 #  ifdef RTLD_LAZY
11752 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11753 #  else
11754 #    ifdef DL_LAZY
11755 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11756 #    else
11757 #      ifdef RTLD_NOW
11758 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11759 #      else
11760 #        ifdef DL_NOW
11761 #          define LT_DLLAZY_OR_NOW      DL_NOW
11762 #        else
11763 #          define LT_DLLAZY_OR_NOW      0
11764 #        endif
11765 #      endif
11766 #    endif
11767 #  endif
11768 #endif
11769
11770 #ifdef __cplusplus
11771 extern "C" void exit (int);
11772 #endif
11773
11774 void fnord() { int i=42;}
11775 int main ()
11776 {
11777   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11778   int status = $lt_dlunknown;
11779
11780   if (self)
11781     {
11782       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11783       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11784       /* dlclose (self); */
11785     }
11786
11787     exit (status);
11788 }
11789 EOF
11790   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11791   (eval $ac_link) 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11795     (./conftest; exit; ) 2>/dev/null
11796     lt_status=$?
11797     case x$lt_status in
11798       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11799       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11800       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11801     esac
11802   else :
11803     # compilation failed
11804     lt_cv_dlopen_self=no
11805   fi
11806 fi
11807 rm -fr conftest*
11808
11809
11810 fi
11811 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11812 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11813
11814     if test "x$lt_cv_dlopen_self" = xyes; then
11815       LDFLAGS="$LDFLAGS $link_static_flag"
11816       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11817 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11818 if test "${lt_cv_dlopen_self_static+set}" = set; then
11819   echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11821           if test "$cross_compiling" = yes; then :
11822   lt_cv_dlopen_self_static=cross
11823 else
11824   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11825   lt_status=$lt_dlunknown
11826   cat > conftest.$ac_ext <<EOF
11827 #line 11827 "configure"
11828 #include "confdefs.h"
11829
11830 #if HAVE_DLFCN_H
11831 #include <dlfcn.h>
11832 #endif
11833
11834 #include <stdio.h>
11835
11836 #ifdef RTLD_GLOBAL
11837 #  define LT_DLGLOBAL           RTLD_GLOBAL
11838 #else
11839 #  ifdef DL_GLOBAL
11840 #    define LT_DLGLOBAL         DL_GLOBAL
11841 #  else
11842 #    define LT_DLGLOBAL         0
11843 #  endif
11844 #endif
11845
11846 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11847    find out it does not work in some platform. */
11848 #ifndef LT_DLLAZY_OR_NOW
11849 #  ifdef RTLD_LAZY
11850 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11851 #  else
11852 #    ifdef DL_LAZY
11853 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11854 #    else
11855 #      ifdef RTLD_NOW
11856 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11857 #      else
11858 #        ifdef DL_NOW
11859 #          define LT_DLLAZY_OR_NOW      DL_NOW
11860 #        else
11861 #          define LT_DLLAZY_OR_NOW      0
11862 #        endif
11863 #      endif
11864 #    endif
11865 #  endif
11866 #endif
11867
11868 #ifdef __cplusplus
11869 extern "C" void exit (int);
11870 #endif
11871
11872 void fnord() { int i=42;}
11873 int main ()
11874 {
11875   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11876   int status = $lt_dlunknown;
11877
11878   if (self)
11879     {
11880       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11881       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11882       /* dlclose (self); */
11883     }
11884
11885     exit (status);
11886 }
11887 EOF
11888   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11889   (eval $ac_link) 2>&5
11890   ac_status=$?
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11893     (./conftest; exit; ) 2>/dev/null
11894     lt_status=$?
11895     case x$lt_status in
11896       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11897       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11898       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11899     esac
11900   else :
11901     # compilation failed
11902     lt_cv_dlopen_self_static=no
11903   fi
11904 fi
11905 rm -fr conftest*
11906
11907
11908 fi
11909 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11910 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11911     fi
11912
11913     CPPFLAGS="$save_CPPFLAGS"
11914     LDFLAGS="$save_LDFLAGS"
11915     LIBS="$save_LIBS"
11916     ;;
11917   esac
11918
11919   case $lt_cv_dlopen_self in
11920   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11921   *) enable_dlopen_self=unknown ;;
11922   esac
11923
11924   case $lt_cv_dlopen_self_static in
11925   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11926   *) enable_dlopen_self_static=unknown ;;
11927   esac
11928 fi
11929
11930
11931 # The else clause should only fire when bootstrapping the
11932 # libtool distribution, otherwise you forgot to ship ltmain.sh
11933 # with your package, and you will get complaints that there are
11934 # no rules to generate ltmain.sh.
11935 if test -f "$ltmain"; then
11936   # See if we are running on zsh, and set the options which allow our commands through
11937   # without removal of \ escapes.
11938   if test -n "${ZSH_VERSION+set}" ; then
11939     setopt NO_GLOB_SUBST
11940   fi
11941   # Now quote all the things that may contain metacharacters while being
11942   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11943   # variables and quote the copies for generation of the libtool script.
11944   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
11945     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11946     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11947     deplibs_check_method reload_flag reload_cmds need_locks \
11948     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11949     lt_cv_sys_global_symbol_to_c_name_address \
11950     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11951     old_postinstall_cmds old_postuninstall_cmds \
11952     compiler_CXX \
11953     CC_CXX \
11954     LD_CXX \
11955     lt_prog_compiler_wl_CXX \
11956     lt_prog_compiler_pic_CXX \
11957     lt_prog_compiler_static_CXX \
11958     lt_prog_compiler_no_builtin_flag_CXX \
11959     export_dynamic_flag_spec_CXX \
11960     thread_safe_flag_spec_CXX \
11961     whole_archive_flag_spec_CXX \
11962     enable_shared_with_static_runtimes_CXX \
11963     old_archive_cmds_CXX \
11964     old_archive_from_new_cmds_CXX \
11965     predep_objects_CXX \
11966     postdep_objects_CXX \
11967     predeps_CXX \
11968     postdeps_CXX \
11969     compiler_lib_search_path_CXX \
11970     archive_cmds_CXX \
11971     archive_expsym_cmds_CXX \
11972     postinstall_cmds_CXX \
11973     postuninstall_cmds_CXX \
11974     old_archive_from_expsyms_cmds_CXX \
11975     allow_undefined_flag_CXX \
11976     no_undefined_flag_CXX \
11977     export_symbols_cmds_CXX \
11978     hardcode_libdir_flag_spec_CXX \
11979     hardcode_libdir_flag_spec_ld_CXX \
11980     hardcode_libdir_separator_CXX \
11981     hardcode_automatic_CXX \
11982     module_cmds_CXX \
11983     module_expsym_cmds_CXX \
11984     lt_cv_prog_compiler_c_o_CXX \
11985     exclude_expsyms_CXX \
11986     include_expsyms_CXX; do
11987
11988     case $var in
11989     old_archive_cmds_CXX | \
11990     old_archive_from_new_cmds_CXX | \
11991     archive_cmds_CXX | \
11992     archive_expsym_cmds_CXX | \
11993     module_cmds_CXX | \
11994     module_expsym_cmds_CXX | \
11995     old_archive_from_expsyms_cmds_CXX | \
11996     export_symbols_cmds_CXX | \
11997     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11998     postinstall_cmds | postuninstall_cmds | \
11999     old_postinstall_cmds | old_postuninstall_cmds | \
12000     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12001       # Double-quote double-evaled strings.
12002       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12003       ;;
12004     *)
12005       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12006       ;;
12007     esac
12008   done
12009
12010   case $lt_echo in
12011   *'\$0 --fallback-echo"')
12012     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12013     ;;
12014   esac
12015
12016 cfgfile="$ofile"
12017
12018   cat <<__EOF__ >> "$cfgfile"
12019 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12020
12021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12022
12023 # Shell to use when invoking shell scripts.
12024 SHELL=$lt_SHELL
12025
12026 # Whether or not to build shared libraries.
12027 build_libtool_libs=$enable_shared
12028
12029 # Whether or not to build static libraries.
12030 build_old_libs=$enable_static
12031
12032 # Whether or not to add -lc for building shared libraries.
12033 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12034
12035 # Whether or not to disallow shared libs when runtime libs are static
12036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12037
12038 # Whether or not to optimize for fast installation.
12039 fast_install=$enable_fast_install
12040
12041 # The host system.
12042 host_alias=$host_alias
12043 host=$host
12044
12045 # An echo program that does not interpret backslashes.
12046 echo=$lt_echo
12047
12048 # The archiver.
12049 AR=$lt_AR
12050 AR_FLAGS=$lt_AR_FLAGS
12051
12052 # A C compiler.
12053 LTCC=$lt_LTCC
12054
12055 # A language-specific compiler.
12056 CC=$lt_compiler_CXX
12057
12058 # Is the compiler the GNU C compiler?
12059 with_gcc=$GCC_CXX
12060
12061 # An ERE matcher.
12062 EGREP=$lt_EGREP
12063
12064 # The linker used to build libraries.
12065 LD=$lt_LD_CXX
12066
12067 # Whether we need hard or soft links.
12068 LN_S=$lt_LN_S
12069
12070 # A BSD-compatible nm program.
12071 NM=$lt_NM
12072
12073 # A symbol stripping program
12074 STRIP=$STRIP
12075
12076 # Used to examine libraries when file_magic_cmd begins "file"
12077 MAGIC_CMD=$MAGIC_CMD
12078
12079 # Used on cygwin: DLL creation program.
12080 DLLTOOL="$DLLTOOL"
12081
12082 # Used on cygwin: object dumper.
12083 OBJDUMP="$OBJDUMP"
12084
12085 # Used on cygwin: assembler.
12086 AS="$AS"
12087
12088 # The name of the directory that contains temporary libtool files.
12089 objdir=$objdir
12090
12091 # How to create reloadable object files.
12092 reload_flag=$lt_reload_flag
12093 reload_cmds=$lt_reload_cmds
12094
12095 # How to pass a linker flag through the compiler.
12096 wl=$lt_lt_prog_compiler_wl_CXX
12097
12098 # Object file suffix (normally "o").
12099 objext="$ac_objext"
12100
12101 # Old archive suffix (normally "a").
12102 libext="$libext"
12103
12104 # Shared library suffix (normally ".so").
12105 shrext='$shrext'
12106
12107 # Executable file suffix (normally "").
12108 exeext="$exeext"
12109
12110 # Additional compiler flags for building library objects.
12111 pic_flag=$lt_lt_prog_compiler_pic_CXX
12112 pic_mode=$pic_mode
12113
12114 # What is the maximum length of a command?
12115 max_cmd_len=$lt_cv_sys_max_cmd_len
12116
12117 # Does compiler simultaneously support -c and -o options?
12118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12119
12120 # Must we lock files when doing compilation ?
12121 need_locks=$lt_need_locks
12122
12123 # Do we need the lib prefix for modules?
12124 need_lib_prefix=$need_lib_prefix
12125
12126 # Do we need a version for libraries?
12127 need_version=$need_version
12128
12129 # Whether dlopen is supported.
12130 dlopen_support=$enable_dlopen
12131
12132 # Whether dlopen of programs is supported.
12133 dlopen_self=$enable_dlopen_self
12134
12135 # Whether dlopen of statically linked programs is supported.
12136 dlopen_self_static=$enable_dlopen_self_static
12137
12138 # Compiler flag to prevent dynamic linking.
12139 link_static_flag=$lt_lt_prog_compiler_static_CXX
12140
12141 # Compiler flag to turn off builtin functions.
12142 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12143
12144 # Compiler flag to allow reflexive dlopens.
12145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12146
12147 # Compiler flag to generate shared objects directly from archives.
12148 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12149
12150 # Compiler flag to generate thread-safe objects.
12151 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12152
12153 # Library versioning type.
12154 version_type=$version_type
12155
12156 # Format of library name prefix.
12157 libname_spec=$lt_libname_spec
12158
12159 # List of archive names.  First name is the real one, the rest are links.
12160 # The last name is the one that the linker finds with -lNAME.
12161 library_names_spec=$lt_library_names_spec
12162
12163 # The coded name of the library, if different from the real name.
12164 soname_spec=$lt_soname_spec
12165
12166 # Commands used to build and install an old-style archive.
12167 RANLIB=$lt_RANLIB
12168 old_archive_cmds=$lt_old_archive_cmds_CXX
12169 old_postinstall_cmds=$lt_old_postinstall_cmds
12170 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12171
12172 # Create an old-style archive from a shared archive.
12173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12174
12175 # Create a temporary old-style archive to link instead of a shared archive.
12176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12177
12178 # Commands used to build and install a shared archive.
12179 archive_cmds=$lt_archive_cmds_CXX
12180 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12181 postinstall_cmds=$lt_postinstall_cmds
12182 postuninstall_cmds=$lt_postuninstall_cmds
12183
12184 # Commands used to build a loadable module (assumed same as above if empty)
12185 module_cmds=$lt_module_cmds_CXX
12186 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12187
12188 # Commands to strip libraries.
12189 old_striplib=$lt_old_striplib
12190 striplib=$lt_striplib
12191
12192 # Dependencies to place before the objects being linked to create a
12193 # shared library.
12194 predep_objects=$lt_predep_objects_CXX
12195
12196 # Dependencies to place after the objects being linked to create a
12197 # shared library.
12198 postdep_objects=$lt_postdep_objects_CXX
12199
12200 # Dependencies to place before the objects being linked to create a
12201 # shared library.
12202 predeps=$lt_predeps_CXX
12203
12204 # Dependencies to place after the objects being linked to create a
12205 # shared library.
12206 postdeps=$lt_postdeps_CXX
12207
12208 # The library search path used internally by the compiler when linking
12209 # a shared library.
12210 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12211
12212 # Method to check whether dependent libraries are shared objects.
12213 deplibs_check_method=$lt_deplibs_check_method
12214
12215 # Command to use when deplibs_check_method == file_magic.
12216 file_magic_cmd=$lt_file_magic_cmd
12217
12218 # Flag that allows shared libraries with undefined symbols to be built.
12219 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12220
12221 # Flag that forces no undefined symbols.
12222 no_undefined_flag=$lt_no_undefined_flag_CXX
12223
12224 # Commands used to finish a libtool library installation in a directory.
12225 finish_cmds=$lt_finish_cmds
12226
12227 # Same as above, but a single script fragment to be evaled but not shown.
12228 finish_eval=$lt_finish_eval
12229
12230 # Take the output of nm and produce a listing of raw symbols and C names.
12231 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12232
12233 # Transform the output of nm in a proper C declaration
12234 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12235
12236 # Transform the output of nm in a C name address pair
12237 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12238
12239 # This is the shared library runtime path variable.
12240 runpath_var=$runpath_var
12241
12242 # This is the shared library path variable.
12243 shlibpath_var=$shlibpath_var
12244
12245 # Is shlibpath searched before the hard-coded library search path?
12246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12247
12248 # How to hardcode a shared library path into an executable.
12249 hardcode_action=$hardcode_action_CXX
12250
12251 # Whether we should hardcode library paths into libraries.
12252 hardcode_into_libs=$hardcode_into_libs
12253
12254 # Flag to hardcode \$libdir into a binary during linking.
12255 # This must work even if \$libdir does not exist.
12256 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12257
12258 # If ld is used when linking, flag to hardcode \$libdir into
12259 # a binary during linking. This must work even if \$libdir does
12260 # not exist.
12261 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12262
12263 # Whether we need a single -rpath flag with a separated argument.
12264 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12265
12266 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12267 # resulting binary.
12268 hardcode_direct=$hardcode_direct_CXX
12269
12270 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12271 # resulting binary.
12272 hardcode_minus_L=$hardcode_minus_L_CXX
12273
12274 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12275 # the resulting binary.
12276 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12277
12278 # Set to yes if building a shared library automatically hardcodes DIR into the library
12279 # and all subsequent libraries and executables linked against it.
12280 hardcode_automatic=$hardcode_automatic_CXX
12281
12282 # Variables whose values should be saved in libtool wrapper scripts and
12283 # restored at relink time.
12284 variables_saved_for_relink="$variables_saved_for_relink"
12285
12286 # Whether libtool must link a program against all its dependency libraries.
12287 link_all_deplibs=$link_all_deplibs_CXX
12288
12289 # Compile-time system search path for libraries
12290 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12291
12292 # Run-time system search path for libraries
12293 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12294
12295 # Fix the shell variable \$srcfile for the compiler.
12296 fix_srcfile_path="$fix_srcfile_path_CXX"
12297
12298 # Set to yes if exported symbols are required.
12299 always_export_symbols=$always_export_symbols_CXX
12300
12301 # The commands to list exported symbols.
12302 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12303
12304 # The commands to extract the exported symbol list from a shared archive.
12305 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12306
12307 # Symbols that should not be listed in the preloaded symbols.
12308 exclude_expsyms=$lt_exclude_expsyms_CXX
12309
12310 # Symbols that must always be exported.
12311 include_expsyms=$lt_include_expsyms_CXX
12312
12313 # ### END LIBTOOL TAG CONFIG: $tagname
12314
12315 __EOF__
12316
12317
12318 else
12319   # If there is no Makefile yet, we rely on a make rule to execute
12320   # `config.status --recheck' to rerun these tests and create the
12321   # libtool script then.
12322   test -f Makefile && make "$ltmain"
12323 fi
12324
12325
12326 ac_ext=c
12327 ac_cpp='$CPP $CPPFLAGS'
12328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12331
12332 CC=$lt_save_CC
12333 LDCXX=$LD
12334 LD=$lt_save_LD
12335 GCC=$lt_save_GCC
12336 with_gnu_ldcxx=$with_gnu_ld
12337 with_gnu_ld=$lt_save_with_gnu_ld
12338 lt_cv_path_LDCXX=$lt_cv_path_LD
12339 lt_cv_path_LD=$lt_save_path_LD
12340 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12341 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12342
12343         else
12344           tagname=""
12345         fi
12346         ;;
12347
12348       F77)
12349         if test -n "$F77" && test "X$F77" != "Xno"; then
12350
12351 ac_ext=f
12352 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12353 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12354 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12355
12356
12357 archive_cmds_need_lc_F77=no
12358 allow_undefined_flag_F77=
12359 always_export_symbols_F77=no
12360 archive_expsym_cmds_F77=
12361 export_dynamic_flag_spec_F77=
12362 hardcode_direct_F77=no
12363 hardcode_libdir_flag_spec_F77=
12364 hardcode_libdir_flag_spec_ld_F77=
12365 hardcode_libdir_separator_F77=
12366 hardcode_minus_L_F77=no
12367 hardcode_automatic_F77=no
12368 module_cmds_F77=
12369 module_expsym_cmds_F77=
12370 link_all_deplibs_F77=unknown
12371 old_archive_cmds_F77=$old_archive_cmds
12372 no_undefined_flag_F77=
12373 whole_archive_flag_spec_F77=
12374 enable_shared_with_static_runtimes_F77=no
12375
12376 # Source file extension for f77 test sources.
12377 ac_ext=f
12378
12379 # Object file extension for compiled f77 test sources.
12380 objext=o
12381 objext_F77=$objext
12382
12383 # Code to be used in simple compile tests
12384 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12385
12386 # Code to be used in simple link tests
12387 lt_simple_link_test_code="      program t\n      end\n"
12388
12389 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12390
12391 # If no C compiler was specified, use CC.
12392 LTCC=${LTCC-"$CC"}
12393
12394 # Allow CC to be a program name with arguments.
12395 compiler=$CC
12396
12397
12398 # Allow CC to be a program name with arguments.
12399 lt_save_CC="$CC"
12400 CC=${F77-"f77"}
12401 compiler=$CC
12402 compiler_F77=$CC
12403 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12404
12405 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12406 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12407 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12408 echo "${ECHO_T}$can_build_shared" >&6
12409
12410 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12411 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12412 test "$can_build_shared" = "no" && enable_shared=no
12413
12414 # On AIX, shared libraries and static libraries use the same namespace, and
12415 # are all built from PIC.
12416 case "$host_os" in
12417 aix3*)
12418   test "$enable_shared" = yes && enable_static=no
12419   if test -n "$RANLIB"; then
12420     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12421     postinstall_cmds='$RANLIB $lib'
12422   fi
12423   ;;
12424 aix4*)
12425   test "$enable_shared" = yes && enable_static=no
12426   ;;
12427 esac
12428 echo "$as_me:$LINENO: result: $enable_shared" >&5
12429 echo "${ECHO_T}$enable_shared" >&6
12430
12431 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12432 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12433 # Make sure either enable_shared or enable_static is yes.
12434 test "$enable_shared" = yes || enable_static=yes
12435 echo "$as_me:$LINENO: result: $enable_static" >&5
12436 echo "${ECHO_T}$enable_static" >&6
12437
12438 test "$ld_shlibs_F77" = no && can_build_shared=no
12439
12440 GCC_F77="$G77"
12441 LD_F77="$LD"
12442
12443 lt_prog_compiler_wl_F77=
12444 lt_prog_compiler_pic_F77=
12445 lt_prog_compiler_static_F77=
12446
12447 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12448 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12449
12450   if test "$GCC" = yes; then
12451     lt_prog_compiler_wl_F77='-Wl,'
12452     lt_prog_compiler_static_F77='-static'
12453
12454     case $host_os in
12455       aix*)
12456       # All AIX code is PIC.
12457       if test "$host_cpu" = ia64; then
12458         # AIX 5 now supports IA64 processor
12459         lt_prog_compiler_static_F77='-Bstatic'
12460       fi
12461       ;;
12462
12463     amigaos*)
12464       # FIXME: we need at least 68020 code to build shared libraries, but
12465       # adding the `-m68020' flag to GCC prevents building anything better,
12466       # like `-m68040'.
12467       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12468       ;;
12469
12470     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12471       # PIC is the default for these OSes.
12472       ;;
12473
12474     mingw* | pw32* | os2*)
12475       # This hack is so that the source file can tell whether it is being
12476       # built for inclusion in a dll (and should export symbols for example).
12477       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12478       ;;
12479
12480     darwin* | rhapsody*)
12481       # PIC is the default on this platform
12482       # Common symbols not allowed in MH_DYLIB files
12483       lt_prog_compiler_pic_F77='-fno-common'
12484       ;;
12485
12486     msdosdjgpp*)
12487       # Just because we use GCC doesn't mean we suddenly get shared libraries
12488       # on systems that don't support them.
12489       lt_prog_compiler_can_build_shared_F77=no
12490       enable_shared=no
12491       ;;
12492
12493     sysv4*MP*)
12494       if test -d /usr/nec; then
12495         lt_prog_compiler_pic_F77=-Kconform_pic
12496       fi
12497       ;;
12498
12499     hpux*)
12500       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12501       # not for PA HP-UX.
12502       case "$host_cpu" in
12503       hppa*64*|ia64*)
12504         # +Z the default
12505         ;;
12506       *)
12507         lt_prog_compiler_pic_F77='-fPIC'
12508         ;;
12509       esac
12510       ;;
12511
12512     *)
12513       lt_prog_compiler_pic_F77='-fPIC'
12514       ;;
12515     esac
12516   else
12517     # PORTME Check for flag to pass linker flags through the system compiler.
12518     case $host_os in
12519     aix*)
12520       lt_prog_compiler_wl_F77='-Wl,'
12521       if test "$host_cpu" = ia64; then
12522         # AIX 5 now supports IA64 processor
12523         lt_prog_compiler_static_F77='-Bstatic'
12524       else
12525         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12526       fi
12527       ;;
12528
12529     mingw* | pw32* | os2*)
12530       # This hack is so that the source file can tell whether it is being
12531       # built for inclusion in a dll (and should export symbols for example).
12532       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12533       ;;
12534
12535     hpux9* | hpux10* | hpux11*)
12536       lt_prog_compiler_wl_F77='-Wl,'
12537       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12538       # not for PA HP-UX.
12539       case "$host_cpu" in
12540       hppa*64*|ia64*)
12541         # +Z the default
12542         ;;
12543       *)
12544         lt_prog_compiler_pic_F77='+Z'
12545         ;;
12546       esac
12547       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12548       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12549       ;;
12550
12551     irix5* | irix6* | nonstopux*)
12552       lt_prog_compiler_wl_F77='-Wl,'
12553       # PIC (with -KPIC) is the default.
12554       lt_prog_compiler_static_F77='-non_shared'
12555       ;;
12556
12557     newsos6)
12558       lt_prog_compiler_pic_F77='-KPIC'
12559       lt_prog_compiler_static_F77='-Bstatic'
12560       ;;
12561
12562     linux*)
12563       case $CC in
12564       icc|ecc)
12565         lt_prog_compiler_wl_F77='-Wl,'
12566         lt_prog_compiler_pic_F77='-KPIC'
12567         lt_prog_compiler_static_F77='-static'
12568         ;;
12569       ccc)
12570         lt_prog_compiler_wl_F77='-Wl,'
12571         # All Alpha code is PIC.
12572         lt_prog_compiler_static_F77='-non_shared'
12573         ;;
12574       esac
12575       ;;
12576
12577     osf3* | osf4* | osf5*)
12578       lt_prog_compiler_wl_F77='-Wl,'
12579       # All OSF/1 code is PIC.
12580       lt_prog_compiler_static_F77='-non_shared'
12581       ;;
12582
12583     sco3.2v5*)
12584       lt_prog_compiler_pic_F77='-Kpic'
12585       lt_prog_compiler_static_F77='-dn'
12586       ;;
12587
12588     solaris*)
12589       lt_prog_compiler_wl_F77='-Wl,'
12590       lt_prog_compiler_pic_F77='-KPIC'
12591       lt_prog_compiler_static_F77='-Bstatic'
12592       ;;
12593
12594     sunos4*)
12595       lt_prog_compiler_wl_F77='-Qoption ld '
12596       lt_prog_compiler_pic_F77='-PIC'
12597       lt_prog_compiler_static_F77='-Bstatic'
12598       ;;
12599
12600     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12601       lt_prog_compiler_wl_F77='-Wl,'
12602       lt_prog_compiler_pic_F77='-KPIC'
12603       lt_prog_compiler_static_F77='-Bstatic'
12604       ;;
12605
12606     sysv4*MP*)
12607       if test -d /usr/nec ;then
12608         lt_prog_compiler_pic_F77='-Kconform_pic'
12609         lt_prog_compiler_static_F77='-Bstatic'
12610       fi
12611       ;;
12612
12613     uts4*)
12614       lt_prog_compiler_pic_F77='-pic'
12615       lt_prog_compiler_static_F77='-Bstatic'
12616       ;;
12617
12618     *)
12619       lt_prog_compiler_can_build_shared_F77=no
12620       ;;
12621     esac
12622   fi
12623
12624 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12625 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12626
12627 #
12628 # Check to make sure the PIC flag actually works.
12629 #
12630 if test -n "$lt_prog_compiler_pic_F77"; then
12631   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12632 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12633 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12634   echo $ECHO_N "(cached) $ECHO_C" >&6
12635 else
12636   lt_prog_compiler_pic_works_F77=no
12637   ac_outfile=conftest.$ac_objext
12638    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12639    lt_compiler_flag="$lt_prog_compiler_pic_F77"
12640    # Insert the option either (1) after the last *FLAGS variable, or
12641    # (2) before a word containing "conftest.", or (3) at the end.
12642    # Note that $ac_compile itself does not contain backslashes and begins
12643    # with a dollar sign (not a hyphen), so the echo should work correctly.
12644    # The option is referenced via a variable to avoid confusing sed.
12645    lt_compile=`echo "$ac_compile" | $SED \
12646    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12647    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12648    -e 's:$: $lt_compiler_flag:'`
12649    (eval echo "\"\$as_me:12649: $lt_compile\"" >&5)
12650    (eval "$lt_compile" 2>conftest.err)
12651    ac_status=$?
12652    cat conftest.err >&5
12653    echo "$as_me:12653: \$? = $ac_status" >&5
12654    if (exit $ac_status) && test -s "$ac_outfile"; then
12655      # The compiler can only warn and ignore the option if not recognized
12656      # So say no if there are warnings
12657      if test ! -s conftest.err; then
12658        lt_prog_compiler_pic_works_F77=yes
12659      fi
12660    fi
12661    $rm conftest*
12662
12663 fi
12664 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12665 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12666
12667 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12668     case $lt_prog_compiler_pic_F77 in
12669      "" | " "*) ;;
12670      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12671      esac
12672 else
12673     lt_prog_compiler_pic_F77=
12674      lt_prog_compiler_can_build_shared_F77=no
12675 fi
12676
12677 fi
12678 case "$host_os" in
12679   # For platforms which do not support PIC, -DPIC is meaningless:
12680   *djgpp*)
12681     lt_prog_compiler_pic_F77=
12682     ;;
12683   *)
12684     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12685     ;;
12686 esac
12687
12688 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12689 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12690 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12691   echo $ECHO_N "(cached) $ECHO_C" >&6
12692 else
12693   lt_cv_prog_compiler_c_o_F77=no
12694    $rm -r conftest 2>/dev/null
12695    mkdir conftest
12696    cd conftest
12697    mkdir out
12698    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12699
12700    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12701    # that will create temporary files in the current directory regardless of
12702    # the output directory.  Thus, making CWD read-only will cause this test
12703    # to fail, enabling locking or at least warning the user not to do parallel
12704    # builds.
12705    chmod -w .
12706
12707    lt_compiler_flag="-o out/conftest2.$ac_objext"
12708    # Insert the option either (1) after the last *FLAGS variable, or
12709    # (2) before a word containing "conftest.", or (3) at the end.
12710    # Note that $ac_compile itself does not contain backslashes and begins
12711    # with a dollar sign (not a hyphen), so the echo should work correctly.
12712    lt_compile=`echo "$ac_compile" | $SED \
12713    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12714    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12715    -e 's:$: $lt_compiler_flag:'`
12716    (eval echo "\"\$as_me:12716: $lt_compile\"" >&5)
12717    (eval "$lt_compile" 2>out/conftest.err)
12718    ac_status=$?
12719    cat out/conftest.err >&5
12720    echo "$as_me:12720: \$? = $ac_status" >&5
12721    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12722    then
12723      # The compiler can only warn and ignore the option if not recognized
12724      # So say no if there are warnings
12725      if test ! -s out/conftest.err; then
12726        lt_cv_prog_compiler_c_o_F77=yes
12727      fi
12728    fi
12729    chmod u+w .
12730    $rm conftest* out/*
12731    rmdir out
12732    cd ..
12733    rmdir conftest
12734    $rm conftest*
12735
12736 fi
12737 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12738 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12739
12740
12741 hard_links="nottested"
12742 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12743   # do not overwrite the value of need_locks provided by the user
12744   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12745 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12746   hard_links=yes
12747   $rm conftest*
12748   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12749   touch conftest.a
12750   ln conftest.a conftest.b 2>&5 || hard_links=no
12751   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12752   echo "$as_me:$LINENO: result: $hard_links" >&5
12753 echo "${ECHO_T}$hard_links" >&6
12754   if test "$hard_links" = no; then
12755     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12756 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12757     need_locks=warn
12758   fi
12759 else
12760   need_locks=no
12761 fi
12762
12763 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12764 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12765
12766   runpath_var=
12767   allow_undefined_flag_F77=
12768   enable_shared_with_static_runtimes_F77=no
12769   archive_cmds_F77=
12770   archive_expsym_cmds_F77=
12771   old_archive_From_new_cmds_F77=
12772   old_archive_from_expsyms_cmds_F77=
12773   export_dynamic_flag_spec_F77=
12774   whole_archive_flag_spec_F77=
12775   thread_safe_flag_spec_F77=
12776   hardcode_libdir_flag_spec_F77=
12777   hardcode_libdir_flag_spec_ld_F77=
12778   hardcode_libdir_separator_F77=
12779   hardcode_direct_F77=no
12780   hardcode_minus_L_F77=no
12781   hardcode_shlibpath_var_F77=unsupported
12782   link_all_deplibs_F77=unknown
12783   hardcode_automatic_F77=no
12784   module_cmds_F77=
12785   module_expsym_cmds_F77=
12786   always_export_symbols_F77=no
12787   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12788   # include_expsyms should be a list of space-separated symbols to be *always*
12789   # included in the symbol list
12790   include_expsyms_F77=
12791   # exclude_expsyms can be an extended regexp of symbols to exclude
12792   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12793   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12794   # as well as any symbol that contains `d'.
12795   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12796   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12797   # platforms (ab)use it in PIC code, but their linkers get confused if
12798   # the symbol is explicitly referenced.  Since portable code cannot
12799   # rely on this symbol name, it's probably fine to never include it in
12800   # preloaded symbol tables.
12801   extract_expsyms_cmds=
12802
12803   case $host_os in
12804   cygwin* | mingw* | pw32*)
12805     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12806     # When not using gcc, we currently assume that we are using
12807     # Microsoft Visual C++.
12808     if test "$GCC" != yes; then
12809       with_gnu_ld=no
12810     fi
12811     ;;
12812   openbsd*)
12813     with_gnu_ld=no
12814     ;;
12815   esac
12816
12817   ld_shlibs_F77=yes
12818   if test "$with_gnu_ld" = yes; then
12819     # If archive_cmds runs LD, not CC, wlarc should be empty
12820     wlarc='${wl}'
12821
12822     # See if GNU ld supports shared libraries.
12823     case $host_os in
12824     aix3* | aix4* | aix5*)
12825       # On AIX/PPC, the GNU linker is very broken
12826       if test "$host_cpu" != ia64; then
12827         ld_shlibs_F77=no
12828         cat <<EOF 1>&2
12829
12830 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12831 *** to be unable to reliably create shared libraries on AIX.
12832 *** Therefore, libtool is disabling shared libraries support.  If you
12833 *** really care for shared libraries, you may want to modify your PATH
12834 *** so that a non-GNU linker is found, and then restart.
12835
12836 EOF
12837       fi
12838       ;;
12839
12840     amigaos*)
12841       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)'
12842       hardcode_libdir_flag_spec_F77='-L$libdir'
12843       hardcode_minus_L_F77=yes
12844
12845       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12846       # that the semantics of dynamic libraries on AmigaOS, at least up
12847       # to version 4, is to share data among multiple programs linked
12848       # with the same dynamic library.  Since this doesn't match the
12849       # behavior of shared libraries on other platforms, we can't use
12850       # them.
12851       ld_shlibs_F77=no
12852       ;;
12853
12854     beos*)
12855       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12856         allow_undefined_flag_F77=unsupported
12857         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12858         # support --undefined.  This deserves some investigation.  FIXME
12859         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12860       else
12861         ld_shlibs_F77=no
12862       fi
12863       ;;
12864
12865     cygwin* | mingw* | pw32*)
12866       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12867       # as there is no search path for DLLs.
12868       hardcode_libdir_flag_spec_F77='-L$libdir'
12869       allow_undefined_flag_F77=unsupported
12870       always_export_symbols_F77=no
12871       enable_shared_with_static_runtimes_F77=yes
12872       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12873
12874       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12875         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12876         # If the export-symbols file already is a .def file (1st line
12877         # is EXPORTS), use it as is; otherwise, prepend...
12878         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12879           cp $export_symbols $output_objdir/$soname.def;
12880         else
12881           echo EXPORTS > $output_objdir/$soname.def;
12882           cat $export_symbols >> $output_objdir/$soname.def;
12883         fi~
12884         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
12885       else
12886         ld_shlibs=no
12887       fi
12888       ;;
12889
12890     netbsd*)
12891       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12892         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12893         wlarc=
12894       else
12895         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12896         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12897       fi
12898       ;;
12899
12900     solaris* | sysv5*)
12901       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12902         ld_shlibs_F77=no
12903         cat <<EOF 1>&2
12904
12905 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12906 *** create shared libraries on Solaris systems.  Therefore, libtool
12907 *** is disabling shared libraries support.  We urge you to upgrade GNU
12908 *** binutils to release 2.9.1 or newer.  Another option is to modify
12909 *** your PATH or compiler configuration so that the native linker is
12910 *** used, and then restart.
12911
12912 EOF
12913       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12914         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12915         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12916       else
12917         ld_shlibs_F77=no
12918       fi
12919       ;;
12920
12921     sunos4*)
12922       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12923       wlarc=
12924       hardcode_direct_F77=yes
12925       hardcode_shlibpath_var_F77=no
12926       ;;
12927
12928     *)
12929       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12930         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12931         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12932       else
12933         ld_shlibs_F77=no
12934       fi
12935       ;;
12936     esac
12937
12938     if test "$ld_shlibs_F77" = yes; then
12939       runpath_var=LD_RUN_PATH
12940       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12941       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12942       # ancient GNU ld didn't support --whole-archive et. al.
12943       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12944         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12945       else
12946         whole_archive_flag_spec_F77=
12947       fi
12948     fi
12949   else
12950     # PORTME fill in a description of your system's linker (not GNU ld)
12951     case $host_os in
12952     aix3*)
12953       allow_undefined_flag_F77=unsupported
12954       always_export_symbols_F77=yes
12955       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'
12956       # Note: this linker hardcodes the directories in LIBPATH if there
12957       # are no directories specified by -L.
12958       hardcode_minus_L_F77=yes
12959       if test "$GCC" = yes && test -z "$link_static_flag"; then
12960         # Neither direct hardcoding nor static linking is supported with a
12961         # broken collect2.
12962         hardcode_direct_F77=unsupported
12963       fi
12964       ;;
12965
12966     aix4* | aix5*)
12967       if test "$host_cpu" = ia64; then
12968         # On IA64, the linker does run time linking by default, so we don't
12969         # have to do anything special.
12970         aix_use_runtimelinking=no
12971         exp_sym_flag='-Bexport'
12972         no_entry_flag=""
12973       else
12974         # If we're using GNU nm, then we don't want the "-C" option.
12975         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12976         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12977           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'
12978         else
12979           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'
12980         fi
12981         aix_use_runtimelinking=no
12982
12983         # Test if we are trying to use run time linking or normal
12984         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12985         # need to do runtime linking.
12986         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12987           for ld_flag in $LDFLAGS; do
12988           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12989             aix_use_runtimelinking=yes
12990             break
12991           fi
12992           done
12993         esac
12994
12995         exp_sym_flag='-bexport'
12996         no_entry_flag='-bnoentry'
12997       fi
12998
12999       # When large executables or shared objects are built, AIX ld can
13000       # have problems creating the table of contents.  If linking a library
13001       # or program results in "error TOC overflow" add -mminimal-toc to
13002       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13003       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13004
13005       archive_cmds_F77=''
13006       hardcode_direct_F77=yes
13007       hardcode_libdir_separator_F77=':'
13008       link_all_deplibs_F77=yes
13009
13010       if test "$GCC" = yes; then
13011         case $host_os in aix4.012|aix4.012.*)
13012         # We only want to do this on AIX 4.2 and lower, the check
13013         # below for broken collect2 doesn't work under 4.3+
13014           collect2name=`${CC} -print-prog-name=collect2`
13015           if test -f "$collect2name" && \
13016            strings "$collect2name" | grep resolve_lib_name >/dev/null
13017           then
13018           # We have reworked collect2
13019           hardcode_direct_F77=yes
13020           else
13021           # We have old collect2
13022           hardcode_direct_F77=unsupported
13023           # It fails to find uninstalled libraries when the uninstalled
13024           # path is not listed in the libpath.  Setting hardcode_minus_L
13025           # to unsupported forces relinking
13026           hardcode_minus_L_F77=yes
13027           hardcode_libdir_flag_spec_F77='-L$libdir'
13028           hardcode_libdir_separator_F77=
13029           fi
13030         esac
13031         shared_flag='-shared'
13032       else
13033         # not using gcc
13034         if test "$host_cpu" = ia64; then
13035         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13036         # chokes on -Wl,-G. The following line is correct:
13037           shared_flag='-G'
13038         else
13039         if test "$aix_use_runtimelinking" = yes; then
13040             shared_flag='${wl}-G'
13041           else
13042             shared_flag='${wl}-bM:SRE'
13043         fi
13044         fi
13045       fi
13046
13047       # It seems that -bexpall does not export symbols beginning with
13048       # underscore (_), so it is better to generate a list of symbols to export.
13049       always_export_symbols_F77=yes
13050       if test "$aix_use_runtimelinking" = yes; then
13051         # Warning - without using the other runtime loading flags (-brtl),
13052         # -berok will link without error, but may produce a broken library.
13053         allow_undefined_flag_F77='-berok'
13054        # Determine the default libpath from the value encoded in an empty executable.
13055        cat >conftest.$ac_ext <<_ACEOF
13056       program main
13057
13058       end
13059 _ACEOF
13060 rm -f conftest.$ac_objext conftest$ac_exeext
13061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13062   (eval $ac_link) 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); } &&
13066          { ac_try='test -s conftest$ac_exeext'
13067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068   (eval $ac_try) 2>&5
13069   ac_status=$?
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); }; }; then
13072
13073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13074 }'`
13075 # Check for a 64-bit object if we didn't find anything.
13076 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; }
13077 }'`; fi
13078 else
13079   echo "$as_me: failed program was:" >&5
13080 cat conftest.$ac_ext >&5
13081 fi
13082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13083 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13084
13085        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13086         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"
13087        else
13088         if test "$host_cpu" = ia64; then
13089           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13090           allow_undefined_flag_F77="-z nodefs"
13091           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"
13092         else
13093          # Determine the default libpath from the value encoded in an empty executable.
13094          cat >conftest.$ac_ext <<_ACEOF
13095       program main
13096
13097       end
13098 _ACEOF
13099 rm -f conftest.$ac_objext conftest$ac_exeext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13101   (eval $ac_link) 2>&5
13102   ac_status=$?
13103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); } &&
13105          { ac_try='test -s conftest$ac_exeext'
13106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107   (eval $ac_try) 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); }; }; then
13111
13112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13113 }'`
13114 # Check for a 64-bit object if we didn't find anything.
13115 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; }
13116 }'`; fi
13117 else
13118   echo "$as_me: failed program was:" >&5
13119 cat conftest.$ac_ext >&5
13120 fi
13121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13123
13124          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13125           # Warning - without using the other run time loading flags,
13126           # -berok will link without error, but may produce a broken library.
13127           no_undefined_flag_F77=' ${wl}-bernotok'
13128           allow_undefined_flag_F77=' ${wl}-berok'
13129           # -bexpall does not export symbols beginning with underscore (_)
13130           always_export_symbols_F77=yes
13131           # Exported symbols can be pulled into shared objects from archives
13132           whole_archive_flag_spec_F77=' '
13133           archive_cmds_need_lc_F77=yes
13134           # This is similar to how AIX traditionally builds it's shared libraries.
13135           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'
13136         fi
13137       fi
13138       ;;
13139
13140     amigaos*)
13141       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)'
13142       hardcode_libdir_flag_spec_F77='-L$libdir'
13143       hardcode_minus_L_F77=yes
13144       # see comment about different semantics on the GNU ld section
13145       ld_shlibs_F77=no
13146       ;;
13147
13148     bsdi4*)
13149       export_dynamic_flag_spec_F77=-rdynamic
13150       ;;
13151
13152     cygwin* | mingw* | pw32*)
13153       # When not using gcc, we currently assume that we are using
13154       # Microsoft Visual C++.
13155       # hardcode_libdir_flag_spec is actually meaningless, as there is
13156       # no search path for DLLs.
13157       hardcode_libdir_flag_spec_F77=' '
13158       allow_undefined_flag_F77=unsupported
13159       # Tell ltmain to make .lib files, not .a files.
13160       libext=lib
13161       # Tell ltmain to make .dll files, not .so files.
13162       shrext=".dll"
13163       # FIXME: Setting linknames here is a bad hack.
13164       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13165       # The linker will automatically build a .lib file if we build a DLL.
13166       old_archive_From_new_cmds_F77='true'
13167       # FIXME: Should let the user specify the lib program.
13168       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13169       fix_srcfile_path='`cygpath -w "$srcfile"`'
13170       enable_shared_with_static_runtimes_F77=yes
13171       ;;
13172
13173     darwin* | rhapsody*)
13174     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13175       archive_cmds_need_lc_F77=no
13176       case "$host_os" in
13177       rhapsody* | darwin1.[012])
13178         allow_undefined_flag_F77='-undefined suppress'
13179         ;;
13180       *) # Darwin 1.3 on
13181         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13182         ;;
13183       esac
13184       # FIXME: Relying on posixy $() will cause problems for
13185       #        cross-compilation, but unfortunately the echo tests do not
13186       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13187       #        `"' quotes if we put them in here... so don't!
13188         lt_int_apple_cc_single_mod=no
13189         output_verbose_link_cmd='echo'
13190         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13191           lt_int_apple_cc_single_mod=yes
13192         fi
13193         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13194           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13195         else
13196         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'
13197       fi
13198       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13199       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13200         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13201           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}'
13202         else
13203           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}'
13204         fi
13205           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}'
13206       hardcode_direct_F77=no
13207       hardcode_automatic_F77=yes
13208       hardcode_shlibpath_var_F77=unsupported
13209       whole_archive_flag_spec_F77='-all_load $convenience'
13210       link_all_deplibs_F77=yes
13211     fi
13212       ;;
13213
13214     dgux*)
13215       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13216       hardcode_libdir_flag_spec_F77='-L$libdir'
13217       hardcode_shlibpath_var_F77=no
13218       ;;
13219
13220     freebsd1*)
13221       ld_shlibs_F77=no
13222       ;;
13223
13224     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13225     # support.  Future versions do this automatically, but an explicit c++rt0.o
13226     # does not break anything, and helps significantly (at the cost of a little
13227     # extra space).
13228     freebsd2.2*)
13229       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13230       hardcode_libdir_flag_spec_F77='-R$libdir'
13231       hardcode_direct_F77=yes
13232       hardcode_shlibpath_var_F77=no
13233       ;;
13234
13235     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13236     freebsd2*)
13237       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13238       hardcode_direct_F77=yes
13239       hardcode_minus_L_F77=yes
13240       hardcode_shlibpath_var_F77=no
13241       ;;
13242
13243     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13244     freebsd*)
13245       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13246       hardcode_libdir_flag_spec_F77='-R$libdir'
13247       hardcode_direct_F77=yes
13248       hardcode_shlibpath_var_F77=no
13249       ;;
13250
13251     hpux9*)
13252       if test "$GCC" = yes; then
13253         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'
13254       else
13255         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'
13256       fi
13257       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13258       hardcode_libdir_separator_F77=:
13259       hardcode_direct_F77=yes
13260
13261       # hardcode_minus_L: Not really in the search PATH,
13262       # but as the default location of the library.
13263       hardcode_minus_L_F77=yes
13264       export_dynamic_flag_spec_F77='${wl}-E'
13265       ;;
13266
13267     hpux10* | hpux11*)
13268       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13269         case "$host_cpu" in
13270         hppa*64*|ia64*)
13271           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13272           ;;
13273         *)
13274           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13275           ;;
13276         esac
13277       else
13278         case "$host_cpu" in
13279         hppa*64*|ia64*)
13280           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13281           ;;
13282         *)
13283           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13284           ;;
13285         esac
13286       fi
13287       if test "$with_gnu_ld" = no; then
13288         case "$host_cpu" in
13289         hppa*64*)
13290           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13291           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13292           hardcode_libdir_separator_F77=:
13293           hardcode_direct_F77=no
13294           hardcode_shlibpath_var_F77=no
13295           ;;
13296         ia64*)
13297           hardcode_libdir_flag_spec_F77='-L$libdir'
13298           hardcode_direct_F77=no
13299           hardcode_shlibpath_var_F77=no
13300
13301           # hardcode_minus_L: Not really in the search PATH,
13302           # but as the default location of the library.
13303           hardcode_minus_L_F77=yes
13304           ;;
13305         *)
13306           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13307           hardcode_libdir_separator_F77=:
13308           hardcode_direct_F77=yes
13309           export_dynamic_flag_spec_F77='${wl}-E'
13310
13311           # hardcode_minus_L: Not really in the search PATH,
13312           # but as the default location of the library.
13313           hardcode_minus_L_F77=yes
13314           ;;
13315         esac
13316       fi
13317       ;;
13318
13319     irix5* | irix6* | nonstopux*)
13320       if test "$GCC" = yes; then
13321         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'
13322       else
13323         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'
13324         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13325       fi
13326       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13327       hardcode_libdir_separator_F77=:
13328       link_all_deplibs_F77=yes
13329       ;;
13330
13331     netbsd*)
13332       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13333         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13334       else
13335         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13336       fi
13337       hardcode_libdir_flag_spec_F77='-R$libdir'
13338       hardcode_direct_F77=yes
13339       hardcode_shlibpath_var_F77=no
13340       ;;
13341
13342     newsos6)
13343       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13344       hardcode_direct_F77=yes
13345       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13346       hardcode_libdir_separator_F77=:
13347       hardcode_shlibpath_var_F77=no
13348       ;;
13349
13350     openbsd*)
13351       hardcode_direct_F77=yes
13352       hardcode_shlibpath_var_F77=no
13353       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13354         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13355         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13356         export_dynamic_flag_spec_F77='${wl}-E'
13357       else
13358        case $host_os in
13359          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13360            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13361            hardcode_libdir_flag_spec_F77='-R$libdir'
13362            ;;
13363          *)
13364            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13365            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13366            ;;
13367        esac
13368       fi
13369       ;;
13370
13371     os2*)
13372       hardcode_libdir_flag_spec_F77='-L$libdir'
13373       hardcode_minus_L_F77=yes
13374       allow_undefined_flag_F77=unsupported
13375       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'
13376       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13377       ;;
13378
13379     osf3*)
13380       if test "$GCC" = yes; then
13381         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13382         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'
13383       else
13384         allow_undefined_flag_F77=' -expect_unresolved \*'
13385         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'
13386       fi
13387       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13388       hardcode_libdir_separator_F77=:
13389       ;;
13390
13391     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13392       if test "$GCC" = yes; then
13393         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13394         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'
13395         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13396       else
13397         allow_undefined_flag_F77=' -expect_unresolved \*'
13398         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'
13399         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~
13400         $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'
13401
13402         # Both c and cxx compiler support -rpath directly
13403         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13404       fi
13405       hardcode_libdir_separator_F77=:
13406       ;;
13407
13408     sco3.2v5*)
13409       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13410       hardcode_shlibpath_var_F77=no
13411       export_dynamic_flag_spec_F77='${wl}-Bexport'
13412       runpath_var=LD_RUN_PATH
13413       hardcode_runpath_var=yes
13414       ;;
13415
13416     solaris*)
13417       no_undefined_flag_F77=' -z text'
13418       if test "$GCC" = yes; then
13419         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13420         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13421           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13422       else
13423         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13424         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13425         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13426       fi
13427       hardcode_libdir_flag_spec_F77='-R$libdir'
13428       hardcode_shlibpath_var_F77=no
13429       case $host_os in
13430       solaris2.[0-5] | solaris2.[0-5].*) ;;
13431       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13432         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13433       esac
13434       link_all_deplibs_F77=yes
13435       ;;
13436
13437     sunos4*)
13438       if test "x$host_vendor" = xsequent; then
13439         # Use $CC to link under sequent, because it throws in some extra .o
13440         # files that make .init and .fini sections work.
13441         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13442       else
13443         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13444       fi
13445       hardcode_libdir_flag_spec_F77='-L$libdir'
13446       hardcode_direct_F77=yes
13447       hardcode_minus_L_F77=yes
13448       hardcode_shlibpath_var_F77=no
13449       ;;
13450
13451     sysv4)
13452       case $host_vendor in
13453         sni)
13454           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13455           hardcode_direct_F77=yes # is this really true???
13456         ;;
13457         siemens)
13458           ## LD is ld it makes a PLAMLIB
13459           ## CC just makes a GrossModule.
13460           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13461           reload_cmds_F77='$CC -r -o $output$reload_objs'
13462           hardcode_direct_F77=no
13463         ;;
13464         motorola)
13465           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13466           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13467         ;;
13468       esac
13469       runpath_var='LD_RUN_PATH'
13470       hardcode_shlibpath_var_F77=no
13471       ;;
13472
13473     sysv4.3*)
13474       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13475       hardcode_shlibpath_var_F77=no
13476       export_dynamic_flag_spec_F77='-Bexport'
13477       ;;
13478
13479     sysv4*MP*)
13480       if test -d /usr/nec; then
13481         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13482         hardcode_shlibpath_var_F77=no
13483         runpath_var=LD_RUN_PATH
13484         hardcode_runpath_var=yes
13485         ld_shlibs_F77=yes
13486       fi
13487       ;;
13488
13489     sysv4.2uw2*)
13490       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13491       hardcode_direct_F77=yes
13492       hardcode_minus_L_F77=no
13493       hardcode_shlibpath_var_F77=no
13494       hardcode_runpath_var=yes
13495       runpath_var=LD_RUN_PATH
13496       ;;
13497
13498    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
13499       no_undefined_flag_F77='${wl}-z ${wl}text'
13500       if test "$GCC" = yes; then
13501         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13502       else
13503         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13504       fi
13505       runpath_var='LD_RUN_PATH'
13506       hardcode_shlibpath_var_F77=no
13507       ;;
13508
13509     sysv5*)
13510       no_undefined_flag_F77=' -z text'
13511       # $CC -shared without GNU ld will not create a library from C++
13512       # object files and a static libstdc++, better avoid it by now
13513       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13514       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13515                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13516       hardcode_libdir_flag_spec_F77=
13517       hardcode_shlibpath_var_F77=no
13518       runpath_var='LD_RUN_PATH'
13519       ;;
13520
13521     uts4*)
13522       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13523       hardcode_libdir_flag_spec_F77='-L$libdir'
13524       hardcode_shlibpath_var_F77=no
13525       ;;
13526
13527     *)
13528       ld_shlibs_F77=no
13529       ;;
13530     esac
13531   fi
13532
13533 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13534 echo "${ECHO_T}$ld_shlibs_F77" >&6
13535 test "$ld_shlibs_F77" = no && can_build_shared=no
13536
13537 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13538 if test "$GCC" = yes; then
13539   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13540 fi
13541
13542 #
13543 # Do we need to explicitly link libc?
13544 #
13545 case "x$archive_cmds_need_lc_F77" in
13546 x|xyes)
13547   # Assume -lc should be added
13548   archive_cmds_need_lc_F77=yes
13549
13550   if test "$enable_shared" = yes && test "$GCC" = yes; then
13551     case $archive_cmds_F77 in
13552     *'~'*)
13553       # FIXME: we may have to deal with multi-command sequences.
13554       ;;
13555     '$CC '*)
13556       # Test whether the compiler implicitly links with -lc since on some
13557       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13558       # to ld, don't add -lc before -lgcc.
13559       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13560 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13561       $rm conftest*
13562       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13563
13564       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13565   (eval $ac_compile) 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); } 2>conftest.err; then
13569         soname=conftest
13570         lib=conftest
13571         libobjs=conftest.$ac_objext
13572         deplibs=
13573         wl=$lt_prog_compiler_wl_F77
13574         compiler_flags=-v
13575         linker_flags=-v
13576         verstring=
13577         output_objdir=.
13578         libname=conftest
13579         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13580         allow_undefined_flag_F77=
13581         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13582   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13583   ac_status=$?
13584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585   (exit $ac_status); }
13586         then
13587           archive_cmds_need_lc_F77=no
13588         else
13589           archive_cmds_need_lc_F77=yes
13590         fi
13591         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13592       else
13593         cat conftest.err 1>&5
13594       fi
13595       $rm conftest*
13596       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13597 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13598       ;;
13599     esac
13600   fi
13601   ;;
13602 esac
13603
13604 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13605 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13606 hardcode_action_F77=
13607 if test -n "$hardcode_libdir_flag_spec_F77" || \
13608    test -n "$runpath_var F77" || \
13609    test "X$hardcode_automatic_F77"="Xyes" ; then
13610
13611   # We can hardcode non-existant directories.
13612   if test "$hardcode_direct_F77" != no &&
13613      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13614      # have to relink, otherwise we might link with an installed library
13615      # when we should be linking with a yet-to-be-installed one
13616      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13617      test "$hardcode_minus_L_F77" != no; then
13618     # Linking always hardcodes the temporary library directory.
13619     hardcode_action_F77=relink
13620   else
13621     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13622     hardcode_action_F77=immediate
13623   fi
13624 else
13625   # We cannot hardcode anything, or else we can only hardcode existing
13626   # directories.
13627   hardcode_action_F77=unsupported
13628 fi
13629 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13630 echo "${ECHO_T}$hardcode_action_F77" >&6
13631
13632 if test "$hardcode_action_F77" = relink; then
13633   # Fast installation is not supported
13634   enable_fast_install=no
13635 elif test "$shlibpath_overrides_runpath" = yes ||
13636      test "$enable_shared" = no; then
13637   # Fast installation is not necessary
13638   enable_fast_install=needless
13639 fi
13640
13641 striplib=
13642 old_striplib=
13643 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13644 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13645 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13646   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13647   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13648   echo "$as_me:$LINENO: result: yes" >&5
13649 echo "${ECHO_T}yes" >&6
13650 else
13651 # FIXME - insert some real tests, host_os isn't really good enough
13652   case $host_os in
13653    darwin*)
13654        if test -n "$STRIP" ; then
13655          striplib="$STRIP -x"
13656          echo "$as_me:$LINENO: result: yes" >&5
13657 echo "${ECHO_T}yes" >&6
13658        else
13659   echo "$as_me:$LINENO: result: no" >&5
13660 echo "${ECHO_T}no" >&6
13661 fi
13662        ;;
13663    *)
13664   echo "$as_me:$LINENO: result: no" >&5
13665 echo "${ECHO_T}no" >&6
13666     ;;
13667   esac
13668 fi
13669
13670 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13671 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13672 library_names_spec=
13673 libname_spec='lib$name'
13674 soname_spec=
13675 shrext=".so"
13676 postinstall_cmds=
13677 postuninstall_cmds=
13678 finish_cmds=
13679 finish_eval=
13680 shlibpath_var=
13681 shlibpath_overrides_runpath=unknown
13682 version_type=none
13683 dynamic_linker="$host_os ld.so"
13684 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13685 if test "$GCC" = yes; then
13686   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13687   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13688     # if the path contains ";" then we assume it to be the separator
13689     # otherwise default to the standard path separator (i.e. ":") - it is
13690     # assumed that no part of a normal pathname contains ";" but that should
13691     # okay in the real world where ";" in dirpaths is itself problematic.
13692     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13693   else
13694     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13695   fi
13696 else
13697   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13698 fi
13699 need_lib_prefix=unknown
13700 hardcode_into_libs=no
13701
13702 # when you set need_version to no, make sure it does not cause -set_version
13703 # flags to be left without arguments
13704 need_version=unknown
13705
13706 case $host_os in
13707 aix3*)
13708   version_type=linux
13709   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13710   shlibpath_var=LIBPATH
13711
13712   # AIX 3 has no versioning support, so we append a major version to the name.
13713   soname_spec='${libname}${release}${shared_ext}$major'
13714   ;;
13715
13716 aix4* | aix5*)
13717   version_type=linux
13718   need_lib_prefix=no
13719   need_version=no
13720   hardcode_into_libs=yes
13721   if test "$host_cpu" = ia64; then
13722     # AIX 5 supports IA64
13723     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13724     shlibpath_var=LD_LIBRARY_PATH
13725   else
13726     # With GCC up to 2.95.x, collect2 would create an import file
13727     # for dependence libraries.  The import file would start with
13728     # the line `#! .'.  This would cause the generated library to
13729     # depend on `.', always an invalid library.  This was fixed in
13730     # development snapshots of GCC prior to 3.0.
13731     case $host_os in
13732       aix4 | aix4.[01] | aix4.[01].*)
13733       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13734            echo ' yes '
13735            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13736         :
13737       else
13738         can_build_shared=no
13739       fi
13740       ;;
13741     esac
13742     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13743     # soname into executable. Probably we can add versioning support to
13744     # collect2, so additional links can be useful in future.
13745     if test "$aix_use_runtimelinking" = yes; then
13746       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13747       # instead of lib<name>.a to let people know that these are not
13748       # typical AIX shared libraries.
13749       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13750     else
13751       # We preserve .a as extension for shared libraries through AIX4.2
13752       # and later when we are not doing run time linking.
13753       library_names_spec='${libname}${release}.a $libname.a'
13754       soname_spec='${libname}${release}${shared_ext}$major'
13755     fi
13756     shlibpath_var=LIBPATH
13757   fi
13758   ;;
13759
13760 amigaos*)
13761   library_names_spec='$libname.ixlibrary $libname.a'
13762   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13763   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'
13764   ;;
13765
13766 beos*)
13767   library_names_spec='${libname}${shared_ext}'
13768   dynamic_linker="$host_os ld.so"
13769   shlibpath_var=LIBRARY_PATH
13770   ;;
13771
13772 bsdi4*)
13773   version_type=linux
13774   need_version=no
13775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13776   soname_spec='${libname}${release}${shared_ext}$major'
13777   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13778   shlibpath_var=LD_LIBRARY_PATH
13779   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13780   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13781   # the default ld.so.conf also contains /usr/contrib/lib and
13782   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13783   # libtool to hard-code these into programs
13784   ;;
13785
13786 cygwin* | mingw* | pw32*)
13787   version_type=windows
13788   shrext=".dll"
13789   need_version=no
13790   need_lib_prefix=no
13791
13792   case $GCC,$host_os in
13793   yes,cygwin* | yes,mingw* | yes,pw32*)
13794     library_names_spec='$libname.dll.a'
13795     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13796     postinstall_cmds='base_file=`basename \${file}`~
13797       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13798       dldir=$destdir/`dirname \$dlpath`~
13799       test -d \$dldir || mkdir -p \$dldir~
13800       $install_prog $dir/$dlname \$dldir/$dlname'
13801     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13802       dlpath=$dir/\$dldll~
13803        $rm \$dlpath'
13804     shlibpath_overrides_runpath=yes
13805
13806     case $host_os in
13807     cygwin*)
13808       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13809       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13810       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
13811       ;;
13812     mingw*)
13813       # MinGW DLLs use traditional 'lib' prefix
13814       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13815       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13816       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13817         # It is most probably a Windows format PATH printed by
13818         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13819         # path with ; separators, and with drive letters. We can handle the
13820         # drive letters (cygwin fileutils understands them), so leave them,
13821         # especially as we might pass files found there to a mingw objdump,
13822         # which wouldn't understand a cygwinified path. Ahh.
13823         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13824       else
13825         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13826       fi
13827       ;;
13828     pw32*)
13829       # pw32 DLLs use 'pw' prefix rather than 'lib'
13830       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13831       ;;
13832     esac
13833     ;;
13834
13835   *)
13836     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13837     ;;
13838   esac
13839   dynamic_linker='Win32 ld.exe'
13840   # FIXME: first we should search . and the directory the executable is in
13841   shlibpath_var=PATH
13842   ;;
13843
13844 darwin* | rhapsody*)
13845   dynamic_linker="$host_os dyld"
13846   version_type=darwin
13847   need_lib_prefix=no
13848   need_version=no
13849   # FIXME: Relying on posixy $() will cause problems for
13850   #        cross-compilation, but unfortunately the echo tests do not
13851   #        yet detect zsh echo's removal of \ escapes.
13852   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13853   soname_spec='${libname}${release}${major}$shared_ext'
13854   shlibpath_overrides_runpath=yes
13855   shlibpath_var=DYLD_LIBRARY_PATH
13856   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13857   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13858   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13859   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"`
13860   fi
13861   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13862   ;;
13863
13864 dgux*)
13865   version_type=linux
13866   need_lib_prefix=no
13867   need_version=no
13868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13869   soname_spec='${libname}${release}${shared_ext}$major'
13870   shlibpath_var=LD_LIBRARY_PATH
13871   ;;
13872
13873 freebsd1*)
13874   dynamic_linker=no
13875   ;;
13876
13877 freebsd*)
13878   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13879   version_type=freebsd-$objformat
13880   case $version_type in
13881     freebsd-elf*)
13882       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13883       need_version=no
13884       need_lib_prefix=no
13885       ;;
13886     freebsd-*)
13887       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13888       need_version=yes
13889       ;;
13890   esac
13891   shlibpath_var=LD_LIBRARY_PATH
13892   case $host_os in
13893   freebsd2*)
13894     shlibpath_overrides_runpath=yes
13895     ;;
13896   freebsd3.01* | freebsdelf3.01*)
13897     shlibpath_overrides_runpath=yes
13898     hardcode_into_libs=yes
13899     ;;
13900   *) # from 3.2 on
13901     shlibpath_overrides_runpath=no
13902     hardcode_into_libs=yes
13903     ;;
13904   esac
13905   ;;
13906
13907 gnu*)
13908   version_type=linux
13909   need_lib_prefix=no
13910   need_version=no
13911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13912   soname_spec='${libname}${release}${shared_ext}$major'
13913   shlibpath_var=LD_LIBRARY_PATH
13914   hardcode_into_libs=yes
13915   ;;
13916
13917 hpux9* | hpux10* | hpux11*)
13918   # Give a soname corresponding to the major version so that dld.sl refuses to
13919   # link against other versions.
13920   version_type=sunos
13921   need_lib_prefix=no
13922   need_version=no
13923   case "$host_cpu" in
13924   ia64*)
13925     shrext='.so'
13926     hardcode_into_libs=yes
13927     dynamic_linker="$host_os dld.so"
13928     shlibpath_var=LD_LIBRARY_PATH
13929     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13931     soname_spec='${libname}${release}${shared_ext}$major'
13932     if test "X$HPUX_IA64_MODE" = X32; then
13933       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13934     else
13935       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13936     fi
13937     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13938     ;;
13939    hppa*64*)
13940      shrext='.sl'
13941      hardcode_into_libs=yes
13942      dynamic_linker="$host_os dld.sl"
13943      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13944      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13945      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13946      soname_spec='${libname}${release}${shared_ext}$major'
13947      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13948      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13949      ;;
13950    *)
13951     shrext='.sl'
13952     dynamic_linker="$host_os dld.sl"
13953     shlibpath_var=SHLIB_PATH
13954     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13955     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13956     soname_spec='${libname}${release}${shared_ext}$major'
13957     ;;
13958   esac
13959   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13960   postinstall_cmds='chmod 555 $lib'
13961   ;;
13962
13963 irix5* | irix6* | nonstopux*)
13964   case $host_os in
13965     nonstopux*) version_type=nonstopux ;;
13966     *)
13967         if test "$lt_cv_prog_gnu_ld" = yes; then
13968                 version_type=linux
13969         else
13970                 version_type=irix
13971         fi ;;
13972   esac
13973   need_lib_prefix=no
13974   need_version=no
13975   soname_spec='${libname}${release}${shared_ext}$major'
13976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13977   case $host_os in
13978   irix5* | nonstopux*)
13979     libsuff= shlibsuff=
13980     ;;
13981   *)
13982     case $LD in # libtool.m4 will add one of these switches to LD
13983     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13984       libsuff= shlibsuff= libmagic=32-bit;;
13985     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13986       libsuff=32 shlibsuff=N32 libmagic=N32;;
13987     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13988       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13989     *) libsuff= shlibsuff= libmagic=never-match;;
13990     esac
13991     ;;
13992   esac
13993   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13994   shlibpath_overrides_runpath=no
13995   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13996   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13997   hardcode_into_libs=yes
13998   ;;
13999
14000 # No shared lib support for Linux oldld, aout, or coff.
14001 linux*oldld* | linux*aout* | linux*coff*)
14002   dynamic_linker=no
14003   ;;
14004
14005 # This must be Linux ELF.
14006 linux*)
14007   version_type=linux
14008   need_lib_prefix=no
14009   need_version=no
14010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14011   soname_spec='${libname}${release}${shared_ext}$major'
14012   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14013   shlibpath_var=LD_LIBRARY_PATH
14014   shlibpath_overrides_runpath=no
14015   # This implies no fast_install, which is unacceptable.
14016   # Some rework will be needed to allow for fast_install
14017   # before this can be enabled.
14018   hardcode_into_libs=yes
14019
14020   # We used to test for /lib/ld.so.1 and disable shared libraries on
14021   # powerpc, because MkLinux only supported shared libraries with the
14022   # GNU dynamic linker.  Since this was broken with cross compilers,
14023   # most powerpc-linux boxes support dynamic linking these days and
14024   # people can always --disable-shared, the test was removed, and we
14025   # assume the GNU/Linux dynamic linker is in use.
14026   dynamic_linker='GNU/Linux ld.so'
14027   ;;
14028
14029 netbsd*)
14030   version_type=sunos
14031   need_lib_prefix=no
14032   need_version=no
14033   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14035     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14036     dynamic_linker='NetBSD (a.out) ld.so'
14037   else
14038     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14039     soname_spec='${libname}${release}${shared_ext}$major'
14040     dynamic_linker='NetBSD ld.elf_so'
14041   fi
14042   shlibpath_var=LD_LIBRARY_PATH
14043   shlibpath_overrides_runpath=yes
14044   hardcode_into_libs=yes
14045   ;;
14046
14047 newsos6)
14048   version_type=linux
14049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14050   shlibpath_var=LD_LIBRARY_PATH
14051   shlibpath_overrides_runpath=yes
14052   ;;
14053
14054 nto-qnx)
14055   version_type=linux
14056   need_lib_prefix=no
14057   need_version=no
14058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14059   soname_spec='${libname}${release}${shared_ext}$major'
14060   shlibpath_var=LD_LIBRARY_PATH
14061   shlibpath_overrides_runpath=yes
14062   ;;
14063
14064 openbsd*)
14065   version_type=sunos
14066   need_lib_prefix=no
14067   need_version=no
14068   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14069   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14070   shlibpath_var=LD_LIBRARY_PATH
14071   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14072     case $host_os in
14073       openbsd2.[89] | openbsd2.[89].*)
14074         shlibpath_overrides_runpath=no
14075         ;;
14076       *)
14077         shlibpath_overrides_runpath=yes
14078         ;;
14079       esac
14080   else
14081     shlibpath_overrides_runpath=yes
14082   fi
14083   ;;
14084
14085 os2*)
14086   libname_spec='$name'
14087   shrext=".dll"
14088   need_lib_prefix=no
14089   library_names_spec='$libname${shared_ext} $libname.a'
14090   dynamic_linker='OS/2 ld.exe'
14091   shlibpath_var=LIBPATH
14092   ;;
14093
14094 osf3* | osf4* | osf5*)
14095   version_type=osf
14096   need_lib_prefix=no
14097   need_version=no
14098   soname_spec='${libname}${release}${shared_ext}$major'
14099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100   shlibpath_var=LD_LIBRARY_PATH
14101   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14102   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14103   ;;
14104
14105 sco3.2v5*)
14106   version_type=osf
14107   soname_spec='${libname}${release}${shared_ext}$major'
14108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14109   shlibpath_var=LD_LIBRARY_PATH
14110   ;;
14111
14112 solaris*)
14113   version_type=linux
14114   need_lib_prefix=no
14115   need_version=no
14116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14117   soname_spec='${libname}${release}${shared_ext}$major'
14118   shlibpath_var=LD_LIBRARY_PATH
14119   shlibpath_overrides_runpath=yes
14120   hardcode_into_libs=yes
14121   # ldd complains unless libraries are executable
14122   postinstall_cmds='chmod +x $lib'
14123   ;;
14124
14125 sunos4*)
14126   version_type=sunos
14127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14128   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14129   shlibpath_var=LD_LIBRARY_PATH
14130   shlibpath_overrides_runpath=yes
14131   if test "$with_gnu_ld" = yes; then
14132     need_lib_prefix=no
14133   fi
14134   need_version=yes
14135   ;;
14136
14137 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14138   version_type=linux
14139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14140   soname_spec='${libname}${release}${shared_ext}$major'
14141   shlibpath_var=LD_LIBRARY_PATH
14142   case $host_vendor in
14143     sni)
14144       shlibpath_overrides_runpath=no
14145       need_lib_prefix=no
14146       export_dynamic_flag_spec='${wl}-Blargedynsym'
14147       runpath_var=LD_RUN_PATH
14148       ;;
14149     siemens)
14150       need_lib_prefix=no
14151       ;;
14152     motorola)
14153       need_lib_prefix=no
14154       need_version=no
14155       shlibpath_overrides_runpath=no
14156       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14157       ;;
14158   esac
14159   ;;
14160
14161 sysv4*MP*)
14162   if test -d /usr/nec ;then
14163     version_type=linux
14164     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14165     soname_spec='$libname${shared_ext}.$major'
14166     shlibpath_var=LD_LIBRARY_PATH
14167   fi
14168   ;;
14169
14170 uts4*)
14171   version_type=linux
14172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14173   soname_spec='${libname}${release}${shared_ext}$major'
14174   shlibpath_var=LD_LIBRARY_PATH
14175   ;;
14176
14177 *)
14178   dynamic_linker=no
14179   ;;
14180 esac
14181 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14182 echo "${ECHO_T}$dynamic_linker" >&6
14183 test "$dynamic_linker" = no && can_build_shared=no
14184
14185
14186 # The else clause should only fire when bootstrapping the
14187 # libtool distribution, otherwise you forgot to ship ltmain.sh
14188 # with your package, and you will get complaints that there are
14189 # no rules to generate ltmain.sh.
14190 if test -f "$ltmain"; then
14191   # See if we are running on zsh, and set the options which allow our commands through
14192   # without removal of \ escapes.
14193   if test -n "${ZSH_VERSION+set}" ; then
14194     setopt NO_GLOB_SUBST
14195   fi
14196   # Now quote all the things that may contain metacharacters while being
14197   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14198   # variables and quote the copies for generation of the libtool script.
14199   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14200     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14201     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14202     deplibs_check_method reload_flag reload_cmds need_locks \
14203     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14204     lt_cv_sys_global_symbol_to_c_name_address \
14205     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14206     old_postinstall_cmds old_postuninstall_cmds \
14207     compiler_F77 \
14208     CC_F77 \
14209     LD_F77 \
14210     lt_prog_compiler_wl_F77 \
14211     lt_prog_compiler_pic_F77 \
14212     lt_prog_compiler_static_F77 \
14213     lt_prog_compiler_no_builtin_flag_F77 \
14214     export_dynamic_flag_spec_F77 \
14215     thread_safe_flag_spec_F77 \
14216     whole_archive_flag_spec_F77 \
14217     enable_shared_with_static_runtimes_F77 \
14218     old_archive_cmds_F77 \
14219     old_archive_from_new_cmds_F77 \
14220     predep_objects_F77 \
14221     postdep_objects_F77 \
14222     predeps_F77 \
14223     postdeps_F77 \
14224     compiler_lib_search_path_F77 \
14225     archive_cmds_F77 \
14226     archive_expsym_cmds_F77 \
14227     postinstall_cmds_F77 \
14228     postuninstall_cmds_F77 \
14229     old_archive_from_expsyms_cmds_F77 \
14230     allow_undefined_flag_F77 \
14231     no_undefined_flag_F77 \
14232     export_symbols_cmds_F77 \
14233     hardcode_libdir_flag_spec_F77 \
14234     hardcode_libdir_flag_spec_ld_F77 \
14235     hardcode_libdir_separator_F77 \
14236     hardcode_automatic_F77 \
14237     module_cmds_F77 \
14238     module_expsym_cmds_F77 \
14239     lt_cv_prog_compiler_c_o_F77 \
14240     exclude_expsyms_F77 \
14241     include_expsyms_F77; do
14242
14243     case $var in
14244     old_archive_cmds_F77 | \
14245     old_archive_from_new_cmds_F77 | \
14246     archive_cmds_F77 | \
14247     archive_expsym_cmds_F77 | \
14248     module_cmds_F77 | \
14249     module_expsym_cmds_F77 | \
14250     old_archive_from_expsyms_cmds_F77 | \
14251     export_symbols_cmds_F77 | \
14252     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14253     postinstall_cmds | postuninstall_cmds | \
14254     old_postinstall_cmds | old_postuninstall_cmds | \
14255     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14256       # Double-quote double-evaled strings.
14257       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14258       ;;
14259     *)
14260       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14261       ;;
14262     esac
14263   done
14264
14265   case $lt_echo in
14266   *'\$0 --fallback-echo"')
14267     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14268     ;;
14269   esac
14270
14271 cfgfile="$ofile"
14272
14273   cat <<__EOF__ >> "$cfgfile"
14274 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14275
14276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14277
14278 # Shell to use when invoking shell scripts.
14279 SHELL=$lt_SHELL
14280
14281 # Whether or not to build shared libraries.
14282 build_libtool_libs=$enable_shared
14283
14284 # Whether or not to build static libraries.
14285 build_old_libs=$enable_static
14286
14287 # Whether or not to add -lc for building shared libraries.
14288 build_libtool_need_lc=$archive_cmds_need_lc_F77
14289
14290 # Whether or not to disallow shared libs when runtime libs are static
14291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14292
14293 # Whether or not to optimize for fast installation.
14294 fast_install=$enable_fast_install
14295
14296 # The host system.
14297 host_alias=$host_alias
14298 host=$host
14299
14300 # An echo program that does not interpret backslashes.
14301 echo=$lt_echo
14302
14303 # The archiver.
14304 AR=$lt_AR
14305 AR_FLAGS=$lt_AR_FLAGS
14306
14307 # A C compiler.
14308 LTCC=$lt_LTCC
14309
14310 # A language-specific compiler.
14311 CC=$lt_compiler_F77
14312
14313 # Is the compiler the GNU C compiler?
14314 with_gcc=$GCC_F77
14315
14316 # An ERE matcher.
14317 EGREP=$lt_EGREP
14318
14319 # The linker used to build libraries.
14320 LD=$lt_LD_F77
14321
14322 # Whether we need hard or soft links.
14323 LN_S=$lt_LN_S
14324
14325 # A BSD-compatible nm program.
14326 NM=$lt_NM
14327
14328 # A symbol stripping program
14329 STRIP=$STRIP
14330
14331 # Used to examine libraries when file_magic_cmd begins "file"
14332 MAGIC_CMD=$MAGIC_CMD
14333
14334 # Used on cygwin: DLL creation program.
14335 DLLTOOL="$DLLTOOL"
14336
14337 # Used on cygwin: object dumper.
14338 OBJDUMP="$OBJDUMP"
14339
14340 # Used on cygwin: assembler.
14341 AS="$AS"
14342
14343 # The name of the directory that contains temporary libtool files.
14344 objdir=$objdir
14345
14346 # How to create reloadable object files.
14347 reload_flag=$lt_reload_flag
14348 reload_cmds=$lt_reload_cmds
14349
14350 # How to pass a linker flag through the compiler.
14351 wl=$lt_lt_prog_compiler_wl_F77
14352
14353 # Object file suffix (normally "o").
14354 objext="$ac_objext"
14355
14356 # Old archive suffix (normally "a").
14357 libext="$libext"
14358
14359 # Shared library suffix (normally ".so").
14360 shrext='$shrext'
14361
14362 # Executable file suffix (normally "").
14363 exeext="$exeext"
14364
14365 # Additional compiler flags for building library objects.
14366 pic_flag=$lt_lt_prog_compiler_pic_F77
14367 pic_mode=$pic_mode
14368
14369 # What is the maximum length of a command?
14370 max_cmd_len=$lt_cv_sys_max_cmd_len
14371
14372 # Does compiler simultaneously support -c and -o options?
14373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14374
14375 # Must we lock files when doing compilation ?
14376 need_locks=$lt_need_locks
14377
14378 # Do we need the lib prefix for modules?
14379 need_lib_prefix=$need_lib_prefix
14380
14381 # Do we need a version for libraries?
14382 need_version=$need_version
14383
14384 # Whether dlopen is supported.
14385 dlopen_support=$enable_dlopen
14386
14387 # Whether dlopen of programs is supported.
14388 dlopen_self=$enable_dlopen_self
14389
14390 # Whether dlopen of statically linked programs is supported.
14391 dlopen_self_static=$enable_dlopen_self_static
14392
14393 # Compiler flag to prevent dynamic linking.
14394 link_static_flag=$lt_lt_prog_compiler_static_F77
14395
14396 # Compiler flag to turn off builtin functions.
14397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14398
14399 # Compiler flag to allow reflexive dlopens.
14400 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14401
14402 # Compiler flag to generate shared objects directly from archives.
14403 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14404
14405 # Compiler flag to generate thread-safe objects.
14406 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14407
14408 # Library versioning type.
14409 version_type=$version_type
14410
14411 # Format of library name prefix.
14412 libname_spec=$lt_libname_spec
14413
14414 # List of archive names.  First name is the real one, the rest are links.
14415 # The last name is the one that the linker finds with -lNAME.
14416 library_names_spec=$lt_library_names_spec
14417
14418 # The coded name of the library, if different from the real name.
14419 soname_spec=$lt_soname_spec
14420
14421 # Commands used to build and install an old-style archive.
14422 RANLIB=$lt_RANLIB
14423 old_archive_cmds=$lt_old_archive_cmds_F77
14424 old_postinstall_cmds=$lt_old_postinstall_cmds
14425 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14426
14427 # Create an old-style archive from a shared archive.
14428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14429
14430 # Create a temporary old-style archive to link instead of a shared archive.
14431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14432
14433 # Commands used to build and install a shared archive.
14434 archive_cmds=$lt_archive_cmds_F77
14435 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14436 postinstall_cmds=$lt_postinstall_cmds
14437 postuninstall_cmds=$lt_postuninstall_cmds
14438
14439 # Commands used to build a loadable module (assumed same as above if empty)
14440 module_cmds=$lt_module_cmds_F77
14441 module_expsym_cmds=$lt_module_expsym_cmds_F77
14442
14443 # Commands to strip libraries.
14444 old_striplib=$lt_old_striplib
14445 striplib=$lt_striplib
14446
14447 # Dependencies to place before the objects being linked to create a
14448 # shared library.
14449 predep_objects=$lt_predep_objects_F77
14450
14451 # Dependencies to place after the objects being linked to create a
14452 # shared library.
14453 postdep_objects=$lt_postdep_objects_F77
14454
14455 # Dependencies to place before the objects being linked to create a
14456 # shared library.
14457 predeps=$lt_predeps_F77
14458
14459 # Dependencies to place after the objects being linked to create a
14460 # shared library.
14461 postdeps=$lt_postdeps_F77
14462
14463 # The library search path used internally by the compiler when linking
14464 # a shared library.
14465 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14466
14467 # Method to check whether dependent libraries are shared objects.
14468 deplibs_check_method=$lt_deplibs_check_method
14469
14470 # Command to use when deplibs_check_method == file_magic.
14471 file_magic_cmd=$lt_file_magic_cmd
14472
14473 # Flag that allows shared libraries with undefined symbols to be built.
14474 allow_undefined_flag=$lt_allow_undefined_flag_F77
14475
14476 # Flag that forces no undefined symbols.
14477 no_undefined_flag=$lt_no_undefined_flag_F77
14478
14479 # Commands used to finish a libtool library installation in a directory.
14480 finish_cmds=$lt_finish_cmds
14481
14482 # Same as above, but a single script fragment to be evaled but not shown.
14483 finish_eval=$lt_finish_eval
14484
14485 # Take the output of nm and produce a listing of raw symbols and C names.
14486 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14487
14488 # Transform the output of nm in a proper C declaration
14489 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14490
14491 # Transform the output of nm in a C name address pair
14492 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14493
14494 # This is the shared library runtime path variable.
14495 runpath_var=$runpath_var
14496
14497 # This is the shared library path variable.
14498 shlibpath_var=$shlibpath_var
14499
14500 # Is shlibpath searched before the hard-coded library search path?
14501 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14502
14503 # How to hardcode a shared library path into an executable.
14504 hardcode_action=$hardcode_action_F77
14505
14506 # Whether we should hardcode library paths into libraries.
14507 hardcode_into_libs=$hardcode_into_libs
14508
14509 # Flag to hardcode \$libdir into a binary during linking.
14510 # This must work even if \$libdir does not exist.
14511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14512
14513 # If ld is used when linking, flag to hardcode \$libdir into
14514 # a binary during linking. This must work even if \$libdir does
14515 # not exist.
14516 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14517
14518 # Whether we need a single -rpath flag with a separated argument.
14519 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14520
14521 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14522 # resulting binary.
14523 hardcode_direct=$hardcode_direct_F77
14524
14525 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14526 # resulting binary.
14527 hardcode_minus_L=$hardcode_minus_L_F77
14528
14529 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14530 # the resulting binary.
14531 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14532
14533 # Set to yes if building a shared library automatically hardcodes DIR into the library
14534 # and all subsequent libraries and executables linked against it.
14535 hardcode_automatic=$hardcode_automatic_F77
14536
14537 # Variables whose values should be saved in libtool wrapper scripts and
14538 # restored at relink time.
14539 variables_saved_for_relink="$variables_saved_for_relink"
14540
14541 # Whether libtool must link a program against all its dependency libraries.
14542 link_all_deplibs=$link_all_deplibs_F77
14543
14544 # Compile-time system search path for libraries
14545 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14546
14547 # Run-time system search path for libraries
14548 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14549
14550 # Fix the shell variable \$srcfile for the compiler.
14551 fix_srcfile_path="$fix_srcfile_path_F77"
14552
14553 # Set to yes if exported symbols are required.
14554 always_export_symbols=$always_export_symbols_F77
14555
14556 # The commands to list exported symbols.
14557 export_symbols_cmds=$lt_export_symbols_cmds_F77
14558
14559 # The commands to extract the exported symbol list from a shared archive.
14560 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14561
14562 # Symbols that should not be listed in the preloaded symbols.
14563 exclude_expsyms=$lt_exclude_expsyms_F77
14564
14565 # Symbols that must always be exported.
14566 include_expsyms=$lt_include_expsyms_F77
14567
14568 # ### END LIBTOOL TAG CONFIG: $tagname
14569
14570 __EOF__
14571
14572
14573 else
14574   # If there is no Makefile yet, we rely on a make rule to execute
14575   # `config.status --recheck' to rerun these tests and create the
14576   # libtool script then.
14577   test -f Makefile && make "$ltmain"
14578 fi
14579
14580
14581 ac_ext=c
14582 ac_cpp='$CPP $CPPFLAGS'
14583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14586
14587 CC="$lt_save_CC"
14588
14589         else
14590           tagname=""
14591         fi
14592         ;;
14593
14594       GCJ)
14595         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14596
14597
14598
14599 # Source file extension for Java test sources.
14600 ac_ext=java
14601
14602 # Object file extension for compiled Java test sources.
14603 objext=o
14604 objext_GCJ=$objext
14605
14606 # Code to be used in simple compile tests
14607 lt_simple_compile_test_code="class foo {}\n"
14608
14609 # Code to be used in simple link tests
14610 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14611
14612 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14613
14614 # If no C compiler was specified, use CC.
14615 LTCC=${LTCC-"$CC"}
14616
14617 # Allow CC to be a program name with arguments.
14618 compiler=$CC
14619
14620
14621 # Allow CC to be a program name with arguments.
14622 lt_save_CC="$CC"
14623 CC=${GCJ-"gcj"}
14624 compiler=$CC
14625 compiler_GCJ=$CC
14626
14627 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14628 archive_cmds_need_lc_GCJ=no
14629
14630 ## CAVEAT EMPTOR:
14631 ## There is no encapsulation within the following macros, do not change
14632 ## the running order or otherwise move them around unless you know exactly
14633 ## what you are doing...
14634
14635 lt_prog_compiler_no_builtin_flag_GCJ=
14636
14637 if test "$GCC" = yes; then
14638   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14639
14640   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14641 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14642 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14643   echo $ECHO_N "(cached) $ECHO_C" >&6
14644 else
14645   lt_cv_prog_compiler_rtti_exceptions=no
14646   ac_outfile=conftest.$ac_objext
14647    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14648    lt_compiler_flag="-fno-rtti -fno-exceptions"
14649    # Insert the option either (1) after the last *FLAGS variable, or
14650    # (2) before a word containing "conftest.", or (3) at the end.
14651    # Note that $ac_compile itself does not contain backslashes and begins
14652    # with a dollar sign (not a hyphen), so the echo should work correctly.
14653    # The option is referenced via a variable to avoid confusing sed.
14654    lt_compile=`echo "$ac_compile" | $SED \
14655    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14656    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14657    -e 's:$: $lt_compiler_flag:'`
14658    (eval echo "\"\$as_me:14658: $lt_compile\"" >&5)
14659    (eval "$lt_compile" 2>conftest.err)
14660    ac_status=$?
14661    cat conftest.err >&5
14662    echo "$as_me:14662: \$? = $ac_status" >&5
14663    if (exit $ac_status) && test -s "$ac_outfile"; then
14664      # The compiler can only warn and ignore the option if not recognized
14665      # So say no if there are warnings
14666      if test ! -s conftest.err; then
14667        lt_cv_prog_compiler_rtti_exceptions=yes
14668      fi
14669    fi
14670    $rm conftest*
14671
14672 fi
14673 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14674 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14675
14676 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14677     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14678 else
14679     :
14680 fi
14681
14682 fi
14683
14684 lt_prog_compiler_wl_GCJ=
14685 lt_prog_compiler_pic_GCJ=
14686 lt_prog_compiler_static_GCJ=
14687
14688 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14689 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14690
14691   if test "$GCC" = yes; then
14692     lt_prog_compiler_wl_GCJ='-Wl,'
14693     lt_prog_compiler_static_GCJ='-static'
14694
14695     case $host_os in
14696       aix*)
14697       # All AIX code is PIC.
14698       if test "$host_cpu" = ia64; then
14699         # AIX 5 now supports IA64 processor
14700         lt_prog_compiler_static_GCJ='-Bstatic'
14701       fi
14702       ;;
14703
14704     amigaos*)
14705       # FIXME: we need at least 68020 code to build shared libraries, but
14706       # adding the `-m68020' flag to GCC prevents building anything better,
14707       # like `-m68040'.
14708       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14709       ;;
14710
14711     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14712       # PIC is the default for these OSes.
14713       ;;
14714
14715     mingw* | pw32* | os2*)
14716       # This hack is so that the source file can tell whether it is being
14717       # built for inclusion in a dll (and should export symbols for example).
14718       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14719       ;;
14720
14721     darwin* | rhapsody*)
14722       # PIC is the default on this platform
14723       # Common symbols not allowed in MH_DYLIB files
14724       lt_prog_compiler_pic_GCJ='-fno-common'
14725       ;;
14726
14727     msdosdjgpp*)
14728       # Just because we use GCC doesn't mean we suddenly get shared libraries
14729       # on systems that don't support them.
14730       lt_prog_compiler_can_build_shared_GCJ=no
14731       enable_shared=no
14732       ;;
14733
14734     sysv4*MP*)
14735       if test -d /usr/nec; then
14736         lt_prog_compiler_pic_GCJ=-Kconform_pic
14737       fi
14738       ;;
14739
14740     hpux*)
14741       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14742       # not for PA HP-UX.
14743       case "$host_cpu" in
14744       hppa*64*|ia64*)
14745         # +Z the default
14746         ;;
14747       *)
14748         lt_prog_compiler_pic_GCJ='-fPIC'
14749         ;;
14750       esac
14751       ;;
14752
14753     *)
14754       lt_prog_compiler_pic_GCJ='-fPIC'
14755       ;;
14756     esac
14757   else
14758     # PORTME Check for flag to pass linker flags through the system compiler.
14759     case $host_os in
14760     aix*)
14761       lt_prog_compiler_wl_GCJ='-Wl,'
14762       if test "$host_cpu" = ia64; then
14763         # AIX 5 now supports IA64 processor
14764         lt_prog_compiler_static_GCJ='-Bstatic'
14765       else
14766         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14767       fi
14768       ;;
14769
14770     mingw* | pw32* | os2*)
14771       # This hack is so that the source file can tell whether it is being
14772       # built for inclusion in a dll (and should export symbols for example).
14773       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14774       ;;
14775
14776     hpux9* | hpux10* | hpux11*)
14777       lt_prog_compiler_wl_GCJ='-Wl,'
14778       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14779       # not for PA HP-UX.
14780       case "$host_cpu" in
14781       hppa*64*|ia64*)
14782         # +Z the default
14783         ;;
14784       *)
14785         lt_prog_compiler_pic_GCJ='+Z'
14786         ;;
14787       esac
14788       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14789       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14790       ;;
14791
14792     irix5* | irix6* | nonstopux*)
14793       lt_prog_compiler_wl_GCJ='-Wl,'
14794       # PIC (with -KPIC) is the default.
14795       lt_prog_compiler_static_GCJ='-non_shared'
14796       ;;
14797
14798     newsos6)
14799       lt_prog_compiler_pic_GCJ='-KPIC'
14800       lt_prog_compiler_static_GCJ='-Bstatic'
14801       ;;
14802
14803     linux*)
14804       case $CC in
14805       icc|ecc)
14806         lt_prog_compiler_wl_GCJ='-Wl,'
14807         lt_prog_compiler_pic_GCJ='-KPIC'
14808         lt_prog_compiler_static_GCJ='-static'
14809         ;;
14810       ccc)
14811         lt_prog_compiler_wl_GCJ='-Wl,'
14812         # All Alpha code is PIC.
14813         lt_prog_compiler_static_GCJ='-non_shared'
14814         ;;
14815       esac
14816       ;;
14817
14818     osf3* | osf4* | osf5*)
14819       lt_prog_compiler_wl_GCJ='-Wl,'
14820       # All OSF/1 code is PIC.
14821       lt_prog_compiler_static_GCJ='-non_shared'
14822       ;;
14823
14824     sco3.2v5*)
14825       lt_prog_compiler_pic_GCJ='-Kpic'
14826       lt_prog_compiler_static_GCJ='-dn'
14827       ;;
14828
14829     solaris*)
14830       lt_prog_compiler_wl_GCJ='-Wl,'
14831       lt_prog_compiler_pic_GCJ='-KPIC'
14832       lt_prog_compiler_static_GCJ='-Bstatic'
14833       ;;
14834
14835     sunos4*)
14836       lt_prog_compiler_wl_GCJ='-Qoption ld '
14837       lt_prog_compiler_pic_GCJ='-PIC'
14838       lt_prog_compiler_static_GCJ='-Bstatic'
14839       ;;
14840
14841     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14842       lt_prog_compiler_wl_GCJ='-Wl,'
14843       lt_prog_compiler_pic_GCJ='-KPIC'
14844       lt_prog_compiler_static_GCJ='-Bstatic'
14845       ;;
14846
14847     sysv4*MP*)
14848       if test -d /usr/nec ;then
14849         lt_prog_compiler_pic_GCJ='-Kconform_pic'
14850         lt_prog_compiler_static_GCJ='-Bstatic'
14851       fi
14852       ;;
14853
14854     uts4*)
14855       lt_prog_compiler_pic_GCJ='-pic'
14856       lt_prog_compiler_static_GCJ='-Bstatic'
14857       ;;
14858
14859     *)
14860       lt_prog_compiler_can_build_shared_GCJ=no
14861       ;;
14862     esac
14863   fi
14864
14865 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14866 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14867
14868 #
14869 # Check to make sure the PIC flag actually works.
14870 #
14871 if test -n "$lt_prog_compiler_pic_GCJ"; then
14872   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14873 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14874 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14875   echo $ECHO_N "(cached) $ECHO_C" >&6
14876 else
14877   lt_prog_compiler_pic_works_GCJ=no
14878   ac_outfile=conftest.$ac_objext
14879    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14880    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14881    # Insert the option either (1) after the last *FLAGS variable, or
14882    # (2) before a word containing "conftest.", or (3) at the end.
14883    # Note that $ac_compile itself does not contain backslashes and begins
14884    # with a dollar sign (not a hyphen), so the echo should work correctly.
14885    # The option is referenced via a variable to avoid confusing sed.
14886    lt_compile=`echo "$ac_compile" | $SED \
14887    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14889    -e 's:$: $lt_compiler_flag:'`
14890    (eval echo "\"\$as_me:14890: $lt_compile\"" >&5)
14891    (eval "$lt_compile" 2>conftest.err)
14892    ac_status=$?
14893    cat conftest.err >&5
14894    echo "$as_me:14894: \$? = $ac_status" >&5
14895    if (exit $ac_status) && test -s "$ac_outfile"; then
14896      # The compiler can only warn and ignore the option if not recognized
14897      # So say no if there are warnings
14898      if test ! -s conftest.err; then
14899        lt_prog_compiler_pic_works_GCJ=yes
14900      fi
14901    fi
14902    $rm conftest*
14903
14904 fi
14905 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14906 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14907
14908 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14909     case $lt_prog_compiler_pic_GCJ in
14910      "" | " "*) ;;
14911      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14912      esac
14913 else
14914     lt_prog_compiler_pic_GCJ=
14915      lt_prog_compiler_can_build_shared_GCJ=no
14916 fi
14917
14918 fi
14919 case "$host_os" in
14920   # For platforms which do not support PIC, -DPIC is meaningless:
14921   *djgpp*)
14922     lt_prog_compiler_pic_GCJ=
14923     ;;
14924   *)
14925     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14926     ;;
14927 esac
14928
14929 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14930 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14931 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
14932   echo $ECHO_N "(cached) $ECHO_C" >&6
14933 else
14934   lt_cv_prog_compiler_c_o_GCJ=no
14935    $rm -r conftest 2>/dev/null
14936    mkdir conftest
14937    cd conftest
14938    mkdir out
14939    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14940
14941    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14942    # that will create temporary files in the current directory regardless of
14943    # the output directory.  Thus, making CWD read-only will cause this test
14944    # to fail, enabling locking or at least warning the user not to do parallel
14945    # builds.
14946    chmod -w .
14947
14948    lt_compiler_flag="-o out/conftest2.$ac_objext"
14949    # Insert the option either (1) after the last *FLAGS variable, or
14950    # (2) before a word containing "conftest.", or (3) at the end.
14951    # Note that $ac_compile itself does not contain backslashes and begins
14952    # with a dollar sign (not a hyphen), so the echo should work correctly.
14953    lt_compile=`echo "$ac_compile" | $SED \
14954    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14955    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14956    -e 's:$: $lt_compiler_flag:'`
14957    (eval echo "\"\$as_me:14957: $lt_compile\"" >&5)
14958    (eval "$lt_compile" 2>out/conftest.err)
14959    ac_status=$?
14960    cat out/conftest.err >&5
14961    echo "$as_me:14961: \$? = $ac_status" >&5
14962    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14963    then
14964      # The compiler can only warn and ignore the option if not recognized
14965      # So say no if there are warnings
14966      if test ! -s out/conftest.err; then
14967        lt_cv_prog_compiler_c_o_GCJ=yes
14968      fi
14969    fi
14970    chmod u+w .
14971    $rm conftest* out/*
14972    rmdir out
14973    cd ..
14974    rmdir conftest
14975    $rm conftest*
14976
14977 fi
14978 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
14979 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
14980
14981
14982 hard_links="nottested"
14983 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
14984   # do not overwrite the value of need_locks provided by the user
14985   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14986 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14987   hard_links=yes
14988   $rm conftest*
14989   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14990   touch conftest.a
14991   ln conftest.a conftest.b 2>&5 || hard_links=no
14992   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14993   echo "$as_me:$LINENO: result: $hard_links" >&5
14994 echo "${ECHO_T}$hard_links" >&6
14995   if test "$hard_links" = no; then
14996     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14997 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14998     need_locks=warn
14999   fi
15000 else
15001   need_locks=no
15002 fi
15003
15004 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15005 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15006
15007   runpath_var=
15008   allow_undefined_flag_GCJ=
15009   enable_shared_with_static_runtimes_GCJ=no
15010   archive_cmds_GCJ=
15011   archive_expsym_cmds_GCJ=
15012   old_archive_From_new_cmds_GCJ=
15013   old_archive_from_expsyms_cmds_GCJ=
15014   export_dynamic_flag_spec_GCJ=
15015   whole_archive_flag_spec_GCJ=
15016   thread_safe_flag_spec_GCJ=
15017   hardcode_libdir_flag_spec_GCJ=
15018   hardcode_libdir_flag_spec_ld_GCJ=
15019   hardcode_libdir_separator_GCJ=
15020   hardcode_direct_GCJ=no
15021   hardcode_minus_L_GCJ=no
15022   hardcode_shlibpath_var_GCJ=unsupported
15023   link_all_deplibs_GCJ=unknown
15024   hardcode_automatic_GCJ=no
15025   module_cmds_GCJ=
15026   module_expsym_cmds_GCJ=
15027   always_export_symbols_GCJ=no
15028   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15029   # include_expsyms should be a list of space-separated symbols to be *always*
15030   # included in the symbol list
15031   include_expsyms_GCJ=
15032   # exclude_expsyms can be an extended regexp of symbols to exclude
15033   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15034   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15035   # as well as any symbol that contains `d'.
15036   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15037   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15038   # platforms (ab)use it in PIC code, but their linkers get confused if
15039   # the symbol is explicitly referenced.  Since portable code cannot
15040   # rely on this symbol name, it's probably fine to never include it in
15041   # preloaded symbol tables.
15042   extract_expsyms_cmds=
15043
15044   case $host_os in
15045   cygwin* | mingw* | pw32*)
15046     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15047     # When not using gcc, we currently assume that we are using
15048     # Microsoft Visual C++.
15049     if test "$GCC" != yes; then
15050       with_gnu_ld=no
15051     fi
15052     ;;
15053   openbsd*)
15054     with_gnu_ld=no
15055     ;;
15056   esac
15057
15058   ld_shlibs_GCJ=yes
15059   if test "$with_gnu_ld" = yes; then
15060     # If archive_cmds runs LD, not CC, wlarc should be empty
15061     wlarc='${wl}'
15062
15063     # See if GNU ld supports shared libraries.
15064     case $host_os in
15065     aix3* | aix4* | aix5*)
15066       # On AIX/PPC, the GNU linker is very broken
15067       if test "$host_cpu" != ia64; then
15068         ld_shlibs_GCJ=no
15069         cat <<EOF 1>&2
15070
15071 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15072 *** to be unable to reliably create shared libraries on AIX.
15073 *** Therefore, libtool is disabling shared libraries support.  If you
15074 *** really care for shared libraries, you may want to modify your PATH
15075 *** so that a non-GNU linker is found, and then restart.
15076
15077 EOF
15078       fi
15079       ;;
15080
15081     amigaos*)
15082       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)'
15083       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15084       hardcode_minus_L_GCJ=yes
15085
15086       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15087       # that the semantics of dynamic libraries on AmigaOS, at least up
15088       # to version 4, is to share data among multiple programs linked
15089       # with the same dynamic library.  Since this doesn't match the
15090       # behavior of shared libraries on other platforms, we can't use
15091       # them.
15092       ld_shlibs_GCJ=no
15093       ;;
15094
15095     beos*)
15096       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15097         allow_undefined_flag_GCJ=unsupported
15098         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15099         # support --undefined.  This deserves some investigation.  FIXME
15100         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15101       else
15102         ld_shlibs_GCJ=no
15103       fi
15104       ;;
15105
15106     cygwin* | mingw* | pw32*)
15107       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15108       # as there is no search path for DLLs.
15109       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15110       allow_undefined_flag_GCJ=unsupported
15111       always_export_symbols_GCJ=no
15112       enable_shared_with_static_runtimes_GCJ=yes
15113       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15114
15115       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15116         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15117         # If the export-symbols file already is a .def file (1st line
15118         # is EXPORTS), use it as is; otherwise, prepend...
15119         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15120           cp $export_symbols $output_objdir/$soname.def;
15121         else
15122           echo EXPORTS > $output_objdir/$soname.def;
15123           cat $export_symbols >> $output_objdir/$soname.def;
15124         fi~
15125         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15126       else
15127         ld_shlibs=no
15128       fi
15129       ;;
15130
15131     netbsd*)
15132       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15133         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15134         wlarc=
15135       else
15136         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15137         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15138       fi
15139       ;;
15140
15141     solaris* | sysv5*)
15142       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15143         ld_shlibs_GCJ=no
15144         cat <<EOF 1>&2
15145
15146 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15147 *** create shared libraries on Solaris systems.  Therefore, libtool
15148 *** is disabling shared libraries support.  We urge you to upgrade GNU
15149 *** binutils to release 2.9.1 or newer.  Another option is to modify
15150 *** your PATH or compiler configuration so that the native linker is
15151 *** used, and then restart.
15152
15153 EOF
15154       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15155         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15156         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15157       else
15158         ld_shlibs_GCJ=no
15159       fi
15160       ;;
15161
15162     sunos4*)
15163       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15164       wlarc=
15165       hardcode_direct_GCJ=yes
15166       hardcode_shlibpath_var_GCJ=no
15167       ;;
15168
15169     *)
15170       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15171         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15172         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15173       else
15174         ld_shlibs_GCJ=no
15175       fi
15176       ;;
15177     esac
15178
15179     if test "$ld_shlibs_GCJ" = yes; then
15180       runpath_var=LD_RUN_PATH
15181       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15182       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15183       # ancient GNU ld didn't support --whole-archive et. al.
15184       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15185         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15186       else
15187         whole_archive_flag_spec_GCJ=
15188       fi
15189     fi
15190   else
15191     # PORTME fill in a description of your system's linker (not GNU ld)
15192     case $host_os in
15193     aix3*)
15194       allow_undefined_flag_GCJ=unsupported
15195       always_export_symbols_GCJ=yes
15196       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'
15197       # Note: this linker hardcodes the directories in LIBPATH if there
15198       # are no directories specified by -L.
15199       hardcode_minus_L_GCJ=yes
15200       if test "$GCC" = yes && test -z "$link_static_flag"; then
15201         # Neither direct hardcoding nor static linking is supported with a
15202         # broken collect2.
15203         hardcode_direct_GCJ=unsupported
15204       fi
15205       ;;
15206
15207     aix4* | aix5*)
15208       if test "$host_cpu" = ia64; then
15209         # On IA64, the linker does run time linking by default, so we don't
15210         # have to do anything special.
15211         aix_use_runtimelinking=no
15212         exp_sym_flag='-Bexport'
15213         no_entry_flag=""
15214       else
15215         # If we're using GNU nm, then we don't want the "-C" option.
15216         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15217         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15218           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'
15219         else
15220           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'
15221         fi
15222         aix_use_runtimelinking=no
15223
15224         # Test if we are trying to use run time linking or normal
15225         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15226         # need to do runtime linking.
15227         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15228           for ld_flag in $LDFLAGS; do
15229           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15230             aix_use_runtimelinking=yes
15231             break
15232           fi
15233           done
15234         esac
15235
15236         exp_sym_flag='-bexport'
15237         no_entry_flag='-bnoentry'
15238       fi
15239
15240       # When large executables or shared objects are built, AIX ld can
15241       # have problems creating the table of contents.  If linking a library
15242       # or program results in "error TOC overflow" add -mminimal-toc to
15243       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15244       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15245
15246       archive_cmds_GCJ=''
15247       hardcode_direct_GCJ=yes
15248       hardcode_libdir_separator_GCJ=':'
15249       link_all_deplibs_GCJ=yes
15250
15251       if test "$GCC" = yes; then
15252         case $host_os in aix4.012|aix4.012.*)
15253         # We only want to do this on AIX 4.2 and lower, the check
15254         # below for broken collect2 doesn't work under 4.3+
15255           collect2name=`${CC} -print-prog-name=collect2`
15256           if test -f "$collect2name" && \
15257            strings "$collect2name" | grep resolve_lib_name >/dev/null
15258           then
15259           # We have reworked collect2
15260           hardcode_direct_GCJ=yes
15261           else
15262           # We have old collect2
15263           hardcode_direct_GCJ=unsupported
15264           # It fails to find uninstalled libraries when the uninstalled
15265           # path is not listed in the libpath.  Setting hardcode_minus_L
15266           # to unsupported forces relinking
15267           hardcode_minus_L_GCJ=yes
15268           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15269           hardcode_libdir_separator_GCJ=
15270           fi
15271         esac
15272         shared_flag='-shared'
15273       else
15274         # not using gcc
15275         if test "$host_cpu" = ia64; then
15276         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15277         # chokes on -Wl,-G. The following line is correct:
15278           shared_flag='-G'
15279         else
15280         if test "$aix_use_runtimelinking" = yes; then
15281             shared_flag='${wl}-G'
15282           else
15283             shared_flag='${wl}-bM:SRE'
15284         fi
15285         fi
15286       fi
15287
15288       # It seems that -bexpall does not export symbols beginning with
15289       # underscore (_), so it is better to generate a list of symbols to export.
15290       always_export_symbols_GCJ=yes
15291       if test "$aix_use_runtimelinking" = yes; then
15292         # Warning - without using the other runtime loading flags (-brtl),
15293         # -berok will link without error, but may produce a broken library.
15294         allow_undefined_flag_GCJ='-berok'
15295        # Determine the default libpath from the value encoded in an empty executable.
15296        cat >conftest.$ac_ext <<_ACEOF
15297 #line $LINENO "configure"
15298 #include "confdefs.h"
15299
15300 #ifdef F77_DUMMY_MAIN
15301 #  ifdef __cplusplus
15302      extern "C"
15303 #  endif
15304    int F77_DUMMY_MAIN() { return 1; }
15305 #endif
15306 int
15307 main ()
15308 {
15309
15310   ;
15311   return 0;
15312 }
15313 _ACEOF
15314 rm -f conftest.$ac_objext conftest$ac_exeext
15315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15316   (eval $ac_link) 2>&5
15317   ac_status=$?
15318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319   (exit $ac_status); } &&
15320          { ac_try='test -s conftest$ac_exeext'
15321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15322   (eval $ac_try) 2>&5
15323   ac_status=$?
15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); }; }; then
15326
15327 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15328 }'`
15329 # Check for a 64-bit object if we didn't find anything.
15330 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; }
15331 }'`; fi
15332 else
15333   echo "$as_me: failed program was:" >&5
15334 cat conftest.$ac_ext >&5
15335 fi
15336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15337 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15338
15339        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15340         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"
15341        else
15342         if test "$host_cpu" = ia64; then
15343           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15344           allow_undefined_flag_GCJ="-z nodefs"
15345           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"
15346         else
15347          # Determine the default libpath from the value encoded in an empty executable.
15348          cat >conftest.$ac_ext <<_ACEOF
15349 #line $LINENO "configure"
15350 #include "confdefs.h"
15351
15352 #ifdef F77_DUMMY_MAIN
15353 #  ifdef __cplusplus
15354      extern "C"
15355 #  endif
15356    int F77_DUMMY_MAIN() { return 1; }
15357 #endif
15358 int
15359 main ()
15360 {
15361
15362   ;
15363   return 0;
15364 }
15365 _ACEOF
15366 rm -f conftest.$ac_objext conftest$ac_exeext
15367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15368   (eval $ac_link) 2>&5
15369   ac_status=$?
15370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371   (exit $ac_status); } &&
15372          { ac_try='test -s conftest$ac_exeext'
15373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374   (eval $ac_try) 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); }; }; then
15378
15379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15380 }'`
15381 # Check for a 64-bit object if we didn't find anything.
15382 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; }
15383 }'`; fi
15384 else
15385   echo "$as_me: failed program was:" >&5
15386 cat conftest.$ac_ext >&5
15387 fi
15388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15389 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15390
15391          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15392           # Warning - without using the other run time loading flags,
15393           # -berok will link without error, but may produce a broken library.
15394           no_undefined_flag_GCJ=' ${wl}-bernotok'
15395           allow_undefined_flag_GCJ=' ${wl}-berok'
15396           # -bexpall does not export symbols beginning with underscore (_)
15397           always_export_symbols_GCJ=yes
15398           # Exported symbols can be pulled into shared objects from archives
15399           whole_archive_flag_spec_GCJ=' '
15400           archive_cmds_need_lc_GCJ=yes
15401           # This is similar to how AIX traditionally builds it's shared libraries.
15402           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'
15403         fi
15404       fi
15405       ;;
15406
15407     amigaos*)
15408       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)'
15409       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15410       hardcode_minus_L_GCJ=yes
15411       # see comment about different semantics on the GNU ld section
15412       ld_shlibs_GCJ=no
15413       ;;
15414
15415     bsdi4*)
15416       export_dynamic_flag_spec_GCJ=-rdynamic
15417       ;;
15418
15419     cygwin* | mingw* | pw32*)
15420       # When not using gcc, we currently assume that we are using
15421       # Microsoft Visual C++.
15422       # hardcode_libdir_flag_spec is actually meaningless, as there is
15423       # no search path for DLLs.
15424       hardcode_libdir_flag_spec_GCJ=' '
15425       allow_undefined_flag_GCJ=unsupported
15426       # Tell ltmain to make .lib files, not .a files.
15427       libext=lib
15428       # Tell ltmain to make .dll files, not .so files.
15429       shrext=".dll"
15430       # FIXME: Setting linknames here is a bad hack.
15431       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15432       # The linker will automatically build a .lib file if we build a DLL.
15433       old_archive_From_new_cmds_GCJ='true'
15434       # FIXME: Should let the user specify the lib program.
15435       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15436       fix_srcfile_path='`cygpath -w "$srcfile"`'
15437       enable_shared_with_static_runtimes_GCJ=yes
15438       ;;
15439
15440     darwin* | rhapsody*)
15441     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15442       archive_cmds_need_lc_GCJ=no
15443       case "$host_os" in
15444       rhapsody* | darwin1.[012])
15445         allow_undefined_flag_GCJ='-undefined suppress'
15446         ;;
15447       *) # Darwin 1.3 on
15448         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15449         ;;
15450       esac
15451       # FIXME: Relying on posixy $() will cause problems for
15452       #        cross-compilation, but unfortunately the echo tests do not
15453       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
15454       #        `"' quotes if we put them in here... so don't!
15455         lt_int_apple_cc_single_mod=no
15456         output_verbose_link_cmd='echo'
15457         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15458           lt_int_apple_cc_single_mod=yes
15459         fi
15460         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15461           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15462         else
15463         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'
15464       fi
15465       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15466       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15467         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15468           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}'
15469         else
15470           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}'
15471         fi
15472           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}'
15473       hardcode_direct_GCJ=no
15474       hardcode_automatic_GCJ=yes
15475       hardcode_shlibpath_var_GCJ=unsupported
15476       whole_archive_flag_spec_GCJ='-all_load $convenience'
15477       link_all_deplibs_GCJ=yes
15478     fi
15479       ;;
15480
15481     dgux*)
15482       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15483       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15484       hardcode_shlibpath_var_GCJ=no
15485       ;;
15486
15487     freebsd1*)
15488       ld_shlibs_GCJ=no
15489       ;;
15490
15491     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15492     # support.  Future versions do this automatically, but an explicit c++rt0.o
15493     # does not break anything, and helps significantly (at the cost of a little
15494     # extra space).
15495     freebsd2.2*)
15496       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15497       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15498       hardcode_direct_GCJ=yes
15499       hardcode_shlibpath_var_GCJ=no
15500       ;;
15501
15502     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15503     freebsd2*)
15504       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15505       hardcode_direct_GCJ=yes
15506       hardcode_minus_L_GCJ=yes
15507       hardcode_shlibpath_var_GCJ=no
15508       ;;
15509
15510     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15511     freebsd*)
15512       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15513       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15514       hardcode_direct_GCJ=yes
15515       hardcode_shlibpath_var_GCJ=no
15516       ;;
15517
15518     hpux9*)
15519       if test "$GCC" = yes; then
15520         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'
15521       else
15522         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'
15523       fi
15524       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15525       hardcode_libdir_separator_GCJ=:
15526       hardcode_direct_GCJ=yes
15527
15528       # hardcode_minus_L: Not really in the search PATH,
15529       # but as the default location of the library.
15530       hardcode_minus_L_GCJ=yes
15531       export_dynamic_flag_spec_GCJ='${wl}-E'
15532       ;;
15533
15534     hpux10* | hpux11*)
15535       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15536         case "$host_cpu" in
15537         hppa*64*|ia64*)
15538           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15539           ;;
15540         *)
15541           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15542           ;;
15543         esac
15544       else
15545         case "$host_cpu" in
15546         hppa*64*|ia64*)
15547           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15548           ;;
15549         *)
15550           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15551           ;;
15552         esac
15553       fi
15554       if test "$with_gnu_ld" = no; then
15555         case "$host_cpu" in
15556         hppa*64*)
15557           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15558           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15559           hardcode_libdir_separator_GCJ=:
15560           hardcode_direct_GCJ=no
15561           hardcode_shlibpath_var_GCJ=no
15562           ;;
15563         ia64*)
15564           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15565           hardcode_direct_GCJ=no
15566           hardcode_shlibpath_var_GCJ=no
15567
15568           # hardcode_minus_L: Not really in the search PATH,
15569           # but as the default location of the library.
15570           hardcode_minus_L_GCJ=yes
15571           ;;
15572         *)
15573           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15574           hardcode_libdir_separator_GCJ=:
15575           hardcode_direct_GCJ=yes
15576           export_dynamic_flag_spec_GCJ='${wl}-E'
15577
15578           # hardcode_minus_L: Not really in the search PATH,
15579           # but as the default location of the library.
15580           hardcode_minus_L_GCJ=yes
15581           ;;
15582         esac
15583       fi
15584       ;;
15585
15586     irix5* | irix6* | nonstopux*)
15587       if test "$GCC" = yes; then
15588         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'
15589       else
15590         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'
15591         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15592       fi
15593       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15594       hardcode_libdir_separator_GCJ=:
15595       link_all_deplibs_GCJ=yes
15596       ;;
15597
15598     netbsd*)
15599       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15600         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15601       else
15602         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15603       fi
15604       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15605       hardcode_direct_GCJ=yes
15606       hardcode_shlibpath_var_GCJ=no
15607       ;;
15608
15609     newsos6)
15610       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15611       hardcode_direct_GCJ=yes
15612       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15613       hardcode_libdir_separator_GCJ=:
15614       hardcode_shlibpath_var_GCJ=no
15615       ;;
15616
15617     openbsd*)
15618       hardcode_direct_GCJ=yes
15619       hardcode_shlibpath_var_GCJ=no
15620       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15621         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15622         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15623         export_dynamic_flag_spec_GCJ='${wl}-E'
15624       else
15625        case $host_os in
15626          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15627            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15628            hardcode_libdir_flag_spec_GCJ='-R$libdir'
15629            ;;
15630          *)
15631            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15632            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15633            ;;
15634        esac
15635       fi
15636       ;;
15637
15638     os2*)
15639       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15640       hardcode_minus_L_GCJ=yes
15641       allow_undefined_flag_GCJ=unsupported
15642       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'
15643       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15644       ;;
15645
15646     osf3*)
15647       if test "$GCC" = yes; then
15648         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15649         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'
15650       else
15651         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15652         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'
15653       fi
15654       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15655       hardcode_libdir_separator_GCJ=:
15656       ;;
15657
15658     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15659       if test "$GCC" = yes; then
15660         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15661         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'
15662         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15663       else
15664         allow_undefined_flag_GCJ=' -expect_unresolved \*'
15665         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'
15666         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~
15667         $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'
15668
15669         # Both c and cxx compiler support -rpath directly
15670         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15671       fi
15672       hardcode_libdir_separator_GCJ=:
15673       ;;
15674
15675     sco3.2v5*)
15676       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677       hardcode_shlibpath_var_GCJ=no
15678       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15679       runpath_var=LD_RUN_PATH
15680       hardcode_runpath_var=yes
15681       ;;
15682
15683     solaris*)
15684       no_undefined_flag_GCJ=' -z text'
15685       if test "$GCC" = yes; then
15686         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15687         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15688           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15689       else
15690         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15692         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15693       fi
15694       hardcode_libdir_flag_spec_GCJ='-R$libdir'
15695       hardcode_shlibpath_var_GCJ=no
15696       case $host_os in
15697       solaris2.[0-5] | solaris2.[0-5].*) ;;
15698       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15699         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15700       esac
15701       link_all_deplibs_GCJ=yes
15702       ;;
15703
15704     sunos4*)
15705       if test "x$host_vendor" = xsequent; then
15706         # Use $CC to link under sequent, because it throws in some extra .o
15707         # files that make .init and .fini sections work.
15708         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15709       else
15710         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15711       fi
15712       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15713       hardcode_direct_GCJ=yes
15714       hardcode_minus_L_GCJ=yes
15715       hardcode_shlibpath_var_GCJ=no
15716       ;;
15717
15718     sysv4)
15719       case $host_vendor in
15720         sni)
15721           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15722           hardcode_direct_GCJ=yes # is this really true???
15723         ;;
15724         siemens)
15725           ## LD is ld it makes a PLAMLIB
15726           ## CC just makes a GrossModule.
15727           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15728           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15729           hardcode_direct_GCJ=no
15730         ;;
15731         motorola)
15732           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15734         ;;
15735       esac
15736       runpath_var='LD_RUN_PATH'
15737       hardcode_shlibpath_var_GCJ=no
15738       ;;
15739
15740     sysv4.3*)
15741       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15742       hardcode_shlibpath_var_GCJ=no
15743       export_dynamic_flag_spec_GCJ='-Bexport'
15744       ;;
15745
15746     sysv4*MP*)
15747       if test -d /usr/nec; then
15748         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749         hardcode_shlibpath_var_GCJ=no
15750         runpath_var=LD_RUN_PATH
15751         hardcode_runpath_var=yes
15752         ld_shlibs_GCJ=yes
15753       fi
15754       ;;
15755
15756     sysv4.2uw2*)
15757       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15758       hardcode_direct_GCJ=yes
15759       hardcode_minus_L_GCJ=no
15760       hardcode_shlibpath_var_GCJ=no
15761       hardcode_runpath_var=yes
15762       runpath_var=LD_RUN_PATH
15763       ;;
15764
15765    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15766       no_undefined_flag_GCJ='${wl}-z ${wl}text'
15767       if test "$GCC" = yes; then
15768         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15769       else
15770         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15771       fi
15772       runpath_var='LD_RUN_PATH'
15773       hardcode_shlibpath_var_GCJ=no
15774       ;;
15775
15776     sysv5*)
15777       no_undefined_flag_GCJ=' -z text'
15778       # $CC -shared without GNU ld will not create a library from C++
15779       # object files and a static libstdc++, better avoid it by now
15780       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15781       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15782                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15783       hardcode_libdir_flag_spec_GCJ=
15784       hardcode_shlibpath_var_GCJ=no
15785       runpath_var='LD_RUN_PATH'
15786       ;;
15787
15788     uts4*)
15789       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15790       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15791       hardcode_shlibpath_var_GCJ=no
15792       ;;
15793
15794     *)
15795       ld_shlibs_GCJ=no
15796       ;;
15797     esac
15798   fi
15799
15800 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15801 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15802 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15803
15804 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15805 if test "$GCC" = yes; then
15806   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15807 fi
15808
15809 #
15810 # Do we need to explicitly link libc?
15811 #
15812 case "x$archive_cmds_need_lc_GCJ" in
15813 x|xyes)
15814   # Assume -lc should be added
15815   archive_cmds_need_lc_GCJ=yes
15816
15817   if test "$enable_shared" = yes && test "$GCC" = yes; then
15818     case $archive_cmds_GCJ in
15819     *'~'*)
15820       # FIXME: we may have to deal with multi-command sequences.
15821       ;;
15822     '$CC '*)
15823       # Test whether the compiler implicitly links with -lc since on some
15824       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15825       # to ld, don't add -lc before -lgcc.
15826       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15827 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15828       $rm conftest*
15829       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15830
15831       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15832   (eval $ac_compile) 2>&5
15833   ac_status=$?
15834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); } 2>conftest.err; then
15836         soname=conftest
15837         lib=conftest
15838         libobjs=conftest.$ac_objext
15839         deplibs=
15840         wl=$lt_prog_compiler_wl_GCJ
15841         compiler_flags=-v
15842         linker_flags=-v
15843         verstring=
15844         output_objdir=.
15845         libname=conftest
15846         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15847         allow_undefined_flag_GCJ=
15848         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15849   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15850   ac_status=$?
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); }
15853         then
15854           archive_cmds_need_lc_GCJ=no
15855         else
15856           archive_cmds_need_lc_GCJ=yes
15857         fi
15858         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15859       else
15860         cat conftest.err 1>&5
15861       fi
15862       $rm conftest*
15863       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15864 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15865       ;;
15866     esac
15867   fi
15868   ;;
15869 esac
15870
15871 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15872 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15873 hardcode_action_GCJ=
15874 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15875    test -n "$runpath_var GCJ" || \
15876    test "X$hardcode_automatic_GCJ"="Xyes" ; then
15877
15878   # We can hardcode non-existant directories.
15879   if test "$hardcode_direct_GCJ" != no &&
15880      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15881      # have to relink, otherwise we might link with an installed library
15882      # when we should be linking with a yet-to-be-installed one
15883      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15884      test "$hardcode_minus_L_GCJ" != no; then
15885     # Linking always hardcodes the temporary library directory.
15886     hardcode_action_GCJ=relink
15887   else
15888     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15889     hardcode_action_GCJ=immediate
15890   fi
15891 else
15892   # We cannot hardcode anything, or else we can only hardcode existing
15893   # directories.
15894   hardcode_action_GCJ=unsupported
15895 fi
15896 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15897 echo "${ECHO_T}$hardcode_action_GCJ" >&6
15898
15899 if test "$hardcode_action_GCJ" = relink; then
15900   # Fast installation is not supported
15901   enable_fast_install=no
15902 elif test "$shlibpath_overrides_runpath" = yes ||
15903      test "$enable_shared" = no; then
15904   # Fast installation is not necessary
15905   enable_fast_install=needless
15906 fi
15907
15908 striplib=
15909 old_striplib=
15910 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15911 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15912 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15913   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15914   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15915   echo "$as_me:$LINENO: result: yes" >&5
15916 echo "${ECHO_T}yes" >&6
15917 else
15918 # FIXME - insert some real tests, host_os isn't really good enough
15919   case $host_os in
15920    darwin*)
15921        if test -n "$STRIP" ; then
15922          striplib="$STRIP -x"
15923          echo "$as_me:$LINENO: result: yes" >&5
15924 echo "${ECHO_T}yes" >&6
15925        else
15926   echo "$as_me:$LINENO: result: no" >&5
15927 echo "${ECHO_T}no" >&6
15928 fi
15929        ;;
15930    *)
15931   echo "$as_me:$LINENO: result: no" >&5
15932 echo "${ECHO_T}no" >&6
15933     ;;
15934   esac
15935 fi
15936
15937 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15938 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15939 library_names_spec=
15940 libname_spec='lib$name'
15941 soname_spec=
15942 shrext=".so"
15943 postinstall_cmds=
15944 postuninstall_cmds=
15945 finish_cmds=
15946 finish_eval=
15947 shlibpath_var=
15948 shlibpath_overrides_runpath=unknown
15949 version_type=none
15950 dynamic_linker="$host_os ld.so"
15951 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15952 if test "$GCC" = yes; then
15953   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15954   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15955     # if the path contains ";" then we assume it to be the separator
15956     # otherwise default to the standard path separator (i.e. ":") - it is
15957     # assumed that no part of a normal pathname contains ";" but that should
15958     # okay in the real world where ";" in dirpaths is itself problematic.
15959     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15960   else
15961     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15962   fi
15963 else
15964   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15965 fi
15966 need_lib_prefix=unknown
15967 hardcode_into_libs=no
15968
15969 # when you set need_version to no, make sure it does not cause -set_version
15970 # flags to be left without arguments
15971 need_version=unknown
15972
15973 case $host_os in
15974 aix3*)
15975   version_type=linux
15976   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15977   shlibpath_var=LIBPATH
15978
15979   # AIX 3 has no versioning support, so we append a major version to the name.
15980   soname_spec='${libname}${release}${shared_ext}$major'
15981   ;;
15982
15983 aix4* | aix5*)
15984   version_type=linux
15985   need_lib_prefix=no
15986   need_version=no
15987   hardcode_into_libs=yes
15988   if test "$host_cpu" = ia64; then
15989     # AIX 5 supports IA64
15990     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15991     shlibpath_var=LD_LIBRARY_PATH
15992   else
15993     # With GCC up to 2.95.x, collect2 would create an import file
15994     # for dependence libraries.  The import file would start with
15995     # the line `#! .'.  This would cause the generated library to
15996     # depend on `.', always an invalid library.  This was fixed in
15997     # development snapshots of GCC prior to 3.0.
15998     case $host_os in
15999       aix4 | aix4.[01] | aix4.[01].*)
16000       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16001            echo ' yes '
16002            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16003         :
16004       else
16005         can_build_shared=no
16006       fi
16007       ;;
16008     esac
16009     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16010     # soname into executable. Probably we can add versioning support to
16011     # collect2, so additional links can be useful in future.
16012     if test "$aix_use_runtimelinking" = yes; then
16013       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16014       # instead of lib<name>.a to let people know that these are not
16015       # typical AIX shared libraries.
16016       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16017     else
16018       # We preserve .a as extension for shared libraries through AIX4.2
16019       # and later when we are not doing run time linking.
16020       library_names_spec='${libname}${release}.a $libname.a'
16021       soname_spec='${libname}${release}${shared_ext}$major'
16022     fi
16023     shlibpath_var=LIBPATH
16024   fi
16025   ;;
16026
16027 amigaos*)
16028   library_names_spec='$libname.ixlibrary $libname.a'
16029   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16030   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'
16031   ;;
16032
16033 beos*)
16034   library_names_spec='${libname}${shared_ext}'
16035   dynamic_linker="$host_os ld.so"
16036   shlibpath_var=LIBRARY_PATH
16037   ;;
16038
16039 bsdi4*)
16040   version_type=linux
16041   need_version=no
16042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043   soname_spec='${libname}${release}${shared_ext}$major'
16044   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16045   shlibpath_var=LD_LIBRARY_PATH
16046   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16047   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16048   # the default ld.so.conf also contains /usr/contrib/lib and
16049   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16050   # libtool to hard-code these into programs
16051   ;;
16052
16053 cygwin* | mingw* | pw32*)
16054   version_type=windows
16055   shrext=".dll"
16056   need_version=no
16057   need_lib_prefix=no
16058
16059   case $GCC,$host_os in
16060   yes,cygwin* | yes,mingw* | yes,pw32*)
16061     library_names_spec='$libname.dll.a'
16062     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16063     postinstall_cmds='base_file=`basename \${file}`~
16064       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16065       dldir=$destdir/`dirname \$dlpath`~
16066       test -d \$dldir || mkdir -p \$dldir~
16067       $install_prog $dir/$dlname \$dldir/$dlname'
16068     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16069       dlpath=$dir/\$dldll~
16070        $rm \$dlpath'
16071     shlibpath_overrides_runpath=yes
16072
16073     case $host_os in
16074     cygwin*)
16075       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16076       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16077       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16078       ;;
16079     mingw*)
16080       # MinGW DLLs use traditional 'lib' prefix
16081       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16082       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16083       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16084         # It is most probably a Windows format PATH printed by
16085         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16086         # path with ; separators, and with drive letters. We can handle the
16087         # drive letters (cygwin fileutils understands them), so leave them,
16088         # especially as we might pass files found there to a mingw objdump,
16089         # which wouldn't understand a cygwinified path. Ahh.
16090         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16091       else
16092         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16093       fi
16094       ;;
16095     pw32*)
16096       # pw32 DLLs use 'pw' prefix rather than 'lib'
16097       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16098       ;;
16099     esac
16100     ;;
16101
16102   *)
16103     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16104     ;;
16105   esac
16106   dynamic_linker='Win32 ld.exe'
16107   # FIXME: first we should search . and the directory the executable is in
16108   shlibpath_var=PATH
16109   ;;
16110
16111 darwin* | rhapsody*)
16112   dynamic_linker="$host_os dyld"
16113   version_type=darwin
16114   need_lib_prefix=no
16115   need_version=no
16116   # FIXME: Relying on posixy $() will cause problems for
16117   #        cross-compilation, but unfortunately the echo tests do not
16118   #        yet detect zsh echo's removal of \ escapes.
16119   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16120   soname_spec='${libname}${release}${major}$shared_ext'
16121   shlibpath_overrides_runpath=yes
16122   shlibpath_var=DYLD_LIBRARY_PATH
16123   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16124   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16125   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16126   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"`
16127   fi
16128   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16129   ;;
16130
16131 dgux*)
16132   version_type=linux
16133   need_lib_prefix=no
16134   need_version=no
16135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16136   soname_spec='${libname}${release}${shared_ext}$major'
16137   shlibpath_var=LD_LIBRARY_PATH
16138   ;;
16139
16140 freebsd1*)
16141   dynamic_linker=no
16142   ;;
16143
16144 freebsd*)
16145   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16146   version_type=freebsd-$objformat
16147   case $version_type in
16148     freebsd-elf*)
16149       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16150       need_version=no
16151       need_lib_prefix=no
16152       ;;
16153     freebsd-*)
16154       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16155       need_version=yes
16156       ;;
16157   esac
16158   shlibpath_var=LD_LIBRARY_PATH
16159   case $host_os in
16160   freebsd2*)
16161     shlibpath_overrides_runpath=yes
16162     ;;
16163   freebsd3.01* | freebsdelf3.01*)
16164     shlibpath_overrides_runpath=yes
16165     hardcode_into_libs=yes
16166     ;;
16167   *) # from 3.2 on
16168     shlibpath_overrides_runpath=no
16169     hardcode_into_libs=yes
16170     ;;
16171   esac
16172   ;;
16173
16174 gnu*)
16175   version_type=linux
16176   need_lib_prefix=no
16177   need_version=no
16178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16179   soname_spec='${libname}${release}${shared_ext}$major'
16180   shlibpath_var=LD_LIBRARY_PATH
16181   hardcode_into_libs=yes
16182   ;;
16183
16184 hpux9* | hpux10* | hpux11*)
16185   # Give a soname corresponding to the major version so that dld.sl refuses to
16186   # link against other versions.
16187   version_type=sunos
16188   need_lib_prefix=no
16189   need_version=no
16190   case "$host_cpu" in
16191   ia64*)
16192     shrext='.so'
16193     hardcode_into_libs=yes
16194     dynamic_linker="$host_os dld.so"
16195     shlibpath_var=LD_LIBRARY_PATH
16196     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16197     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198     soname_spec='${libname}${release}${shared_ext}$major'
16199     if test "X$HPUX_IA64_MODE" = X32; then
16200       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16201     else
16202       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16203     fi
16204     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16205     ;;
16206    hppa*64*)
16207      shrext='.sl'
16208      hardcode_into_libs=yes
16209      dynamic_linker="$host_os dld.sl"
16210      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16211      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16212      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213      soname_spec='${libname}${release}${shared_ext}$major'
16214      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16215      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16216      ;;
16217    *)
16218     shrext='.sl'
16219     dynamic_linker="$host_os dld.sl"
16220     shlibpath_var=SHLIB_PATH
16221     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16223     soname_spec='${libname}${release}${shared_ext}$major'
16224     ;;
16225   esac
16226   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16227   postinstall_cmds='chmod 555 $lib'
16228   ;;
16229
16230 irix5* | irix6* | nonstopux*)
16231   case $host_os in
16232     nonstopux*) version_type=nonstopux ;;
16233     *)
16234         if test "$lt_cv_prog_gnu_ld" = yes; then
16235                 version_type=linux
16236         else
16237                 version_type=irix
16238         fi ;;
16239   esac
16240   need_lib_prefix=no
16241   need_version=no
16242   soname_spec='${libname}${release}${shared_ext}$major'
16243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16244   case $host_os in
16245   irix5* | nonstopux*)
16246     libsuff= shlibsuff=
16247     ;;
16248   *)
16249     case $LD in # libtool.m4 will add one of these switches to LD
16250     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16251       libsuff= shlibsuff= libmagic=32-bit;;
16252     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16253       libsuff=32 shlibsuff=N32 libmagic=N32;;
16254     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16255       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16256     *) libsuff= shlibsuff= libmagic=never-match;;
16257     esac
16258     ;;
16259   esac
16260   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16261   shlibpath_overrides_runpath=no
16262   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16263   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16264   hardcode_into_libs=yes
16265   ;;
16266
16267 # No shared lib support for Linux oldld, aout, or coff.
16268 linux*oldld* | linux*aout* | linux*coff*)
16269   dynamic_linker=no
16270   ;;
16271
16272 # This must be Linux ELF.
16273 linux*)
16274   version_type=linux
16275   need_lib_prefix=no
16276   need_version=no
16277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278   soname_spec='${libname}${release}${shared_ext}$major'
16279   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16280   shlibpath_var=LD_LIBRARY_PATH
16281   shlibpath_overrides_runpath=no
16282   # This implies no fast_install, which is unacceptable.
16283   # Some rework will be needed to allow for fast_install
16284   # before this can be enabled.
16285   hardcode_into_libs=yes
16286
16287   # We used to test for /lib/ld.so.1 and disable shared libraries on
16288   # powerpc, because MkLinux only supported shared libraries with the
16289   # GNU dynamic linker.  Since this was broken with cross compilers,
16290   # most powerpc-linux boxes support dynamic linking these days and
16291   # people can always --disable-shared, the test was removed, and we
16292   # assume the GNU/Linux dynamic linker is in use.
16293   dynamic_linker='GNU/Linux ld.so'
16294   ;;
16295
16296 netbsd*)
16297   version_type=sunos
16298   need_lib_prefix=no
16299   need_version=no
16300   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16301     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16302     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16303     dynamic_linker='NetBSD (a.out) ld.so'
16304   else
16305     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16306     soname_spec='${libname}${release}${shared_ext}$major'
16307     dynamic_linker='NetBSD ld.elf_so'
16308   fi
16309   shlibpath_var=LD_LIBRARY_PATH
16310   shlibpath_overrides_runpath=yes
16311   hardcode_into_libs=yes
16312   ;;
16313
16314 newsos6)
16315   version_type=linux
16316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16317   shlibpath_var=LD_LIBRARY_PATH
16318   shlibpath_overrides_runpath=yes
16319   ;;
16320
16321 nto-qnx)
16322   version_type=linux
16323   need_lib_prefix=no
16324   need_version=no
16325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326   soname_spec='${libname}${release}${shared_ext}$major'
16327   shlibpath_var=LD_LIBRARY_PATH
16328   shlibpath_overrides_runpath=yes
16329   ;;
16330
16331 openbsd*)
16332   version_type=sunos
16333   need_lib_prefix=no
16334   need_version=no
16335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16336   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16337   shlibpath_var=LD_LIBRARY_PATH
16338   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16339     case $host_os in
16340       openbsd2.[89] | openbsd2.[89].*)
16341         shlibpath_overrides_runpath=no
16342         ;;
16343       *)
16344         shlibpath_overrides_runpath=yes
16345         ;;
16346       esac
16347   else
16348     shlibpath_overrides_runpath=yes
16349   fi
16350   ;;
16351
16352 os2*)
16353   libname_spec='$name'
16354   shrext=".dll"
16355   need_lib_prefix=no
16356   library_names_spec='$libname${shared_ext} $libname.a'
16357   dynamic_linker='OS/2 ld.exe'
16358   shlibpath_var=LIBPATH
16359   ;;
16360
16361 osf3* | osf4* | osf5*)
16362   version_type=osf
16363   need_lib_prefix=no
16364   need_version=no
16365   soname_spec='${libname}${release}${shared_ext}$major'
16366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16367   shlibpath_var=LD_LIBRARY_PATH
16368   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16369   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16370   ;;
16371
16372 sco3.2v5*)
16373   version_type=osf
16374   soname_spec='${libname}${release}${shared_ext}$major'
16375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16376   shlibpath_var=LD_LIBRARY_PATH
16377   ;;
16378
16379 solaris*)
16380   version_type=linux
16381   need_lib_prefix=no
16382   need_version=no
16383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384   soname_spec='${libname}${release}${shared_ext}$major'
16385   shlibpath_var=LD_LIBRARY_PATH
16386   shlibpath_overrides_runpath=yes
16387   hardcode_into_libs=yes
16388   # ldd complains unless libraries are executable
16389   postinstall_cmds='chmod +x $lib'
16390   ;;
16391
16392 sunos4*)
16393   version_type=sunos
16394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16395   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16396   shlibpath_var=LD_LIBRARY_PATH
16397   shlibpath_overrides_runpath=yes
16398   if test "$with_gnu_ld" = yes; then
16399     need_lib_prefix=no
16400   fi
16401   need_version=yes
16402   ;;
16403
16404 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16405   version_type=linux
16406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407   soname_spec='${libname}${release}${shared_ext}$major'
16408   shlibpath_var=LD_LIBRARY_PATH
16409   case $host_vendor in
16410     sni)
16411       shlibpath_overrides_runpath=no
16412       need_lib_prefix=no
16413       export_dynamic_flag_spec='${wl}-Blargedynsym'
16414       runpath_var=LD_RUN_PATH
16415       ;;
16416     siemens)
16417       need_lib_prefix=no
16418       ;;
16419     motorola)
16420       need_lib_prefix=no
16421       need_version=no
16422       shlibpath_overrides_runpath=no
16423       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16424       ;;
16425   esac
16426   ;;
16427
16428 sysv4*MP*)
16429   if test -d /usr/nec ;then
16430     version_type=linux
16431     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16432     soname_spec='$libname${shared_ext}.$major'
16433     shlibpath_var=LD_LIBRARY_PATH
16434   fi
16435   ;;
16436
16437 uts4*)
16438   version_type=linux
16439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16440   soname_spec='${libname}${release}${shared_ext}$major'
16441   shlibpath_var=LD_LIBRARY_PATH
16442   ;;
16443
16444 *)
16445   dynamic_linker=no
16446   ;;
16447 esac
16448 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16449 echo "${ECHO_T}$dynamic_linker" >&6
16450 test "$dynamic_linker" = no && can_build_shared=no
16451
16452 if test "x$enable_dlopen" != xyes; then
16453   enable_dlopen=unknown
16454   enable_dlopen_self=unknown
16455   enable_dlopen_self_static=unknown
16456 else
16457   lt_cv_dlopen=no
16458   lt_cv_dlopen_libs=
16459
16460   case $host_os in
16461   beos*)
16462     lt_cv_dlopen="load_add_on"
16463     lt_cv_dlopen_libs=
16464     lt_cv_dlopen_self=yes
16465     ;;
16466
16467   mingw* | pw32*)
16468     lt_cv_dlopen="LoadLibrary"
16469     lt_cv_dlopen_libs=
16470    ;;
16471
16472   cygwin*)
16473     lt_cv_dlopen="dlopen"
16474     lt_cv_dlopen_libs=
16475    ;;
16476
16477   darwin*)
16478   # if libdl is installed we need to link against it
16479     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16480 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16481 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16482   echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484   ac_check_lib_save_LIBS=$LIBS
16485 LIBS="-ldl  $LIBS"
16486 cat >conftest.$ac_ext <<_ACEOF
16487 #line $LINENO "configure"
16488 #include "confdefs.h"
16489
16490 /* Override any gcc2 internal prototype to avoid an error.  */
16491 #ifdef __cplusplus
16492 extern "C"
16493 #endif
16494 /* We use char because int might match the return type of a gcc2
16495    builtin and then its argument prototype would still apply.  */
16496 char dlopen ();
16497 #ifdef F77_DUMMY_MAIN
16498 #  ifdef __cplusplus
16499      extern "C"
16500 #  endif
16501    int F77_DUMMY_MAIN() { return 1; }
16502 #endif
16503 int
16504 main ()
16505 {
16506 dlopen ();
16507   ;
16508   return 0;
16509 }
16510 _ACEOF
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16513   (eval $ac_link) 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); } &&
16517          { ac_try='test -s conftest$ac_exeext'
16518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519   (eval $ac_try) 2>&5
16520   ac_status=$?
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); }; }; then
16523   ac_cv_lib_dl_dlopen=yes
16524 else
16525   echo "$as_me: failed program was:" >&5
16526 cat conftest.$ac_ext >&5
16527 ac_cv_lib_dl_dlopen=no
16528 fi
16529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16530 LIBS=$ac_check_lib_save_LIBS
16531 fi
16532 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16533 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16534 if test $ac_cv_lib_dl_dlopen = yes; then
16535   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16536 else
16537
16538     lt_cv_dlopen="dyld"
16539     lt_cv_dlopen_libs=
16540     lt_cv_dlopen_self=yes
16541
16542 fi
16543
16544    ;;
16545
16546   *)
16547     echo "$as_me:$LINENO: checking for shl_load" >&5
16548 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16549 if test "${ac_cv_func_shl_load+set}" = set; then
16550   echo $ECHO_N "(cached) $ECHO_C" >&6
16551 else
16552   cat >conftest.$ac_ext <<_ACEOF
16553 #line $LINENO "configure"
16554 #include "confdefs.h"
16555 /* System header to define __stub macros and hopefully few prototypes,
16556     which can conflict with char shl_load (); below.  */
16557 #include <assert.h>
16558 /* Override any gcc2 internal prototype to avoid an error.  */
16559 #ifdef __cplusplus
16560 extern "C"
16561 #endif
16562 /* We use char because int might match the return type of a gcc2
16563    builtin and then its argument prototype would still apply.  */
16564 char shl_load ();
16565 char (*f) ();
16566
16567 #ifdef F77_DUMMY_MAIN
16568 #  ifdef __cplusplus
16569      extern "C"
16570 #  endif
16571    int F77_DUMMY_MAIN() { return 1; }
16572 #endif
16573 int
16574 main ()
16575 {
16576 /* The GNU C library defines this for functions which it implements
16577     to always fail with ENOSYS.  Some functions are actually named
16578     something starting with __ and the normal name is an alias.  */
16579 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16580 choke me
16581 #else
16582 f = shl_load;
16583 #endif
16584
16585   ;
16586   return 0;
16587 }
16588 _ACEOF
16589 rm -f conftest.$ac_objext conftest$ac_exeext
16590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16591   (eval $ac_link) 2>&5
16592   ac_status=$?
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); } &&
16595          { ac_try='test -s conftest$ac_exeext'
16596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597   (eval $ac_try) 2>&5
16598   ac_status=$?
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); }; }; then
16601   ac_cv_func_shl_load=yes
16602 else
16603   echo "$as_me: failed program was:" >&5
16604 cat conftest.$ac_ext >&5
16605 ac_cv_func_shl_load=no
16606 fi
16607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16608 fi
16609 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16610 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16611 if test $ac_cv_func_shl_load = yes; then
16612   lt_cv_dlopen="shl_load"
16613 else
16614   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16615 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16616 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16617   echo $ECHO_N "(cached) $ECHO_C" >&6
16618 else
16619   ac_check_lib_save_LIBS=$LIBS
16620 LIBS="-ldld  $LIBS"
16621 cat >conftest.$ac_ext <<_ACEOF
16622 #line $LINENO "configure"
16623 #include "confdefs.h"
16624
16625 /* Override any gcc2 internal prototype to avoid an error.  */
16626 #ifdef __cplusplus
16627 extern "C"
16628 #endif
16629 /* We use char because int might match the return type of a gcc2
16630    builtin and then its argument prototype would still apply.  */
16631 char shl_load ();
16632 #ifdef F77_DUMMY_MAIN
16633 #  ifdef __cplusplus
16634      extern "C"
16635 #  endif
16636    int F77_DUMMY_MAIN() { return 1; }
16637 #endif
16638 int
16639 main ()
16640 {
16641 shl_load ();
16642   ;
16643   return 0;
16644 }
16645 _ACEOF
16646 rm -f conftest.$ac_objext conftest$ac_exeext
16647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16648   (eval $ac_link) 2>&5
16649   ac_status=$?
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); } &&
16652          { ac_try='test -s conftest$ac_exeext'
16653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654   (eval $ac_try) 2>&5
16655   ac_status=$?
16656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657   (exit $ac_status); }; }; then
16658   ac_cv_lib_dld_shl_load=yes
16659 else
16660   echo "$as_me: failed program was:" >&5
16661 cat conftest.$ac_ext >&5
16662 ac_cv_lib_dld_shl_load=no
16663 fi
16664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16665 LIBS=$ac_check_lib_save_LIBS
16666 fi
16667 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16668 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16669 if test $ac_cv_lib_dld_shl_load = yes; then
16670   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16671 else
16672   echo "$as_me:$LINENO: checking for dlopen" >&5
16673 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16674 if test "${ac_cv_func_dlopen+set}" = set; then
16675   echo $ECHO_N "(cached) $ECHO_C" >&6
16676 else
16677   cat >conftest.$ac_ext <<_ACEOF
16678 #line $LINENO "configure"
16679 #include "confdefs.h"
16680 /* System header to define __stub macros and hopefully few prototypes,
16681     which can conflict with char dlopen (); below.  */
16682 #include <assert.h>
16683 /* Override any gcc2 internal prototype to avoid an error.  */
16684 #ifdef __cplusplus
16685 extern "C"
16686 #endif
16687 /* We use char because int might match the return type of a gcc2
16688    builtin and then its argument prototype would still apply.  */
16689 char dlopen ();
16690 char (*f) ();
16691
16692 #ifdef F77_DUMMY_MAIN
16693 #  ifdef __cplusplus
16694      extern "C"
16695 #  endif
16696    int F77_DUMMY_MAIN() { return 1; }
16697 #endif
16698 int
16699 main ()
16700 {
16701 /* The GNU C library defines this for functions which it implements
16702     to always fail with ENOSYS.  Some functions are actually named
16703     something starting with __ and the normal name is an alias.  */
16704 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16705 choke me
16706 #else
16707 f = dlopen;
16708 #endif
16709
16710   ;
16711   return 0;
16712 }
16713 _ACEOF
16714 rm -f conftest.$ac_objext conftest$ac_exeext
16715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16716   (eval $ac_link) 2>&5
16717   ac_status=$?
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); } &&
16720          { ac_try='test -s conftest$ac_exeext'
16721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722   (eval $ac_try) 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; }; then
16726   ac_cv_func_dlopen=yes
16727 else
16728   echo "$as_me: failed program was:" >&5
16729 cat conftest.$ac_ext >&5
16730 ac_cv_func_dlopen=no
16731 fi
16732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16733 fi
16734 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16735 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16736 if test $ac_cv_func_dlopen = yes; then
16737   lt_cv_dlopen="dlopen"
16738 else
16739   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16740 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16741 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16742   echo $ECHO_N "(cached) $ECHO_C" >&6
16743 else
16744   ac_check_lib_save_LIBS=$LIBS
16745 LIBS="-ldl  $LIBS"
16746 cat >conftest.$ac_ext <<_ACEOF
16747 #line $LINENO "configure"
16748 #include "confdefs.h"
16749
16750 /* Override any gcc2 internal prototype to avoid an error.  */
16751 #ifdef __cplusplus
16752 extern "C"
16753 #endif
16754 /* We use char because int might match the return type of a gcc2
16755    builtin and then its argument prototype would still apply.  */
16756 char dlopen ();
16757 #ifdef F77_DUMMY_MAIN
16758 #  ifdef __cplusplus
16759      extern "C"
16760 #  endif
16761    int F77_DUMMY_MAIN() { return 1; }
16762 #endif
16763 int
16764 main ()
16765 {
16766 dlopen ();
16767   ;
16768   return 0;
16769 }
16770 _ACEOF
16771 rm -f conftest.$ac_objext conftest$ac_exeext
16772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16773   (eval $ac_link) 2>&5
16774   ac_status=$?
16775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776   (exit $ac_status); } &&
16777          { ac_try='test -s conftest$ac_exeext'
16778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779   (eval $ac_try) 2>&5
16780   ac_status=$?
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); }; }; then
16783   ac_cv_lib_dl_dlopen=yes
16784 else
16785   echo "$as_me: failed program was:" >&5
16786 cat conftest.$ac_ext >&5
16787 ac_cv_lib_dl_dlopen=no
16788 fi
16789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16790 LIBS=$ac_check_lib_save_LIBS
16791 fi
16792 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16793 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16794 if test $ac_cv_lib_dl_dlopen = yes; then
16795   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16796 else
16797   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16798 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16799 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16800   echo $ECHO_N "(cached) $ECHO_C" >&6
16801 else
16802   ac_check_lib_save_LIBS=$LIBS
16803 LIBS="-lsvld  $LIBS"
16804 cat >conftest.$ac_ext <<_ACEOF
16805 #line $LINENO "configure"
16806 #include "confdefs.h"
16807
16808 /* Override any gcc2 internal prototype to avoid an error.  */
16809 #ifdef __cplusplus
16810 extern "C"
16811 #endif
16812 /* We use char because int might match the return type of a gcc2
16813    builtin and then its argument prototype would still apply.  */
16814 char dlopen ();
16815 #ifdef F77_DUMMY_MAIN
16816 #  ifdef __cplusplus
16817      extern "C"
16818 #  endif
16819    int F77_DUMMY_MAIN() { return 1; }
16820 #endif
16821 int
16822 main ()
16823 {
16824 dlopen ();
16825   ;
16826   return 0;
16827 }
16828 _ACEOF
16829 rm -f conftest.$ac_objext conftest$ac_exeext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16831   (eval $ac_link) 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); } &&
16835          { ac_try='test -s conftest$ac_exeext'
16836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837   (eval $ac_try) 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }; }; then
16841   ac_cv_lib_svld_dlopen=yes
16842 else
16843   echo "$as_me: failed program was:" >&5
16844 cat conftest.$ac_ext >&5
16845 ac_cv_lib_svld_dlopen=no
16846 fi
16847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16848 LIBS=$ac_check_lib_save_LIBS
16849 fi
16850 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16851 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16852 if test $ac_cv_lib_svld_dlopen = yes; then
16853   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16854 else
16855   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16856 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16857 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16858   echo $ECHO_N "(cached) $ECHO_C" >&6
16859 else
16860   ac_check_lib_save_LIBS=$LIBS
16861 LIBS="-ldld  $LIBS"
16862 cat >conftest.$ac_ext <<_ACEOF
16863 #line $LINENO "configure"
16864 #include "confdefs.h"
16865
16866 /* Override any gcc2 internal prototype to avoid an error.  */
16867 #ifdef __cplusplus
16868 extern "C"
16869 #endif
16870 /* We use char because int might match the return type of a gcc2
16871    builtin and then its argument prototype would still apply.  */
16872 char dld_link ();
16873 #ifdef F77_DUMMY_MAIN
16874 #  ifdef __cplusplus
16875      extern "C"
16876 #  endif
16877    int F77_DUMMY_MAIN() { return 1; }
16878 #endif
16879 int
16880 main ()
16881 {
16882 dld_link ();
16883   ;
16884   return 0;
16885 }
16886 _ACEOF
16887 rm -f conftest.$ac_objext conftest$ac_exeext
16888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16889   (eval $ac_link) 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); } &&
16893          { ac_try='test -s conftest$ac_exeext'
16894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895   (eval $ac_try) 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); }; }; then
16899   ac_cv_lib_dld_dld_link=yes
16900 else
16901   echo "$as_me: failed program was:" >&5
16902 cat conftest.$ac_ext >&5
16903 ac_cv_lib_dld_dld_link=no
16904 fi
16905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16906 LIBS=$ac_check_lib_save_LIBS
16907 fi
16908 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16909 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
16910 if test $ac_cv_lib_dld_dld_link = yes; then
16911   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16912 fi
16913
16914
16915 fi
16916
16917
16918 fi
16919
16920
16921 fi
16922
16923
16924 fi
16925
16926
16927 fi
16928
16929     ;;
16930   esac
16931
16932   if test "x$lt_cv_dlopen" != xno; then
16933     enable_dlopen=yes
16934   else
16935     enable_dlopen=no
16936   fi
16937
16938   case $lt_cv_dlopen in
16939   dlopen)
16940     save_CPPFLAGS="$CPPFLAGS"
16941     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16942
16943     save_LDFLAGS="$LDFLAGS"
16944     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16945
16946     save_LIBS="$LIBS"
16947     LIBS="$lt_cv_dlopen_libs $LIBS"
16948
16949     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16950 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
16951 if test "${lt_cv_dlopen_self+set}" = set; then
16952   echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954           if test "$cross_compiling" = yes; then :
16955   lt_cv_dlopen_self=cross
16956 else
16957   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16958   lt_status=$lt_dlunknown
16959   cat > conftest.$ac_ext <<EOF
16960 #line 16960 "configure"
16961 #include "confdefs.h"
16962
16963 #if HAVE_DLFCN_H
16964 #include <dlfcn.h>
16965 #endif
16966
16967 #include <stdio.h>
16968
16969 #ifdef RTLD_GLOBAL
16970 #  define LT_DLGLOBAL           RTLD_GLOBAL
16971 #else
16972 #  ifdef DL_GLOBAL
16973 #    define LT_DLGLOBAL         DL_GLOBAL
16974 #  else
16975 #    define LT_DLGLOBAL         0
16976 #  endif
16977 #endif
16978
16979 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16980    find out it does not work in some platform. */
16981 #ifndef LT_DLLAZY_OR_NOW
16982 #  ifdef RTLD_LAZY
16983 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16984 #  else
16985 #    ifdef DL_LAZY
16986 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16987 #    else
16988 #      ifdef RTLD_NOW
16989 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16990 #      else
16991 #        ifdef DL_NOW
16992 #          define LT_DLLAZY_OR_NOW      DL_NOW
16993 #        else
16994 #          define LT_DLLAZY_OR_NOW      0
16995 #        endif
16996 #      endif
16997 #    endif
16998 #  endif
16999 #endif
17000
17001 #ifdef __cplusplus
17002 extern "C" void exit (int);
17003 #endif
17004
17005 void fnord() { int i=42;}
17006 int main ()
17007 {
17008   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17009   int status = $lt_dlunknown;
17010
17011   if (self)
17012     {
17013       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17014       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17015       /* dlclose (self); */
17016     }
17017
17018     exit (status);
17019 }
17020 EOF
17021   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17022   (eval $ac_link) 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17026     (./conftest; exit; ) 2>/dev/null
17027     lt_status=$?
17028     case x$lt_status in
17029       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17030       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17031       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17032     esac
17033   else :
17034     # compilation failed
17035     lt_cv_dlopen_self=no
17036   fi
17037 fi
17038 rm -fr conftest*
17039
17040
17041 fi
17042 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17043 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17044
17045     if test "x$lt_cv_dlopen_self" = xyes; then
17046       LDFLAGS="$LDFLAGS $link_static_flag"
17047       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17048 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17049 if test "${lt_cv_dlopen_self_static+set}" = set; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052           if test "$cross_compiling" = yes; then :
17053   lt_cv_dlopen_self_static=cross
17054 else
17055   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17056   lt_status=$lt_dlunknown
17057   cat > conftest.$ac_ext <<EOF
17058 #line 17058 "configure"
17059 #include "confdefs.h"
17060
17061 #if HAVE_DLFCN_H
17062 #include <dlfcn.h>
17063 #endif
17064
17065 #include <stdio.h>
17066
17067 #ifdef RTLD_GLOBAL
17068 #  define LT_DLGLOBAL           RTLD_GLOBAL
17069 #else
17070 #  ifdef DL_GLOBAL
17071 #    define LT_DLGLOBAL         DL_GLOBAL
17072 #  else
17073 #    define LT_DLGLOBAL         0
17074 #  endif
17075 #endif
17076
17077 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17078    find out it does not work in some platform. */
17079 #ifndef LT_DLLAZY_OR_NOW
17080 #  ifdef RTLD_LAZY
17081 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17082 #  else
17083 #    ifdef DL_LAZY
17084 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17085 #    else
17086 #      ifdef RTLD_NOW
17087 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17088 #      else
17089 #        ifdef DL_NOW
17090 #          define LT_DLLAZY_OR_NOW      DL_NOW
17091 #        else
17092 #          define LT_DLLAZY_OR_NOW      0
17093 #        endif
17094 #      endif
17095 #    endif
17096 #  endif
17097 #endif
17098
17099 #ifdef __cplusplus
17100 extern "C" void exit (int);
17101 #endif
17102
17103 void fnord() { int i=42;}
17104 int main ()
17105 {
17106   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17107   int status = $lt_dlunknown;
17108
17109   if (self)
17110     {
17111       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17112       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17113       /* dlclose (self); */
17114     }
17115
17116     exit (status);
17117 }
17118 EOF
17119   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17120   (eval $ac_link) 2>&5
17121   ac_status=$?
17122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17124     (./conftest; exit; ) 2>/dev/null
17125     lt_status=$?
17126     case x$lt_status in
17127       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17128       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17129       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17130     esac
17131   else :
17132     # compilation failed
17133     lt_cv_dlopen_self_static=no
17134   fi
17135 fi
17136 rm -fr conftest*
17137
17138
17139 fi
17140 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17141 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17142     fi
17143
17144     CPPFLAGS="$save_CPPFLAGS"
17145     LDFLAGS="$save_LDFLAGS"
17146     LIBS="$save_LIBS"
17147     ;;
17148   esac
17149
17150   case $lt_cv_dlopen_self in
17151   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17152   *) enable_dlopen_self=unknown ;;
17153   esac
17154
17155   case $lt_cv_dlopen_self_static in
17156   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17157   *) enable_dlopen_self_static=unknown ;;
17158   esac
17159 fi
17160
17161
17162 # The else clause should only fire when bootstrapping the
17163 # libtool distribution, otherwise you forgot to ship ltmain.sh
17164 # with your package, and you will get complaints that there are
17165 # no rules to generate ltmain.sh.
17166 if test -f "$ltmain"; then
17167   # See if we are running on zsh, and set the options which allow our commands through
17168   # without removal of \ escapes.
17169   if test -n "${ZSH_VERSION+set}" ; then
17170     setopt NO_GLOB_SUBST
17171   fi
17172   # Now quote all the things that may contain metacharacters while being
17173   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17174   # variables and quote the copies for generation of the libtool script.
17175   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17176     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17177     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17178     deplibs_check_method reload_flag reload_cmds need_locks \
17179     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17180     lt_cv_sys_global_symbol_to_c_name_address \
17181     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17182     old_postinstall_cmds old_postuninstall_cmds \
17183     compiler_GCJ \
17184     CC_GCJ \
17185     LD_GCJ \
17186     lt_prog_compiler_wl_GCJ \
17187     lt_prog_compiler_pic_GCJ \
17188     lt_prog_compiler_static_GCJ \
17189     lt_prog_compiler_no_builtin_flag_GCJ \
17190     export_dynamic_flag_spec_GCJ \
17191     thread_safe_flag_spec_GCJ \
17192     whole_archive_flag_spec_GCJ \
17193     enable_shared_with_static_runtimes_GCJ \
17194     old_archive_cmds_GCJ \
17195     old_archive_from_new_cmds_GCJ \
17196     predep_objects_GCJ \
17197     postdep_objects_GCJ \
17198     predeps_GCJ \
17199     postdeps_GCJ \
17200     compiler_lib_search_path_GCJ \
17201     archive_cmds_GCJ \
17202     archive_expsym_cmds_GCJ \
17203     postinstall_cmds_GCJ \
17204     postuninstall_cmds_GCJ \
17205     old_archive_from_expsyms_cmds_GCJ \
17206     allow_undefined_flag_GCJ \
17207     no_undefined_flag_GCJ \
17208     export_symbols_cmds_GCJ \
17209     hardcode_libdir_flag_spec_GCJ \
17210     hardcode_libdir_flag_spec_ld_GCJ \
17211     hardcode_libdir_separator_GCJ \
17212     hardcode_automatic_GCJ \
17213     module_cmds_GCJ \
17214     module_expsym_cmds_GCJ \
17215     lt_cv_prog_compiler_c_o_GCJ \
17216     exclude_expsyms_GCJ \
17217     include_expsyms_GCJ; do
17218
17219     case $var in
17220     old_archive_cmds_GCJ | \
17221     old_archive_from_new_cmds_GCJ | \
17222     archive_cmds_GCJ | \
17223     archive_expsym_cmds_GCJ | \
17224     module_cmds_GCJ | \
17225     module_expsym_cmds_GCJ | \
17226     old_archive_from_expsyms_cmds_GCJ | \
17227     export_symbols_cmds_GCJ | \
17228     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17229     postinstall_cmds | postuninstall_cmds | \
17230     old_postinstall_cmds | old_postuninstall_cmds | \
17231     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17232       # Double-quote double-evaled strings.
17233       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17234       ;;
17235     *)
17236       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17237       ;;
17238     esac
17239   done
17240
17241   case $lt_echo in
17242   *'\$0 --fallback-echo"')
17243     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17244     ;;
17245   esac
17246
17247 cfgfile="$ofile"
17248
17249   cat <<__EOF__ >> "$cfgfile"
17250 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17251
17252 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17253
17254 # Shell to use when invoking shell scripts.
17255 SHELL=$lt_SHELL
17256
17257 # Whether or not to build shared libraries.
17258 build_libtool_libs=$enable_shared
17259
17260 # Whether or not to build static libraries.
17261 build_old_libs=$enable_static
17262
17263 # Whether or not to add -lc for building shared libraries.
17264 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17265
17266 # Whether or not to disallow shared libs when runtime libs are static
17267 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17268
17269 # Whether or not to optimize for fast installation.
17270 fast_install=$enable_fast_install
17271
17272 # The host system.
17273 host_alias=$host_alias
17274 host=$host
17275
17276 # An echo program that does not interpret backslashes.
17277 echo=$lt_echo
17278
17279 # The archiver.
17280 AR=$lt_AR
17281 AR_FLAGS=$lt_AR_FLAGS
17282
17283 # A C compiler.
17284 LTCC=$lt_LTCC
17285
17286 # A language-specific compiler.
17287 CC=$lt_compiler_GCJ
17288
17289 # Is the compiler the GNU C compiler?
17290 with_gcc=$GCC_GCJ
17291
17292 # An ERE matcher.
17293 EGREP=$lt_EGREP
17294
17295 # The linker used to build libraries.
17296 LD=$lt_LD_GCJ
17297
17298 # Whether we need hard or soft links.
17299 LN_S=$lt_LN_S
17300
17301 # A BSD-compatible nm program.
17302 NM=$lt_NM
17303
17304 # A symbol stripping program
17305 STRIP=$STRIP
17306
17307 # Used to examine libraries when file_magic_cmd begins "file"
17308 MAGIC_CMD=$MAGIC_CMD
17309
17310 # Used on cygwin: DLL creation program.
17311 DLLTOOL="$DLLTOOL"
17312
17313 # Used on cygwin: object dumper.
17314 OBJDUMP="$OBJDUMP"
17315
17316 # Used on cygwin: assembler.
17317 AS="$AS"
17318
17319 # The name of the directory that contains temporary libtool files.
17320 objdir=$objdir
17321
17322 # How to create reloadable object files.
17323 reload_flag=$lt_reload_flag
17324 reload_cmds=$lt_reload_cmds
17325
17326 # How to pass a linker flag through the compiler.
17327 wl=$lt_lt_prog_compiler_wl_GCJ
17328
17329 # Object file suffix (normally "o").
17330 objext="$ac_objext"
17331
17332 # Old archive suffix (normally "a").
17333 libext="$libext"
17334
17335 # Shared library suffix (normally ".so").
17336 shrext='$shrext'
17337
17338 # Executable file suffix (normally "").
17339 exeext="$exeext"
17340
17341 # Additional compiler flags for building library objects.
17342 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17343 pic_mode=$pic_mode
17344
17345 # What is the maximum length of a command?
17346 max_cmd_len=$lt_cv_sys_max_cmd_len
17347
17348 # Does compiler simultaneously support -c and -o options?
17349 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17350
17351 # Must we lock files when doing compilation ?
17352 need_locks=$lt_need_locks
17353
17354 # Do we need the lib prefix for modules?
17355 need_lib_prefix=$need_lib_prefix
17356
17357 # Do we need a version for libraries?
17358 need_version=$need_version
17359
17360 # Whether dlopen is supported.
17361 dlopen_support=$enable_dlopen
17362
17363 # Whether dlopen of programs is supported.
17364 dlopen_self=$enable_dlopen_self
17365
17366 # Whether dlopen of statically linked programs is supported.
17367 dlopen_self_static=$enable_dlopen_self_static
17368
17369 # Compiler flag to prevent dynamic linking.
17370 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17371
17372 # Compiler flag to turn off builtin functions.
17373 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17374
17375 # Compiler flag to allow reflexive dlopens.
17376 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17377
17378 # Compiler flag to generate shared objects directly from archives.
17379 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17380
17381 # Compiler flag to generate thread-safe objects.
17382 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17383
17384 # Library versioning type.
17385 version_type=$version_type
17386
17387 # Format of library name prefix.
17388 libname_spec=$lt_libname_spec
17389
17390 # List of archive names.  First name is the real one, the rest are links.
17391 # The last name is the one that the linker finds with -lNAME.
17392 library_names_spec=$lt_library_names_spec
17393
17394 # The coded name of the library, if different from the real name.
17395 soname_spec=$lt_soname_spec
17396
17397 # Commands used to build and install an old-style archive.
17398 RANLIB=$lt_RANLIB
17399 old_archive_cmds=$lt_old_archive_cmds_GCJ
17400 old_postinstall_cmds=$lt_old_postinstall_cmds
17401 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17402
17403 # Create an old-style archive from a shared archive.
17404 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17405
17406 # Create a temporary old-style archive to link instead of a shared archive.
17407 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17408
17409 # Commands used to build and install a shared archive.
17410 archive_cmds=$lt_archive_cmds_GCJ
17411 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17412 postinstall_cmds=$lt_postinstall_cmds
17413 postuninstall_cmds=$lt_postuninstall_cmds
17414
17415 # Commands used to build a loadable module (assumed same as above if empty)
17416 module_cmds=$lt_module_cmds_GCJ
17417 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17418
17419 # Commands to strip libraries.
17420 old_striplib=$lt_old_striplib
17421 striplib=$lt_striplib
17422
17423 # Dependencies to place before the objects being linked to create a
17424 # shared library.
17425 predep_objects=$lt_predep_objects_GCJ
17426
17427 # Dependencies to place after the objects being linked to create a
17428 # shared library.
17429 postdep_objects=$lt_postdep_objects_GCJ
17430
17431 # Dependencies to place before the objects being linked to create a
17432 # shared library.
17433 predeps=$lt_predeps_GCJ
17434
17435 # Dependencies to place after the objects being linked to create a
17436 # shared library.
17437 postdeps=$lt_postdeps_GCJ
17438
17439 # The library search path used internally by the compiler when linking
17440 # a shared library.
17441 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17442
17443 # Method to check whether dependent libraries are shared objects.
17444 deplibs_check_method=$lt_deplibs_check_method
17445
17446 # Command to use when deplibs_check_method == file_magic.
17447 file_magic_cmd=$lt_file_magic_cmd
17448
17449 # Flag that allows shared libraries with undefined symbols to be built.
17450 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17451
17452 # Flag that forces no undefined symbols.
17453 no_undefined_flag=$lt_no_undefined_flag_GCJ
17454
17455 # Commands used to finish a libtool library installation in a directory.
17456 finish_cmds=$lt_finish_cmds
17457
17458 # Same as above, but a single script fragment to be evaled but not shown.
17459 finish_eval=$lt_finish_eval
17460
17461 # Take the output of nm and produce a listing of raw symbols and C names.
17462 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17463
17464 # Transform the output of nm in a proper C declaration
17465 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17466
17467 # Transform the output of nm in a C name address pair
17468 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17469
17470 # This is the shared library runtime path variable.
17471 runpath_var=$runpath_var
17472
17473 # This is the shared library path variable.
17474 shlibpath_var=$shlibpath_var
17475
17476 # Is shlibpath searched before the hard-coded library search path?
17477 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17478
17479 # How to hardcode a shared library path into an executable.
17480 hardcode_action=$hardcode_action_GCJ
17481
17482 # Whether we should hardcode library paths into libraries.
17483 hardcode_into_libs=$hardcode_into_libs
17484
17485 # Flag to hardcode \$libdir into a binary during linking.
17486 # This must work even if \$libdir does not exist.
17487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17488
17489 # If ld is used when linking, flag to hardcode \$libdir into
17490 # a binary during linking. This must work even if \$libdir does
17491 # not exist.
17492 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17493
17494 # Whether we need a single -rpath flag with a separated argument.
17495 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17496
17497 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17498 # resulting binary.
17499 hardcode_direct=$hardcode_direct_GCJ
17500
17501 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17502 # resulting binary.
17503 hardcode_minus_L=$hardcode_minus_L_GCJ
17504
17505 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17506 # the resulting binary.
17507 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17508
17509 # Set to yes if building a shared library automatically hardcodes DIR into the library
17510 # and all subsequent libraries and executables linked against it.
17511 hardcode_automatic=$hardcode_automatic_GCJ
17512
17513 # Variables whose values should be saved in libtool wrapper scripts and
17514 # restored at relink time.
17515 variables_saved_for_relink="$variables_saved_for_relink"
17516
17517 # Whether libtool must link a program against all its dependency libraries.
17518 link_all_deplibs=$link_all_deplibs_GCJ
17519
17520 # Compile-time system search path for libraries
17521 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17522
17523 # Run-time system search path for libraries
17524 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17525
17526 # Fix the shell variable \$srcfile for the compiler.
17527 fix_srcfile_path="$fix_srcfile_path_GCJ"
17528
17529 # Set to yes if exported symbols are required.
17530 always_export_symbols=$always_export_symbols_GCJ
17531
17532 # The commands to list exported symbols.
17533 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17534
17535 # The commands to extract the exported symbol list from a shared archive.
17536 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17537
17538 # Symbols that should not be listed in the preloaded symbols.
17539 exclude_expsyms=$lt_exclude_expsyms_GCJ
17540
17541 # Symbols that must always be exported.
17542 include_expsyms=$lt_include_expsyms_GCJ
17543
17544 # ### END LIBTOOL TAG CONFIG: $tagname
17545
17546 __EOF__
17547
17548
17549 else
17550   # If there is no Makefile yet, we rely on a make rule to execute
17551   # `config.status --recheck' to rerun these tests and create the
17552   # libtool script then.
17553   test -f Makefile && make "$ltmain"
17554 fi
17555
17556
17557 ac_ext=c
17558 ac_cpp='$CPP $CPPFLAGS'
17559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17562
17563 CC="$lt_save_CC"
17564
17565         else
17566           tagname=""
17567         fi
17568         ;;
17569
17570       RC)
17571
17572
17573
17574 # Source file extension for RC test sources.
17575 ac_ext=rc
17576
17577 # Object file extension for compiled RC test sources.
17578 objext=o
17579 objext_RC=$objext
17580
17581 # Code to be used in simple compile tests
17582 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17583
17584 # Code to be used in simple link tests
17585 lt_simple_link_test_code="$lt_simple_compile_test_code"
17586
17587 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17588
17589 # If no C compiler was specified, use CC.
17590 LTCC=${LTCC-"$CC"}
17591
17592 # Allow CC to be a program name with arguments.
17593 compiler=$CC
17594
17595
17596 # Allow CC to be a program name with arguments.
17597 lt_save_CC="$CC"
17598 CC=${RC-"windres"}
17599 compiler=$CC
17600 compiler_RC=$CC
17601 lt_cv_prog_compiler_c_o_RC=yes
17602
17603 # The else clause should only fire when bootstrapping the
17604 # libtool distribution, otherwise you forgot to ship ltmain.sh
17605 # with your package, and you will get complaints that there are
17606 # no rules to generate ltmain.sh.
17607 if test -f "$ltmain"; then
17608   # See if we are running on zsh, and set the options which allow our commands through
17609   # without removal of \ escapes.
17610   if test -n "${ZSH_VERSION+set}" ; then
17611     setopt NO_GLOB_SUBST
17612   fi
17613   # Now quote all the things that may contain metacharacters while being
17614   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17615   # variables and quote the copies for generation of the libtool script.
17616   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17617     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17618     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17619     deplibs_check_method reload_flag reload_cmds need_locks \
17620     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17621     lt_cv_sys_global_symbol_to_c_name_address \
17622     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17623     old_postinstall_cmds old_postuninstall_cmds \
17624     compiler_RC \
17625     CC_RC \
17626     LD_RC \
17627     lt_prog_compiler_wl_RC \
17628     lt_prog_compiler_pic_RC \
17629     lt_prog_compiler_static_RC \
17630     lt_prog_compiler_no_builtin_flag_RC \
17631     export_dynamic_flag_spec_RC \
17632     thread_safe_flag_spec_RC \
17633     whole_archive_flag_spec_RC \
17634     enable_shared_with_static_runtimes_RC \
17635     old_archive_cmds_RC \
17636     old_archive_from_new_cmds_RC \
17637     predep_objects_RC \
17638     postdep_objects_RC \
17639     predeps_RC \
17640     postdeps_RC \
17641     compiler_lib_search_path_RC \
17642     archive_cmds_RC \
17643     archive_expsym_cmds_RC \
17644     postinstall_cmds_RC \
17645     postuninstall_cmds_RC \
17646     old_archive_from_expsyms_cmds_RC \
17647     allow_undefined_flag_RC \
17648     no_undefined_flag_RC \
17649     export_symbols_cmds_RC \
17650     hardcode_libdir_flag_spec_RC \
17651     hardcode_libdir_flag_spec_ld_RC \
17652     hardcode_libdir_separator_RC \
17653     hardcode_automatic_RC \
17654     module_cmds_RC \
17655     module_expsym_cmds_RC \
17656     lt_cv_prog_compiler_c_o_RC \
17657     exclude_expsyms_RC \
17658     include_expsyms_RC; do
17659
17660     case $var in
17661     old_archive_cmds_RC | \
17662     old_archive_from_new_cmds_RC | \
17663     archive_cmds_RC | \
17664     archive_expsym_cmds_RC | \
17665     module_cmds_RC | \
17666     module_expsym_cmds_RC | \
17667     old_archive_from_expsyms_cmds_RC | \
17668     export_symbols_cmds_RC | \
17669     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17670     postinstall_cmds | postuninstall_cmds | \
17671     old_postinstall_cmds | old_postuninstall_cmds | \
17672     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17673       # Double-quote double-evaled strings.
17674       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17675       ;;
17676     *)
17677       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17678       ;;
17679     esac
17680   done
17681
17682   case $lt_echo in
17683   *'\$0 --fallback-echo"')
17684     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17685     ;;
17686   esac
17687
17688 cfgfile="$ofile"
17689
17690   cat <<__EOF__ >> "$cfgfile"
17691 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17692
17693 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17694
17695 # Shell to use when invoking shell scripts.
17696 SHELL=$lt_SHELL
17697
17698 # Whether or not to build shared libraries.
17699 build_libtool_libs=$enable_shared
17700
17701 # Whether or not to build static libraries.
17702 build_old_libs=$enable_static
17703
17704 # Whether or not to add -lc for building shared libraries.
17705 build_libtool_need_lc=$archive_cmds_need_lc_RC
17706
17707 # Whether or not to disallow shared libs when runtime libs are static
17708 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17709
17710 # Whether or not to optimize for fast installation.
17711 fast_install=$enable_fast_install
17712
17713 # The host system.
17714 host_alias=$host_alias
17715 host=$host
17716
17717 # An echo program that does not interpret backslashes.
17718 echo=$lt_echo
17719
17720 # The archiver.
17721 AR=$lt_AR
17722 AR_FLAGS=$lt_AR_FLAGS
17723
17724 # A C compiler.
17725 LTCC=$lt_LTCC
17726
17727 # A language-specific compiler.
17728 CC=$lt_compiler_RC
17729
17730 # Is the compiler the GNU C compiler?
17731 with_gcc=$GCC_RC
17732
17733 # An ERE matcher.
17734 EGREP=$lt_EGREP
17735
17736 # The linker used to build libraries.
17737 LD=$lt_LD_RC
17738
17739 # Whether we need hard or soft links.
17740 LN_S=$lt_LN_S
17741
17742 # A BSD-compatible nm program.
17743 NM=$lt_NM
17744
17745 # A symbol stripping program
17746 STRIP=$STRIP
17747
17748 # Used to examine libraries when file_magic_cmd begins "file"
17749 MAGIC_CMD=$MAGIC_CMD
17750
17751 # Used on cygwin: DLL creation program.
17752 DLLTOOL="$DLLTOOL"
17753
17754 # Used on cygwin: object dumper.
17755 OBJDUMP="$OBJDUMP"
17756
17757 # Used on cygwin: assembler.
17758 AS="$AS"
17759
17760 # The name of the directory that contains temporary libtool files.
17761 objdir=$objdir
17762
17763 # How to create reloadable object files.
17764 reload_flag=$lt_reload_flag
17765 reload_cmds=$lt_reload_cmds
17766
17767 # How to pass a linker flag through the compiler.
17768 wl=$lt_lt_prog_compiler_wl_RC
17769
17770 # Object file suffix (normally "o").
17771 objext="$ac_objext"
17772
17773 # Old archive suffix (normally "a").
17774 libext="$libext"
17775
17776 # Shared library suffix (normally ".so").
17777 shrext='$shrext'
17778
17779 # Executable file suffix (normally "").
17780 exeext="$exeext"
17781
17782 # Additional compiler flags for building library objects.
17783 pic_flag=$lt_lt_prog_compiler_pic_RC
17784 pic_mode=$pic_mode
17785
17786 # What is the maximum length of a command?
17787 max_cmd_len=$lt_cv_sys_max_cmd_len
17788
17789 # Does compiler simultaneously support -c and -o options?
17790 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17791
17792 # Must we lock files when doing compilation ?
17793 need_locks=$lt_need_locks
17794
17795 # Do we need the lib prefix for modules?
17796 need_lib_prefix=$need_lib_prefix
17797
17798 # Do we need a version for libraries?
17799 need_version=$need_version
17800
17801 # Whether dlopen is supported.
17802 dlopen_support=$enable_dlopen
17803
17804 # Whether dlopen of programs is supported.
17805 dlopen_self=$enable_dlopen_self
17806
17807 # Whether dlopen of statically linked programs is supported.
17808 dlopen_self_static=$enable_dlopen_self_static
17809
17810 # Compiler flag to prevent dynamic linking.
17811 link_static_flag=$lt_lt_prog_compiler_static_RC
17812
17813 # Compiler flag to turn off builtin functions.
17814 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17815
17816 # Compiler flag to allow reflexive dlopens.
17817 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17818
17819 # Compiler flag to generate shared objects directly from archives.
17820 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17821
17822 # Compiler flag to generate thread-safe objects.
17823 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17824
17825 # Library versioning type.
17826 version_type=$version_type
17827
17828 # Format of library name prefix.
17829 libname_spec=$lt_libname_spec
17830
17831 # List of archive names.  First name is the real one, the rest are links.
17832 # The last name is the one that the linker finds with -lNAME.
17833 library_names_spec=$lt_library_names_spec
17834
17835 # The coded name of the library, if different from the real name.
17836 soname_spec=$lt_soname_spec
17837
17838 # Commands used to build and install an old-style archive.
17839 RANLIB=$lt_RANLIB
17840 old_archive_cmds=$lt_old_archive_cmds_RC
17841 old_postinstall_cmds=$lt_old_postinstall_cmds
17842 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17843
17844 # Create an old-style archive from a shared archive.
17845 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17846
17847 # Create a temporary old-style archive to link instead of a shared archive.
17848 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17849
17850 # Commands used to build and install a shared archive.
17851 archive_cmds=$lt_archive_cmds_RC
17852 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17853 postinstall_cmds=$lt_postinstall_cmds
17854 postuninstall_cmds=$lt_postuninstall_cmds
17855
17856 # Commands used to build a loadable module (assumed same as above if empty)
17857 module_cmds=$lt_module_cmds_RC
17858 module_expsym_cmds=$lt_module_expsym_cmds_RC
17859
17860 # Commands to strip libraries.
17861 old_striplib=$lt_old_striplib
17862 striplib=$lt_striplib
17863
17864 # Dependencies to place before the objects being linked to create a
17865 # shared library.
17866 predep_objects=$lt_predep_objects_RC
17867
17868 # Dependencies to place after the objects being linked to create a
17869 # shared library.
17870 postdep_objects=$lt_postdep_objects_RC
17871
17872 # Dependencies to place before the objects being linked to create a
17873 # shared library.
17874 predeps=$lt_predeps_RC
17875
17876 # Dependencies to place after the objects being linked to create a
17877 # shared library.
17878 postdeps=$lt_postdeps_RC
17879
17880 # The library search path used internally by the compiler when linking
17881 # a shared library.
17882 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17883
17884 # Method to check whether dependent libraries are shared objects.
17885 deplibs_check_method=$lt_deplibs_check_method
17886
17887 # Command to use when deplibs_check_method == file_magic.
17888 file_magic_cmd=$lt_file_magic_cmd
17889
17890 # Flag that allows shared libraries with undefined symbols to be built.
17891 allow_undefined_flag=$lt_allow_undefined_flag_RC
17892
17893 # Flag that forces no undefined symbols.
17894 no_undefined_flag=$lt_no_undefined_flag_RC
17895
17896 # Commands used to finish a libtool library installation in a directory.
17897 finish_cmds=$lt_finish_cmds
17898
17899 # Same as above, but a single script fragment to be evaled but not shown.
17900 finish_eval=$lt_finish_eval
17901
17902 # Take the output of nm and produce a listing of raw symbols and C names.
17903 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17904
17905 # Transform the output of nm in a proper C declaration
17906 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17907
17908 # Transform the output of nm in a C name address pair
17909 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17910
17911 # This is the shared library runtime path variable.
17912 runpath_var=$runpath_var
17913
17914 # This is the shared library path variable.
17915 shlibpath_var=$shlibpath_var
17916
17917 # Is shlibpath searched before the hard-coded library search path?
17918 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17919
17920 # How to hardcode a shared library path into an executable.
17921 hardcode_action=$hardcode_action_RC
17922
17923 # Whether we should hardcode library paths into libraries.
17924 hardcode_into_libs=$hardcode_into_libs
17925
17926 # Flag to hardcode \$libdir into a binary during linking.
17927 # This must work even if \$libdir does not exist.
17928 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
17929
17930 # If ld is used when linking, flag to hardcode \$libdir into
17931 # a binary during linking. This must work even if \$libdir does
17932 # not exist.
17933 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
17934
17935 # Whether we need a single -rpath flag with a separated argument.
17936 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
17937
17938 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17939 # resulting binary.
17940 hardcode_direct=$hardcode_direct_RC
17941
17942 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17943 # resulting binary.
17944 hardcode_minus_L=$hardcode_minus_L_RC
17945
17946 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17947 # the resulting binary.
17948 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
17949
17950 # Set to yes if building a shared library automatically hardcodes DIR into the library
17951 # and all subsequent libraries and executables linked against it.
17952 hardcode_automatic=$hardcode_automatic_RC
17953
17954 # Variables whose values should be saved in libtool wrapper scripts and
17955 # restored at relink time.
17956 variables_saved_for_relink="$variables_saved_for_relink"
17957
17958 # Whether libtool must link a program against all its dependency libraries.
17959 link_all_deplibs=$link_all_deplibs_RC
17960
17961 # Compile-time system search path for libraries
17962 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17963
17964 # Run-time system search path for libraries
17965 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17966
17967 # Fix the shell variable \$srcfile for the compiler.
17968 fix_srcfile_path="$fix_srcfile_path_RC"
17969
17970 # Set to yes if exported symbols are required.
17971 always_export_symbols=$always_export_symbols_RC
17972
17973 # The commands to list exported symbols.
17974 export_symbols_cmds=$lt_export_symbols_cmds_RC
17975
17976 # The commands to extract the exported symbol list from a shared archive.
17977 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17978
17979 # Symbols that should not be listed in the preloaded symbols.
17980 exclude_expsyms=$lt_exclude_expsyms_RC
17981
17982 # Symbols that must always be exported.
17983 include_expsyms=$lt_include_expsyms_RC
17984
17985 # ### END LIBTOOL TAG CONFIG: $tagname
17986
17987 __EOF__
17988
17989
17990 else
17991   # If there is no Makefile yet, we rely on a make rule to execute
17992   # `config.status --recheck' to rerun these tests and create the
17993   # libtool script then.
17994   test -f Makefile && make "$ltmain"
17995 fi
17996
17997
17998 ac_ext=c
17999 ac_cpp='$CPP $CPPFLAGS'
18000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18003
18004 CC="$lt_save_CC"
18005
18006         ;;
18007
18008       *)
18009         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18010 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18011    { (exit 1); exit 1; }; }
18012         ;;
18013       esac
18014
18015       # Append the new tag name to the list of available tags.
18016       if test -n "$tagname" ; then
18017       available_tags="$available_tags $tagname"
18018     fi
18019     fi
18020   done
18021   IFS="$lt_save_ifs"
18022
18023   # Now substitute the updated list of available tags.
18024   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18025     mv "${ofile}T" "$ofile"
18026     chmod +x "$ofile"
18027   else
18028     rm -f "${ofile}T"
18029     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18030 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18031    { (exit 1); exit 1; }; }
18032   fi
18033 fi
18034
18035
18036
18037 # This can be used to rebuild libtool when needed
18038 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18039
18040 # Always use our own libtool.
18041 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
18042
18043 # Prevent multiple expansion
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065 # Extract the first word of "pwd", so it can be a program name with args.
18066 set dummy pwd; ac_word=$2
18067 echo "$as_me:$LINENO: checking for $ac_word" >&5
18068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18069 if test "${ac_cv_path_RPWD+set}" = set; then
18070   echo $ECHO_N "(cached) $ECHO_C" >&6
18071 else
18072   case $RPWD in
18073   [\\/]* | ?:[\\/]*)
18074   ac_cv_path_RPWD="$RPWD" # Let the user override the test with a path.
18075   ;;
18076   *)
18077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18078 for as_dir in $PATH
18079 do
18080   IFS=$as_save_IFS
18081   test -z "$as_dir" && as_dir=.
18082   for ac_exec_ext in '' $ac_executable_extensions; do
18083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18084     ac_cv_path_RPWD="$as_dir/$ac_word$ac_exec_ext"
18085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18086     break 2
18087   fi
18088 done
18089 done
18090
18091   ;;
18092 esac
18093 fi
18094 RPWD=$ac_cv_path_RPWD
18095
18096 if test -n "$RPWD"; then
18097   echo "$as_me:$LINENO: result: $RPWD" >&5
18098 echo "${ECHO_T}$RPWD" >&6
18099 else
18100   echo "$as_me:$LINENO: result: no" >&5
18101 echo "${ECHO_T}no" >&6
18102 fi
18103
18104 # Extract the first word of "ar", so it can be a program name with args.
18105 set dummy ar; ac_word=$2
18106 echo "$as_me:$LINENO: checking for $ac_word" >&5
18107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18108 if test "${ac_cv_path_AR+set}" = set; then
18109   echo $ECHO_N "(cached) $ECHO_C" >&6
18110 else
18111   case $AR in
18112   [\\/]* | ?:[\\/]*)
18113   ac_cv_path_AR="$AR" # Let the user override the test with a path.
18114   ;;
18115   *)
18116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18117 for as_dir in $PATH
18118 do
18119   IFS=$as_save_IFS
18120   test -z "$as_dir" && as_dir=.
18121   for ac_exec_ext in '' $ac_executable_extensions; do
18122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18123     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
18124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18125     break 2
18126   fi
18127 done
18128 done
18129
18130   ;;
18131 esac
18132 fi
18133 AR=$ac_cv_path_AR
18134
18135 if test -n "$AR"; then
18136   echo "$as_me:$LINENO: result: $AR" >&5
18137 echo "${ECHO_T}$AR" >&6
18138 else
18139   echo "$as_me:$LINENO: result: no" >&5
18140 echo "${ECHO_T}no" >&6
18141 fi
18142
18143 # Extract the first word of "sed", so it can be a program name with args.
18144 set dummy sed; ac_word=$2
18145 echo "$as_me:$LINENO: checking for $ac_word" >&5
18146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18147 if test "${ac_cv_path_SED+set}" = set; then
18148   echo $ECHO_N "(cached) $ECHO_C" >&6
18149 else
18150   case $SED in
18151   [\\/]* | ?:[\\/]*)
18152   ac_cv_path_SED="$SED" # Let the user override the test with a path.
18153   ;;
18154   *)
18155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18156 for as_dir in $PATH
18157 do
18158   IFS=$as_save_IFS
18159   test -z "$as_dir" && as_dir=.
18160   for ac_exec_ext in '' $ac_executable_extensions; do
18161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18162     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
18163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18164     break 2
18165   fi
18166 done
18167 done
18168
18169   ;;
18170 esac
18171 fi
18172 SED=$ac_cv_path_SED
18173
18174 if test -n "$SED"; then
18175   echo "$as_me:$LINENO: result: $SED" >&5
18176 echo "${ECHO_T}$SED" >&6
18177 else
18178   echo "$as_me:$LINENO: result: no" >&5
18179 echo "${ECHO_T}no" >&6
18180 fi
18181
18182 # Extract the first word of "rm", so it can be a program name with args.
18183 set dummy rm; ac_word=$2
18184 echo "$as_me:$LINENO: checking for $ac_word" >&5
18185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18186 if test "${ac_cv_path_RM+set}" = set; then
18187   echo $ECHO_N "(cached) $ECHO_C" >&6
18188 else
18189   case $RM in
18190   [\\/]* | ?:[\\/]*)
18191   ac_cv_path_RM="$RM" # Let the user override the test with a path.
18192   ;;
18193   *)
18194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18195 for as_dir in $PATH
18196 do
18197   IFS=$as_save_IFS
18198   test -z "$as_dir" && as_dir=.
18199   for ac_exec_ext in '' $ac_executable_extensions; do
18200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18201     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
18202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18203     break 2
18204   fi
18205 done
18206 done
18207
18208   ;;
18209 esac
18210 fi
18211 RM=$ac_cv_path_RM
18212
18213 if test -n "$RM"; then
18214   echo "$as_me:$LINENO: result: $RM" >&5
18215 echo "${ECHO_T}$RM" >&6
18216 else
18217   echo "$as_me:$LINENO: result: no" >&5
18218 echo "${ECHO_T}no" >&6
18219 fi
18220
18221 # Extract the first word of "echo", so it can be a program name with args.
18222 set dummy echo; ac_word=$2
18223 echo "$as_me:$LINENO: checking for $ac_word" >&5
18224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18225 if test "${ac_cv_path_ECHO+set}" = set; then
18226   echo $ECHO_N "(cached) $ECHO_C" >&6
18227 else
18228   case $ECHO in
18229   [\\/]* | ?:[\\/]*)
18230   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
18231   ;;
18232   *)
18233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18234 for as_dir in $PATH
18235 do
18236   IFS=$as_save_IFS
18237   test -z "$as_dir" && as_dir=.
18238   for ac_exec_ext in '' $ac_executable_extensions; do
18239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18240     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
18241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18242     break 2
18243   fi
18244 done
18245 done
18246
18247   ;;
18248 esac
18249 fi
18250 ECHO=$ac_cv_path_ECHO
18251
18252 if test -n "$ECHO"; then
18253   echo "$as_me:$LINENO: result: $ECHO" >&5
18254 echo "${ECHO_T}$ECHO" >&6
18255 else
18256   echo "$as_me:$LINENO: result: no" >&5
18257 echo "${ECHO_T}no" >&6
18258 fi
18259
18260 # Extract the first word of "mkdir", so it can be a program name with args.
18261 set dummy mkdir; ac_word=$2
18262 echo "$as_me:$LINENO: checking for $ac_word" >&5
18263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18264 if test "${ac_cv_path_MKDIR+set}" = set; then
18265   echo $ECHO_N "(cached) $ECHO_C" >&6
18266 else
18267   case $MKDIR in
18268   [\\/]* | ?:[\\/]*)
18269   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
18270   ;;
18271   *)
18272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18273 for as_dir in $PATH
18274 do
18275   IFS=$as_save_IFS
18276   test -z "$as_dir" && as_dir=.
18277   for ac_exec_ext in '' $ac_executable_extensions; do
18278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18279     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
18280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18281     break 2
18282   fi
18283 done
18284 done
18285
18286   ;;
18287 esac
18288 fi
18289 MKDIR=$ac_cv_path_MKDIR
18290
18291 if test -n "$MKDIR"; then
18292   echo "$as_me:$LINENO: result: $MKDIR" >&5
18293 echo "${ECHO_T}$MKDIR" >&6
18294 else
18295   echo "$as_me:$LINENO: result: no" >&5
18296 echo "${ECHO_T}no" >&6
18297 fi
18298
18299 # Extract the first word of "date", so it can be a program name with args.
18300 set dummy date; ac_word=$2
18301 echo "$as_me:$LINENO: checking for $ac_word" >&5
18302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18303 if test "${ac_cv_path_DATE+set}" = set; then
18304   echo $ECHO_N "(cached) $ECHO_C" >&6
18305 else
18306   case $DATE in
18307   [\\/]* | ?:[\\/]*)
18308   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
18309   ;;
18310   *)
18311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18312 for as_dir in $PATH
18313 do
18314   IFS=$as_save_IFS
18315   test -z "$as_dir" && as_dir=.
18316   for ac_exec_ext in '' $ac_executable_extensions; do
18317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18318     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
18319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18320     break 2
18321   fi
18322 done
18323 done
18324
18325   ;;
18326 esac
18327 fi
18328 DATE=$ac_cv_path_DATE
18329
18330 if test -n "$DATE"; then
18331   echo "$as_me:$LINENO: result: $DATE" >&5
18332 echo "${ECHO_T}$DATE" >&6
18333 else
18334   echo "$as_me:$LINENO: result: no" >&5
18335 echo "${ECHO_T}no" >&6
18336 fi
18337
18338 # Extract the first word of "mv", so it can be a program name with args.
18339 set dummy mv; ac_word=$2
18340 echo "$as_me:$LINENO: checking for $ac_word" >&5
18341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18342 if test "${ac_cv_path_MV+set}" = set; then
18343   echo $ECHO_N "(cached) $ECHO_C" >&6
18344 else
18345   case $MV in
18346   [\\/]* | ?:[\\/]*)
18347   ac_cv_path_MV="$MV" # Let the user override the test with a path.
18348   ;;
18349   *)
18350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18351 for as_dir in $PATH
18352 do
18353   IFS=$as_save_IFS
18354   test -z "$as_dir" && as_dir=.
18355   for ac_exec_ext in '' $ac_executable_extensions; do
18356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18357     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
18358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18359     break 2
18360   fi
18361 done
18362 done
18363
18364   ;;
18365 esac
18366 fi
18367 MV=$ac_cv_path_MV
18368
18369 if test -n "$MV"; then
18370   echo "$as_me:$LINENO: result: $MV" >&5
18371 echo "${ECHO_T}$MV" >&6
18372 else
18373   echo "$as_me:$LINENO: result: no" >&5
18374 echo "${ECHO_T}no" >&6
18375 fi
18376
18377 # Extract the first word of "dot", so it can be a program name with args.
18378 set dummy dot; ac_word=$2
18379 echo "$as_me:$LINENO: checking for $ac_word" >&5
18380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18381 if test "${ac_cv_path_DOT+set}" = set; then
18382   echo $ECHO_N "(cached) $ECHO_C" >&6
18383 else
18384   case $DOT in
18385   [\\/]* | ?:[\\/]*)
18386   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18387   ;;
18388   *)
18389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18390 for as_dir in $PATH
18391 do
18392   IFS=$as_save_IFS
18393   test -z "$as_dir" && as_dir=.
18394   for ac_exec_ext in '' $ac_executable_extensions; do
18395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18396     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18398     break 2
18399   fi
18400 done
18401 done
18402
18403   ;;
18404 esac
18405 fi
18406 DOT=$ac_cv_path_DOT
18407
18408 if test -n "$DOT"; then
18409   echo "$as_me:$LINENO: result: $DOT" >&5
18410 echo "${ECHO_T}$DOT" >&6
18411 else
18412   echo "$as_me:$LINENO: result: no" >&5
18413 echo "${ECHO_T}no" >&6
18414 fi
18415
18416 # Extract the first word of "etags", so it can be a program name with args.
18417 set dummy etags; ac_word=$2
18418 echo "$as_me:$LINENO: checking for $ac_word" >&5
18419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18420 if test "${ac_cv_path_ETAGS+set}" = set; then
18421   echo $ECHO_N "(cached) $ECHO_C" >&6
18422 else
18423   case $ETAGS in
18424   [\\/]* | ?:[\\/]*)
18425   ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18426   ;;
18427   *)
18428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18429 for as_dir in $PATH
18430 do
18431   IFS=$as_save_IFS
18432   test -z "$as_dir" && as_dir=.
18433   for ac_exec_ext in '' $ac_executable_extensions; do
18434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18435     ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18437     break 2
18438   fi
18439 done
18440 done
18441
18442   ;;
18443 esac
18444 fi
18445 ETAGS=$ac_cv_path_ETAGS
18446
18447 if test -n "$ETAGS"; then
18448   echo "$as_me:$LINENO: result: $ETAGS" >&5
18449 echo "${ECHO_T}$ETAGS" >&6
18450 else
18451   echo "$as_me:$LINENO: result: no" >&5
18452 echo "${ECHO_T}no" >&6
18453 fi
18454
18455 # Extract the first word of "purify", so it can be a program name with args.
18456 set dummy purify; ac_word=$2
18457 echo "$as_me:$LINENO: checking for $ac_word" >&5
18458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18459 if test "${ac_cv_path_PURIFY+set}" = set; then
18460   echo $ECHO_N "(cached) $ECHO_C" >&6
18461 else
18462   case $PURIFY in
18463   [\\/]* | ?:[\\/]*)
18464   ac_cv_path_PURIFY="$PURIFY" # Let the user override the test with a path.
18465   ;;
18466   *)
18467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18468 for as_dir in $PATH
18469 do
18470   IFS=$as_save_IFS
18471   test -z "$as_dir" && as_dir=.
18472   for ac_exec_ext in '' $ac_executable_extensions; do
18473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18474     ac_cv_path_PURIFY="$as_dir/$ac_word$ac_exec_ext"
18475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18476     break 2
18477   fi
18478 done
18479 done
18480
18481   ;;
18482 esac
18483 fi
18484 PURIFY=$ac_cv_path_PURIFY
18485
18486 if test -n "$PURIFY"; then
18487   echo "$as_me:$LINENO: result: $PURIFY" >&5
18488 echo "${ECHO_T}$PURIFY" >&6
18489 else
18490   echo "$as_me:$LINENO: result: no" >&5
18491 echo "${ECHO_T}no" >&6
18492 fi
18493
18494 # Extract the first word of "python", so it can be a program name with args.
18495 set dummy python; ac_word=$2
18496 echo "$as_me:$LINENO: checking for $ac_word" >&5
18497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18498 if test "${ac_cv_path_PYTHON+set}" = set; then
18499   echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501   case $PYTHON in
18502   [\\/]* | ?:[\\/]*)
18503   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18504   ;;
18505   *)
18506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18507 for as_dir in $PATH
18508 do
18509   IFS=$as_save_IFS
18510   test -z "$as_dir" && as_dir=.
18511   for ac_exec_ext in '' $ac_executable_extensions; do
18512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18513     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18515     break 2
18516   fi
18517 done
18518 done
18519
18520   ;;
18521 esac
18522 fi
18523 PYTHON=$ac_cv_path_PYTHON
18524
18525 if test -n "$PYTHON"; then
18526   echo "$as_me:$LINENO: result: $PYTHON" >&5
18527 echo "${ECHO_T}$PYTHON" >&6
18528 else
18529   echo "$as_me:$LINENO: result: no" >&5
18530 echo "${ECHO_T}no" >&6
18531 fi
18532
18533 # Extract the first word of "qmtest", so it can be a program name with args.
18534 set dummy qmtest; ac_word=$2
18535 echo "$as_me:$LINENO: checking for $ac_word" >&5
18536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18537 if test "${ac_cv_path_QMTEST+set}" = set; then
18538   echo $ECHO_N "(cached) $ECHO_C" >&6
18539 else
18540   case $QMTEST in
18541   [\\/]* | ?:[\\/]*)
18542   ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18543   ;;
18544   *)
18545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18546 for as_dir in $PATH
18547 do
18548   IFS=$as_save_IFS
18549   test -z "$as_dir" && as_dir=.
18550   for ac_exec_ext in '' $ac_executable_extensions; do
18551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18552     ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18554     break 2
18555   fi
18556 done
18557 done
18558
18559   ;;
18560 esac
18561 fi
18562 QMTEST=$ac_cv_path_QMTEST
18563
18564 if test -n "$QMTEST"; then
18565   echo "$as_me:$LINENO: result: $QMTEST" >&5
18566 echo "${ECHO_T}$QMTEST" >&6
18567 else
18568   echo "$as_me:$LINENO: result: no" >&5
18569 echo "${ECHO_T}no" >&6
18570 fi
18571
18572
18573 pyversion=`$PYTHON -V 2>&1 | cut -d\  -f2`
18574 pymajor=`echo $pyversion | cut -d. -f1`
18575 pyminor=`echo $pyversion | cut -d. -f2`
18576
18577 if test "$pymajor" -ge "2"
18578 then
18579         if test "$pymajor" -eq "2"
18580         then
18581                 if test "$pyminor" -lt "2"
18582                 then
18583                         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18584 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18585    { (exit 1); exit 1; }; }
18586                 fi
18587         fi
18588 else
18589         { { echo "$as_me:$LINENO: error: Python 2.2 or greater required" >&5
18590 echo "$as_me: error: Python 2.2 or greater required" >&2;}
18591    { (exit 1); exit 1; }; }
18592 fi
18593
18594
18595
18596
18597
18598 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18599 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18600 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18601   echo $ECHO_N "(cached) $ECHO_C" >&6
18602 else
18603   ac_check_lib_save_LIBS=$LIBS
18604 LIBS="-lelf  $LIBS"
18605 cat >conftest.$ac_ext <<_ACEOF
18606 #line $LINENO "configure"
18607 #include "confdefs.h"
18608
18609 /* Override any gcc2 internal prototype to avoid an error.  */
18610 #ifdef __cplusplus
18611 extern "C"
18612 #endif
18613 /* We use char because int might match the return type of a gcc2
18614    builtin and then its argument prototype would still apply.  */
18615 char elf_begin ();
18616 #ifdef F77_DUMMY_MAIN
18617 #  ifdef __cplusplus
18618      extern "C"
18619 #  endif
18620    int F77_DUMMY_MAIN() { return 1; }
18621 #endif
18622 int
18623 main ()
18624 {
18625 elf_begin ();
18626   ;
18627   return 0;
18628 }
18629 _ACEOF
18630 rm -f conftest.$ac_objext conftest$ac_exeext
18631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18632   (eval $ac_link) 2>&5
18633   ac_status=$?
18634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635   (exit $ac_status); } &&
18636          { ac_try='test -s conftest$ac_exeext'
18637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638   (eval $ac_try) 2>&5
18639   ac_status=$?
18640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641   (exit $ac_status); }; }; then
18642   ac_cv_lib_elf_elf_begin=yes
18643 else
18644   echo "$as_me: failed program was:" >&5
18645 cat conftest.$ac_ext >&5
18646 ac_cv_lib_elf_elf_begin=no
18647 fi
18648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18649 LIBS=$ac_check_lib_save_LIBS
18650 fi
18651 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18652 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18653 if test $ac_cv_lib_elf_elf_begin = yes; then
18654   cat >>confdefs.h <<_ACEOF
18655 #define HAVE_LIBELF 1
18656 _ACEOF
18657
18658   LIBS="-lelf $LIBS"
18659
18660 fi
18661
18662
18663 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18664 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18665 if test "${ac_cv_search_dlopen+set}" = set; then
18666   echo $ECHO_N "(cached) $ECHO_C" >&6
18667 else
18668   ac_func_search_save_LIBS=$LIBS
18669 ac_cv_search_dlopen=no
18670 cat >conftest.$ac_ext <<_ACEOF
18671 #line $LINENO "configure"
18672 #include "confdefs.h"
18673
18674 /* Override any gcc2 internal prototype to avoid an error.  */
18675 #ifdef __cplusplus
18676 extern "C"
18677 #endif
18678 /* We use char because int might match the return type of a gcc2
18679    builtin and then its argument prototype would still apply.  */
18680 char dlopen ();
18681 #ifdef F77_DUMMY_MAIN
18682 #  ifdef __cplusplus
18683      extern "C"
18684 #  endif
18685    int F77_DUMMY_MAIN() { return 1; }
18686 #endif
18687 int
18688 main ()
18689 {
18690 dlopen ();
18691   ;
18692   return 0;
18693 }
18694 _ACEOF
18695 rm -f conftest.$ac_objext conftest$ac_exeext
18696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18697   (eval $ac_link) 2>&5
18698   ac_status=$?
18699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700   (exit $ac_status); } &&
18701          { ac_try='test -s conftest$ac_exeext'
18702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703   (eval $ac_try) 2>&5
18704   ac_status=$?
18705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706   (exit $ac_status); }; }; then
18707   ac_cv_search_dlopen="none required"
18708 else
18709   echo "$as_me: failed program was:" >&5
18710 cat conftest.$ac_ext >&5
18711 fi
18712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18713 if test "$ac_cv_search_dlopen" = no; then
18714   for ac_lib in dl; do
18715     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18716     cat >conftest.$ac_ext <<_ACEOF
18717 #line $LINENO "configure"
18718 #include "confdefs.h"
18719
18720 /* Override any gcc2 internal prototype to avoid an error.  */
18721 #ifdef __cplusplus
18722 extern "C"
18723 #endif
18724 /* We use char because int might match the return type of a gcc2
18725    builtin and then its argument prototype would still apply.  */
18726 char dlopen ();
18727 #ifdef F77_DUMMY_MAIN
18728 #  ifdef __cplusplus
18729      extern "C"
18730 #  endif
18731    int F77_DUMMY_MAIN() { return 1; }
18732 #endif
18733 int
18734 main ()
18735 {
18736 dlopen ();
18737   ;
18738   return 0;
18739 }
18740 _ACEOF
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18743   (eval $ac_link) 2>&5
18744   ac_status=$?
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); } &&
18747          { ac_try='test -s conftest$ac_exeext'
18748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749   (eval $ac_try) 2>&5
18750   ac_status=$?
18751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752   (exit $ac_status); }; }; then
18753   ac_cv_search_dlopen="-l$ac_lib"
18754 break
18755 else
18756   echo "$as_me: failed program was:" >&5
18757 cat conftest.$ac_ext >&5
18758 fi
18759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18760   done
18761 fi
18762 LIBS=$ac_func_search_save_LIBS
18763 fi
18764 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18765 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18766 if test "$ac_cv_search_dlopen" != no; then
18767   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
18768
18769 else
18770   { { echo "$as_me:$LINENO: error: dlopen() required but not found" >&5
18771 echo "$as_me: error: dlopen() required but not found" >&2;}
18772    { (exit 1); exit 1; }; }
18773 fi
18774
18775
18776 echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18777 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18778 if test "${ac_cv_search_mallinfo+set}" = set; then
18779   echo $ECHO_N "(cached) $ECHO_C" >&6
18780 else
18781   ac_func_search_save_LIBS=$LIBS
18782 ac_cv_search_mallinfo=no
18783 cat >conftest.$ac_ext <<_ACEOF
18784 #line $LINENO "configure"
18785 #include "confdefs.h"
18786
18787 /* Override any gcc2 internal prototype to avoid an error.  */
18788 #ifdef __cplusplus
18789 extern "C"
18790 #endif
18791 /* We use char because int might match the return type of a gcc2
18792    builtin and then its argument prototype would still apply.  */
18793 char mallinfo ();
18794 #ifdef F77_DUMMY_MAIN
18795 #  ifdef __cplusplus
18796      extern "C"
18797 #  endif
18798    int F77_DUMMY_MAIN() { return 1; }
18799 #endif
18800 int
18801 main ()
18802 {
18803 mallinfo ();
18804   ;
18805   return 0;
18806 }
18807 _ACEOF
18808 rm -f conftest.$ac_objext conftest$ac_exeext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18810   (eval $ac_link) 2>&5
18811   ac_status=$?
18812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813   (exit $ac_status); } &&
18814          { ac_try='test -s conftest$ac_exeext'
18815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816   (eval $ac_try) 2>&5
18817   ac_status=$?
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); }; }; then
18820   ac_cv_search_mallinfo="none required"
18821 else
18822   echo "$as_me: failed program was:" >&5
18823 cat conftest.$ac_ext >&5
18824 fi
18825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18826 if test "$ac_cv_search_mallinfo" = no; then
18827   for ac_lib in malloc; do
18828     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18829     cat >conftest.$ac_ext <<_ACEOF
18830 #line $LINENO "configure"
18831 #include "confdefs.h"
18832
18833 /* Override any gcc2 internal prototype to avoid an error.  */
18834 #ifdef __cplusplus
18835 extern "C"
18836 #endif
18837 /* We use char because int might match the return type of a gcc2
18838    builtin and then its argument prototype would still apply.  */
18839 char mallinfo ();
18840 #ifdef F77_DUMMY_MAIN
18841 #  ifdef __cplusplus
18842      extern "C"
18843 #  endif
18844    int F77_DUMMY_MAIN() { return 1; }
18845 #endif
18846 int
18847 main ()
18848 {
18849 mallinfo ();
18850   ;
18851   return 0;
18852 }
18853 _ACEOF
18854 rm -f conftest.$ac_objext conftest$ac_exeext
18855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18856   (eval $ac_link) 2>&5
18857   ac_status=$?
18858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859   (exit $ac_status); } &&
18860          { ac_try='test -s conftest$ac_exeext'
18861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862   (eval $ac_try) 2>&5
18863   ac_status=$?
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); }; }; then
18866   ac_cv_search_mallinfo="-l$ac_lib"
18867 break
18868 else
18869   echo "$as_me: failed program was:" >&5
18870 cat conftest.$ac_ext >&5
18871 fi
18872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18873   done
18874 fi
18875 LIBS=$ac_func_search_save_LIBS
18876 fi
18877 echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18878 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18879 if test "$ac_cv_search_mallinfo" != no; then
18880   test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
18881   cat >>confdefs.h <<\_ACEOF
18882 #define HAVE_MALLINFO 1
18883 _ACEOF
18884
18885 fi
18886
18887
18888
18889 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18890 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18891 if test "${ac_cv_header_stdc+set}" = set; then
18892   echo $ECHO_N "(cached) $ECHO_C" >&6
18893 else
18894   cat >conftest.$ac_ext <<_ACEOF
18895 #line $LINENO "configure"
18896 #include "confdefs.h"
18897 #include <stdlib.h>
18898 #include <stdarg.h>
18899 #include <string.h>
18900 #include <float.h>
18901
18902 _ACEOF
18903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18904   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18905   ac_status=$?
18906   egrep -v '^ *\+' conftest.er1 >conftest.err
18907   rm -f conftest.er1
18908   cat conftest.err >&5
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); } >/dev/null; then
18911   if test -s conftest.err; then
18912     ac_cpp_err=$ac_c_preproc_warn_flag
18913   else
18914     ac_cpp_err=
18915   fi
18916 else
18917   ac_cpp_err=yes
18918 fi
18919 if test -z "$ac_cpp_err"; then
18920   ac_cv_header_stdc=yes
18921 else
18922   echo "$as_me: failed program was:" >&5
18923   cat conftest.$ac_ext >&5
18924   ac_cv_header_stdc=no
18925 fi
18926 rm -f conftest.err conftest.$ac_ext
18927
18928 if test $ac_cv_header_stdc = yes; then
18929   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18930   cat >conftest.$ac_ext <<_ACEOF
18931 #line $LINENO "configure"
18932 #include "confdefs.h"
18933 #include <string.h>
18934
18935 _ACEOF
18936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18937   egrep "memchr" >/dev/null 2>&1; then
18938   :
18939 else
18940   ac_cv_header_stdc=no
18941 fi
18942 rm -f conftest*
18943
18944 fi
18945
18946 if test $ac_cv_header_stdc = yes; then
18947   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18948   cat >conftest.$ac_ext <<_ACEOF
18949 #line $LINENO "configure"
18950 #include "confdefs.h"
18951 #include <stdlib.h>
18952
18953 _ACEOF
18954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18955   egrep "free" >/dev/null 2>&1; then
18956   :
18957 else
18958   ac_cv_header_stdc=no
18959 fi
18960 rm -f conftest*
18961
18962 fi
18963
18964 if test $ac_cv_header_stdc = yes; then
18965   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18966   if test "$cross_compiling" = yes; then
18967   :
18968 else
18969   cat >conftest.$ac_ext <<_ACEOF
18970 #line $LINENO "configure"
18971 #include "confdefs.h"
18972 #include <ctype.h>
18973 #if ((' ' & 0x0FF) == 0x020)
18974 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18975 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18976 #else
18977 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18978                      || ('j' <= (c) && (c) <= 'r') \
18979                      || ('s' <= (c) && (c) <= 'z'))
18980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18981 #endif
18982
18983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18984 int
18985 main ()
18986 {
18987   int i;
18988   for (i = 0; i < 256; i++)
18989     if (XOR (islower (i), ISLOWER (i))
18990         || toupper (i) != TOUPPER (i))
18991       exit(2);
18992   exit (0);
18993 }
18994 _ACEOF
18995 rm -f conftest$ac_exeext
18996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18997   (eval $ac_link) 2>&5
18998   ac_status=$?
18999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002   (eval $ac_try) 2>&5
19003   ac_status=$?
19004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005   (exit $ac_status); }; }; then
19006   :
19007 else
19008   echo "$as_me: program exited with status $ac_status" >&5
19009 echo "$as_me: failed program was:" >&5
19010 cat conftest.$ac_ext >&5
19011 ( exit $ac_status )
19012 ac_cv_header_stdc=no
19013 fi
19014 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19015 fi
19016 fi
19017 fi
19018 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19019 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19020 if test $ac_cv_header_stdc = yes; then
19021
19022 cat >>confdefs.h <<\_ACEOF
19023 #define STDC_HEADERS 1
19024 _ACEOF
19025
19026 fi
19027
19028 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19029 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19030 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19031   echo $ECHO_N "(cached) $ECHO_C" >&6
19032 else
19033   cat >conftest.$ac_ext <<_ACEOF
19034 #line $LINENO "configure"
19035 #include "confdefs.h"
19036 #include <sys/types.h>
19037 #include <sys/wait.h>
19038 #ifndef WEXITSTATUS
19039 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19040 #endif
19041 #ifndef WIFEXITED
19042 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19043 #endif
19044
19045 #ifdef F77_DUMMY_MAIN
19046 #  ifdef __cplusplus
19047      extern "C"
19048 #  endif
19049    int F77_DUMMY_MAIN() { return 1; }
19050 #endif
19051 int
19052 main ()
19053 {
19054   int s;
19055   wait (&s);
19056   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest.$ac_objext
19062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19063   (eval $ac_compile) 2>&5
19064   ac_status=$?
19065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); } &&
19067          { ac_try='test -s conftest.$ac_objext'
19068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069   (eval $ac_try) 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); }; }; then
19073   ac_cv_header_sys_wait_h=yes
19074 else
19075   echo "$as_me: failed program was:" >&5
19076 cat conftest.$ac_ext >&5
19077 ac_cv_header_sys_wait_h=no
19078 fi
19079 rm -f conftest.$ac_objext conftest.$ac_ext
19080 fi
19081 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19082 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19083 if test $ac_cv_header_sys_wait_h = yes; then
19084
19085 cat >>confdefs.h <<\_ACEOF
19086 #define HAVE_SYS_WAIT_H 1
19087 _ACEOF
19088
19089 fi
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100 for ac_header in assert.h fcntl.h limits.h sys/time.h unistd.h errno.h signal.h math.h
19101 do
19102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19104   echo "$as_me:$LINENO: checking for $ac_header" >&5
19105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19107   echo $ECHO_N "(cached) $ECHO_C" >&6
19108 fi
19109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19111 else
19112   # Is the header compilable?
19113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19115 cat >conftest.$ac_ext <<_ACEOF
19116 #line $LINENO "configure"
19117 #include "confdefs.h"
19118 $ac_includes_default
19119 #include <$ac_header>
19120 _ACEOF
19121 rm -f conftest.$ac_objext
19122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19123   (eval $ac_compile) 2>&5
19124   ac_status=$?
19125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126   (exit $ac_status); } &&
19127          { ac_try='test -s conftest.$ac_objext'
19128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129   (eval $ac_try) 2>&5
19130   ac_status=$?
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); }; }; then
19133   ac_header_compiler=yes
19134 else
19135   echo "$as_me: failed program was:" >&5
19136 cat conftest.$ac_ext >&5
19137 ac_header_compiler=no
19138 fi
19139 rm -f conftest.$ac_objext conftest.$ac_ext
19140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19141 echo "${ECHO_T}$ac_header_compiler" >&6
19142
19143 # Is the header present?
19144 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19146 cat >conftest.$ac_ext <<_ACEOF
19147 #line $LINENO "configure"
19148 #include "confdefs.h"
19149 #include <$ac_header>
19150 _ACEOF
19151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19152   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19153   ac_status=$?
19154   egrep -v '^ *\+' conftest.er1 >conftest.err
19155   rm -f conftest.er1
19156   cat conftest.err >&5
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); } >/dev/null; then
19159   if test -s conftest.err; then
19160     ac_cpp_err=$ac_c_preproc_warn_flag
19161   else
19162     ac_cpp_err=
19163   fi
19164 else
19165   ac_cpp_err=yes
19166 fi
19167 if test -z "$ac_cpp_err"; then
19168   ac_header_preproc=yes
19169 else
19170   echo "$as_me: failed program was:" >&5
19171   cat conftest.$ac_ext >&5
19172   ac_header_preproc=no
19173 fi
19174 rm -f conftest.err conftest.$ac_ext
19175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19176 echo "${ECHO_T}$ac_header_preproc" >&6
19177
19178 # So?  What about this header?
19179 case $ac_header_compiler:$ac_header_preproc in
19180   yes:no )
19181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19185   no:yes )
19186     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19188     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19189 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19192 esac
19193 echo "$as_me:$LINENO: checking for $ac_header" >&5
19194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19196   echo $ECHO_N "(cached) $ECHO_C" >&6
19197 else
19198   eval "$as_ac_Header=$ac_header_preproc"
19199 fi
19200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19202
19203 fi
19204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19205   cat >>confdefs.h <<_ACEOF
19206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19207 _ACEOF
19208
19209 fi
19210
19211 done
19212
19213
19214
19215
19216
19217
19218 for ac_header in malloc.h strings.h sys/mman.h sys/resource.h
19219 do
19220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19222   echo "$as_me:$LINENO: checking for $ac_header" >&5
19223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19225   echo $ECHO_N "(cached) $ECHO_C" >&6
19226 fi
19227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19229 else
19230   # Is the header compilable?
19231 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19233 cat >conftest.$ac_ext <<_ACEOF
19234 #line $LINENO "configure"
19235 #include "confdefs.h"
19236 $ac_includes_default
19237 #include <$ac_header>
19238 _ACEOF
19239 rm -f conftest.$ac_objext
19240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19241   (eval $ac_compile) 2>&5
19242   ac_status=$?
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); } &&
19245          { ac_try='test -s conftest.$ac_objext'
19246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247   (eval $ac_try) 2>&5
19248   ac_status=$?
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); }; }; then
19251   ac_header_compiler=yes
19252 else
19253   echo "$as_me: failed program was:" >&5
19254 cat conftest.$ac_ext >&5
19255 ac_header_compiler=no
19256 fi
19257 rm -f conftest.$ac_objext conftest.$ac_ext
19258 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19259 echo "${ECHO_T}$ac_header_compiler" >&6
19260
19261 # Is the header present?
19262 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19264 cat >conftest.$ac_ext <<_ACEOF
19265 #line $LINENO "configure"
19266 #include "confdefs.h"
19267 #include <$ac_header>
19268 _ACEOF
19269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19270   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19271   ac_status=$?
19272   egrep -v '^ *\+' conftest.er1 >conftest.err
19273   rm -f conftest.er1
19274   cat conftest.err >&5
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); } >/dev/null; then
19277   if test -s conftest.err; then
19278     ac_cpp_err=$ac_c_preproc_warn_flag
19279   else
19280     ac_cpp_err=
19281   fi
19282 else
19283   ac_cpp_err=yes
19284 fi
19285 if test -z "$ac_cpp_err"; then
19286   ac_header_preproc=yes
19287 else
19288   echo "$as_me: failed program was:" >&5
19289   cat conftest.$ac_ext >&5
19290   ac_header_preproc=no
19291 fi
19292 rm -f conftest.err conftest.$ac_ext
19293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19294 echo "${ECHO_T}$ac_header_preproc" >&6
19295
19296 # So?  What about this header?
19297 case $ac_header_compiler:$ac_header_preproc in
19298   yes:no )
19299     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19303   no:yes )
19304     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19306     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19310 esac
19311 echo "$as_me:$LINENO: checking for $ac_header" >&5
19312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19314   echo $ECHO_N "(cached) $ECHO_C" >&6
19315 else
19316   eval "$as_ac_Header=$ac_header_preproc"
19317 fi
19318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19320
19321 fi
19322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19323   cat >>confdefs.h <<_ACEOF
19324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19325 _ACEOF
19326
19327 fi
19328
19329 done
19330
19331
19332
19333
19334 for ac_header in dlfcn.h link.h
19335 do
19336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19338   echo "$as_me:$LINENO: checking for $ac_header" >&5
19339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19341   echo $ECHO_N "(cached) $ECHO_C" >&6
19342 fi
19343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19345 else
19346   # Is the header compilable?
19347 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19349 cat >conftest.$ac_ext <<_ACEOF
19350 #line $LINENO "configure"
19351 #include "confdefs.h"
19352 $ac_includes_default
19353 #include <$ac_header>
19354 _ACEOF
19355 rm -f conftest.$ac_objext
19356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19357   (eval $ac_compile) 2>&5
19358   ac_status=$?
19359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360   (exit $ac_status); } &&
19361          { ac_try='test -s conftest.$ac_objext'
19362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363   (eval $ac_try) 2>&5
19364   ac_status=$?
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); }; }; then
19367   ac_header_compiler=yes
19368 else
19369   echo "$as_me: failed program was:" >&5
19370 cat conftest.$ac_ext >&5
19371 ac_header_compiler=no
19372 fi
19373 rm -f conftest.$ac_objext conftest.$ac_ext
19374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19375 echo "${ECHO_T}$ac_header_compiler" >&6
19376
19377 # Is the header present?
19378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19380 cat >conftest.$ac_ext <<_ACEOF
19381 #line $LINENO "configure"
19382 #include "confdefs.h"
19383 #include <$ac_header>
19384 _ACEOF
19385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19387   ac_status=$?
19388   egrep -v '^ *\+' conftest.er1 >conftest.err
19389   rm -f conftest.er1
19390   cat conftest.err >&5
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); } >/dev/null; then
19393   if test -s conftest.err; then
19394     ac_cpp_err=$ac_c_preproc_warn_flag
19395   else
19396     ac_cpp_err=
19397   fi
19398 else
19399   ac_cpp_err=yes
19400 fi
19401 if test -z "$ac_cpp_err"; then
19402   ac_header_preproc=yes
19403 else
19404   echo "$as_me: failed program was:" >&5
19405   cat conftest.$ac_ext >&5
19406   ac_header_preproc=no
19407 fi
19408 rm -f conftest.err conftest.$ac_ext
19409 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19410 echo "${ECHO_T}$ac_header_preproc" >&6
19411
19412 # So?  What about this header?
19413 case $ac_header_compiler:$ac_header_preproc in
19414   yes:no )
19415     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19419   no:yes )
19420     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19422     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
19426 esac
19427 echo "$as_me:$LINENO: checking for $ac_header" >&5
19428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19430   echo $ECHO_N "(cached) $ECHO_C" >&6
19431 else
19432   eval "$as_ac_Header=$ac_header_preproc"
19433 fi
19434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19436
19437 fi
19438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19439   cat >>confdefs.h <<_ACEOF
19440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19441 _ACEOF
19442
19443 fi
19444
19445 done
19446
19447
19448
19449 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19450 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19451 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19452   echo $ECHO_N "(cached) $ECHO_C" >&6
19453 else
19454   ac_cv_prog_cc_stdc=no
19455 ac_save_CC=$CC
19456 cat >conftest.$ac_ext <<_ACEOF
19457 #line $LINENO "configure"
19458 #include "confdefs.h"
19459 #include <stdarg.h>
19460 #include <stdio.h>
19461 #include <sys/types.h>
19462 #include <sys/stat.h>
19463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19464 struct buf { int x; };
19465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19466 static char *e (p, i)
19467      char **p;
19468      int i;
19469 {
19470   return p[i];
19471 }
19472 static char *f (char * (*g) (char **, int), char **p, ...)
19473 {
19474   char *s;
19475   va_list v;
19476   va_start (v,p);
19477   s = g (p, va_arg (v,int));
19478   va_end (v);
19479   return s;
19480 }
19481 int test (int i, double x);
19482 struct s1 {int (*f) (int a);};
19483 struct s2 {int (*f) (double a);};
19484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19485 int argc;
19486 char **argv;
19487 #ifdef F77_DUMMY_MAIN
19488 #  ifdef __cplusplus
19489      extern "C"
19490 #  endif
19491    int F77_DUMMY_MAIN() { return 1; }
19492 #endif
19493 int
19494 main ()
19495 {
19496 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19497   ;
19498   return 0;
19499 }
19500 _ACEOF
19501 # Don't try gcc -ansi; that turns off useful extensions and
19502 # breaks some systems' header files.
19503 # AIX                   -qlanglvl=ansi
19504 # Ultrix and OSF/1      -std1
19505 # HP-UX 10.20 and later -Ae
19506 # HP-UX older versions  -Aa -D_HPUX_SOURCE
19507 # SVR4                  -Xc -D__EXTENSIONS__
19508 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19509 do
19510   CC="$ac_save_CC $ac_arg"
19511   rm -f conftest.$ac_objext
19512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19513   (eval $ac_compile) 2>&5
19514   ac_status=$?
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); } &&
19517          { ac_try='test -s conftest.$ac_objext'
19518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519   (eval $ac_try) 2>&5
19520   ac_status=$?
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); }; }; then
19523   ac_cv_prog_cc_stdc=$ac_arg
19524 break
19525 else
19526   echo "$as_me: failed program was:" >&5
19527 cat conftest.$ac_ext >&5
19528 fi
19529 rm -f conftest.$ac_objext
19530 done
19531 rm -f conftest.$ac_ext conftest.$ac_objext
19532 CC=$ac_save_CC
19533
19534 fi
19535
19536 case "x$ac_cv_prog_cc_stdc" in
19537   x|xno)
19538     echo "$as_me:$LINENO: result: none needed" >&5
19539 echo "${ECHO_T}none needed" >&6 ;;
19540   *)
19541     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19542 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19543     CC="$CC $ac_cv_prog_cc_stdc" ;;
19544 esac
19545
19546 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19547 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19548 if test "${ac_cv_c_const+set}" = set; then
19549   echo $ECHO_N "(cached) $ECHO_C" >&6
19550 else
19551   cat >conftest.$ac_ext <<_ACEOF
19552 #line $LINENO "configure"
19553 #include "confdefs.h"
19554
19555 #ifdef F77_DUMMY_MAIN
19556 #  ifdef __cplusplus
19557      extern "C"
19558 #  endif
19559    int F77_DUMMY_MAIN() { return 1; }
19560 #endif
19561 int
19562 main ()
19563 {
19564 /* FIXME: Include the comments suggested by Paul. */
19565 #ifndef __cplusplus
19566   /* Ultrix mips cc rejects this.  */
19567   typedef int charset[2];
19568   const charset x;
19569   /* SunOS 4.1.1 cc rejects this.  */
19570   char const *const *ccp;
19571   char **p;
19572   /* NEC SVR4.0.2 mips cc rejects this.  */
19573   struct point {int x, y;};
19574   static struct point const zero = {0,0};
19575   /* AIX XL C 1.02.0.0 rejects this.
19576      It does not let you subtract one const X* pointer from another in
19577      an arm of an if-expression whose if-part is not a constant
19578      expression */
19579   const char *g = "string";
19580   ccp = &g + (g ? g-g : 0);
19581   /* HPUX 7.0 cc rejects these. */
19582   ++ccp;
19583   p = (char**) ccp;
19584   ccp = (char const *const *) p;
19585   { /* SCO 3.2v4 cc rejects this.  */
19586     char *t;
19587     char const *s = 0 ? (char *) 0 : (char const *) 0;
19588
19589     *t++ = 0;
19590   }
19591   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19592     int x[] = {25, 17};
19593     const int *foo = &x[0];
19594     ++foo;
19595   }
19596   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19597     typedef const int *iptr;
19598     iptr p = 0;
19599     ++p;
19600   }
19601   { /* AIX XL C 1.02.0.0 rejects this saying
19602        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19603     struct s { int j; const int *ap[3]; };
19604     struct s *b; b->j = 5;
19605   }
19606   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19607     const int foo = 10;
19608   }
19609 #endif
19610
19611   ;
19612   return 0;
19613 }
19614 _ACEOF
19615 rm -f conftest.$ac_objext
19616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19617   (eval $ac_compile) 2>&5
19618   ac_status=$?
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); } &&
19621          { ac_try='test -s conftest.$ac_objext'
19622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623   (eval $ac_try) 2>&5
19624   ac_status=$?
19625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626   (exit $ac_status); }; }; then
19627   ac_cv_c_const=yes
19628 else
19629   echo "$as_me: failed program was:" >&5
19630 cat conftest.$ac_ext >&5
19631 ac_cv_c_const=no
19632 fi
19633 rm -f conftest.$ac_objext conftest.$ac_ext
19634 fi
19635 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19636 echo "${ECHO_T}$ac_cv_c_const" >&6
19637 if test $ac_cv_c_const = no; then
19638
19639 cat >>confdefs.h <<\_ACEOF
19640 #define const
19641 _ACEOF
19642
19643 fi
19644
19645 echo "$as_me:$LINENO: checking for inline" >&5
19646 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19647 if test "${ac_cv_c_inline+set}" = set; then
19648   echo $ECHO_N "(cached) $ECHO_C" >&6
19649 else
19650   ac_cv_c_inline=no
19651 for ac_kw in inline __inline__ __inline; do
19652   cat >conftest.$ac_ext <<_ACEOF
19653 #line $LINENO "configure"
19654 #include "confdefs.h"
19655 #ifndef __cplusplus
19656 static $ac_kw int static_foo () {return 0; }
19657 $ac_kw int foo () {return 0; }
19658 #endif
19659
19660 _ACEOF
19661 rm -f conftest.$ac_objext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663   (eval $ac_compile) 2>&5
19664   ac_status=$?
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); } &&
19667          { ac_try='test -s conftest.$ac_objext'
19668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669   (eval $ac_try) 2>&5
19670   ac_status=$?
19671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672   (exit $ac_status); }; }; then
19673   ac_cv_c_inline=$ac_kw; break
19674 else
19675   echo "$as_me: failed program was:" >&5
19676 cat conftest.$ac_ext >&5
19677 fi
19678 rm -f conftest.$ac_objext conftest.$ac_ext
19679 done
19680
19681 fi
19682 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19683 echo "${ECHO_T}$ac_cv_c_inline" >&6
19684 case $ac_cv_c_inline in
19685   inline | yes) ;;
19686   no)
19687 cat >>confdefs.h <<\_ACEOF
19688 #define inline
19689 _ACEOF
19690  ;;
19691   *)  cat >>confdefs.h <<_ACEOF
19692 #define inline $ac_cv_c_inline
19693 _ACEOF
19694  ;;
19695 esac
19696
19697
19698 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19699 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19700 if test "${ac_cv_c_bigendian+set}" = set; then
19701   echo $ECHO_N "(cached) $ECHO_C" >&6
19702 else
19703   # See if sys/param.h defines the BYTE_ORDER macro.
19704 cat >conftest.$ac_ext <<_ACEOF
19705 #line $LINENO "configure"
19706 #include "confdefs.h"
19707 #include <sys/types.h>
19708 #include <sys/param.h>
19709
19710 #ifdef F77_DUMMY_MAIN
19711 #  ifdef __cplusplus
19712      extern "C"
19713 #  endif
19714    int F77_DUMMY_MAIN() { return 1; }
19715 #endif
19716 int
19717 main ()
19718 {
19719 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19720  bogus endian macros
19721 #endif
19722
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   # It does; now see whether it defined to BIG_ENDIAN or not.
19740 cat >conftest.$ac_ext <<_ACEOF
19741 #line $LINENO "configure"
19742 #include "confdefs.h"
19743 #include <sys/types.h>
19744 #include <sys/param.h>
19745
19746 #ifdef F77_DUMMY_MAIN
19747 #  ifdef __cplusplus
19748      extern "C"
19749 #  endif
19750    int F77_DUMMY_MAIN() { return 1; }
19751 #endif
19752 int
19753 main ()
19754 {
19755 #if BYTE_ORDER != BIG_ENDIAN
19756  not big endian
19757 #endif
19758
19759   ;
19760   return 0;
19761 }
19762 _ACEOF
19763 rm -f conftest.$ac_objext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19765   (eval $ac_compile) 2>&5
19766   ac_status=$?
19767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768   (exit $ac_status); } &&
19769          { ac_try='test -s conftest.$ac_objext'
19770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19771   (eval $ac_try) 2>&5
19772   ac_status=$?
19773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); }; }; then
19775   ac_cv_c_bigendian=yes
19776 else
19777   echo "$as_me: failed program was:" >&5
19778 cat conftest.$ac_ext >&5
19779 ac_cv_c_bigendian=no
19780 fi
19781 rm -f conftest.$ac_objext conftest.$ac_ext
19782 else
19783   echo "$as_me: failed program was:" >&5
19784 cat conftest.$ac_ext >&5
19785 # It does not; compile a test program.
19786 if test "$cross_compiling" = yes; then
19787   # try to guess the endianess by grep'ing values into an object file
19788   ac_cv_c_bigendian=unknown
19789   cat >conftest.$ac_ext <<_ACEOF
19790 #line $LINENO "configure"
19791 #include "confdefs.h"
19792 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
19793 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
19794 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
19795 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
19796 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
19797 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
19798 #ifdef F77_DUMMY_MAIN
19799 #  ifdef __cplusplus
19800      extern "C"
19801 #  endif
19802    int F77_DUMMY_MAIN() { return 1; }
19803 #endif
19804 int
19805 main ()
19806 {
19807  _ascii (); _ebcdic ();
19808   ;
19809   return 0;
19810 }
19811 _ACEOF
19812 rm -f conftest.$ac_objext
19813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19814   (eval $ac_compile) 2>&5
19815   ac_status=$?
19816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817   (exit $ac_status); } &&
19818          { ac_try='test -s conftest.$ac_objext'
19819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820   (eval $ac_try) 2>&5
19821   ac_status=$?
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); }; }; then
19824   if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
19825   ac_cv_c_bigendian=yes
19826 fi
19827 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
19828   if test "$ac_cv_c_bigendian" = unknown; then
19829     ac_cv_c_bigendian=no
19830   else
19831     # finding both strings is unlikely to happen, but who knows?
19832     ac_cv_c_bigendian=unknown
19833   fi
19834 fi
19835 else
19836   echo "$as_me: failed program was:" >&5
19837 cat conftest.$ac_ext >&5
19838 fi
19839 rm -f conftest.$ac_objext conftest.$ac_ext
19840 else
19841   cat >conftest.$ac_ext <<_ACEOF
19842 #line $LINENO "configure"
19843 #include "confdefs.h"
19844 int
19845 main ()
19846 {
19847   /* Are we little or big endian?  From Harbison&Steele.  */
19848   union
19849   {
19850     long l;
19851     char c[sizeof (long)];
19852   } u;
19853   u.l = 1;
19854   exit (u.c[sizeof (long) - 1] == 1);
19855 }
19856 _ACEOF
19857 rm -f conftest$ac_exeext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19859   (eval $ac_link) 2>&5
19860   ac_status=$?
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19864   (eval $ac_try) 2>&5
19865   ac_status=$?
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); }; }; then
19868   ac_cv_c_bigendian=no
19869 else
19870   echo "$as_me: program exited with status $ac_status" >&5
19871 echo "$as_me: failed program was:" >&5
19872 cat conftest.$ac_ext >&5
19873 ( exit $ac_status )
19874 ac_cv_c_bigendian=yes
19875 fi
19876 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19877 fi
19878 fi
19879 rm -f conftest.$ac_objext conftest.$ac_ext
19880 fi
19881 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19882 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19883 case $ac_cv_c_bigendian in
19884   yes)
19885     cat >>confdefs.h <<\_ACEOF
19886 #define ENDIAN_BIG 1
19887 _ACEOF
19888  ;;
19889   no)
19890     cat >>confdefs.h <<\_ACEOF
19891 #define ENDIAN_LITTLE 1
19892 _ACEOF
19893  ;;
19894   *)
19895     { { echo "$as_me:$LINENO: error: unknown endianess
19896 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
19897 echo "$as_me: error: unknown endianess
19898 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
19899    { (exit 1); exit 1; }; } ;;
19900 esac
19901
19902
19903 echo "$as_me:$LINENO: checking for pid_t" >&5
19904 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19905 if test "${ac_cv_type_pid_t+set}" = set; then
19906   echo $ECHO_N "(cached) $ECHO_C" >&6
19907 else
19908   cat >conftest.$ac_ext <<_ACEOF
19909 #line $LINENO "configure"
19910 #include "confdefs.h"
19911 $ac_includes_default
19912 #ifdef F77_DUMMY_MAIN
19913 #  ifdef __cplusplus
19914      extern "C"
19915 #  endif
19916    int F77_DUMMY_MAIN() { return 1; }
19917 #endif
19918 int
19919 main ()
19920 {
19921 if ((pid_t *) 0)
19922   return 0;
19923 if (sizeof (pid_t))
19924   return 0;
19925   ;
19926   return 0;
19927 }
19928 _ACEOF
19929 rm -f conftest.$ac_objext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19931   (eval $ac_compile) 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); } &&
19935          { ac_try='test -s conftest.$ac_objext'
19936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937   (eval $ac_try) 2>&5
19938   ac_status=$?
19939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940   (exit $ac_status); }; }; then
19941   ac_cv_type_pid_t=yes
19942 else
19943   echo "$as_me: failed program was:" >&5
19944 cat conftest.$ac_ext >&5
19945 ac_cv_type_pid_t=no
19946 fi
19947 rm -f conftest.$ac_objext conftest.$ac_ext
19948 fi
19949 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19950 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19951 if test $ac_cv_type_pid_t = yes; then
19952   :
19953 else
19954
19955 cat >>confdefs.h <<_ACEOF
19956 #define pid_t int
19957 _ACEOF
19958
19959 fi
19960
19961 echo "$as_me:$LINENO: checking for size_t" >&5
19962 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19963 if test "${ac_cv_type_size_t+set}" = set; then
19964   echo $ECHO_N "(cached) $ECHO_C" >&6
19965 else
19966   cat >conftest.$ac_ext <<_ACEOF
19967 #line $LINENO "configure"
19968 #include "confdefs.h"
19969 $ac_includes_default
19970 #ifdef F77_DUMMY_MAIN
19971 #  ifdef __cplusplus
19972      extern "C"
19973 #  endif
19974    int F77_DUMMY_MAIN() { return 1; }
19975 #endif
19976 int
19977 main ()
19978 {
19979 if ((size_t *) 0)
19980   return 0;
19981 if (sizeof (size_t))
19982   return 0;
19983   ;
19984   return 0;
19985 }
19986 _ACEOF
19987 rm -f conftest.$ac_objext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19989   (eval $ac_compile) 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); } &&
19993          { ac_try='test -s conftest.$ac_objext'
19994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995   (eval $ac_try) 2>&5
19996   ac_status=$?
19997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998   (exit $ac_status); }; }; then
19999   ac_cv_type_size_t=yes
20000 else
20001   echo "$as_me: failed program was:" >&5
20002 cat conftest.$ac_ext >&5
20003 ac_cv_type_size_t=no
20004 fi
20005 rm -f conftest.$ac_objext conftest.$ac_ext
20006 fi
20007 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20008 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20009 if test $ac_cv_type_size_t = yes; then
20010   :
20011 else
20012
20013 cat >>confdefs.h <<_ACEOF
20014 #define size_t unsigned
20015 _ACEOF
20016
20017 fi
20018
20019 echo "$as_me:$LINENO: checking for int64_t" >&5
20020 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20021 if test "${ac_cv_type_int64_t+set}" = set; then
20022   echo $ECHO_N "(cached) $ECHO_C" >&6
20023 else
20024   cat >conftest.$ac_ext <<_ACEOF
20025 #line $LINENO "configure"
20026 #include "confdefs.h"
20027 $ac_includes_default
20028 #ifdef F77_DUMMY_MAIN
20029 #  ifdef __cplusplus
20030      extern "C"
20031 #  endif
20032    int F77_DUMMY_MAIN() { return 1; }
20033 #endif
20034 int
20035 main ()
20036 {
20037 if ((int64_t *) 0)
20038   return 0;
20039 if (sizeof (int64_t))
20040   return 0;
20041   ;
20042   return 0;
20043 }
20044 _ACEOF
20045 rm -f conftest.$ac_objext
20046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20047   (eval $ac_compile) 2>&5
20048   ac_status=$?
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); } &&
20051          { ac_try='test -s conftest.$ac_objext'
20052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20053   (eval $ac_try) 2>&5
20054   ac_status=$?
20055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056   (exit $ac_status); }; }; then
20057   ac_cv_type_int64_t=yes
20058 else
20059   echo "$as_me: failed program was:" >&5
20060 cat conftest.$ac_ext >&5
20061 ac_cv_type_int64_t=no
20062 fi
20063 rm -f conftest.$ac_objext conftest.$ac_ext
20064 fi
20065 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20066 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20067 if test $ac_cv_type_int64_t = yes; then
20068
20069 cat >>confdefs.h <<_ACEOF
20070 #define HAVE_INT64_T 1
20071 _ACEOF
20072
20073
20074 else
20075   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20076 echo "$as_me: error: Type int64_t required but not found" >&2;}
20077    { (exit 1); exit 1; }; }
20078 fi
20079
20080 echo "$as_me:$LINENO: checking for uint64_t" >&5
20081 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20082 if test "${ac_cv_type_uint64_t+set}" = set; then
20083   echo $ECHO_N "(cached) $ECHO_C" >&6
20084 else
20085   cat >conftest.$ac_ext <<_ACEOF
20086 #line $LINENO "configure"
20087 #include "confdefs.h"
20088 $ac_includes_default
20089 #ifdef F77_DUMMY_MAIN
20090 #  ifdef __cplusplus
20091      extern "C"
20092 #  endif
20093    int F77_DUMMY_MAIN() { return 1; }
20094 #endif
20095 int
20096 main ()
20097 {
20098 if ((uint64_t *) 0)
20099   return 0;
20100 if (sizeof (uint64_t))
20101   return 0;
20102   ;
20103   return 0;
20104 }
20105 _ACEOF
20106 rm -f conftest.$ac_objext
20107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20108   (eval $ac_compile) 2>&5
20109   ac_status=$?
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); } &&
20112          { ac_try='test -s conftest.$ac_objext'
20113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20114   (eval $ac_try) 2>&5
20115   ac_status=$?
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); }; }; then
20118   ac_cv_type_uint64_t=yes
20119 else
20120   echo "$as_me: failed program was:" >&5
20121 cat conftest.$ac_ext >&5
20122 ac_cv_type_uint64_t=no
20123 fi
20124 rm -f conftest.$ac_objext conftest.$ac_ext
20125 fi
20126 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20127 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20128 if test $ac_cv_type_uint64_t = yes; then
20129
20130 cat >>confdefs.h <<_ACEOF
20131 #define HAVE_UINT64_T 1
20132 _ACEOF
20133
20134
20135 else
20136   { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20137 echo "$as_me: error: Type uint64_t required but not found" >&2;}
20138    { (exit 1); exit 1; }; }
20139 fi
20140
20141 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20142 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20143 if test "${ac_cv_header_time+set}" = set; then
20144   echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146   cat >conftest.$ac_ext <<_ACEOF
20147 #line $LINENO "configure"
20148 #include "confdefs.h"
20149 #include <sys/types.h>
20150 #include <sys/time.h>
20151 #include <time.h>
20152
20153 #ifdef F77_DUMMY_MAIN
20154 #  ifdef __cplusplus
20155      extern "C"
20156 #  endif
20157    int F77_DUMMY_MAIN() { return 1; }
20158 #endif
20159 int
20160 main ()
20161 {
20162 if ((struct tm *) 0)
20163 return 0;
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20170   (eval $ac_compile) 2>&5
20171   ac_status=$?
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); } &&
20174          { ac_try='test -s conftest.$ac_objext'
20175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176   (eval $ac_try) 2>&5
20177   ac_status=$?
20178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179   (exit $ac_status); }; }; then
20180   ac_cv_header_time=yes
20181 else
20182   echo "$as_me: failed program was:" >&5
20183 cat conftest.$ac_ext >&5
20184 ac_cv_header_time=no
20185 fi
20186 rm -f conftest.$ac_objext conftest.$ac_ext
20187 fi
20188 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20189 echo "${ECHO_T}$ac_cv_header_time" >&6
20190 if test $ac_cv_header_time = yes; then
20191
20192 cat >>confdefs.h <<\_ACEOF
20193 #define TIME_WITH_SYS_TIME 1
20194 _ACEOF
20195
20196 fi
20197
20198 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20199 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20200 if test "${ac_cv_struct_tm+set}" = set; then
20201   echo $ECHO_N "(cached) $ECHO_C" >&6
20202 else
20203   cat >conftest.$ac_ext <<_ACEOF
20204 #line $LINENO "configure"
20205 #include "confdefs.h"
20206 #include <sys/types.h>
20207 #include <time.h>
20208
20209 #ifdef F77_DUMMY_MAIN
20210 #  ifdef __cplusplus
20211      extern "C"
20212 #  endif
20213    int F77_DUMMY_MAIN() { return 1; }
20214 #endif
20215 int
20216 main ()
20217 {
20218 struct tm *tp; tp->tm_sec;
20219   ;
20220   return 0;
20221 }
20222 _ACEOF
20223 rm -f conftest.$ac_objext
20224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20225   (eval $ac_compile) 2>&5
20226   ac_status=$?
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); } &&
20229          { ac_try='test -s conftest.$ac_objext'
20230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231   (eval $ac_try) 2>&5
20232   ac_status=$?
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); }; }; then
20235   ac_cv_struct_tm=time.h
20236 else
20237   echo "$as_me: failed program was:" >&5
20238 cat conftest.$ac_ext >&5
20239 ac_cv_struct_tm=sys/time.h
20240 fi
20241 rm -f conftest.$ac_objext conftest.$ac_ext
20242 fi
20243 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20244 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20245 if test $ac_cv_struct_tm = sys/time.h; then
20246
20247 cat >>confdefs.h <<\_ACEOF
20248 #define TM_IN_SYS_TIME 1
20249 _ACEOF
20250
20251 fi
20252
20253
20254 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20255 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20256 if test "${ac_cv_cxx_namespaces+set}" = set; then
20257   echo $ECHO_N "(cached) $ECHO_C" >&6
20258 else
20259
20260
20261  ac_ext=cc
20262 ac_cpp='$CXXCPP $CPPFLAGS'
20263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20266
20267  cat >conftest.$ac_ext <<_ACEOF
20268 #line $LINENO "configure"
20269 #include "confdefs.h"
20270 namespace Outer { namespace Inner { int i = 0; }}
20271 #ifdef F77_DUMMY_MAIN
20272 #  ifdef __cplusplus
20273      extern "C"
20274 #  endif
20275    int F77_DUMMY_MAIN() { return 1; }
20276 #endif
20277 int
20278 main ()
20279 {
20280 using namespace Outer::Inner; return i;
20281   ;
20282   return 0;
20283 }
20284 _ACEOF
20285 rm -f conftest.$ac_objext
20286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20287   (eval $ac_compile) 2>&5
20288   ac_status=$?
20289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290   (exit $ac_status); } &&
20291          { ac_try='test -s conftest.$ac_objext'
20292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293   (eval $ac_try) 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }; }; then
20297   ac_cv_cxx_namespaces=yes
20298 else
20299   echo "$as_me: failed program was:" >&5
20300 cat conftest.$ac_ext >&5
20301 ac_cv_cxx_namespaces=no
20302 fi
20303 rm -f conftest.$ac_objext conftest.$ac_ext
20304  ac_ext=c
20305 ac_cpp='$CPP $CPPFLAGS'
20306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20309
20310
20311 fi
20312 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20313 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20314 if test "$ac_cv_cxx_namespaces" = yes; then
20315
20316 cat >>confdefs.h <<\_ACEOF
20317 #define HAVE_NAMESPACES
20318 _ACEOF
20319
20320 fi
20321
20322 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_map" >&5
20323 echo $ECHO_N "checking whether the compiler has ext/hash_map... $ECHO_C" >&6
20324 if test "${ac_cv_cxx_have_ext_hash_map+set}" = set; then
20325   echo $ECHO_N "(cached) $ECHO_C" >&6
20326 else
20327
20328
20329
20330   ac_ext=cc
20331 ac_cpp='$CXXCPP $CPPFLAGS'
20332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20335
20336   cat >conftest.$ac_ext <<_ACEOF
20337 #line $LINENO "configure"
20338 #include "confdefs.h"
20339 #include <ext/hash_map>
20340 #ifdef HAVE_NAMESPACES
20341 using namespace std;
20342 #endif
20343 #ifdef F77_DUMMY_MAIN
20344 #  ifdef __cplusplus
20345      extern "C"
20346 #  endif
20347    int F77_DUMMY_MAIN() { return 1; }
20348 #endif
20349 int
20350 main ()
20351 {
20352 hash_map<int, int> t; return 0;
20353   ;
20354   return 0;
20355 }
20356 _ACEOF
20357 rm -f conftest.$ac_objext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20359   (eval $ac_compile) 2>&5
20360   ac_status=$?
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); } &&
20363          { ac_try='test -s conftest.$ac_objext'
20364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365   (eval $ac_try) 2>&5
20366   ac_status=$?
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); }; }; then
20369   ac_cv_cxx_have_ext_hash_map=std
20370 else
20371   echo "$as_me: failed program was:" >&5
20372 cat conftest.$ac_ext >&5
20373 ac_cv_cxx_have_ext_hash_map=no
20374 fi
20375 rm -f conftest.$ac_objext conftest.$ac_ext
20376   cat >conftest.$ac_ext <<_ACEOF
20377 #line $LINENO "configure"
20378 #include "confdefs.h"
20379 #include <ext/hash_map>
20380 #ifdef HAVE_NAMESPACES
20381 using namespace __gnu_cxx;
20382 #endif
20383 #ifdef F77_DUMMY_MAIN
20384 #  ifdef __cplusplus
20385      extern "C"
20386 #  endif
20387    int F77_DUMMY_MAIN() { return 1; }
20388 #endif
20389 int
20390 main ()
20391 {
20392 hash_map<int, int> t; return 0;
20393   ;
20394   return 0;
20395 }
20396 _ACEOF
20397 rm -f conftest.$ac_objext
20398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20399   (eval $ac_compile) 2>&5
20400   ac_status=$?
20401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); } &&
20403          { ac_try='test -s conftest.$ac_objext'
20404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405   (eval $ac_try) 2>&5
20406   ac_status=$?
20407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408   (exit $ac_status); }; }; then
20409   ac_cv_cxx_have_ext_hash_map=gnu
20410 else
20411   echo "$as_me: failed program was:" >&5
20412 cat conftest.$ac_ext >&5
20413 ac_cv_cxx_have_ext_hash_map=no
20414 fi
20415 rm -f conftest.$ac_objext conftest.$ac_ext
20416   ac_ext=c
20417 ac_cpp='$CPP $CPPFLAGS'
20418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20421
20422
20423 fi
20424 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
20425 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
20426 if test "$ac_cv_cxx_have_ext_hash_map" = std; then
20427
20428 cat >>confdefs.h <<\_ACEOF
20429 #define HAVE_STD_EXT_HASH_MAP
20430 _ACEOF
20431
20432 fi
20433 if test "$ac_cv_cxx_have_ext_hash_map" = gnu; then
20434
20435 cat >>confdefs.h <<\_ACEOF
20436 #define HAVE_GNU_EXT_HASH_MAP
20437 _ACEOF
20438
20439 fi
20440
20441 echo "$as_me:$LINENO: checking whether the compiler has ext/hash_set" >&5
20442 echo $ECHO_N "checking whether the compiler has ext/hash_set... $ECHO_C" >&6
20443 if test "${ac_cv_cxx_have_ext_hash_set+set}" = set; then
20444   echo $ECHO_N "(cached) $ECHO_C" >&6
20445 else
20446
20447
20448
20449   ac_ext=cc
20450 ac_cpp='$CXXCPP $CPPFLAGS'
20451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20454
20455   cat >conftest.$ac_ext <<_ACEOF
20456 #line $LINENO "configure"
20457 #include "confdefs.h"
20458 #include <ext/hash_set>
20459 #ifdef HAVE_NAMESPACES
20460 using namespace std;
20461 #endif
20462 #ifdef F77_DUMMY_MAIN
20463 #  ifdef __cplusplus
20464      extern "C"
20465 #  endif
20466    int F77_DUMMY_MAIN() { return 1; }
20467 #endif
20468 int
20469 main ()
20470 {
20471 hash_set<int> t; return 0;
20472   ;
20473   return 0;
20474 }
20475 _ACEOF
20476 rm -f conftest.$ac_objext
20477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20478   (eval $ac_compile) 2>&5
20479   ac_status=$?
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); } &&
20482          { ac_try='test -s conftest.$ac_objext'
20483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484   (eval $ac_try) 2>&5
20485   ac_status=$?
20486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487   (exit $ac_status); }; }; then
20488   ac_cv_cxx_have_ext_hash_set=std
20489 else
20490   echo "$as_me: failed program was:" >&5
20491 cat conftest.$ac_ext >&5
20492 ac_cv_cxx_have_ext_hash_set=no
20493 fi
20494 rm -f conftest.$ac_objext conftest.$ac_ext
20495   cat >conftest.$ac_ext <<_ACEOF
20496 #line $LINENO "configure"
20497 #include "confdefs.h"
20498 #include <ext/hash_set>
20499 #ifdef HAVE_NAMESPACES
20500 using namespace __gnu_cxx;
20501 #endif
20502 #ifdef F77_DUMMY_MAIN
20503 #  ifdef __cplusplus
20504      extern "C"
20505 #  endif
20506    int F77_DUMMY_MAIN() { return 1; }
20507 #endif
20508 int
20509 main ()
20510 {
20511 hash_set<int> t; return 0;
20512   ;
20513   return 0;
20514 }
20515 _ACEOF
20516 rm -f conftest.$ac_objext
20517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20518   (eval $ac_compile) 2>&5
20519   ac_status=$?
20520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521   (exit $ac_status); } &&
20522          { ac_try='test -s conftest.$ac_objext'
20523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20524   (eval $ac_try) 2>&5
20525   ac_status=$?
20526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527   (exit $ac_status); }; }; then
20528   ac_cv_cxx_have_ext_hash_set=gnu
20529 else
20530   echo "$as_me: failed program was:" >&5
20531 cat conftest.$ac_ext >&5
20532 ac_cv_cxx_have_ext_hash_set=no
20533 fi
20534 rm -f conftest.$ac_objext conftest.$ac_ext
20535   ac_ext=c
20536 ac_cpp='$CPP $CPPFLAGS'
20537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20540
20541
20542 fi
20543 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_set" >&5
20544 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_set" >&6
20545 if test "$ac_cv_cxx_have_ext_hash_set" = std; then
20546
20547 cat >>confdefs.h <<\_ACEOF
20548 #define HAVE_STD_EXT_HASH_SET
20549 _ACEOF
20550
20551 fi
20552 if test "$ac_cv_cxx_have_ext_hash_set" = gnu; then
20553
20554 cat >>confdefs.h <<\_ACEOF
20555 #define HAVE_GNU_EXT_HASH_SET
20556 _ACEOF
20557
20558 fi
20559
20560 echo "$as_me:$LINENO: checking whether the compiler has ext/slist" >&5
20561 echo $ECHO_N "checking whether the compiler has ext/slist... $ECHO_C" >&6
20562 if test "${ac_cv_cxx_have_ext_slist+set}" = set; then
20563   echo $ECHO_N "(cached) $ECHO_C" >&6
20564 else
20565
20566
20567
20568   ac_ext=cc
20569 ac_cpp='$CXXCPP $CPPFLAGS'
20570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20573
20574   cat >conftest.$ac_ext <<_ACEOF
20575 #line $LINENO "configure"
20576 #include "confdefs.h"
20577 #include <ext/slist>
20578 #ifdef HAVE_NAMESPACES
20579 using namespace std;
20580 #endif
20581 #ifdef F77_DUMMY_MAIN
20582 #  ifdef __cplusplus
20583      extern "C"
20584 #  endif
20585    int F77_DUMMY_MAIN() { return 1; }
20586 #endif
20587 int
20588 main ()
20589 {
20590 slist<int> s; return 0;
20591   ;
20592   return 0;
20593 }
20594 _ACEOF
20595 rm -f conftest.$ac_objext
20596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20597   (eval $ac_compile) 2>&5
20598   ac_status=$?
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); } &&
20601          { ac_try='test -s conftest.$ac_objext'
20602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603   (eval $ac_try) 2>&5
20604   ac_status=$?
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); }; }; then
20607   ac_cv_cxx_have_ext_slist=std
20608 else
20609   echo "$as_me: failed program was:" >&5
20610 cat conftest.$ac_ext >&5
20611 ac_cv_cxx_have_ext_slist=no
20612 fi
20613 rm -f conftest.$ac_objext conftest.$ac_ext
20614   cat >conftest.$ac_ext <<_ACEOF
20615 #line $LINENO "configure"
20616 #include "confdefs.h"
20617 #include <ext/slist>
20618 #ifdef HAVE_NAMESPACES
20619 using namespace __gnu_cxx;
20620 #endif
20621 #ifdef F77_DUMMY_MAIN
20622 #  ifdef __cplusplus
20623      extern "C"
20624 #  endif
20625    int F77_DUMMY_MAIN() { return 1; }
20626 #endif
20627 int
20628 main ()
20629 {
20630 slist<int> s; return 0;
20631   ;
20632   return 0;
20633 }
20634 _ACEOF
20635 rm -f conftest.$ac_objext
20636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20637   (eval $ac_compile) 2>&5
20638   ac_status=$?
20639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640   (exit $ac_status); } &&
20641          { ac_try='test -s conftest.$ac_objext'
20642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20643   (eval $ac_try) 2>&5
20644   ac_status=$?
20645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646   (exit $ac_status); }; }; then
20647   ac_cv_cxx_have_ext_slist=gnu
20648 else
20649   echo "$as_me: failed program was:" >&5
20650 cat conftest.$ac_ext >&5
20651 ac_cv_cxx_have_ext_slist=no
20652 fi
20653 rm -f conftest.$ac_objext conftest.$ac_ext
20654
20655   ac_ext=c
20656 ac_cpp='$CPP $CPPFLAGS'
20657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20660
20661
20662 fi
20663 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_slist" >&5
20664 echo "${ECHO_T}$ac_cv_cxx_have_ext_slist" >&6
20665 if test "$ac_cv_cxx_have_ext_slist" = std; then
20666
20667 cat >>confdefs.h <<\_ACEOF
20668 #define HAVE_EXT_SLIST std
20669 _ACEOF
20670
20671 fi
20672 if test "$ac_cv_cxx_have_ext_slist" = gnu; then
20673
20674 cat >>confdefs.h <<\_ACEOF
20675 #define HAVE_EXT_SLIST gnu
20676 _ACEOF
20677
20678 fi
20679
20680 echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20681 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20682 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20683   echo $ECHO_N "(cached) $ECHO_C" >&6
20684 else
20685
20686
20687
20688   ac_ext=cc
20689 ac_cpp='$CXXCPP $CPPFLAGS'
20690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20693
20694   cat >conftest.$ac_ext <<_ACEOF
20695 #line $LINENO "configure"
20696 #include "confdefs.h"
20697 #include <iterator>
20698 #ifdef HAVE_NAMESPACES
20699 using namespace std;
20700 #endif
20701 #ifdef F77_DUMMY_MAIN
20702 #  ifdef __cplusplus
20703      extern "C"
20704 #  endif
20705    int F77_DUMMY_MAIN() { return 1; }
20706 #endif
20707 int
20708 main ()
20709 {
20710 iterator<int,int,int> t; return 0;
20711   ;
20712   return 0;
20713 }
20714 _ACEOF
20715 rm -f conftest.$ac_objext
20716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20717   (eval $ac_compile) 2>&5
20718   ac_status=$?
20719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720   (exit $ac_status); } &&
20721          { ac_try='test -s conftest.$ac_objext'
20722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723   (eval $ac_try) 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); }; }; then
20727   ac_cv_cxx_have_std_iterator=yes
20728 else
20729   echo "$as_me: failed program was:" >&5
20730 cat conftest.$ac_ext >&5
20731 ac_cv_cxx_have_std_iterator=no
20732 fi
20733 rm -f conftest.$ac_objext conftest.$ac_ext
20734   ac_ext=c
20735 ac_cpp='$CPP $CPPFLAGS'
20736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20739
20740
20741 fi
20742 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20743 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
20744 if test "$ac_cv_cxx_have_std_iterator" = yes; then
20745
20746 cat >>confdefs.h <<\_ACEOF
20747 #define HAVE_STD_ITERATOR
20748 _ACEOF
20749
20750 fi
20751
20752 echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20753 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20754 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20755   echo $ECHO_N "(cached) $ECHO_C" >&6
20756 else
20757
20758
20759
20760   ac_ext=cc
20761 ac_cpp='$CXXCPP $CPPFLAGS'
20762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20765
20766   cat >conftest.$ac_ext <<_ACEOF
20767 #line $LINENO "configure"
20768 #include "confdefs.h"
20769 #include <iterator>
20770 #ifdef HAVE_NAMESPACES
20771 using namespace std;
20772 #endif
20773 #ifdef F77_DUMMY_MAIN
20774 #  ifdef __cplusplus
20775      extern "C"
20776 #  endif
20777    int F77_DUMMY_MAIN() { return 1; }
20778 #endif
20779 int
20780 main ()
20781 {
20782 bidirectional_iterator<int,int> t; return 0;
20783   ;
20784   return 0;
20785 }
20786 _ACEOF
20787 rm -f conftest.$ac_objext
20788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20789   (eval $ac_compile) 2>&5
20790   ac_status=$?
20791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792   (exit $ac_status); } &&
20793          { ac_try='test -s conftest.$ac_objext'
20794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795   (eval $ac_try) 2>&5
20796   ac_status=$?
20797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798   (exit $ac_status); }; }; then
20799   ac_cv_cxx_have_bi_iterator=yes
20800 else
20801   echo "$as_me: failed program was:" >&5
20802 cat conftest.$ac_ext >&5
20803 ac_cv_cxx_have_bi_iterator=no
20804 fi
20805 rm -f conftest.$ac_objext conftest.$ac_ext
20806   ac_ext=c
20807 ac_cpp='$CPP $CPPFLAGS'
20808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20811
20812
20813 fi
20814 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20815 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
20816 if test "$ac_cv_cxx_have_bi_iterator" = yes; then
20817
20818 cat >>confdefs.h <<\_ACEOF
20819 #define HAVE_BI_ITERATOR
20820 _ACEOF
20821
20822 fi
20823
20824 echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20825 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20826 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20827   echo $ECHO_N "(cached) $ECHO_C" >&6
20828 else
20829
20830
20831
20832   ac_ext=cc
20833 ac_cpp='$CXXCPP $CPPFLAGS'
20834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20837
20838   cat >conftest.$ac_ext <<_ACEOF
20839 #line $LINENO "configure"
20840 #include "confdefs.h"
20841 #include <iterator>
20842 #ifdef HAVE_NAMESPACES
20843 using namespace std;
20844 #endif
20845 #ifdef F77_DUMMY_MAIN
20846 #  ifdef __cplusplus
20847      extern "C"
20848 #  endif
20849    int F77_DUMMY_MAIN() { return 1; }
20850 #endif
20851 int
20852 main ()
20853 {
20854 forward_iterator<int,int> t; return 0;
20855   ;
20856   return 0;
20857 }
20858 _ACEOF
20859 rm -f conftest.$ac_objext
20860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20861   (eval $ac_compile) 2>&5
20862   ac_status=$?
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); } &&
20865          { ac_try='test -s conftest.$ac_objext'
20866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867   (eval $ac_try) 2>&5
20868   ac_status=$?
20869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); }; }; then
20871   ac_cv_cxx_have_fwd_iterator=yes
20872 else
20873   echo "$as_me: failed program was:" >&5
20874 cat conftest.$ac_ext >&5
20875 ac_cv_cxx_have_fwd_iterator=no
20876 fi
20877 rm -f conftest.$ac_objext conftest.$ac_ext
20878   ac_ext=c
20879 ac_cpp='$CPP $CPPFLAGS'
20880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20883
20884
20885 fi
20886 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20887 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
20888 if test "$ac_cv_cxx_have_fwd_iterator" = yes; then
20889
20890 cat >>confdefs.h <<\_ACEOF
20891 #define HAVE_FWD_ITERATOR
20892 _ACEOF
20893
20894 fi
20895
20896
20897 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20898 # for constant arguments.  Useless!
20899 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20900 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20901 if test "${ac_cv_working_alloca_h+set}" = set; then
20902   echo $ECHO_N "(cached) $ECHO_C" >&6
20903 else
20904   cat >conftest.$ac_ext <<_ACEOF
20905 #line $LINENO "configure"
20906 #include "confdefs.h"
20907 #include <alloca.h>
20908 #ifdef F77_DUMMY_MAIN
20909 #  ifdef __cplusplus
20910      extern "C"
20911 #  endif
20912    int F77_DUMMY_MAIN() { return 1; }
20913 #endif
20914 int
20915 main ()
20916 {
20917 char *p = (char *) alloca (2 * sizeof (int));
20918   ;
20919   return 0;
20920 }
20921 _ACEOF
20922 rm -f conftest.$ac_objext conftest$ac_exeext
20923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20924   (eval $ac_link) 2>&5
20925   ac_status=$?
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); } &&
20928          { ac_try='test -s conftest$ac_exeext'
20929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930   (eval $ac_try) 2>&5
20931   ac_status=$?
20932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933   (exit $ac_status); }; }; then
20934   ac_cv_working_alloca_h=yes
20935 else
20936   echo "$as_me: failed program was:" >&5
20937 cat conftest.$ac_ext >&5
20938 ac_cv_working_alloca_h=no
20939 fi
20940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20941 fi
20942 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20943 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20944 if test $ac_cv_working_alloca_h = yes; then
20945
20946 cat >>confdefs.h <<\_ACEOF
20947 #define HAVE_ALLOCA_H 1
20948 _ACEOF
20949
20950 fi
20951
20952 echo "$as_me:$LINENO: checking for alloca" >&5
20953 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20954 if test "${ac_cv_func_alloca_works+set}" = set; then
20955   echo $ECHO_N "(cached) $ECHO_C" >&6
20956 else
20957   cat >conftest.$ac_ext <<_ACEOF
20958 #line $LINENO "configure"
20959 #include "confdefs.h"
20960 #ifdef __GNUC__
20961 # define alloca __builtin_alloca
20962 #else
20963 # ifdef _MSC_VER
20964 #  include <malloc.h>
20965 #  define alloca _alloca
20966 # else
20967 #  if HAVE_ALLOCA_H
20968 #   include <alloca.h>
20969 #  else
20970 #   ifdef _AIX
20971  #pragma alloca
20972 #   else
20973 #    ifndef alloca /* predefined by HP cc +Olibcalls */
20974 char *alloca ();
20975 #    endif
20976 #   endif
20977 #  endif
20978 # endif
20979 #endif
20980
20981 #ifdef F77_DUMMY_MAIN
20982 #  ifdef __cplusplus
20983      extern "C"
20984 #  endif
20985    int F77_DUMMY_MAIN() { return 1; }
20986 #endif
20987 int
20988 main ()
20989 {
20990 char *p = (char *) alloca (1);
20991   ;
20992   return 0;
20993 }
20994 _ACEOF
20995 rm -f conftest.$ac_objext conftest$ac_exeext
20996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20997   (eval $ac_link) 2>&5
20998   ac_status=$?
20999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000   (exit $ac_status); } &&
21001          { ac_try='test -s conftest$ac_exeext'
21002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003   (eval $ac_try) 2>&5
21004   ac_status=$?
21005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006   (exit $ac_status); }; }; then
21007   ac_cv_func_alloca_works=yes
21008 else
21009   echo "$as_me: failed program was:" >&5
21010 cat conftest.$ac_ext >&5
21011 ac_cv_func_alloca_works=no
21012 fi
21013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21014 fi
21015 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21016 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21017
21018 if test $ac_cv_func_alloca_works = yes; then
21019
21020 cat >>confdefs.h <<\_ACEOF
21021 #define HAVE_ALLOCA 1
21022 _ACEOF
21023
21024 else
21025   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21026 # that cause trouble.  Some versions do not even contain alloca or
21027 # contain a buggy version.  If you still want to use their alloca,
21028 # use ar to extract alloca.o from them instead of compiling alloca.c.
21029
21030 ALLOCA=alloca.$ac_objext
21031
21032 cat >>confdefs.h <<\_ACEOF
21033 #define C_ALLOCA 1
21034 _ACEOF
21035
21036
21037 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21038 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21039 if test "${ac_cv_os_cray+set}" = set; then
21040   echo $ECHO_N "(cached) $ECHO_C" >&6
21041 else
21042   cat >conftest.$ac_ext <<_ACEOF
21043 #line $LINENO "configure"
21044 #include "confdefs.h"
21045 #if defined(CRAY) && ! defined(CRAY2)
21046 webecray
21047 #else
21048 wenotbecray
21049 #endif
21050
21051 _ACEOF
21052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21053   egrep "webecray" >/dev/null 2>&1; then
21054   ac_cv_os_cray=yes
21055 else
21056   ac_cv_os_cray=no
21057 fi
21058 rm -f conftest*
21059
21060 fi
21061 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21062 echo "${ECHO_T}$ac_cv_os_cray" >&6
21063 if test $ac_cv_os_cray = yes; then
21064   for ac_func in _getb67 GETB67 getb67; do
21065     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21066 echo "$as_me:$LINENO: checking for $ac_func" >&5
21067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21068 if eval "test \"\${$as_ac_var+set}\" = set"; then
21069   echo $ECHO_N "(cached) $ECHO_C" >&6
21070 else
21071   cat >conftest.$ac_ext <<_ACEOF
21072 #line $LINENO "configure"
21073 #include "confdefs.h"
21074 /* System header to define __stub macros and hopefully few prototypes,
21075     which can conflict with char $ac_func (); below.  */
21076 #include <assert.h>
21077 /* Override any gcc2 internal prototype to avoid an error.  */
21078 #ifdef __cplusplus
21079 extern "C"
21080 #endif
21081 /* We use char because int might match the return type of a gcc2
21082    builtin and then its argument prototype would still apply.  */
21083 char $ac_func ();
21084 char (*f) ();
21085
21086 #ifdef F77_DUMMY_MAIN
21087 #  ifdef __cplusplus
21088      extern "C"
21089 #  endif
21090    int F77_DUMMY_MAIN() { return 1; }
21091 #endif
21092 int
21093 main ()
21094 {
21095 /* The GNU C library defines this for functions which it implements
21096     to always fail with ENOSYS.  Some functions are actually named
21097     something starting with __ and the normal name is an alias.  */
21098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21099 choke me
21100 #else
21101 f = $ac_func;
21102 #endif
21103
21104   ;
21105   return 0;
21106 }
21107 _ACEOF
21108 rm -f conftest.$ac_objext conftest$ac_exeext
21109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21110   (eval $ac_link) 2>&5
21111   ac_status=$?
21112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113   (exit $ac_status); } &&
21114          { ac_try='test -s conftest$ac_exeext'
21115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116   (eval $ac_try) 2>&5
21117   ac_status=$?
21118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119   (exit $ac_status); }; }; then
21120   eval "$as_ac_var=yes"
21121 else
21122   echo "$as_me: failed program was:" >&5
21123 cat conftest.$ac_ext >&5
21124 eval "$as_ac_var=no"
21125 fi
21126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21127 fi
21128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21130 if test `eval echo '${'$as_ac_var'}'` = yes; then
21131
21132 cat >>confdefs.h <<_ACEOF
21133 #define CRAY_STACKSEG_END $ac_func
21134 _ACEOF
21135
21136     break
21137 fi
21138
21139   done
21140 fi
21141
21142 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21143 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21144 if test "${ac_cv_c_stack_direction+set}" = set; then
21145   echo $ECHO_N "(cached) $ECHO_C" >&6
21146 else
21147   if test "$cross_compiling" = yes; then
21148   ac_cv_c_stack_direction=0
21149 else
21150   cat >conftest.$ac_ext <<_ACEOF
21151 #line $LINENO "configure"
21152 #include "confdefs.h"
21153 int
21154 find_stack_direction ()
21155 {
21156   static char *addr = 0;
21157   auto char dummy;
21158   if (addr == 0)
21159     {
21160       addr = &dummy;
21161       return find_stack_direction ();
21162     }
21163   else
21164     return (&dummy > addr) ? 1 : -1;
21165 }
21166
21167 int
21168 main ()
21169 {
21170   exit (find_stack_direction () < 0);
21171 }
21172 _ACEOF
21173 rm -f conftest$ac_exeext
21174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21175   (eval $ac_link) 2>&5
21176   ac_status=$?
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180   (eval $ac_try) 2>&5
21181   ac_status=$?
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); }; }; then
21184   ac_cv_c_stack_direction=1
21185 else
21186   echo "$as_me: program exited with status $ac_status" >&5
21187 echo "$as_me: failed program was:" >&5
21188 cat conftest.$ac_ext >&5
21189 ( exit $ac_status )
21190 ac_cv_c_stack_direction=-1
21191 fi
21192 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21193 fi
21194 fi
21195 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21196 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21197
21198 cat >>confdefs.h <<_ACEOF
21199 #define STACK_DIRECTION $ac_cv_c_stack_direction
21200 _ACEOF
21201
21202
21203 fi
21204
21205 if test $ac_cv_c_compiler_gnu = yes; then
21206     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21207 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
21208 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21209   echo $ECHO_N "(cached) $ECHO_C" >&6
21210 else
21211     ac_pattern="Autoconf.*'x'"
21212   cat >conftest.$ac_ext <<_ACEOF
21213 #line $LINENO "configure"
21214 #include "confdefs.h"
21215 #include <sgtty.h>
21216 Autoconf TIOCGETP
21217 _ACEOF
21218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21219   egrep "$ac_pattern" >/dev/null 2>&1; then
21220   ac_cv_prog_gcc_traditional=yes
21221 else
21222   ac_cv_prog_gcc_traditional=no
21223 fi
21224 rm -f conftest*
21225
21226
21227   if test $ac_cv_prog_gcc_traditional = no; then
21228     cat >conftest.$ac_ext <<_ACEOF
21229 #line $LINENO "configure"
21230 #include "confdefs.h"
21231 #include <termio.h>
21232 Autoconf TCGETA
21233 _ACEOF
21234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21235   egrep "$ac_pattern" >/dev/null 2>&1; then
21236   ac_cv_prog_gcc_traditional=yes
21237 fi
21238 rm -f conftest*
21239
21240   fi
21241 fi
21242 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21243 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
21244   if test $ac_cv_prog_gcc_traditional = yes; then
21245     CC="$CC -traditional"
21246   fi
21247 fi
21248
21249 echo "$as_me:$LINENO: checking for working memcmp" >&5
21250 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21251 if test "${ac_cv_func_memcmp_working+set}" = set; then
21252   echo $ECHO_N "(cached) $ECHO_C" >&6
21253 else
21254   if test "$cross_compiling" = yes; then
21255   ac_cv_func_memcmp_working=no
21256 else
21257   cat >conftest.$ac_ext <<_ACEOF
21258 #line $LINENO "configure"
21259 #include "confdefs.h"
21260
21261 #ifdef F77_DUMMY_MAIN
21262 #  ifdef __cplusplus
21263      extern "C"
21264 #  endif
21265    int F77_DUMMY_MAIN() { return 1; }
21266 #endif
21267 int
21268 main ()
21269 {
21270
21271   /* Some versions of memcmp are not 8-bit clean.  */
21272   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21273   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21274     exit (1);
21275
21276   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21277      or more and with at least one buffer not starting on a 4-byte boundary.
21278      William Lewis provided this test program.   */
21279   {
21280     char foo[21];
21281     char bar[21];
21282     int i;
21283     for (i = 0; i < 4; i++)
21284       {
21285         char *a = foo + i;
21286         char *b = bar + i;
21287         strcpy (a, "--------01111111");
21288         strcpy (b, "--------10000000");
21289         if (memcmp (a, b, 16) >= 0)
21290           exit (1);
21291       }
21292     exit (0);
21293   }
21294
21295   ;
21296   return 0;
21297 }
21298 _ACEOF
21299 rm -f conftest$ac_exeext
21300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21301   (eval $ac_link) 2>&5
21302   ac_status=$?
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21306   (eval $ac_try) 2>&5
21307   ac_status=$?
21308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309   (exit $ac_status); }; }; then
21310   ac_cv_func_memcmp_working=yes
21311 else
21312   echo "$as_me: program exited with status $ac_status" >&5
21313 echo "$as_me: failed program was:" >&5
21314 cat conftest.$ac_ext >&5
21315 ( exit $ac_status )
21316 ac_cv_func_memcmp_working=no
21317 fi
21318 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21319 fi
21320 fi
21321 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21322 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21323 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21324
21325
21326
21327 for ac_header in stdlib.h unistd.h
21328 do
21329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21331   echo "$as_me:$LINENO: checking for $ac_header" >&5
21332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21334   echo $ECHO_N "(cached) $ECHO_C" >&6
21335 fi
21336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21338 else
21339   # Is the header compilable?
21340 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21342 cat >conftest.$ac_ext <<_ACEOF
21343 #line $LINENO "configure"
21344 #include "confdefs.h"
21345 $ac_includes_default
21346 #include <$ac_header>
21347 _ACEOF
21348 rm -f conftest.$ac_objext
21349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21350   (eval $ac_compile) 2>&5
21351   ac_status=$?
21352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353   (exit $ac_status); } &&
21354          { ac_try='test -s conftest.$ac_objext'
21355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356   (eval $ac_try) 2>&5
21357   ac_status=$?
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); }; }; then
21360   ac_header_compiler=yes
21361 else
21362   echo "$as_me: failed program was:" >&5
21363 cat conftest.$ac_ext >&5
21364 ac_header_compiler=no
21365 fi
21366 rm -f conftest.$ac_objext conftest.$ac_ext
21367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21368 echo "${ECHO_T}$ac_header_compiler" >&6
21369
21370 # Is the header present?
21371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21373 cat >conftest.$ac_ext <<_ACEOF
21374 #line $LINENO "configure"
21375 #include "confdefs.h"
21376 #include <$ac_header>
21377 _ACEOF
21378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21379   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21380   ac_status=$?
21381   egrep -v '^ *\+' conftest.er1 >conftest.err
21382   rm -f conftest.er1
21383   cat conftest.err >&5
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); } >/dev/null; then
21386   if test -s conftest.err; then
21387     ac_cpp_err=$ac_c_preproc_warn_flag
21388   else
21389     ac_cpp_err=
21390   fi
21391 else
21392   ac_cpp_err=yes
21393 fi
21394 if test -z "$ac_cpp_err"; then
21395   ac_header_preproc=yes
21396 else
21397   echo "$as_me: failed program was:" >&5
21398   cat conftest.$ac_ext >&5
21399   ac_header_preproc=no
21400 fi
21401 rm -f conftest.err conftest.$ac_ext
21402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21403 echo "${ECHO_T}$ac_header_preproc" >&6
21404
21405 # So?  What about this header?
21406 case $ac_header_compiler:$ac_header_preproc in
21407   yes:no )
21408     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
21412   no:yes )
21413     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21415     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
21419 esac
21420 echo "$as_me:$LINENO: checking for $ac_header" >&5
21421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21423   echo $ECHO_N "(cached) $ECHO_C" >&6
21424 else
21425   eval "$as_ac_Header=$ac_header_preproc"
21426 fi
21427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21429
21430 fi
21431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21432   cat >>confdefs.h <<_ACEOF
21433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21434 _ACEOF
21435
21436 fi
21437
21438 done
21439
21440
21441 for ac_func in getpagesize
21442 do
21443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21444 echo "$as_me:$LINENO: checking for $ac_func" >&5
21445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21446 if eval "test \"\${$as_ac_var+set}\" = set"; then
21447   echo $ECHO_N "(cached) $ECHO_C" >&6
21448 else
21449   cat >conftest.$ac_ext <<_ACEOF
21450 #line $LINENO "configure"
21451 #include "confdefs.h"
21452 /* System header to define __stub macros and hopefully few prototypes,
21453     which can conflict with char $ac_func (); below.  */
21454 #include <assert.h>
21455 /* Override any gcc2 internal prototype to avoid an error.  */
21456 #ifdef __cplusplus
21457 extern "C"
21458 #endif
21459 /* We use char because int might match the return type of a gcc2
21460    builtin and then its argument prototype would still apply.  */
21461 char $ac_func ();
21462 char (*f) ();
21463
21464 #ifdef F77_DUMMY_MAIN
21465 #  ifdef __cplusplus
21466      extern "C"
21467 #  endif
21468    int F77_DUMMY_MAIN() { return 1; }
21469 #endif
21470 int
21471 main ()
21472 {
21473 /* The GNU C library defines this for functions which it implements
21474     to always fail with ENOSYS.  Some functions are actually named
21475     something starting with __ and the normal name is an alias.  */
21476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21477 choke me
21478 #else
21479 f = $ac_func;
21480 #endif
21481
21482   ;
21483   return 0;
21484 }
21485 _ACEOF
21486 rm -f conftest.$ac_objext conftest$ac_exeext
21487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21488   (eval $ac_link) 2>&5
21489   ac_status=$?
21490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491   (exit $ac_status); } &&
21492          { ac_try='test -s conftest$ac_exeext'
21493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494   (eval $ac_try) 2>&5
21495   ac_status=$?
21496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497   (exit $ac_status); }; }; then
21498   eval "$as_ac_var=yes"
21499 else
21500   echo "$as_me: failed program was:" >&5
21501 cat conftest.$ac_ext >&5
21502 eval "$as_ac_var=no"
21503 fi
21504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21505 fi
21506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21508 if test `eval echo '${'$as_ac_var'}'` = yes; then
21509   cat >>confdefs.h <<_ACEOF
21510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21511 _ACEOF
21512
21513 fi
21514 done
21515
21516 echo "$as_me:$LINENO: checking for working mmap" >&5
21517 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21518 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21519   echo $ECHO_N "(cached) $ECHO_C" >&6
21520 else
21521   if test "$cross_compiling" = yes; then
21522   ac_cv_func_mmap_fixed_mapped=no
21523 else
21524   cat >conftest.$ac_ext <<_ACEOF
21525 #line $LINENO "configure"
21526 #include "confdefs.h"
21527 $ac_includes_default
21528 /* malloc might have been renamed as rpl_malloc. */
21529 #undef malloc
21530
21531 /* Thanks to Mike Haertel and Jim Avera for this test.
21532    Here is a matrix of mmap possibilities:
21533         mmap private not fixed
21534         mmap private fixed at somewhere currently unmapped
21535         mmap private fixed at somewhere already mapped
21536         mmap shared not fixed
21537         mmap shared fixed at somewhere currently unmapped
21538         mmap shared fixed at somewhere already mapped
21539    For private mappings, we should verify that changes cannot be read()
21540    back from the file, nor mmap's back from the file at a different
21541    address.  (There have been systems where private was not correctly
21542    implemented like the infamous i386 svr4.0, and systems where the
21543    VM page cache was not coherent with the file system buffer cache
21544    like early versions of FreeBSD and possibly contemporary NetBSD.)
21545    For shared mappings, we should conversely verify that changes get
21546    propagated back to all the places they're supposed to be.
21547
21548    Grep wants private fixed already mapped.
21549    The main things grep needs to know about mmap are:
21550    * does it exist and is it safe to write into the mmap'd area
21551    * how to use it (BSD variants)  */
21552
21553 #include <fcntl.h>
21554 #include <sys/mman.h>
21555
21556 #if !STDC_HEADERS && !HAVE_STDLIB_H
21557 char *malloc ();
21558 #endif
21559
21560 /* This mess was copied from the GNU getpagesize.h.  */
21561 #if !HAVE_GETPAGESIZE
21562 /* Assume that all systems that can run configure have sys/param.h.  */
21563 # if !HAVE_SYS_PARAM_H
21564 #  define HAVE_SYS_PARAM_H 1
21565 # endif
21566
21567 # ifdef _SC_PAGESIZE
21568 #  define getpagesize() sysconf(_SC_PAGESIZE)
21569 # else /* no _SC_PAGESIZE */
21570 #  if HAVE_SYS_PARAM_H
21571 #   include <sys/param.h>
21572 #   ifdef EXEC_PAGESIZE
21573 #    define getpagesize() EXEC_PAGESIZE
21574 #   else /* no EXEC_PAGESIZE */
21575 #    ifdef NBPG
21576 #     define getpagesize() NBPG * CLSIZE
21577 #     ifndef CLSIZE
21578 #      define CLSIZE 1
21579 #     endif /* no CLSIZE */
21580 #    else /* no NBPG */
21581 #     ifdef NBPC
21582 #      define getpagesize() NBPC
21583 #     else /* no NBPC */
21584 #      ifdef PAGESIZE
21585 #       define getpagesize() PAGESIZE
21586 #      endif /* PAGESIZE */
21587 #     endif /* no NBPC */
21588 #    endif /* no NBPG */
21589 #   endif /* no EXEC_PAGESIZE */
21590 #  else /* no HAVE_SYS_PARAM_H */
21591 #   define getpagesize() 8192   /* punt totally */
21592 #  endif /* no HAVE_SYS_PARAM_H */
21593 # endif /* no _SC_PAGESIZE */
21594
21595 #endif /* no HAVE_GETPAGESIZE */
21596
21597 int
21598 main ()
21599 {
21600   char *data, *data2, *data3;
21601   int i, pagesize;
21602   int fd;
21603
21604   pagesize = getpagesize ();
21605
21606   /* First, make a file with some known garbage in it. */
21607   data = (char *) malloc (pagesize);
21608   if (!data)
21609     exit (1);
21610   for (i = 0; i < pagesize; ++i)
21611     *(data + i) = rand ();
21612   umask (0);
21613   fd = creat ("conftest.mmap", 0600);
21614   if (fd < 0)
21615     exit (1);
21616   if (write (fd, data, pagesize) != pagesize)
21617     exit (1);
21618   close (fd);
21619
21620   /* Next, try to mmap the file at a fixed address which already has
21621      something else allocated at it.  If we can, also make sure that
21622      we see the same garbage.  */
21623   fd = open ("conftest.mmap", O_RDWR);
21624   if (fd < 0)
21625     exit (1);
21626   data2 = (char *) malloc (2 * pagesize);
21627   if (!data2)
21628     exit (1);
21629   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
21630   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21631                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
21632     exit (1);
21633   for (i = 0; i < pagesize; ++i)
21634     if (*(data + i) != *(data2 + i))
21635       exit (1);
21636
21637   /* Finally, make sure that changes to the mapped area do not
21638      percolate back to the file as seen by read().  (This is a bug on
21639      some variants of i386 svr4.0.)  */
21640   for (i = 0; i < pagesize; ++i)
21641     *(data2 + i) = *(data2 + i) + 1;
21642   data3 = (char *) malloc (pagesize);
21643   if (!data3)
21644     exit (1);
21645   if (read (fd, data3, pagesize) != pagesize)
21646     exit (1);
21647   for (i = 0; i < pagesize; ++i)
21648     if (*(data + i) != *(data3 + i))
21649       exit (1);
21650   close (fd);
21651   exit (0);
21652 }
21653 _ACEOF
21654 rm -f conftest$ac_exeext
21655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21656   (eval $ac_link) 2>&5
21657   ac_status=$?
21658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661   (eval $ac_try) 2>&5
21662   ac_status=$?
21663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664   (exit $ac_status); }; }; then
21665   ac_cv_func_mmap_fixed_mapped=yes
21666 else
21667   echo "$as_me: program exited with status $ac_status" >&5
21668 echo "$as_me: failed program was:" >&5
21669 cat conftest.$ac_ext >&5
21670 ( exit $ac_status )
21671 ac_cv_func_mmap_fixed_mapped=no
21672 fi
21673 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21674 fi
21675 fi
21676 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21677 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21678 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21679
21680 cat >>confdefs.h <<\_ACEOF
21681 #define HAVE_MMAP 1
21682 _ACEOF
21683
21684 fi
21685 rm -f conftest.mmap
21686
21687 echo "$as_me:$LINENO: checking for mmap of files" >&5
21688 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
21689 if test "${ac_cv_func_mmap_file+set}" = set; then
21690   echo $ECHO_N "(cached) $ECHO_C" >&6
21691 else
21692
21693
21694   ac_ext=c
21695 ac_cpp='$CPP $CPPFLAGS'
21696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21699
21700   if test "$cross_compiling" = yes; then
21701   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
21702 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21703    { (exit 1); exit 1; }; }
21704 else
21705   cat >conftest.$ac_ext <<_ACEOF
21706 #line $LINENO "configure"
21707 #include "confdefs.h"
21708
21709 #ifdef HAVE_SYS_MMAN_H
21710 #include <sys/mman.h>
21711 #endif
21712
21713 #ifdef HAVE_SYS_TYPES_H
21714 #include <sys/types.h>
21715 #endif
21716
21717 #ifdef HAVE_FCNTL_H
21718 #include <fcntl.h>
21719 #endif
21720
21721   int fd;
21722   int main () {
21723   fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != MAP_FAILED);}
21724 _ACEOF
21725 rm -f conftest$ac_exeext
21726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21727   (eval $ac_link) 2>&5
21728   ac_status=$?
21729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732   (eval $ac_try) 2>&5
21733   ac_status=$?
21734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735   (exit $ac_status); }; }; then
21736   ac_cv_func_mmap_file=yes
21737 else
21738   echo "$as_me: program exited with status $ac_status" >&5
21739 echo "$as_me: failed program was:" >&5
21740 cat conftest.$ac_ext >&5
21741 ( exit $ac_status )
21742 ac_cv_func_mmap_file=no
21743 fi
21744 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21745 fi
21746   ac_ext=c
21747 ac_cpp='$CPP $CPPFLAGS'
21748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21751
21752
21753 fi
21754 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21755 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
21756 if test "$ac_cv_func_mmap_file" = yes; then
21757    cat >>confdefs.h <<\_ACEOF
21758 #define HAVE_MMAP_FILE 1
21759 _ACEOF
21760
21761    MMAP_FILE=yes
21762
21763 fi
21764
21765 if test ${ac_cv_func_mmap_file} = "no"
21766 then
21767         { { echo "$as_me:$LINENO: error: mmap() of files required but not found" >&5
21768 echo "$as_me: error: mmap() of files required but not found" >&2;}
21769    { (exit 1); exit 1; }; }
21770 fi
21771 echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
21772 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
21773 if test "${ac_cv_header_mmap_anon+set}" = set; then
21774   echo $ECHO_N "(cached) $ECHO_C" >&6
21775 else
21776
21777
21778   ac_ext=c
21779 ac_cpp='$CPP $CPPFLAGS'
21780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21783
21784   cat >conftest.$ac_ext <<_ACEOF
21785 #line $LINENO "configure"
21786 #include "confdefs.h"
21787 #include <sys/mman.h>
21788   #include <unistd.h>
21789   #include <fcntl.h>
21790 #ifdef F77_DUMMY_MAIN
21791 #  ifdef __cplusplus
21792      extern "C"
21793 #  endif
21794    int F77_DUMMY_MAIN() { return 1; }
21795 #endif
21796 int
21797 main ()
21798 {
21799 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
21800   ;
21801   return 0;
21802 }
21803 _ACEOF
21804 rm -f conftest.$ac_objext
21805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21806   (eval $ac_compile) 2>&5
21807   ac_status=$?
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); } &&
21810          { ac_try='test -s conftest.$ac_objext'
21811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21812   (eval $ac_try) 2>&5
21813   ac_status=$?
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); }; }; then
21816   ac_cv_header_mmap_anon=yes
21817 else
21818   echo "$as_me: failed program was:" >&5
21819 cat conftest.$ac_ext >&5
21820 ac_cv_header_mmap_anon=no
21821 fi
21822 rm -f conftest.$ac_objext conftest.$ac_ext
21823   ac_ext=c
21824 ac_cpp='$CPP $CPPFLAGS'
21825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21828
21829
21830 fi
21831 echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
21832 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
21833 if test "$ac_cv_header_mmap_anon" = yes; then
21834    cat >>confdefs.h <<\_ACEOF
21835 #define HAVE_MMAP_ANONYMOUS 1
21836 _ACEOF
21837
21838 fi
21839
21840 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21841 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21842 if test "${ac_cv_type_signal+set}" = set; then
21843   echo $ECHO_N "(cached) $ECHO_C" >&6
21844 else
21845   cat >conftest.$ac_ext <<_ACEOF
21846 #line $LINENO "configure"
21847 #include "confdefs.h"
21848 #include <sys/types.h>
21849 #include <signal.h>
21850 #ifdef signal
21851 # undef signal
21852 #endif
21853 #ifdef __cplusplus
21854 extern "C" void (*signal (int, void (*)(int)))(int);
21855 #else
21856 void (*signal ()) ();
21857 #endif
21858
21859 #ifdef F77_DUMMY_MAIN
21860 #  ifdef __cplusplus
21861      extern "C"
21862 #  endif
21863    int F77_DUMMY_MAIN() { return 1; }
21864 #endif
21865 int
21866 main ()
21867 {
21868 int i;
21869   ;
21870   return 0;
21871 }
21872 _ACEOF
21873 rm -f conftest.$ac_objext
21874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21875   (eval $ac_compile) 2>&5
21876   ac_status=$?
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); } &&
21879          { ac_try='test -s conftest.$ac_objext'
21880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881   (eval $ac_try) 2>&5
21882   ac_status=$?
21883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884   (exit $ac_status); }; }; then
21885   ac_cv_type_signal=void
21886 else
21887   echo "$as_me: failed program was:" >&5
21888 cat conftest.$ac_ext >&5
21889 ac_cv_type_signal=int
21890 fi
21891 rm -f conftest.$ac_objext conftest.$ac_ext
21892 fi
21893 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21894 echo "${ECHO_T}$ac_cv_type_signal" >&6
21895
21896 cat >>confdefs.h <<_ACEOF
21897 #define RETSIGTYPE $ac_cv_type_signal
21898 _ACEOF
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910 for ac_func in getcwd gettimeofday strcspn strdup strerror strspn strstr strtod strtol
21911 do
21912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21913 echo "$as_me:$LINENO: checking for $ac_func" >&5
21914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21915 if eval "test \"\${$as_ac_var+set}\" = set"; then
21916   echo $ECHO_N "(cached) $ECHO_C" >&6
21917 else
21918   cat >conftest.$ac_ext <<_ACEOF
21919 #line $LINENO "configure"
21920 #include "confdefs.h"
21921 /* System header to define __stub macros and hopefully few prototypes,
21922     which can conflict with char $ac_func (); below.  */
21923 #include <assert.h>
21924 /* Override any gcc2 internal prototype to avoid an error.  */
21925 #ifdef __cplusplus
21926 extern "C"
21927 #endif
21928 /* We use char because int might match the return type of a gcc2
21929    builtin and then its argument prototype would still apply.  */
21930 char $ac_func ();
21931 char (*f) ();
21932
21933 #ifdef F77_DUMMY_MAIN
21934 #  ifdef __cplusplus
21935      extern "C"
21936 #  endif
21937    int F77_DUMMY_MAIN() { return 1; }
21938 #endif
21939 int
21940 main ()
21941 {
21942 /* The GNU C library defines this for functions which it implements
21943     to always fail with ENOSYS.  Some functions are actually named
21944     something starting with __ and the normal name is an alias.  */
21945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21946 choke me
21947 #else
21948 f = $ac_func;
21949 #endif
21950
21951   ;
21952   return 0;
21953 }
21954 _ACEOF
21955 rm -f conftest.$ac_objext conftest$ac_exeext
21956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21957   (eval $ac_link) 2>&5
21958   ac_status=$?
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); } &&
21961          { ac_try='test -s conftest$ac_exeext'
21962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963   (eval $ac_try) 2>&5
21964   ac_status=$?
21965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966   (exit $ac_status); }; }; then
21967   eval "$as_ac_var=yes"
21968 else
21969   echo "$as_me: failed program was:" >&5
21970 cat conftest.$ac_ext >&5
21971 eval "$as_ac_var=no"
21972 fi
21973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21974 fi
21975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21977 if test `eval echo '${'$as_ac_var'}'` = yes; then
21978   cat >>confdefs.h <<_ACEOF
21979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21980 _ACEOF
21981
21982 fi
21983 done
21984
21985
21986
21987 echo "$as_me:$LINENO: checking for mmap" >&5
21988 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
21989 if test "${ac_cv_func_mmap+set}" = set; then
21990   echo $ECHO_N "(cached) $ECHO_C" >&6
21991 else
21992   cat >conftest.$ac_ext <<_ACEOF
21993 #line $LINENO "configure"
21994 #include "confdefs.h"
21995 /* System header to define __stub macros and hopefully few prototypes,
21996     which can conflict with char mmap (); below.  */
21997 #include <assert.h>
21998 /* Override any gcc2 internal prototype to avoid an error.  */
21999 #ifdef __cplusplus
22000 extern "C"
22001 #endif
22002 /* We use char because int might match the return type of a gcc2
22003    builtin and then its argument prototype would still apply.  */
22004 char mmap ();
22005 char (*f) ();
22006
22007 #ifdef F77_DUMMY_MAIN
22008 #  ifdef __cplusplus
22009      extern "C"
22010 #  endif
22011    int F77_DUMMY_MAIN() { return 1; }
22012 #endif
22013 int
22014 main ()
22015 {
22016 /* The GNU C library defines this for functions which it implements
22017     to always fail with ENOSYS.  Some functions are actually named
22018     something starting with __ and the normal name is an alias.  */
22019 #if defined (__stub_mmap) || defined (__stub___mmap)
22020 choke me
22021 #else
22022 f = mmap;
22023 #endif
22024
22025   ;
22026   return 0;
22027 }
22028 _ACEOF
22029 rm -f conftest.$ac_objext conftest$ac_exeext
22030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22031   (eval $ac_link) 2>&5
22032   ac_status=$?
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); } &&
22035          { ac_try='test -s conftest$ac_exeext'
22036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037   (eval $ac_try) 2>&5
22038   ac_status=$?
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); }; }; then
22041   ac_cv_func_mmap=yes
22042 else
22043   echo "$as_me: failed program was:" >&5
22044 cat conftest.$ac_ext >&5
22045 ac_cv_func_mmap=no
22046 fi
22047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22048 fi
22049 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
22050 echo "${ECHO_T}$ac_cv_func_mmap" >&6
22051 if test $ac_cv_func_mmap = yes; then
22052   :
22053 else
22054   { { echo "$as_me:$LINENO: error: Function mmap() required but not found" >&5
22055 echo "$as_me: error: Function mmap() required but not found" >&2;}
22056    { (exit 1); exit 1; }; }
22057 fi
22058
22059 echo "$as_me:$LINENO: checking for mprotect" >&5
22060 echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22061 if test "${ac_cv_func_mprotect+set}" = set; then
22062   echo $ECHO_N "(cached) $ECHO_C" >&6
22063 else
22064   cat >conftest.$ac_ext <<_ACEOF
22065 #line $LINENO "configure"
22066 #include "confdefs.h"
22067 /* System header to define __stub macros and hopefully few prototypes,
22068     which can conflict with char mprotect (); below.  */
22069 #include <assert.h>
22070 /* Override any gcc2 internal prototype to avoid an error.  */
22071 #ifdef __cplusplus
22072 extern "C"
22073 #endif
22074 /* We use char because int might match the return type of a gcc2
22075    builtin and then its argument prototype would still apply.  */
22076 char mprotect ();
22077 char (*f) ();
22078
22079 #ifdef F77_DUMMY_MAIN
22080 #  ifdef __cplusplus
22081      extern "C"
22082 #  endif
22083    int F77_DUMMY_MAIN() { return 1; }
22084 #endif
22085 int
22086 main ()
22087 {
22088 /* The GNU C library defines this for functions which it implements
22089     to always fail with ENOSYS.  Some functions are actually named
22090     something starting with __ and the normal name is an alias.  */
22091 #if defined (__stub_mprotect) || defined (__stub___mprotect)
22092 choke me
22093 #else
22094 f = mprotect;
22095 #endif
22096
22097   ;
22098   return 0;
22099 }
22100 _ACEOF
22101 rm -f conftest.$ac_objext conftest$ac_exeext
22102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22103   (eval $ac_link) 2>&5
22104   ac_status=$?
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); } &&
22107          { ac_try='test -s conftest$ac_exeext'
22108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109   (eval $ac_try) 2>&5
22110   ac_status=$?
22111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112   (exit $ac_status); }; }; then
22113   ac_cv_func_mprotect=yes
22114 else
22115   echo "$as_me: failed program was:" >&5
22116 cat conftest.$ac_ext >&5
22117 ac_cv_func_mprotect=no
22118 fi
22119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22120 fi
22121 echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22122 echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22123 if test $ac_cv_func_mprotect = yes; then
22124   :
22125 else
22126   { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22127 echo "$as_me: error: Function mprotect() required but not found" >&2;}
22128    { (exit 1); exit 1; }; }
22129 fi
22130
22131
22132
22133 # Check whether --enable-purify or --disable-purify was given.
22134 if test "${enable_purify+set}" = set; then
22135   enableval="$enable_purify"
22136
22137 else
22138   enableval="no"
22139 fi;
22140 if test ${enableval} = "no"
22141 then
22142         ENABLE_PURIFY=
22143
22144 else
22145         ENABLE_PURIFY=ENABLE_PURIFY=1
22146
22147 fi
22148
22149 # Check whether --enable-optimized or --disable-optimized was given.
22150 if test "${enable_optimized+set}" = set; then
22151   enableval="$enable_optimized"
22152
22153 else
22154   enableval=no
22155 fi;
22156 if test ${enableval} = "no"
22157 then
22158         ENABLE_OPTIMIZED=
22159
22160 else
22161         ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22162
22163 fi
22164
22165 # Check whether --enable-spec or --disable-spec was given.
22166 if test "${enable_spec+set}" = set; then
22167   enableval="$enable_spec"
22168
22169 else
22170   enableval=no
22171 fi;
22172 if test ${enableval} = "no"
22173 then
22174         USE_SPEC=
22175
22176 else
22177         USE_SPEC=USE_SPEC=1
22178
22179 fi
22180
22181 # Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
22182 if test "${enable_precompiled_bytecode+set}" = set; then
22183   enableval="$enable_precompiled_bytecode"
22184
22185 else
22186   enableval=no
22187 fi;
22188 if test ${enableval} = "no"
22189 then
22190         UPB=
22191
22192 else
22193         UPB=USE_PRECOMPILED_BYTECODE=1
22194
22195 fi
22196
22197
22198 # Check whether --enable-llc_diffs or --disable-llc_diffs was given.
22199 if test "${enable_llc_diffs+set}" = set; then
22200   enableval="$enable_llc_diffs"
22201
22202 else
22203   enableval=yes
22204 fi;
22205 if test ${enableval} = "no"
22206 then
22207         DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
22208
22209 else
22210         DISABLE_LLC_DIFFS=
22211
22212 fi
22213
22214 # Check whether --enable-jit or --disable-jit was given.
22215 if test "${enable_jit+set}" = set; then
22216   enableval="$enable_jit"
22217
22218 else
22219   enableval=default
22220 fi;
22221
22222 if test ${enableval} = "no"
22223 then
22224         JIT=
22225
22226 else
22227         case $target in
22228                 *i*86*)
22229                         JIT=TARGET_HAS_JIT=1
22230
22231                         ;;
22232                 *sparc*)
22233                         JIT=TARGET_HAS_JIT=1
22234
22235                         ;;
22236                 *)
22237                         JIT=
22238
22239                         ;;
22240         esac
22241 fi
22242
22243
22244
22245 # Check whether --with-spec or --without-spec was given.
22246 if test "${with_spec+set}" = set; then
22247   withval="$with_spec"
22248   SPEC_ROOT=$withval
22249
22250 else
22251   SPEC_ROOT=/home/vadve/shared/benchmarks/speccpu2000/benchspec
22252
22253 fi;
22254
22255
22256 # Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22257 if test "${with_llvmgccdir+set}" = set; then
22258   withval="$with_llvmgccdir"
22259   LLVMGCCDIR=$withval
22260
22261 fi;
22262
22263
22264 # Check whether --with-bcrepos or --without-bcrepos was given.
22265 if test "${with_bcrepos+set}" = set; then
22266   withval="$with_bcrepos"
22267   BCR=$withval
22268
22269 else
22270   BCR=/home/vadve/lattner/LLVMPrograms
22271
22272 fi;
22273
22274
22275 # Check whether --with-papi or --without-papi was given.
22276 if test "${with_papi+set}" = set; then
22277   withval="$with_papi"
22278   PAPIDIR=$withval
22279
22280 else
22281   PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
22282
22283 fi;
22284
22285
22286 # Check whether --with-purify or --without-purify was given.
22287 if test "${with_purify+set}" = set; then
22288   withval="$with_purify"
22289   PURIFY=$withval
22290
22291 fi;
22292
22293
22294 ac_config_files="$ac_config_files Makefile.config"
22295 cat >confcache <<\_ACEOF
22296 # This file is a shell script that caches the results of configure
22297 # tests run on this system so they can be shared between configure
22298 # scripts and configure runs, see configure's option --config-cache.
22299 # It is not useful on other systems.  If it contains results you don't
22300 # want to keep, you may remove or edit it.
22301 #
22302 # config.status only pays attention to the cache file if you give it
22303 # the --recheck option to rerun configure.
22304 #
22305 # `ac_cv_env_foo' variables (set or unset) will be overriden when
22306 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22307 # following values.
22308
22309 _ACEOF
22310
22311 # The following way of writing the cache mishandles newlines in values,
22312 # but we know of no workaround that is simple, portable, and efficient.
22313 # So, don't put newlines in cache variables' values.
22314 # Ultrix sh set writes to stderr and can't be redirected directly,
22315 # and sets the high bit in the cache file unless we assign to the vars.
22316 {
22317   (set) 2>&1 |
22318     case `(ac_space=' '; set | grep ac_space) 2>&1` in
22319     *ac_space=\ *)
22320       # `set' does not quote correctly, so add quotes (double-quote
22321       # substitution turns \\\\ into \\, and sed turns \\ into \).
22322       sed -n \
22323         "s/'/'\\\\''/g;
22324           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22325       ;;
22326     *)
22327       # `set' quotes correctly as required by POSIX, so do not add quotes.
22328       sed -n \
22329         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22330       ;;
22331     esac;
22332 } |
22333   sed '
22334      t clear
22335      : clear
22336      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22337      t end
22338      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22339      : end' >>confcache
22340 if cmp -s $cache_file confcache; then :; else
22341   if test -w $cache_file; then
22342     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22343     cat confcache >$cache_file
22344   else
22345     echo "not updating unwritable cache $cache_file"
22346   fi
22347 fi
22348 rm -f confcache
22349
22350 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22351 # Let make expand exec_prefix.
22352 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22353
22354 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22355 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22356 # trailing colons and then remove the whole line if VPATH becomes empty
22357 # (actually we leave an empty line to preserve line numbers).
22358 if test "x$srcdir" = x.; then
22359   ac_vpsub='/^[         ]*VPATH[        ]*=/{
22360 s/:*\$(srcdir):*/:/;
22361 s/:*\${srcdir}:*/:/;
22362 s/:*@srcdir@:*/:/;
22363 s/^\([^=]*=[    ]*\):*/\1/;
22364 s/:*$//;
22365 s/^[^=]*=[      ]*$//;
22366 }'
22367 fi
22368
22369 DEFS=-DHAVE_CONFIG_H
22370
22371
22372 : ${CONFIG_STATUS=./config.status}
22373 ac_clean_files_save=$ac_clean_files
22374 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22375 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22376 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22377 cat >$CONFIG_STATUS <<_ACEOF
22378 #! $SHELL
22379 # Generated by $as_me.
22380 # Run this file to recreate the current configuration.
22381 # Compiler output produced by configure, useful for debugging
22382 # configure, is in config.log if it exists.
22383
22384 debug=false
22385 SHELL=\${CONFIG_SHELL-$SHELL}
22386 _ACEOF
22387
22388 cat >>$CONFIG_STATUS <<\_ACEOF
22389
22390 ## --------------------- ##
22391 ## M4sh Initialization.  ##
22392 ## --------------------- ##
22393
22394 # Be Bourne compatible
22395 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22396   emulate sh
22397   NULLCMD=:
22398 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22399   set -o posix
22400 fi
22401
22402 # NLS nuisances.
22403 # Support unset when possible.
22404 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
22405   as_unset=unset
22406 else
22407   as_unset=false
22408 fi
22409
22410 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
22411     { $as_unset LANG || test "${LANG+set}" != set; } ||
22412       { LANG=C; export LANG; }
22413 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
22414     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
22415       { LC_ALL=C; export LC_ALL; }
22416 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
22417     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
22418       { LC_TIME=C; export LC_TIME; }
22419 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
22420     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
22421       { LC_CTYPE=C; export LC_CTYPE; }
22422 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
22423     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
22424       { LANGUAGE=C; export LANGUAGE; }
22425 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
22426     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
22427       { LC_COLLATE=C; export LC_COLLATE; }
22428 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
22429     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
22430       { LC_NUMERIC=C; export LC_NUMERIC; }
22431 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
22432     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
22433       { LC_MESSAGES=C; export LC_MESSAGES; }
22434
22435
22436 # Name of the executable.
22437 as_me=`(basename "$0") 2>/dev/null ||
22438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22439          X"$0" : 'X\(//\)$' \| \
22440          X"$0" : 'X\(/\)$' \| \
22441          .     : '\(.\)' 2>/dev/null ||
22442 echo X/"$0" |
22443     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22444           /^X\/\(\/\/\)$/{ s//\1/; q; }
22445           /^X\/\(\/\).*/{ s//\1/; q; }
22446           s/.*/./; q'`
22447
22448 # PATH needs CR, and LINENO needs CR and PATH.
22449 # Avoid depending upon Character Ranges.
22450 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22451 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22452 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22453 as_cr_digits='0123456789'
22454 as_cr_alnum=$as_cr_Letters$as_cr_digits
22455
22456 # The user is always right.
22457 if test "${PATH_SEPARATOR+set}" != set; then
22458   echo "#! /bin/sh" >conftest.sh
22459   echo  "exit 0"   >>conftest.sh
22460   chmod +x conftest.sh
22461   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
22462     PATH_SEPARATOR=';'
22463   else
22464     PATH_SEPARATOR=:
22465   fi
22466   rm -f conftest.sh
22467 fi
22468
22469
22470   as_lineno_1=$LINENO
22471   as_lineno_2=$LINENO
22472   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22473   test "x$as_lineno_1" != "x$as_lineno_2" &&
22474   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
22475   # Find who we are.  Look in the path if we contain no path at all
22476   # relative or not.
22477   case $0 in
22478     *[\\/]* ) as_myself=$0 ;;
22479     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22480 for as_dir in $PATH
22481 do
22482   IFS=$as_save_IFS
22483   test -z "$as_dir" && as_dir=.
22484   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22485 done
22486
22487        ;;
22488   esac
22489   # We did not find ourselves, most probably we were run as `sh COMMAND'
22490   # in which case we are not to be found in the path.
22491   if test "x$as_myself" = x; then
22492     as_myself=$0
22493   fi
22494   if test ! -f "$as_myself"; then
22495     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22496 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22497    { (exit 1); exit 1; }; }
22498   fi
22499   case $CONFIG_SHELL in
22500   '')
22501     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22502 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22503 do
22504   IFS=$as_save_IFS
22505   test -z "$as_dir" && as_dir=.
22506   for as_base in sh bash ksh sh5; do
22507          case $as_dir in
22508          /*)
22509            if ("$as_dir/$as_base" -c '
22510   as_lineno_1=$LINENO
22511   as_lineno_2=$LINENO
22512   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22513   test "x$as_lineno_1" != "x$as_lineno_2" &&
22514   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
22515              CONFIG_SHELL=$as_dir/$as_base
22516              export CONFIG_SHELL
22517              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22518            fi;;
22519          esac
22520        done
22521 done
22522 ;;
22523   esac
22524
22525   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22526   # uniformly replaced by the line number.  The first 'sed' inserts a
22527   # line-number line before each line; the second 'sed' does the real
22528   # work.  The second script uses 'N' to pair each line-number line
22529   # with the numbered line, and appends trailing '-' during
22530   # substitution so that $LINENO is not a special case at line end.
22531   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22532   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
22533   sed '=' <$as_myself |
22534     sed '
22535       N
22536       s,$,-,
22537       : loop
22538       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22539       t loop
22540       s,-$,,
22541       s,^['$as_cr_digits']*\n,,
22542     ' >$as_me.lineno &&
22543   chmod +x $as_me.lineno ||
22544     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22545 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22546    { (exit 1); exit 1; }; }
22547
22548   # Don't try to exec as it changes $[0], causing all sort of problems
22549   # (the dirname of $[0] is not the place where we might find the
22550   # original and so on.  Autoconf is especially sensible to this).
22551   . ./$as_me.lineno
22552   # Exit status is that of the last command.
22553   exit
22554 }
22555
22556
22557 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22558   *c*,-n*) ECHO_N= ECHO_C='
22559 ' ECHO_T='      ' ;;
22560   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22561   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
22562 esac
22563
22564 if expr a : '\(a\)' >/dev/null 2>&1; then
22565   as_expr=expr
22566 else
22567   as_expr=false
22568 fi
22569
22570 rm -f conf$$ conf$$.exe conf$$.file
22571 echo >conf$$.file
22572 if ln -s conf$$.file conf$$ 2>/dev/null; then
22573   # We could just check for DJGPP; but this test a) works b) is more generic
22574   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22575   if test -f conf$$.exe; then
22576     # Don't use ln at all; we don't have any links
22577     as_ln_s='cp -p'
22578   else
22579     as_ln_s='ln -s'
22580   fi
22581 elif ln conf$$.file conf$$ 2>/dev/null; then
22582   as_ln_s=ln
22583 else
22584   as_ln_s='cp -p'
22585 fi
22586 rm -f conf$$ conf$$.exe conf$$.file
22587
22588 as_executable_p="test -f"
22589
22590 # Sed expression to map a string onto a valid CPP name.
22591 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22592
22593 # Sed expression to map a string onto a valid variable name.
22594 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22595
22596
22597 # IFS
22598 # We need space, tab and new line, in precisely that order.
22599 as_nl='
22600 '
22601 IFS="   $as_nl"
22602
22603 # CDPATH.
22604 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
22605
22606 exec 6>&1
22607
22608 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22609 # report actual input values of CONFIG_FILES etc. instead of their
22610 # values after options handling.  Logging --version etc. is OK.
22611 exec 5>>config.log
22612 {
22613   echo
22614   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22615 ## Running $as_me. ##
22616 _ASBOX
22617 } >&5
22618 cat >&5 <<_CSEOF
22619
22620 This file was extended by [LLVM] $as_me [1.0], which was
22621 generated by GNU Autoconf 2.53.  Invocation command line was
22622
22623   CONFIG_FILES    = $CONFIG_FILES
22624   CONFIG_HEADERS  = $CONFIG_HEADERS
22625   CONFIG_LINKS    = $CONFIG_LINKS
22626   CONFIG_COMMANDS = $CONFIG_COMMANDS
22627   $ $0 $@
22628
22629 _CSEOF
22630 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22631 echo >&5
22632 _ACEOF
22633
22634 # Files that config.status was made for.
22635 if test -n "$ac_config_files"; then
22636   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22637 fi
22638
22639 if test -n "$ac_config_headers"; then
22640   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22641 fi
22642
22643 if test -n "$ac_config_links"; then
22644   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22645 fi
22646
22647 if test -n "$ac_config_commands"; then
22648   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22649 fi
22650
22651 cat >>$CONFIG_STATUS <<\_ACEOF
22652
22653 ac_cs_usage="\
22654 \`$as_me' instantiates files from templates according to the
22655 current configuration.
22656
22657 Usage: $0 [OPTIONS] [FILE]...
22658
22659   -h, --help       print this help, then exit
22660   -V, --version    print version number, then exit
22661   -d, --debug      don't remove temporary files
22662       --recheck    update $as_me by reconfiguring in the same conditions
22663   --file=FILE[:TEMPLATE]
22664                    instantiate the configuration file FILE
22665   --header=FILE[:TEMPLATE]
22666                    instantiate the configuration header FILE
22667
22668 Configuration files:
22669 $config_files
22670
22671 Configuration headers:
22672 $config_headers
22673
22674 Configuration commands:
22675 $config_commands
22676
22677 Report bugs to <bug-autoconf@gnu.org>."
22678 _ACEOF
22679
22680 cat >>$CONFIG_STATUS <<_ACEOF
22681 ac_cs_version="\\
22682 [LLVM] config.status [1.0]
22683 configured by $0, generated by GNU Autoconf 2.53,
22684   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22685
22686 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
22687 Free Software Foundation, Inc.
22688 This config.status script is free software; the Free Software Foundation
22689 gives unlimited permission to copy, distribute and modify it."
22690 srcdir=$srcdir
22691 INSTALL="$INSTALL"
22692 _ACEOF
22693
22694 cat >>$CONFIG_STATUS <<\_ACEOF
22695 # If no file are specified by the user, then we need to provide default
22696 # value.  By we need to know if files were specified by the user.
22697 ac_need_defaults=:
22698 while test $# != 0
22699 do
22700   case $1 in
22701   --*=*)
22702     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22703     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22704     shift
22705     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
22706     shift
22707     ;;
22708   -*);;
22709   *) # This is not an option, so the user has probably given explicit
22710      # arguments.
22711      ac_need_defaults=false;;
22712   esac
22713
22714   case $1 in
22715   # Handling of the options.
22716 _ACEOF
22717 cat >>$CONFIG_STATUS <<_ACEOF
22718   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22719     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
22720     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
22721 _ACEOF
22722 cat >>$CONFIG_STATUS <<\_ACEOF
22723   --version | --vers* | -V )
22724     echo "$ac_cs_version"; exit 0 ;;
22725   --he | --h)
22726     # Conflict between --help and --header
22727     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22728 Try \`$0 --help' for more information." >&5
22729 echo "$as_me: error: ambiguous option: $1
22730 Try \`$0 --help' for more information." >&2;}
22731    { (exit 1); exit 1; }; };;
22732   --help | --hel | -h )
22733     echo "$ac_cs_usage"; exit 0 ;;
22734   --debug | --d* | -d )
22735     debug=: ;;
22736   --file | --fil | --fi | --f )
22737     shift
22738     CONFIG_FILES="$CONFIG_FILES $1"
22739     ac_need_defaults=false;;
22740   --header | --heade | --head | --hea )
22741     shift
22742     CONFIG_HEADERS="$CONFIG_HEADERS $1"
22743     ac_need_defaults=false;;
22744
22745   # This is an error.
22746   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22747 Try \`$0 --help' for more information." >&5
22748 echo "$as_me: error: unrecognized option: $1
22749 Try \`$0 --help' for more information." >&2;}
22750    { (exit 1); exit 1; }; } ;;
22751
22752   *) ac_config_targets="$ac_config_targets $1" ;;
22753
22754   esac
22755   shift
22756 done
22757
22758 _ACEOF
22759
22760 cat >>$CONFIG_STATUS <<_ACEOF
22761 #
22762 # INIT-COMMANDS section.
22763 #
22764
22765 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
22766 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
22767 ${srcdir}/autoconf/mkinstalldirs `dirname Makefile.rules`
22768 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
22769 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/Makefile`
22770 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/DataStructure/Makefile`
22771 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/IPA/Makefile`
22772 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Analysis/LiveVar/Makefile`
22773 ${srcdir}/autoconf/mkinstalldirs `dirname lib/AsmParser/Makefile`
22774 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Makefile`
22775 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Reader/Makefile`
22776 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Bytecode/Writer/Makefile`
22777 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CWriter/Makefile`
22778 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/Makefile`
22779 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSched/Makefile`
22780 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/InstrSelection/Makefile`
22781 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/ModuloScheduling/Makefile`
22782 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/RegAlloc/Makefile`
22783 ${srcdir}/autoconf/mkinstalldirs `dirname lib/CodeGen/SelectionDAG/Makefile`
22784 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Makefile`
22785 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/Interpreter/Makefile`
22786 ${srcdir}/autoconf/mkinstalldirs `dirname lib/ExecutionEngine/JIT/Makefile`
22787 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Support/Makefile`
22788 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Makefile`
22789 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/Sparc/Makefile`
22790 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Target/X86/Makefile`
22791 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Makefile`
22792 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Hello/Makefile`
22793 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/IPO/Makefile`
22794 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/Makefile`
22795 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Instrumentation/ProfilePaths/Makefile`
22796 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Scalar/Makefile`
22797 ${srcdir}/autoconf/mkinstalldirs `dirname lib/Transforms/Utils/Makefile`
22798 ${srcdir}/autoconf/mkinstalldirs `dirname lib/VMCore/Makefile`
22799 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22800 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/Makefile`
22801 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/crtend/Makefile`
22802 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libc/Makefile`
22803 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libg/Makefile`
22804 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libgcc/Makefile`
22805 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libm/Makefile`
22806 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libmalloc/Makefile`
22807 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/GCCLibraries/libucb/Makefile`
22808 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libdummy/Makefile`
22809 ${srcdir}/autoconf/mkinstalldirs `dirname runtime/libtrace/Makefile`
22810 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
22811 ${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22812 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
22813 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
22814 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
22815 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
22816 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.report`
22817 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
22818 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
22819 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
22820 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
22821 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
22822 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
22823 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
22824 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
22825 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
22826 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
22827 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.micro.Makefile`
22828 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
22829 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
22830 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/Makefile`
22831 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/179.art/Makefile`
22832 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/183.equake/Makefile`
22833 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CFP2000/188.ammp/Makefile`
22834 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/Makefile`
22835 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/164.gzip/Makefile`
22836 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/175.vpr/Makefile`
22837 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/176.gcc/Makefile`
22838 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/181.mcf/Makefile`
22839 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/186.crafty/Makefile`
22840 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/197.parser/Makefile`
22841 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/254.gap/Makefile`
22842 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/255.vortex/Makefile`
22843 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile`
22844 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/CINT2000/300.twolf/Makefile`
22845 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/LLVMSource/Makefile`
22846 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
22847 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
22848 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Burg/Makefile`
22849 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Fhourstones/Makefile`
22850 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/Makefile`
22851 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/01-qbsort/Makefile`
22852 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/03-testtrie/Makefile`
22853 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/04-bisect/Makefile`
22854 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/05-eks/Makefile`
22855 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/08-main/Makefile`
22856 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/09-vor/Makefile`
22857 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/12-IOtest/Makefile`
22858 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/15-trie/Makefile`
22859 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/17-bintr/Makefile`
22860 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/McCat/18-imp/Makefile`
22861 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/Makefile`
22862 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bh/Makefile`
22863 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/bisort/Makefile`
22864 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/em3d/Makefile`
22865 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/health/Makefile`
22866 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/mst/Makefile`
22867 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/perimeter/Makefile`
22868 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/power/Makefile`
22869 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/treeadd/Makefile`
22870 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/tsp/Makefile`
22871 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Olden/voronoi/Makefile`
22872 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/OptimizerEval/Makefile`
22873 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/Makefile`
22874 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/anagram/Makefile`
22875 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/bc/Makefile`
22876 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ft/Makefile`
22877 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/ks/Makefile`
22878 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Ptrdist/yacr2/Makefile`
22879 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/aha/Makefile`
22880 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/llubenchmark/Makefile`
22881 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sgefa/Makefile`
22882 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/sim/Makefile`
22883 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Makefile`
22884 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Flex/Makefile`
22885 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Larn/Makefile`
22886 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Moria-5.5.2/Makefile`
22887 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/Povray31/Makefile`
22888 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/NoSource/m4/Makefile`
22889 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
22890 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
22891 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/CustomChecked/Makefile`
22892 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Shootout/Makefile`
22893 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Stanford/Makefile`
22894 ${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/Makefile`
22895 ${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
22896 ${srcdir}/autoconf/mkinstalldirs `dirname tools/analyze/Makefile`
22897 ${srcdir}/autoconf/mkinstalldirs `dirname tools/as/Makefile`
22898 ${srcdir}/autoconf/mkinstalldirs `dirname tools/bugpoint/Makefile`
22899 ${srcdir}/autoconf/mkinstalldirs `dirname tools/dis/Makefile`
22900 ${srcdir}/autoconf/mkinstalldirs `dirname tools/extract/Makefile`
22901 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccas/Makefile`
22902 ${srcdir}/autoconf/mkinstalldirs `dirname tools/gccld/Makefile`
22903 ${srcdir}/autoconf/mkinstalldirs `dirname tools/link/Makefile`
22904 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llc/Makefile`
22905 ${srcdir}/autoconf/mkinstalldirs `dirname tools/lli/Makefile`
22906 ${srcdir}/autoconf/mkinstalldirs `dirname tools/opt/Makefile`
22907 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llee/Makefile`
22908 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-as/Makefile`
22909 ${srcdir}/autoconf/mkinstalldirs `dirname tools/llvm-dis/Makefile`
22910 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
22911 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Makefile`
22912 ${srcdir}/autoconf/mkinstalldirs `dirname utils/Burg/Doc/Makefile`
22913 ${srcdir}/autoconf/mkinstalldirs `dirname utils/TableGen/Makefile`
22914 ${srcdir}/autoconf/mkinstalldirs `dirname www/docs/Makefile`
22915 ${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
22916 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile`
22917 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.common`
22918 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/Makefile.config`
22919 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/Makefile`
22920 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/lib/sample/Makefile`
22921 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/Makefile`
22922 ${srcdir}/autoconf/mkinstalldirs `dirname projects/sample/tools/sample/Makefile`
22923 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile`
22924 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/Makefile.common`
22925 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/Makefile`
22926 ${srcdir}/autoconf/mkinstalldirs `dirname projects/ModuleMaker/tools/ModuleMaker/Makefile`
22927
22928 _ACEOF
22929
22930
22931
22932 cat >>$CONFIG_STATUS <<\_ACEOF
22933 for ac_config_target in $ac_config_targets
22934 do
22935   case "$ac_config_target" in
22936   # Handling of arguments.
22937   "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22938   "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22939   "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22940   "Makefile.rules" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.rules" ;;
22941   "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22942   "lib/Analysis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/Makefile" ;;
22943   "lib/Analysis/DataStructure/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/DataStructure/Makefile" ;;
22944   "lib/Analysis/IPA/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/IPA/Makefile" ;;
22945   "lib/Analysis/LiveVar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Analysis/LiveVar/Makefile" ;;
22946   "lib/AsmParser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/AsmParser/Makefile" ;;
22947   "lib/Bytecode/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Makefile" ;;
22948   "lib/Bytecode/Reader/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Reader/Makefile" ;;
22949   "lib/Bytecode/Writer/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Bytecode/Writer/Makefile" ;;
22950   "lib/CWriter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CWriter/Makefile" ;;
22951   "lib/CodeGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/Makefile" ;;
22952   "lib/CodeGen/InstrSched/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSched/Makefile" ;;
22953   "lib/CodeGen/InstrSelection/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/InstrSelection/Makefile" ;;
22954   "lib/CodeGen/ModuloScheduling/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/ModuloScheduling/Makefile" ;;
22955   "lib/CodeGen/RegAlloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/RegAlloc/Makefile" ;;
22956   "lib/CodeGen/SelectionDAG/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/CodeGen/SelectionDAG/Makefile" ;;
22957   "lib/ExecutionEngine/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Makefile" ;;
22958   "lib/ExecutionEngine/Interpreter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/Interpreter/Makefile" ;;
22959   "lib/ExecutionEngine/JIT/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/ExecutionEngine/JIT/Makefile" ;;
22960   "lib/Support/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Support/Makefile" ;;
22961   "lib/Target/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Makefile" ;;
22962   "lib/Target/Sparc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/Sparc/Makefile" ;;
22963   "lib/Target/X86/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Target/X86/Makefile" ;;
22964   "lib/Transforms/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Makefile" ;;
22965   "lib/Transforms/Hello/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Hello/Makefile" ;;
22966   "lib/Transforms/IPO/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/IPO/Makefile" ;;
22967   "lib/Transforms/Instrumentation/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/Makefile" ;;
22968   "lib/Transforms/Instrumentation/ProfilePaths/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Instrumentation/ProfilePaths/Makefile" ;;
22969   "lib/Transforms/Scalar/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Scalar/Makefile" ;;
22970   "lib/Transforms/Utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Transforms/Utils/Makefile" ;;
22971   "lib/VMCore/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/VMCore/Makefile" ;;
22972   "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22973   "runtime/GCCLibraries/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/Makefile" ;;
22974   "runtime/GCCLibraries/crtend/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/crtend/Makefile" ;;
22975   "runtime/GCCLibraries/libc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libc/Makefile" ;;
22976   "runtime/GCCLibraries/libg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libg/Makefile" ;;
22977   "runtime/GCCLibraries/libgcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libgcc/Makefile" ;;
22978   "runtime/GCCLibraries/libm/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libm/Makefile" ;;
22979   "runtime/GCCLibraries/libmalloc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libmalloc/Makefile" ;;
22980   "runtime/GCCLibraries/libucb/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/GCCLibraries/libucb/Makefile" ;;
22981   "runtime/libdummy/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libdummy/Makefile" ;;
22982   "runtime/libtrace/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/libtrace/Makefile" ;;
22983   "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22984   "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22985   "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
22986   "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
22987   "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
22988   "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
22989   "test/Programs/TEST.micro.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.report" ;;
22990   "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
22991   "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
22992   "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
22993   "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
22994   "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
22995   "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
22996   "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
22997   "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
22998   "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
22999   "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
23000   "test/Programs/TEST.micro.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.micro.Makefile" ;;
23001   "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
23002   "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
23003   "test/Programs/External/SPEC/CFP2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/Makefile" ;;
23004   "test/Programs/External/SPEC/CFP2000/179.art/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/179.art/Makefile" ;;
23005   "test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/183.equake/Makefile" ;;
23006   "test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CFP2000/188.ammp/Makefile" ;;
23007   "test/Programs/External/SPEC/CINT2000/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/Makefile" ;;
23008   "test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/164.gzip/Makefile" ;;
23009   "test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/175.vpr/Makefile" ;;
23010   "test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/176.gcc/Makefile" ;;
23011   "test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/181.mcf/Makefile" ;;
23012   "test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/186.crafty/Makefile" ;;
23013   "test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/197.parser/Makefile" ;;
23014   "test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/254.gap/Makefile" ;;
23015   "test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/255.vortex/Makefile" ;;
23016   "test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile" ;;
23017   "test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/CINT2000/300.twolf/Makefile" ;;
23018   "test/Programs/LLVMSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/LLVMSource/Makefile" ;;
23019   "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
23020   "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
23021   "test/Programs/MultiSource/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Burg/Makefile" ;;
23022   "test/Programs/MultiSource/Fhourstones/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Fhourstones/Makefile" ;;
23023   "test/Programs/MultiSource/McCat/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/Makefile" ;;
23024   "test/Programs/MultiSource/McCat/01-qbsort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/01-qbsort/Makefile" ;;
23025   "test/Programs/MultiSource/McCat/03-testtrie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/03-testtrie/Makefile" ;;
23026   "test/Programs/MultiSource/McCat/04-bisect/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/04-bisect/Makefile" ;;
23027   "test/Programs/MultiSource/McCat/05-eks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/05-eks/Makefile" ;;
23028   "test/Programs/MultiSource/McCat/08-main/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/08-main/Makefile" ;;
23029   "test/Programs/MultiSource/McCat/09-vor/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/09-vor/Makefile" ;;
23030   "test/Programs/MultiSource/McCat/12-IOtest/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/12-IOtest/Makefile" ;;
23031   "test/Programs/MultiSource/McCat/15-trie/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/15-trie/Makefile" ;;
23032   "test/Programs/MultiSource/McCat/17-bintr/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/17-bintr/Makefile" ;;
23033   "test/Programs/MultiSource/McCat/18-imp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/McCat/18-imp/Makefile" ;;
23034   "test/Programs/MultiSource/Olden/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/Makefile" ;;
23035   "test/Programs/MultiSource/Olden/bh/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bh/Makefile" ;;
23036   "test/Programs/MultiSource/Olden/bisort/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/bisort/Makefile" ;;
23037   "test/Programs/MultiSource/Olden/em3d/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/em3d/Makefile" ;;
23038   "test/Programs/MultiSource/Olden/health/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/health/Makefile" ;;
23039   "test/Programs/MultiSource/Olden/mst/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/mst/Makefile" ;;
23040   "test/Programs/MultiSource/Olden/perimeter/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/perimeter/Makefile" ;;
23041   "test/Programs/MultiSource/Olden/power/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/power/Makefile" ;;
23042   "test/Programs/MultiSource/Olden/treeadd/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/treeadd/Makefile" ;;
23043   "test/Programs/MultiSource/Olden/tsp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/tsp/Makefile" ;;
23044   "test/Programs/MultiSource/Olden/voronoi/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Olden/voronoi/Makefile" ;;
23045   "test/Programs/MultiSource/OptimizerEval/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/OptimizerEval/Makefile" ;;
23046   "test/Programs/MultiSource/Ptrdist/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/Makefile" ;;
23047   "test/Programs/MultiSource/Ptrdist/anagram/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/anagram/Makefile" ;;
23048   "test/Programs/MultiSource/Ptrdist/bc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/bc/Makefile" ;;
23049   "test/Programs/MultiSource/Ptrdist/ft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ft/Makefile" ;;
23050   "test/Programs/MultiSource/Ptrdist/ks/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/ks/Makefile" ;;
23051   "test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Ptrdist/yacr2/Makefile" ;;
23052   "test/Programs/MultiSource/aha/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/aha/Makefile" ;;
23053   "test/Programs/MultiSource/llubenchmark/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/llubenchmark/Makefile" ;;
23054   "test/Programs/MultiSource/sgefa/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sgefa/Makefile" ;;
23055   "test/Programs/MultiSource/sim/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/sim/Makefile" ;;
23056   "test/Programs/NoSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Makefile" ;;
23057   "test/Programs/NoSource/Flex/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Flex/Makefile" ;;
23058   "test/Programs/NoSource/Larn/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Larn/Makefile" ;;
23059   "test/Programs/NoSource/Moria-5.5.2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Moria-5.5.2/Makefile" ;;
23060   "test/Programs/NoSource/Povray31/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/Povray31/Makefile" ;;
23061   "test/Programs/NoSource/m4/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/NoSource/m4/Makefile" ;;
23062   "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
23063   "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
23064   "test/Programs/SingleSource/CustomChecked/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/CustomChecked/Makefile" ;;
23065   "test/Programs/SingleSource/Shootout/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Shootout/Makefile" ;;
23066   "test/Programs/SingleSource/Stanford/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Stanford/Makefile" ;;
23067   "test/Programs/SingleSource/UnitTests/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/Makefile" ;;
23068   "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23069   "tools/analyze/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/analyze/Makefile" ;;
23070   "tools/as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/as/Makefile" ;;
23071   "tools/bugpoint/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/bugpoint/Makefile" ;;
23072   "tools/dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/dis/Makefile" ;;
23073   "tools/extract/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/extract/Makefile" ;;
23074   "tools/gccas/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccas/Makefile" ;;
23075   "tools/gccld/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/gccld/Makefile" ;;
23076   "tools/link/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/link/Makefile" ;;
23077   "tools/llc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llc/Makefile" ;;
23078   "tools/lli/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/lli/Makefile" ;;
23079   "tools/opt/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/opt/Makefile" ;;
23080   "tools/llee/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llee/Makefile" ;;
23081   "tools/llvm-as/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-as/Makefile" ;;
23082   "tools/llvm-dis/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/llvm-dis/Makefile" ;;
23083   "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23084   "utils/Burg/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Makefile" ;;
23085   "utils/Burg/Doc/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Burg/Doc/Makefile" ;;
23086   "utils/TableGen/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/TableGen/Makefile" ;;
23087   "www/docs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS www/docs/Makefile" ;;
23088   "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23089   "projects/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile" ;;
23090   "projects/sample/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.common" ;;
23091   "projects/sample/Makefile.config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/Makefile.config" ;;
23092   "projects/sample/lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/Makefile" ;;
23093   "projects/sample/lib/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/lib/sample/Makefile" ;;
23094   "projects/sample/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/Makefile" ;;
23095   "projects/sample/tools/sample/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/sample/tools/sample/Makefile" ;;
23096   "projects/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile" ;;
23097   "projects/ModuleMaker/Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/Makefile.common" ;;
23098   "projects/ModuleMaker/tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/Makefile" ;;
23099   "projects/ModuleMaker/tools/ModuleMaker/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/ModuleMaker/tools/ModuleMaker/Makefile" ;;
23100   "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
23101   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23102 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23103    { (exit 1); exit 1; }; };;
23104   esac
23105 done
23106
23107 # If the user did not use the arguments to specify the items to instantiate,
23108 # then the envvar interface is used.  Set only those that are not.
23109 # We use the long form for the default assignment because of an extremely
23110 # bizarre bug on SunOS 4.1.3.
23111 if $ac_need_defaults; then
23112   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23113   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23114   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23115 fi
23116
23117 # Create a temporary directory, and hook for its removal unless debugging.
23118 $debug ||
23119 {
23120   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23121   trap '{ (exit 1); exit 1; }' 1 2 13 15
23122 }
23123
23124 # Create a (secure) tmp directory for tmp files.
23125 : ${TMPDIR=/tmp}
23126 {
23127   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23128   test -n "$tmp" && test -d "$tmp"
23129 }  ||
23130 {
23131   tmp=$TMPDIR/cs$$-$RANDOM
23132   (umask 077 && mkdir $tmp)
23133 } ||
23134 {
23135    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23136    { (exit 1); exit 1; }
23137 }
23138
23139 _ACEOF
23140
23141 cat >>$CONFIG_STATUS <<_ACEOF
23142
23143 #
23144 # CONFIG_FILES section.
23145 #
23146
23147 # No need to generate the scripts if there are no CONFIG_FILES.
23148 # This happens for instance when ./config.status config.h
23149 if test -n "\$CONFIG_FILES"; then
23150   # Protect against being on the right side of a sed subst in config.status.
23151   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23152    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23153 s,@SHELL@,$SHELL,;t t
23154 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23155 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23156 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23157 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23158 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23159 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23160 s,@exec_prefix@,$exec_prefix,;t t
23161 s,@prefix@,$prefix,;t t
23162 s,@program_transform_name@,$program_transform_name,;t t
23163 s,@bindir@,$bindir,;t t
23164 s,@sbindir@,$sbindir,;t t
23165 s,@libexecdir@,$libexecdir,;t t
23166 s,@datadir@,$datadir,;t t
23167 s,@sysconfdir@,$sysconfdir,;t t
23168 s,@sharedstatedir@,$sharedstatedir,;t t
23169 s,@localstatedir@,$localstatedir,;t t
23170 s,@libdir@,$libdir,;t t
23171 s,@includedir@,$includedir,;t t
23172 s,@oldincludedir@,$oldincludedir,;t t
23173 s,@infodir@,$infodir,;t t
23174 s,@mandir@,$mandir,;t t
23175 s,@build_alias@,$build_alias,;t t
23176 s,@host_alias@,$host_alias,;t t
23177 s,@target_alias@,$target_alias,;t t
23178 s,@DEFS@,$DEFS,;t t
23179 s,@ECHO_C@,$ECHO_C,;t t
23180 s,@ECHO_N@,$ECHO_N,;t t
23181 s,@ECHO_T@,$ECHO_T,;t t
23182 s,@LIBS@,$LIBS,;t t
23183 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23184 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23185 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23186 s,@build@,$build,;t t
23187 s,@build_cpu@,$build_cpu,;t t
23188 s,@build_vendor@,$build_vendor,;t t
23189 s,@build_os@,$build_os,;t t
23190 s,@host@,$host,;t t
23191 s,@host_cpu@,$host_cpu,;t t
23192 s,@host_vendor@,$host_vendor,;t t
23193 s,@host_os@,$host_os,;t t
23194 s,@target@,$target,;t t
23195 s,@target_cpu@,$target_cpu,;t t
23196 s,@target_vendor@,$target_vendor,;t t
23197 s,@target_os@,$target_os,;t t
23198 s,@OS@,$OS,;t t
23199 s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
23200 s,@ARCH@,$ARCH,;t t
23201 s,@CXX@,$CXX,;t t
23202 s,@CXXFLAGS@,$CXXFLAGS,;t t
23203 s,@LDFLAGS@,$LDFLAGS,;t t
23204 s,@CPPFLAGS@,$CPPFLAGS,;t t
23205 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23206 s,@EXEEXT@,$EXEEXT,;t t
23207 s,@OBJEXT@,$OBJEXT,;t t
23208 s,@CC@,$CC,;t t
23209 s,@CFLAGS@,$CFLAGS,;t t
23210 s,@ac_ct_CC@,$ac_ct_CC,;t t
23211 s,@CPP@,$CPP,;t t
23212 s,@ifGNUmake@,$ifGNUmake,;t t
23213 s,@LEX@,$LEX,;t t
23214 s,@LEXLIB@,$LEXLIB,;t t
23215 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
23216 s,@YACC@,$YACC,;t t
23217 s,@EGREP@,$EGREP,;t t
23218 s,@LN_S@,$LN_S,;t t
23219 s,@ECHO@,$ECHO,;t t
23220 s,@AR@,$AR,;t t
23221 s,@ac_ct_AR@,$ac_ct_AR,;t t
23222 s,@RANLIB@,$RANLIB,;t t
23223 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23224 s,@STRIP@,$STRIP,;t t
23225 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
23226 s,@CXXCPP@,$CXXCPP,;t t
23227 s,@F77@,$F77,;t t
23228 s,@FFLAGS@,$FFLAGS,;t t
23229 s,@ac_ct_F77@,$ac_ct_F77,;t t
23230 s,@LIBTOOL@,$LIBTOOL,;t t
23231 s,@RPWD@,$RPWD,;t t
23232 s,@SED@,$SED,;t t
23233 s,@RM@,$RM,;t t
23234 s,@MKDIR@,$MKDIR,;t t
23235 s,@DATE@,$DATE,;t t
23236 s,@MV@,$MV,;t t
23237 s,@DOT@,$DOT,;t t
23238 s,@ETAGS@,$ETAGS,;t t
23239 s,@PURIFY@,$PURIFY,;t t
23240 s,@PYTHON@,$PYTHON,;t t
23241 s,@QMTEST@,$QMTEST,;t t
23242 s,@ALLOCA@,$ALLOCA,;t t
23243 s,@LIBOBJS@,$LIBOBJS,;t t
23244 s,@MMAP_FILE@,$MMAP_FILE,;t t
23245 s,@ENABLE_PURIFY@,$ENABLE_PURIFY,;t t
23246 s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
23247 s,@USE_SPEC@,$USE_SPEC,;t t
23248 s,@UPB@,$UPB,;t t
23249 s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
23250 s,@JIT@,$JIT,;t t
23251 s,@SPEC_ROOT@,$SPEC_ROOT,;t t
23252 s,@BCR@,$BCR,;t t
23253 s,@PAPIDIR@,$PAPIDIR,;t t
23254 CEOF
23255
23256 _ACEOF
23257
23258   cat >>$CONFIG_STATUS <<\_ACEOF
23259   # Split the substitutions into bite-sized pieces for seds with
23260   # small command number limits, like on Digital OSF/1 and HP-UX.
23261   ac_max_sed_lines=48
23262   ac_sed_frag=1 # Number of current file.
23263   ac_beg=1 # First line for current file.
23264   ac_end=$ac_max_sed_lines # Line after last line for current file.
23265   ac_more_lines=:
23266   ac_sed_cmds=
23267   while $ac_more_lines; do
23268     if test $ac_beg -gt 1; then
23269       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23270     else
23271       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23272     fi
23273     if test ! -s $tmp/subs.frag; then
23274       ac_more_lines=false
23275     else
23276       # The purpose of the label and of the branching condition is to
23277       # speed up the sed processing (if there are no `@' at all, there
23278       # is no need to browse any of the substitutions).
23279       # These are the two extra sed commands mentioned above.
23280       (echo ':t
23281   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23282       if test -z "$ac_sed_cmds"; then
23283         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23284       else
23285         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23286       fi
23287       ac_sed_frag=`expr $ac_sed_frag + 1`
23288       ac_beg=$ac_end
23289       ac_end=`expr $ac_end + $ac_max_sed_lines`
23290     fi
23291   done
23292   if test -z "$ac_sed_cmds"; then
23293     ac_sed_cmds=cat
23294   fi
23295 fi # test -n "$CONFIG_FILES"
23296
23297 _ACEOF
23298 cat >>$CONFIG_STATUS <<\_ACEOF
23299 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23300   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23301   case $ac_file in
23302   - | *:- | *:-:* ) # input from stdin
23303         cat >$tmp/stdin
23304         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23305         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23306   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23307         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23308   * )   ac_file_in=$ac_file.in ;;
23309   esac
23310
23311   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23312   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23314          X"$ac_file" : 'X\(//\)[^/]' \| \
23315          X"$ac_file" : 'X\(//\)$' \| \
23316          X"$ac_file" : 'X\(/\)' \| \
23317          .     : '\(.\)' 2>/dev/null ||
23318 echo X"$ac_file" |
23319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23320           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23321           /^X\(\/\/\)$/{ s//\1/; q; }
23322           /^X\(\/\).*/{ s//\1/; q; }
23323           s/.*/./; q'`
23324   { case "$ac_dir" in
23325   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23326   *)                      as_incr_dir=.;;
23327 esac
23328 as_dummy="$ac_dir"
23329 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23330   case $as_mkdir_dir in
23331     # Skip DOS drivespec
23332     ?:) as_incr_dir=$as_mkdir_dir ;;
23333     *)
23334       as_incr_dir=$as_incr_dir/$as_mkdir_dir
23335       test -d "$as_incr_dir" ||
23336         mkdir "$as_incr_dir" ||
23337         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
23338 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
23339    { (exit 1); exit 1; }; }
23340     ;;
23341   esac
23342 done; }
23343
23344   ac_builddir=.
23345
23346 if test "$ac_dir" != .; then
23347   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23348   # A "../" for each directory in $ac_dir_suffix.
23349   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23350 else
23351   ac_dir_suffix= ac_top_builddir=
23352 fi
23353
23354 case $srcdir in
23355   .)  # No --srcdir option.  We are building in place.
23356     ac_srcdir=.
23357     if test -z "$ac_top_builddir"; then
23358        ac_top_srcdir=.
23359     else
23360        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23361     fi ;;
23362   [\\/]* | ?:[\\/]* )  # Absolute path.
23363     ac_srcdir=$srcdir$ac_dir_suffix;
23364     ac_top_srcdir=$srcdir ;;
23365   *) # Relative path.
23366     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23367     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23368 esac
23369 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23370 # absolute.
23371 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23372 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
23373 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23374 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23375
23376
23377   case $INSTALL in
23378   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23379   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23380   esac
23381
23382   if test x"$ac_file" != x-; then
23383     { echo "$as_me:$LINENO: creating $ac_file" >&5
23384 echo "$as_me: creating $ac_file" >&6;}
23385     rm -f "$ac_file"
23386   fi
23387   # Let's still pretend it is `configure' which instantiates (i.e., don't
23388   # use $as_me), people would be surprised to read:
23389   #    /* config.h.  Generated by config.status.  */
23390   if test x"$ac_file" = x-; then
23391     configure_input=
23392   else
23393     configure_input="$ac_file.  "
23394   fi
23395   configure_input=$configure_input"Generated from `echo $ac_file_in |
23396                                      sed 's,.*/,,'` by configure."
23397
23398   # First look for the input files in the build tree, otherwise in the
23399   # src tree.
23400   ac_file_inputs=`IFS=:
23401     for f in $ac_file_in; do
23402       case $f in
23403       -) echo $tmp/stdin ;;
23404       [\\/$]*)
23405          # Absolute (can't be DOS-style, as IFS=:)
23406          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23407 echo "$as_me: error: cannot find input file: $f" >&2;}
23408    { (exit 1); exit 1; }; }
23409          echo $f;;
23410       *) # Relative
23411          if test -f "$f"; then
23412            # Build tree
23413            echo $f
23414          elif test -f "$srcdir/$f"; then
23415            # Source tree
23416            echo $srcdir/$f
23417          else
23418            # /dev/null tree
23419            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23420 echo "$as_me: error: cannot find input file: $f" >&2;}
23421    { (exit 1); exit 1; }; }
23422          fi;;
23423       esac
23424     done` || { (exit 1); exit 1; }
23425 _ACEOF
23426 cat >>$CONFIG_STATUS <<_ACEOF
23427   sed "$ac_vpsub
23428 $extrasub
23429 _ACEOF
23430 cat >>$CONFIG_STATUS <<\_ACEOF
23431 :t
23432 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23433 s,@configure_input@,$configure_input,;t t
23434 s,@srcdir@,$ac_srcdir,;t t
23435 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23436 s,@top_srcdir@,$ac_top_srcdir,;t t
23437 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23438 s,@builddir@,$ac_builddir,;t t
23439 s,@abs_builddir@,$ac_abs_builddir,;t t
23440 s,@top_builddir@,$ac_top_builddir,;t t
23441 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23442 s,@INSTALL@,$ac_INSTALL,;t t
23443 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23444   rm -f $tmp/stdin
23445   if test x"$ac_file" != x-; then
23446     mv $tmp/out $ac_file
23447   else
23448     cat $tmp/out
23449     rm -f $tmp/out
23450   fi
23451
23452 done
23453 _ACEOF
23454 cat >>$CONFIG_STATUS <<\_ACEOF
23455
23456 #
23457 # CONFIG_HEADER section.
23458 #
23459
23460 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23461 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23462 #
23463 # ac_d sets the value in "#define NAME VALUE" lines.
23464 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
23465 ac_dB='[        ].*$,\1#\2'
23466 ac_dC=' '
23467 ac_dD=',;t'
23468 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23469 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
23470 ac_uB='$,\1#\2define\3'
23471 ac_uC=' '
23472 ac_uD=',;t'
23473
23474 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23475   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23476   case $ac_file in
23477   - | *:- | *:-:* ) # input from stdin
23478         cat >$tmp/stdin
23479         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23480         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23481   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23482         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23483   * )   ac_file_in=$ac_file.in ;;
23484   esac
23485
23486   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23487 echo "$as_me: creating $ac_file" >&6;}
23488
23489   # First look for the input files in the build tree, otherwise in the
23490   # src tree.
23491   ac_file_inputs=`IFS=:
23492     for f in $ac_file_in; do
23493       case $f in
23494       -) echo $tmp/stdin ;;
23495       [\\/$]*)
23496          # Absolute (can't be DOS-style, as IFS=:)
23497          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23498 echo "$as_me: error: cannot find input file: $f" >&2;}
23499    { (exit 1); exit 1; }; }
23500          echo $f;;
23501       *) # Relative
23502          if test -f "$f"; then
23503            # Build tree
23504            echo $f
23505          elif test -f "$srcdir/$f"; then
23506            # Source tree
23507            echo $srcdir/$f
23508          else
23509            # /dev/null tree
23510            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23511 echo "$as_me: error: cannot find input file: $f" >&2;}
23512    { (exit 1); exit 1; }; }
23513          fi;;
23514       esac
23515     done` || { (exit 1); exit 1; }
23516   # Remove the trailing spaces.
23517   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
23518
23519 _ACEOF
23520
23521 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23522 # `conftest.undefs', that substitutes the proper values into
23523 # config.h.in to produce config.h.  The first handles `#define'
23524 # templates, and the second `#undef' templates.
23525 # And first: Protect against being on the right side of a sed subst in
23526 # config.status.  Protect against being in an unquoted here document
23527 # in config.status.
23528 rm -f conftest.defines conftest.undefs
23529 # Using a here document instead of a string reduces the quoting nightmare.
23530 # Putting comments in sed scripts is not portable.
23531 #
23532 # `end' is used to avoid that the second main sed command (meant for
23533 # 0-ary CPP macros) applies to n-ary macro definitions.
23534 # See the Autoconf documentation for `clear'.
23535 cat >confdef2sed.sed <<\_ACEOF
23536 s/[\\&,]/\\&/g
23537 s,[\\$`],\\&,g
23538 t clear
23539 : clear
23540 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23541 t end
23542 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23543 : end
23544 _ACEOF
23545 # If some macros were called several times there might be several times
23546 # the same #defines, which is useless.  Nevertheless, we may not want to
23547 # sort them, since we want the *last* AC-DEFINE to be honored.
23548 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23549 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23550 rm -f confdef2sed.sed
23551
23552 # This sed command replaces #undef with comments.  This is necessary, for
23553 # example, in the case of _POSIX_SOURCE, which is predefined and required
23554 # on some systems where configure will not decide to define it.
23555 cat >>conftest.undefs <<\_ACEOF
23556 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23557 _ACEOF
23558
23559 # Break up conftest.defines because some shells have a limit on the size
23560 # of here documents, and old seds have small limits too (100 cmds).
23561 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23562 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23563 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23564 echo '  :' >>$CONFIG_STATUS
23565 rm -f conftest.tail
23566 while grep . conftest.defines >/dev/null
23567 do
23568   # Write a limited-size here document to $tmp/defines.sed.
23569   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23570   # Speed up: don't consider the non `#define' lines.
23571   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
23572   # Work around the forget-to-reset-the-flag bug.
23573   echo 't clr' >>$CONFIG_STATUS
23574   echo ': clr' >>$CONFIG_STATUS
23575   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23576   echo 'CEOF
23577   sed -f $tmp/defines.sed $tmp/in >$tmp/out
23578   rm -f $tmp/in
23579   mv $tmp/out $tmp/in
23580 ' >>$CONFIG_STATUS
23581   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23582   rm -f conftest.defines
23583   mv conftest.tail conftest.defines
23584 done
23585 rm -f conftest.defines
23586 echo '  fi # egrep' >>$CONFIG_STATUS
23587 echo >>$CONFIG_STATUS
23588
23589 # Break up conftest.undefs because some shells have a limit on the size
23590 # of here documents, and old seds have small limits too (100 cmds).
23591 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
23592 rm -f conftest.tail
23593 while grep . conftest.undefs >/dev/null
23594 do
23595   # Write a limited-size here document to $tmp/undefs.sed.
23596   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23597   # Speed up: don't consider the non `#undef'
23598   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
23599   # Work around the forget-to-reset-the-flag bug.
23600   echo 't clr' >>$CONFIG_STATUS
23601   echo ': clr' >>$CONFIG_STATUS
23602   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23603   echo 'CEOF
23604   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23605   rm -f $tmp/in
23606   mv $tmp/out $tmp/in
23607 ' >>$CONFIG_STATUS
23608   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23609   rm -f conftest.undefs
23610   mv conftest.tail conftest.undefs
23611 done
23612 rm -f conftest.undefs
23613
23614 cat >>$CONFIG_STATUS <<\_ACEOF
23615   # Let's still pretend it is `configure' which instantiates (i.e., don't
23616   # use $as_me), people would be surprised to read:
23617   #    /* config.h.  Generated by config.status.  */
23618   if test x"$ac_file" = x-; then
23619     echo "/* Generated by configure.  */" >$tmp/config.h
23620   else
23621     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
23622   fi
23623   cat $tmp/in >>$tmp/config.h
23624   rm -f $tmp/in
23625   if test x"$ac_file" != x-; then
23626     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
23627       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23628 echo "$as_me: $ac_file is unchanged" >&6;}
23629     else
23630       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23631 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23632          X"$ac_file" : 'X\(//\)[^/]' \| \
23633          X"$ac_file" : 'X\(//\)$' \| \
23634          X"$ac_file" : 'X\(/\)' \| \
23635          .     : '\(.\)' 2>/dev/null ||
23636 echo X"$ac_file" |
23637     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23638           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23639           /^X\(\/\/\)$/{ s//\1/; q; }
23640           /^X\(\/\).*/{ s//\1/; q; }
23641           s/.*/./; q'`
23642       { case "$ac_dir" in
23643   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23644   *)                      as_incr_dir=.;;
23645 esac
23646 as_dummy="$ac_dir"
23647 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23648   case $as_mkdir_dir in
23649     # Skip DOS drivespec
23650     ?:) as_incr_dir=$as_mkdir_dir ;;
23651     *)
23652       as_incr_dir=$as_incr_dir/$as_mkdir_dir
23653       test -d "$as_incr_dir" ||
23654         mkdir "$as_incr_dir" ||
23655         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
23656 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
23657    { (exit 1); exit 1; }; }
23658     ;;
23659   esac
23660 done; }
23661
23662       rm -f $ac_file
23663       mv $tmp/config.h $ac_file
23664     fi
23665   else
23666     cat $tmp/config.h
23667     rm -f $tmp/config.h
23668   fi
23669 done
23670 _ACEOF
23671 cat >>$CONFIG_STATUS <<\_ACEOF
23672
23673 #
23674 # CONFIG_COMMANDS section.
23675 #
23676 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23677   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23678   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23679   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23680 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23681          X"$ac_dest" : 'X\(//\)[^/]' \| \
23682          X"$ac_dest" : 'X\(//\)$' \| \
23683          X"$ac_dest" : 'X\(/\)' \| \
23684          .     : '\(.\)' 2>/dev/null ||
23685 echo X"$ac_dest" |
23686     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23687           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23688           /^X\(\/\/\)$/{ s//\1/; q; }
23689           /^X\(\/\).*/{ s//\1/; q; }
23690           s/.*/./; q'`
23691   ac_builddir=.
23692
23693 if test "$ac_dir" != .; then
23694   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23695   # A "../" for each directory in $ac_dir_suffix.
23696   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23697 else
23698   ac_dir_suffix= ac_top_builddir=
23699 fi
23700
23701 case $srcdir in
23702   .)  # No --srcdir option.  We are building in place.
23703     ac_srcdir=.
23704     if test -z "$ac_top_builddir"; then
23705        ac_top_srcdir=.
23706     else
23707        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23708     fi ;;
23709   [\\/]* | ?:[\\/]* )  # Absolute path.
23710     ac_srcdir=$srcdir$ac_dir_suffix;
23711     ac_top_srcdir=$srcdir ;;
23712   *) # Relative path.
23713     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23714     ac_top_srcdir=$ac_top_builddir$srcdir ;;
23715 esac
23716 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23717 # absolute.
23718 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23719 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
23720 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23721 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
23722
23723
23724   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23725 echo "$as_me: executing $ac_dest commands" >&6;}
23726   case $ac_dest in
23727     Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
23728     Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
23729     Makefile.rules ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.rules Makefile.rules ;;
23730     lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
23731     lib/Analysis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/Makefile lib/Analysis/Makefile ;;
23732     lib/Analysis/DataStructure/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/DataStructure/Makefile lib/Analysis/DataStructure/Makefile ;;
23733     lib/Analysis/IPA/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/IPA/Makefile lib/Analysis/IPA/Makefile ;;
23734     lib/Analysis/LiveVar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Analysis/LiveVar/Makefile lib/Analysis/LiveVar/Makefile ;;
23735     lib/AsmParser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/AsmParser/Makefile lib/AsmParser/Makefile ;;
23736     lib/Bytecode/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Makefile lib/Bytecode/Makefile ;;
23737     lib/Bytecode/Reader/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Reader/Makefile lib/Bytecode/Reader/Makefile ;;
23738     lib/Bytecode/Writer/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Bytecode/Writer/Makefile lib/Bytecode/Writer/Makefile ;;
23739     lib/CWriter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CWriter/Makefile lib/CWriter/Makefile ;;
23740     lib/CodeGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/Makefile lib/CodeGen/Makefile ;;
23741     lib/CodeGen/InstrSched/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSched/Makefile lib/CodeGen/InstrSched/Makefile ;;
23742     lib/CodeGen/InstrSelection/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/InstrSelection/Makefile lib/CodeGen/InstrSelection/Makefile ;;
23743     lib/CodeGen/ModuloScheduling/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/ModuloScheduling/Makefile lib/CodeGen/ModuloScheduling/Makefile ;;
23744     lib/CodeGen/RegAlloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/RegAlloc/Makefile lib/CodeGen/RegAlloc/Makefile ;;
23745     lib/CodeGen/SelectionDAG/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/CodeGen/SelectionDAG/Makefile lib/CodeGen/SelectionDAG/Makefile ;;
23746     lib/ExecutionEngine/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Makefile lib/ExecutionEngine/Makefile ;;
23747     lib/ExecutionEngine/Interpreter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/Interpreter/Makefile lib/ExecutionEngine/Interpreter/Makefile ;;
23748     lib/ExecutionEngine/JIT/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/ExecutionEngine/JIT/Makefile lib/ExecutionEngine/JIT/Makefile ;;
23749     lib/Support/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Support/Makefile lib/Support/Makefile ;;
23750     lib/Target/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Makefile lib/Target/Makefile ;;
23751     lib/Target/Sparc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/Sparc/Makefile lib/Target/Sparc/Makefile ;;
23752     lib/Target/X86/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Target/X86/Makefile lib/Target/X86/Makefile ;;
23753     lib/Transforms/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Makefile lib/Transforms/Makefile ;;
23754     lib/Transforms/Hello/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Hello/Makefile lib/Transforms/Hello/Makefile ;;
23755     lib/Transforms/IPO/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/IPO/Makefile lib/Transforms/IPO/Makefile ;;
23756     lib/Transforms/Instrumentation/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/Makefile lib/Transforms/Instrumentation/Makefile ;;
23757     lib/Transforms/Instrumentation/ProfilePaths/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Instrumentation/ProfilePaths/Makefile lib/Transforms/Instrumentation/ProfilePaths/Makefile ;;
23758     lib/Transforms/Scalar/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Scalar/Makefile lib/Transforms/Scalar/Makefile ;;
23759     lib/Transforms/Utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Transforms/Utils/Makefile lib/Transforms/Utils/Makefile ;;
23760     lib/VMCore/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/VMCore/Makefile lib/VMCore/Makefile ;;
23761     runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23762     runtime/GCCLibraries/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/Makefile runtime/GCCLibraries/Makefile ;;
23763     runtime/GCCLibraries/crtend/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/crtend/Makefile runtime/GCCLibraries/crtend/Makefile ;;
23764     runtime/GCCLibraries/libc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libc/Makefile runtime/GCCLibraries/libc/Makefile ;;
23765     runtime/GCCLibraries/libg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libg/Makefile runtime/GCCLibraries/libg/Makefile ;;
23766     runtime/GCCLibraries/libgcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libgcc/Makefile runtime/GCCLibraries/libgcc/Makefile ;;
23767     runtime/GCCLibraries/libm/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libm/Makefile runtime/GCCLibraries/libm/Makefile ;;
23768     runtime/GCCLibraries/libmalloc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libmalloc/Makefile runtime/GCCLibraries/libmalloc/Makefile ;;
23769     runtime/GCCLibraries/libucb/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/GCCLibraries/libucb/Makefile runtime/GCCLibraries/libucb/Makefile ;;
23770     runtime/libdummy/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libdummy/Makefile runtime/libdummy/Makefile ;;
23771     runtime/libtrace/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/libtrace/Makefile runtime/libtrace/Makefile ;;
23772     test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
23773     test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23774     test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
23775     test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
23776     test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
23777     test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
23778     test/Programs/TEST.micro.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.report test/Programs/TEST.micro.report ;;
23779     test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
23780     test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
23781     test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
23782     test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
23783     test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
23784     test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
23785     test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
23786     test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
23787     test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
23788     test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
23789     test/Programs/TEST.micro.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.micro.Makefile test/Programs/TEST.micro.Makefile ;;
23790     test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
23791     test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
23792     test/Programs/External/SPEC/CFP2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/Makefile test/Programs/External/SPEC/CFP2000/Makefile ;;
23793     test/Programs/External/SPEC/CFP2000/179.art/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/179.art/Makefile test/Programs/External/SPEC/CFP2000/179.art/Makefile ;;
23794     test/Programs/External/SPEC/CFP2000/183.equake/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/183.equake/Makefile test/Programs/External/SPEC/CFP2000/183.equake/Makefile ;;
23795     test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CFP2000/188.ammp/Makefile test/Programs/External/SPEC/CFP2000/188.ammp/Makefile ;;
23796     test/Programs/External/SPEC/CINT2000/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/Makefile test/Programs/External/SPEC/CINT2000/Makefile ;;
23797     test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/164.gzip/Makefile test/Programs/External/SPEC/CINT2000/164.gzip/Makefile ;;
23798     test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/175.vpr/Makefile test/Programs/External/SPEC/CINT2000/175.vpr/Makefile ;;
23799     test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/176.gcc/Makefile test/Programs/External/SPEC/CINT2000/176.gcc/Makefile ;;
23800     test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/181.mcf/Makefile test/Programs/External/SPEC/CINT2000/181.mcf/Makefile ;;
23801     test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/186.crafty/Makefile test/Programs/External/SPEC/CINT2000/186.crafty/Makefile ;;
23802     test/Programs/External/SPEC/CINT2000/197.parser/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/197.parser/Makefile test/Programs/External/SPEC/CINT2000/197.parser/Makefile ;;
23803     test/Programs/External/SPEC/CINT2000/254.gap/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/254.gap/Makefile test/Programs/External/SPEC/CINT2000/254.gap/Makefile ;;
23804     test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/255.vortex/Makefile test/Programs/External/SPEC/CINT2000/255.vortex/Makefile ;;
23805     test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile test/Programs/External/SPEC/CINT2000/256.bzip2/Makefile ;;
23806     test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/CINT2000/300.twolf/Makefile test/Programs/External/SPEC/CINT2000/300.twolf/Makefile ;;
23807     test/Programs/LLVMSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/LLVMSource/Makefile test/Programs/LLVMSource/Makefile ;;
23808     test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
23809     test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
23810     test/Programs/MultiSource/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Burg/Makefile test/Programs/MultiSource/Burg/Makefile ;;
23811     test/Programs/MultiSource/Fhourstones/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Fhourstones/Makefile test/Programs/MultiSource/Fhourstones/Makefile ;;
23812     test/Programs/MultiSource/McCat/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/Makefile test/Programs/MultiSource/McCat/Makefile ;;
23813     test/Programs/MultiSource/McCat/01-qbsort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/01-qbsort/Makefile test/Programs/MultiSource/McCat/01-qbsort/Makefile ;;
23814     test/Programs/MultiSource/McCat/03-testtrie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/03-testtrie/Makefile test/Programs/MultiSource/McCat/03-testtrie/Makefile ;;
23815     test/Programs/MultiSource/McCat/04-bisect/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/04-bisect/Makefile test/Programs/MultiSource/McCat/04-bisect/Makefile ;;
23816     test/Programs/MultiSource/McCat/05-eks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/05-eks/Makefile test/Programs/MultiSource/McCat/05-eks/Makefile ;;
23817     test/Programs/MultiSource/McCat/08-main/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/08-main/Makefile test/Programs/MultiSource/McCat/08-main/Makefile ;;
23818     test/Programs/MultiSource/McCat/09-vor/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/09-vor/Makefile test/Programs/MultiSource/McCat/09-vor/Makefile ;;
23819     test/Programs/MultiSource/McCat/12-IOtest/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/12-IOtest/Makefile test/Programs/MultiSource/McCat/12-IOtest/Makefile ;;
23820     test/Programs/MultiSource/McCat/15-trie/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/15-trie/Makefile test/Programs/MultiSource/McCat/15-trie/Makefile ;;
23821     test/Programs/MultiSource/McCat/17-bintr/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/17-bintr/Makefile test/Programs/MultiSource/McCat/17-bintr/Makefile ;;
23822     test/Programs/MultiSource/McCat/18-imp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/McCat/18-imp/Makefile test/Programs/MultiSource/McCat/18-imp/Makefile ;;
23823     test/Programs/MultiSource/Olden/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/Makefile test/Programs/MultiSource/Olden/Makefile ;;
23824     test/Programs/MultiSource/Olden/bh/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bh/Makefile test/Programs/MultiSource/Olden/bh/Makefile ;;
23825     test/Programs/MultiSource/Olden/bisort/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/bisort/Makefile test/Programs/MultiSource/Olden/bisort/Makefile ;;
23826     test/Programs/MultiSource/Olden/em3d/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/em3d/Makefile test/Programs/MultiSource/Olden/em3d/Makefile ;;
23827     test/Programs/MultiSource/Olden/health/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/health/Makefile test/Programs/MultiSource/Olden/health/Makefile ;;
23828     test/Programs/MultiSource/Olden/mst/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/mst/Makefile test/Programs/MultiSource/Olden/mst/Makefile ;;
23829     test/Programs/MultiSource/Olden/perimeter/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/perimeter/Makefile test/Programs/MultiSource/Olden/perimeter/Makefile ;;
23830     test/Programs/MultiSource/Olden/power/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/power/Makefile test/Programs/MultiSource/Olden/power/Makefile ;;
23831     test/Programs/MultiSource/Olden/treeadd/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/treeadd/Makefile test/Programs/MultiSource/Olden/treeadd/Makefile ;;
23832     test/Programs/MultiSource/Olden/tsp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/tsp/Makefile test/Programs/MultiSource/Olden/tsp/Makefile ;;
23833     test/Programs/MultiSource/Olden/voronoi/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Olden/voronoi/Makefile test/Programs/MultiSource/Olden/voronoi/Makefile ;;
23834     test/Programs/MultiSource/OptimizerEval/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/OptimizerEval/Makefile test/Programs/MultiSource/OptimizerEval/Makefile ;;
23835     test/Programs/MultiSource/Ptrdist/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/Makefile test/Programs/MultiSource/Ptrdist/Makefile ;;
23836     test/Programs/MultiSource/Ptrdist/anagram/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/anagram/Makefile test/Programs/MultiSource/Ptrdist/anagram/Makefile ;;
23837     test/Programs/MultiSource/Ptrdist/bc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/bc/Makefile test/Programs/MultiSource/Ptrdist/bc/Makefile ;;
23838     test/Programs/MultiSource/Ptrdist/ft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ft/Makefile test/Programs/MultiSource/Ptrdist/ft/Makefile ;;
23839     test/Programs/MultiSource/Ptrdist/ks/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/ks/Makefile test/Programs/MultiSource/Ptrdist/ks/Makefile ;;
23840     test/Programs/MultiSource/Ptrdist/yacr2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Ptrdist/yacr2/Makefile test/Programs/MultiSource/Ptrdist/yacr2/Makefile ;;
23841     test/Programs/MultiSource/aha/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/aha/Makefile test/Programs/MultiSource/aha/Makefile ;;
23842     test/Programs/MultiSource/llubenchmark/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/llubenchmark/Makefile test/Programs/MultiSource/llubenchmark/Makefile ;;
23843     test/Programs/MultiSource/sgefa/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sgefa/Makefile test/Programs/MultiSource/sgefa/Makefile ;;
23844     test/Programs/MultiSource/sim/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/sim/Makefile test/Programs/MultiSource/sim/Makefile ;;
23845     test/Programs/NoSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Makefile test/Programs/NoSource/Makefile ;;
23846     test/Programs/NoSource/Flex/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Flex/Makefile test/Programs/NoSource/Flex/Makefile ;;
23847     test/Programs/NoSource/Larn/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Larn/Makefile test/Programs/NoSource/Larn/Makefile ;;
23848     test/Programs/NoSource/Moria-5.5.2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Moria-5.5.2/Makefile test/Programs/NoSource/Moria-5.5.2/Makefile ;;
23849     test/Programs/NoSource/Povray31/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/Povray31/Makefile test/Programs/NoSource/Povray31/Makefile ;;
23850     test/Programs/NoSource/m4/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/NoSource/m4/Makefile test/Programs/NoSource/m4/Makefile ;;
23851     test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
23852     test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
23853     test/Programs/SingleSource/CustomChecked/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/CustomChecked/Makefile test/Programs/SingleSource/CustomChecked/Makefile ;;
23854     test/Programs/SingleSource/Shootout/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Shootout/Makefile test/Programs/SingleSource/Shootout/Makefile ;;
23855     test/Programs/SingleSource/Stanford/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Stanford/Makefile test/Programs/SingleSource/Stanford/Makefile ;;
23856     test/Programs/SingleSource/UnitTests/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/Makefile test/Programs/SingleSource/UnitTests/Makefile ;;
23857     tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
23858     tools/analyze/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/analyze/Makefile tools/analyze/Makefile ;;
23859     tools/as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/as/Makefile tools/as/Makefile ;;
23860     tools/bugpoint/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/bugpoint/Makefile tools/bugpoint/Makefile ;;
23861     tools/dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/dis/Makefile tools/dis/Makefile ;;
23862     tools/extract/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/extract/Makefile tools/extract/Makefile ;;
23863     tools/gccas/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccas/Makefile tools/gccas/Makefile ;;
23864     tools/gccld/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/gccld/Makefile tools/gccld/Makefile ;;
23865     tools/link/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/link/Makefile tools/link/Makefile ;;
23866     tools/llc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llc/Makefile tools/llc/Makefile ;;
23867     tools/lli/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/lli/Makefile tools/lli/Makefile ;;
23868     tools/opt/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/opt/Makefile tools/opt/Makefile ;;
23869     tools/llee/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llee/Makefile tools/llee/Makefile ;;
23870     tools/llvm-as/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-as/Makefile tools/llvm-as/Makefile ;;
23871     tools/llvm-dis/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/llvm-dis/Makefile tools/llvm-dis/Makefile ;;
23872     utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
23873     utils/Burg/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Makefile utils/Burg/Makefile ;;
23874     utils/Burg/Doc/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Burg/Doc/Makefile utils/Burg/Doc/Makefile ;;
23875     utils/TableGen/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/TableGen/Makefile utils/TableGen/Makefile ;;
23876     www/docs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/www/docs/Makefile www/docs/Makefile ;;
23877     projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
23878     projects/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile projects/sample/Makefile ;;
23879     projects/sample/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.common projects/sample/Makefile.common ;;
23880     projects/sample/Makefile.config ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/Makefile.config projects/sample/Makefile.config ;;
23881     projects/sample/lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/Makefile projects/sample/lib/Makefile ;;
23882     projects/sample/lib/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/lib/sample/Makefile projects/sample/lib/sample/Makefile ;;
23883     projects/sample/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/Makefile projects/sample/tools/Makefile ;;
23884     projects/sample/tools/sample/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/sample/tools/sample/Makefile projects/sample/tools/sample/Makefile ;;
23885     projects/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile projects/ModuleMaker/Makefile ;;
23886     projects/ModuleMaker/Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/Makefile.common projects/ModuleMaker/Makefile.common ;;
23887     projects/ModuleMaker/tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/Makefile projects/ModuleMaker/tools/Makefile ;;
23888     projects/ModuleMaker/tools/ModuleMaker/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/ModuleMaker/tools/ModuleMaker/Makefile projects/ModuleMaker/tools/ModuleMaker/Makefile ;;
23889   esac
23890 done
23891 _ACEOF
23892
23893 cat >>$CONFIG_STATUS <<\_ACEOF
23894
23895 { (exit 0); exit 0; }
23896 _ACEOF
23897 chmod +x $CONFIG_STATUS
23898 ac_clean_files=$ac_clean_files_save
23899
23900
23901 # configure is writing to config.log, and then calls config.status.
23902 # config.status does its own redirection, appending to config.log.
23903 # Unfortunately, on DOS this fails, as config.log is still kept open
23904 # by configure, so config.status won't be able to write to it; its
23905 # output is simply discarded.  So we exec the FD to /dev/null,
23906 # effectively closing config.log, so it can be properly (re)opened and
23907 # appended to by config.status.  When coming back to configure, we
23908 # need to make the FD available again.
23909 if test "$no_create" != yes; then
23910   ac_cs_success=:
23911   exec 5>/dev/null
23912   $SHELL $CONFIG_STATUS || ac_cs_success=false
23913   exec 5>>config.log
23914   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23915   # would make configure fail if this is the last instruction.
23916   $ac_cs_success || { (exit 1); exit 1; }
23917 fi
23918