OSDN Git Service

2008-04-18 Paolo Bonzini <bonzini@gnu.org>
[pf3gnuchains/gcc-fork.git] / libssp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libssp 1.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='libssp'
418 PACKAGE_TARNAME='libssp'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='libssp 1.0'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="ssp.c"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CPP CPPFLAGS LIBSSP_USE_SYMVER_TRUE LIBSSP_USE_SYMVER_FALSE EGREP ssp_have_usable_vsnprintf LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO enable_shared enable_static toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505   # If the previous option needs an argument, assign it.
506   if test -n "$ac_prev"; then
507     eval "$ac_prev=\$ac_option"
508     ac_prev=
509     continue
510   fi
511
512   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514   # Accept the important Cygnus configure options, so we can diagnose typos.
515
516   case $ac_option in
517
518   -bindir | --bindir | --bindi | --bind | --bin | --bi)
519     ac_prev=bindir ;;
520   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521     bindir=$ac_optarg ;;
522
523   -build | --build | --buil | --bui | --bu)
524     ac_prev=build_alias ;;
525   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526     build_alias=$ac_optarg ;;
527
528   -cache-file | --cache-file | --cache-fil | --cache-fi \
529   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530     ac_prev=cache_file ;;
531   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533     cache_file=$ac_optarg ;;
534
535   --config-cache | -C)
536     cache_file=config.cache ;;
537
538   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539     ac_prev=datadir ;;
540   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541   | --da=*)
542     datadir=$ac_optarg ;;
543
544   -disable-* | --disable-*)
545     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546     # Reject names that are not valid shell variable names.
547     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549    { (exit 1); exit 1; }; }
550     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551     eval "enable_$ac_feature=no" ;;
552
553   -enable-* | --enable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "enable_$ac_feature='$ac_optarg'" ;;
565
566   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568   | --exec | --exe | --ex)
569     ac_prev=exec_prefix ;;
570   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572   | --exec=* | --exe=* | --ex=*)
573     exec_prefix=$ac_optarg ;;
574
575   -gas | --gas | --ga | --g)
576     # Obsolete; use --with-gas.
577     with_gas=yes ;;
578
579   -help | --help | --hel | --he | -h)
580     ac_init_help=long ;;
581   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582     ac_init_help=recursive ;;
583   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584     ac_init_help=short ;;
585
586   -host | --host | --hos | --ho)
587     ac_prev=host_alias ;;
588   -host=* | --host=* | --hos=* | --ho=*)
589     host_alias=$ac_optarg ;;
590
591   -includedir | --includedir | --includedi | --included | --include \
592   | --includ | --inclu | --incl | --inc)
593     ac_prev=includedir ;;
594   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595   | --includ=* | --inclu=* | --incl=* | --inc=*)
596     includedir=$ac_optarg ;;
597
598   -infodir | --infodir | --infodi | --infod | --info | --inf)
599     ac_prev=infodir ;;
600   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601     infodir=$ac_optarg ;;
602
603   -libdir | --libdir | --libdi | --libd)
604     ac_prev=libdir ;;
605   -libdir=* | --libdir=* | --libdi=* | --libd=*)
606     libdir=$ac_optarg ;;
607
608   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609   | --libexe | --libex | --libe)
610     ac_prev=libexecdir ;;
611   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612   | --libexe=* | --libex=* | --libe=*)
613     libexecdir=$ac_optarg ;;
614
615   -localstatedir | --localstatedir | --localstatedi | --localstated \
616   | --localstate | --localstat | --localsta | --localst \
617   | --locals | --local | --loca | --loc | --lo)
618     ac_prev=localstatedir ;;
619   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622     localstatedir=$ac_optarg ;;
623
624   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625     ac_prev=mandir ;;
626   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627     mandir=$ac_optarg ;;
628
629   -nfp | --nfp | --nf)
630     # Obsolete; use --without-fp.
631     with_fp=no ;;
632
633   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634   | --no-cr | --no-c | -n)
635     no_create=yes ;;
636
637   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639     no_recursion=yes ;;
640
641   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643   | --oldin | --oldi | --old | --ol | --o)
644     ac_prev=oldincludedir ;;
645   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648     oldincludedir=$ac_optarg ;;
649
650   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651     ac_prev=prefix ;;
652   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653     prefix=$ac_optarg ;;
654
655   -program-prefix | --program-prefix | --program-prefi | --program-pref \
656   | --program-pre | --program-pr | --program-p)
657     ac_prev=program_prefix ;;
658   -program-prefix=* | --program-prefix=* | --program-prefi=* \
659   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660     program_prefix=$ac_optarg ;;
661
662   -program-suffix | --program-suffix | --program-suffi | --program-suff \
663   | --program-suf | --program-su | --program-s)
664     ac_prev=program_suffix ;;
665   -program-suffix=* | --program-suffix=* | --program-suffi=* \
666   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667     program_suffix=$ac_optarg ;;
668
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     ac_prev=program_transform_name ;;
677   -program-transform-name=* | --program-transform-name=* \
678   | --program-transform-nam=* | --program-transform-na=* \
679   | --program-transform-n=* | --program-transform-=* \
680   | --program-transform=* | --program-transfor=* \
681   | --program-transfo=* | --program-transf=* \
682   | --program-trans=* | --program-tran=* \
683   | --progr-tra=* | --program-tr=* | --program-t=*)
684     program_transform_name=$ac_optarg ;;
685
686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687   | -silent | --silent | --silen | --sile | --sil)
688     silent=yes ;;
689
690   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691     ac_prev=sbindir ;;
692   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693   | --sbi=* | --sb=*)
694     sbindir=$ac_optarg ;;
695
696   -sharedstatedir | --sharedstatedir | --sharedstatedi \
697   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698   | --sharedst | --shareds | --shared | --share | --shar \
699   | --sha | --sh)
700     ac_prev=sharedstatedir ;;
701   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704   | --sha=* | --sh=*)
705     sharedstatedir=$ac_optarg ;;
706
707   -site | --site | --sit)
708     ac_prev=site ;;
709   -site=* | --site=* | --sit=*)
710     site=$ac_optarg ;;
711
712   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713     ac_prev=srcdir ;;
714   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715     srcdir=$ac_optarg ;;
716
717   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718   | --syscon | --sysco | --sysc | --sys | --sy)
719     ac_prev=sysconfdir ;;
720   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722     sysconfdir=$ac_optarg ;;
723
724   -target | --target | --targe | --targ | --tar | --ta | --t)
725     ac_prev=target_alias ;;
726   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727     target_alias=$ac_optarg ;;
728
729   -v | -verbose | --verbose | --verbos | --verbo | --verb)
730     verbose=yes ;;
731
732   -version | --version | --versio | --versi | --vers | -V)
733     ac_init_version=: ;;
734
735   -with-* | --with-*)
736     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737     # Reject names that are not valid shell variable names.
738     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739       { echo "$as_me: error: invalid package name: $ac_package" >&2
740    { (exit 1); exit 1; }; }
741     ac_package=`echo $ac_package| sed 's/-/_/g'`
742     case $ac_option in
743       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744       *) ac_optarg=yes ;;
745     esac
746     eval "with_$ac_package='$ac_optarg'" ;;
747
748   -without-* | --without-*)
749     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750     # Reject names that are not valid shell variable names.
751     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752       { echo "$as_me: error: invalid package name: $ac_package" >&2
753    { (exit 1); exit 1; }; }
754     ac_package=`echo $ac_package | sed 's/-/_/g'`
755     eval "with_$ac_package=no" ;;
756
757   --x)
758     # Obsolete; use --with-x.
759     with_x=yes ;;
760
761   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762   | --x-incl | --x-inc | --x-in | --x-i)
763     ac_prev=x_includes ;;
764   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766     x_includes=$ac_optarg ;;
767
768   -x-libraries | --x-libraries | --x-librarie | --x-librari \
769   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770     ac_prev=x_libraries ;;
771   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773     x_libraries=$ac_optarg ;;
774
775   -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777    { (exit 1); exit 1; }; }
778     ;;
779
780   *=*)
781     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782     # Reject names that are not valid shell variable names.
783     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785    { (exit 1); exit 1; }; }
786     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787     eval "$ac_envvar='$ac_optarg'"
788     export $ac_envvar ;;
789
790   *)
791     # FIXME: should be removed in autoconf 3.0.
792     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803   { echo "$as_me: error: missing argument to $ac_option" >&2
804    { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810   eval ac_val=$`echo $ac_var`
811   case $ac_val in
812     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814    { (exit 1); exit 1; }; };;
815   esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820               localstatedir libdir includedir oldincludedir infodir mandir
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839   if test "x$build_alias" = x; then
840     cross_compiling=maybe
841     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842     If a cross compiler is detected then cross compile mode will be used." >&2
843   elif test "x$build_alias" != "x$host_alias"; then
844     cross_compiling=yes
845   fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856   ac_srcdir_defaulted=yes
857   # Try the directory containing this script, then its parent.
858   ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860          X"$0" : 'X\(//\)[^/]' \| \
861          X"$0" : 'X\(//\)$' \| \
862          X"$0" : 'X\(/\)' \| \
863          .     : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867           /^X\(\/\/\)$/{ s//\1/; q; }
868           /^X\(\/\).*/{ s//\1/; q; }
869           s/.*/./; q'`
870   srcdir=$ac_confdir
871   if test ! -r $srcdir/$ac_unique_file; then
872     srcdir=..
873   fi
874 else
875   ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878   if test "$ac_srcdir_defaulted" = yes; then
879     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880    { (exit 1); exit 1; }; }
881   else
882     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883    { (exit 1); exit 1; }; }
884   fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888    { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CPP_set=${CPP+set}
903 ac_env_CPP_value=$CPP
904 ac_cv_env_CPP_set=${CPP+set}
905 ac_cv_env_CPP_value=$CPP
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910
911 #
912 # Report the --help message.
913 #
914 if test "$ac_init_help" = "long"; then
915   # Omit some internal or obsolete options to make the list less imposing.
916   # This message is too long to be a string in the A/UX 3.1 sh.
917   cat <<_ACEOF
918 \`configure' configures libssp 1.0 to adapt to many kinds of systems.
919
920 Usage: $0 [OPTION]... [VAR=VALUE]...
921
922 To assign environment variables (e.g., CC, CFLAGS...), specify them as
923 VAR=VALUE.  See below for descriptions of some of the useful variables.
924
925 Defaults for the options are specified in brackets.
926
927 Configuration:
928   -h, --help              display this help and exit
929       --help=short        display options specific to this package
930       --help=recursive    display the short help of all the included packages
931   -V, --version           display version information and exit
932   -q, --quiet, --silent   do not print \`checking...' messages
933       --cache-file=FILE   cache test results in FILE [disabled]
934   -C, --config-cache      alias for \`--cache-file=config.cache'
935   -n, --no-create         do not create output files
936       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
937
938 _ACEOF
939
940   cat <<_ACEOF
941 Installation directories:
942   --prefix=PREFIX         install architecture-independent files in PREFIX
943                           [$ac_default_prefix]
944   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
945                           [PREFIX]
946
947 By default, \`make install' will install all the files in
948 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
949 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
950 for instance \`--prefix=\$HOME'.
951
952 For better control, use the options below.
953
954 Fine tuning of the installation directories:
955   --bindir=DIR           user executables [EPREFIX/bin]
956   --sbindir=DIR          system admin executables [EPREFIX/sbin]
957   --libexecdir=DIR       program executables [EPREFIX/libexec]
958   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
959   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
960   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
961   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
962   --libdir=DIR           object code libraries [EPREFIX/lib]
963   --includedir=DIR       C header files [PREFIX/include]
964   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
965   --infodir=DIR          info documentation [PREFIX/info]
966   --mandir=DIR           man documentation [PREFIX/man]
967 _ACEOF
968
969   cat <<\_ACEOF
970
971 Program names:
972   --program-prefix=PREFIX            prepend PREFIX to installed program names
973   --program-suffix=SUFFIX            append SUFFIX to installed program names
974   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
975
976 System types:
977   --build=BUILD     configure for building on BUILD [guessed]
978   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
979   --target=TARGET   configure for building compilers for TARGET [HOST]
980 _ACEOF
981 fi
982
983 if test -n "$ac_init_help"; then
984   case $ac_init_help in
985      short | recursive ) echo "Configuration of libssp 1.0:";;
986    esac
987   cat <<\_ACEOF
988
989 Optional Features:
990   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
991   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
992   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
993   --enable-maintainer-mode  enable make rules and dependencies not useful
994                           (and sometimes confusing) to the casual installer
995   --enable-multilib       build many library versions (default)
996   --disable-dependency-tracking  speeds up one-time build
997   --enable-dependency-tracking   do not reject slow dependency extractors
998   --enable-shared[=PKGS]
999                           build shared libraries [default=yes]
1000   --enable-static[=PKGS]
1001                           build static libraries [default=yes]
1002   --enable-fast-install[=PKGS]
1003                           optimize for fast installation [default=yes]
1004   --disable-libtool-lock  avoid locking (might break parallel builds)
1005
1006 Optional Packages:
1007   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1008   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1009   --with-pic              try to use only PIC/non-PIC objects [default=use
1010                           both]
1011   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1012
1013 Some influential environment variables:
1014   CC          C compiler command
1015   CFLAGS      C compiler flags
1016   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1017               nonstandard directory <lib dir>
1018   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1019               headers in a nonstandard directory <include dir>
1020   CPP         C preprocessor
1021
1022 Use these variables to override the choices made by `configure' or to help
1023 it to find libraries and programs with nonstandard names/locations.
1024
1025 _ACEOF
1026 fi
1027
1028 if test "$ac_init_help" = "recursive"; then
1029   # If there are subdirs, report their specific --help.
1030   ac_popdir=`pwd`
1031   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1032     test -d $ac_dir || continue
1033     ac_builddir=.
1034
1035 if test "$ac_dir" != .; then
1036   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1037   # A "../" for each directory in $ac_dir_suffix.
1038   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1039 else
1040   ac_dir_suffix= ac_top_builddir=
1041 fi
1042
1043 case $srcdir in
1044   .)  # No --srcdir option.  We are building in place.
1045     ac_srcdir=.
1046     if test -z "$ac_top_builddir"; then
1047        ac_top_srcdir=.
1048     else
1049        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1050     fi ;;
1051   [\\/]* | ?:[\\/]* )  # Absolute path.
1052     ac_srcdir=$srcdir$ac_dir_suffix;
1053     ac_top_srcdir=$srcdir ;;
1054   *) # Relative path.
1055     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1056     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1057 esac
1058
1059 # Do not use `cd foo && pwd` to compute absolute paths, because
1060 # the directories may not exist.
1061 case `pwd` in
1062 .) ac_abs_builddir="$ac_dir";;
1063 *)
1064   case "$ac_dir" in
1065   .) ac_abs_builddir=`pwd`;;
1066   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1067   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1068   esac;;
1069 esac
1070 case $ac_abs_builddir in
1071 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1072 *)
1073   case ${ac_top_builddir}. in
1074   .) ac_abs_top_builddir=$ac_abs_builddir;;
1075   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1076   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1077   esac;;
1078 esac
1079 case $ac_abs_builddir in
1080 .) ac_abs_srcdir=$ac_srcdir;;
1081 *)
1082   case $ac_srcdir in
1083   .) ac_abs_srcdir=$ac_abs_builddir;;
1084   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1085   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1086   esac;;
1087 esac
1088 case $ac_abs_builddir in
1089 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1090 *)
1091   case $ac_top_srcdir in
1092   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1093   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1094   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1095   esac;;
1096 esac
1097
1098     cd $ac_dir
1099     # Check for guested configure; otherwise get Cygnus style configure.
1100     if test -f $ac_srcdir/configure.gnu; then
1101       echo
1102       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1103     elif test -f $ac_srcdir/configure; then
1104       echo
1105       $SHELL $ac_srcdir/configure  --help=recursive
1106     elif test -f $ac_srcdir/configure.ac ||
1107            test -f $ac_srcdir/configure.in; then
1108       echo
1109       $ac_configure --help
1110     else
1111       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1112     fi
1113     cd $ac_popdir
1114   done
1115 fi
1116
1117 test -n "$ac_init_help" && exit 0
1118 if $ac_init_version; then
1119   cat <<\_ACEOF
1120 libssp configure 1.0
1121 generated by GNU Autoconf 2.59
1122
1123 Copyright (C) 2003 Free Software Foundation, Inc.
1124 This configure script is free software; the Free Software Foundation
1125 gives unlimited permission to copy, distribute and modify it.
1126 _ACEOF
1127   exit 0
1128 fi
1129 exec 5>config.log
1130 cat >&5 <<_ACEOF
1131 This file contains any messages produced by compilers while
1132 running configure, to aid debugging if configure makes a mistake.
1133
1134 It was created by libssp $as_me 1.0, which was
1135 generated by GNU Autoconf 2.59.  Invocation command line was
1136
1137   $ $0 $@
1138
1139 _ACEOF
1140 {
1141 cat <<_ASUNAME
1142 ## --------- ##
1143 ## Platform. ##
1144 ## --------- ##
1145
1146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1151
1152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1153 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1154
1155 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1156 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1158 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1159 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1160 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1161 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1162
1163 _ASUNAME
1164
1165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1166 for as_dir in $PATH
1167 do
1168   IFS=$as_save_IFS
1169   test -z "$as_dir" && as_dir=.
1170   echo "PATH: $as_dir"
1171 done
1172
1173 } >&5
1174
1175 cat >&5 <<_ACEOF
1176
1177
1178 ## ----------- ##
1179 ## Core tests. ##
1180 ## ----------- ##
1181
1182 _ACEOF
1183
1184
1185 # Keep a trace of the command line.
1186 # Strip out --no-create and --no-recursion so they do not pile up.
1187 # Strip out --silent because we don't want to record it for future runs.
1188 # Also quote any args containing shell meta-characters.
1189 # Make two passes to allow for proper duplicate-argument suppression.
1190 ac_configure_args=
1191 ac_configure_args0=
1192 ac_configure_args1=
1193 ac_sep=
1194 ac_must_keep_next=false
1195 for ac_pass in 1 2
1196 do
1197   for ac_arg
1198   do
1199     case $ac_arg in
1200     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1201     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202     | -silent | --silent | --silen | --sile | --sil)
1203       continue ;;
1204     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1205       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1206     esac
1207     case $ac_pass in
1208     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1209     2)
1210       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1211       if test $ac_must_keep_next = true; then
1212         ac_must_keep_next=false # Got value, back to normal.
1213       else
1214         case $ac_arg in
1215           *=* | --config-cache | -C | -disable-* | --disable-* \
1216           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1217           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1218           | -with-* | --with-* | -without-* | --without-* | --x)
1219             case "$ac_configure_args0 " in
1220               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1221             esac
1222             ;;
1223           -* ) ac_must_keep_next=true ;;
1224         esac
1225       fi
1226       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1227       # Get rid of the leading space.
1228       ac_sep=" "
1229       ;;
1230     esac
1231   done
1232 done
1233 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1234 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1235
1236 # When interrupted or exit'd, cleanup temporary files, and complete
1237 # config.log.  We remove comments because anyway the quotes in there
1238 # would cause problems or look ugly.
1239 # WARNING: Be sure not to use single quotes in there, as some shells,
1240 # such as our DU 5.0 friend, will then `close' the trap.
1241 trap 'exit_status=$?
1242   # Save into config.log some information that might help in debugging.
1243   {
1244     echo
1245
1246     cat <<\_ASBOX
1247 ## ---------------- ##
1248 ## Cache variables. ##
1249 ## ---------------- ##
1250 _ASBOX
1251     echo
1252     # The following way of writing the cache mishandles newlines in values,
1253 {
1254   (set) 2>&1 |
1255     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1256     *ac_space=\ *)
1257       sed -n \
1258         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1259           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1260       ;;
1261     *)
1262       sed -n \
1263         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1264       ;;
1265     esac;
1266 }
1267     echo
1268
1269     cat <<\_ASBOX
1270 ## ----------------- ##
1271 ## Output variables. ##
1272 ## ----------------- ##
1273 _ASBOX
1274     echo
1275     for ac_var in $ac_subst_vars
1276     do
1277       eval ac_val=$`echo $ac_var`
1278       echo "$ac_var='"'"'$ac_val'"'"'"
1279     done | sort
1280     echo
1281
1282     if test -n "$ac_subst_files"; then
1283       cat <<\_ASBOX
1284 ## ------------- ##
1285 ## Output files. ##
1286 ## ------------- ##
1287 _ASBOX
1288       echo
1289       for ac_var in $ac_subst_files
1290       do
1291         eval ac_val=$`echo $ac_var`
1292         echo "$ac_var='"'"'$ac_val'"'"'"
1293       done | sort
1294       echo
1295     fi
1296
1297     if test -s confdefs.h; then
1298       cat <<\_ASBOX
1299 ## ----------- ##
1300 ## confdefs.h. ##
1301 ## ----------- ##
1302 _ASBOX
1303       echo
1304       sed "/^$/d" confdefs.h | sort
1305       echo
1306     fi
1307     test "$ac_signal" != 0 &&
1308       echo "$as_me: caught signal $ac_signal"
1309     echo "$as_me: exit $exit_status"
1310   } >&5
1311   rm -f core *.core &&
1312   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1313     exit $exit_status
1314      ' 0
1315 for ac_signal in 1 2 13 15; do
1316   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1317 done
1318 ac_signal=0
1319
1320 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1321 rm -rf conftest* confdefs.h
1322 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1323 echo >confdefs.h
1324
1325 # Predefined preprocessor variables.
1326
1327 cat >>confdefs.h <<_ACEOF
1328 #define PACKAGE_NAME "$PACKAGE_NAME"
1329 _ACEOF
1330
1331
1332 cat >>confdefs.h <<_ACEOF
1333 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1334 _ACEOF
1335
1336
1337 cat >>confdefs.h <<_ACEOF
1338 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1339 _ACEOF
1340
1341
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_STRING "$PACKAGE_STRING"
1344 _ACEOF
1345
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1349 _ACEOF
1350
1351
1352 # Let the site file select an alternate cache file if it wants to.
1353 # Prefer explicitly selected file to automatically selected ones.
1354 if test -z "$CONFIG_SITE"; then
1355   if test "x$prefix" != xNONE; then
1356     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1357   else
1358     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1359   fi
1360 fi
1361 for ac_site_file in $CONFIG_SITE; do
1362   if test -r "$ac_site_file"; then
1363     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1364 echo "$as_me: loading site script $ac_site_file" >&6;}
1365     sed 's/^/| /' "$ac_site_file" >&5
1366     . "$ac_site_file"
1367   fi
1368 done
1369
1370 if test -r "$cache_file"; then
1371   # Some versions of bash will fail to source /dev/null (special
1372   # files actually), so we avoid doing that.
1373   if test -f "$cache_file"; then
1374     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1375 echo "$as_me: loading cache $cache_file" >&6;}
1376     case $cache_file in
1377       [\\/]* | ?:[\\/]* ) . $cache_file;;
1378       *)                      . ./$cache_file;;
1379     esac
1380   fi
1381 else
1382   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1383 echo "$as_me: creating cache $cache_file" >&6;}
1384   >$cache_file
1385 fi
1386
1387 # Check that the precious variables saved in the cache have kept the same
1388 # value.
1389 ac_cache_corrupted=false
1390 for ac_var in `(set) 2>&1 |
1391                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1392   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1393   eval ac_new_set=\$ac_env_${ac_var}_set
1394   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1395   eval ac_new_val="\$ac_env_${ac_var}_value"
1396   case $ac_old_set,$ac_new_set in
1397     set,)
1398       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1399 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1400       ac_cache_corrupted=: ;;
1401     ,set)
1402       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1403 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1404       ac_cache_corrupted=: ;;
1405     ,);;
1406     *)
1407       if test "x$ac_old_val" != "x$ac_new_val"; then
1408         # differences in whitespace do not lead to failure.
1409         ac_old_val_w=`echo x $ac_old_val`
1410         ac_new_val_w=`echo x $ac_new_val`
1411         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1412           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1413 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1414           ac_cache_corrupted=:
1415         else
1416           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1417 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1418           eval $ac_var=\$ac_old_val
1419         fi
1420         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1421 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1422         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1423 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1424       fi;;
1425   esac
1426   # Pass precious variables to config.status.
1427   if test "$ac_new_set" = set; then
1428     case $ac_new_val in
1429     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1431     *) ac_arg=$ac_var=$ac_new_val ;;
1432     esac
1433     case " $ac_configure_args " in
1434       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1435       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436     esac
1437   fi
1438 done
1439 if $ac_cache_corrupted; then
1440   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1441 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1442   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1443 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1444    { (exit 1); exit 1; }; }
1445 fi
1446
1447 ac_ext=c
1448 ac_cpp='$CPP $CPPFLAGS'
1449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480 ac_aux_dir=
1481 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1482   if test -f $ac_dir/install-sh; then
1483     ac_aux_dir=$ac_dir
1484     ac_install_sh="$ac_aux_dir/install-sh -c"
1485     break
1486   elif test -f $ac_dir/install.sh; then
1487     ac_aux_dir=$ac_dir
1488     ac_install_sh="$ac_aux_dir/install.sh -c"
1489     break
1490   elif test -f $ac_dir/shtool; then
1491     ac_aux_dir=$ac_dir
1492     ac_install_sh="$ac_aux_dir/shtool install -c"
1493     break
1494   fi
1495 done
1496 if test -z "$ac_aux_dir"; then
1497   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1498 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1499    { (exit 1); exit 1; }; }
1500 fi
1501 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1502 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1503 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1504
1505 # Make sure we can run config.sub.
1506 $ac_config_sub sun4 >/dev/null 2>&1 ||
1507   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1508 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1509    { (exit 1); exit 1; }; }
1510
1511 echo "$as_me:$LINENO: checking build system type" >&5
1512 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1513 if test "${ac_cv_build+set}" = set; then
1514   echo $ECHO_N "(cached) $ECHO_C" >&6
1515 else
1516   ac_cv_build_alias=$build_alias
1517 test -z "$ac_cv_build_alias" &&
1518   ac_cv_build_alias=`$ac_config_guess`
1519 test -z "$ac_cv_build_alias" &&
1520   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1521 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1522    { (exit 1); exit 1; }; }
1523 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1524   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1525 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1526    { (exit 1); exit 1; }; }
1527
1528 fi
1529 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1530 echo "${ECHO_T}$ac_cv_build" >&6
1531 build=$ac_cv_build
1532 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1533 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1534 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1535
1536
1537 echo "$as_me:$LINENO: checking host system type" >&5
1538 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1539 if test "${ac_cv_host+set}" = set; then
1540   echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542   ac_cv_host_alias=$host_alias
1543 test -z "$ac_cv_host_alias" &&
1544   ac_cv_host_alias=$ac_cv_build_alias
1545 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1546   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1547 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1548    { (exit 1); exit 1; }; }
1549
1550 fi
1551 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1552 echo "${ECHO_T}$ac_cv_host" >&6
1553 host=$ac_cv_host
1554 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559 echo "$as_me:$LINENO: checking target system type" >&5
1560 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1561 if test "${ac_cv_target+set}" = set; then
1562   echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564   ac_cv_target_alias=$target_alias
1565 test "x$ac_cv_target_alias" = "x" &&
1566   ac_cv_target_alias=$ac_cv_host_alias
1567 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1568   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1569 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1570    { (exit 1); exit 1; }; }
1571
1572 fi
1573 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1574 echo "${ECHO_T}$ac_cv_target" >&6
1575 target=$ac_cv_target
1576 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581 # The aliases save the names the user supplied, while $host etc.
1582 # will get canonicalized.
1583 test -n "$target_alias" &&
1584   test "$program_prefix$program_suffix$program_transform_name" = \
1585     NONENONEs,x,x, &&
1586   program_prefix=${target_alias}-
1587  case ${build_alias} in
1588   "") build_noncanonical=${build} ;;
1589   *) build_noncanonical=${build_alias} ;;
1590 esac
1591
1592  case ${host_alias} in
1593   "") host_noncanonical=${build_noncanonical} ;;
1594   *) host_noncanonical=${host_alias} ;;
1595 esac
1596
1597  case ${target_alias} in
1598   "") target_noncanonical=${host_noncanonical} ;;
1599   *) target_noncanonical=${target_alias} ;;
1600 esac
1601
1602
1603
1604
1605 am__api_version="1.9"
1606 # Find a good install program.  We prefer a C program (faster),
1607 # so one script is as good as another.  But avoid the broken or
1608 # incompatible versions:
1609 # SysV /etc/install, /usr/sbin/install
1610 # SunOS /usr/etc/install
1611 # IRIX /sbin/install
1612 # AIX /bin/install
1613 # AmigaOS /C/install, which installs bootblocks on floppy discs
1614 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1617 # OS/2's system install, which has a completely different semantic
1618 # ./install, which can be erroneously created by make from ./install.sh.
1619 # Reject install programs that cannot install multiple files.
1620 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1621 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1622 if test -z "$INSTALL"; then
1623 if test "${ac_cv_path_install+set}" = set; then
1624   echo $ECHO_N "(cached) $ECHO_C" >&6
1625 else
1626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1628 do
1629   IFS=$as_save_IFS
1630   test -z "$as_dir" && as_dir=.
1631   # Account for people who put trailing slashes in PATH elements.
1632 case $as_dir/ in
1633   ./ | .// | /cC/* | \
1634   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1635   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1636   /usr/ucb/* ) ;;
1637   *)
1638     # OSF1 and SCO ODT 3.0 have their own names for install.
1639     # Don't use installbsd from OSF since it installs stuff as root
1640     # by default.
1641     for ac_prog in ginstall scoinst install; do
1642       for ac_exec_ext in '' $ac_executable_extensions; do
1643         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1644           if test $ac_prog = install &&
1645             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1646             # AIX install.  It has an incompatible calling convention.
1647             :
1648           elif test $ac_prog = install &&
1649             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1650             # program-specific install script used by HP pwplus--don't use.
1651             :
1652           else
1653             rm -rf conftest.one conftest.two conftest.dir
1654             echo one > conftest.one
1655             echo two > conftest.two
1656             mkdir conftest.dir
1657             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1658               test -s conftest.one && test -s conftest.two &&
1659               test -s conftest.dir/conftest.one &&
1660               test -s conftest.dir/conftest.two
1661             then
1662               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1663               break 3
1664             fi
1665           fi
1666         fi
1667       done
1668     done
1669     ;;
1670 esac
1671 done
1672
1673 rm -rf conftest.one conftest.two conftest.dir
1674
1675 fi
1676   if test "${ac_cv_path_install+set}" = set; then
1677     INSTALL=$ac_cv_path_install
1678   else
1679     # As a last resort, use the slow shell script.  Don't cache a
1680     # value for INSTALL within a source directory, because that will
1681     # break other packages using the cache if that directory is
1682     # removed, or if the value is a relative name.
1683     INSTALL=$ac_install_sh
1684   fi
1685 fi
1686 echo "$as_me:$LINENO: result: $INSTALL" >&5
1687 echo "${ECHO_T}$INSTALL" >&6
1688
1689 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1690 # It thinks the first close brace ends the variable substitution.
1691 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1692
1693 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1694
1695 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1696
1697 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1698 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1699 # Just in case
1700 sleep 1
1701 echo timestamp > conftest.file
1702 # Do `set' in a subshell so we don't clobber the current shell's
1703 # arguments.  Must try -L first in case configure is actually a
1704 # symlink; some systems play weird games with the mod time of symlinks
1705 # (eg FreeBSD returns the mod time of the symlink's containing
1706 # directory).
1707 if (
1708    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1709    if test "$*" = "X"; then
1710       # -L didn't work.
1711       set X `ls -t $srcdir/configure conftest.file`
1712    fi
1713    rm -f conftest.file
1714    if test "$*" != "X $srcdir/configure conftest.file" \
1715       && test "$*" != "X conftest.file $srcdir/configure"; then
1716
1717       # If neither matched, then we have a broken ls.  This can happen
1718       # if, for instance, CONFIG_SHELL is bash and it inherits a
1719       # broken ls alias from the environment.  This has actually
1720       # happened.  Such a system could not be considered "sane".
1721       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1722 alias in your environment" >&5
1723 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1724 alias in your environment" >&2;}
1725    { (exit 1); exit 1; }; }
1726    fi
1727
1728    test "$2" = conftest.file
1729    )
1730 then
1731    # Ok.
1732    :
1733 else
1734    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1735 Check your system clock" >&5
1736 echo "$as_me: error: newly created file is older than distributed files!
1737 Check your system clock" >&2;}
1738    { (exit 1); exit 1; }; }
1739 fi
1740 echo "$as_me:$LINENO: result: yes" >&5
1741 echo "${ECHO_T}yes" >&6
1742 test "$program_prefix" != NONE &&
1743   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1744 # Use a double $ so make ignores it.
1745 test "$program_suffix" != NONE &&
1746   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1747 # Double any \ or $.  echo might interpret backslashes.
1748 # By default was `s,x,x', remove it if useless.
1749 cat <<\_ACEOF >conftest.sed
1750 s/[\\$]/&&/g;s/;s,x,x,$//
1751 _ACEOF
1752 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1753 rm conftest.sed
1754
1755 # expand $ac_aux_dir to an absolute path
1756 am_aux_dir=`cd $ac_aux_dir && pwd`
1757
1758 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1759 # Use eval to expand $SHELL
1760 if eval "$MISSING --run true"; then
1761   am_missing_run="$MISSING --run "
1762 else
1763   am_missing_run=
1764   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1765 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1766 fi
1767
1768 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1769   # We used to keeping the `.' as first argument, in order to
1770   # allow $(mkdir_p) to be used without argument.  As in
1771   #   $(mkdir_p) $(somedir)
1772   # where $(somedir) is conditionally defined.  However this is wrong
1773   # for two reasons:
1774   #  1. if the package is installed by a user who cannot write `.'
1775   #     make install will fail,
1776   #  2. the above comment should most certainly read
1777   #     $(mkdir_p) $(DESTDIR)$(somedir)
1778   #     so it does not work when $(somedir) is undefined and
1779   #     $(DESTDIR) is not.
1780   #  To support the latter case, we have to write
1781   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1782   #  so the `.' trick is pointless.
1783   mkdir_p='mkdir -p --'
1784 else
1785   # On NextStep and OpenStep, the `mkdir' command does not
1786   # recognize any option.  It will interpret all options as
1787   # directories to create, and then abort because `.' already
1788   # exists.
1789   for d in ./-p ./--version;
1790   do
1791     test -d $d && rmdir $d
1792   done
1793   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1794   if test -f "$ac_aux_dir/mkinstalldirs"; then
1795     mkdir_p='$(mkinstalldirs)'
1796   else
1797     mkdir_p='$(install_sh) -d'
1798   fi
1799 fi
1800
1801 for ac_prog in gawk mawk nawk awk
1802 do
1803   # Extract the first word of "$ac_prog", so it can be a program name with args.
1804 set dummy $ac_prog; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_AWK+set}" = set; then
1808   echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810   if test -n "$AWK"; then
1811   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1812 else
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 for as_dir in $PATH
1815 do
1816   IFS=$as_save_IFS
1817   test -z "$as_dir" && as_dir=.
1818   for ac_exec_ext in '' $ac_executable_extensions; do
1819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820     ac_cv_prog_AWK="$ac_prog"
1821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822     break 2
1823   fi
1824 done
1825 done
1826
1827 fi
1828 fi
1829 AWK=$ac_cv_prog_AWK
1830 if test -n "$AWK"; then
1831   echo "$as_me:$LINENO: result: $AWK" >&5
1832 echo "${ECHO_T}$AWK" >&6
1833 else
1834   echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1836 fi
1837
1838   test -n "$AWK" && break
1839 done
1840
1841 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1842 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1843 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1844 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1845   echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847   cat >conftest.make <<\_ACEOF
1848 all:
1849         @echo 'ac_maketemp="$(MAKE)"'
1850 _ACEOF
1851 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1852 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1853 if test -n "$ac_maketemp"; then
1854   eval ac_cv_prog_make_${ac_make}_set=yes
1855 else
1856   eval ac_cv_prog_make_${ac_make}_set=no
1857 fi
1858 rm -f conftest.make
1859 fi
1860 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1861   echo "$as_me:$LINENO: result: yes" >&5
1862 echo "${ECHO_T}yes" >&6
1863   SET_MAKE=
1864 else
1865   echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1867   SET_MAKE="MAKE=${MAKE-make}"
1868 fi
1869
1870 rm -rf .tst 2>/dev/null
1871 mkdir .tst 2>/dev/null
1872 if test -d .tst; then
1873   am__leading_dot=.
1874 else
1875   am__leading_dot=_
1876 fi
1877 rmdir .tst 2>/dev/null
1878
1879 # test to see if srcdir already configured
1880 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1881    test -f $srcdir/config.status; then
1882   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1883 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1884    { (exit 1); exit 1; }; }
1885 fi
1886
1887 # test whether we have cygpath
1888 if test -z "$CYGPATH_W"; then
1889   if (cygpath --version) >/dev/null 2>/dev/null; then
1890     CYGPATH_W='cygpath -w'
1891   else
1892     CYGPATH_W=echo
1893   fi
1894 fi
1895
1896
1897 # Define the identity of the package.
1898  PACKAGE='libssp'
1899  VERSION='1.0'
1900
1901
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE "$PACKAGE"
1904 _ACEOF
1905
1906
1907 cat >>confdefs.h <<_ACEOF
1908 #define VERSION "$VERSION"
1909 _ACEOF
1910
1911 # Some tools Automake needs.
1912
1913 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1914
1915
1916 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1917
1918
1919 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1920
1921
1922 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1923
1924
1925 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1926
1927 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1928
1929 # Installed binaries are usually stripped using `strip' when the user
1930 # run `make install-strip'.  However `strip' might not be the right
1931 # tool to use in cross-compilation environments, therefore Automake
1932 # will honor the `STRIP' environment variable to overrule this program.
1933 if test "$cross_compiling" != no; then
1934   if test -n "$ac_tool_prefix"; then
1935   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1936 set dummy ${ac_tool_prefix}strip; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_STRIP+set}" = set; then
1940   echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942   if test -n "$STRIP"; then
1943   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
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   for ac_exec_ext in '' $ac_executable_extensions; do
1951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954     break 2
1955   fi
1956 done
1957 done
1958
1959 fi
1960 fi
1961 STRIP=$ac_cv_prog_STRIP
1962 if test -n "$STRIP"; then
1963   echo "$as_me:$LINENO: result: $STRIP" >&5
1964 echo "${ECHO_T}$STRIP" >&6
1965 else
1966   echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1968 fi
1969
1970 fi
1971 if test -z "$ac_cv_prog_STRIP"; then
1972   ac_ct_STRIP=$STRIP
1973   # Extract the first word of "strip", so it can be a program name with args.
1974 set dummy strip; ac_word=$2
1975 echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1977 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1978   echo $ECHO_N "(cached) $ECHO_C" >&6
1979 else
1980   if test -n "$ac_ct_STRIP"; then
1981   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1982 else
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986   IFS=$as_save_IFS
1987   test -z "$as_dir" && as_dir=.
1988   for ac_exec_ext in '' $ac_executable_extensions; do
1989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990     ac_cv_prog_ac_ct_STRIP="strip"
1991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992     break 2
1993   fi
1994 done
1995 done
1996
1997   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1998 fi
1999 fi
2000 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2001 if test -n "$ac_ct_STRIP"; then
2002   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2003 echo "${ECHO_T}$ac_ct_STRIP" >&6
2004 else
2005   echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2007 fi
2008
2009   STRIP=$ac_ct_STRIP
2010 else
2011   STRIP="$ac_cv_prog_STRIP"
2012 fi
2013
2014 fi
2015 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2016
2017 # We need awk for the "check" target.  The system "awk" is bad on
2018 # some platforms.
2019 # Always define AMTAR for backward compatibility.
2020
2021 AMTAR=${AMTAR-"${am_missing_run}tar"}
2022
2023 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2024
2025
2026
2027
2028
2029
2030 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2031 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2032 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2033 if test "${enable_version_specific_runtime_libs+set}" = set; then
2034   enableval="$enable_version_specific_runtime_libs"
2035   case "$enableval" in
2036  yes) version_specific_libs=yes ;;
2037  no)  version_specific_libs=no ;;
2038  *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2039 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2040    { (exit 1); exit 1; }; };;
2041  esac
2042 else
2043   version_specific_libs=no
2044 fi;
2045 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2046 echo "${ECHO_T}$version_specific_libs" >&6
2047
2048 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2049 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2050     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2051 if test "${enable_maintainer_mode+set}" = set; then
2052   enableval="$enable_maintainer_mode"
2053   USE_MAINTAINER_MODE=$enableval
2054 else
2055   USE_MAINTAINER_MODE=no
2056 fi;
2057   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2058 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2059
2060
2061 if test $USE_MAINTAINER_MODE = yes; then
2062   MAINTAINER_MODE_TRUE=
2063   MAINTAINER_MODE_FALSE='#'
2064 else
2065   MAINTAINER_MODE_TRUE='#'
2066   MAINTAINER_MODE_FALSE=
2067 fi
2068
2069   MAINT=$MAINTAINER_MODE_TRUE
2070
2071
2072
2073
2074
2075 # Default to --enable-multilib
2076 # Check whether --enable-multilib or --disable-multilib was given.
2077 if test "${enable_multilib+set}" = set; then
2078   enableval="$enable_multilib"
2079   case "$enableval" in
2080   yes) multilib=yes ;;
2081   no)  multilib=no ;;
2082   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2083 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2084    { (exit 1); exit 1; }; } ;;
2085  esac
2086 else
2087   multilib=yes
2088 fi;
2089
2090 # We may get other options which we leave undocumented:
2091 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2092 # See config-ml.in if you want the gory details.
2093
2094 if test "$srcdir" = "."; then
2095   if test "$with_target_subdir" != "."; then
2096     multi_basedir="$srcdir/$with_multisrctop../.."
2097   else
2098     multi_basedir="$srcdir/$with_multisrctop.."
2099   fi
2100 else
2101   multi_basedir="$srcdir/.."
2102 fi
2103
2104
2105 # Even if the default multilib is not a cross compilation,
2106 # it may be that some of the other multilibs are.
2107 if test $cross_compiling = no && test $multilib = yes \
2108    && test "x${with_multisubdir}" != x ; then
2109    cross_compiling=maybe
2110 fi
2111
2112           ac_config_commands="$ac_config_commands default-1"
2113
2114
2115 target_alias=${target_alias-$host_alias}
2116
2117
2118           ac_config_headers="$ac_config_headers config.h"
2119
2120
2121 ac_ext=c
2122 ac_cpp='$CPP $CPPFLAGS'
2123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2126
2127 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2128 # We must force CC to /not/ be precious variables; otherwise
2129 # the wrong, non-multilib-adjusted value will be used in multilibs.
2130 # As a side effect, we have to subst CFLAGS ourselves.
2131
2132
2133
2134 ac_ext=c
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139 if test -n "$ac_tool_prefix"; then
2140   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2141 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_CC+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   if test -n "$CC"; then
2148   ac_cv_prog_CC="$CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155   for ac_exec_ext in '' $ac_executable_extensions; do
2156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159     break 2
2160   fi
2161 done
2162 done
2163
2164 fi
2165 fi
2166 CC=$ac_cv_prog_CC
2167 if test -n "$CC"; then
2168   echo "$as_me:$LINENO: result: $CC" >&5
2169 echo "${ECHO_T}$CC" >&6
2170 else
2171   echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2173 fi
2174
2175 fi
2176 if test -z "$ac_cv_prog_CC"; then
2177   ac_ct_CC=$CC
2178   # Extract the first word of "gcc", so it can be a program name with args.
2179 set dummy gcc; ac_word=$2
2180 echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2182 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2183   echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185   if test -n "$ac_ct_CC"; then
2186   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2187 else
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2190 do
2191   IFS=$as_save_IFS
2192   test -z "$as_dir" && as_dir=.
2193   for ac_exec_ext in '' $ac_executable_extensions; do
2194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2195     ac_cv_prog_ac_ct_CC="gcc"
2196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197     break 2
2198   fi
2199 done
2200 done
2201
2202 fi
2203 fi
2204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2205 if test -n "$ac_ct_CC"; then
2206   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2207 echo "${ECHO_T}$ac_ct_CC" >&6
2208 else
2209   echo "$as_me:$LINENO: result: no" >&5
2210 echo "${ECHO_T}no" >&6
2211 fi
2212
2213   CC=$ac_ct_CC
2214 else
2215   CC="$ac_cv_prog_CC"
2216 fi
2217
2218 if test -z "$CC"; then
2219   if test -n "$ac_tool_prefix"; then
2220   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2221 set dummy ${ac_tool_prefix}cc; ac_word=$2
2222 echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224 if test "${ac_cv_prog_CC+set}" = set; then
2225   echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227   if test -n "$CC"; then
2228   ac_cv_prog_CC="$CC" # Let the user override the test.
2229 else
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2232 do
2233   IFS=$as_save_IFS
2234   test -z "$as_dir" && as_dir=.
2235   for ac_exec_ext in '' $ac_executable_extensions; do
2236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237     ac_cv_prog_CC="${ac_tool_prefix}cc"
2238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239     break 2
2240   fi
2241 done
2242 done
2243
2244 fi
2245 fi
2246 CC=$ac_cv_prog_CC
2247 if test -n "$CC"; then
2248   echo "$as_me:$LINENO: result: $CC" >&5
2249 echo "${ECHO_T}$CC" >&6
2250 else
2251   echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2253 fi
2254
2255 fi
2256 if test -z "$ac_cv_prog_CC"; then
2257   ac_ct_CC=$CC
2258   # Extract the first word of "cc", so it can be a program name with args.
2259 set dummy cc; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   if test -n "$ac_ct_CC"; then
2266   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271   IFS=$as_save_IFS
2272   test -z "$as_dir" && as_dir=.
2273   for ac_exec_ext in '' $ac_executable_extensions; do
2274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275     ac_cv_prog_ac_ct_CC="cc"
2276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277     break 2
2278   fi
2279 done
2280 done
2281
2282 fi
2283 fi
2284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2285 if test -n "$ac_ct_CC"; then
2286   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2287 echo "${ECHO_T}$ac_ct_CC" >&6
2288 else
2289   echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2291 fi
2292
2293   CC=$ac_ct_CC
2294 else
2295   CC="$ac_cv_prog_CC"
2296 fi
2297
2298 fi
2299 if test -z "$CC"; then
2300   # Extract the first word of "cc", so it can be a program name with args.
2301 set dummy cc; ac_word=$2
2302 echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304 if test "${ac_cv_prog_CC+set}" = set; then
2305   echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307   if test -n "$CC"; then
2308   ac_cv_prog_CC="$CC" # Let the user override the test.
2309 else
2310   ac_prog_rejected=no
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2313 do
2314   IFS=$as_save_IFS
2315   test -z "$as_dir" && as_dir=.
2316   for ac_exec_ext in '' $ac_executable_extensions; do
2317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2318     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2319        ac_prog_rejected=yes
2320        continue
2321      fi
2322     ac_cv_prog_CC="cc"
2323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324     break 2
2325   fi
2326 done
2327 done
2328
2329 if test $ac_prog_rejected = yes; then
2330   # We found a bogon in the path, so make sure we never use it.
2331   set dummy $ac_cv_prog_CC
2332   shift
2333   if test $# != 0; then
2334     # We chose a different compiler from the bogus one.
2335     # However, it has the same basename, so the bogon will be chosen
2336     # first if we set CC to just the basename; use the full file name.
2337     shift
2338     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2339   fi
2340 fi
2341 fi
2342 fi
2343 CC=$ac_cv_prog_CC
2344 if test -n "$CC"; then
2345   echo "$as_me:$LINENO: result: $CC" >&5
2346 echo "${ECHO_T}$CC" >&6
2347 else
2348   echo "$as_me:$LINENO: result: no" >&5
2349 echo "${ECHO_T}no" >&6
2350 fi
2351
2352 fi
2353 if test -z "$CC"; then
2354   if test -n "$ac_tool_prefix"; then
2355   for ac_prog in cl
2356   do
2357     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2359 echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362   echo $ECHO_N "(cached) $ECHO_C" >&6
2363 else
2364   if test -n "$CC"; then
2365   ac_cv_prog_CC="$CC" # Let the user override the test.
2366 else
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 for as_dir in $PATH
2369 do
2370   IFS=$as_save_IFS
2371   test -z "$as_dir" && as_dir=.
2372   for ac_exec_ext in '' $ac_executable_extensions; do
2373   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2374     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376     break 2
2377   fi
2378 done
2379 done
2380
2381 fi
2382 fi
2383 CC=$ac_cv_prog_CC
2384 if test -n "$CC"; then
2385   echo "$as_me:$LINENO: result: $CC" >&5
2386 echo "${ECHO_T}$CC" >&6
2387 else
2388   echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6
2390 fi
2391
2392     test -n "$CC" && break
2393   done
2394 fi
2395 if test -z "$CC"; then
2396   ac_ct_CC=$CC
2397   for ac_prog in cl
2398 do
2399   # Extract the first word of "$ac_prog", so it can be a program name with args.
2400 set dummy $ac_prog; ac_word=$2
2401 echo "$as_me:$LINENO: checking for $ac_word" >&5
2402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2404   echo $ECHO_N "(cached) $ECHO_C" >&6
2405 else
2406   if test -n "$ac_ct_CC"; then
2407   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412   IFS=$as_save_IFS
2413   test -z "$as_dir" && as_dir=.
2414   for ac_exec_ext in '' $ac_executable_extensions; do
2415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416     ac_cv_prog_ac_ct_CC="$ac_prog"
2417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418     break 2
2419   fi
2420 done
2421 done
2422
2423 fi
2424 fi
2425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2426 if test -n "$ac_ct_CC"; then
2427   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2428 echo "${ECHO_T}$ac_ct_CC" >&6
2429 else
2430   echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6
2432 fi
2433
2434   test -n "$ac_ct_CC" && break
2435 done
2436
2437   CC=$ac_ct_CC
2438 fi
2439
2440 fi
2441
2442
2443 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: no acceptable C compiler found in \$PATH
2446 See \`config.log' for more details." >&2;}
2447    { (exit 1); exit 1; }; }
2448
2449 # Provide some information about the compiler.
2450 echo "$as_me:$LINENO:" \
2451      "checking for C compiler version" >&5
2452 ac_compiler=`set X $ac_compile; echo $2`
2453 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2454   (eval $ac_compiler --version </dev/null >&5) 2>&5
2455   ac_status=$?
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); }
2458 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2459   (eval $ac_compiler -v </dev/null >&5) 2>&5
2460   ac_status=$?
2461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462   (exit $ac_status); }
2463 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2464   (eval $ac_compiler -V </dev/null >&5) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }
2468
2469 cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h.  */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h.  */
2475
2476 int
2477 main ()
2478 {
2479
2480   ;
2481   return 0;
2482 }
2483 _ACEOF
2484 # FIXME: Cleanup?
2485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2486   (eval $ac_link) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; then
2490   gcc_no_link=no
2491 else
2492   gcc_no_link=yes
2493 fi
2494
2495 if test x$gcc_no_link = xyes; then
2496   # Setting cross_compile will disable run tests; it will
2497   # also disable AC_CHECK_FILE but that's generally
2498   # correct if we can't link.
2499   cross_compiling=yes
2500   EXEEXT=
2501 else
2502   cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h.  */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h.  */
2508
2509 int
2510 main ()
2511 {
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 ac_clean_files_save=$ac_clean_files
2518 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2519 # Try to create an executable without -o first, disregard a.out.
2520 # It will help us diagnose broken compilers, and finding out an intuition
2521 # of exeext.
2522 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2523 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2524 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2525 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2526   (eval $ac_link_default) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); }; then
2530   # Find the output, starting from the most likely.  This scheme is
2531 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2532 # resort.
2533
2534 # Be careful to initialize this variable, since it used to be cached.
2535 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2536 ac_cv_exeext=
2537 # b.out is created by i960 compilers.
2538 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2539 do
2540   test -f "$ac_file" || continue
2541   case $ac_file in
2542     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2543         ;;
2544     conftest.$ac_ext )
2545         # This is the source file.
2546         ;;
2547     [ab].out )
2548         # We found the default executable, but exeext='' is most
2549         # certainly right.
2550         break;;
2551     *.* )
2552         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553         # FIXME: I believe we export ac_cv_exeext for Libtool,
2554         # but it would be cool to find out if it's true.  Does anybody
2555         # maintain Libtool? --akim.
2556         export ac_cv_exeext
2557         break;;
2558     * )
2559         break;;
2560   esac
2561 done
2562 else
2563   echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2565
2566 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: C compiler cannot create executables
2569 See \`config.log' for more details." >&2;}
2570    { (exit 77); exit 77; }; }
2571 fi
2572
2573 ac_exeext=$ac_cv_exeext
2574 echo "$as_me:$LINENO: result: $ac_file" >&5
2575 echo "${ECHO_T}$ac_file" >&6
2576
2577 # Check the compiler produces executables we can run.  If not, either
2578 # the compiler is broken, or we cross compile.
2579 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2580 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2581 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2582 # If not cross compiling, check that we can run a simple program.
2583 if test "$cross_compiling" != yes; then
2584   if { ac_try='./$ac_file'
2585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586   (eval $ac_try) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; }; then
2590     cross_compiling=no
2591   else
2592     if test "$cross_compiling" = maybe; then
2593         cross_compiling=yes
2594     else
2595         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2596 If you meant to cross compile, use \`--host'.
2597 See \`config.log' for more details." >&5
2598 echo "$as_me: error: cannot run C compiled programs.
2599 If you meant to cross compile, use \`--host'.
2600 See \`config.log' for more details." >&2;}
2601    { (exit 1); exit 1; }; }
2602     fi
2603   fi
2604 fi
2605 echo "$as_me:$LINENO: result: yes" >&5
2606 echo "${ECHO_T}yes" >&6
2607
2608 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2609 ac_clean_files=$ac_clean_files_save
2610 # Check the compiler produces executables we can run.  If not, either
2611 # the compiler is broken, or we cross compile.
2612 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2613 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2614 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2615 echo "${ECHO_T}$cross_compiling" >&6
2616
2617 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2618 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2620   (eval $ac_link) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }; then
2624   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2625 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2626 # work properly (i.e., refer to `conftest.exe'), while it won't with
2627 # `rm'.
2628 for ac_file in conftest.exe conftest conftest.*; do
2629   test -f "$ac_file" || continue
2630   case $ac_file in
2631     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2632     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2633           export ac_cv_exeext
2634           break;;
2635     * ) break;;
2636   esac
2637 done
2638 else
2639   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2642 See \`config.log' for more details." >&2;}
2643    { (exit 1); exit 1; }; }
2644 fi
2645
2646 rm -f conftest$ac_cv_exeext
2647 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2648 echo "${ECHO_T}$ac_cv_exeext" >&6
2649
2650 rm -f conftest.$ac_ext
2651 EXEEXT=$ac_cv_exeext
2652 ac_exeext=$EXEEXT
2653 fi
2654 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2655 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2656 if test "${ac_cv_objext+set}" = set; then
2657   echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659   cat >conftest.$ac_ext <<_ACEOF
2660 /* confdefs.h.  */
2661 _ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h.  */
2665
2666 int
2667 main ()
2668 {
2669
2670   ;
2671   return 0;
2672 }
2673 _ACEOF
2674 rm -f conftest.o conftest.obj
2675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676   (eval $ac_compile) 2>&5
2677   ac_status=$?
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); }; then
2680   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2681   case $ac_file in
2682     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2683     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2684        break;;
2685   esac
2686 done
2687 else
2688   echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2690
2691 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2694 See \`config.log' for more details." >&2;}
2695    { (exit 1); exit 1; }; }
2696 fi
2697
2698 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2699 fi
2700 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2701 echo "${ECHO_T}$ac_cv_objext" >&6
2702 OBJEXT=$ac_cv_objext
2703 ac_objext=$OBJEXT
2704 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2705 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2706 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2707   echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709   cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h.  */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h.  */
2715
2716 int
2717 main ()
2718 {
2719 #ifndef __GNUC__
2720        choke me
2721 #endif
2722
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729   (eval $ac_compile) 2>conftest.er1
2730   ac_status=$?
2731   grep -v '^ *+' conftest.er1 >conftest.err
2732   rm -f conftest.er1
2733   cat conftest.err >&5
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); } &&
2736          { ac_try='test -z "$ac_c_werror_flag"
2737                          || test ! -s conftest.err'
2738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; } &&
2743          { ac_try='test -s conftest.$ac_objext'
2744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; }; then
2749   ac_compiler_gnu=yes
2750 else
2751   echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 ac_compiler_gnu=no
2755 fi
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2758
2759 fi
2760 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2761 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2762 GCC=`test $ac_compiler_gnu = yes && echo yes`
2763 ac_test_CFLAGS=${CFLAGS+set}
2764 ac_save_CFLAGS=$CFLAGS
2765 CFLAGS="-g"
2766 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2767 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2768 if test "${ac_cv_prog_cc_g+set}" = set; then
2769   echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771   cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h.  */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h.  */
2777
2778 int
2779 main ()
2780 {
2781
2782   ;
2783   return 0;
2784 }
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788   (eval $ac_compile) 2>conftest.er1
2789   ac_status=$?
2790   grep -v '^ *+' conftest.er1 >conftest.err
2791   rm -f conftest.er1
2792   cat conftest.err >&5
2793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794   (exit $ac_status); } &&
2795          { ac_try='test -z "$ac_c_werror_flag"
2796                          || test ! -s conftest.err'
2797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798   (eval $ac_try) 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }; } &&
2802          { ac_try='test -s conftest.$ac_objext'
2803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804   (eval $ac_try) 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); }; }; then
2808   ac_cv_prog_cc_g=yes
2809 else
2810   echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2812
2813 ac_cv_prog_cc_g=no
2814 fi
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2816 fi
2817 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2818 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2819 if test "$ac_test_CFLAGS" = set; then
2820   CFLAGS=$ac_save_CFLAGS
2821 elif test $ac_cv_prog_cc_g = yes; then
2822   if test "$GCC" = yes; then
2823     CFLAGS="-g -O2"
2824   else
2825     CFLAGS="-g"
2826   fi
2827 else
2828   if test "$GCC" = yes; then
2829     CFLAGS="-O2"
2830   else
2831     CFLAGS=
2832   fi
2833 fi
2834 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2835 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2836 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2837   echo $ECHO_N "(cached) $ECHO_C" >&6
2838 else
2839   ac_cv_prog_cc_stdc=no
2840 ac_save_CC=$CC
2841 cat >conftest.$ac_ext <<_ACEOF
2842 /* confdefs.h.  */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h.  */
2847 #include <stdarg.h>
2848 #include <stdio.h>
2849 #include <sys/types.h>
2850 #include <sys/stat.h>
2851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2852 struct buf { int x; };
2853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2854 static char *e (p, i)
2855      char **p;
2856      int i;
2857 {
2858   return p[i];
2859 }
2860 static char *f (char * (*g) (char **, int), char **p, ...)
2861 {
2862   char *s;
2863   va_list v;
2864   va_start (v,p);
2865   s = g (p, va_arg (v,int));
2866   va_end (v);
2867   return s;
2868 }
2869
2870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2871    function prototypes and stuff, but not '\xHH' hex character constants.
2872    These don't provoke an error unfortunately, instead are silently treated
2873    as 'x'.  The following induces an error, until -std1 is added to get
2874    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2875    array size at least.  It's necessary to write '\x00'==0 to get something
2876    that's true only with -std1.  */
2877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2878
2879 int test (int i, double x);
2880 struct s1 {int (*f) (int a);};
2881 struct s2 {int (*f) (double a);};
2882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2883 int argc;
2884 char **argv;
2885 int
2886 main ()
2887 {
2888 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2889   ;
2890   return 0;
2891 }
2892 _ACEOF
2893 # Don't try gcc -ansi; that turns off useful extensions and
2894 # breaks some systems' header files.
2895 # AIX                   -qlanglvl=ansi
2896 # Ultrix and OSF/1      -std1
2897 # HP-UX 10.20 and later -Ae
2898 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2899 # SVR4                  -Xc -D__EXTENSIONS__
2900 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2901 do
2902   CC="$ac_save_CC $ac_arg"
2903   rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905   (eval $ac_compile) 2>conftest.er1
2906   ac_status=$?
2907   grep -v '^ *+' conftest.er1 >conftest.err
2908   rm -f conftest.er1
2909   cat conftest.err >&5
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); } &&
2912          { ac_try='test -z "$ac_c_werror_flag"
2913                          || test ! -s conftest.err'
2914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915   (eval $ac_try) 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }; } &&
2919          { ac_try='test -s conftest.$ac_objext'
2920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; }; then
2925   ac_cv_prog_cc_stdc=$ac_arg
2926 break
2927 else
2928   echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931 fi
2932 rm -f conftest.err conftest.$ac_objext
2933 done
2934 rm -f conftest.$ac_ext conftest.$ac_objext
2935 CC=$ac_save_CC
2936
2937 fi
2938
2939 case "x$ac_cv_prog_cc_stdc" in
2940   x|xno)
2941     echo "$as_me:$LINENO: result: none needed" >&5
2942 echo "${ECHO_T}none needed" >&6 ;;
2943   *)
2944     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2945 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2946     CC="$CC $ac_cv_prog_cc_stdc" ;;
2947 esac
2948
2949 # Some people use a C++ compiler to compile C.  Since we use `exit',
2950 # in C++ we need to declare it.  In case someone uses the same compiler
2951 # for both compiling C and C++ we need to have the C++ compiler decide
2952 # the declaration of exit, since it's the most demanding environment.
2953 cat >conftest.$ac_ext <<_ACEOF
2954 #ifndef __cplusplus
2955   choke me
2956 #endif
2957 _ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2960   (eval $ac_compile) 2>conftest.er1
2961   ac_status=$?
2962   grep -v '^ *+' conftest.er1 >conftest.err
2963   rm -f conftest.er1
2964   cat conftest.err >&5
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); } &&
2967          { ac_try='test -z "$ac_c_werror_flag"
2968                          || test ! -s conftest.err'
2969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970   (eval $ac_try) 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }; } &&
2974          { ac_try='test -s conftest.$ac_objext'
2975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976   (eval $ac_try) 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); }; }; then
2980   for ac_declaration in \
2981    '' \
2982    'extern "C" void std::exit (int) throw (); using std::exit;' \
2983    'extern "C" void std::exit (int); using std::exit;' \
2984    'extern "C" void exit (int) throw ();' \
2985    'extern "C" void exit (int);' \
2986    'void exit (int);'
2987 do
2988   cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h.  */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h.  */
2994 $ac_declaration
2995 #include <stdlib.h>
2996 int
2997 main ()
2998 {
2999 exit (42);
3000   ;
3001   return 0;
3002 }
3003 _ACEOF
3004 rm -f conftest.$ac_objext
3005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3006   (eval $ac_compile) 2>conftest.er1
3007   ac_status=$?
3008   grep -v '^ *+' conftest.er1 >conftest.err
3009   rm -f conftest.er1
3010   cat conftest.err >&5
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); } &&
3013          { ac_try='test -z "$ac_c_werror_flag"
3014                          || test ! -s conftest.err'
3015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016   (eval $ac_try) 2>&5
3017   ac_status=$?
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); }; } &&
3020          { ac_try='test -s conftest.$ac_objext'
3021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022   (eval $ac_try) 2>&5
3023   ac_status=$?
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); }; }; then
3026   :
3027 else
3028   echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.$ac_ext >&5
3030
3031 continue
3032 fi
3033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3034   cat >conftest.$ac_ext <<_ACEOF
3035 /* confdefs.h.  */
3036 _ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h.  */
3040 $ac_declaration
3041 int
3042 main ()
3043 {
3044 exit (42);
3045   ;
3046   return 0;
3047 }
3048 _ACEOF
3049 rm -f conftest.$ac_objext
3050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3051   (eval $ac_compile) 2>conftest.er1
3052   ac_status=$?
3053   grep -v '^ *+' conftest.er1 >conftest.err
3054   rm -f conftest.er1
3055   cat conftest.err >&5
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } &&
3058          { ac_try='test -z "$ac_c_werror_flag"
3059                          || test ! -s conftest.err'
3060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061   (eval $ac_try) 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }; } &&
3065          { ac_try='test -s conftest.$ac_objext'
3066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067   (eval $ac_try) 2>&5
3068   ac_status=$?
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); }; }; then
3071   break
3072 else
3073   echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076 fi
3077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3078 done
3079 rm -f conftest*
3080 if test -n "$ac_declaration"; then
3081   echo '#ifdef __cplusplus' >>confdefs.h
3082   echo $ac_declaration      >>confdefs.h
3083   echo '#endif'             >>confdefs.h
3084 fi
3085
3086 else
3087   echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090 fi
3091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092 ac_ext=c
3093 ac_cpp='$CPP $CPPFLAGS'
3094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 DEPDIR="${am__leading_dot}deps"
3098
3099           ac_config_commands="$ac_config_commands depfiles"
3100
3101
3102 am_make=${MAKE-make}
3103 cat > confinc << 'END'
3104 am__doit:
3105         @echo done
3106 .PHONY: am__doit
3107 END
3108 # If we don't find an include directive, just comment out the code.
3109 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3110 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3111 am__include="#"
3112 am__quote=
3113 _am_result=none
3114 # First try GNU make style include.
3115 echo "include confinc" > confmf
3116 # We grep out `Entering directory' and `Leaving directory'
3117 # messages which can occur if `w' ends up in MAKEFLAGS.
3118 # In particular we don't look at `^make:' because GNU make might
3119 # be invoked under some other name (usually "gmake"), in which
3120 # case it prints its new name instead of `make'.
3121 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3122    am__include=include
3123    am__quote=
3124    _am_result=GNU
3125 fi
3126 # Now try BSD make style include.
3127 if test "$am__include" = "#"; then
3128    echo '.include "confinc"' > confmf
3129    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3130       am__include=.include
3131       am__quote="\""
3132       _am_result=BSD
3133    fi
3134 fi
3135
3136
3137 echo "$as_me:$LINENO: result: $_am_result" >&5
3138 echo "${ECHO_T}$_am_result" >&6
3139 rm -f confinc confmf
3140
3141 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3142 if test "${enable_dependency_tracking+set}" = set; then
3143   enableval="$enable_dependency_tracking"
3144
3145 fi;
3146 if test "x$enable_dependency_tracking" != xno; then
3147   am_depcomp="$ac_aux_dir/depcomp"
3148   AMDEPBACKSLASH='\'
3149 fi
3150
3151
3152 if test "x$enable_dependency_tracking" != xno; then
3153   AMDEP_TRUE=
3154   AMDEP_FALSE='#'
3155 else
3156   AMDEP_TRUE='#'
3157   AMDEP_FALSE=
3158 fi
3159
3160
3161
3162
3163 depcc="$CC"   am_compiler_list=
3164
3165 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3166 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3167 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3168   echo $ECHO_N "(cached) $ECHO_C" >&6
3169 else
3170   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3171   # We make a subdir and do the tests there.  Otherwise we can end up
3172   # making bogus files that we don't know about and never remove.  For
3173   # instance it was reported that on HP-UX the gcc test will end up
3174   # making a dummy file named `D' -- because `-MD' means `put the output
3175   # in D'.
3176   mkdir conftest.dir
3177   # Copy depcomp to subdir because otherwise we won't find it if we're
3178   # using a relative directory.
3179   cp "$am_depcomp" conftest.dir
3180   cd conftest.dir
3181   # We will build objects and dependencies in a subdirectory because
3182   # it helps to detect inapplicable dependency modes.  For instance
3183   # both Tru64's cc and ICC support -MD to output dependencies as a
3184   # side effect of compilation, but ICC will put the dependencies in
3185   # the current directory while Tru64 will put them in the object
3186   # directory.
3187   mkdir sub
3188
3189   am_cv_CC_dependencies_compiler_type=none
3190   if test "$am_compiler_list" = ""; then
3191      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3192   fi
3193   for depmode in $am_compiler_list; do
3194     # Setup a source with many dependencies, because some compilers
3195     # like to wrap large dependency lists on column 80 (with \), and
3196     # we should not choose a depcomp mode which is confused by this.
3197     #
3198     # We need to recreate these files for each test, as the compiler may
3199     # overwrite some of them when testing with obscure command lines.
3200     # This happens at least with the AIX C compiler.
3201     : > sub/conftest.c
3202     for i in 1 2 3 4 5 6; do
3203       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3204       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3205       # Solaris 8's {/usr,}/bin/sh.
3206       touch sub/conftst$i.h
3207     done
3208     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3209
3210     case $depmode in
3211     nosideeffect)
3212       # after this tag, mechanisms are not by side-effect, so they'll
3213       # only be used when explicitly requested
3214       if test "x$enable_dependency_tracking" = xyes; then
3215         continue
3216       else
3217         break
3218       fi
3219       ;;
3220     none) break ;;
3221     esac
3222     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3223     # mode.  It turns out that the SunPro C++ compiler does not properly
3224     # handle `-M -o', and we need to detect this.
3225     if depmode=$depmode \
3226        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3227        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3228        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3229          >/dev/null 2>conftest.err &&
3230        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3231        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3232        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3233       # icc doesn't choke on unknown options, it will just issue warnings
3234       # or remarks (even with -Werror).  So we grep stderr for any message
3235       # that says an option was ignored or not supported.
3236       # When given -MP, icc 7.0 and 7.1 complain thusly:
3237       #   icc: Command line warning: ignoring option '-M'; no argument required
3238       # The diagnosis changed in icc 8.0:
3239       #   icc: Command line remark: option '-MP' not supported
3240       if (grep 'ignoring option' conftest.err ||
3241           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3242         am_cv_CC_dependencies_compiler_type=$depmode
3243         break
3244       fi
3245     fi
3246   done
3247
3248   cd ..
3249   rm -rf conftest.dir
3250 else
3251   am_cv_CC_dependencies_compiler_type=none
3252 fi
3253
3254 fi
3255 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3256 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3257 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3258
3259
3260
3261 if
3262   test "x$enable_dependency_tracking" != xno \
3263   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3264   am__fastdepCC_TRUE=
3265   am__fastdepCC_FALSE='#'
3266 else
3267   am__fastdepCC_TRUE='#'
3268   am__fastdepCC_FALSE=
3269 fi
3270
3271
3272
3273
3274
3275
3276 if test "x$GCC" != "xyes"; then
3277   { { echo "$as_me:$LINENO: error: libssp must be built with GCC" >&5
3278 echo "$as_me: error: libssp must be built with GCC" >&2;}
3279    { (exit 1); exit 1; }; }
3280 fi
3281 ac_ext=c
3282 ac_cpp='$CPP $CPPFLAGS'
3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3287 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3288 # On Suns, sometimes $CPP names a directory.
3289 if test -n "$CPP" && test -d "$CPP"; then
3290   CPP=
3291 fi
3292 if test -z "$CPP"; then
3293   if test "${ac_cv_prog_CPP+set}" = set; then
3294   echo $ECHO_N "(cached) $ECHO_C" >&6
3295 else
3296       # Double quotes because CPP needs to be expanded
3297     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3298     do
3299       ac_preproc_ok=false
3300 for ac_c_preproc_warn_flag in '' yes
3301 do
3302   # Use a header file that comes with gcc, so configuring glibc
3303   # with a fresh cross-compiler works.
3304   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3305   # <limits.h> exists even on freestanding compilers.
3306   # On the NeXT, cc -E runs the code through the compiler's parser,
3307   # not just through cpp. "Syntax error" is here to catch this case.
3308   cat >conftest.$ac_ext <<_ACEOF
3309 /* confdefs.h.  */
3310 _ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h.  */
3314 #ifdef __STDC__
3315 # include <limits.h>
3316 #else
3317 # include <assert.h>
3318 #endif
3319                      Syntax error
3320 _ACEOF
3321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3322   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3323   ac_status=$?
3324   grep -v '^ *+' conftest.er1 >conftest.err
3325   rm -f conftest.er1
3326   cat conftest.err >&5
3327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328   (exit $ac_status); } >/dev/null; then
3329   if test -s conftest.err; then
3330     ac_cpp_err=$ac_c_preproc_warn_flag
3331     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3332   else
3333     ac_cpp_err=
3334   fi
3335 else
3336   ac_cpp_err=yes
3337 fi
3338 if test -z "$ac_cpp_err"; then
3339   :
3340 else
3341   echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344   # Broken: fails on valid input.
3345 continue
3346 fi
3347 rm -f conftest.err conftest.$ac_ext
3348
3349   # OK, works on sane cases.  Now check whether non-existent headers
3350   # can be detected and how.
3351   cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h.  */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h.  */
3357 #include <ac_nonexistent.h>
3358 _ACEOF
3359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3360   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3361   ac_status=$?
3362   grep -v '^ *+' conftest.er1 >conftest.err
3363   rm -f conftest.er1
3364   cat conftest.err >&5
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); } >/dev/null; then
3367   if test -s conftest.err; then
3368     ac_cpp_err=$ac_c_preproc_warn_flag
3369     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3370   else
3371     ac_cpp_err=
3372   fi
3373 else
3374   ac_cpp_err=yes
3375 fi
3376 if test -z "$ac_cpp_err"; then
3377   # Broken: success on invalid input.
3378 continue
3379 else
3380   echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383   # Passes both tests.
3384 ac_preproc_ok=:
3385 break
3386 fi
3387 rm -f conftest.err conftest.$ac_ext
3388
3389 done
3390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3391 rm -f conftest.err conftest.$ac_ext
3392 if $ac_preproc_ok; then
3393   break
3394 fi
3395
3396     done
3397     ac_cv_prog_CPP=$CPP
3398
3399 fi
3400   CPP=$ac_cv_prog_CPP
3401 else
3402   ac_cv_prog_CPP=$CPP
3403 fi
3404 echo "$as_me:$LINENO: result: $CPP" >&5
3405 echo "${ECHO_T}$CPP" >&6
3406 ac_preproc_ok=false
3407 for ac_c_preproc_warn_flag in '' yes
3408 do
3409   # Use a header file that comes with gcc, so configuring glibc
3410   # with a fresh cross-compiler works.
3411   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412   # <limits.h> exists even on freestanding compilers.
3413   # On the NeXT, cc -E runs the code through the compiler's parser,
3414   # not just through cpp. "Syntax error" is here to catch this case.
3415   cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h.  */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h.  */
3421 #ifdef __STDC__
3422 # include <limits.h>
3423 #else
3424 # include <assert.h>
3425 #endif
3426                      Syntax error
3427 _ACEOF
3428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3429   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3430   ac_status=$?
3431   grep -v '^ *+' conftest.er1 >conftest.err
3432   rm -f conftest.er1
3433   cat conftest.err >&5
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); } >/dev/null; then
3436   if test -s conftest.err; then
3437     ac_cpp_err=$ac_c_preproc_warn_flag
3438     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3439   else
3440     ac_cpp_err=
3441   fi
3442 else
3443   ac_cpp_err=yes
3444 fi
3445 if test -z "$ac_cpp_err"; then
3446   :
3447 else
3448   echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451   # Broken: fails on valid input.
3452 continue
3453 fi
3454 rm -f conftest.err conftest.$ac_ext
3455
3456   # OK, works on sane cases.  Now check whether non-existent headers
3457   # can be detected and how.
3458   cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 #include <ac_nonexistent.h>
3465 _ACEOF
3466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3467   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3468   ac_status=$?
3469   grep -v '^ *+' conftest.er1 >conftest.err
3470   rm -f conftest.er1
3471   cat conftest.err >&5
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); } >/dev/null; then
3474   if test -s conftest.err; then
3475     ac_cpp_err=$ac_c_preproc_warn_flag
3476     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3477   else
3478     ac_cpp_err=
3479   fi
3480 else
3481   ac_cpp_err=yes
3482 fi
3483 if test -z "$ac_cpp_err"; then
3484   # Broken: success on invalid input.
3485 continue
3486 else
3487   echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3489
3490   # Passes both tests.
3491 ac_preproc_ok=:
3492 break
3493 fi
3494 rm -f conftest.err conftest.$ac_ext
3495
3496 done
3497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3498 rm -f conftest.err conftest.$ac_ext
3499 if $ac_preproc_ok; then
3500   :
3501 else
3502   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3503 See \`config.log' for more details." >&5
3504 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3505 See \`config.log' for more details." >&2;}
3506    { (exit 1); exit 1; }; }
3507 fi
3508
3509 ac_ext=c
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3514
3515
3516 echo "$as_me:$LINENO: checking whether -fstack-protector works" >&5
3517 echo $ECHO_N "checking whether -fstack-protector works... $ECHO_C" >&6
3518 save_CFLAGS="$CFLAGS"
3519 CFLAGS="$CFLAGS -fstack-protector -Werror"
3520
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527
3528 void __attribute__((noinline)) bar (char *x)
3529 {
3530   __builtin_memset (x, 0, 64);
3531 }
3532 int
3533 main ()
3534 {
3535 char buf[64]; bar (buf);
3536   ;
3537   return 0;
3538 }
3539 _ACEOF
3540 rm -f conftest.$ac_objext
3541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3542   (eval $ac_compile) 2>conftest.er1
3543   ac_status=$?
3544   grep -v '^ *+' conftest.er1 >conftest.err
3545   rm -f conftest.er1
3546   cat conftest.err >&5
3547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548   (exit $ac_status); } &&
3549          { ac_try='test -z "$ac_c_werror_flag"
3550                          || test ! -s conftest.err'
3551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552   (eval $ac_try) 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; } &&
3556          { ac_try='test -s conftest.$ac_objext'
3557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558   (eval $ac_try) 2>&5
3559   ac_status=$?
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); }; }; then
3562   echo "$as_me:$LINENO: result: yes" >&5
3563 echo "${ECHO_T}yes" >&6
3564 else
3565   echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6
3570 fi
3571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3572 CFLAGS="$save_CFLAGS"
3573
3574 echo "$as_me:$LINENO: checking whether hidden visibility is supported" >&5
3575 echo $ECHO_N "checking whether hidden visibility is supported... $ECHO_C" >&6
3576 cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h.  */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h.  */
3582
3583 void __attribute__((visibility ("hidden"))) bar (void) {}
3584 int
3585 main ()
3586 {
3587
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 rm -f conftest.$ac_objext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3594   (eval $ac_compile) 2>conftest.er1
3595   ac_status=$?
3596   grep -v '^ *+' conftest.er1 >conftest.err
3597   rm -f conftest.er1
3598   cat conftest.err >&5
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); } &&
3601          { ac_try='test -z "$ac_c_werror_flag"
3602                          || test ! -s conftest.err'
3603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604   (eval $ac_try) 2>&5
3605   ac_status=$?
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); }; } &&
3608          { ac_try='test -s conftest.$ac_objext'
3609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610   (eval $ac_try) 2>&5
3611   ac_status=$?
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); }; }; then
3614   ssp_hidden=yes
3615 else
3616   echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3618
3619 ssp_hidden=no
3620 fi
3621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3622 echo "$as_me:$LINENO: result: $ssp_hidden" >&5
3623 echo "${ECHO_T}$ssp_hidden" >&6
3624 if test x$ssp_hidden = xyes; then
3625
3626 cat >>confdefs.h <<\_ACEOF
3627 #define HAVE_HIDDEN_VISIBILITY 1
3628 _ACEOF
3629
3630 fi
3631
3632 echo "$as_me:$LINENO: checking whether symbol versioning is supported" >&5
3633 echo $ECHO_N "checking whether symbol versioning is supported... $ECHO_C" >&6
3634 cat > conftest.map <<EOF
3635 FOO_1.0 {
3636   global: *foo*; bar; local: *;
3637 };
3638 EOF
3639 save_LDFLAGS="$LDFLAGS"
3640 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
3641 if test x$gcc_no_link = xyes; then
3642   # If we cannot link, we cannot build shared libraries, so do not use
3643   # symbol versioning.
3644   ssp_use_symver=no
3645 else
3646   if test x$gcc_no_link = xyes; then
3647   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3648 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3649    { (exit 1); exit 1; }; }
3650 fi
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657 int foo;
3658 int
3659 main ()
3660 {
3661
3662   ;
3663   return 0;
3664 }
3665 _ACEOF
3666 rm -f conftest.$ac_objext conftest$ac_exeext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3668   (eval $ac_link) 2>conftest.er1
3669   ac_status=$?
3670   grep -v '^ *+' conftest.er1 >conftest.err
3671   rm -f conftest.er1
3672   cat conftest.err >&5
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); } &&
3675          { ac_try='test -z "$ac_c_werror_flag"
3676                          || test ! -s conftest.err'
3677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678   (eval $ac_try) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; } &&
3682          { ac_try='test -s conftest$ac_exeext'
3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684   (eval $ac_try) 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; }; then
3688   ssp_use_symver=yes
3689 else
3690   echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693 ssp_use_symver=no
3694 fi
3695 rm -f conftest.err conftest.$ac_objext \
3696       conftest$ac_exeext conftest.$ac_ext
3697 fi
3698 LDFLAGS="$save_LDFLAGS"
3699 echo "$as_me:$LINENO: result: $ssp_use_symver" >&5
3700 echo "${ECHO_T}$ssp_use_symver" >&6
3701
3702
3703 if test "x$ssp_use_symver" = xyes; then
3704   LIBSSP_USE_SYMVER_TRUE=
3705   LIBSSP_USE_SYMVER_FALSE='#'
3706 else
3707   LIBSSP_USE_SYMVER_TRUE='#'
3708   LIBSSP_USE_SYMVER_FALSE=
3709 fi
3710
3711
3712
3713 echo "$as_me:$LINENO: checking for egrep" >&5
3714 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3715 if test "${ac_cv_prog_egrep+set}" = set; then
3716   echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3719     then ac_cv_prog_egrep='grep -E'
3720     else ac_cv_prog_egrep='egrep'
3721     fi
3722 fi
3723 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3724 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3725  EGREP=$ac_cv_prog_egrep
3726
3727
3728 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3730 if test "${ac_cv_header_stdc+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h.  */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h.  */
3739 #include <stdlib.h>
3740 #include <stdarg.h>
3741 #include <string.h>
3742 #include <float.h>
3743
3744 int
3745 main ()
3746 {
3747
3748   ;
3749   return 0;
3750 }
3751 _ACEOF
3752 rm -f conftest.$ac_objext
3753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3754   (eval $ac_compile) 2>conftest.er1
3755   ac_status=$?
3756   grep -v '^ *+' conftest.er1 >conftest.err
3757   rm -f conftest.er1
3758   cat conftest.err >&5
3759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760   (exit $ac_status); } &&
3761          { ac_try='test -z "$ac_c_werror_flag"
3762                          || test ! -s conftest.err'
3763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764   (eval $ac_try) 2>&5
3765   ac_status=$?
3766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767   (exit $ac_status); }; } &&
3768          { ac_try='test -s conftest.$ac_objext'
3769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770   (eval $ac_try) 2>&5
3771   ac_status=$?
3772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773   (exit $ac_status); }; }; then
3774   ac_cv_header_stdc=yes
3775 else
3776   echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3778
3779 ac_cv_header_stdc=no
3780 fi
3781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3782
3783 if test $ac_cv_header_stdc = yes; then
3784   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3785   cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h.  */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h.  */
3791 #include <string.h>
3792
3793 _ACEOF
3794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3795   $EGREP "memchr" >/dev/null 2>&1; then
3796   :
3797 else
3798   ac_cv_header_stdc=no
3799 fi
3800 rm -f conftest*
3801
3802 fi
3803
3804 if test $ac_cv_header_stdc = yes; then
3805   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3806   cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h.  */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h.  */
3812 #include <stdlib.h>
3813
3814 _ACEOF
3815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3816   $EGREP "free" >/dev/null 2>&1; then
3817   :
3818 else
3819   ac_cv_header_stdc=no
3820 fi
3821 rm -f conftest*
3822
3823 fi
3824
3825 if test $ac_cv_header_stdc = yes; then
3826   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3827   if test "$cross_compiling" = yes; then
3828   :
3829 else
3830   cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836 #include <ctype.h>
3837 #if ((' ' & 0x0FF) == 0x020)
3838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3840 #else
3841 # define ISLOWER(c) \
3842                    (('a' <= (c) && (c) <= 'i') \
3843                      || ('j' <= (c) && (c) <= 'r') \
3844                      || ('s' <= (c) && (c) <= 'z'))
3845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3846 #endif
3847
3848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3849 int
3850 main ()
3851 {
3852   int i;
3853   for (i = 0; i < 256; i++)
3854     if (XOR (islower (i), ISLOWER (i))
3855         || toupper (i) != TOUPPER (i))
3856       exit(2);
3857   exit (0);
3858 }
3859 _ACEOF
3860 rm -f conftest$ac_exeext
3861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3862   (eval $ac_link) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867   (eval $ac_try) 2>&5
3868   ac_status=$?
3869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870   (exit $ac_status); }; }; then
3871   :
3872 else
3873   echo "$as_me: program exited with status $ac_status" >&5
3874 echo "$as_me: failed program was:" >&5
3875 sed 's/^/| /' conftest.$ac_ext >&5
3876
3877 ( exit $ac_status )
3878 ac_cv_header_stdc=no
3879 fi
3880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3881 fi
3882 fi
3883 fi
3884 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3885 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3886 if test $ac_cv_header_stdc = yes; then
3887
3888 cat >>confdefs.h <<\_ACEOF
3889 #define STDC_HEADERS 1
3890 _ACEOF
3891
3892 fi
3893
3894 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3905                   inttypes.h stdint.h unistd.h
3906 do
3907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3908 echo "$as_me:$LINENO: checking for $ac_header" >&5
3909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h.  */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h.  */
3919 $ac_includes_default
3920
3921 #include <$ac_header>
3922 _ACEOF
3923 rm -f conftest.$ac_objext
3924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3925   (eval $ac_compile) 2>conftest.er1
3926   ac_status=$?
3927   grep -v '^ *+' conftest.er1 >conftest.err
3928   rm -f conftest.er1
3929   cat conftest.err >&5
3930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931   (exit $ac_status); } &&
3932          { ac_try='test -z "$ac_c_werror_flag"
3933                          || test ! -s conftest.err'
3934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3935   (eval $ac_try) 2>&5
3936   ac_status=$?
3937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938   (exit $ac_status); }; } &&
3939          { ac_try='test -s conftest.$ac_objext'
3940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3941   (eval $ac_try) 2>&5
3942   ac_status=$?
3943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944   (exit $ac_status); }; }; then
3945   eval "$as_ac_Header=yes"
3946 else
3947   echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3949
3950 eval "$as_ac_Header=no"
3951 fi
3952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3953 fi
3954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3957   cat >>confdefs.h <<_ACEOF
3958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3959 _ACEOF
3960
3961 fi
3962
3963 done
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974 for ac_header in alloca.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
3975 do
3976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3978   echo "$as_me:$LINENO: checking for $ac_header" >&5
3979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 fi
3983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3985 else
3986   # Is the header compilable?
3987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3989 cat >conftest.$ac_ext <<_ACEOF
3990 /* confdefs.h.  */
3991 _ACEOF
3992 cat confdefs.h >>conftest.$ac_ext
3993 cat >>conftest.$ac_ext <<_ACEOF
3994 /* end confdefs.h.  */
3995 $ac_includes_default
3996 #include <$ac_header>
3997 _ACEOF
3998 rm -f conftest.$ac_objext
3999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4000   (eval $ac_compile) 2>conftest.er1
4001   ac_status=$?
4002   grep -v '^ *+' conftest.er1 >conftest.err
4003   rm -f conftest.er1
4004   cat conftest.err >&5
4005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006   (exit $ac_status); } &&
4007          { ac_try='test -z "$ac_c_werror_flag"
4008                          || test ! -s conftest.err'
4009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4010   (eval $ac_try) 2>&5
4011   ac_status=$?
4012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013   (exit $ac_status); }; } &&
4014          { ac_try='test -s conftest.$ac_objext'
4015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016   (eval $ac_try) 2>&5
4017   ac_status=$?
4018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019   (exit $ac_status); }; }; then
4020   ac_header_compiler=yes
4021 else
4022   echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4024
4025 ac_header_compiler=no
4026 fi
4027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4029 echo "${ECHO_T}$ac_header_compiler" >&6
4030
4031 # Is the header present?
4032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4034 cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h.  */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h.  */
4040 #include <$ac_header>
4041 _ACEOF
4042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4044   ac_status=$?
4045   grep -v '^ *+' conftest.er1 >conftest.err
4046   rm -f conftest.er1
4047   cat conftest.err >&5
4048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049   (exit $ac_status); } >/dev/null; then
4050   if test -s conftest.err; then
4051     ac_cpp_err=$ac_c_preproc_warn_flag
4052     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4053   else
4054     ac_cpp_err=
4055   fi
4056 else
4057   ac_cpp_err=yes
4058 fi
4059 if test -z "$ac_cpp_err"; then
4060   ac_header_preproc=yes
4061 else
4062   echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065   ac_header_preproc=no
4066 fi
4067 rm -f conftest.err conftest.$ac_ext
4068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4069 echo "${ECHO_T}$ac_header_preproc" >&6
4070
4071 # So?  What about this header?
4072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4073   yes:no: )
4074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4078     ac_header_preproc=yes
4079     ;;
4080   no:yes:* )
4081     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4083     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4084 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4085     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4087     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4088 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4091     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4093     (
4094       cat <<\_ASBOX
4095 ## --------------------------------- ##
4096 ## Report this to the libssp lists.  ##
4097 ## --------------------------------- ##
4098 _ASBOX
4099     ) |
4100       sed "s/^/$as_me: WARNING:     /" >&2
4101     ;;
4102 esac
4103 echo "$as_me:$LINENO: checking for $ac_header" >&5
4104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   eval "$as_ac_Header=\$ac_header_preproc"
4109 fi
4110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4112
4113 fi
4114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4115   cat >>confdefs.h <<_ACEOF
4116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4117 _ACEOF
4118
4119 fi
4120
4121 done
4122
4123
4124 if test x$gcc_no_link = xyes; then
4125   # Presume the ISO C functions are available; add target-specific
4126   # configuration here if required.
4127   cat >>confdefs.h <<\_ACEOF
4128 #define HAVE_STRNCPY 1
4129 _ACEOF
4130
4131   cat >>confdefs.h <<\_ACEOF
4132 #define HAVE_STRNCAT 1
4133 _ACEOF
4134
4135 else
4136
4137
4138
4139 for ac_func in mempcpy strncpy strncat
4140 do
4141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4142 echo "$as_me:$LINENO: checking for $ac_func" >&5
4143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4144 if eval "test \"\${$as_ac_var+set}\" = set"; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   if test x$gcc_no_link = xyes; then
4148   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4150    { (exit 1); exit 1; }; }
4151 fi
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h.  */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h.  */
4158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4160 #define $ac_func innocuous_$ac_func
4161
4162 /* System header to define __stub macros and hopefully few prototypes,
4163     which can conflict with char $ac_func (); below.
4164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4165     <limits.h> exists even on freestanding compilers.  */
4166
4167 #ifdef __STDC__
4168 # include <limits.h>
4169 #else
4170 # include <assert.h>
4171 #endif
4172
4173 #undef $ac_func
4174
4175 /* Override any gcc2 internal prototype to avoid an error.  */
4176 #ifdef __cplusplus
4177 extern "C"
4178 {
4179 #endif
4180 /* We use char because int might match the return type of a gcc2
4181    builtin and then its argument prototype would still apply.  */
4182 char $ac_func ();
4183 /* The GNU C library defines this for functions which it implements
4184     to always fail with ENOSYS.  Some functions are actually named
4185     something starting with __ and the normal name is an alias.  */
4186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4187 choke me
4188 #else
4189 char (*f) () = $ac_func;
4190 #endif
4191 #ifdef __cplusplus
4192 }
4193 #endif
4194
4195 int
4196 main ()
4197 {
4198 return f != $ac_func;
4199   ;
4200   return 0;
4201 }
4202 _ACEOF
4203 rm -f conftest.$ac_objext conftest$ac_exeext
4204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4205   (eval $ac_link) 2>conftest.er1
4206   ac_status=$?
4207   grep -v '^ *+' conftest.er1 >conftest.err
4208   rm -f conftest.er1
4209   cat conftest.err >&5
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); } &&
4212          { ac_try='test -z "$ac_c_werror_flag"
4213                          || test ! -s conftest.err'
4214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215   (eval $ac_try) 2>&5
4216   ac_status=$?
4217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218   (exit $ac_status); }; } &&
4219          { ac_try='test -s conftest$ac_exeext'
4220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221   (eval $ac_try) 2>&5
4222   ac_status=$?
4223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224   (exit $ac_status); }; }; then
4225   eval "$as_ac_var=yes"
4226 else
4227   echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4229
4230 eval "$as_ac_var=no"
4231 fi
4232 rm -f conftest.err conftest.$ac_objext \
4233       conftest$ac_exeext conftest.$ac_ext
4234 fi
4235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4237 if test `eval echo '${'$as_ac_var'}'` = yes; then
4238   cat >>confdefs.h <<_ACEOF
4239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4240 _ACEOF
4241
4242 fi
4243 done
4244
4245 fi
4246
4247 echo "$as_me:$LINENO: checking whether vsnprintf is usable" >&5
4248 echo $ECHO_N "checking whether vsnprintf is usable... $ECHO_C" >&6
4249 if test "$cross_compiling" = yes; then
4250   ssp_have_usable_vsnprintf=undef
4251 else
4252   cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h.  */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h.  */
4258
4259 #include <stdarg.h>
4260 #include <string.h>
4261 #include <stdio.h>
4262 int foo (char *buf, size_t n, const char *fmt, ...)
4263 {
4264   va_list ap;
4265   int ret;
4266   va_start (ap, fmt);
4267   ret = vsnprintf (buf, n, fmt, ap);
4268   va_end (ap);
4269   return ret;
4270 }
4271 int
4272 main ()
4273 {
4274 char buf[8]; memset (buf, 'A', sizeof (buf));
4275  if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4276    return 1;
4277  return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4278   ;
4279   return 0;
4280 }
4281 _ACEOF
4282 rm -f conftest$ac_exeext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284   (eval $ac_link) 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289   (eval $ac_try) 2>&5
4290   ac_status=$?
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); }; }; then
4293   ssp_have_usable_vsnprintf=define
4294 else
4295   echo "$as_me: program exited with status $ac_status" >&5
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299 ( exit $ac_status )
4300 ssp_have_usable_vsnprintf=undef
4301 fi
4302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4303 fi
4304 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4305   echo "$as_me:$LINENO: result: yes" >&5
4306 echo "${ECHO_T}yes" >&6
4307
4308 cat >>confdefs.h <<\_ACEOF
4309 #define HAVE_USABLE_VSNPRINTF 1
4310 _ACEOF
4311
4312 else
4313   echo "$as_me:$LINENO: result: no" >&5
4314 echo "${ECHO_T}no" >&6
4315 fi
4316
4317
4318
4319
4320 macro_version='2.1a'
4321 macro_revision='1.2435'
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334 ltmain="$ac_aux_dir/ltmain.sh"
4335
4336 # Set options
4337
4338 enable_dlopen=no
4339
4340
4341 enable_win32_dll=no
4342
4343
4344 # Check whether --enable-shared or --disable-shared was given.
4345 if test "${enable_shared+set}" = set; then
4346   enableval="$enable_shared"
4347   p=${PACKAGE-default}
4348     case $enableval in
4349     yes) enable_shared=yes ;;
4350     no) enable_shared=no ;;
4351     *)
4352       enable_shared=no
4353       # Look at the argument we got.  We use all the common list separators.
4354       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4355       for pkg in $enableval; do
4356         IFS="$lt_save_ifs"
4357         if test "X$pkg" = "X$p"; then
4358           enable_shared=yes
4359         fi
4360       done
4361       IFS="$lt_save_ifs"
4362       ;;
4363     esac
4364 else
4365   enable_shared=yes
4366 fi;
4367
4368
4369
4370
4371
4372
4373
4374
4375 # Check whether --enable-static or --disable-static was given.
4376 if test "${enable_static+set}" = set; then
4377   enableval="$enable_static"
4378   p=${PACKAGE-default}
4379     case $enableval in
4380     yes) enable_static=yes ;;
4381     no) enable_static=no ;;
4382     *)
4383      enable_static=no
4384       # Look at the argument we got.  We use all the common list separators.
4385       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4386       for pkg in $enableval; do
4387         IFS="$lt_save_ifs"
4388         if test "X$pkg" = "X$p"; then
4389           enable_static=yes
4390         fi
4391       done
4392       IFS="$lt_save_ifs"
4393       ;;
4394     esac
4395 else
4396   enable_static=yes
4397 fi;
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407 # Check whether --with-pic or --without-pic was given.
4408 if test "${with_pic+set}" = set; then
4409   withval="$with_pic"
4410   pic_mode="$withval"
4411 else
4412   pic_mode=default
4413 fi;
4414
4415 test -z "$pic_mode" && pic_mode=default
4416
4417
4418
4419
4420
4421
4422
4423 # Check whether --enable-fast-install or --disable-fast-install was given.
4424 if test "${enable_fast_install+set}" = set; then
4425   enableval="$enable_fast_install"
4426   p=${PACKAGE-default}
4427     case $enableval in
4428     yes) enable_fast_install=yes ;;
4429     no) enable_fast_install=no ;;
4430     *)
4431       enable_fast_install=no
4432       # Look at the argument we got.  We use all the common list separators.
4433       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4434       for pkg in $enableval; do
4435         IFS="$lt_save_ifs"
4436         if test "X$pkg" = "X$p"; then
4437           enable_fast_install=yes
4438         fi
4439       done
4440       IFS="$lt_save_ifs"
4441       ;;
4442     esac
4443 else
4444   enable_fast_install=yes
4445 fi;
4446
4447
4448
4449
4450
4451
4452
4453
4454 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4455 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4456 if test "${lt_cv_path_SED+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   # Loop through the user's path and test for sed and gsed.
4460 # Then use that list of sed's as ones to test for truncation.
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466   for lt_ac_prog in sed gsed; do
4467     for ac_exec_ext in '' $ac_executable_extensions; do
4468       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4469         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4470       fi
4471     done
4472   done
4473 done
4474 IFS=$as_save_IFS
4475 lt_ac_max=0
4476 lt_ac_count=0
4477 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4478 # along with /bin/sed that truncates output.
4479 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4480   test ! -f $lt_ac_sed && continue
4481   cat /dev/null > conftest.in
4482   lt_ac_count=0
4483   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4484   # Check for GNU sed and select it if it is found.
4485   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4486     lt_cv_path_SED=$lt_ac_sed
4487     break
4488   fi
4489   while true; do
4490     cat conftest.in conftest.in >conftest.tmp
4491     mv conftest.tmp conftest.in
4492     cp conftest.in conftest.nl
4493     echo >>conftest.nl
4494     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4495     cmp -s conftest.out conftest.nl || break
4496     # 10000 chars as input seems more than enough
4497     test $lt_ac_count -gt 10 && break
4498     lt_ac_count=`expr $lt_ac_count + 1`
4499     if test $lt_ac_count -gt $lt_ac_max; then
4500       lt_ac_max=$lt_ac_count
4501       lt_cv_path_SED=$lt_ac_sed
4502     fi
4503   done
4504 done
4505
4506 fi
4507
4508 SED=$lt_cv_path_SED
4509
4510 echo "$as_me:$LINENO: result: $SED" >&5
4511 echo "${ECHO_T}$SED" >&6
4512
4513 test -z "$SED" && SED=sed
4514 Xsed="$SED -e 1s/^X//"
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526 echo "$as_me:$LINENO: checking for fgrep" >&5
4527 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4528 if test "${ac_cv_prog_fgrep+set}" = set; then
4529   echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4532     then ac_cv_prog_fgrep='grep -F'
4533     else ac_cv_prog_fgrep='fgrep'
4534     fi
4535 fi
4536 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4537 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4538  FGREP=$ac_cv_prog_fgrep
4539
4540
4541 test -z "$GREP" && GREP=grep
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4562 if test "${with_gnu_ld+set}" = set; then
4563   withval="$with_gnu_ld"
4564   test "$withval" = no || with_gnu_ld=yes
4565 else
4566   with_gnu_ld=no
4567 fi;
4568 ac_prog=ld
4569 if test "$GCC" = yes; then
4570   # Check if gcc -print-prog-name=ld gives a path.
4571   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4572 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4573   case $host in
4574   *-*-mingw*)
4575     # gcc leaves a trailing carriage return which upsets mingw
4576     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4577   *)
4578     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4579   esac
4580   case $ac_prog in
4581     # Accept absolute paths.
4582     [\\/]* | ?:[\\/]*)
4583       re_direlt='/[^/][^/]*/\.\./'
4584       # Canonicalize the pathname of ld
4585       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4586       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4587         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4588       done
4589       test -z "$LD" && LD="$ac_prog"
4590       ;;
4591   "")
4592     # If it fails, then pretend we aren't using GCC.
4593     ac_prog=ld
4594     ;;
4595   *)
4596     # If it is relative, then search for the first ld in PATH.
4597     with_gnu_ld=unknown
4598     ;;
4599   esac
4600 elif test "$with_gnu_ld" = yes; then
4601   echo "$as_me:$LINENO: checking for GNU ld" >&5
4602 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4603 else
4604   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4605 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4606 fi
4607 if test "${lt_cv_path_LD+set}" = set; then
4608   echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610   if test -z "$LD"; then
4611   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4612   for ac_dir in $PATH; do
4613     IFS="$lt_save_ifs"
4614     test -z "$ac_dir" && ac_dir=.
4615     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4616       lt_cv_path_LD="$ac_dir/$ac_prog"
4617       # Check to see if the program is GNU ld.  I'd rather use --version,
4618       # but apparently some variants of GNU ld only accept -v.
4619       # Break only if it was the GNU/non-GNU ld that we prefer.
4620       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4621       *GNU* | *'with BFD'*)
4622         test "$with_gnu_ld" != no && break
4623         ;;
4624       *)
4625         test "$with_gnu_ld" != yes && break
4626         ;;
4627       esac
4628     fi
4629   done
4630   IFS="$lt_save_ifs"
4631 else
4632   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4633 fi
4634 fi
4635
4636 LD="$lt_cv_path_LD"
4637 if test -n "$LD"; then
4638   echo "$as_me:$LINENO: result: $LD" >&5
4639 echo "${ECHO_T}$LD" >&6
4640 else
4641   echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6
4643 fi
4644 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4645 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4646    { (exit 1); exit 1; }; }
4647 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4648 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4649 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4650   echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4653 case `$LD -v 2>&1 </dev/null` in
4654 *GNU* | *'with BFD'*)
4655   lt_cv_prog_gnu_ld=yes
4656   ;;
4657 *)
4658   lt_cv_prog_gnu_ld=no
4659   ;;
4660 esac
4661 fi
4662 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4663 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4664 with_gnu_ld=$lt_cv_prog_gnu_ld
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4676 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
4677 if test "${lt_cv_path_NM+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680   if test -n "$NM"; then
4681   # Let the user override the test.
4682   lt_cv_path_NM="$NM"
4683 else
4684   lt_nm_to_check="${ac_tool_prefix}nm"
4685   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4686     lt_nm_to_check="$lt_nm_to_check nm"
4687   fi
4688   for lt_tmp_nm in $lt_nm_to_check; do
4689     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4690     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4691       IFS="$lt_save_ifs"
4692       test -z "$ac_dir" && ac_dir=.
4693       tmp_nm="$ac_dir/$lt_tmp_nm"
4694       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4695         # Check to see if the nm accepts a BSD-compat flag.
4696         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4697         #   nm: unknown option "B" ignored
4698         # Tru64's nm complains that /dev/null is an invalid object file
4699         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4700         */dev/null* | *'Invalid file or object type'*)
4701           lt_cv_path_NM="$tmp_nm -B"
4702           break
4703           ;;
4704         *)
4705           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4706           */dev/null*)
4707             lt_cv_path_NM="$tmp_nm -p"
4708             break
4709             ;;
4710           *)
4711             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4712             continue # so that we can try to find one that supports BSD flags
4713             ;;
4714           esac
4715           ;;
4716         esac
4717       fi
4718     done
4719     IFS="$lt_save_ifs"
4720   done
4721   : ${lt_cv_path_NM=no}
4722 fi
4723 fi
4724 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4725 echo "${ECHO_T}$lt_cv_path_NM" >&6
4726 if test "$lt_cv_path_NM" != "no"; then
4727   NM="$lt_cv_path_NM"
4728 else
4729   # Didn't find any BSD compatible name lister, look for dumpbin.
4730   if test -n "$ac_tool_prefix"; then
4731   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4732   do
4733     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4735 echo "$as_me:$LINENO: checking for $ac_word" >&5
4736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4737 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4738   echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740   if test -n "$DUMPBIN"; then
4741   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4745 do
4746   IFS=$as_save_IFS
4747   test -z "$as_dir" && as_dir=.
4748   for ac_exec_ext in '' $ac_executable_extensions; do
4749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4750     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752     break 2
4753   fi
4754 done
4755 done
4756
4757 fi
4758 fi
4759 DUMPBIN=$ac_cv_prog_DUMPBIN
4760 if test -n "$DUMPBIN"; then
4761   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4762 echo "${ECHO_T}$DUMPBIN" >&6
4763 else
4764   echo "$as_me:$LINENO: result: no" >&5
4765 echo "${ECHO_T}no" >&6
4766 fi
4767
4768     test -n "$DUMPBIN" && break
4769   done
4770 fi
4771 if test -z "$DUMPBIN"; then
4772   ac_ct_DUMPBIN=$DUMPBIN
4773   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4774 do
4775   # Extract the first word of "$ac_prog", so it can be a program name with args.
4776 set dummy $ac_prog; ac_word=$2
4777 echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4779 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4780   echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782   if test -n "$ac_ct_DUMPBIN"; then
4783   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788   IFS=$as_save_IFS
4789   test -z "$as_dir" && as_dir=.
4790   for ac_exec_ext in '' $ac_executable_extensions; do
4791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4792     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794     break 2
4795   fi
4796 done
4797 done
4798
4799 fi
4800 fi
4801 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4802 if test -n "$ac_ct_DUMPBIN"; then
4803   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4804 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4805 else
4806   echo "$as_me:$LINENO: result: no" >&5
4807 echo "${ECHO_T}no" >&6
4808 fi
4809
4810   test -n "$ac_ct_DUMPBIN" && break
4811 done
4812 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
4813
4814   DUMPBIN=$ac_ct_DUMPBIN
4815 fi
4816
4817
4818   if test "$DUMPBIN" != ":"; then
4819     NM="$DUMPBIN"
4820   fi
4821 fi
4822 test -z "$NM" && NM=nm
4823
4824
4825
4826
4827
4828
4829 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4830 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4831 if test "${lt_cv_nm_interface+set}" = set; then
4832   echo $ECHO_N "(cached) $ECHO_C" >&6
4833 else
4834   lt_cv_nm_interface="BSD nm"
4835   echo "int some_variable = 0;" > conftest.$ac_ext
4836   (eval echo "\"\$as_me:4836: $ac_compile\"" >&5)
4837   (eval "$ac_compile" 2>conftest.err)
4838   cat conftest.err >&5
4839   (eval echo "\"\$as_me:4839: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4840   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4841   cat conftest.err >&5
4842   (eval echo "\"\$as_me:4842: output\"" >&5)
4843   cat conftest.out >&5
4844   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4845     lt_cv_nm_interface="MS dumpbin"
4846   fi
4847   rm -f conftest*
4848 fi
4849 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4850 echo "${ECHO_T}$lt_cv_nm_interface" >&6
4851
4852 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4853 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4854 LN_S=$as_ln_s
4855 if test "$LN_S" = "ln -s"; then
4856   echo "$as_me:$LINENO: result: yes" >&5
4857 echo "${ECHO_T}yes" >&6
4858 else
4859   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4860 echo "${ECHO_T}no, using $LN_S" >&6
4861 fi
4862
4863 # find the maximum length of command line arguments
4864 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4865 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4866 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4867   echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869     i=0
4870   teststring="ABCD"
4871
4872   case $build_os in
4873   msdosdjgpp*)
4874     # On DJGPP, this test can blow up pretty badly due to problems in libc
4875     # (any single argument exceeding 2000 bytes causes a buffer overrun
4876     # during glob expansion).  Even if it were fixed, the result of this
4877     # check would be larger than it should be.
4878     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4879     ;;
4880
4881   gnu*)
4882     # Under GNU Hurd, this test is not required because there is
4883     # no limit to the length of command line arguments.
4884     # Libtool will interpret -1 as no limit whatsoever
4885     lt_cv_sys_max_cmd_len=-1;
4886     ;;
4887
4888   cygwin* | mingw*)
4889     # On Win9x/ME, this test blows up -- it succeeds, but takes
4890     # about 5 minutes as the teststring grows exponentially.
4891     # Worse, since 9x/ME are not pre-emptively multitasking,
4892     # you end up with a "frozen" computer, even though with patience
4893     # the test eventually succeeds (with a max line length of 256k).
4894     # Instead, let's just punt: use the minimum linelength reported by
4895     # all of the supported platforms: 8192 (on NT/2K/XP).
4896     lt_cv_sys_max_cmd_len=8192;
4897     ;;
4898
4899   amigaos*)
4900     # On AmigaOS with pdksh, this test takes hours, literally.
4901     # So we just punt and use a minimum line length of 8192.
4902     lt_cv_sys_max_cmd_len=8192;
4903     ;;
4904
4905   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4906     # This has been around since 386BSD, at least.  Likely further.
4907     if test -x /sbin/sysctl; then
4908       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4909     elif test -x /usr/sbin/sysctl; then
4910       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4911     else
4912       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4913     fi
4914     # And add a safety zone
4915     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4916     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4917     ;;
4918
4919   interix*)
4920     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4921     lt_cv_sys_max_cmd_len=196608
4922     ;;
4923
4924   osf*)
4925     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4926     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4927     # nice to cause kernel panics so lets avoid the loop below.
4928     # First set a reasonable default.
4929     lt_cv_sys_max_cmd_len=16384
4930     #
4931     if test -x /sbin/sysconfig; then
4932       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4933         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4934       esac
4935     fi
4936     ;;
4937   sco3.2v5*)
4938     lt_cv_sys_max_cmd_len=102400
4939     ;;
4940   sysv5* | sco5v6* | sysv4.2uw2*)
4941     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4942     if test -n "$kargmax"; then
4943       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4944     else
4945       lt_cv_sys_max_cmd_len=32768
4946     fi
4947     ;;
4948   *)
4949     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4950     if test -n $lt_cv_sys_max_cmd_len; then
4951       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4952       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4953     else
4954       # Make teststring a little bigger before we do anything with it.
4955       # a 1K string should be a reasonable start.
4956       for i in 1 2 3 4 5 6 7 8 ; do
4957         teststring=$teststring$teststring
4958       done
4959       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4960       # If test is not a shell built-in, we'll probably end up computing a
4961       # maximum length that is only half of the actual maximum length, but
4962       # we can't tell.
4963       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4964                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4965               test $i != 17 # 1/2 MB should be enough
4966       do
4967         i=`expr $i + 1`
4968         teststring=$teststring$teststring
4969       done
4970       # Only check the string length outside the loop.
4971       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4972       teststring=
4973       # Add a significant safety factor because C++ compilers can tack on
4974       # massive amounts of additional arguments before passing them to the
4975       # linker.  It appears as though 1/2 is a usable value.
4976       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4977     fi
4978     ;;
4979   esac
4980
4981 fi
4982
4983 if test -n $lt_cv_sys_max_cmd_len ; then
4984   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4985 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4986 else
4987   echo "$as_me:$LINENO: result: none" >&5
4988 echo "${ECHO_T}none" >&6
4989 fi
4990 max_cmd_len=$lt_cv_sys_max_cmd_len
4991
4992
4993
4994
4995
4996
4997
4998 : ${CP="cp -f"}
4999 : ${MV="mv -f"}
5000 : ${RM="rm -f"}
5001
5002 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5003 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5004 # Try some XSI features
5005 xsi_shell=no
5006 ( _lt_dummy="a/b/c"
5007   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5008       = c,a/b,, ) >/dev/null 2>&1 \
5009   && xsi_shell=yes
5010 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5011 echo "${ECHO_T}$xsi_shell" >&6
5012
5013
5014 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5015 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5016 lt_shell_append=no
5017 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5018     >/dev/null 2>&1 \
5019   && lt_shell_append=yes
5020 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5021 echo "${ECHO_T}$lt_shell_append" >&6
5022
5023
5024 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5025   lt_unset=unset
5026 else
5027   lt_unset=false
5028 fi
5029
5030
5031
5032
5033
5034 # test EBCDIC or ASCII
5035 case `echo X|tr X '\101'` in
5036  A) # ASCII based system
5037     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5038   lt_SP2NL='tr \040 \012'
5039   lt_NL2SP='tr \015\012 \040\040'
5040   ;;
5041  *) # EBCDIC based system
5042   lt_SP2NL='tr \100 \n'
5043   lt_NL2SP='tr \r\n \100\100'
5044   ;;
5045 esac
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5056 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5057 if test "${lt_cv_ld_reload_flag+set}" = set; then
5058   echo $ECHO_N "(cached) $ECHO_C" >&6
5059 else
5060   lt_cv_ld_reload_flag='-r'
5061 fi
5062 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5063 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5064 reload_flag=$lt_cv_ld_reload_flag
5065 case $reload_flag in
5066 "" | " "*) ;;
5067 *) reload_flag=" $reload_flag" ;;
5068 esac
5069 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5070 case $host_os in
5071   darwin*)
5072     if test "$GCC" = yes; then
5073       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5074     else
5075       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5076     fi
5077     ;;
5078 esac
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5090 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5091 if test "${lt_cv_deplibs_check_method+set}" = set; then
5092   echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094   lt_cv_file_magic_cmd='$MAGIC_CMD'
5095 lt_cv_file_magic_test_file=
5096 lt_cv_deplibs_check_method='unknown'
5097 # Need to set the preceding variable on all platforms that support
5098 # interlibrary dependencies.
5099 # 'none' -- dependencies not supported.
5100 # `unknown' -- same as none, but documents that we really don't know.
5101 # 'pass_all' -- all dependencies passed with no checks.
5102 # 'test_compile' -- check by making test program.
5103 # 'file_magic [[regex]]' -- check by looking for files in library path
5104 # which responds to the $file_magic_cmd with a given extended regex.
5105 # If you have `file' or equivalent on your system and you're not sure
5106 # whether `pass_all' will *always* work, you probably want this one.
5107
5108 case $host_os in
5109 aix[4-9]*)
5110   lt_cv_deplibs_check_method=pass_all
5111   ;;
5112
5113 beos*)
5114   lt_cv_deplibs_check_method=pass_all
5115   ;;
5116
5117 bsdi[45]*)
5118   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5119   lt_cv_file_magic_cmd='/usr/bin/file -L'
5120   lt_cv_file_magic_test_file=/shlib/libc.so
5121   ;;
5122
5123 cygwin*)
5124   # func_win32_libid is a shell function defined in ltmain.sh
5125   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5126   lt_cv_file_magic_cmd='func_win32_libid'
5127   ;;
5128
5129 mingw* | pw32*)
5130   # Base MSYS/MinGW do not provide the 'file' command needed by
5131   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5132   # unless we find 'file', for example because we are cross-compiling.
5133   if ( file / ) >/dev/null 2>&1; then
5134     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5135     lt_cv_file_magic_cmd='func_win32_libid'
5136   else
5137     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5138     lt_cv_file_magic_cmd='$OBJDUMP -f'
5139   fi
5140   ;;
5141
5142 darwin* | rhapsody*)
5143   lt_cv_deplibs_check_method=pass_all
5144   ;;
5145
5146 freebsd* | dragonfly*)
5147   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5148     case $host_cpu in
5149     i*86 )
5150       # Not sure whether the presence of OpenBSD here was a mistake.
5151       # Let's accept both of them until this is cleared up.
5152       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5153       lt_cv_file_magic_cmd=/usr/bin/file
5154       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5155       ;;
5156     esac
5157   else
5158     lt_cv_deplibs_check_method=pass_all
5159   fi
5160   ;;
5161
5162 gnu*)
5163   lt_cv_deplibs_check_method=pass_all
5164   ;;
5165
5166 hpux10.20* | hpux11*)
5167   lt_cv_file_magic_cmd=/usr/bin/file
5168   case $host_cpu in
5169   ia64*)
5170     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5171     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5172     ;;
5173   hppa*64*)
5174     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]'
5175     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5176     ;;
5177   *)
5178     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5179     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5180     ;;
5181   esac
5182   ;;
5183
5184 interix[3-9]*)
5185   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5186   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5187   ;;
5188
5189 irix5* | irix6* | nonstopux*)
5190   case $LD in
5191   *-32|*"-32 ") libmagic=32-bit;;
5192   *-n32|*"-n32 ") libmagic=N32;;
5193   *-64|*"-64 ") libmagic=64-bit;;
5194   *) libmagic=never-match;;
5195   esac
5196   lt_cv_deplibs_check_method=pass_all
5197   ;;
5198
5199 # This must be Linux ELF.
5200 linux* | k*bsd*-gnu)
5201   lt_cv_deplibs_check_method=pass_all
5202   ;;
5203
5204 netbsd*)
5205   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5206     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5207   else
5208     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5209   fi
5210   ;;
5211
5212 newos6*)
5213   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5214   lt_cv_file_magic_cmd=/usr/bin/file
5215   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5216   ;;
5217
5218 *nto* | *qnx*)
5219   lt_cv_deplibs_check_method=pass_all
5220   ;;
5221
5222 openbsd*)
5223   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5224     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5225   else
5226     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5227   fi
5228   ;;
5229
5230 osf3* | osf4* | osf5*)
5231   lt_cv_deplibs_check_method=pass_all
5232   ;;
5233
5234 rdos*)
5235   lt_cv_deplibs_check_method=pass_all
5236   ;;
5237
5238 solaris*)
5239   lt_cv_deplibs_check_method=pass_all
5240   ;;
5241
5242 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5243   lt_cv_deplibs_check_method=pass_all
5244   ;;
5245
5246 sysv4 | sysv4.3*)
5247   case $host_vendor in
5248   motorola)
5249     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]'
5250     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5251     ;;
5252   ncr)
5253     lt_cv_deplibs_check_method=pass_all
5254     ;;
5255   sequent)
5256     lt_cv_file_magic_cmd='/bin/file'
5257     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5258     ;;
5259   sni)
5260     lt_cv_file_magic_cmd='/bin/file'
5261     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5262     lt_cv_file_magic_test_file=/lib/libc.so
5263     ;;
5264   siemens)
5265     lt_cv_deplibs_check_method=pass_all
5266     ;;
5267   pc)
5268     lt_cv_deplibs_check_method=pass_all
5269     ;;
5270   esac
5271   ;;
5272
5273 tpf*)
5274   lt_cv_deplibs_check_method=pass_all
5275   ;;
5276 esac
5277
5278 fi
5279 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5280 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5281 file_magic_cmd=$lt_cv_file_magic_cmd
5282 deplibs_check_method=$lt_cv_deplibs_check_method
5283 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 if test -n "$ac_tool_prefix"; then
5297   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5298 set dummy ${ac_tool_prefix}ar; ac_word=$2
5299 echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301 if test "${ac_cv_prog_AR+set}" = set; then
5302   echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304   if test -n "$AR"; then
5305   ac_cv_prog_AR="$AR" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5309 do
5310   IFS=$as_save_IFS
5311   test -z "$as_dir" && as_dir=.
5312   for ac_exec_ext in '' $ac_executable_extensions; do
5313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314     ac_cv_prog_AR="${ac_tool_prefix}ar"
5315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316     break 2
5317   fi
5318 done
5319 done
5320
5321 fi
5322 fi
5323 AR=$ac_cv_prog_AR
5324 if test -n "$AR"; then
5325   echo "$as_me:$LINENO: result: $AR" >&5
5326 echo "${ECHO_T}$AR" >&6
5327 else
5328   echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5330 fi
5331
5332 fi
5333 if test -z "$ac_cv_prog_AR"; then
5334   ac_ct_AR=$AR
5335   # Extract the first word of "ar", so it can be a program name with args.
5336 set dummy ar; ac_word=$2
5337 echo "$as_me:$LINENO: checking for $ac_word" >&5
5338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5339 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5340   echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342   if test -n "$ac_ct_AR"; then
5343   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5347 do
5348   IFS=$as_save_IFS
5349   test -z "$as_dir" && as_dir=.
5350   for ac_exec_ext in '' $ac_executable_extensions; do
5351   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352     ac_cv_prog_ac_ct_AR="ar"
5353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354     break 2
5355   fi
5356 done
5357 done
5358
5359   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5360 fi
5361 fi
5362 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5363 if test -n "$ac_ct_AR"; then
5364   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5365 echo "${ECHO_T}$ac_ct_AR" >&6
5366 else
5367   echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6
5369 fi
5370
5371   AR=$ac_ct_AR
5372 else
5373   AR="$ac_cv_prog_AR"
5374 fi
5375
5376 test -z "$AR" && AR=ar
5377 test -z "$AR_FLAGS" && AR_FLAGS=cru
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389 if test -n "$ac_tool_prefix"; then
5390   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5391 set dummy ${ac_tool_prefix}strip; ac_word=$2
5392 echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5394 if test "${ac_cv_prog_STRIP+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   if test -n "$STRIP"; then
5398   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403   IFS=$as_save_IFS
5404   test -z "$as_dir" && as_dir=.
5405   for ac_exec_ext in '' $ac_executable_extensions; do
5406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409     break 2
5410   fi
5411 done
5412 done
5413
5414 fi
5415 fi
5416 STRIP=$ac_cv_prog_STRIP
5417 if test -n "$STRIP"; then
5418   echo "$as_me:$LINENO: result: $STRIP" >&5
5419 echo "${ECHO_T}$STRIP" >&6
5420 else
5421   echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6
5423 fi
5424
5425 fi
5426 if test -z "$ac_cv_prog_STRIP"; then
5427   ac_ct_STRIP=$STRIP
5428   # Extract the first word of "strip", so it can be a program name with args.
5429 set dummy strip; ac_word=$2
5430 echo "$as_me:$LINENO: checking for $ac_word" >&5
5431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5432 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5433   echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435   if test -n "$ac_ct_STRIP"; then
5436   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5437 else
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5440 do
5441   IFS=$as_save_IFS
5442   test -z "$as_dir" && as_dir=.
5443   for ac_exec_ext in '' $ac_executable_extensions; do
5444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445     ac_cv_prog_ac_ct_STRIP="strip"
5446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5447     break 2
5448   fi
5449 done
5450 done
5451
5452   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5453 fi
5454 fi
5455 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5456 if test -n "$ac_ct_STRIP"; then
5457   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5458 echo "${ECHO_T}$ac_ct_STRIP" >&6
5459 else
5460   echo "$as_me:$LINENO: result: no" >&5
5461 echo "${ECHO_T}no" >&6
5462 fi
5463
5464   STRIP=$ac_ct_STRIP
5465 else
5466   STRIP="$ac_cv_prog_STRIP"
5467 fi
5468
5469 test -z "$STRIP" && STRIP=:
5470
5471
5472
5473
5474
5475
5476 if test -n "$ac_tool_prefix"; then
5477   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5478 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5479 echo "$as_me:$LINENO: checking for $ac_word" >&5
5480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5481 if test "${ac_cv_prog_RANLIB+set}" = set; then
5482   echo $ECHO_N "(cached) $ECHO_C" >&6
5483 else
5484   if test -n "$RANLIB"; then
5485   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5489 do
5490   IFS=$as_save_IFS
5491   test -z "$as_dir" && as_dir=.
5492   for ac_exec_ext in '' $ac_executable_extensions; do
5493   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5494     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5496     break 2
5497   fi
5498 done
5499 done
5500
5501 fi
5502 fi
5503 RANLIB=$ac_cv_prog_RANLIB
5504 if test -n "$RANLIB"; then
5505   echo "$as_me:$LINENO: result: $RANLIB" >&5
5506 echo "${ECHO_T}$RANLIB" >&6
5507 else
5508   echo "$as_me:$LINENO: result: no" >&5
5509 echo "${ECHO_T}no" >&6
5510 fi
5511
5512 fi
5513 if test -z "$ac_cv_prog_RANLIB"; then
5514   ac_ct_RANLIB=$RANLIB
5515   # Extract the first word of "ranlib", so it can be a program name with args.
5516 set dummy ranlib; ac_word=$2
5517 echo "$as_me:$LINENO: checking for $ac_word" >&5
5518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5519 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5520   echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522   if test -n "$ac_ct_RANLIB"; then
5523   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528   IFS=$as_save_IFS
5529   test -z "$as_dir" && as_dir=.
5530   for ac_exec_ext in '' $ac_executable_extensions; do
5531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532     ac_cv_prog_ac_ct_RANLIB="ranlib"
5533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5534     break 2
5535   fi
5536 done
5537 done
5538
5539   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5540 fi
5541 fi
5542 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5543 if test -n "$ac_ct_RANLIB"; then
5544   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5545 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5546 else
5547   echo "$as_me:$LINENO: result: no" >&5
5548 echo "${ECHO_T}no" >&6
5549 fi
5550
5551   RANLIB=$ac_ct_RANLIB
5552 else
5553   RANLIB="$ac_cv_prog_RANLIB"
5554 fi
5555
5556 test -z "$RANLIB" && RANLIB=:
5557
5558
5559
5560
5561
5562
5563 # Determine commands to create old-style static archives.
5564 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5565 old_postinstall_cmds='chmod 644 $oldlib'
5566 old_postuninstall_cmds=
5567
5568 if test -n "$RANLIB"; then
5569   case $host_os in
5570   openbsd*)
5571     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5572     ;;
5573   *)
5574     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5575     ;;
5576   esac
5577   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5578 fi
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613 # If no C compiler was specified, use CC.
5614 LTCC=${LTCC-"$CC"}
5615
5616 # If no C compiler flags were specified, use CFLAGS.
5617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5618
5619 # Allow CC to be a program name with arguments.
5620 compiler=$CC
5621
5622
5623 # Check for command to grab the raw symbol name followed by C symbol from nm.
5624 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5625 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5626 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629
5630 # These are sane defaults that work on at least a few old systems.
5631 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5632
5633 # Character class describing NM global symbol codes.
5634 symcode='[BCDEGRST]'
5635
5636 # Regexp to match symbols that can be accessed directly from C.
5637 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5638
5639 # Define system-specific variables.
5640 case $host_os in
5641 aix*)
5642   symcode='[BCDT]'
5643   ;;
5644 cygwin* | mingw* | pw32*)
5645   symcode='[ABCDGISTW]'
5646   ;;
5647 hpux*)
5648   if test "$host_cpu" = ia64; then
5649     symcode='[ABCDEGRST]'
5650   fi
5651   ;;
5652 irix* | nonstopux*)
5653   symcode='[BCDEGRST]'
5654   ;;
5655 osf*)
5656   symcode='[BCDEGQRST]'
5657   ;;
5658 solaris*)
5659   symcode='[BDRT]'
5660   ;;
5661 sco3.2v5*)
5662   symcode='[DT]'
5663   ;;
5664 sysv4.2uw2*)
5665   symcode='[DT]'
5666   ;;
5667 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5668   symcode='[ABDT]'
5669   ;;
5670 sysv4)
5671   symcode='[DFNSTU]'
5672   ;;
5673 esac
5674
5675 # If we're using GNU nm, then use its standard symbol codes.
5676 case `$NM -V 2>&1` in
5677 *GNU* | *'with BFD'*)
5678   symcode='[ABCDGIRSTW]' ;;
5679 esac
5680
5681 # Transform an extracted symbol line into a proper C declaration.
5682 # Some systems (esp. on ia64) link data and code symbols differently,
5683 # so use this general approach.
5684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5685
5686 # Transform an extracted symbol line into symbol name and symbol address
5687 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5688
5689 # Handle CRLF in mingw tool chain
5690 opt_cr=
5691 case $build_os in
5692 mingw*)
5693   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5694   ;;
5695 esac
5696
5697 # Try without a prefix underscore, then with it.
5698 for ac_symprfx in "" "_"; do
5699
5700   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5701   symxfrm="\\1 $ac_symprfx\\2 \\2"
5702
5703   # Write the raw and C identifiers.
5704   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5705     # Fake it for dumpbin and say T for any non-static function
5706     # and D for any global variable.
5707     # Also find C++ and __fastcall symbols from MSVC++,
5708     # which start with @ or ?.
5709     lt_cv_sys_global_symbol_pipe="$AWK '"\
5710 "     {last_section=section; section=\$ 3};"\
5711 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5712 "     \$ 0!~/External *\|/{next};"\
5713 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5714 "     {if(hide[section]) next};"\
5715 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5716 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5717 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5718 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5719 "     ' prfx=^$ac_symprfx"
5720   else
5721     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5722   fi
5723
5724   # Check to see that the pipe works correctly.
5725   pipe_works=no
5726
5727   rm -f conftest*
5728   cat > conftest.$ac_ext <<_LT_EOF
5729 #ifdef __cplusplus
5730 extern "C" {
5731 #endif
5732 char nm_test_var;
5733 void nm_test_func(void);
5734 void nm_test_func(void){}
5735 #ifdef __cplusplus
5736 }
5737 #endif
5738 int main(){nm_test_var='a';nm_test_func();return(0);}
5739 _LT_EOF
5740
5741   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5742   (eval $ac_compile) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); }; then
5746     # Now try to grab the symbols.
5747     nlist=conftest.nm
5748     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5749   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); } && test -s "$nlist"; then
5753       # Try sorting and uniquifying the output.
5754       if sort "$nlist" | uniq > "$nlist"T; then
5755         mv -f "$nlist"T "$nlist"
5756       else
5757         rm -f "$nlist"T
5758       fi
5759
5760       # Make sure that we snagged all the symbols we need.
5761       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5762         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5763           cat <<_LT_EOF > conftest.$ac_ext
5764 #ifdef __cplusplus
5765 extern "C" {
5766 #endif
5767
5768 _LT_EOF
5769           # Now generate the symbol file.
5770           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5771
5772           cat <<_LT_EOF >> conftest.$ac_ext
5773
5774 /* The mapping between symbol names and symbols.  */
5775 const struct {
5776   const char *name;
5777   void       *address;
5778 }
5779 lt__PROGRAM__LTX_preloaded_symbols[] =
5780 {
5781   { "@PROGRAM@", (void *) 0 },
5782 _LT_EOF
5783           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5784           cat <<\_LT_EOF >> conftest.$ac_ext
5785   {0, (void *) 0}
5786 };
5787
5788 /* This works around a problem in FreeBSD linker */
5789 #ifdef FREEBSD_WORKAROUND
5790 static const void *lt_preloaded_setup() {
5791   return lt__PROGRAM__LTX_preloaded_symbols;
5792 }
5793 #endif
5794
5795 #ifdef __cplusplus
5796 }
5797 #endif
5798 _LT_EOF
5799           # Now try linking the two files.
5800           mv conftest.$ac_objext conftstm.$ac_objext
5801           lt_save_LIBS="$LIBS"
5802           lt_save_CFLAGS="$CFLAGS"
5803           LIBS="conftstm.$ac_objext"
5804           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5805           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806   (eval $ac_link) 2>&5
5807   ac_status=$?
5808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5810             pipe_works=yes
5811           fi
5812           LIBS="$lt_save_LIBS"
5813           CFLAGS="$lt_save_CFLAGS"
5814         else
5815           echo "cannot find nm_test_func in $nlist" >&5
5816         fi
5817       else
5818         echo "cannot find nm_test_var in $nlist" >&5
5819       fi
5820     else
5821       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5822     fi
5823   else
5824     echo "$progname: failed program was:" >&5
5825     cat conftest.$ac_ext >&5
5826   fi
5827   rm -f conftest* conftst*
5828
5829   # Do not use the global_symbol_pipe unless it works.
5830   if test "$pipe_works" = yes; then
5831     break
5832   else
5833     lt_cv_sys_global_symbol_pipe=
5834   fi
5835 done
5836
5837 fi
5838
5839 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5840   lt_cv_sys_global_symbol_to_cdecl=
5841 fi
5842 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5843   echo "$as_me:$LINENO: result: failed" >&5
5844 echo "${ECHO_T}failed" >&6
5845 else
5846   echo "$as_me:$LINENO: result: ok" >&5
5847 echo "${ECHO_T}ok" >&6
5848 fi
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5867 if test "${enable_libtool_lock+set}" = set; then
5868   enableval="$enable_libtool_lock"
5869
5870 fi;
5871 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5872
5873 # Some flags need to be propagated to the compiler or linker for good
5874 # libtool support.
5875 case $host in
5876 ia64-*-hpux*)
5877   # Find out which ABI we are using.
5878   echo 'int i;' > conftest.$ac_ext
5879   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5880   (eval $ac_compile) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; then
5884     case `/usr/bin/file conftest.$ac_objext` in
5885       *ELF-32*)
5886         HPUX_IA64_MODE="32"
5887         ;;
5888       *ELF-64*)
5889         HPUX_IA64_MODE="64"
5890         ;;
5891     esac
5892   fi
5893   rm -rf conftest*
5894   ;;
5895 *-*-irix6*)
5896   # Find out which ABI we are using.
5897   echo '#line 5897 "configure"' > conftest.$ac_ext
5898   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5899   (eval $ac_compile) 2>&5
5900   ac_status=$?
5901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902   (exit $ac_status); }; then
5903     if test "$lt_cv_prog_gnu_ld" = yes; then
5904       case `/usr/bin/file conftest.$ac_objext` in
5905         *32-bit*)
5906           LD="${LD-ld} -melf32bsmip"
5907           ;;
5908         *N32*)
5909           LD="${LD-ld} -melf32bmipn32"
5910           ;;
5911         *64-bit*)
5912           LD="${LD-ld} -melf64bmip"
5913         ;;
5914       esac
5915     else
5916       case `/usr/bin/file conftest.$ac_objext` in
5917         *32-bit*)
5918           LD="${LD-ld} -32"
5919           ;;
5920         *N32*)
5921           LD="${LD-ld} -n32"
5922           ;;
5923         *64-bit*)
5924           LD="${LD-ld} -64"
5925           ;;
5926       esac
5927     fi
5928   fi
5929   rm -rf conftest*
5930   ;;
5931
5932 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5933 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5934   # Find out which ABI we are using.
5935   echo 'int i;' > conftest.$ac_ext
5936   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937   (eval $ac_compile) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); }; then
5941     case `/usr/bin/file conftest.o` in
5942       *32-bit*)
5943         case $host in
5944           x86_64-*kfreebsd*-gnu)
5945             LD="${LD-ld} -m elf_i386_fbsd"
5946             ;;
5947           x86_64-*linux*)
5948             LD="${LD-ld} -m elf_i386"
5949             ;;
5950           ppc64-*linux*|powerpc64-*linux*)
5951             LD="${LD-ld} -m elf32ppclinux"
5952             ;;
5953           s390x-*linux*)
5954             LD="${LD-ld} -m elf_s390"
5955             ;;
5956           sparc64-*linux*)
5957             LD="${LD-ld} -m elf32_sparc"
5958             ;;
5959         esac
5960         ;;
5961       *64-bit*)
5962         case $host in
5963           x86_64-*kfreebsd*-gnu)
5964             LD="${LD-ld} -m elf_x86_64_fbsd"
5965             ;;
5966           x86_64-*linux*)
5967             LD="${LD-ld} -m elf_x86_64"
5968             ;;
5969           ppc*-*linux*|powerpc*-*linux*)
5970             LD="${LD-ld} -m elf64ppc"
5971             ;;
5972           s390*-*linux*|s390*-*tpf*)
5973             LD="${LD-ld} -m elf64_s390"
5974             ;;
5975           sparc*-*linux*)
5976             LD="${LD-ld} -m elf64_sparc"
5977             ;;
5978         esac
5979         ;;
5980     esac
5981   fi
5982   rm -rf conftest*
5983   ;;
5984
5985 *-*-sco3.2v5*)
5986   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5987   SAVE_CFLAGS="$CFLAGS"
5988   CFLAGS="$CFLAGS -belf"
5989   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5990 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5991 if test "${lt_cv_cc_needs_belf+set}" = set; then
5992   echo $ECHO_N "(cached) $ECHO_C" >&6
5993 else
5994   ac_ext=c
5995 ac_cpp='$CPP $CPPFLAGS'
5996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5999
6000      if test x$gcc_no_link = xyes; then
6001   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6002 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6003    { (exit 1); exit 1; }; }
6004 fi
6005 cat >conftest.$ac_ext <<_ACEOF
6006 /* confdefs.h.  */
6007 _ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h.  */
6011
6012 int
6013 main ()
6014 {
6015
6016   ;
6017   return 0;
6018 }
6019 _ACEOF
6020 rm -f conftest.$ac_objext conftest$ac_exeext
6021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6022   (eval $ac_link) 2>conftest.er1
6023   ac_status=$?
6024   grep -v '^ *+' conftest.er1 >conftest.err
6025   rm -f conftest.er1
6026   cat conftest.err >&5
6027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028   (exit $ac_status); } &&
6029          { ac_try='test -z "$ac_c_werror_flag"
6030                          || test ! -s conftest.err'
6031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032   (eval $ac_try) 2>&5
6033   ac_status=$?
6034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035   (exit $ac_status); }; } &&
6036          { ac_try='test -s conftest$ac_exeext'
6037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038   (eval $ac_try) 2>&5
6039   ac_status=$?
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); }; }; then
6042   lt_cv_cc_needs_belf=yes
6043 else
6044   echo "$as_me: failed program was:" >&5
6045 sed 's/^/| /' conftest.$ac_ext >&5
6046
6047 lt_cv_cc_needs_belf=no
6048 fi
6049 rm -f conftest.err conftest.$ac_objext \
6050       conftest$ac_exeext conftest.$ac_ext
6051      ac_ext=c
6052 ac_cpp='$CPP $CPPFLAGS'
6053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6056
6057 fi
6058 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6059 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6060   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6061     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6062     CFLAGS="$SAVE_CFLAGS"
6063   fi
6064   ;;
6065 sparc*-*solaris*)
6066   # Find out which ABI we are using.
6067   echo 'int i;' > conftest.$ac_ext
6068   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069   (eval $ac_compile) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); }; then
6073     case `/usr/bin/file conftest.o` in
6074     *64-bit*)
6075       case $lt_cv_prog_gnu_ld in
6076       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6077       *)    LD="${LD-ld} -64" ;;
6078       esac
6079       ;;
6080     esac
6081   fi
6082   rm -rf conftest*
6083   ;;
6084 esac
6085
6086 need_locks="$enable_libtool_lock"
6087
6088
6089 for ac_header in dlfcn.h
6090 do
6091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6092 echo "$as_me:$LINENO: checking for $ac_header" >&5
6093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6095   echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097   cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h.  */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h.  */
6103 $ac_includes_default
6104
6105 #include <$ac_header>
6106 _ACEOF
6107 rm -f conftest.$ac_objext
6108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6109   (eval $ac_compile) 2>conftest.er1
6110   ac_status=$?
6111   grep -v '^ *+' conftest.er1 >conftest.err
6112   rm -f conftest.er1
6113   cat conftest.err >&5
6114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115   (exit $ac_status); } &&
6116          { ac_try='test -z "$ac_c_werror_flag"
6117                          || test ! -s conftest.err'
6118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119   (eval $ac_try) 2>&5
6120   ac_status=$?
6121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); }; } &&
6123          { ac_try='test -s conftest.$ac_objext'
6124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125   (eval $ac_try) 2>&5
6126   ac_status=$?
6127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128   (exit $ac_status); }; }; then
6129   eval "$as_ac_Header=yes"
6130 else
6131   echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6133
6134 eval "$as_ac_Header=no"
6135 fi
6136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6137 fi
6138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6141   cat >>confdefs.h <<_ACEOF
6142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6143 _ACEOF
6144
6145 fi
6146
6147 done
6148
6149
6150
6151 # This can be used to rebuild libtool when needed
6152 LIBTOOL_DEPS="$ltmain"
6153
6154 # Always use our own libtool.
6155 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181 test -z "$LN_S" && LN_S="ln -s"
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196 if test -n "${ZSH_VERSION+set}" ; then
6197    setopt NO_GLOB_SUBST
6198 fi
6199
6200 echo "$as_me:$LINENO: checking for objdir" >&5
6201 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6202 if test "${lt_cv_objdir+set}" = set; then
6203   echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205   rm -f .libs 2>/dev/null
6206 mkdir .libs 2>/dev/null
6207 if test -d .libs; then
6208   lt_cv_objdir=.libs
6209 else
6210   # MS-DOS does not allow filenames that begin with a dot.
6211   lt_cv_objdir=_libs
6212 fi
6213 rmdir .libs 2>/dev/null
6214 fi
6215 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6216 echo "${ECHO_T}$lt_cv_objdir" >&6
6217 objdir=$lt_cv_objdir
6218
6219
6220
6221
6222
6223 cat >>confdefs.h <<_ACEOF
6224 #define LT_OBJDIR "$lt_cv_objdir/"
6225 _ACEOF
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243 case $host_os in
6244 aix3*)
6245   # AIX sometimes has problems with the GCC collect2 program.  For some
6246   # reason, if we set the COLLECT_NAMES environment variable, the problems
6247   # vanish in a puff of smoke.
6248   if test "X${COLLECT_NAMES+set}" != Xset; then
6249     COLLECT_NAMES=
6250     export COLLECT_NAMES
6251   fi
6252   ;;
6253 esac
6254
6255 # Sed substitution that helps us do robust quoting.  It backslashifies
6256 # metacharacters that are still active within double-quoted strings.
6257 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6258
6259 # Same as above, but do not quote variable references.
6260 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6261
6262 # Sed substitution to delay expansion of an escaped shell variable in a
6263 # double_quote_subst'ed string.
6264 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6265
6266 # Sed substitution to delay expansion of an escaped single quote.
6267 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6268
6269 # Sed substitution to avoid accidental globbing in evaled expressions
6270 no_glob_subst='s/\*/\\\*/g'
6271
6272 # Global variables:
6273 ofile=libtool
6274 can_build_shared=yes
6275
6276 # All known linkers require a `.a' archive for static linking (except MSVC,
6277 # which needs '.lib').
6278 libext=a
6279
6280 with_gnu_ld="$lt_cv_prog_gnu_ld"
6281
6282 old_CC="$CC"
6283 old_CFLAGS="$CFLAGS"
6284
6285 # Set sane defaults for various variables
6286 test -z "$CC" && CC=cc
6287 test -z "$LTCC" && LTCC=$CC
6288 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6289 test -z "$LD" && LD=ld
6290 test -z "$ac_objext" && ac_objext=o
6291
6292 for cc_temp in $compiler""; do
6293   case $cc_temp in
6294     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6295     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6296     \-*) ;;
6297     *) break;;
6298   esac
6299 done
6300 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6301
6302
6303 # Only perform the check for file, if the check method requires it
6304 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6305 case $deplibs_check_method in
6306 file_magic*)
6307   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6308     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6309 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6310 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6311   echo $ECHO_N "(cached) $ECHO_C" >&6
6312 else
6313   case $MAGIC_CMD in
6314 [\\/*] |  ?:[\\/]*)
6315   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6316   ;;
6317 *)
6318   lt_save_MAGIC_CMD="$MAGIC_CMD"
6319   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6320   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6321   for ac_dir in $ac_dummy; do
6322     IFS="$lt_save_ifs"
6323     test -z "$ac_dir" && ac_dir=.
6324     if test -f $ac_dir/${ac_tool_prefix}file; then
6325       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6326       if test -n "$file_magic_test_file"; then
6327         case $deplibs_check_method in
6328         "file_magic "*)
6329           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6330           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6331           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6332             $EGREP "$file_magic_regex" > /dev/null; then
6333             :
6334           else
6335             cat <<_LT_EOF 1>&2
6336
6337 *** Warning: the command libtool uses to detect shared libraries,
6338 *** $file_magic_cmd, produces output that libtool cannot recognize.
6339 *** The result is that libtool may fail to recognize shared libraries
6340 *** as such.  This will affect the creation of libtool libraries that
6341 *** depend on shared libraries, but programs linked with such libtool
6342 *** libraries will work regardless of this problem.  Nevertheless, you
6343 *** may want to report the problem to your system manager and/or to
6344 *** bug-libtool@gnu.org
6345
6346 _LT_EOF
6347           fi ;;
6348         esac
6349       fi
6350       break
6351     fi
6352   done
6353   IFS="$lt_save_ifs"
6354   MAGIC_CMD="$lt_save_MAGIC_CMD"
6355   ;;
6356 esac
6357 fi
6358
6359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6360 if test -n "$MAGIC_CMD"; then
6361   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6362 echo "${ECHO_T}$MAGIC_CMD" >&6
6363 else
6364   echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6
6366 fi
6367
6368
6369
6370
6371
6372 if test -z "$lt_cv_path_MAGIC_CMD"; then
6373   if test -n "$ac_tool_prefix"; then
6374     echo "$as_me:$LINENO: checking for file" >&5
6375 echo $ECHO_N "checking for file... $ECHO_C" >&6
6376 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6377   echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379   case $MAGIC_CMD in
6380 [\\/*] |  ?:[\\/]*)
6381   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6382   ;;
6383 *)
6384   lt_save_MAGIC_CMD="$MAGIC_CMD"
6385   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6386   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6387   for ac_dir in $ac_dummy; do
6388     IFS="$lt_save_ifs"
6389     test -z "$ac_dir" && ac_dir=.
6390     if test -f $ac_dir/file; then
6391       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6392       if test -n "$file_magic_test_file"; then
6393         case $deplibs_check_method in
6394         "file_magic "*)
6395           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6396           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6397           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6398             $EGREP "$file_magic_regex" > /dev/null; then
6399             :
6400           else
6401             cat <<_LT_EOF 1>&2
6402
6403 *** Warning: the command libtool uses to detect shared libraries,
6404 *** $file_magic_cmd, produces output that libtool cannot recognize.
6405 *** The result is that libtool may fail to recognize shared libraries
6406 *** as such.  This will affect the creation of libtool libraries that
6407 *** depend on shared libraries, but programs linked with such libtool
6408 *** libraries will work regardless of this problem.  Nevertheless, you
6409 *** may want to report the problem to your system manager and/or to
6410 *** bug-libtool@gnu.org
6411
6412 _LT_EOF
6413           fi ;;
6414         esac
6415       fi
6416       break
6417     fi
6418   done
6419   IFS="$lt_save_ifs"
6420   MAGIC_CMD="$lt_save_MAGIC_CMD"
6421   ;;
6422 esac
6423 fi
6424
6425 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6426 if test -n "$MAGIC_CMD"; then
6427   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6428 echo "${ECHO_T}$MAGIC_CMD" >&6
6429 else
6430   echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6
6432 fi
6433
6434
6435   else
6436     MAGIC_CMD=:
6437   fi
6438 fi
6439
6440   fi
6441   ;;
6442 esac
6443
6444 # Use C for the default configuration in the libtool script
6445
6446 lt_save_CC="$CC"
6447 ac_ext=c
6448 ac_cpp='$CPP $CPPFLAGS'
6449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452
6453
6454 # Source file extension for C test sources.
6455 ac_ext=c
6456
6457 # Object file extension for compiled C test sources.
6458 objext=o
6459 objext=$objext
6460
6461 # Code to be used in simple compile tests
6462 lt_simple_compile_test_code="int some_variable = 0;"
6463
6464 # Code to be used in simple link tests
6465 lt_simple_link_test_code='int main(){return(0);}'
6466
6467
6468
6469
6470
6471
6472
6473 # If no C compiler was specified, use CC.
6474 LTCC=${LTCC-"$CC"}
6475
6476 # If no C compiler flags were specified, use CFLAGS.
6477 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6478
6479 # Allow CC to be a program name with arguments.
6480 compiler=$CC
6481
6482 # Save the default compiler, since it gets overwritten when the other
6483 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6484 compiler_DEFAULT=$CC
6485
6486 # save warnings/boilerplate of simple test code
6487 ac_outfile=conftest.$ac_objext
6488 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6490 _lt_compiler_boilerplate=`cat conftest.err`
6491 $RM conftest*
6492
6493 ac_outfile=conftest.$ac_objext
6494 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6496 _lt_linker_boilerplate=`cat conftest.err`
6497 $RM conftest*
6498
6499
6500 ## CAVEAT EMPTOR:
6501 ## There is no encapsulation within the following macros, do not change
6502 ## the running order or otherwise move them around unless you know exactly
6503 ## what you are doing...
6504 if test -n "$compiler"; then
6505
6506 lt_prog_compiler_no_builtin_flag=
6507
6508 if test "$GCC" = yes; then
6509   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6510
6511   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6512 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6513 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516   lt_cv_prog_compiler_rtti_exceptions=no
6517    ac_outfile=conftest.$ac_objext
6518    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6519    lt_compiler_flag="-fno-rtti -fno-exceptions"
6520    # Insert the option either (1) after the last *FLAGS variable, or
6521    # (2) before a word containing "conftest.", or (3) at the end.
6522    # Note that $ac_compile itself does not contain backslashes and begins
6523    # with a dollar sign (not a hyphen), so the echo should work correctly.
6524    # The option is referenced via a variable to avoid confusing sed.
6525    lt_compile=`echo "$ac_compile" | $SED \
6526    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6527    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6528    -e 's:$: $lt_compiler_flag:'`
6529    (eval echo "\"\$as_me:6529: $lt_compile\"" >&5)
6530    (eval "$lt_compile" 2>conftest.err)
6531    ac_status=$?
6532    cat conftest.err >&5
6533    echo "$as_me:6533: \$? = $ac_status" >&5
6534    if (exit $ac_status) && test -s "$ac_outfile"; then
6535      # The compiler can only warn and ignore the option if not recognized
6536      # So say no if there are warnings other than the usual output.
6537      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6538      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6539      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6540        lt_cv_prog_compiler_rtti_exceptions=yes
6541      fi
6542    fi
6543    $RM conftest*
6544
6545 fi
6546 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6547 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6548
6549 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6550     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6551 else
6552     :
6553 fi
6554
6555 fi
6556
6557
6558
6559
6560
6561
6562   lt_prog_compiler_wl=
6563 lt_prog_compiler_pic=
6564 lt_prog_compiler_static=
6565
6566 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6567 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6568
6569   if test "$GCC" = yes; then
6570     lt_prog_compiler_wl='-Wl,'
6571     lt_prog_compiler_static='-static'
6572
6573     case $host_os in
6574       aix*)
6575       # All AIX code is PIC.
6576       if test "$host_cpu" = ia64; then
6577         # AIX 5 now supports IA64 processor
6578         lt_prog_compiler_static='-Bstatic'
6579       fi
6580       ;;
6581
6582     amigaos*)
6583       if test "$host_cpu" = m68k; then
6584         # FIXME: we need at least 68020 code to build shared libraries, but
6585         # adding the `-m68020' flag to GCC prevents building anything better,
6586         # like `-m68040'.
6587         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6588       fi
6589       ;;
6590
6591     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6592       # PIC is the default for these OSes.
6593       ;;
6594
6595     mingw* | cygwin* | pw32* | os2*)
6596       # This hack is so that the source file can tell whether it is being
6597       # built for inclusion in a dll (and should export symbols for example).
6598       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6599       # (--disable-auto-import) libraries
6600       lt_prog_compiler_pic='-DDLL_EXPORT'
6601       ;;
6602
6603     darwin* | rhapsody*)
6604       # PIC is the default on this platform
6605       # Common symbols not allowed in MH_DYLIB files
6606       lt_prog_compiler_pic='-fno-common'
6607       ;;
6608
6609     hpux*)
6610       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6611       # not for PA HP-UX.
6612       case $host_cpu in
6613       hppa*64*|ia64*)
6614         # +Z the default
6615         ;;
6616       *)
6617         lt_prog_compiler_pic='-fPIC'
6618         ;;
6619       esac
6620       ;;
6621
6622     interix[3-9]*)
6623       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6624       # Instead, we relocate shared libraries at runtime.
6625       ;;
6626
6627     msdosdjgpp*)
6628       # Just because we use GCC doesn't mean we suddenly get shared libraries
6629       # on systems that don't support them.
6630       lt_prog_compiler_can_build_shared=no
6631       enable_shared=no
6632       ;;
6633
6634     *nto* | *qnx*)
6635       # QNX uses GNU C++, but need to define -shared option too, otherwise
6636       # it will coredump.
6637       lt_prog_compiler_pic='-fPIC -shared'
6638       ;;
6639
6640     sysv4*MP*)
6641       if test -d /usr/nec; then
6642         lt_prog_compiler_pic=-Kconform_pic
6643       fi
6644       ;;
6645
6646     *)
6647       lt_prog_compiler_pic='-fPIC'
6648       ;;
6649     esac
6650   else
6651     # PORTME Check for flag to pass linker flags through the system compiler.
6652     case $host_os in
6653     aix*)
6654       lt_prog_compiler_wl='-Wl,'
6655       if test "$host_cpu" = ia64; then
6656         # AIX 5 now supports IA64 processor
6657         lt_prog_compiler_static='-Bstatic'
6658       else
6659         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6660       fi
6661       ;;
6662     darwin*)
6663       # PIC is the default on this platform
6664       # Common symbols not allowed in MH_DYLIB files
6665       case $cc_basename in
6666       xlc*)
6667         lt_prog_compiler_pic='-qnocommon'
6668         lt_prog_compiler_wl='-Wl,'
6669         ;;
6670       esac
6671       ;;
6672
6673     mingw* | cygwin* | pw32* | os2*)
6674       # This hack is so that the source file can tell whether it is being
6675       # built for inclusion in a dll (and should export symbols for example).
6676       lt_prog_compiler_pic='-DDLL_EXPORT'
6677       ;;
6678
6679     hpux9* | hpux10* | hpux11*)
6680       lt_prog_compiler_wl='-Wl,'
6681       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6682       # not for PA HP-UX.
6683       case $host_cpu in
6684       hppa*64*|ia64*)
6685         # +Z the default
6686         ;;
6687       *)
6688         lt_prog_compiler_pic='+Z'
6689         ;;
6690       esac
6691       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6692       lt_prog_compiler_static='${wl}-a ${wl}archive'
6693       ;;
6694
6695     irix5* | irix6* | nonstopux*)
6696       lt_prog_compiler_wl='-Wl,'
6697       # PIC (with -KPIC) is the default.
6698       lt_prog_compiler_static='-non_shared'
6699       ;;
6700
6701     linux* | k*bsd*-gnu)
6702       case $cc_basename in
6703       icc* | ecc*)
6704         lt_prog_compiler_wl='-Wl,'
6705         lt_prog_compiler_pic='-KPIC'
6706         lt_prog_compiler_static='-static'
6707         ;;
6708       pgcc* | pgf77* | pgf90* | pgf95*)
6709         # Portland Group compilers (*not* the Pentium gcc compiler,
6710         # which looks to be a dead project)
6711         lt_prog_compiler_wl='-Wl,'
6712         lt_prog_compiler_pic='-fpic'
6713         lt_prog_compiler_static='-Bstatic'
6714         ;;
6715       ccc*)
6716         lt_prog_compiler_wl='-Wl,'
6717         # All Alpha code is PIC.
6718         lt_prog_compiler_static='-non_shared'
6719         ;;
6720       *)
6721         case `$CC -V 2>&1 | sed 5q` in
6722         *Sun\ C*)
6723           # Sun C 5.9
6724           lt_prog_compiler_pic='-KPIC'
6725           lt_prog_compiler_static='-Bstatic'
6726           lt_prog_compiler_wl='-Wl,'
6727           ;;
6728         *Sun\ F*)
6729           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6730           lt_prog_compiler_pic='-KPIC'
6731           lt_prog_compiler_static='-Bstatic'
6732           lt_prog_compiler_wl=''
6733           ;;
6734         esac
6735         ;;
6736       esac
6737       ;;
6738
6739     newsos6)
6740       lt_prog_compiler_pic='-KPIC'
6741       lt_prog_compiler_static='-Bstatic'
6742       ;;
6743
6744     *nto* | *qnx*)
6745       # QNX uses GNU C++, but need to define -shared option too, otherwise
6746       # it will coredump.
6747       lt_prog_compiler_pic='-fPIC -shared'
6748       ;;
6749
6750     osf3* | osf4* | osf5*)
6751       lt_prog_compiler_wl='-Wl,'
6752       # All OSF/1 code is PIC.
6753       lt_prog_compiler_static='-non_shared'
6754       ;;
6755
6756     rdos*)
6757       lt_prog_compiler_static='-non_shared'
6758       ;;
6759
6760     solaris*)
6761       lt_prog_compiler_pic='-KPIC'
6762       lt_prog_compiler_static='-Bstatic'
6763       case $cc_basename in
6764       f77* | f90* | f95*)
6765         lt_prog_compiler_wl='-Qoption ld ';;
6766       *)
6767         lt_prog_compiler_wl='-Wl,';;
6768       esac
6769       ;;
6770
6771     sunos4*)
6772       lt_prog_compiler_wl='-Qoption ld '
6773       lt_prog_compiler_pic='-PIC'
6774       lt_prog_compiler_static='-Bstatic'
6775       ;;
6776
6777     sysv4 | sysv4.2uw2* | sysv4.3*)
6778       lt_prog_compiler_wl='-Wl,'
6779       lt_prog_compiler_pic='-KPIC'
6780       lt_prog_compiler_static='-Bstatic'
6781       ;;
6782
6783     sysv4*MP*)
6784       if test -d /usr/nec ;then
6785         lt_prog_compiler_pic='-Kconform_pic'
6786         lt_prog_compiler_static='-Bstatic'
6787       fi
6788       ;;
6789
6790     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6791       lt_prog_compiler_wl='-Wl,'
6792       lt_prog_compiler_pic='-KPIC'
6793       lt_prog_compiler_static='-Bstatic'
6794       ;;
6795
6796     unicos*)
6797       lt_prog_compiler_wl='-Wl,'
6798       lt_prog_compiler_can_build_shared=no
6799       ;;
6800
6801     uts4*)
6802       lt_prog_compiler_pic='-pic'
6803       lt_prog_compiler_static='-Bstatic'
6804       ;;
6805
6806     *)
6807       lt_prog_compiler_can_build_shared=no
6808       ;;
6809     esac
6810   fi
6811
6812 case $host_os in
6813   # For platforms which do not support PIC, -DPIC is meaningless:
6814   *djgpp*)
6815     lt_prog_compiler_pic=
6816     ;;
6817   *)
6818     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6819     ;;
6820 esac
6821 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6822 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6823
6824
6825
6826
6827
6828
6829 #
6830 # Check to make sure the PIC flag actually works.
6831 #
6832 if test -n "$lt_prog_compiler_pic"; then
6833   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6834 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6835 if test "${lt_prog_compiler_pic_works+set}" = set; then
6836   echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838   lt_prog_compiler_pic_works=no
6839    ac_outfile=conftest.$ac_objext
6840    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6841    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6842    # Insert the option either (1) after the last *FLAGS variable, or
6843    # (2) before a word containing "conftest.", or (3) at the end.
6844    # Note that $ac_compile itself does not contain backslashes and begins
6845    # with a dollar sign (not a hyphen), so the echo should work correctly.
6846    # The option is referenced via a variable to avoid confusing sed.
6847    lt_compile=`echo "$ac_compile" | $SED \
6848    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6849    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6850    -e 's:$: $lt_compiler_flag:'`
6851    (eval echo "\"\$as_me:6851: $lt_compile\"" >&5)
6852    (eval "$lt_compile" 2>conftest.err)
6853    ac_status=$?
6854    cat conftest.err >&5
6855    echo "$as_me:6855: \$? = $ac_status" >&5
6856    if (exit $ac_status) && test -s "$ac_outfile"; then
6857      # The compiler can only warn and ignore the option if not recognized
6858      # So say no if there are warnings other than the usual output.
6859      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6860      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6861      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6862        lt_prog_compiler_pic_works=yes
6863      fi
6864    fi
6865    $RM conftest*
6866
6867 fi
6868 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6869 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6870
6871 if test x"$lt_prog_compiler_pic_works" = xyes; then
6872     case $lt_prog_compiler_pic in
6873      "" | " "*) ;;
6874      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6875      esac
6876 else
6877     lt_prog_compiler_pic=
6878      lt_prog_compiler_can_build_shared=no
6879 fi
6880
6881 fi
6882
6883
6884
6885
6886
6887
6888 #
6889 # Check to make sure the static flag actually works.
6890 #
6891 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6892 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6893 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6894 if test "${lt_prog_compiler_static_works+set}" = set; then
6895   echo $ECHO_N "(cached) $ECHO_C" >&6
6896 else
6897   lt_prog_compiler_static_works=no
6898    save_LDFLAGS="$LDFLAGS"
6899    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6900    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6901    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6902      # The linker can only warn and ignore the option if not recognized
6903      # So say no if there are warnings
6904      if test -s conftest.err; then
6905        # Append any errors to the config.log.
6906        cat conftest.err 1>&5
6907        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6908        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6909        if diff conftest.exp conftest.er2 >/dev/null; then
6910          lt_prog_compiler_static_works=yes
6911        fi
6912      else
6913        lt_prog_compiler_static_works=yes
6914      fi
6915    fi
6916    $RM conftest*
6917    LDFLAGS="$save_LDFLAGS"
6918
6919 fi
6920 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6921 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6922
6923 if test x"$lt_prog_compiler_static_works" = xyes; then
6924     :
6925 else
6926     lt_prog_compiler_static=
6927 fi
6928
6929
6930
6931
6932
6933
6934
6935   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6936 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6937 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6938   echo $ECHO_N "(cached) $ECHO_C" >&6
6939 else
6940   lt_cv_prog_compiler_c_o=no
6941    $RM -r conftest 2>/dev/null
6942    mkdir conftest
6943    cd conftest
6944    mkdir out
6945    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6946
6947    lt_compiler_flag="-o out/conftest2.$ac_objext"
6948    # Insert the option either (1) after the last *FLAGS variable, or
6949    # (2) before a word containing "conftest.", or (3) at the end.
6950    # Note that $ac_compile itself does not contain backslashes and begins
6951    # with a dollar sign (not a hyphen), so the echo should work correctly.
6952    lt_compile=`echo "$ac_compile" | $SED \
6953    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6954    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6955    -e 's:$: $lt_compiler_flag:'`
6956    (eval echo "\"\$as_me:6956: $lt_compile\"" >&5)
6957    (eval "$lt_compile" 2>out/conftest.err)
6958    ac_status=$?
6959    cat out/conftest.err >&5
6960    echo "$as_me:6960: \$? = $ac_status" >&5
6961    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6962    then
6963      # The compiler can only warn and ignore the option if not recognized
6964      # So say no if there are warnings
6965      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6966      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6967      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6968        lt_cv_prog_compiler_c_o=yes
6969      fi
6970    fi
6971    chmod u+w . 2>&5
6972    $RM conftest*
6973    # SGI C++ compiler will create directory out/ii_files/ for
6974    # template instantiation
6975    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6976    $RM out/* && rmdir out
6977    cd ..
6978    $RM -r conftest
6979    $RM conftest*
6980
6981 fi
6982 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6983 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6984
6985
6986
6987
6988
6989
6990   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6991 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6992 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6993   echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995   lt_cv_prog_compiler_c_o=no
6996    $RM -r conftest 2>/dev/null
6997    mkdir conftest
6998    cd conftest
6999    mkdir out
7000    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7001
7002    lt_compiler_flag="-o out/conftest2.$ac_objext"
7003    # Insert the option either (1) after the last *FLAGS variable, or
7004    # (2) before a word containing "conftest.", or (3) at the end.
7005    # Note that $ac_compile itself does not contain backslashes and begins
7006    # with a dollar sign (not a hyphen), so the echo should work correctly.
7007    lt_compile=`echo "$ac_compile" | $SED \
7008    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7009    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7010    -e 's:$: $lt_compiler_flag:'`
7011    (eval echo "\"\$as_me:7011: $lt_compile\"" >&5)
7012    (eval "$lt_compile" 2>out/conftest.err)
7013    ac_status=$?
7014    cat out/conftest.err >&5
7015    echo "$as_me:7015: \$? = $ac_status" >&5
7016    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7017    then
7018      # The compiler can only warn and ignore the option if not recognized
7019      # So say no if there are warnings
7020      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7021      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7022      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7023        lt_cv_prog_compiler_c_o=yes
7024      fi
7025    fi
7026    chmod u+w . 2>&5
7027    $RM conftest*
7028    # SGI C++ compiler will create directory out/ii_files/ for
7029    # template instantiation
7030    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7031    $RM out/* && rmdir out
7032    cd ..
7033    $RM -r conftest
7034    $RM conftest*
7035
7036 fi
7037 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7038 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7039
7040
7041
7042
7043 hard_links="nottested"
7044 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7045   # do not overwrite the value of need_locks provided by the user
7046   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7047 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7048   hard_links=yes
7049   $RM conftest*
7050   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7051   touch conftest.a
7052   ln conftest.a conftest.b 2>&5 || hard_links=no
7053   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7054   echo "$as_me:$LINENO: result: $hard_links" >&5
7055 echo "${ECHO_T}$hard_links" >&6
7056   if test "$hard_links" = no; then
7057     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7058 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7059     need_locks=warn
7060   fi
7061 else
7062   need_locks=no
7063 fi
7064
7065
7066
7067
7068
7069
7070   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7071 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7072
7073   runpath_var=
7074   allow_undefined_flag=
7075   always_export_symbols=no
7076   archive_cmds=
7077   archive_expsym_cmds=
7078   compiler_needs_object=no
7079   enable_shared_with_static_runtimes=no
7080   export_dynamic_flag_spec=
7081   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7082   hardcode_automatic=no
7083   hardcode_direct=no
7084   hardcode_direct_absolute=no
7085   hardcode_libdir_flag_spec=
7086   hardcode_libdir_flag_spec_ld=
7087   hardcode_libdir_separator=
7088   hardcode_minus_L=no
7089   hardcode_shlibpath_var=unsupported
7090   inherit_rpath=no
7091   link_all_deplibs=unknown
7092   module_cmds=
7093   module_expsym_cmds=
7094   old_archive_from_new_cmds=
7095   old_archive_from_expsyms_cmds=
7096   thread_safe_flag_spec=
7097   whole_archive_flag_spec=
7098   # include_expsyms should be a list of space-separated symbols to be *always*
7099   # included in the symbol list
7100   include_expsyms=
7101   # exclude_expsyms can be an extended regexp of symbols to exclude
7102   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7103   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7104   # as well as any symbol that contains `d'.
7105   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7106   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7107   # platforms (ab)use it in PIC code, but their linkers get confused if
7108   # the symbol is explicitly referenced.  Since portable code cannot
7109   # rely on this symbol name, it's probably fine to never include it in
7110   # preloaded symbol tables.
7111   extract_expsyms_cmds=
7112
7113   case $host_os in
7114   cygwin* | mingw* | pw32*)
7115     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7116     # When not using gcc, we currently assume that we are using
7117     # Microsoft Visual C++.
7118     if test "$GCC" != yes; then
7119       with_gnu_ld=no
7120     fi
7121     ;;
7122   interix*)
7123     # we just hope/assume this is gcc and not c89 (= MSVC++)
7124     with_gnu_ld=yes
7125     ;;
7126   openbsd*)
7127     with_gnu_ld=no
7128     ;;
7129   esac
7130
7131   ld_shlibs=yes
7132   if test "$with_gnu_ld" = yes; then
7133     # If archive_cmds runs LD, not CC, wlarc should be empty
7134     wlarc='${wl}'
7135
7136     # Set some defaults for GNU ld with shared library support. These
7137     # are reset later if shared libraries are not supported. Putting them
7138     # here allows them to be overridden if necessary.
7139     runpath_var=LD_RUN_PATH
7140     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7141     export_dynamic_flag_spec='${wl}--export-dynamic'
7142     # ancient GNU ld didn't support --whole-archive et. al.
7143     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7144       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7145     else
7146       whole_archive_flag_spec=
7147     fi
7148     supports_anon_versioning=no
7149     case `$LD -v 2>&1` in
7150       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7151       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7152       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7153       *\ 2.11.*) ;; # other 2.11 versions
7154       *) supports_anon_versioning=yes ;;
7155     esac
7156
7157     # See if GNU ld supports shared libraries.
7158     case $host_os in
7159     aix[3-9]*)
7160       # On AIX/PPC, the GNU linker is very broken
7161       if test "$host_cpu" != ia64; then
7162         ld_shlibs=no
7163         cat <<_LT_EOF 1>&2
7164
7165 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7166 *** to be unable to reliably create shared libraries on AIX.
7167 *** Therefore, libtool is disabling shared libraries support.  If you
7168 *** really care for shared libraries, you may want to modify your PATH
7169 *** so that a non-GNU linker is found, and then restart.
7170
7171 _LT_EOF
7172       fi
7173       ;;
7174
7175     amigaos*)
7176       if test "$host_cpu" = m68k; then
7177         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)'
7178         hardcode_libdir_flag_spec='-L$libdir'
7179         hardcode_minus_L=yes
7180       fi
7181
7182       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7183       # that the semantics of dynamic libraries on AmigaOS, at least up
7184       # to version 4, is to share data among multiple programs linked
7185       # with the same dynamic library.  Since this doesn't match the
7186       # behavior of shared libraries on other platforms, we can't use
7187       # them.
7188       ld_shlibs=no
7189       ;;
7190
7191     beos*)
7192       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7193         allow_undefined_flag=unsupported
7194         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7195         # support --undefined.  This deserves some investigation.  FIXME
7196         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7197       else
7198         ld_shlibs=no
7199       fi
7200       ;;
7201
7202     cygwin* | mingw* | pw32*)
7203       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7204       # as there is no search path for DLLs.
7205       hardcode_libdir_flag_spec='-L$libdir'
7206       allow_undefined_flag=unsupported
7207       always_export_symbols=no
7208       enable_shared_with_static_runtimes=yes
7209       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7210
7211       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7212         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7213         # If the export-symbols file already is a .def file (1st line
7214         # is EXPORTS), use it as is; otherwise, prepend...
7215         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7216           cp $export_symbols $output_objdir/$soname.def;
7217         else
7218           echo EXPORTS > $output_objdir/$soname.def;
7219           cat $export_symbols >> $output_objdir/$soname.def;
7220         fi~
7221         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7222       else
7223         ld_shlibs=no
7224       fi
7225       ;;
7226
7227     interix[3-9]*)
7228       hardcode_direct=no
7229       hardcode_shlibpath_var=no
7230       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7231       export_dynamic_flag_spec='${wl}-E'
7232       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7233       # Instead, shared libraries are loaded at an image base (0x10000000 by
7234       # default) and relocated if they conflict, which is a slow very memory
7235       # consuming and fragmenting process.  To avoid this, we pick a random,
7236       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7237       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7238       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7239       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7240       ;;
7241
7242     gnu* | linux* | tpf* | k*bsd*-gnu)
7243       tmp_diet=no
7244       if test "$host_os" = linux-dietlibc; then
7245         case $cc_basename in
7246           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7247         esac
7248       fi
7249       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7250          && test "$tmp_diet" = no
7251       then
7252         tmp_addflag=
7253         case $cc_basename,$host_cpu in
7254         pgcc*)                          # Portland Group C compiler
7255           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7256           tmp_addflag=' $pic_flag'
7257           ;;
7258         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7259           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7260           tmp_addflag=' $pic_flag -Mnomain' ;;
7261         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7262           tmp_addflag=' -i_dynamic' ;;
7263         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7264           tmp_addflag=' -i_dynamic -nofor_main' ;;
7265         ifc* | ifort*)                  # Intel Fortran compiler
7266           tmp_addflag=' -nofor_main' ;;
7267         esac
7268         case `$CC -V 2>&1 | sed 5q` in
7269         *Sun\ C*)                       # Sun C 5.9
7270           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7271           compiler_needs_object=yes
7272           tmp_sharedflag='-G' ;;
7273         *Sun\ F*)                       # Sun Fortran 8.3
7274           tmp_sharedflag='-G' ;;
7275         *)
7276           tmp_sharedflag='-shared' ;;
7277         esac
7278         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7279
7280         if test "x$supports_anon_versioning" = xyes; then
7281           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7282             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7283             echo "local: *; };" >> $output_objdir/$libname.ver~
7284             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7285         fi
7286       else
7287         ld_shlibs=no
7288       fi
7289       ;;
7290
7291     netbsd*)
7292       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7293         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7294         wlarc=
7295       else
7296         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7297         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7298       fi
7299       ;;
7300
7301     solaris*)
7302       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7303         ld_shlibs=no
7304         cat <<_LT_EOF 1>&2
7305
7306 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7307 *** create shared libraries on Solaris systems.  Therefore, libtool
7308 *** is disabling shared libraries support.  We urge you to upgrade GNU
7309 *** binutils to release 2.9.1 or newer.  Another option is to modify
7310 *** your PATH or compiler configuration so that the native linker is
7311 *** used, and then restart.
7312
7313 _LT_EOF
7314       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7315         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7316         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7317       else
7318         ld_shlibs=no
7319       fi
7320       ;;
7321
7322     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7323       case `$LD -v 2>&1` in
7324         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7325         ld_shlibs=no
7326         cat <<_LT_EOF 1>&2
7327
7328 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7329 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7330 *** is disabling shared libraries support.  We urge you to upgrade GNU
7331 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7332 *** your PATH or compiler configuration so that the native linker is
7333 *** used, and then restart.
7334
7335 _LT_EOF
7336         ;;
7337         *)
7338           # For security reasons, it is highly recommended that you always
7339           # use absolute paths for naming shared libraries, and exclude the
7340           # DT_RUNPATH tag from executables and libraries.  But doing so
7341           # requires that you compile everything twice, which is a pain.
7342           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7343             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7344             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7345             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7346           else
7347             ld_shlibs=no
7348           fi
7349         ;;
7350       esac
7351       ;;
7352
7353     sunos4*)
7354       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7355       wlarc=
7356       hardcode_direct=yes
7357       hardcode_shlibpath_var=no
7358       ;;
7359
7360     *)
7361       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7362         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7363         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7364       else
7365         ld_shlibs=no
7366       fi
7367       ;;
7368     esac
7369
7370     if test "$ld_shlibs" = no; then
7371       runpath_var=
7372       hardcode_libdir_flag_spec=
7373       export_dynamic_flag_spec=
7374       whole_archive_flag_spec=
7375     fi
7376   else
7377     # PORTME fill in a description of your system's linker (not GNU ld)
7378     case $host_os in
7379     aix3*)
7380       allow_undefined_flag=unsupported
7381       always_export_symbols=yes
7382       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'
7383       # Note: this linker hardcodes the directories in LIBPATH if there
7384       # are no directories specified by -L.
7385       hardcode_minus_L=yes
7386       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7387         # Neither direct hardcoding nor static linking is supported with a
7388         # broken collect2.
7389         hardcode_direct=unsupported
7390       fi
7391       ;;
7392
7393     aix[4-9]*)
7394       if test "$host_cpu" = ia64; then
7395         # On IA64, the linker does run time linking by default, so we don't
7396         # have to do anything special.
7397         aix_use_runtimelinking=no
7398         exp_sym_flag='-Bexport'
7399         no_entry_flag=""
7400       else
7401         # If we're using GNU nm, then we don't want the "-C" option.
7402         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7403         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7404           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'
7405         else
7406           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'
7407         fi
7408         aix_use_runtimelinking=no
7409
7410         # Test if we are trying to use run time linking or normal
7411         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7412         # need to do runtime linking.
7413         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7414           for ld_flag in $LDFLAGS; do
7415           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7416             aix_use_runtimelinking=yes
7417             break
7418           fi
7419           done
7420           ;;
7421         esac
7422
7423         exp_sym_flag='-bexport'
7424         no_entry_flag='-bnoentry'
7425       fi
7426
7427       # When large executables or shared objects are built, AIX ld can
7428       # have problems creating the table of contents.  If linking a library
7429       # or program results in "error TOC overflow" add -mminimal-toc to
7430       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7431       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7432
7433       archive_cmds=''
7434       hardcode_direct=yes
7435       hardcode_direct_absolute=yes
7436       hardcode_libdir_separator=':'
7437       link_all_deplibs=yes
7438       file_list_spec='${wl}-f,'
7439
7440       if test "$GCC" = yes; then
7441         case $host_os in aix4.[012]|aix4.[012].*)
7442         # We only want to do this on AIX 4.2 and lower, the check
7443         # below for broken collect2 doesn't work under 4.3+
7444           collect2name=`${CC} -print-prog-name=collect2`
7445           if test -f "$collect2name" &&
7446            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7447           then
7448           # We have reworked collect2
7449           :
7450           else
7451           # We have old collect2
7452           hardcode_direct=unsupported
7453           # It fails to find uninstalled libraries when the uninstalled
7454           # path is not listed in the libpath.  Setting hardcode_minus_L
7455           # to unsupported forces relinking
7456           hardcode_minus_L=yes
7457           hardcode_libdir_flag_spec='-L$libdir'
7458           hardcode_libdir_separator=
7459           fi
7460           ;;
7461         esac
7462         shared_flag='-shared'
7463         if test "$aix_use_runtimelinking" = yes; then
7464           shared_flag="$shared_flag "'${wl}-G'
7465         fi
7466       else
7467         # not using gcc
7468         if test "$host_cpu" = ia64; then
7469         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7470         # chokes on -Wl,-G. The following line is correct:
7471           shared_flag='-G'
7472         else
7473           if test "$aix_use_runtimelinking" = yes; then
7474             shared_flag='${wl}-G'
7475           else
7476             shared_flag='${wl}-bM:SRE'
7477           fi
7478         fi
7479       fi
7480
7481       # It seems that -bexpall does not export symbols beginning with
7482       # underscore (_), so it is better to generate a list of symbols to export.
7483       always_export_symbols=yes
7484       if test "$aix_use_runtimelinking" = yes; then
7485         # Warning - without using the other runtime loading flags (-brtl),
7486         # -berok will link without error, but may produce a broken library.
7487         allow_undefined_flag='-berok'
7488         # Determine the default libpath from the value encoded in an
7489         # empty executable.
7490         if test x$gcc_no_link = xyes; then
7491   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7492 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7493    { (exit 1); exit 1; }; }
7494 fi
7495 cat >conftest.$ac_ext <<_ACEOF
7496 /* confdefs.h.  */
7497 _ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h.  */
7501
7502 int
7503 main ()
7504 {
7505
7506   ;
7507   return 0;
7508 }
7509 _ACEOF
7510 rm -f conftest.$ac_objext conftest$ac_exeext
7511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7512   (eval $ac_link) 2>conftest.er1
7513   ac_status=$?
7514   grep -v '^ *+' conftest.er1 >conftest.err
7515   rm -f conftest.er1
7516   cat conftest.err >&5
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); } &&
7519          { ac_try='test -z "$ac_c_werror_flag"
7520                          || test ! -s conftest.err'
7521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522   (eval $ac_try) 2>&5
7523   ac_status=$?
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); }; } &&
7526          { ac_try='test -s conftest$ac_exeext'
7527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528   (eval $ac_try) 2>&5
7529   ac_status=$?
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); }; }; then
7532
7533 lt_aix_libpath_sed='
7534     /Import File Strings/,/^$/ {
7535         /^0/ {
7536             s/^0  *\(.*\)$/\1/
7537             p
7538         }
7539     }'
7540 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7541 # Check for a 64-bit object if we didn't find anything.
7542 if test -z "$aix_libpath"; then
7543   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7544 fi
7545 else
7546   echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7548
7549 fi
7550 rm -f conftest.err conftest.$ac_objext \
7551       conftest$ac_exeext conftest.$ac_ext
7552 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7553
7554         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7555         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7556       else
7557         if test "$host_cpu" = ia64; then
7558           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7559           allow_undefined_flag="-z nodefs"
7560           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7561         else
7562          # Determine the default libpath from the value encoded in an
7563          # empty executable.
7564          if test x$gcc_no_link = xyes; then
7565   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7567    { (exit 1); exit 1; }; }
7568 fi
7569 cat >conftest.$ac_ext <<_ACEOF
7570 /* confdefs.h.  */
7571 _ACEOF
7572 cat confdefs.h >>conftest.$ac_ext
7573 cat >>conftest.$ac_ext <<_ACEOF
7574 /* end confdefs.h.  */
7575
7576 int
7577 main ()
7578 {
7579
7580   ;
7581   return 0;
7582 }
7583 _ACEOF
7584 rm -f conftest.$ac_objext conftest$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586   (eval $ac_link) 2>conftest.er1
7587   ac_status=$?
7588   grep -v '^ *+' conftest.er1 >conftest.err
7589   rm -f conftest.er1
7590   cat conftest.err >&5
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); } &&
7593          { ac_try='test -z "$ac_c_werror_flag"
7594                          || test ! -s conftest.err'
7595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596   (eval $ac_try) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); }; } &&
7600          { ac_try='test -s conftest$ac_exeext'
7601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602   (eval $ac_try) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; }; then
7606
7607 lt_aix_libpath_sed='
7608     /Import File Strings/,/^$/ {
7609         /^0/ {
7610             s/^0  *\(.*\)$/\1/
7611             p
7612         }
7613     }'
7614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7615 # Check for a 64-bit object if we didn't find anything.
7616 if test -z "$aix_libpath"; then
7617   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7618 fi
7619 else
7620   echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7622
7623 fi
7624 rm -f conftest.err conftest.$ac_objext \
7625       conftest$ac_exeext conftest.$ac_ext
7626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7627
7628          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7629           # Warning - without using the other run time loading flags,
7630           # -berok will link without error, but may produce a broken library.
7631           no_undefined_flag=' ${wl}-bernotok'
7632           allow_undefined_flag=' ${wl}-berok'
7633           # Exported symbols can be pulled into shared objects from archives
7634           whole_archive_flag_spec='$convenience'
7635           archive_cmds_need_lc=yes
7636           # This is similar to how AIX traditionally builds its shared libraries.
7637           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7638         fi
7639       fi
7640       ;;
7641
7642     amigaos*)
7643       if test "$host_cpu" = m68k; then
7644         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)'
7645         hardcode_libdir_flag_spec='-L$libdir'
7646         hardcode_minus_L=yes
7647       fi
7648       # see comment about different semantics on the GNU ld section
7649       ld_shlibs=no
7650       ;;
7651
7652     bsdi[45]*)
7653       export_dynamic_flag_spec=-rdynamic
7654       ;;
7655
7656     cygwin* | mingw* | pw32*)
7657       # When not using gcc, we currently assume that we are using
7658       # Microsoft Visual C++.
7659       # hardcode_libdir_flag_spec is actually meaningless, as there is
7660       # no search path for DLLs.
7661       hardcode_libdir_flag_spec=' '
7662       allow_undefined_flag=unsupported
7663       # Tell ltmain to make .lib files, not .a files.
7664       libext=lib
7665       # Tell ltmain to make .dll files, not .so files.
7666       shrext_cmds=".dll"
7667       # FIXME: Setting linknames here is a bad hack.
7668       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7669       # The linker will automatically build a .lib file if we build a DLL.
7670       old_archive_from_new_cmds='true'
7671       # FIXME: Should let the user specify the lib program.
7672       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7673       fix_srcfile_path='`cygpath -w "$srcfile"`'
7674       enable_shared_with_static_runtimes=yes
7675       ;;
7676
7677     darwin* | rhapsody*)
7678       case $host_os in
7679       rhapsody* | darwin1.[012])
7680         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7681         ;;
7682       *) # Darwin 1.3 on
7683         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7684         10.[012])
7685           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7686           ;;
7687         10.*)
7688           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7689           ;;
7690         esac
7691         ;;
7692       esac
7693       archive_cmds_need_lc=no
7694       hardcode_direct=no
7695       hardcode_automatic=yes
7696       hardcode_shlibpath_var=unsupported
7697       whole_archive_flag_spec=''
7698       link_all_deplibs=yes
7699       if test "$GCC" = yes ; then
7700         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703   lt_cv_apple_cc_single_mod=no
7704         if test -z "${LT_MULTI_MODULE}"; then
7705           # By default we will add the -single_module flag. You can override
7706           # by either setting the environment variable LT_MULTI_MODULE
7707           # non-empty at configure time, or by adding -multi-module to the
7708           # link flags.
7709           echo "int foo(void){return 1;}" > conftest.c
7710           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7711               -dynamiclib ${wl}-single_module conftest.c
7712           if test -f libconftest.dylib; then
7713               lt_cv_apple_cc_single_mod=yes
7714               rm libconftest.dylib
7715           fi
7716           rm conftest.$ac_ext
7717         fi
7718 fi
7719
7720         output_verbose_link_cmd=echo
7721         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7722           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7723           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7724         else
7725           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7726           archive_expsym_cmds='sed "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}'
7727         fi
7728         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7729         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7730       else
7731         case $cc_basename in
7732         xlc*)
7733           output_verbose_link_cmd=echo
7734           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7735           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7736           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7737           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7738           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7739           ;;
7740         *)
7741           ld_shlibs=no
7742           ;;
7743         esac
7744       fi
7745       ;;
7746
7747     dgux*)
7748       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7749       hardcode_libdir_flag_spec='-L$libdir'
7750       hardcode_shlibpath_var=no
7751       ;;
7752
7753     freebsd1*)
7754       ld_shlibs=no
7755       ;;
7756
7757     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7758     # support.  Future versions do this automatically, but an explicit c++rt0.o
7759     # does not break anything, and helps significantly (at the cost of a little
7760     # extra space).
7761     freebsd2.2*)
7762       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7763       hardcode_libdir_flag_spec='-R$libdir'
7764       hardcode_direct=yes
7765       hardcode_shlibpath_var=no
7766       ;;
7767
7768     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7769     freebsd2*)
7770       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7771       hardcode_direct=yes
7772       hardcode_minus_L=yes
7773       hardcode_shlibpath_var=no
7774       ;;
7775
7776     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7777     freebsd* | dragonfly*)
7778       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7779       hardcode_libdir_flag_spec='-R$libdir'
7780       hardcode_direct=yes
7781       hardcode_shlibpath_var=no
7782       ;;
7783
7784     hpux9*)
7785       if test "$GCC" = yes; then
7786         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'
7787       else
7788         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'
7789       fi
7790       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7791       hardcode_libdir_separator=:
7792       hardcode_direct=yes
7793
7794       # hardcode_minus_L: Not really in the search PATH,
7795       # but as the default location of the library.
7796       hardcode_minus_L=yes
7797       export_dynamic_flag_spec='${wl}-E'
7798       ;;
7799
7800     hpux10*)
7801       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7802         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7803       else
7804         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7805       fi
7806       if test "$with_gnu_ld" = no; then
7807         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7808         hardcode_libdir_flag_spec_ld='+b $libdir'
7809         hardcode_libdir_separator=:
7810         hardcode_direct=yes
7811         hardcode_direct_absolute=yes
7812         export_dynamic_flag_spec='${wl}-E'
7813         # hardcode_minus_L: Not really in the search PATH,
7814         # but as the default location of the library.
7815         hardcode_minus_L=yes
7816       fi
7817       ;;
7818
7819     hpux11*)
7820       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7821         case $host_cpu in
7822         hppa*64*)
7823           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7824           ;;
7825         ia64*)
7826           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7827           ;;
7828         *)
7829           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7830           ;;
7831         esac
7832       else
7833         case $host_cpu in
7834         hppa*64*)
7835           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7836           ;;
7837         ia64*)
7838           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7839           ;;
7840         *)
7841           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7842           ;;
7843         esac
7844       fi
7845       if test "$with_gnu_ld" = no; then
7846         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7847         hardcode_libdir_separator=:
7848
7849         case $host_cpu in
7850         hppa*64*|ia64*)
7851           hardcode_direct=no
7852           hardcode_shlibpath_var=no
7853           ;;
7854         *)
7855           hardcode_direct=yes
7856           hardcode_direct_absolute=yes
7857           export_dynamic_flag_spec='${wl}-E'
7858
7859           # hardcode_minus_L: Not really in the search PATH,
7860           # but as the default location of the library.
7861           hardcode_minus_L=yes
7862           ;;
7863         esac
7864       fi
7865       ;;
7866
7867     irix5* | irix6* | nonstopux*)
7868       if test "$GCC" = yes; then
7869         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7870         # Try to use the -exported_symbol ld option, if it does not
7871         # work, assume that -exports_file does not work either and
7872         # implicitly export all symbols.
7873         save_LDFLAGS="$LDFLAGS"
7874         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7875         if test x$gcc_no_link = xyes; then
7876   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7877 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7878    { (exit 1); exit 1; }; }
7879 fi
7880 cat >conftest.$ac_ext <<_ACEOF
7881 int foo(void) {}
7882 _ACEOF
7883 rm -f conftest.$ac_objext conftest$ac_exeext
7884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885   (eval $ac_link) 2>conftest.er1
7886   ac_status=$?
7887   grep -v '^ *+' conftest.er1 >conftest.err
7888   rm -f conftest.er1
7889   cat conftest.err >&5
7890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891   (exit $ac_status); } &&
7892          { ac_try='test -z "$ac_c_werror_flag"
7893                          || test ! -s conftest.err'
7894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895   (eval $ac_try) 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); }; } &&
7899          { ac_try='test -s conftest$ac_exeext'
7900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901   (eval $ac_try) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; }; then
7905   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7906
7907 else
7908   echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911 fi
7912 rm -f conftest.err conftest.$ac_objext \
7913       conftest$ac_exeext conftest.$ac_ext
7914         LDFLAGS="$save_LDFLAGS"
7915       else
7916         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7917         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7918       fi
7919       archive_cmds_need_lc='no'
7920       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7921       hardcode_libdir_separator=:
7922       inherit_rpath=yes
7923       link_all_deplibs=yes
7924       ;;
7925
7926     netbsd*)
7927       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7928         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7929       else
7930         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7931       fi
7932       hardcode_libdir_flag_spec='-R$libdir'
7933       hardcode_direct=yes
7934       hardcode_shlibpath_var=no
7935       ;;
7936
7937     newsos6)
7938       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7939       hardcode_direct=yes
7940       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7941       hardcode_libdir_separator=:
7942       hardcode_shlibpath_var=no
7943       ;;
7944
7945     *nto* | *qnx*)
7946       ;;
7947
7948     openbsd*)
7949       hardcode_direct=yes
7950       hardcode_shlibpath_var=no
7951       hardcode_direct_absolute=yes
7952       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7953         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7954         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7955         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7956         export_dynamic_flag_spec='${wl}-E'
7957       else
7958         case $host_os in
7959         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7960           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7961           hardcode_libdir_flag_spec='-R$libdir'
7962           ;;
7963         *)
7964           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7965           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7966           ;;
7967         esac
7968       fi
7969       ;;
7970
7971     os2*)
7972       hardcode_libdir_flag_spec='-L$libdir'
7973       hardcode_minus_L=yes
7974       allow_undefined_flag=unsupported
7975       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'
7976       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7977       ;;
7978
7979     osf3*)
7980       if test "$GCC" = yes; then
7981         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7982         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7983       else
7984         allow_undefined_flag=' -expect_unresolved \*'
7985         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7986       fi
7987       archive_cmds_need_lc='no'
7988       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7989       hardcode_libdir_separator=:
7990       ;;
7991
7992     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7993       if test "$GCC" = yes; then
7994         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7995         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7996         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7997       else
7998         allow_undefined_flag=' -expect_unresolved \*'
7999         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8000         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8001         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8002
8003         # Both c and cxx compiler support -rpath directly
8004         hardcode_libdir_flag_spec='-rpath $libdir'
8005       fi
8006       archive_cmds_need_lc='no'
8007       hardcode_libdir_separator=:
8008       ;;
8009
8010     solaris*)
8011       no_undefined_flag=' -z defs'
8012       if test "$GCC" = yes; then
8013         wlarc='${wl}'
8014         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8015         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8016           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8017       else
8018         case `$CC -V 2>&1` in
8019         *"Compilers 5.0"*)
8020           wlarc=''
8021           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8022           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8023           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8024           ;;
8025         *)
8026           wlarc='${wl}'
8027           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8028           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8029           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8030           ;;
8031         esac
8032       fi
8033       hardcode_libdir_flag_spec='-R$libdir'
8034       hardcode_shlibpath_var=no
8035       case $host_os in
8036       solaris2.[0-5] | solaris2.[0-5].*) ;;
8037       *)
8038         # The compiler driver will combine and reorder linker options,
8039         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8040         # but is careful enough not to reorder.
8041         # Supported since Solaris 2.6 (maybe 2.5.1?)
8042         if test "$GCC" = yes; then
8043           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8044         else
8045           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8046         fi
8047         ;;
8048       esac
8049       link_all_deplibs=yes
8050       ;;
8051
8052     sunos4*)
8053       if test "x$host_vendor" = xsequent; then
8054         # Use $CC to link under sequent, because it throws in some extra .o
8055         # files that make .init and .fini sections work.
8056         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8057       else
8058         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8059       fi
8060       hardcode_libdir_flag_spec='-L$libdir'
8061       hardcode_direct=yes
8062       hardcode_minus_L=yes
8063       hardcode_shlibpath_var=no
8064       ;;
8065
8066     sysv4)
8067       case $host_vendor in
8068         sni)
8069           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8070           hardcode_direct=yes # is this really true???
8071         ;;
8072         siemens)
8073           ## LD is ld it makes a PLAMLIB
8074           ## CC just makes a GrossModule.
8075           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8076           reload_cmds='$CC -r -o $output$reload_objs'
8077           hardcode_direct=no
8078         ;;
8079         motorola)
8080           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8081           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8082         ;;
8083       esac
8084       runpath_var='LD_RUN_PATH'
8085       hardcode_shlibpath_var=no
8086       ;;
8087
8088     sysv4.3*)
8089       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8090       hardcode_shlibpath_var=no
8091       export_dynamic_flag_spec='-Bexport'
8092       ;;
8093
8094     sysv4*MP*)
8095       if test -d /usr/nec; then
8096         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8097         hardcode_shlibpath_var=no
8098         runpath_var=LD_RUN_PATH
8099         hardcode_runpath_var=yes
8100         ld_shlibs=yes
8101       fi
8102       ;;
8103
8104     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8105       no_undefined_flag='${wl}-z,text'
8106       archive_cmds_need_lc=no
8107       hardcode_shlibpath_var=no
8108       runpath_var='LD_RUN_PATH'
8109
8110       if test "$GCC" = yes; then
8111         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8112         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8113       else
8114         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8115         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8116       fi
8117       ;;
8118
8119     sysv5* | sco3.2v5* | sco5v6*)
8120       # Note: We can NOT use -z defs as we might desire, because we do not
8121       # link with -lc, and that would cause any symbols used from libc to
8122       # always be unresolved, which means just about no library would
8123       # ever link correctly.  If we're not using GNU ld we use -z text
8124       # though, which does catch some bad symbols but isn't as heavy-handed
8125       # as -z defs.
8126       no_undefined_flag='${wl}-z,text'
8127       allow_undefined_flag='${wl}-z,nodefs'
8128       archive_cmds_need_lc=no
8129       hardcode_shlibpath_var=no
8130       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8131       hardcode_libdir_separator=':'
8132       link_all_deplibs=yes
8133       export_dynamic_flag_spec='${wl}-Bexport'
8134       runpath_var='LD_RUN_PATH'
8135
8136       if test "$GCC" = yes; then
8137         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8138         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8139       else
8140         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8141         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8142       fi
8143       ;;
8144
8145     uts4*)
8146       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8147       hardcode_libdir_flag_spec='-L$libdir'
8148       hardcode_shlibpath_var=no
8149       ;;
8150
8151     *)
8152       ld_shlibs=no
8153       ;;
8154     esac
8155
8156     if test x$host_vendor = xsni; then
8157       case $host in
8158       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8159         export_dynamic_flag_spec='${wl}-Blargedynsym'
8160         ;;
8161       esac
8162     fi
8163   fi
8164
8165 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8166 echo "${ECHO_T}$ld_shlibs" >&6
8167 test "$ld_shlibs" = no && can_build_shared=no
8168
8169 with_gnu_ld=$with_gnu_ld
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185 #
8186 # Do we need to explicitly link libc?
8187 #
8188 case "x$archive_cmds_need_lc" in
8189 x|xyes)
8190   # Assume -lc should be added
8191   archive_cmds_need_lc=yes
8192
8193   if test "$enable_shared" = yes && test "$GCC" = yes; then
8194     case $archive_cmds in
8195     *'~'*)
8196       # FIXME: we may have to deal with multi-command sequences.
8197       ;;
8198     '$CC '*)
8199       # Test whether the compiler implicitly links with -lc since on some
8200       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8201       # to ld, don't add -lc before -lgcc.
8202       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8203 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8204       $RM conftest*
8205       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8206
8207       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8208   (eval $ac_compile) 2>&5
8209   ac_status=$?
8210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211   (exit $ac_status); } 2>conftest.err; then
8212         soname=conftest
8213         lib=conftest
8214         libobjs=conftest.$ac_objext
8215         deplibs=
8216         wl=$lt_prog_compiler_wl
8217         pic_flag=$lt_prog_compiler_pic
8218         compiler_flags=-v
8219         linker_flags=-v
8220         verstring=
8221         output_objdir=.
8222         libname=conftest
8223         lt_save_allow_undefined_flag=$allow_undefined_flag
8224         allow_undefined_flag=
8225         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8226   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); }
8230         then
8231           archive_cmds_need_lc=no
8232         else
8233           archive_cmds_need_lc=yes
8234         fi
8235         allow_undefined_flag=$lt_save_allow_undefined_flag
8236       else
8237         cat conftest.err 1>&5
8238       fi
8239       $RM conftest*
8240       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8241 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8242       ;;
8243     esac
8244   fi
8245   ;;
8246 esac
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8405 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8406 withGCC=$GCC
8407 if test "$withGCC" = yes; then
8408   case $host_os in
8409     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8410     *) lt_awk_arg="/^libraries:/" ;;
8411   esac
8412   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8413   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8414     # if the path contains ";" then we assume it to be the separator
8415     # otherwise default to the standard path separator (i.e. ":") - it is
8416     # assumed that no part of a normal pathname contains ";" but that should
8417     # okay in the real world where ";" in dirpaths is itself problematic.
8418     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8419   else
8420     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8421   fi
8422   # Ok, now we have the path, separated by spaces, we can step through it
8423   # and add multilib dir if necessary.
8424   lt_tmp_lt_search_path_spec=
8425   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8426   for lt_sys_path in $lt_search_path_spec; do
8427     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8428       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8429     else
8430       test -d "$lt_sys_path" && \
8431         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8432     fi
8433   done
8434   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8435 BEGIN {RS=" "; FS="/|\n";} {
8436   lt_foo="";
8437   lt_count=0;
8438   for (lt_i = NF; lt_i > 0; lt_i--) {
8439     if ($lt_i != "" && $lt_i != ".") {
8440       if ($lt_i == "..") {
8441         lt_count++;
8442       } else {
8443         if (lt_count == 0) {
8444           lt_foo="/" $lt_i lt_foo;
8445         } else {
8446           lt_count--;
8447         }
8448       }
8449     }
8450   }
8451   if (lt_foo != "") { lt_freq[lt_foo]++; }
8452   if (lt_freq[lt_foo] == 1) { print lt_foo; }
8453 }'`
8454   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8455 else
8456   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8457 fi
8458 library_names_spec=
8459 libname_spec='lib$name'
8460 soname_spec=
8461 shrext_cmds=".so"
8462 postinstall_cmds=
8463 postuninstall_cmds=
8464 finish_cmds=
8465 finish_eval=
8466 shlibpath_var=
8467 shlibpath_overrides_runpath=unknown
8468 version_type=none
8469 dynamic_linker="$host_os ld.so"
8470 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8471 need_lib_prefix=unknown
8472 hardcode_into_libs=no
8473
8474 # when you set need_version to no, make sure it does not cause -set_version
8475 # flags to be left without arguments
8476 need_version=unknown
8477
8478 case $host_os in
8479 aix3*)
8480   version_type=linux
8481   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8482   shlibpath_var=LIBPATH
8483
8484   # AIX 3 has no versioning support, so we append a major version to the name.
8485   soname_spec='${libname}${release}${shared_ext}$major'
8486   ;;
8487
8488 aix[4-9]*)
8489   version_type=linux
8490   need_lib_prefix=no
8491   need_version=no
8492   hardcode_into_libs=yes
8493   if test "$host_cpu" = ia64; then
8494     # AIX 5 supports IA64
8495     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8496     shlibpath_var=LD_LIBRARY_PATH
8497   else
8498     # With GCC up to 2.95.x, collect2 would create an import file
8499     # for dependence libraries.  The import file would start with
8500     # the line `#! .'.  This would cause the generated library to
8501     # depend on `.', always an invalid library.  This was fixed in
8502     # development snapshots of GCC prior to 3.0.
8503     case $host_os in
8504       aix4 | aix4.[01] | aix4.[01].*)
8505       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8506            echo ' yes '
8507            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8508         :
8509       else
8510         can_build_shared=no
8511       fi
8512       ;;
8513     esac
8514     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8515     # soname into executable. Probably we can add versioning support to
8516     # collect2, so additional links can be useful in future.
8517     if test "$aix_use_runtimelinking" = yes; then
8518       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8519       # instead of lib<name>.a to let people know that these are not
8520       # typical AIX shared libraries.
8521       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8522     else
8523       # We preserve .a as extension for shared libraries through AIX4.2
8524       # and later when we are not doing run time linking.
8525       library_names_spec='${libname}${release}.a $libname.a'
8526       soname_spec='${libname}${release}${shared_ext}$major'
8527     fi
8528     shlibpath_var=LIBPATH
8529   fi
8530   ;;
8531
8532 amigaos*)
8533   if test "$host_cpu" = m68k; then
8534     library_names_spec='$libname.ixlibrary $libname.a'
8535     # Create ${libname}_ixlibrary.a entries in /sys/libs.
8536     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'
8537   else
8538     dynamic_linker=no
8539   fi
8540   ;;
8541
8542 beos*)
8543   library_names_spec='${libname}${shared_ext}'
8544   dynamic_linker="$host_os ld.so"
8545   shlibpath_var=LIBRARY_PATH
8546   ;;
8547
8548 bsdi[45]*)
8549   version_type=linux
8550   need_version=no
8551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552   soname_spec='${libname}${release}${shared_ext}$major'
8553   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8554   shlibpath_var=LD_LIBRARY_PATH
8555   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8556   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8557   # the default ld.so.conf also contains /usr/contrib/lib and
8558   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8559   # libtool to hard-code these into programs
8560   ;;
8561
8562 cygwin* | mingw* | pw32*)
8563   version_type=windows
8564   shrext_cmds=".dll"
8565   need_version=no
8566   need_lib_prefix=no
8567
8568   case $withGCC,$host_os in
8569   yes,cygwin* | yes,mingw* | yes,pw32*)
8570     library_names_spec='$libname.dll.a'
8571     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8572     postinstall_cmds='base_file=`basename \${file}`~
8573       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8574       dldir=$destdir/`dirname \$dlpath`~
8575       test -d \$dldir || mkdir -p \$dldir~
8576       $install_prog $dir/$dlname \$dldir/$dlname~
8577       chmod a+x \$dldir/$dlname~
8578       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8579         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8580       fi'
8581     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8582       dlpath=$dir/\$dldll~
8583        $RM \$dlpath'
8584     shlibpath_overrides_runpath=yes
8585
8586     case $host_os in
8587     cygwin*)
8588       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8589       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8590       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8591       ;;
8592     mingw*)
8593       # MinGW DLLs use traditional 'lib' prefix
8594       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8595       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8596       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8597         # It is most probably a Windows format PATH printed by
8598         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8599         # path with ; separators, and with drive letters. We can handle the
8600         # drive letters (cygwin fileutils understands them), so leave them,
8601         # especially as we might pass files found there to a mingw objdump,
8602         # which wouldn't understand a cygwinified path. Ahh.
8603         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8604       else
8605         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8606       fi
8607       ;;
8608     pw32*)
8609       # pw32 DLLs use 'pw' prefix rather than 'lib'
8610       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8611       ;;
8612     esac
8613     ;;
8614
8615   *)
8616     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8617     ;;
8618   esac
8619   dynamic_linker='Win32 ld.exe'
8620   # FIXME: first we should search . and the directory the executable is in
8621   shlibpath_var=PATH
8622   ;;
8623
8624 darwin* | rhapsody*)
8625   dynamic_linker="$host_os dyld"
8626   version_type=darwin
8627   need_lib_prefix=no
8628   need_version=no
8629   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8630   soname_spec='${libname}${release}${major}$shared_ext'
8631   shlibpath_overrides_runpath=yes
8632   shlibpath_var=DYLD_LIBRARY_PATH
8633   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8634
8635   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8636   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8637   ;;
8638
8639 dgux*)
8640   version_type=linux
8641   need_lib_prefix=no
8642   need_version=no
8643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8644   soname_spec='${libname}${release}${shared_ext}$major'
8645   shlibpath_var=LD_LIBRARY_PATH
8646   ;;
8647
8648 freebsd1*)
8649   dynamic_linker=no
8650   ;;
8651
8652 freebsd* | dragonfly*)
8653   # DragonFly does not have aout.  When/if they implement a new
8654   # versioning mechanism, adjust this.
8655   if test -x /usr/bin/objformat; then
8656     objformat=`/usr/bin/objformat`
8657   else
8658     case $host_os in
8659     freebsd[123]*) objformat=aout ;;
8660     *) objformat=elf ;;
8661     esac
8662   fi
8663   version_type=freebsd-$objformat
8664   case $version_type in
8665     freebsd-elf*)
8666       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8667       need_version=no
8668       need_lib_prefix=no
8669       ;;
8670     freebsd-*)
8671       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8672       need_version=yes
8673       ;;
8674   esac
8675   shlibpath_var=LD_LIBRARY_PATH
8676   case $host_os in
8677   freebsd2*)
8678     shlibpath_overrides_runpath=yes
8679     ;;
8680   freebsd3.[01]* | freebsdelf3.[01]*)
8681     shlibpath_overrides_runpath=yes
8682     hardcode_into_libs=yes
8683     ;;
8684   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8685   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8686     shlibpath_overrides_runpath=no
8687     hardcode_into_libs=yes
8688     ;;
8689   *) # from 4.6 on, and DragonFly
8690     shlibpath_overrides_runpath=yes
8691     hardcode_into_libs=yes
8692     ;;
8693   esac
8694   ;;
8695
8696 gnu*)
8697   version_type=linux
8698   need_lib_prefix=no
8699   need_version=no
8700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8701   soname_spec='${libname}${release}${shared_ext}$major'
8702   shlibpath_var=LD_LIBRARY_PATH
8703   hardcode_into_libs=yes
8704   ;;
8705
8706 hpux9* | hpux10* | hpux11*)
8707   # Give a soname corresponding to the major version so that dld.sl refuses to
8708   # link against other versions.
8709   version_type=sunos
8710   need_lib_prefix=no
8711   need_version=no
8712   case $host_cpu in
8713   ia64*)
8714     shrext_cmds='.so'
8715     hardcode_into_libs=yes
8716     dynamic_linker="$host_os dld.so"
8717     shlibpath_var=LD_LIBRARY_PATH
8718     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8720     soname_spec='${libname}${release}${shared_ext}$major'
8721     if test "X$HPUX_IA64_MODE" = X32; then
8722       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8723     else
8724       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8725     fi
8726     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8727     ;;
8728   hppa*64*)
8729     shrext_cmds='.sl'
8730     hardcode_into_libs=yes
8731     dynamic_linker="$host_os dld.sl"
8732     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8733     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8734     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8735     soname_spec='${libname}${release}${shared_ext}$major'
8736     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8737     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8738     ;;
8739   *)
8740     shrext_cmds='.sl'
8741     dynamic_linker="$host_os dld.sl"
8742     shlibpath_var=SHLIB_PATH
8743     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8744     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8745     soname_spec='${libname}${release}${shared_ext}$major'
8746     ;;
8747   esac
8748   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8749   postinstall_cmds='chmod 555 $lib'
8750   ;;
8751
8752 interix[3-9]*)
8753   version_type=linux
8754   need_lib_prefix=no
8755   need_version=no
8756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8757   soname_spec='${libname}${release}${shared_ext}$major'
8758   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8759   shlibpath_var=LD_LIBRARY_PATH
8760   shlibpath_overrides_runpath=no
8761   hardcode_into_libs=yes
8762   ;;
8763
8764 irix5* | irix6* | nonstopux*)
8765   case $host_os in
8766     nonstopux*) version_type=nonstopux ;;
8767     *)
8768         if test "$lt_cv_prog_gnu_ld" = yes; then
8769                 version_type=linux
8770         else
8771                 version_type=irix
8772         fi ;;
8773   esac
8774   need_lib_prefix=no
8775   need_version=no
8776   soname_spec='${libname}${release}${shared_ext}$major'
8777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8778   case $host_os in
8779   irix5* | nonstopux*)
8780     libsuff= shlibsuff=
8781     ;;
8782   *)
8783     case $LD in # libtool.m4 will add one of these switches to LD
8784     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8785       libsuff= shlibsuff= libmagic=32-bit;;
8786     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8787       libsuff=32 shlibsuff=N32 libmagic=N32;;
8788     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8789       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8790     *) libsuff= shlibsuff= libmagic=never-match;;
8791     esac
8792     ;;
8793   esac
8794   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8795   shlibpath_overrides_runpath=no
8796   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8797   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8798   hardcode_into_libs=yes
8799   ;;
8800
8801 # No shared lib support for Linux oldld, aout, or coff.
8802 linux*oldld* | linux*aout* | linux*coff*)
8803   dynamic_linker=no
8804   ;;
8805
8806 # This must be Linux ELF.
8807 linux* | k*bsd*-gnu)
8808   version_type=linux
8809   need_lib_prefix=no
8810   need_version=no
8811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812   soname_spec='${libname}${release}${shared_ext}$major'
8813   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8814   shlibpath_var=LD_LIBRARY_PATH
8815   shlibpath_overrides_runpath=no
8816   # Some binutils ld are patched to set DT_RUNPATH
8817   save_LDFLAGS=$LDFLAGS
8818   save_libdir=$libdir
8819   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8820        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8821   if test x$gcc_no_link = xyes; then
8822   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8823 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8824    { (exit 1); exit 1; }; }
8825 fi
8826 cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h.  */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h.  */
8832
8833 int
8834 main ()
8835 {
8836
8837   ;
8838   return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843   (eval $ac_link) 2>conftest.er1
8844   ac_status=$?
8845   grep -v '^ *+' conftest.er1 >conftest.err
8846   rm -f conftest.er1
8847   cat conftest.err >&5
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); } &&
8850          { ac_try='test -z "$ac_c_werror_flag"
8851                          || test ! -s conftest.err'
8852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853   (eval $ac_try) 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); }; } &&
8857          { ac_try='test -s conftest$ac_exeext'
8858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859   (eval $ac_try) 2>&5
8860   ac_status=$?
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); }; }; then
8863   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8864   shlibpath_overrides_runpath=yes
8865 fi
8866
8867 else
8868   echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871 fi
8872 rm -f conftest.err conftest.$ac_objext \
8873       conftest$ac_exeext conftest.$ac_ext
8874   LDFLAGS=$save_LDFLAGS
8875   libdir=$save_libdir
8876
8877   # This implies no fast_install, which is unacceptable.
8878   # Some rework will be needed to allow for fast_install
8879   # before this can be enabled.
8880   hardcode_into_libs=yes
8881
8882   # Append ld.so.conf contents to the search path
8883   if test -f /etc/ld.so.conf; then
8884     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8885     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8886   fi
8887
8888   # We used to test for /lib/ld.so.1 and disable shared libraries on
8889   # powerpc, because MkLinux only supported shared libraries with the
8890   # GNU dynamic linker.  Since this was broken with cross compilers,
8891   # most powerpc-linux boxes support dynamic linking these days and
8892   # people can always --disable-shared, the test was removed, and we
8893   # assume the GNU/Linux dynamic linker is in use.
8894   dynamic_linker='GNU/Linux ld.so'
8895   ;;
8896
8897 netbsd*)
8898   version_type=sunos
8899   need_lib_prefix=no
8900   need_version=no
8901   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8903     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8904     dynamic_linker='NetBSD (a.out) ld.so'
8905   else
8906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8907     soname_spec='${libname}${release}${shared_ext}$major'
8908     dynamic_linker='NetBSD ld.elf_so'
8909   fi
8910   shlibpath_var=LD_LIBRARY_PATH
8911   shlibpath_overrides_runpath=yes
8912   hardcode_into_libs=yes
8913   ;;
8914
8915 newsos6)
8916   version_type=linux
8917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8918   shlibpath_var=LD_LIBRARY_PATH
8919   shlibpath_overrides_runpath=yes
8920   ;;
8921
8922 *nto* | *qnx*)
8923   version_type=qnx
8924   need_lib_prefix=no
8925   need_version=no
8926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8927   soname_spec='${libname}${release}${shared_ext}$major'
8928   shlibpath_var=LD_LIBRARY_PATH
8929   shlibpath_overrides_runpath=no
8930   hardcode_into_libs=yes
8931   dynamic_linker='ldqnx.so'
8932   ;;
8933
8934 openbsd*)
8935   version_type=sunos
8936   sys_lib_dlsearch_path_spec="/usr/lib"
8937   need_lib_prefix=no
8938   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8939   case $host_os in
8940     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8941     *)                          need_version=no  ;;
8942   esac
8943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8944   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8945   shlibpath_var=LD_LIBRARY_PATH
8946   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8947     case $host_os in
8948       openbsd2.[89] | openbsd2.[89].*)
8949         shlibpath_overrides_runpath=no
8950         ;;
8951       *)
8952         shlibpath_overrides_runpath=yes
8953         ;;
8954       esac
8955   else
8956     shlibpath_overrides_runpath=yes
8957   fi
8958   ;;
8959
8960 os2*)
8961   libname_spec='$name'
8962   shrext_cmds=".dll"
8963   need_lib_prefix=no
8964   library_names_spec='$libname${shared_ext} $libname.a'
8965   dynamic_linker='OS/2 ld.exe'
8966   shlibpath_var=LIBPATH
8967   ;;
8968
8969 osf3* | osf4* | osf5*)
8970   version_type=osf
8971   need_lib_prefix=no
8972   need_version=no
8973   soname_spec='${libname}${release}${shared_ext}$major'
8974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8975   shlibpath_var=LD_LIBRARY_PATH
8976   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8977   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8978   ;;
8979
8980 rdos*)
8981   dynamic_linker=no
8982   ;;
8983
8984 solaris*)
8985   version_type=linux
8986   need_lib_prefix=no
8987   need_version=no
8988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989   soname_spec='${libname}${release}${shared_ext}$major'
8990   shlibpath_var=LD_LIBRARY_PATH
8991   shlibpath_overrides_runpath=yes
8992   hardcode_into_libs=yes
8993   # ldd complains unless libraries are executable
8994   postinstall_cmds='chmod +x $lib'
8995   ;;
8996
8997 sunos4*)
8998   version_type=sunos
8999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9000   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9001   shlibpath_var=LD_LIBRARY_PATH
9002   shlibpath_overrides_runpath=yes
9003   if test "$with_gnu_ld" = yes; then
9004     need_lib_prefix=no
9005   fi
9006   need_version=yes
9007   ;;
9008
9009 sysv4 | sysv4.3*)
9010   version_type=linux
9011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012   soname_spec='${libname}${release}${shared_ext}$major'
9013   shlibpath_var=LD_LIBRARY_PATH
9014   case $host_vendor in
9015     sni)
9016       shlibpath_overrides_runpath=no
9017       need_lib_prefix=no
9018       runpath_var=LD_RUN_PATH
9019       ;;
9020     siemens)
9021       need_lib_prefix=no
9022       ;;
9023     motorola)
9024       need_lib_prefix=no
9025       need_version=no
9026       shlibpath_overrides_runpath=no
9027       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9028       ;;
9029   esac
9030   ;;
9031
9032 sysv4*MP*)
9033   if test -d /usr/nec ;then
9034     version_type=linux
9035     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9036     soname_spec='$libname${shared_ext}.$major'
9037     shlibpath_var=LD_LIBRARY_PATH
9038   fi
9039   ;;
9040
9041 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9042   version_type=freebsd-elf
9043   need_lib_prefix=no
9044   need_version=no
9045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9046   soname_spec='${libname}${release}${shared_ext}$major'
9047   shlibpath_var=LD_LIBRARY_PATH
9048   shlibpath_overrides_runpath=yes
9049   hardcode_into_libs=yes
9050   if test "$with_gnu_ld" = yes; then
9051     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9052   else
9053     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9054     case $host_os in
9055       sco3.2v5*)
9056         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9057         ;;
9058     esac
9059   fi
9060   sys_lib_dlsearch_path_spec='/usr/lib'
9061   ;;
9062
9063 tpf*)
9064   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9065   version_type=linux
9066   need_lib_prefix=no
9067   need_version=no
9068   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9069   shlibpath_var=LD_LIBRARY_PATH
9070   shlibpath_overrides_runpath=no
9071   hardcode_into_libs=yes
9072   ;;
9073
9074 uts4*)
9075   version_type=linux
9076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077   soname_spec='${libname}${release}${shared_ext}$major'
9078   shlibpath_var=LD_LIBRARY_PATH
9079   ;;
9080
9081 *)
9082   dynamic_linker=no
9083   ;;
9084 esac
9085 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9086 echo "${ECHO_T}$dynamic_linker" >&6
9087 test "$dynamic_linker" = no && can_build_shared=no
9088
9089 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9090 if test "$GCC" = yes; then
9091   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9092 fi
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9181 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9182 hardcode_action=
9183 if test -n "$hardcode_libdir_flag_spec" ||
9184    test -n "$runpath_var" ||
9185    test "X$hardcode_automatic" = "Xyes" ; then
9186
9187   # We can hardcode non-existent directories.
9188   if test "$hardcode_direct" != no &&
9189      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9190      # have to relink, otherwise we might link with an installed library
9191      # when we should be linking with a yet-to-be-installed one
9192      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9193      test "$hardcode_minus_L" != no; then
9194     # Linking always hardcodes the temporary library directory.
9195     hardcode_action=relink
9196   else
9197     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9198     hardcode_action=immediate
9199   fi
9200 else
9201   # We cannot hardcode anything, or else we can only hardcode existing
9202   # directories.
9203   hardcode_action=unsupported
9204 fi
9205 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9206 echo "${ECHO_T}$hardcode_action" >&6
9207
9208 if test "$hardcode_action" = relink ||
9209    test "$inherit_rpath" = yes; then
9210   # Fast installation is not supported
9211   enable_fast_install=no
9212 elif test "$shlibpath_overrides_runpath" = yes ||
9213      test "$enable_shared" = no; then
9214   # Fast installation is not necessary
9215   enable_fast_install=needless
9216 fi
9217
9218
9219
9220
9221
9222
9223   if test "x$enable_dlopen" != xyes; then
9224   enable_dlopen=unknown
9225   enable_dlopen_self=unknown
9226   enable_dlopen_self_static=unknown
9227 else
9228   lt_cv_dlopen=no
9229   lt_cv_dlopen_libs=
9230
9231   case $host_os in
9232   beos*)
9233     lt_cv_dlopen="load_add_on"
9234     lt_cv_dlopen_libs=
9235     lt_cv_dlopen_self=yes
9236     ;;
9237
9238   mingw* | pw32*)
9239     lt_cv_dlopen="LoadLibrary"
9240     lt_cv_dlopen_libs=
9241     ;;
9242
9243   cygwin*)
9244     lt_cv_dlopen="dlopen"
9245     lt_cv_dlopen_libs=
9246     ;;
9247
9248   darwin*)
9249   # if libdl is installed we need to link against it
9250     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9251 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9252 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9253   echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255   ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-ldl  $LIBS"
9257 if test x$gcc_no_link = xyes; then
9258   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9260    { (exit 1); exit 1; }; }
9261 fi
9262 cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h.  */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h.  */
9268
9269 /* Override any gcc2 internal prototype to avoid an error.  */
9270 #ifdef __cplusplus
9271 extern "C"
9272 #endif
9273 /* We use char because int might match the return type of a gcc2
9274    builtin and then its argument prototype would still apply.  */
9275 char dlopen ();
9276 int
9277 main ()
9278 {
9279 dlopen ();
9280   ;
9281   return 0;
9282 }
9283 _ACEOF
9284 rm -f conftest.$ac_objext conftest$ac_exeext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9286   (eval $ac_link) 2>conftest.er1
9287   ac_status=$?
9288   grep -v '^ *+' conftest.er1 >conftest.err
9289   rm -f conftest.er1
9290   cat conftest.err >&5
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } &&
9293          { ac_try='test -z "$ac_c_werror_flag"
9294                          || test ! -s conftest.err'
9295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296   (eval $ac_try) 2>&5
9297   ac_status=$?
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); }; } &&
9300          { ac_try='test -s conftest$ac_exeext'
9301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302   (eval $ac_try) 2>&5
9303   ac_status=$?
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); }; }; then
9306   ac_cv_lib_dl_dlopen=yes
9307 else
9308   echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9310
9311 ac_cv_lib_dl_dlopen=no
9312 fi
9313 rm -f conftest.err conftest.$ac_objext \
9314       conftest$ac_exeext conftest.$ac_ext
9315 LIBS=$ac_check_lib_save_LIBS
9316 fi
9317 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9318 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9319 if test $ac_cv_lib_dl_dlopen = yes; then
9320   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9321 else
9322
9323     lt_cv_dlopen="dyld"
9324     lt_cv_dlopen_libs=
9325     lt_cv_dlopen_self=yes
9326
9327 fi
9328
9329     ;;
9330
9331   *)
9332     echo "$as_me:$LINENO: checking for shl_load" >&5
9333 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9334 if test "${ac_cv_func_shl_load+set}" = set; then
9335   echo $ECHO_N "(cached) $ECHO_C" >&6
9336 else
9337   if test x$gcc_no_link = xyes; then
9338   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9339 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9340    { (exit 1); exit 1; }; }
9341 fi
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h.  */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h.  */
9348 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9350 #define shl_load innocuous_shl_load
9351
9352 /* System header to define __stub macros and hopefully few prototypes,
9353     which can conflict with char shl_load (); below.
9354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9355     <limits.h> exists even on freestanding compilers.  */
9356
9357 #ifdef __STDC__
9358 # include <limits.h>
9359 #else
9360 # include <assert.h>
9361 #endif
9362
9363 #undef shl_load
9364
9365 /* Override any gcc2 internal prototype to avoid an error.  */
9366 #ifdef __cplusplus
9367 extern "C"
9368 {
9369 #endif
9370 /* We use char because int might match the return type of a gcc2
9371    builtin and then its argument prototype would still apply.  */
9372 char shl_load ();
9373 /* The GNU C library defines this for functions which it implements
9374     to always fail with ENOSYS.  Some functions are actually named
9375     something starting with __ and the normal name is an alias.  */
9376 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9377 choke me
9378 #else
9379 char (*f) () = shl_load;
9380 #endif
9381 #ifdef __cplusplus
9382 }
9383 #endif
9384
9385 int
9386 main ()
9387 {
9388 return f != shl_load;
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395   (eval $ac_link) 2>conftest.er1
9396   ac_status=$?
9397   grep -v '^ *+' conftest.er1 >conftest.err
9398   rm -f conftest.er1
9399   cat conftest.err >&5
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } &&
9402          { ac_try='test -z "$ac_c_werror_flag"
9403                          || test ! -s conftest.err'
9404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405   (eval $ac_try) 2>&5
9406   ac_status=$?
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); }; } &&
9409          { ac_try='test -s conftest$ac_exeext'
9410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411   (eval $ac_try) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); }; }; then
9415   ac_cv_func_shl_load=yes
9416 else
9417   echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9419
9420 ac_cv_func_shl_load=no
9421 fi
9422 rm -f conftest.err conftest.$ac_objext \
9423       conftest$ac_exeext conftest.$ac_ext
9424 fi
9425 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9426 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9427 if test $ac_cv_func_shl_load = yes; then
9428   lt_cv_dlopen="shl_load"
9429 else
9430   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9431 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9432 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9433   echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435   ac_check_lib_save_LIBS=$LIBS
9436 LIBS="-ldld  $LIBS"
9437 if test x$gcc_no_link = xyes; then
9438   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9439 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9440    { (exit 1); exit 1; }; }
9441 fi
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h.  */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h.  */
9448
9449 /* Override any gcc2 internal prototype to avoid an error.  */
9450 #ifdef __cplusplus
9451 extern "C"
9452 #endif
9453 /* We use char because int might match the return type of a gcc2
9454    builtin and then its argument prototype would still apply.  */
9455 char shl_load ();
9456 int
9457 main ()
9458 {
9459 shl_load ();
9460   ;
9461   return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466   (eval $ac_link) 2>conftest.er1
9467   ac_status=$?
9468   grep -v '^ *+' conftest.er1 >conftest.err
9469   rm -f conftest.er1
9470   cat conftest.err >&5
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); } &&
9473          { ac_try='test -z "$ac_c_werror_flag"
9474                          || test ! -s conftest.err'
9475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476   (eval $ac_try) 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); }; } &&
9480          { ac_try='test -s conftest$ac_exeext'
9481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482   (eval $ac_try) 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); }; }; then
9486   ac_cv_lib_dld_shl_load=yes
9487 else
9488   echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 ac_cv_lib_dld_shl_load=no
9492 fi
9493 rm -f conftest.err conftest.$ac_objext \
9494       conftest$ac_exeext conftest.$ac_ext
9495 LIBS=$ac_check_lib_save_LIBS
9496 fi
9497 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9498 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9499 if test $ac_cv_lib_dld_shl_load = yes; then
9500   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9501 else
9502   echo "$as_me:$LINENO: checking for dlopen" >&5
9503 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9504 if test "${ac_cv_func_dlopen+set}" = set; then
9505   echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507   if test x$gcc_no_link = xyes; then
9508   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9509 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9510    { (exit 1); exit 1; }; }
9511 fi
9512 cat >conftest.$ac_ext <<_ACEOF
9513 /* confdefs.h.  */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h.  */
9518 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9520 #define dlopen innocuous_dlopen
9521
9522 /* System header to define __stub macros and hopefully few prototypes,
9523     which can conflict with char dlopen (); below.
9524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9525     <limits.h> exists even on freestanding compilers.  */
9526
9527 #ifdef __STDC__
9528 # include <limits.h>
9529 #else
9530 # include <assert.h>
9531 #endif
9532
9533 #undef dlopen
9534
9535 /* Override any gcc2 internal prototype to avoid an error.  */
9536 #ifdef __cplusplus
9537 extern "C"
9538 {
9539 #endif
9540 /* We use char because int might match the return type of a gcc2
9541    builtin and then its argument prototype would still apply.  */
9542 char dlopen ();
9543 /* The GNU C library defines this for functions which it implements
9544     to always fail with ENOSYS.  Some functions are actually named
9545     something starting with __ and the normal name is an alias.  */
9546 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9547 choke me
9548 #else
9549 char (*f) () = dlopen;
9550 #endif
9551 #ifdef __cplusplus
9552 }
9553 #endif
9554
9555 int
9556 main ()
9557 {
9558 return f != dlopen;
9559   ;
9560   return 0;
9561 }
9562 _ACEOF
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9565   (eval $ac_link) 2>conftest.er1
9566   ac_status=$?
9567   grep -v '^ *+' conftest.er1 >conftest.err
9568   rm -f conftest.er1
9569   cat conftest.err >&5
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); } &&
9572          { ac_try='test -z "$ac_c_werror_flag"
9573                          || test ! -s conftest.err'
9574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575   (eval $ac_try) 2>&5
9576   ac_status=$?
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); }; } &&
9579          { ac_try='test -s conftest$ac_exeext'
9580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581   (eval $ac_try) 2>&5
9582   ac_status=$?
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); }; }; then
9585   ac_cv_func_dlopen=yes
9586 else
9587   echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9589
9590 ac_cv_func_dlopen=no
9591 fi
9592 rm -f conftest.err conftest.$ac_objext \
9593       conftest$ac_exeext conftest.$ac_ext
9594 fi
9595 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9596 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9597 if test $ac_cv_func_dlopen = yes; then
9598   lt_cv_dlopen="dlopen"
9599 else
9600   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9601 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9602 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9603   echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605   ac_check_lib_save_LIBS=$LIBS
9606 LIBS="-ldl  $LIBS"
9607 if test x$gcc_no_link = xyes; then
9608   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9609 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9610    { (exit 1); exit 1; }; }
9611 fi
9612 cat >conftest.$ac_ext <<_ACEOF
9613 /* confdefs.h.  */
9614 _ACEOF
9615 cat confdefs.h >>conftest.$ac_ext
9616 cat >>conftest.$ac_ext <<_ACEOF
9617 /* end confdefs.h.  */
9618
9619 /* Override any gcc2 internal prototype to avoid an error.  */
9620 #ifdef __cplusplus
9621 extern "C"
9622 #endif
9623 /* We use char because int might match the return type of a gcc2
9624    builtin and then its argument prototype would still apply.  */
9625 char dlopen ();
9626 int
9627 main ()
9628 {
9629 dlopen ();
9630   ;
9631   return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9636   (eval $ac_link) 2>conftest.er1
9637   ac_status=$?
9638   grep -v '^ *+' conftest.er1 >conftest.err
9639   rm -f conftest.er1
9640   cat conftest.err >&5
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); } &&
9643          { ac_try='test -z "$ac_c_werror_flag"
9644                          || test ! -s conftest.err'
9645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646   (eval $ac_try) 2>&5
9647   ac_status=$?
9648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649   (exit $ac_status); }; } &&
9650          { ac_try='test -s conftest$ac_exeext'
9651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652   (eval $ac_try) 2>&5
9653   ac_status=$?
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   (exit $ac_status); }; }; then
9656   ac_cv_lib_dl_dlopen=yes
9657 else
9658   echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9660
9661 ac_cv_lib_dl_dlopen=no
9662 fi
9663 rm -f conftest.err conftest.$ac_objext \
9664       conftest$ac_exeext conftest.$ac_ext
9665 LIBS=$ac_check_lib_save_LIBS
9666 fi
9667 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9668 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9669 if test $ac_cv_lib_dl_dlopen = yes; then
9670   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9671 else
9672   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9673 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9674 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9675   echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677   ac_check_lib_save_LIBS=$LIBS
9678 LIBS="-lsvld  $LIBS"
9679 if test x$gcc_no_link = xyes; then
9680   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9682    { (exit 1); exit 1; }; }
9683 fi
9684 cat >conftest.$ac_ext <<_ACEOF
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690
9691 /* Override any gcc2 internal prototype to avoid an error.  */
9692 #ifdef __cplusplus
9693 extern "C"
9694 #endif
9695 /* We use char because int might match the return type of a gcc2
9696    builtin and then its argument prototype would still apply.  */
9697 char dlopen ();
9698 int
9699 main ()
9700 {
9701 dlopen ();
9702   ;
9703   return 0;
9704 }
9705 _ACEOF
9706 rm -f conftest.$ac_objext conftest$ac_exeext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9708   (eval $ac_link) 2>conftest.er1
9709   ac_status=$?
9710   grep -v '^ *+' conftest.er1 >conftest.err
9711   rm -f conftest.er1
9712   cat conftest.err >&5
9713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714   (exit $ac_status); } &&
9715          { ac_try='test -z "$ac_c_werror_flag"
9716                          || test ! -s conftest.err'
9717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718   (eval $ac_try) 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); }; } &&
9722          { ac_try='test -s conftest$ac_exeext'
9723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724   (eval $ac_try) 2>&5
9725   ac_status=$?
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); }; }; then
9728   ac_cv_lib_svld_dlopen=yes
9729 else
9730   echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733 ac_cv_lib_svld_dlopen=no
9734 fi
9735 rm -f conftest.err conftest.$ac_objext \
9736       conftest$ac_exeext conftest.$ac_ext
9737 LIBS=$ac_check_lib_save_LIBS
9738 fi
9739 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9740 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9741 if test $ac_cv_lib_svld_dlopen = yes; then
9742   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9743 else
9744   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9745 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9746 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9747   echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749   ac_check_lib_save_LIBS=$LIBS
9750 LIBS="-ldld  $LIBS"
9751 if test x$gcc_no_link = xyes; then
9752   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9753 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9754    { (exit 1); exit 1; }; }
9755 fi
9756 cat >conftest.$ac_ext <<_ACEOF
9757 /* confdefs.h.  */
9758 _ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h.  */
9762
9763 /* Override any gcc2 internal prototype to avoid an error.  */
9764 #ifdef __cplusplus
9765 extern "C"
9766 #endif
9767 /* We use char because int might match the return type of a gcc2
9768    builtin and then its argument prototype would still apply.  */
9769 char dld_link ();
9770 int
9771 main ()
9772 {
9773 dld_link ();
9774   ;
9775   return 0;
9776 }
9777 _ACEOF
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9780   (eval $ac_link) 2>conftest.er1
9781   ac_status=$?
9782   grep -v '^ *+' conftest.er1 >conftest.err
9783   rm -f conftest.er1
9784   cat conftest.err >&5
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); } &&
9787          { ac_try='test -z "$ac_c_werror_flag"
9788                          || test ! -s conftest.err'
9789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790   (eval $ac_try) 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; } &&
9794          { ac_try='test -s conftest$ac_exeext'
9795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796   (eval $ac_try) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); }; }; then
9800   ac_cv_lib_dld_dld_link=yes
9801 else
9802   echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9804
9805 ac_cv_lib_dld_dld_link=no
9806 fi
9807 rm -f conftest.err conftest.$ac_objext \
9808       conftest$ac_exeext conftest.$ac_ext
9809 LIBS=$ac_check_lib_save_LIBS
9810 fi
9811 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9812 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9813 if test $ac_cv_lib_dld_dld_link = yes; then
9814   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9815 fi
9816
9817
9818 fi
9819
9820
9821 fi
9822
9823
9824 fi
9825
9826
9827 fi
9828
9829
9830 fi
9831
9832     ;;
9833   esac
9834
9835   if test "x$lt_cv_dlopen" != xno; then
9836     enable_dlopen=yes
9837   else
9838     enable_dlopen=no
9839   fi
9840
9841   case $lt_cv_dlopen in
9842   dlopen)
9843     save_CPPFLAGS="$CPPFLAGS"
9844     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9845
9846     save_LDFLAGS="$LDFLAGS"
9847     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9848
9849     save_LIBS="$LIBS"
9850     LIBS="$lt_cv_dlopen_libs $LIBS"
9851
9852     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9853 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9854 if test "${lt_cv_dlopen_self+set}" = set; then
9855   echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857           if test "$cross_compiling" = yes; then :
9858   lt_cv_dlopen_self=cross
9859 else
9860   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9861   lt_status=$lt_dlunknown
9862   cat > conftest.$ac_ext <<_LT_EOF
9863 #line 9863 "configure"
9864 #include "confdefs.h"
9865
9866 #if HAVE_DLFCN_H
9867 #include <dlfcn.h>
9868 #endif
9869
9870 #include <stdio.h>
9871
9872 #ifdef RTLD_GLOBAL
9873 #  define LT_DLGLOBAL           RTLD_GLOBAL
9874 #else
9875 #  ifdef DL_GLOBAL
9876 #    define LT_DLGLOBAL         DL_GLOBAL
9877 #  else
9878 #    define LT_DLGLOBAL         0
9879 #  endif
9880 #endif
9881
9882 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9883    find out it does not work in some platform. */
9884 #ifndef LT_DLLAZY_OR_NOW
9885 #  ifdef RTLD_LAZY
9886 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9887 #  else
9888 #    ifdef DL_LAZY
9889 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9890 #    else
9891 #      ifdef RTLD_NOW
9892 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9893 #      else
9894 #        ifdef DL_NOW
9895 #          define LT_DLLAZY_OR_NOW      DL_NOW
9896 #        else
9897 #          define LT_DLLAZY_OR_NOW      0
9898 #        endif
9899 #      endif
9900 #    endif
9901 #  endif
9902 #endif
9903
9904 #ifdef __cplusplus
9905 extern "C" void exit (int);
9906 #endif
9907
9908 void fnord() { int i=42;}
9909 int main ()
9910 {
9911   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9912   int status = $lt_dlunknown;
9913
9914   if (self)
9915     {
9916       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9917       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9918       /* dlclose (self); */
9919     }
9920   else
9921     puts (dlerror ());
9922
9923     exit (status);
9924 }
9925 _LT_EOF
9926   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927   (eval $ac_link) 2>&5
9928   ac_status=$?
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9931     (./conftest; exit; ) >&5 2>/dev/null
9932     lt_status=$?
9933     case x$lt_status in
9934       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9935       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9936       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9937     esac
9938   else :
9939     # compilation failed
9940     lt_cv_dlopen_self=no
9941   fi
9942 fi
9943 rm -fr conftest*
9944
9945
9946 fi
9947 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9948 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9949
9950     if test "x$lt_cv_dlopen_self" = xyes; then
9951       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9952       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9953 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9954 if test "${lt_cv_dlopen_self_static+set}" = set; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957           if test "$cross_compiling" = yes; then :
9958   lt_cv_dlopen_self_static=cross
9959 else
9960   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9961   lt_status=$lt_dlunknown
9962   cat > conftest.$ac_ext <<_LT_EOF
9963 #line 9963 "configure"
9964 #include "confdefs.h"
9965
9966 #if HAVE_DLFCN_H
9967 #include <dlfcn.h>
9968 #endif
9969
9970 #include <stdio.h>
9971
9972 #ifdef RTLD_GLOBAL
9973 #  define LT_DLGLOBAL           RTLD_GLOBAL
9974 #else
9975 #  ifdef DL_GLOBAL
9976 #    define LT_DLGLOBAL         DL_GLOBAL
9977 #  else
9978 #    define LT_DLGLOBAL         0
9979 #  endif
9980 #endif
9981
9982 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9983    find out it does not work in some platform. */
9984 #ifndef LT_DLLAZY_OR_NOW
9985 #  ifdef RTLD_LAZY
9986 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9987 #  else
9988 #    ifdef DL_LAZY
9989 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9990 #    else
9991 #      ifdef RTLD_NOW
9992 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9993 #      else
9994 #        ifdef DL_NOW
9995 #          define LT_DLLAZY_OR_NOW      DL_NOW
9996 #        else
9997 #          define LT_DLLAZY_OR_NOW      0
9998 #        endif
9999 #      endif
10000 #    endif
10001 #  endif
10002 #endif
10003
10004 #ifdef __cplusplus
10005 extern "C" void exit (int);
10006 #endif
10007
10008 void fnord() { int i=42;}
10009 int main ()
10010 {
10011   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10012   int status = $lt_dlunknown;
10013
10014   if (self)
10015     {
10016       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10017       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10018       /* dlclose (self); */
10019     }
10020   else
10021     puts (dlerror ());
10022
10023     exit (status);
10024 }
10025 _LT_EOF
10026   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10027   (eval $ac_link) 2>&5
10028   ac_status=$?
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10031     (./conftest; exit; ) >&5 2>/dev/null
10032     lt_status=$?
10033     case x$lt_status in
10034       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10035       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10036       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10037     esac
10038   else :
10039     # compilation failed
10040     lt_cv_dlopen_self_static=no
10041   fi
10042 fi
10043 rm -fr conftest*
10044
10045
10046 fi
10047 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10048 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10049     fi
10050
10051     CPPFLAGS="$save_CPPFLAGS"
10052     LDFLAGS="$save_LDFLAGS"
10053     LIBS="$save_LIBS"
10054     ;;
10055   esac
10056
10057   case $lt_cv_dlopen_self in
10058   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10059   *) enable_dlopen_self=unknown ;;
10060   esac
10061
10062   case $lt_cv_dlopen_self_static in
10063   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10064   *) enable_dlopen_self_static=unknown ;;
10065   esac
10066 fi
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084 striplib=
10085 old_striplib=
10086 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10087 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10088 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10089   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10090   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10091   echo "$as_me:$LINENO: result: yes" >&5
10092 echo "${ECHO_T}yes" >&6
10093 else
10094 # FIXME - insert some real tests, host_os isn't really good enough
10095   case $host_os in
10096   darwin*)
10097     if test -n "$STRIP" ; then
10098       striplib="$STRIP -x"
10099       old_striplib="$STRIP -S"
10100       echo "$as_me:$LINENO: result: yes" >&5
10101 echo "${ECHO_T}yes" >&6
10102     else
10103       echo "$as_me:$LINENO: result: no" >&5
10104 echo "${ECHO_T}no" >&6
10105     fi
10106     ;;
10107   *)
10108     echo "$as_me:$LINENO: result: no" >&5
10109 echo "${ECHO_T}no" >&6
10110     ;;
10111   esac
10112 fi
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125   # Report which library types will actually be built
10126   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10127 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10128   echo "$as_me:$LINENO: result: $can_build_shared" >&5
10129 echo "${ECHO_T}$can_build_shared" >&6
10130
10131   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10132 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10133   test "$can_build_shared" = "no" && enable_shared=no
10134
10135   # On AIX, shared libraries and static libraries use the same namespace, and
10136   # are all built from PIC.
10137   case $host_os in
10138   aix3*)
10139     test "$enable_shared" = yes && enable_static=no
10140     if test -n "$RANLIB"; then
10141       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10142       postinstall_cmds='$RANLIB $lib'
10143     fi
10144     ;;
10145
10146   aix[4-9]*)
10147     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10148       test "$enable_shared" = yes && enable_static=no
10149     fi
10150     ;;
10151   esac
10152   echo "$as_me:$LINENO: result: $enable_shared" >&5
10153 echo "${ECHO_T}$enable_shared" >&6
10154
10155   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10156 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10157   # Make sure either enable_shared or enable_static is yes.
10158   test "$enable_shared" = yes || enable_static=yes
10159   echo "$as_me:$LINENO: result: $enable_static" >&5
10160 echo "${ECHO_T}$enable_static" >&6
10161
10162
10163
10164
10165 fi
10166 ac_ext=c
10167 ac_cpp='$CPP $CPPFLAGS'
10168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10171
10172 CC="$lt_save_CC"
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186                   ac_config_commands="$ac_config_commands libtool"
10187
10188
10189
10190
10191 # Only expand once:
10192
10193
10194
10195
10196
10197 # Calculate toolexeclibdir
10198 # Also toolexecdir, though it's only used in toolexeclibdir
10199 case ${version_specific_libs} in
10200   yes)
10201     # Need the gcc compiler version to know where to install libraries
10202     # and header files if --enable-version-specific-runtime-libs option
10203     # is selected.
10204     toolexecdir='$(libdir)/gcc/$(target_alias)'
10205     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
10206     ;;
10207   no)
10208     if test -n "$with_cross_host" &&
10209        test x"$with_cross_host" != x"no"; then
10210       # Install a library built with a cross compiler in tooldir, not libdir.
10211       toolexecdir='$(exec_prefix)/$(target_alias)'
10212       toolexeclibdir='$(toolexecdir)/lib'
10213     else
10214       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
10215       toolexeclibdir='$(libdir)'
10216     fi
10217     multi_os_directory=`$CC -print-multi-os-directory`
10218     case $multi_os_directory in
10219       .) ;; # Avoid trailing /.
10220       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
10221     esac
10222     ;;
10223 esac
10224
10225
10226
10227 if test ${multilib} = yes; then
10228   multilib_arg="--enable-multilib"
10229 else
10230   multilib_arg=
10231 fi
10232
10233                     ac_config_files="$ac_config_files Makefile ssp/ssp.h"
10234
10235 cat >confcache <<\_ACEOF
10236 # This file is a shell script that caches the results of configure
10237 # tests run on this system so they can be shared between configure
10238 # scripts and configure runs, see configure's option --config-cache.
10239 # It is not useful on other systems.  If it contains results you don't
10240 # want to keep, you may remove or edit it.
10241 #
10242 # config.status only pays attention to the cache file if you give it
10243 # the --recheck option to rerun configure.
10244 #
10245 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10246 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10247 # following values.
10248
10249 _ACEOF
10250
10251 # The following way of writing the cache mishandles newlines in values,
10252 # but we know of no workaround that is simple, portable, and efficient.
10253 # So, don't put newlines in cache variables' values.
10254 # Ultrix sh set writes to stderr and can't be redirected directly,
10255 # and sets the high bit in the cache file unless we assign to the vars.
10256 {
10257   (set) 2>&1 |
10258     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10259     *ac_space=\ *)
10260       # `set' does not quote correctly, so add quotes (double-quote
10261       # substitution turns \\\\ into \\, and sed turns \\ into \).
10262       sed -n \
10263         "s/'/'\\\\''/g;
10264           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10265       ;;
10266     *)
10267       # `set' quotes correctly as required by POSIX, so do not add quotes.
10268       sed -n \
10269         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10270       ;;
10271     esac;
10272 } |
10273   sed '
10274      t clear
10275      : clear
10276      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10277      t end
10278      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10279      : end' >>confcache
10280 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10281   if test -w $cache_file; then
10282     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10283     cat confcache >$cache_file
10284   else
10285     echo "not updating unwritable cache $cache_file"
10286   fi
10287 fi
10288 rm -f confcache
10289
10290 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10291 # Let make expand exec_prefix.
10292 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10293
10294 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10295 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10296 # trailing colons and then remove the whole line if VPATH becomes empty
10297 # (actually we leave an empty line to preserve line numbers).
10298 if test "x$srcdir" = x.; then
10299   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10300 s/:*\$(srcdir):*/:/;
10301 s/:*\${srcdir}:*/:/;
10302 s/:*@srcdir@:*/:/;
10303 s/^\([^=]*=[     ]*\):*/\1/;
10304 s/:*$//;
10305 s/^[^=]*=[       ]*$//;
10306 }'
10307 fi
10308
10309 DEFS=-DHAVE_CONFIG_H
10310
10311 ac_libobjs=
10312 ac_ltlibobjs=
10313 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10314   # 1. Remove the extension, and $U if already installed.
10315   ac_i=`echo "$ac_i" |
10316          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10317   # 2. Add them.
10318   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10319   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10320 done
10321 LIBOBJS=$ac_libobjs
10322
10323 LTLIBOBJS=$ac_ltlibobjs
10324
10325
10326 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10327   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10328 Usually this means the macro was only invoked conditionally." >&5
10329 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10330 Usually this means the macro was only invoked conditionally." >&2;}
10331    { (exit 1); exit 1; }; }
10332 fi
10333 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10334   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10335 Usually this means the macro was only invoked conditionally." >&5
10336 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10337 Usually this means the macro was only invoked conditionally." >&2;}
10338    { (exit 1); exit 1; }; }
10339 fi
10340 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10341   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10342 Usually this means the macro was only invoked conditionally." >&5
10343 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10344 Usually this means the macro was only invoked conditionally." >&2;}
10345    { (exit 1); exit 1; }; }
10346 fi
10347 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
10348   { { echo "$as_me:$LINENO: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
10349 Usually this means the macro was only invoked conditionally." >&5
10350 echo "$as_me: error: conditional \"LIBSSP_USE_SYMVER\" was never defined.
10351 Usually this means the macro was only invoked conditionally." >&2;}
10352    { (exit 1); exit 1; }; }
10353 fi
10354
10355 : ${CONFIG_STATUS=./config.status}
10356 ac_clean_files_save=$ac_clean_files
10357 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10358 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10359 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10360 cat >$CONFIG_STATUS <<_ACEOF
10361 #! $SHELL
10362 # Generated by $as_me.
10363 # Run this file to recreate the current configuration.
10364 # Compiler output produced by configure, useful for debugging
10365 # configure, is in config.log if it exists.
10366
10367 debug=false
10368 ac_cs_recheck=false
10369 ac_cs_silent=false
10370 SHELL=\${CONFIG_SHELL-$SHELL}
10371 _ACEOF
10372
10373 cat >>$CONFIG_STATUS <<\_ACEOF
10374 ## --------------------- ##
10375 ## M4sh Initialization.  ##
10376 ## --------------------- ##
10377
10378 # Be Bourne compatible
10379 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10380   emulate sh
10381   NULLCMD=:
10382   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10383   # is contrary to our usage.  Disable this feature.
10384   alias -g '${1+"$@"}'='"$@"'
10385 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10386   set -o posix
10387 fi
10388 DUALCASE=1; export DUALCASE # for MKS sh
10389
10390 # Support unset when possible.
10391 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10392   as_unset=unset
10393 else
10394   as_unset=false
10395 fi
10396
10397
10398 # Work around bugs in pre-3.0 UWIN ksh.
10399 $as_unset ENV MAIL MAILPATH
10400 PS1='$ '
10401 PS2='> '
10402 PS4='+ '
10403
10404 # NLS nuisances.
10405 for as_var in \
10406   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10407   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10408   LC_TELEPHONE LC_TIME
10409 do
10410   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10411     eval $as_var=C; export $as_var
10412   else
10413     $as_unset $as_var
10414   fi
10415 done
10416
10417 # Required to use basename.
10418 if expr a : '\(a\)' >/dev/null 2>&1; then
10419   as_expr=expr
10420 else
10421   as_expr=false
10422 fi
10423
10424 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10425   as_basename=basename
10426 else
10427   as_basename=false
10428 fi
10429
10430
10431 # Name of the executable.
10432 as_me=`$as_basename "$0" ||
10433 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10434          X"$0" : 'X\(//\)$' \| \
10435          X"$0" : 'X\(/\)$' \| \
10436          .     : '\(.\)' 2>/dev/null ||
10437 echo X/"$0" |
10438     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10439           /^X\/\(\/\/\)$/{ s//\1/; q; }
10440           /^X\/\(\/\).*/{ s//\1/; q; }
10441           s/.*/./; q'`
10442
10443
10444 # PATH needs CR, and LINENO needs CR and PATH.
10445 # Avoid depending upon Character Ranges.
10446 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10447 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10448 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10449 as_cr_digits='0123456789'
10450 as_cr_alnum=$as_cr_Letters$as_cr_digits
10451
10452 # The user is always right.
10453 if test "${PATH_SEPARATOR+set}" != set; then
10454   echo "#! /bin/sh" >conf$$.sh
10455   echo  "exit 0"   >>conf$$.sh
10456   chmod +x conf$$.sh
10457   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10458     PATH_SEPARATOR=';'
10459   else
10460     PATH_SEPARATOR=:
10461   fi
10462   rm -f conf$$.sh
10463 fi
10464
10465
10466   as_lineno_1=$LINENO
10467   as_lineno_2=$LINENO
10468   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10469   test "x$as_lineno_1" != "x$as_lineno_2" &&
10470   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10471   # Find who we are.  Look in the path if we contain no path at all
10472   # relative or not.
10473   case $0 in
10474     *[\\/]* ) as_myself=$0 ;;
10475     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476 for as_dir in $PATH
10477 do
10478   IFS=$as_save_IFS
10479   test -z "$as_dir" && as_dir=.
10480   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10481 done
10482
10483        ;;
10484   esac
10485   # We did not find ourselves, most probably we were run as `sh COMMAND'
10486   # in which case we are not to be found in the path.
10487   if test "x$as_myself" = x; then
10488     as_myself=$0
10489   fi
10490   if test ! -f "$as_myself"; then
10491     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10492 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10493    { (exit 1); exit 1; }; }
10494   fi
10495   case $CONFIG_SHELL in
10496   '')
10497     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10499 do
10500   IFS=$as_save_IFS
10501   test -z "$as_dir" && as_dir=.
10502   for as_base in sh bash ksh sh5; do
10503          case $as_dir in
10504          /*)
10505            if ("$as_dir/$as_base" -c '
10506   as_lineno_1=$LINENO
10507   as_lineno_2=$LINENO
10508   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10509   test "x$as_lineno_1" != "x$as_lineno_2" &&
10510   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10511              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10512              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10513              CONFIG_SHELL=$as_dir/$as_base
10514              export CONFIG_SHELL
10515              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10516            fi;;
10517          esac
10518        done
10519 done
10520 ;;
10521   esac
10522
10523   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10524   # uniformly replaced by the line number.  The first 'sed' inserts a
10525   # line-number line before each line; the second 'sed' does the real
10526   # work.  The second script uses 'N' to pair each line-number line
10527   # with the numbered line, and appends trailing '-' during
10528   # substitution so that $LINENO is not a special case at line end.
10529   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10530   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10531   sed '=' <$as_myself |
10532     sed '
10533       N
10534       s,$,-,
10535       : loop
10536       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10537       t loop
10538       s,-$,,
10539       s,^['$as_cr_digits']*\n,,
10540     ' >$as_me.lineno &&
10541   chmod +x $as_me.lineno ||
10542     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10543 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10544    { (exit 1); exit 1; }; }
10545
10546   # Don't try to exec as it changes $[0], causing all sort of problems
10547   # (the dirname of $[0] is not the place where we might find the
10548   # original and so on.  Autoconf is especially sensible to this).
10549   . ./$as_me.lineno
10550   # Exit status is that of the last command.
10551   exit
10552 }
10553
10554
10555 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10556   *c*,-n*) ECHO_N= ECHO_C='
10557 ' ECHO_T='      ' ;;
10558   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10559   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10560 esac
10561
10562 if expr a : '\(a\)' >/dev/null 2>&1; then
10563   as_expr=expr
10564 else
10565   as_expr=false
10566 fi
10567
10568 rm -f conf$$ conf$$.exe conf$$.file
10569 echo >conf$$.file
10570 if ln -s conf$$.file conf$$ 2>/dev/null; then
10571   # We could just check for DJGPP; but this test a) works b) is more generic
10572   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10573   if test -f conf$$.exe; then
10574     # Don't use ln at all; we don't have any links
10575     as_ln_s='cp -p'
10576   else
10577     as_ln_s='ln -s'
10578   fi
10579 elif ln conf$$.file conf$$ 2>/dev/null; then
10580   as_ln_s=ln
10581 else
10582   as_ln_s='cp -p'
10583 fi
10584 rm -f conf$$ conf$$.exe conf$$.file
10585
10586 if mkdir -p . 2>/dev/null; then
10587   as_mkdir_p=:
10588 else
10589   test -d ./-p && rmdir ./-p
10590   as_mkdir_p=false
10591 fi
10592
10593 as_executable_p="test -f"
10594
10595 # Sed expression to map a string onto a valid CPP name.
10596 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10597
10598 # Sed expression to map a string onto a valid variable name.
10599 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10600
10601
10602 # IFS
10603 # We need space, tab and new line, in precisely that order.
10604 as_nl='
10605 '
10606 IFS="   $as_nl"
10607
10608 # CDPATH.
10609 $as_unset CDPATH
10610
10611 exec 6>&1
10612
10613 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10614 # report actual input values of CONFIG_FILES etc. instead of their
10615 # values after options handling.  Logging --version etc. is OK.
10616 exec 5>>config.log
10617 {
10618   echo
10619   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10620 ## Running $as_me. ##
10621 _ASBOX
10622 } >&5
10623 cat >&5 <<_CSEOF
10624
10625 This file was extended by libssp $as_me 1.0, which was
10626 generated by GNU Autoconf 2.59.  Invocation command line was
10627
10628   CONFIG_FILES    = $CONFIG_FILES
10629   CONFIG_HEADERS  = $CONFIG_HEADERS
10630   CONFIG_LINKS    = $CONFIG_LINKS
10631   CONFIG_COMMANDS = $CONFIG_COMMANDS
10632   $ $0 $@
10633
10634 _CSEOF
10635 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10636 echo >&5
10637 _ACEOF
10638
10639 # Files that config.status was made for.
10640 if test -n "$ac_config_files"; then
10641   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10642 fi
10643
10644 if test -n "$ac_config_headers"; then
10645   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10646 fi
10647
10648 if test -n "$ac_config_links"; then
10649   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10650 fi
10651
10652 if test -n "$ac_config_commands"; then
10653   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10654 fi
10655
10656 cat >>$CONFIG_STATUS <<\_ACEOF
10657
10658 ac_cs_usage="\
10659 \`$as_me' instantiates files from templates according to the
10660 current configuration.
10661
10662 Usage: $0 [OPTIONS] [FILE]...
10663
10664   -h, --help       print this help, then exit
10665   -V, --version    print version number, then exit
10666   -q, --quiet      do not print progress messages
10667   -d, --debug      don't remove temporary files
10668       --recheck    update $as_me by reconfiguring in the same conditions
10669   --file=FILE[:TEMPLATE]
10670                    instantiate the configuration file FILE
10671   --header=FILE[:TEMPLATE]
10672                    instantiate the configuration header FILE
10673
10674 Configuration files:
10675 $config_files
10676
10677 Configuration headers:
10678 $config_headers
10679
10680 Configuration commands:
10681 $config_commands
10682
10683 Report bugs to <bug-autoconf@gnu.org>."
10684 _ACEOF
10685
10686 cat >>$CONFIG_STATUS <<_ACEOF
10687 ac_cs_version="\\
10688 libssp config.status 1.0
10689 configured by $0, generated by GNU Autoconf 2.59,
10690   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10691
10692 Copyright (C) 2003 Free Software Foundation, Inc.
10693 This config.status script is free software; the Free Software Foundation
10694 gives unlimited permission to copy, distribute and modify it."
10695 srcdir=$srcdir
10696 INSTALL="$INSTALL"
10697 _ACEOF
10698
10699 cat >>$CONFIG_STATUS <<\_ACEOF
10700 # If no file are specified by the user, then we need to provide default
10701 # value.  By we need to know if files were specified by the user.
10702 ac_need_defaults=:
10703 while test $# != 0
10704 do
10705   case $1 in
10706   --*=*)
10707     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10708     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10709     ac_shift=:
10710     ;;
10711   -*)
10712     ac_option=$1
10713     ac_optarg=$2
10714     ac_shift=shift
10715     ;;
10716   *) # This is not an option, so the user has probably given explicit
10717      # arguments.
10718      ac_option=$1
10719      ac_need_defaults=false;;
10720   esac
10721
10722   case $ac_option in
10723   # Handling of the options.
10724 _ACEOF
10725 cat >>$CONFIG_STATUS <<\_ACEOF
10726   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10727     ac_cs_recheck=: ;;
10728   --version | --vers* | -V )
10729     echo "$ac_cs_version"; exit 0 ;;
10730   --he | --h)
10731     # Conflict between --help and --header
10732     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10733 Try \`$0 --help' for more information." >&5
10734 echo "$as_me: error: ambiguous option: $1
10735 Try \`$0 --help' for more information." >&2;}
10736    { (exit 1); exit 1; }; };;
10737   --help | --hel | -h )
10738     echo "$ac_cs_usage"; exit 0 ;;
10739   --debug | --d* | -d )
10740     debug=: ;;
10741   --file | --fil | --fi | --f )
10742     $ac_shift
10743     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10744     ac_need_defaults=false;;
10745   --header | --heade | --head | --hea )
10746     $ac_shift
10747     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10748     ac_need_defaults=false;;
10749   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10750   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10751     ac_cs_silent=: ;;
10752
10753   # This is an error.
10754   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10755 Try \`$0 --help' for more information." >&5
10756 echo "$as_me: error: unrecognized option: $1
10757 Try \`$0 --help' for more information." >&2;}
10758    { (exit 1); exit 1; }; } ;;
10759
10760   *) ac_config_targets="$ac_config_targets $1" ;;
10761
10762   esac
10763   shift
10764 done
10765
10766 ac_configure_extra_args=
10767
10768 if $ac_cs_silent; then
10769   exec 6>/dev/null
10770   ac_configure_extra_args="$ac_configure_extra_args --silent"
10771 fi
10772
10773 _ACEOF
10774 cat >>$CONFIG_STATUS <<_ACEOF
10775 if \$ac_cs_recheck; then
10776   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10777   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10778 fi
10779
10780 _ACEOF
10781
10782 cat >>$CONFIG_STATUS <<_ACEOF
10783 #
10784 # INIT-COMMANDS section.
10785 #
10786
10787
10788 srcdir="$srcdir"
10789 host="$host"
10790 target="$target"
10791 with_multisubdir="$with_multisubdir"
10792 with_multisrctop="$with_multisrctop"
10793 with_target_subdir="$with_target_subdir"
10794 ac_configure_args="${multilib_arg} ${ac_configure_args}"
10795 multi_basedir="$multi_basedir"
10796 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
10797 CC="$CC"
10798 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10799
10800
10801 # The HP-UX ksh and POSIX shell print the target directory to stdout
10802 # if CDPATH is set.
10803 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10804
10805 sed_quote_subst='$sed_quote_subst'
10806 double_quote_subst='$double_quote_subst'
10807 delay_variable_subst='$delay_variable_subst'
10808 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
10809 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
10810 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
10811 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
10812 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
10813 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
10814 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
10815 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
10816 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
10817 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
10818 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
10819 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
10820 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
10821 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
10822 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
10823 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
10824 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
10825 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
10826 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
10827 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
10828 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
10829 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
10830 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
10831 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
10832 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
10833 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
10834 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
10835 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10836 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
10837 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
10838 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
10839 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
10840 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
10841 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
10842 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10843 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10844 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10845 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
10846 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
10847 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
10848 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
10849 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
10850 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
10851 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
10852 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
10853 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
10854 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
10855 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
10856 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
10857 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
10858 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
10859 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
10860 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
10861 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
10862 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
10863 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10864 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10865 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
10866 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
10867 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10868 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10869 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
10870 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10871 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10872 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10873 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10874 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10875 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10876 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
10877 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
10878 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
10879 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10880 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
10881 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
10882 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
10883 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
10884 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
10885 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10886 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
10887 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
10888 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
10889 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
10890 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
10891 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10892 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
10893 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
10894 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10895 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
10896 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
10897 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
10898 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
10899 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
10900 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10901 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10902 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
10903 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
10904 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
10905 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
10906 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10907 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10908 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10909 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
10910 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
10911 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
10912 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
10913 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
10914 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
10915 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
10916 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
10917 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
10918 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
10919
10920 LTCC='$LTCC'
10921 LTCFLAGS='$LTCFLAGS'
10922 compiler='$compiler_DEFAULT'
10923
10924 # Quote evaled strings.
10925 for var in SED \
10926 GREP \
10927 EGREP \
10928 FGREP \
10929 LD \
10930 NM \
10931 LN_S \
10932 lt_SP2NL \
10933 lt_NL2SP \
10934 reload_flag \
10935 deplibs_check_method \
10936 file_magic_cmd \
10937 AR \
10938 AR_FLAGS \
10939 STRIP \
10940 RANLIB \
10941 CC \
10942 CFLAGS \
10943 compiler \
10944 lt_cv_sys_global_symbol_pipe \
10945 lt_cv_sys_global_symbol_to_cdecl \
10946 lt_cv_sys_global_symbol_to_c_name_address \
10947 SHELL \
10948 ECHO \
10949 lt_prog_compiler_no_builtin_flag \
10950 lt_prog_compiler_wl \
10951 lt_prog_compiler_pic \
10952 lt_prog_compiler_static \
10953 lt_cv_prog_compiler_c_o \
10954 need_locks \
10955 shrext_cmds \
10956 export_dynamic_flag_spec \
10957 whole_archive_flag_spec \
10958 compiler_needs_object \
10959 with_gnu_ld \
10960 allow_undefined_flag \
10961 no_undefined_flag \
10962 hardcode_libdir_flag_spec \
10963 hardcode_libdir_flag_spec_ld \
10964 hardcode_libdir_separator \
10965 fix_srcfile_path \
10966 exclude_expsyms \
10967 include_expsyms \
10968 file_list_spec \
10969 variables_saved_for_relink \
10970 libname_spec \
10971 library_names_spec \
10972 soname_spec \
10973 finish_eval \
10974 old_striplib \
10975 striplib; do
10976     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
10977     *[\\\\\\\`\\"\\\$]*)
10978       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
10979       ;;
10980     *)
10981       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
10982       ;;
10983     esac
10984 done
10985
10986 # Double-quote double-evaled strings.
10987 for var in reload_cmds \
10988 old_postinstall_cmds \
10989 old_postuninstall_cmds \
10990 old_archive_cmds \
10991 extract_expsyms_cmds \
10992 old_archive_from_new_cmds \
10993 old_archive_from_expsyms_cmds \
10994 archive_cmds \
10995 archive_expsym_cmds \
10996 module_cmds \
10997 module_expsym_cmds \
10998 export_symbols_cmds \
10999 prelink_cmds \
11000 postinstall_cmds \
11001 postuninstall_cmds \
11002 finish_cmds \
11003 sys_lib_search_path_spec \
11004 sys_lib_dlsearch_path_spec; do
11005     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11006     *[\\\\\\\`\\"\\\$]*)
11007       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11008       ;;
11009     *)
11010       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11011       ;;
11012     esac
11013 done
11014
11015 # Fix-up fallback echo if it was mangled by the above quoting rules.
11016 case \$lt_ECHO in
11017 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11018   ;;
11019 esac
11020
11021 ac_aux_dir='$ac_aux_dir'
11022 xsi_shell='$xsi_shell'
11023 lt_shell_append='$lt_shell_append'
11024
11025 # See if we are running on zsh, and set the options which allow our
11026 # commands through without removal of \ escapes INIT.
11027 if test -n "\${ZSH_VERSION+set}" ; then
11028    setopt NO_GLOB_SUBST
11029 fi
11030
11031
11032     PACKAGE='$PACKAGE'
11033     VERSION='$VERSION'
11034     TIMESTAMP='$TIMESTAMP'
11035     RM='$RM'
11036     ofile='$ofile'
11037
11038
11039
11040
11041 _ACEOF
11042
11043
11044
11045 cat >>$CONFIG_STATUS <<\_ACEOF
11046 for ac_config_target in $ac_config_targets
11047 do
11048   case "$ac_config_target" in
11049   # Handling of arguments.
11050   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11051   "ssp/ssp.h" ) CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
11052   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11053   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11054   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11055   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11056   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11057 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11058    { (exit 1); exit 1; }; };;
11059   esac
11060 done
11061
11062 # If the user did not use the arguments to specify the items to instantiate,
11063 # then the envvar interface is used.  Set only those that are not.
11064 # We use the long form for the default assignment because of an extremely
11065 # bizarre bug on SunOS 4.1.3.
11066 if $ac_need_defaults; then
11067   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11068   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11069   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11070 fi
11071
11072 # Have a temporary directory for convenience.  Make it in the build tree
11073 # simply because there is no reason to put it here, and in addition,
11074 # creating and moving files from /tmp can sometimes cause problems.
11075 # Create a temporary directory, and hook for its removal unless debugging.
11076 $debug ||
11077 {
11078   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11079   trap '{ (exit 1); exit 1; }' 1 2 13 15
11080 }
11081
11082 # Create a (secure) tmp directory for tmp files.
11083
11084 {
11085   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11086   test -n "$tmp" && test -d "$tmp"
11087 }  ||
11088 {
11089   tmp=./confstat$$-$RANDOM
11090   (umask 077 && mkdir $tmp)
11091 } ||
11092 {
11093    echo "$me: cannot create a temporary directory in ." >&2
11094    { (exit 1); exit 1; }
11095 }
11096
11097 _ACEOF
11098
11099 cat >>$CONFIG_STATUS <<_ACEOF
11100
11101 #
11102 # CONFIG_FILES section.
11103 #
11104
11105 # No need to generate the scripts if there are no CONFIG_FILES.
11106 # This happens for instance when ./config.status config.h
11107 if test -n "\$CONFIG_FILES"; then
11108   # Protect against being on the right side of a sed subst in config.status.
11109   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11110    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11111 s,@SHELL@,$SHELL,;t t
11112 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11113 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11114 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11115 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11116 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11117 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11118 s,@exec_prefix@,$exec_prefix,;t t
11119 s,@prefix@,$prefix,;t t
11120 s,@program_transform_name@,$program_transform_name,;t t
11121 s,@bindir@,$bindir,;t t
11122 s,@sbindir@,$sbindir,;t t
11123 s,@libexecdir@,$libexecdir,;t t
11124 s,@datadir@,$datadir,;t t
11125 s,@sysconfdir@,$sysconfdir,;t t
11126 s,@sharedstatedir@,$sharedstatedir,;t t
11127 s,@localstatedir@,$localstatedir,;t t
11128 s,@libdir@,$libdir,;t t
11129 s,@includedir@,$includedir,;t t
11130 s,@oldincludedir@,$oldincludedir,;t t
11131 s,@infodir@,$infodir,;t t
11132 s,@mandir@,$mandir,;t t
11133 s,@build_alias@,$build_alias,;t t
11134 s,@host_alias@,$host_alias,;t t
11135 s,@target_alias@,$target_alias,;t t
11136 s,@DEFS@,$DEFS,;t t
11137 s,@ECHO_C@,$ECHO_C,;t t
11138 s,@ECHO_N@,$ECHO_N,;t t
11139 s,@ECHO_T@,$ECHO_T,;t t
11140 s,@LIBS@,$LIBS,;t t
11141 s,@build@,$build,;t t
11142 s,@build_cpu@,$build_cpu,;t t
11143 s,@build_vendor@,$build_vendor,;t t
11144 s,@build_os@,$build_os,;t t
11145 s,@host@,$host,;t t
11146 s,@host_cpu@,$host_cpu,;t t
11147 s,@host_vendor@,$host_vendor,;t t
11148 s,@host_os@,$host_os,;t t
11149 s,@target@,$target,;t t
11150 s,@target_cpu@,$target_cpu,;t t
11151 s,@target_vendor@,$target_vendor,;t t
11152 s,@target_os@,$target_os,;t t
11153 s,@target_noncanonical@,$target_noncanonical,;t t
11154 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11155 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11156 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11157 s,@CYGPATH_W@,$CYGPATH_W,;t t
11158 s,@PACKAGE@,$PACKAGE,;t t
11159 s,@VERSION@,$VERSION,;t t
11160 s,@ACLOCAL@,$ACLOCAL,;t t
11161 s,@AUTOCONF@,$AUTOCONF,;t t
11162 s,@AUTOMAKE@,$AUTOMAKE,;t t
11163 s,@AUTOHEADER@,$AUTOHEADER,;t t
11164 s,@MAKEINFO@,$MAKEINFO,;t t
11165 s,@install_sh@,$install_sh,;t t
11166 s,@STRIP@,$STRIP,;t t
11167 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11168 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11169 s,@mkdir_p@,$mkdir_p,;t t
11170 s,@AWK@,$AWK,;t t
11171 s,@SET_MAKE@,$SET_MAKE,;t t
11172 s,@am__leading_dot@,$am__leading_dot,;t t
11173 s,@AMTAR@,$AMTAR,;t t
11174 s,@am__tar@,$am__tar,;t t
11175 s,@am__untar@,$am__untar,;t t
11176 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11177 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11178 s,@MAINT@,$MAINT,;t t
11179 s,@multi_basedir@,$multi_basedir,;t t
11180 s,@CC@,$CC,;t t
11181 s,@ac_ct_CC@,$ac_ct_CC,;t t
11182 s,@EXEEXT@,$EXEEXT,;t t
11183 s,@OBJEXT@,$OBJEXT,;t t
11184 s,@DEPDIR@,$DEPDIR,;t t
11185 s,@am__include@,$am__include,;t t
11186 s,@am__quote@,$am__quote,;t t
11187 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11188 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11189 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11190 s,@CCDEPMODE@,$CCDEPMODE,;t t
11191 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11192 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11193 s,@CFLAGS@,$CFLAGS,;t t
11194 s,@CPP@,$CPP,;t t
11195 s,@CPPFLAGS@,$CPPFLAGS,;t t
11196 s,@LIBSSP_USE_SYMVER_TRUE@,$LIBSSP_USE_SYMVER_TRUE,;t t
11197 s,@LIBSSP_USE_SYMVER_FALSE@,$LIBSSP_USE_SYMVER_FALSE,;t t
11198 s,@EGREP@,$EGREP,;t t
11199 s,@ssp_have_usable_vsnprintf@,$ssp_have_usable_vsnprintf,;t t
11200 s,@LIBTOOL@,$LIBTOOL,;t t
11201 s,@SED@,$SED,;t t
11202 s,@FGREP@,$FGREP,;t t
11203 s,@GREP@,$GREP,;t t
11204 s,@LD@,$LD,;t t
11205 s,@DUMPBIN@,$DUMPBIN,;t t
11206 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11207 s,@NM@,$NM,;t t
11208 s,@LN_S@,$LN_S,;t t
11209 s,@AR@,$AR,;t t
11210 s,@ac_ct_AR@,$ac_ct_AR,;t t
11211 s,@RANLIB@,$RANLIB,;t t
11212 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11213 s,@lt_ECHO@,$lt_ECHO,;t t
11214 s,@enable_shared@,$enable_shared,;t t
11215 s,@enable_static@,$enable_static,;t t
11216 s,@toolexecdir@,$toolexecdir,;t t
11217 s,@toolexeclibdir@,$toolexeclibdir,;t t
11218 s,@LIBOBJS@,$LIBOBJS,;t t
11219 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11220 CEOF
11221
11222 _ACEOF
11223
11224   cat >>$CONFIG_STATUS <<\_ACEOF
11225   # Split the substitutions into bite-sized pieces for seds with
11226   # small command number limits, like on Digital OSF/1 and HP-UX.
11227   ac_max_sed_lines=48
11228   ac_sed_frag=1 # Number of current file.
11229   ac_beg=1 # First line for current file.
11230   ac_end=$ac_max_sed_lines # Line after last line for current file.
11231   ac_more_lines=:
11232   ac_sed_cmds=
11233   while $ac_more_lines; do
11234     if test $ac_beg -gt 1; then
11235       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11236     else
11237       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11238     fi
11239     if test ! -s $tmp/subs.frag; then
11240       ac_more_lines=false
11241     else
11242       # The purpose of the label and of the branching condition is to
11243       # speed up the sed processing (if there are no `@' at all, there
11244       # is no need to browse any of the substitutions).
11245       # These are the two extra sed commands mentioned above.
11246       (echo ':t
11247   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11248       if test -z "$ac_sed_cmds"; then
11249         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11250       else
11251         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11252       fi
11253       ac_sed_frag=`expr $ac_sed_frag + 1`
11254       ac_beg=$ac_end
11255       ac_end=`expr $ac_end + $ac_max_sed_lines`
11256     fi
11257   done
11258   if test -z "$ac_sed_cmds"; then
11259     ac_sed_cmds=cat
11260   fi
11261 fi # test -n "$CONFIG_FILES"
11262
11263 _ACEOF
11264 cat >>$CONFIG_STATUS <<\_ACEOF
11265 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11266   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11267   case $ac_file in
11268   - | *:- | *:-:* ) # input from stdin
11269         cat >$tmp/stdin
11270         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11271         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11272   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11273         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11274   * )   ac_file_in=$ac_file.in ;;
11275   esac
11276
11277   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11278   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11279 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11280          X"$ac_file" : 'X\(//\)[^/]' \| \
11281          X"$ac_file" : 'X\(//\)$' \| \
11282          X"$ac_file" : 'X\(/\)' \| \
11283          .     : '\(.\)' 2>/dev/null ||
11284 echo X"$ac_file" |
11285     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11286           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11287           /^X\(\/\/\)$/{ s//\1/; q; }
11288           /^X\(\/\).*/{ s//\1/; q; }
11289           s/.*/./; q'`
11290   { if $as_mkdir_p; then
11291     mkdir -p "$ac_dir"
11292   else
11293     as_dir="$ac_dir"
11294     as_dirs=
11295     while test ! -d "$as_dir"; do
11296       as_dirs="$as_dir $as_dirs"
11297       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11299          X"$as_dir" : 'X\(//\)[^/]' \| \
11300          X"$as_dir" : 'X\(//\)$' \| \
11301          X"$as_dir" : 'X\(/\)' \| \
11302          .     : '\(.\)' 2>/dev/null ||
11303 echo X"$as_dir" |
11304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11305           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11306           /^X\(\/\/\)$/{ s//\1/; q; }
11307           /^X\(\/\).*/{ s//\1/; q; }
11308           s/.*/./; q'`
11309     done
11310     test ! -n "$as_dirs" || mkdir $as_dirs
11311   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11312 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11313    { (exit 1); exit 1; }; }; }
11314
11315   ac_builddir=.
11316
11317 if test "$ac_dir" != .; then
11318   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11319   # A "../" for each directory in $ac_dir_suffix.
11320   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11321 else
11322   ac_dir_suffix= ac_top_builddir=
11323 fi
11324
11325 case $srcdir in
11326   .)  # No --srcdir option.  We are building in place.
11327     ac_srcdir=.
11328     if test -z "$ac_top_builddir"; then
11329        ac_top_srcdir=.
11330     else
11331        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11332     fi ;;
11333   [\\/]* | ?:[\\/]* )  # Absolute path.
11334     ac_srcdir=$srcdir$ac_dir_suffix;
11335     ac_top_srcdir=$srcdir ;;
11336   *) # Relative path.
11337     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11338     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11339 esac
11340
11341 # Do not use `cd foo && pwd` to compute absolute paths, because
11342 # the directories may not exist.
11343 case `pwd` in
11344 .) ac_abs_builddir="$ac_dir";;
11345 *)
11346   case "$ac_dir" in
11347   .) ac_abs_builddir=`pwd`;;
11348   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11349   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11350   esac;;
11351 esac
11352 case $ac_abs_builddir in
11353 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11354 *)
11355   case ${ac_top_builddir}. in
11356   .) ac_abs_top_builddir=$ac_abs_builddir;;
11357   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11358   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11359   esac;;
11360 esac
11361 case $ac_abs_builddir in
11362 .) ac_abs_srcdir=$ac_srcdir;;
11363 *)
11364   case $ac_srcdir in
11365   .) ac_abs_srcdir=$ac_abs_builddir;;
11366   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11367   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11368   esac;;
11369 esac
11370 case $ac_abs_builddir in
11371 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11372 *)
11373   case $ac_top_srcdir in
11374   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11375   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11376   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11377   esac;;
11378 esac
11379
11380
11381   case $INSTALL in
11382   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11383   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11384   esac
11385
11386   if test x"$ac_file" != x-; then
11387     { echo "$as_me:$LINENO: creating $ac_file" >&5
11388 echo "$as_me: creating $ac_file" >&6;}
11389     rm -f "$ac_file"
11390   fi
11391   # Let's still pretend it is `configure' which instantiates (i.e., don't
11392   # use $as_me), people would be surprised to read:
11393   #    /* config.h.  Generated by config.status.  */
11394   if test x"$ac_file" = x-; then
11395     configure_input=
11396   else
11397     configure_input="$ac_file.  "
11398   fi
11399   configure_input=$configure_input"Generated from `echo $ac_file_in |
11400                                      sed 's,.*/,,'` by configure."
11401
11402   # First look for the input files in the build tree, otherwise in the
11403   # src tree.
11404   ac_file_inputs=`IFS=:
11405     for f in $ac_file_in; do
11406       case $f in
11407       -) echo $tmp/stdin ;;
11408       [\\/$]*)
11409          # Absolute (can't be DOS-style, as IFS=:)
11410          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11411 echo "$as_me: error: cannot find input file: $f" >&2;}
11412    { (exit 1); exit 1; }; }
11413          echo "$f";;
11414       *) # Relative
11415          if test -f "$f"; then
11416            # Build tree
11417            echo "$f"
11418          elif test -f "$srcdir/$f"; then
11419            # Source tree
11420            echo "$srcdir/$f"
11421          else
11422            # /dev/null tree
11423            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11424 echo "$as_me: error: cannot find input file: $f" >&2;}
11425    { (exit 1); exit 1; }; }
11426          fi;;
11427       esac
11428     done` || { (exit 1); exit 1; }
11429 _ACEOF
11430 cat >>$CONFIG_STATUS <<_ACEOF
11431   sed "$ac_vpsub
11432 $extrasub
11433 _ACEOF
11434 cat >>$CONFIG_STATUS <<\_ACEOF
11435 :t
11436 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11437 s,@configure_input@,$configure_input,;t t
11438 s,@srcdir@,$ac_srcdir,;t t
11439 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11440 s,@top_srcdir@,$ac_top_srcdir,;t t
11441 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11442 s,@builddir@,$ac_builddir,;t t
11443 s,@abs_builddir@,$ac_abs_builddir,;t t
11444 s,@top_builddir@,$ac_top_builddir,;t t
11445 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11446 s,@INSTALL@,$ac_INSTALL,;t t
11447 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11448   rm -f $tmp/stdin
11449   if test x"$ac_file" != x-; then
11450     mv $tmp/out $ac_file
11451   else
11452     cat $tmp/out
11453     rm -f $tmp/out
11454   fi
11455
11456 done
11457 _ACEOF
11458 cat >>$CONFIG_STATUS <<\_ACEOF
11459
11460 #
11461 # CONFIG_HEADER section.
11462 #
11463
11464 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11465 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11466 #
11467 # ac_d sets the value in "#define NAME VALUE" lines.
11468 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11469 ac_dB='[         ].*$,\1#\2'
11470 ac_dC=' '
11471 ac_dD=',;t'
11472 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11473 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11474 ac_uB='$,\1#\2define\3'
11475 ac_uC=' '
11476 ac_uD=',;t'
11477
11478 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11479   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11480   case $ac_file in
11481   - | *:- | *:-:* ) # input from stdin
11482         cat >$tmp/stdin
11483         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11484         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11485   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11486         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11487   * )   ac_file_in=$ac_file.in ;;
11488   esac
11489
11490   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11491 echo "$as_me: creating $ac_file" >&6;}
11492
11493   # First look for the input files in the build tree, otherwise in the
11494   # src tree.
11495   ac_file_inputs=`IFS=:
11496     for f in $ac_file_in; do
11497       case $f in
11498       -) echo $tmp/stdin ;;
11499       [\\/$]*)
11500          # Absolute (can't be DOS-style, as IFS=:)
11501          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11502 echo "$as_me: error: cannot find input file: $f" >&2;}
11503    { (exit 1); exit 1; }; }
11504          # Do quote $f, to prevent DOS paths from being IFS'd.
11505          echo "$f";;
11506       *) # Relative
11507          if test -f "$f"; then
11508            # Build tree
11509            echo "$f"
11510          elif test -f "$srcdir/$f"; then
11511            # Source tree
11512            echo "$srcdir/$f"
11513          else
11514            # /dev/null tree
11515            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11516 echo "$as_me: error: cannot find input file: $f" >&2;}
11517    { (exit 1); exit 1; }; }
11518          fi;;
11519       esac
11520     done` || { (exit 1); exit 1; }
11521   # Remove the trailing spaces.
11522   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11523
11524 _ACEOF
11525
11526 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11527 # `conftest.undefs', that substitutes the proper values into
11528 # config.h.in to produce config.h.  The first handles `#define'
11529 # templates, and the second `#undef' templates.
11530 # And first: Protect against being on the right side of a sed subst in
11531 # config.status.  Protect against being in an unquoted here document
11532 # in config.status.
11533 rm -f conftest.defines conftest.undefs
11534 # Using a here document instead of a string reduces the quoting nightmare.
11535 # Putting comments in sed scripts is not portable.
11536 #
11537 # `end' is used to avoid that the second main sed command (meant for
11538 # 0-ary CPP macros) applies to n-ary macro definitions.
11539 # See the Autoconf documentation for `clear'.
11540 cat >confdef2sed.sed <<\_ACEOF
11541 s/[\\&,]/\\&/g
11542 s,[\\$`],\\&,g
11543 t clear
11544 : clear
11545 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11546 t end
11547 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11548 : end
11549 _ACEOF
11550 # If some macros were called several times there might be several times
11551 # the same #defines, which is useless.  Nevertheless, we may not want to
11552 # sort them, since we want the *last* AC-DEFINE to be honored.
11553 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11554 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11555 rm -f confdef2sed.sed
11556
11557 # This sed command replaces #undef with comments.  This is necessary, for
11558 # example, in the case of _POSIX_SOURCE, which is predefined and required
11559 # on some systems where configure will not decide to define it.
11560 cat >>conftest.undefs <<\_ACEOF
11561 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11562 _ACEOF
11563
11564 # Break up conftest.defines because some shells have a limit on the size
11565 # of here documents, and old seds have small limits too (100 cmds).
11566 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11567 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11568 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11569 echo '  :' >>$CONFIG_STATUS
11570 rm -f conftest.tail
11571 while grep . conftest.defines >/dev/null
11572 do
11573   # Write a limited-size here document to $tmp/defines.sed.
11574   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11575   # Speed up: don't consider the non `#define' lines.
11576   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11577   # Work around the forget-to-reset-the-flag bug.
11578   echo 't clr' >>$CONFIG_STATUS
11579   echo ': clr' >>$CONFIG_STATUS
11580   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11581   echo 'CEOF
11582   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11583   rm -f $tmp/in
11584   mv $tmp/out $tmp/in
11585 ' >>$CONFIG_STATUS
11586   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11587   rm -f conftest.defines
11588   mv conftest.tail conftest.defines
11589 done
11590 rm -f conftest.defines
11591 echo '  fi # grep' >>$CONFIG_STATUS
11592 echo >>$CONFIG_STATUS
11593
11594 # Break up conftest.undefs because some shells have a limit on the size
11595 # of here documents, and old seds have small limits too (100 cmds).
11596 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11597 rm -f conftest.tail
11598 while grep . conftest.undefs >/dev/null
11599 do
11600   # Write a limited-size here document to $tmp/undefs.sed.
11601   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11602   # Speed up: don't consider the non `#undef'
11603   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11604   # Work around the forget-to-reset-the-flag bug.
11605   echo 't clr' >>$CONFIG_STATUS
11606   echo ': clr' >>$CONFIG_STATUS
11607   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11608   echo 'CEOF
11609   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11610   rm -f $tmp/in
11611   mv $tmp/out $tmp/in
11612 ' >>$CONFIG_STATUS
11613   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11614   rm -f conftest.undefs
11615   mv conftest.tail conftest.undefs
11616 done
11617 rm -f conftest.undefs
11618
11619 cat >>$CONFIG_STATUS <<\_ACEOF
11620   # Let's still pretend it is `configure' which instantiates (i.e., don't
11621   # use $as_me), people would be surprised to read:
11622   #    /* config.h.  Generated by config.status.  */
11623   if test x"$ac_file" = x-; then
11624     echo "/* Generated by configure.  */" >$tmp/config.h
11625   else
11626     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11627   fi
11628   cat $tmp/in >>$tmp/config.h
11629   rm -f $tmp/in
11630   if test x"$ac_file" != x-; then
11631     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11632       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11633 echo "$as_me: $ac_file is unchanged" >&6;}
11634     else
11635       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11636 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11637          X"$ac_file" : 'X\(//\)[^/]' \| \
11638          X"$ac_file" : 'X\(//\)$' \| \
11639          X"$ac_file" : 'X\(/\)' \| \
11640          .     : '\(.\)' 2>/dev/null ||
11641 echo X"$ac_file" |
11642     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11643           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11644           /^X\(\/\/\)$/{ s//\1/; q; }
11645           /^X\(\/\).*/{ s//\1/; q; }
11646           s/.*/./; q'`
11647       { if $as_mkdir_p; then
11648     mkdir -p "$ac_dir"
11649   else
11650     as_dir="$ac_dir"
11651     as_dirs=
11652     while test ! -d "$as_dir"; do
11653       as_dirs="$as_dir $as_dirs"
11654       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11656          X"$as_dir" : 'X\(//\)[^/]' \| \
11657          X"$as_dir" : 'X\(//\)$' \| \
11658          X"$as_dir" : 'X\(/\)' \| \
11659          .     : '\(.\)' 2>/dev/null ||
11660 echo X"$as_dir" |
11661     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11662           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11663           /^X\(\/\/\)$/{ s//\1/; q; }
11664           /^X\(\/\).*/{ s//\1/; q; }
11665           s/.*/./; q'`
11666     done
11667     test ! -n "$as_dirs" || mkdir $as_dirs
11668   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11669 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11670    { (exit 1); exit 1; }; }; }
11671
11672       rm -f $ac_file
11673       mv $tmp/config.h $ac_file
11674     fi
11675   else
11676     cat $tmp/config.h
11677     rm -f $tmp/config.h
11678   fi
11679 # Compute $ac_file's index in $config_headers.
11680 _am_stamp_count=1
11681 for _am_header in $config_headers :; do
11682   case $_am_header in
11683     $ac_file | $ac_file:* )
11684       break ;;
11685     * )
11686       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11687   esac
11688 done
11689 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11690 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11691          X$ac_file : 'X\(//\)[^/]' \| \
11692          X$ac_file : 'X\(//\)$' \| \
11693          X$ac_file : 'X\(/\)' \| \
11694          .     : '\(.\)' 2>/dev/null ||
11695 echo X$ac_file |
11696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11697           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11698           /^X\(\/\/\)$/{ s//\1/; q; }
11699           /^X\(\/\).*/{ s//\1/; q; }
11700           s/.*/./; q'`/stamp-h$_am_stamp_count
11701 done
11702 _ACEOF
11703 cat >>$CONFIG_STATUS <<\_ACEOF
11704
11705 #
11706 # CONFIG_COMMANDS section.
11707 #
11708 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11709   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11710   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11711   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11712 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11713          X"$ac_dest" : 'X\(//\)[^/]' \| \
11714          X"$ac_dest" : 'X\(//\)$' \| \
11715          X"$ac_dest" : 'X\(/\)' \| \
11716          .     : '\(.\)' 2>/dev/null ||
11717 echo X"$ac_dest" |
11718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11720           /^X\(\/\/\)$/{ s//\1/; q; }
11721           /^X\(\/\).*/{ s//\1/; q; }
11722           s/.*/./; q'`
11723   { if $as_mkdir_p; then
11724     mkdir -p "$ac_dir"
11725   else
11726     as_dir="$ac_dir"
11727     as_dirs=
11728     while test ! -d "$as_dir"; do
11729       as_dirs="$as_dir $as_dirs"
11730       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11732          X"$as_dir" : 'X\(//\)[^/]' \| \
11733          X"$as_dir" : 'X\(//\)$' \| \
11734          X"$as_dir" : 'X\(/\)' \| \
11735          .     : '\(.\)' 2>/dev/null ||
11736 echo X"$as_dir" |
11737     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11738           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11739           /^X\(\/\/\)$/{ s//\1/; q; }
11740           /^X\(\/\).*/{ s//\1/; q; }
11741           s/.*/./; q'`
11742     done
11743     test ! -n "$as_dirs" || mkdir $as_dirs
11744   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11745 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11746    { (exit 1); exit 1; }; }; }
11747
11748   ac_builddir=.
11749
11750 if test "$ac_dir" != .; then
11751   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11752   # A "../" for each directory in $ac_dir_suffix.
11753   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11754 else
11755   ac_dir_suffix= ac_top_builddir=
11756 fi
11757
11758 case $srcdir in
11759   .)  # No --srcdir option.  We are building in place.
11760     ac_srcdir=.
11761     if test -z "$ac_top_builddir"; then
11762        ac_top_srcdir=.
11763     else
11764        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11765     fi ;;
11766   [\\/]* | ?:[\\/]* )  # Absolute path.
11767     ac_srcdir=$srcdir$ac_dir_suffix;
11768     ac_top_srcdir=$srcdir ;;
11769   *) # Relative path.
11770     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11771     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11772 esac
11773
11774 # Do not use `cd foo && pwd` to compute absolute paths, because
11775 # the directories may not exist.
11776 case `pwd` in
11777 .) ac_abs_builddir="$ac_dir";;
11778 *)
11779   case "$ac_dir" in
11780   .) ac_abs_builddir=`pwd`;;
11781   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11782   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11783   esac;;
11784 esac
11785 case $ac_abs_builddir in
11786 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11787 *)
11788   case ${ac_top_builddir}. in
11789   .) ac_abs_top_builddir=$ac_abs_builddir;;
11790   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11791   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11792   esac;;
11793 esac
11794 case $ac_abs_builddir in
11795 .) ac_abs_srcdir=$ac_srcdir;;
11796 *)
11797   case $ac_srcdir in
11798   .) ac_abs_srcdir=$ac_abs_builddir;;
11799   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11800   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11801   esac;;
11802 esac
11803 case $ac_abs_builddir in
11804 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11805 *)
11806   case $ac_top_srcdir in
11807   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11808   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11809   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11810   esac;;
11811 esac
11812
11813
11814   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11815 echo "$as_me: executing $ac_dest commands" >&6;}
11816   case $ac_dest in
11817     default-1 )
11818 # Only add multilib support code if we just rebuilt the top-level
11819 # Makefile.
11820 case " $CONFIG_FILES " in
11821  *" Makefile "*)
11822    ac_file=Makefile . ${multi_basedir}/config-ml.in
11823    ;;
11824 esac ;;
11825     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11826   # Strip MF so we end up with the name of the file.
11827   mf=`echo "$mf" | sed -e 's/:.*$//'`
11828   # Check whether this is an Automake generated Makefile or not.
11829   # We used to match only the files named `Makefile.in', but
11830   # some people rename them; so instead we look at the file content.
11831   # Grep'ing the first line is not enough: some people post-process
11832   # each Makefile.in and add a new line on top of each file to say so.
11833   # So let's grep whole file.
11834   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11835     dirpart=`(dirname "$mf") 2>/dev/null ||
11836 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11837          X"$mf" : 'X\(//\)[^/]' \| \
11838          X"$mf" : 'X\(//\)$' \| \
11839          X"$mf" : 'X\(/\)' \| \
11840          .     : '\(.\)' 2>/dev/null ||
11841 echo X"$mf" |
11842     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11843           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11844           /^X\(\/\/\)$/{ s//\1/; q; }
11845           /^X\(\/\).*/{ s//\1/; q; }
11846           s/.*/./; q'`
11847   else
11848     continue
11849   fi
11850   # Extract the definition of DEPDIR, am__include, and am__quote
11851   # from the Makefile without running `make'.
11852   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11853   test -z "$DEPDIR" && continue
11854   am__include=`sed -n 's/^am__include = //p' < "$mf"`
11855   test -z "am__include" && continue
11856   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11857   # When using ansi2knr, U may be empty or an underscore; expand it
11858   U=`sed -n 's/^U = //p' < "$mf"`
11859   # Find all dependency output files, they are included files with
11860   # $(DEPDIR) in their names.  We invoke sed twice because it is the
11861   # simplest approach to changing $(DEPDIR) to its actual value in the
11862   # expansion.
11863   for file in `sed -n "
11864     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11865        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11866     # Make sure the directory exists.
11867     test -f "$dirpart/$file" && continue
11868     fdir=`(dirname "$file") 2>/dev/null ||
11869 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11870          X"$file" : 'X\(//\)[^/]' \| \
11871          X"$file" : 'X\(//\)$' \| \
11872          X"$file" : 'X\(/\)' \| \
11873          .     : '\(.\)' 2>/dev/null ||
11874 echo X"$file" |
11875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11877           /^X\(\/\/\)$/{ s//\1/; q; }
11878           /^X\(\/\).*/{ s//\1/; q; }
11879           s/.*/./; q'`
11880     { if $as_mkdir_p; then
11881     mkdir -p $dirpart/$fdir
11882   else
11883     as_dir=$dirpart/$fdir
11884     as_dirs=
11885     while test ! -d "$as_dir"; do
11886       as_dirs="$as_dir $as_dirs"
11887       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11889          X"$as_dir" : 'X\(//\)[^/]' \| \
11890          X"$as_dir" : 'X\(//\)$' \| \
11891          X"$as_dir" : 'X\(/\)' \| \
11892          .     : '\(.\)' 2>/dev/null ||
11893 echo X"$as_dir" |
11894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11895           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11896           /^X\(\/\/\)$/{ s//\1/; q; }
11897           /^X\(\/\).*/{ s//\1/; q; }
11898           s/.*/./; q'`
11899     done
11900     test ! -n "$as_dirs" || mkdir $as_dirs
11901   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11902 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11903    { (exit 1); exit 1; }; }; }
11904
11905     # echo "creating $dirpart/$file"
11906     echo '# dummy' > "$dirpart/$file"
11907   done
11908 done
11909  ;;
11910     libtool )
11911
11912     # See if we are running on zsh, and set the options which allow our
11913     # commands through without removal of \ escapes.
11914     if test -n "${ZSH_VERSION+set}" ; then
11915       setopt NO_GLOB_SUBST
11916     fi
11917
11918     cfgfile="${ofile}T"
11919     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
11920     $RM "$cfgfile"
11921
11922     cat <<_LT_EOF >> "$cfgfile"
11923 #! $SHELL
11924
11925 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11926 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
11927 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11928 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11929 #
11930 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
11931 # 2006, 2007 Free Software Foundation, Inc.
11932 #
11933 # This file is part of GNU Libtool:
11934 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11935 #
11936 # This program is free software; you can redistribute it and/or modify
11937 # it under the terms of the GNU General Public License as published by
11938 # the Free Software Foundation; either version 2 of the License, or
11939 # (at your option) any later version.
11940 #
11941 # This program is distributed in the hope that it will be useful, but
11942 # WITHOUT ANY WARRANTY; without even the implied warranty of
11943 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11944 # General Public License for more details.
11945 #
11946 # You should have received a copy of the GNU General Public License
11947 # along with this program; if not, a copy can be downloaded from
11948 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
11949 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
11950 # MA 02110-1301, USA.
11951 #
11952 # As a special exception to the GNU General Public License, if you
11953 # distribute this file as part of a program that contains a
11954 # configuration script generated by Autoconf, you may include it under
11955 # the same distribution terms that you use for the rest of that program.
11956
11957
11958 # The names of the tagged configurations supported by this script.
11959 available_tags=""
11960
11961 # ### BEGIN LIBTOOL CONFIG
11962
11963 # Which release of libtool.m4 was used?
11964 macro_version=$macro_version
11965 macro_revision=$macro_revision
11966
11967 # Whether or not to build shared libraries.
11968 build_libtool_libs=$enable_shared
11969
11970 # Whether or not to build static libraries.
11971 build_old_libs=$enable_static
11972
11973 # What type of objects to build.
11974 pic_mode=$pic_mode
11975
11976 # Whether or not to optimize for fast installation.
11977 fast_install=$enable_fast_install
11978
11979 # The host system.
11980 host_alias=$host_alias
11981 host=$host
11982 host_os=$host_os
11983
11984 # The build system.
11985 build_alias=$build_alias
11986 build=$build
11987 build_os=$build_os
11988
11989 # A sed program that does not truncate output.
11990 SED=$lt_SED
11991
11992 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11993 Xsed="\$SED -e 1s/^X//"
11994
11995 # A grep program that handles long lines.
11996 GREP=$lt_GREP
11997
11998 # An ERE matcher.
11999 EGREP=$lt_EGREP
12000
12001 # A literal string matcher.
12002 FGREP=$lt_FGREP
12003
12004 # A BSD- or MS-compatible name lister.
12005 NM=$lt_NM
12006
12007 # Whether we need soft or hard links.
12008 LN_S=$lt_LN_S
12009
12010 # What is the maximum length of a command?
12011 max_cmd_len=$max_cmd_len
12012
12013 # Object file suffix (normally "o").
12014 objext=$ac_objext
12015
12016 # Executable file suffix (normally "").
12017 exeext=$exeext
12018
12019 # whether the shell understands "unset".
12020 lt_unset=$lt_unset
12021
12022 # turn spaces into newlines.
12023 SP2NL=$lt_lt_SP2NL
12024
12025 # turn newlines into spaces.
12026 NL2SP=$lt_lt_NL2SP
12027
12028 # How to create reloadable object files.
12029 reload_flag=$lt_reload_flag
12030 reload_cmds=$lt_reload_cmds
12031
12032 # Method to check whether dependent libraries are shared objects.
12033 deplibs_check_method=$lt_deplibs_check_method
12034
12035 # Command to use when deplibs_check_method == "file_magic".
12036 file_magic_cmd=$lt_file_magic_cmd
12037
12038 # The archiver.
12039 AR=$lt_AR
12040 AR_FLAGS=$lt_AR_FLAGS
12041
12042 # A symbol stripping program.
12043 STRIP=$lt_STRIP
12044
12045 # Commands used to install an old-style archive.
12046 RANLIB=$lt_RANLIB
12047 old_postinstall_cmds=$lt_old_postinstall_cmds
12048 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12049
12050 # A C compiler.
12051 LTCC=$lt_CC
12052
12053 # LTCC compiler flags.
12054 LTCFLAGS=$lt_CFLAGS
12055
12056 # Take the output of nm and produce a listing of raw symbols and C names.
12057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12058
12059 # Transform the output of nm in a proper C declaration.
12060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12061
12062 # Transform the output of nm in a C name address pair.
12063 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12064
12065 # The name of the directory that contains temporary libtool files.
12066 objdir=$objdir
12067
12068 # Shell to use when invoking shell scripts.
12069 SHELL=$lt_SHELL
12070
12071 # An echo program that does not interpret backslashes.
12072 ECHO=$lt_ECHO
12073
12074 # Used to examine libraries when file_magic_cmd begins with "file".
12075 MAGIC_CMD=$MAGIC_CMD
12076
12077 # Must we lock files when doing compilation?
12078 need_locks=$lt_need_locks
12079
12080 # Old archive suffix (normally "a").
12081 libext=$libext
12082
12083 # Shared library suffix (normally ".so").
12084 shrext_cmds=$lt_shrext_cmds
12085
12086 # The commands to extract the exported symbol list from a shared archive.
12087 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12088
12089 # Variables whose values should be saved in libtool wrapper scripts and
12090 # restored at link time.
12091 variables_saved_for_relink=$lt_variables_saved_for_relink
12092
12093 # Do we need the "lib" prefix for modules?
12094 need_lib_prefix=$need_lib_prefix
12095
12096 # Do we need a version for libraries?
12097 need_version=$need_version
12098
12099 # Library versioning type.
12100 version_type=$version_type
12101
12102 # Shared library runtime path variable.
12103 runpath_var=$runpath_var
12104
12105 # Shared library path variable.
12106 shlibpath_var=$shlibpath_var
12107
12108 # Is shlibpath searched before the hard-coded library search path?
12109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12110
12111 # Format of library name prefix.
12112 libname_spec=$lt_libname_spec
12113
12114 # List of archive names.  First name is the real one, the rest are links.
12115 # The last name is the one that the linker finds with -lNAME
12116 library_names_spec=$lt_library_names_spec
12117
12118 # The coded name of the library, if different from the real name.
12119 soname_spec=$lt_soname_spec
12120
12121 # Command to use after installation of a shared archive.
12122 postinstall_cmds=$lt_postinstall_cmds
12123
12124 # Command to use after uninstallation of a shared archive.
12125 postuninstall_cmds=$lt_postuninstall_cmds
12126
12127 # Commands used to finish a libtool library installation in a directory.
12128 finish_cmds=$lt_finish_cmds
12129
12130 # As "finish_cmds", except a single script fragment to be evaled but
12131 # not shown.
12132 finish_eval=$lt_finish_eval
12133
12134 # Whether we should hardcode library paths into libraries.
12135 hardcode_into_libs=$hardcode_into_libs
12136
12137 # Compile-time system search path for libraries.
12138 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12139
12140 # Run-time system search path for libraries.
12141 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12142
12143 # Whether dlopen is supported.
12144 dlopen_support=$enable_dlopen
12145
12146 # Whether dlopen of programs is supported.
12147 dlopen_self=$enable_dlopen_self
12148
12149 # Whether dlopen of statically linked programs is supported.
12150 dlopen_self_static=$enable_dlopen_self_static
12151
12152 # Commands to strip libraries.
12153 old_striplib=$lt_old_striplib
12154 striplib=$lt_striplib
12155
12156
12157 # The linker used to build libraries.
12158 LD=$lt_LD
12159
12160 # Commands used to build an old-style archive.
12161 old_archive_cmds=$lt_old_archive_cmds
12162
12163 # A language specific compiler.
12164 CC=$lt_compiler
12165
12166 # Is the compiler the GNU compiler?
12167 with_gcc=$GCC
12168
12169 # Compiler flag to turn off builtin functions.
12170 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12171
12172 # How to pass a linker flag through the compiler.
12173 wl=$lt_lt_prog_compiler_wl
12174
12175 # Additional compiler flags for building library objects.
12176 pic_flag=$lt_lt_prog_compiler_pic
12177
12178 # Compiler flag to prevent dynamic linking.
12179 link_static_flag=$lt_lt_prog_compiler_static
12180
12181 # Does compiler simultaneously support -c and -o options?
12182 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12183
12184 # Whether or not to add -lc for building shared libraries.
12185 build_libtool_need_lc=$archive_cmds_need_lc
12186
12187 # Whether or not to disallow shared libs when runtime libs are static.
12188 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12189
12190 # Compiler flag to allow reflexive dlopens.
12191 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12192
12193 # Compiler flag to generate shared objects directly from archives.
12194 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12195
12196 # Whether the compiler copes with passing no objects directly.
12197 compiler_needs_object=$lt_compiler_needs_object
12198
12199 # Create an old-style archive from a shared archive.
12200 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12201
12202 # Create a temporary old-style archive to link instead of a shared archive.
12203 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12204
12205 # Commands used to build a shared archive.
12206 archive_cmds=$lt_archive_cmds
12207 archive_expsym_cmds=$lt_archive_expsym_cmds
12208
12209 # Commands used to build a loadable module if different from building
12210 # a shared archive.
12211 module_cmds=$lt_module_cmds
12212 module_expsym_cmds=$lt_module_expsym_cmds
12213
12214 # Whether we are building with GNU ld or not.
12215 with_gnu_ld=$lt_with_gnu_ld
12216
12217 # Flag that allows shared libraries with undefined symbols to be built.
12218 allow_undefined_flag=$lt_allow_undefined_flag
12219
12220 # Flag that enforces no undefined symbols.
12221 no_undefined_flag=$lt_no_undefined_flag
12222
12223 # Flag to hardcode \$libdir into a binary during linking.
12224 # This must work even if \$libdir does not exist
12225 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12226
12227 # If ld is used when linking, flag to hardcode \$libdir into a binary
12228 # during linking.  This must work even if \$libdir does not exist.
12229 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12230
12231 # Whether we need a single "-rpath" flag with a separated argument.
12232 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12233
12234 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12235 # DIR into the resulting binary.
12236 hardcode_direct=$hardcode_direct
12237
12238 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12239 # DIR into the resulting binary and the resulting library dependency is
12240 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12241 # library is relocated.
12242 hardcode_direct_absolute=$hardcode_direct_absolute
12243
12244 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12245 # into the resulting binary.
12246 hardcode_minus_L=$hardcode_minus_L
12247
12248 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12249 # into the resulting binary.
12250 hardcode_shlibpath_var=$hardcode_shlibpath_var
12251
12252 # Set to "yes" if building a shared library automatically hardcodes DIR
12253 # into the library and all subsequent libraries and executables linked
12254 # against it.
12255 hardcode_automatic=$hardcode_automatic
12256
12257 # Set to yes if linker adds runtime paths of dependent libraries
12258 # to runtime path list.
12259 inherit_rpath=$inherit_rpath
12260
12261 # Whether libtool must link a program against all its dependency libraries.
12262 link_all_deplibs=$link_all_deplibs
12263
12264 # Fix the shell variable \$srcfile for the compiler.
12265 fix_srcfile_path=$lt_fix_srcfile_path
12266
12267 # Set to "yes" if exported symbols are required.
12268 always_export_symbols=$always_export_symbols
12269
12270 # The commands to list exported symbols.
12271 export_symbols_cmds=$lt_export_symbols_cmds
12272
12273 # Symbols that should not be listed in the preloaded symbols.
12274 exclude_expsyms=$lt_exclude_expsyms
12275
12276 # Symbols that must always be exported.
12277 include_expsyms=$lt_include_expsyms
12278
12279 # Commands necessary for linking programs (against libraries) with templates.
12280 prelink_cmds=$lt_prelink_cmds
12281
12282 # Specify filename containing input files.
12283 file_list_spec=$lt_file_list_spec
12284
12285 # How to hardcode a shared library path into an executable.
12286 hardcode_action=$hardcode_action
12287
12288 # ### END LIBTOOL CONFIG
12289
12290 _LT_EOF
12291
12292   case $host_os in
12293   aix3*)
12294     cat <<\_LT_EOF >> "$cfgfile"
12295 # AIX sometimes has problems with the GCC collect2 program.  For some
12296 # reason, if we set the COLLECT_NAMES environment variable, the problems
12297 # vanish in a puff of smoke.
12298 if test "X${COLLECT_NAMES+set}" != Xset; then
12299   COLLECT_NAMES=
12300   export COLLECT_NAMES
12301 fi
12302 _LT_EOF
12303     ;;
12304   esac
12305
12306
12307 ltmain="$ac_aux_dir/ltmain.sh"
12308
12309
12310   # We use sed instead of cat because bash on DJGPP gets confused if
12311   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12312   # text mode, it properly converts lines to CR/LF.  This bash problem
12313   # is reportedly fixed, but why not run on old versions too?
12314   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12315     || (rm -f "$cfgfile"; exit 1)
12316
12317   case $xsi_shell in
12318   yes)
12319     cat << \_LT_EOF >> "$cfgfile"
12320 # func_dirname file append nondir_replacement
12321 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12322 # otherwise set result to NONDIR_REPLACEMENT.
12323 func_dirname ()
12324 {
12325   case ${1} in
12326     */*) func_dirname_result="${1%/*}${2}" ;;
12327     *  ) func_dirname_result="${3}" ;;
12328   esac
12329 }
12330
12331 # func_basename file
12332 func_basename ()
12333 {
12334   func_basename_result="${1##*/}"
12335 }
12336
12337 # func_stripname prefix suffix name
12338 # strip PREFIX and SUFFIX off of NAME.
12339 # PREFIX and SUFFIX must not contain globbing or regex special
12340 # characters, hashes, percent signs, but SUFFIX may contain a leading
12341 # dot (in which case that matches only a dot).
12342 func_stripname ()
12343 {
12344   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12345   # positional parameters, so assign one to ordinary parameter first.
12346   func_stripname_result=${3}
12347   func_stripname_result=${func_stripname_result#"${1}"}
12348   func_stripname_result=${func_stripname_result%"${2}"}
12349 }
12350
12351 # func_opt_split
12352 func_opt_split ()
12353 {
12354   func_opt_split_opt=${1%%=*}
12355   func_opt_split_arg=${1#*=}
12356 }
12357
12358 # func_lo2o object
12359 func_lo2o ()
12360 {
12361   case ${1} in
12362     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12363     *)    func_lo2o_result=${1} ;;
12364   esac
12365 }
12366 _LT_EOF
12367     ;;
12368   *) # Bourne compatible functions.
12369     cat << \_LT_EOF >> "$cfgfile"
12370 # func_dirname file append nondir_replacement
12371 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12372 # otherwise set result to NONDIR_REPLACEMENT.
12373 func_dirname ()
12374 {
12375   # Extract subdirectory from the argument.
12376   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12377   if test "X$func_dirname_result" = "X${1}"; then
12378     func_dirname_result="${3}"
12379   else
12380     func_dirname_result="$func_dirname_result${2}"
12381   fi
12382 }
12383
12384 # func_basename file
12385 func_basename ()
12386 {
12387   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12388 }
12389
12390 # func_stripname prefix suffix name
12391 # strip PREFIX and SUFFIX off of NAME.
12392 # PREFIX and SUFFIX must not contain globbing or regex special
12393 # characters, hashes, percent signs, but SUFFIX may contain a leading
12394 # dot (in which case that matches only a dot).
12395 # func_strip_suffix prefix name
12396 func_stripname ()
12397 {
12398   case ${2} in
12399     .*) func_stripname_result=`$ECHO "X${3}" \
12400            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12401     *)  func_stripname_result=`$ECHO "X${3}" \
12402            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12403   esac
12404 }
12405
12406 # sed scripts:
12407 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12408 my_sed_long_arg='1s/^-[^=]*=//'
12409
12410 # func_opt_split
12411 func_opt_split ()
12412 {
12413   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12414   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12415 }
12416
12417 # func_lo2o object
12418 func_lo2o ()
12419 {
12420   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12421 }
12422 _LT_EOF
12423 esac
12424
12425 case $lt_shell_append in
12426   yes)
12427     cat << \_LT_EOF >> "$cfgfile"
12428
12429 # func_append var value
12430 # Append VALUE to the end of shell variable VAR.
12431 func_append ()
12432 {
12433   eval "$1+=\$2"
12434 }
12435 _LT_EOF
12436     ;;
12437   *)
12438     cat << \_LT_EOF >> "$cfgfile"
12439
12440 # func_append var value
12441 # Append VALUE to the end of shell variable VAR.
12442 func_append ()
12443 {
12444   eval "$1=\$$1\$2"
12445 }
12446 _LT_EOF
12447     ;;
12448   esac
12449
12450
12451   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12452     || (rm -f "$cfgfile"; exit 1)
12453
12454   mv -f "$cfgfile" "$ofile" ||
12455     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12456   chmod +x "$ofile"
12457
12458  ;;
12459   esac
12460 done
12461 _ACEOF
12462
12463 cat >>$CONFIG_STATUS <<\_ACEOF
12464
12465 { (exit 0); exit 0; }
12466 _ACEOF
12467 chmod +x $CONFIG_STATUS
12468 ac_clean_files=$ac_clean_files_save
12469
12470
12471 # configure is writing to config.log, and then calls config.status.
12472 # config.status does its own redirection, appending to config.log.
12473 # Unfortunately, on DOS this fails, as config.log is still kept open
12474 # by configure, so config.status won't be able to write to it; its
12475 # output is simply discarded.  So we exec the FD to /dev/null,
12476 # effectively closing config.log, so it can be properly (re)opened and
12477 # appended to by config.status.  When coming back to configure, we
12478 # need to make the FD available again.
12479 if test "$no_create" != yes; then
12480   ac_cs_success=:
12481   ac_config_status_args=
12482   test "$silent" = yes &&
12483     ac_config_status_args="$ac_config_status_args --quiet"
12484   exec 5>/dev/null
12485   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12486   exec 5>>config.log
12487   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12488   # would make configure fail if this is the last instruction.
12489   $ac_cs_success || { (exit 1); exit 1; }
12490 fi
12491