OSDN Git Service

Daily bump.
[pf3gnuchains/gcc-fork.git] / libmudflap / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libmudflap 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='libmudflap'
418 PACKAGE_TARNAME='libmudflap'
419 PACKAGE_VERSION='1.0'
420 PACKAGE_STRING='libmudflap 1.0'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="mf-runtime.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 EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 enable_shared enable_static MF_HAVE_STDINT_H MF_HAVE_UINTPTR_T LIBMUDFLAPTH_TRUE LIBMUDFLAPTH_FALSE build_libmudflapth toolexecdir toolexeclibdir ac_ct_NM SECTION_FLAGS LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463 ac_pwd=`pwd`
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506   # If the previous option needs an argument, assign it.
507   if test -n "$ac_prev"; then
508     eval "$ac_prev=\$ac_option"
509     ac_prev=
510     continue
511   fi
512
513   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515   # Accept the important Cygnus configure options, so we can diagnose typos.
516
517   case $ac_option in
518
519   -bindir | --bindir | --bindi | --bind | --bin | --bi)
520     ac_prev=bindir ;;
521   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522     bindir=$ac_optarg ;;
523
524   -build | --build | --buil | --bui | --bu)
525     ac_prev=build_alias ;;
526   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527     build_alias=$ac_optarg ;;
528
529   -cache-file | --cache-file | --cache-fil | --cache-fi \
530   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531     ac_prev=cache_file ;;
532   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534     cache_file=$ac_optarg ;;
535
536   --config-cache | -C)
537     cache_file=config.cache ;;
538
539   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540     ac_prev=datadir ;;
541   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542   | --da=*)
543     datadir=$ac_optarg ;;
544
545   -disable-* | --disable-*)
546     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547     # Reject names that are not valid shell variable names.
548     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550    { (exit 1); exit 1; }; }
551     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552     eval "enable_$ac_feature=no" ;;
553
554   -enable-* | --enable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     case $ac_option in
562       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563       *) ac_optarg=yes ;;
564     esac
565     eval "enable_$ac_feature='$ac_optarg'" ;;
566
567   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569   | --exec | --exe | --ex)
570     ac_prev=exec_prefix ;;
571   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573   | --exec=* | --exe=* | --ex=*)
574     exec_prefix=$ac_optarg ;;
575
576   -gas | --gas | --ga | --g)
577     # Obsolete; use --with-gas.
578     with_gas=yes ;;
579
580   -help | --help | --hel | --he | -h)
581     ac_init_help=long ;;
582   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583     ac_init_help=recursive ;;
584   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585     ac_init_help=short ;;
586
587   -host | --host | --hos | --ho)
588     ac_prev=host_alias ;;
589   -host=* | --host=* | --hos=* | --ho=*)
590     host_alias=$ac_optarg ;;
591
592   -includedir | --includedir | --includedi | --included | --include \
593   | --includ | --inclu | --incl | --inc)
594     ac_prev=includedir ;;
595   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596   | --includ=* | --inclu=* | --incl=* | --inc=*)
597     includedir=$ac_optarg ;;
598
599   -infodir | --infodir | --infodi | --infod | --info | --inf)
600     ac_prev=infodir ;;
601   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602     infodir=$ac_optarg ;;
603
604   -libdir | --libdir | --libdi | --libd)
605     ac_prev=libdir ;;
606   -libdir=* | --libdir=* | --libdi=* | --libd=*)
607     libdir=$ac_optarg ;;
608
609   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610   | --libexe | --libex | --libe)
611     ac_prev=libexecdir ;;
612   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613   | --libexe=* | --libex=* | --libe=*)
614     libexecdir=$ac_optarg ;;
615
616   -localstatedir | --localstatedir | --localstatedi | --localstated \
617   | --localstate | --localstat | --localsta | --localst \
618   | --locals | --local | --loca | --loc | --lo)
619     ac_prev=localstatedir ;;
620   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623     localstatedir=$ac_optarg ;;
624
625   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626     ac_prev=mandir ;;
627   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628     mandir=$ac_optarg ;;
629
630   -nfp | --nfp | --nf)
631     # Obsolete; use --without-fp.
632     with_fp=no ;;
633
634   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635   | --no-cr | --no-c | -n)
636     no_create=yes ;;
637
638   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640     no_recursion=yes ;;
641
642   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644   | --oldin | --oldi | --old | --ol | --o)
645     ac_prev=oldincludedir ;;
646   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649     oldincludedir=$ac_optarg ;;
650
651   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652     ac_prev=prefix ;;
653   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654     prefix=$ac_optarg ;;
655
656   -program-prefix | --program-prefix | --program-prefi | --program-pref \
657   | --program-pre | --program-pr | --program-p)
658     ac_prev=program_prefix ;;
659   -program-prefix=* | --program-prefix=* | --program-prefi=* \
660   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661     program_prefix=$ac_optarg ;;
662
663   -program-suffix | --program-suffix | --program-suffi | --program-suff \
664   | --program-suf | --program-su | --program-s)
665     ac_prev=program_suffix ;;
666   -program-suffix=* | --program-suffix=* | --program-suffi=* \
667   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668     program_suffix=$ac_optarg ;;
669
670   -program-transform-name | --program-transform-name \
671   | --program-transform-nam | --program-transform-na \
672   | --program-transform-n | --program-transform- \
673   | --program-transform | --program-transfor \
674   | --program-transfo | --program-transf \
675   | --program-trans | --program-tran \
676   | --progr-tra | --program-tr | --program-t)
677     ac_prev=program_transform_name ;;
678   -program-transform-name=* | --program-transform-name=* \
679   | --program-transform-nam=* | --program-transform-na=* \
680   | --program-transform-n=* | --program-transform-=* \
681   | --program-transform=* | --program-transfor=* \
682   | --program-transfo=* | --program-transf=* \
683   | --program-trans=* | --program-tran=* \
684   | --progr-tra=* | --program-tr=* | --program-t=*)
685     program_transform_name=$ac_optarg ;;
686
687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688   | -silent | --silent | --silen | --sile | --sil)
689     silent=yes ;;
690
691   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692     ac_prev=sbindir ;;
693   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694   | --sbi=* | --sb=*)
695     sbindir=$ac_optarg ;;
696
697   -sharedstatedir | --sharedstatedir | --sharedstatedi \
698   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699   | --sharedst | --shareds | --shared | --share | --shar \
700   | --sha | --sh)
701     ac_prev=sharedstatedir ;;
702   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705   | --sha=* | --sh=*)
706     sharedstatedir=$ac_optarg ;;
707
708   -site | --site | --sit)
709     ac_prev=site ;;
710   -site=* | --site=* | --sit=*)
711     site=$ac_optarg ;;
712
713   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714     ac_prev=srcdir ;;
715   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716     srcdir=$ac_optarg ;;
717
718   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719   | --syscon | --sysco | --sysc | --sys | --sy)
720     ac_prev=sysconfdir ;;
721   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723     sysconfdir=$ac_optarg ;;
724
725   -target | --target | --targe | --targ | --tar | --ta | --t)
726     ac_prev=target_alias ;;
727   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728     target_alias=$ac_optarg ;;
729
730   -v | -verbose | --verbose | --verbos | --verbo | --verb)
731     verbose=yes ;;
732
733   -version | --version | --versio | --versi | --vers | -V)
734     ac_init_version=: ;;
735
736   -with-* | --with-*)
737     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738     # Reject names that are not valid shell variable names.
739     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740       { echo "$as_me: error: invalid package name: $ac_package" >&2
741    { (exit 1); exit 1; }; }
742     ac_package=`echo $ac_package| sed 's/-/_/g'`
743     case $ac_option in
744       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745       *) ac_optarg=yes ;;
746     esac
747     eval "with_$ac_package='$ac_optarg'" ;;
748
749   -without-* | --without-*)
750     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751     # Reject names that are not valid shell variable names.
752     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753       { echo "$as_me: error: invalid package name: $ac_package" >&2
754    { (exit 1); exit 1; }; }
755     ac_package=`echo $ac_package | sed 's/-/_/g'`
756     eval "with_$ac_package=no" ;;
757
758   --x)
759     # Obsolete; use --with-x.
760     with_x=yes ;;
761
762   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763   | --x-incl | --x-inc | --x-in | --x-i)
764     ac_prev=x_includes ;;
765   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767     x_includes=$ac_optarg ;;
768
769   -x-libraries | --x-libraries | --x-librarie | --x-librari \
770   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771     ac_prev=x_libraries ;;
772   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774     x_libraries=$ac_optarg ;;
775
776   -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778    { (exit 1); exit 1; }; }
779     ;;
780
781   *=*)
782     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786    { (exit 1); exit 1; }; }
787     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788     eval "$ac_envvar='$ac_optarg'"
789     export $ac_envvar ;;
790
791   *)
792     # FIXME: should be removed in autoconf 3.0.
793     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797     ;;
798
799   esac
800 done
801
802 if test -n "$ac_prev"; then
803   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804   { echo "$as_me: error: missing argument to $ac_option" >&2
805    { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811   eval ac_val=$`echo $ac_var`
812   case $ac_val in
813     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815    { (exit 1); exit 1; }; };;
816   esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821               localstatedir libdir includedir oldincludedir infodir mandir
822 do
823   eval ac_val=$`echo $ac_var`
824   case $ac_val in
825     [\\/$]* | ?:[\\/]* ) ;;
826     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827    { (exit 1); exit 1; }; };;
828   esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840   if test "x$build_alias" = x; then
841     cross_compiling=maybe
842     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843     If a cross compiler is detected then cross compile mode will be used." >&2
844   elif test "x$build_alias" != "x$host_alias"; then
845     cross_compiling=yes
846   fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857   ac_srcdir_defaulted=yes
858   # Try the directory containing this script, then its parent.
859   ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861          X"$0" : 'X\(//\)[^/]' \| \
862          X"$0" : 'X\(//\)$' \| \
863          X"$0" : 'X\(/\)' \| \
864          .     : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868           /^X\(\/\/\)$/{ s//\1/; q; }
869           /^X\(\/\).*/{ s//\1/; q; }
870           s/.*/./; q'`
871   srcdir=$ac_confdir
872   if test ! -r $srcdir/$ac_unique_file; then
873     srcdir=..
874   fi
875 else
876   ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879   if test "$ac_srcdir_defaulted" = yes; then
880     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881    { (exit 1); exit 1; }; }
882   else
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884    { (exit 1); exit 1; }; }
885   fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889    { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911
912 #
913 # Report the --help message.
914 #
915 if test "$ac_init_help" = "long"; then
916   # Omit some internal or obsolete options to make the list less imposing.
917   # This message is too long to be a string in the A/UX 3.1 sh.
918   cat <<_ACEOF
919 \`configure' configures libmudflap 1.0 to adapt to many kinds of systems.
920
921 Usage: $0 [OPTION]... [VAR=VALUE]...
922
923 To assign environment variables (e.g., CC, CFLAGS...), specify them as
924 VAR=VALUE.  See below for descriptions of some of the useful variables.
925
926 Defaults for the options are specified in brackets.
927
928 Configuration:
929   -h, --help              display this help and exit
930       --help=short        display options specific to this package
931       --help=recursive    display the short help of all the included packages
932   -V, --version           display version information and exit
933   -q, --quiet, --silent   do not print \`checking...' messages
934       --cache-file=FILE   cache test results in FILE [disabled]
935   -C, --config-cache      alias for \`--cache-file=config.cache'
936   -n, --no-create         do not create output files
937       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
938
939 _ACEOF
940
941   cat <<_ACEOF
942 Installation directories:
943   --prefix=PREFIX         install architecture-independent files in PREFIX
944                           [$ac_default_prefix]
945   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
946                           [PREFIX]
947
948 By default, \`make install' will install all the files in
949 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
950 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
951 for instance \`--prefix=\$HOME'.
952
953 For better control, use the options below.
954
955 Fine tuning of the installation directories:
956   --bindir=DIR           user executables [EPREFIX/bin]
957   --sbindir=DIR          system admin executables [EPREFIX/sbin]
958   --libexecdir=DIR       program executables [EPREFIX/libexec]
959   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
960   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
961   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
962   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
963   --libdir=DIR           object code libraries [EPREFIX/lib]
964   --includedir=DIR       C header files [PREFIX/include]
965   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
966   --infodir=DIR          info documentation [PREFIX/info]
967   --mandir=DIR           man documentation [PREFIX/man]
968 _ACEOF
969
970   cat <<\_ACEOF
971
972 Program names:
973   --program-prefix=PREFIX            prepend PREFIX to installed program names
974   --program-suffix=SUFFIX            append SUFFIX to installed program names
975   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
976
977 System types:
978   --build=BUILD     configure for building on BUILD [guessed]
979   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
980   --target=TARGET   configure for building compilers for TARGET [HOST]
981 _ACEOF
982 fi
983
984 if test -n "$ac_init_help"; then
985   case $ac_init_help in
986      short | recursive ) echo "Configuration of libmudflap 1.0:";;
987    esac
988   cat <<\_ACEOF
989
990 Optional Features:
991   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
992   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
993   --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
994   --enable-maintainer-mode  enable make rules and dependencies not useful
995                           (and sometimes confusing) to the casual installer
996   --enable-multilib       build many library versions (default)
997   --disable-dependency-tracking  speeds up one-time build
998   --enable-dependency-tracking   do not reject slow dependency extractors
999   --enable-shared[=PKGS]
1000                           build shared libraries [default=yes]
1001   --enable-static[=PKGS]
1002                           build static libraries [default=yes]
1003   --enable-fast-install[=PKGS]
1004                           optimize for fast installation [default=yes]
1005   --disable-libtool-lock  avoid locking (might break parallel builds)
1006   --enable-tls            Use thread-local storage [default=yes]
1007
1008 Optional Packages:
1009   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1010   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1011   --with-pic              try to use only PIC/non-PIC objects [default=use
1012                           both]
1013   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1014
1015 Some influential environment variables:
1016   CC          C compiler command
1017   CFLAGS      C compiler flags
1018   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1019               nonstandard directory <lib dir>
1020   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1021               headers in a nonstandard directory <include dir>
1022   CPP         C preprocessor
1023
1024 Use these variables to override the choices made by `configure' or to help
1025 it to find libraries and programs with nonstandard names/locations.
1026
1027 _ACEOF
1028 fi
1029
1030 if test "$ac_init_help" = "recursive"; then
1031   # If there are subdirs, report their specific --help.
1032   ac_popdir=`pwd`
1033   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1034     test -d $ac_dir || continue
1035     ac_builddir=.
1036
1037 if test "$ac_dir" != .; then
1038   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1039   # A "../" for each directory in $ac_dir_suffix.
1040   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1041 else
1042   ac_dir_suffix= ac_top_builddir=
1043 fi
1044
1045 case $srcdir in
1046   .)  # No --srcdir option.  We are building in place.
1047     ac_srcdir=.
1048     if test -z "$ac_top_builddir"; then
1049        ac_top_srcdir=.
1050     else
1051        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1052     fi ;;
1053   [\\/]* | ?:[\\/]* )  # Absolute path.
1054     ac_srcdir=$srcdir$ac_dir_suffix;
1055     ac_top_srcdir=$srcdir ;;
1056   *) # Relative path.
1057     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1058     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1059 esac
1060
1061 # Do not use `cd foo && pwd` to compute absolute paths, because
1062 # the directories may not exist.
1063 case `pwd` in
1064 .) ac_abs_builddir="$ac_dir";;
1065 *)
1066   case "$ac_dir" in
1067   .) ac_abs_builddir=`pwd`;;
1068   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1069   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1070   esac;;
1071 esac
1072 case $ac_abs_builddir in
1073 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1074 *)
1075   case ${ac_top_builddir}. in
1076   .) ac_abs_top_builddir=$ac_abs_builddir;;
1077   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1078   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1079   esac;;
1080 esac
1081 case $ac_abs_builddir in
1082 .) ac_abs_srcdir=$ac_srcdir;;
1083 *)
1084   case $ac_srcdir in
1085   .) ac_abs_srcdir=$ac_abs_builddir;;
1086   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1087   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1088   esac;;
1089 esac
1090 case $ac_abs_builddir in
1091 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1092 *)
1093   case $ac_top_srcdir in
1094   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1095   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1096   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1097   esac;;
1098 esac
1099
1100     cd $ac_dir
1101     # Check for guested configure; otherwise get Cygnus style configure.
1102     if test -f $ac_srcdir/configure.gnu; then
1103       echo
1104       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1105     elif test -f $ac_srcdir/configure; then
1106       echo
1107       $SHELL $ac_srcdir/configure  --help=recursive
1108     elif test -f $ac_srcdir/configure.ac ||
1109            test -f $ac_srcdir/configure.in; then
1110       echo
1111       $ac_configure --help
1112     else
1113       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1114     fi
1115     cd $ac_popdir
1116   done
1117 fi
1118
1119 test -n "$ac_init_help" && exit 0
1120 if $ac_init_version; then
1121   cat <<\_ACEOF
1122 libmudflap configure 1.0
1123 generated by GNU Autoconf 2.59
1124
1125 Copyright (C) 2003 Free Software Foundation, Inc.
1126 This configure script is free software; the Free Software Foundation
1127 gives unlimited permission to copy, distribute and modify it.
1128 _ACEOF
1129   exit 0
1130 fi
1131 exec 5>config.log
1132 cat >&5 <<_ACEOF
1133 This file contains any messages produced by compilers while
1134 running configure, to aid debugging if configure makes a mistake.
1135
1136 It was created by libmudflap $as_me 1.0, which was
1137 generated by GNU Autoconf 2.59.  Invocation command line was
1138
1139   $ $0 $@
1140
1141 _ACEOF
1142 {
1143 cat <<_ASUNAME
1144 ## --------- ##
1145 ## Platform. ##
1146 ## --------- ##
1147
1148 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1149 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1150 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1151 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1152 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1153
1154 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1155 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1156
1157 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1158 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1159 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1160 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1161 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1162 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1163 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1164
1165 _ASUNAME
1166
1167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1168 for as_dir in $PATH
1169 do
1170   IFS=$as_save_IFS
1171   test -z "$as_dir" && as_dir=.
1172   echo "PATH: $as_dir"
1173 done
1174
1175 } >&5
1176
1177 cat >&5 <<_ACEOF
1178
1179
1180 ## ----------- ##
1181 ## Core tests. ##
1182 ## ----------- ##
1183
1184 _ACEOF
1185
1186
1187 # Keep a trace of the command line.
1188 # Strip out --no-create and --no-recursion so they do not pile up.
1189 # Strip out --silent because we don't want to record it for future runs.
1190 # Also quote any args containing shell meta-characters.
1191 # Make two passes to allow for proper duplicate-argument suppression.
1192 ac_configure_args=
1193 ac_configure_args0=
1194 ac_configure_args1=
1195 ac_sep=
1196 ac_must_keep_next=false
1197 for ac_pass in 1 2
1198 do
1199   for ac_arg
1200   do
1201     case $ac_arg in
1202     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1203     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1204     | -silent | --silent | --silen | --sile | --sil)
1205       continue ;;
1206     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1208     esac
1209     case $ac_pass in
1210     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1211     2)
1212       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1213       if test $ac_must_keep_next = true; then
1214         ac_must_keep_next=false # Got value, back to normal.
1215       else
1216         case $ac_arg in
1217           *=* | --config-cache | -C | -disable-* | --disable-* \
1218           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1219           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1220           | -with-* | --with-* | -without-* | --without-* | --x)
1221             case "$ac_configure_args0 " in
1222               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1223             esac
1224             ;;
1225           -* ) ac_must_keep_next=true ;;
1226         esac
1227       fi
1228       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1229       # Get rid of the leading space.
1230       ac_sep=" "
1231       ;;
1232     esac
1233   done
1234 done
1235 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1236 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1237
1238 # When interrupted or exit'd, cleanup temporary files, and complete
1239 # config.log.  We remove comments because anyway the quotes in there
1240 # would cause problems or look ugly.
1241 # WARNING: Be sure not to use single quotes in there, as some shells,
1242 # such as our DU 5.0 friend, will then `close' the trap.
1243 trap 'exit_status=$?
1244   # Save into config.log some information that might help in debugging.
1245   {
1246     echo
1247
1248     cat <<\_ASBOX
1249 ## ---------------- ##
1250 ## Cache variables. ##
1251 ## ---------------- ##
1252 _ASBOX
1253     echo
1254     # The following way of writing the cache mishandles newlines in values,
1255 {
1256   (set) 2>&1 |
1257     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1258     *ac_space=\ *)
1259       sed -n \
1260         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1261           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1262       ;;
1263     *)
1264       sed -n \
1265         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1266       ;;
1267     esac;
1268 }
1269     echo
1270
1271     cat <<\_ASBOX
1272 ## ----------------- ##
1273 ## Output variables. ##
1274 ## ----------------- ##
1275 _ASBOX
1276     echo
1277     for ac_var in $ac_subst_vars
1278     do
1279       eval ac_val=$`echo $ac_var`
1280       echo "$ac_var='"'"'$ac_val'"'"'"
1281     done | sort
1282     echo
1283
1284     if test -n "$ac_subst_files"; then
1285       cat <<\_ASBOX
1286 ## ------------- ##
1287 ## Output files. ##
1288 ## ------------- ##
1289 _ASBOX
1290       echo
1291       for ac_var in $ac_subst_files
1292       do
1293         eval ac_val=$`echo $ac_var`
1294         echo "$ac_var='"'"'$ac_val'"'"'"
1295       done | sort
1296       echo
1297     fi
1298
1299     if test -s confdefs.h; then
1300       cat <<\_ASBOX
1301 ## ----------- ##
1302 ## confdefs.h. ##
1303 ## ----------- ##
1304 _ASBOX
1305       echo
1306       sed "/^$/d" confdefs.h | sort
1307       echo
1308     fi
1309     test "$ac_signal" != 0 &&
1310       echo "$as_me: caught signal $ac_signal"
1311     echo "$as_me: exit $exit_status"
1312   } >&5
1313   rm -f core *.core &&
1314   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1315     exit $exit_status
1316      ' 0
1317 for ac_signal in 1 2 13 15; do
1318   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1319 done
1320 ac_signal=0
1321
1322 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1323 rm -rf conftest* confdefs.h
1324 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1325 echo >confdefs.h
1326
1327 # Predefined preprocessor variables.
1328
1329 cat >>confdefs.h <<_ACEOF
1330 #define PACKAGE_NAME "$PACKAGE_NAME"
1331 _ACEOF
1332
1333
1334 cat >>confdefs.h <<_ACEOF
1335 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1336 _ACEOF
1337
1338
1339 cat >>confdefs.h <<_ACEOF
1340 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1341 _ACEOF
1342
1343
1344 cat >>confdefs.h <<_ACEOF
1345 #define PACKAGE_STRING "$PACKAGE_STRING"
1346 _ACEOF
1347
1348
1349 cat >>confdefs.h <<_ACEOF
1350 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1351 _ACEOF
1352
1353
1354 # Let the site file select an alternate cache file if it wants to.
1355 # Prefer explicitly selected file to automatically selected ones.
1356 if test -z "$CONFIG_SITE"; then
1357   if test "x$prefix" != xNONE; then
1358     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1359   else
1360     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1361   fi
1362 fi
1363 for ac_site_file in $CONFIG_SITE; do
1364   if test -r "$ac_site_file"; then
1365     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1366 echo "$as_me: loading site script $ac_site_file" >&6;}
1367     sed 's/^/| /' "$ac_site_file" >&5
1368     . "$ac_site_file"
1369   fi
1370 done
1371
1372 if test -r "$cache_file"; then
1373   # Some versions of bash will fail to source /dev/null (special
1374   # files actually), so we avoid doing that.
1375   if test -f "$cache_file"; then
1376     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1377 echo "$as_me: loading cache $cache_file" >&6;}
1378     case $cache_file in
1379       [\\/]* | ?:[\\/]* ) . $cache_file;;
1380       *)                      . ./$cache_file;;
1381     esac
1382   fi
1383 else
1384   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1385 echo "$as_me: creating cache $cache_file" >&6;}
1386   >$cache_file
1387 fi
1388
1389 # Check that the precious variables saved in the cache have kept the same
1390 # value.
1391 ac_cache_corrupted=false
1392 for ac_var in `(set) 2>&1 |
1393                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1394   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1395   eval ac_new_set=\$ac_env_${ac_var}_set
1396   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1397   eval ac_new_val="\$ac_env_${ac_var}_value"
1398   case $ac_old_set,$ac_new_set in
1399     set,)
1400       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1401 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1402       ac_cache_corrupted=: ;;
1403     ,set)
1404       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1405 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1406       ac_cache_corrupted=: ;;
1407     ,);;
1408     *)
1409       if test "x$ac_old_val" != "x$ac_new_val"; then
1410         # differences in whitespace do not lead to failure.
1411         ac_old_val_w=`echo x $ac_old_val`
1412         ac_new_val_w=`echo x $ac_new_val`
1413         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1414           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1415 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1416           ac_cache_corrupted=:
1417         else
1418           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1419 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1420           eval $ac_var=\$ac_old_val
1421         fi
1422         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1423 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1424         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1425 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1426       fi;;
1427   esac
1428   # Pass precious variables to config.status.
1429   if test "$ac_new_set" = set; then
1430     case $ac_new_val in
1431     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1432       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1433     *) ac_arg=$ac_var=$ac_new_val ;;
1434     esac
1435     case " $ac_configure_args " in
1436       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1437       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1438     esac
1439   fi
1440 done
1441 if $ac_cache_corrupted; then
1442   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1443 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1444   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448    { (exit 1); exit 1; }; }
1449 fi
1450
1451 ac_ext=c
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1481
1482
1483
1484
1485
1486
1487 ac_aux_dir=
1488 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1489   if test -f $ac_dir/install-sh; then
1490     ac_aux_dir=$ac_dir
1491     ac_install_sh="$ac_aux_dir/install-sh -c"
1492     break
1493   elif test -f $ac_dir/install.sh; then
1494     ac_aux_dir=$ac_dir
1495     ac_install_sh="$ac_aux_dir/install.sh -c"
1496     break
1497   elif test -f $ac_dir/shtool; then
1498     ac_aux_dir=$ac_dir
1499     ac_install_sh="$ac_aux_dir/shtool install -c"
1500     break
1501   fi
1502 done
1503 if test -z "$ac_aux_dir"; then
1504   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1505 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1506    { (exit 1); exit 1; }; }
1507 fi
1508 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1509 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1510 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1511
1512 # Make sure we can run config.sub.
1513 $ac_config_sub sun4 >/dev/null 2>&1 ||
1514   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1515 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1516    { (exit 1); exit 1; }; }
1517
1518 echo "$as_me:$LINENO: checking build system type" >&5
1519 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1520 if test "${ac_cv_build+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   ac_cv_build_alias=$build_alias
1524 test -z "$ac_cv_build_alias" &&
1525   ac_cv_build_alias=`$ac_config_guess`
1526 test -z "$ac_cv_build_alias" &&
1527   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1528 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1529    { (exit 1); exit 1; }; }
1530 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1531   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1532 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1533    { (exit 1); exit 1; }; }
1534
1535 fi
1536 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1537 echo "${ECHO_T}$ac_cv_build" >&6
1538 build=$ac_cv_build
1539 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1540 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1541 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1542
1543
1544 echo "$as_me:$LINENO: checking host system type" >&5
1545 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1546 if test "${ac_cv_host+set}" = set; then
1547   echo $ECHO_N "(cached) $ECHO_C" >&6
1548 else
1549   ac_cv_host_alias=$host_alias
1550 test -z "$ac_cv_host_alias" &&
1551   ac_cv_host_alias=$ac_cv_build_alias
1552 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1553   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1554 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1555    { (exit 1); exit 1; }; }
1556
1557 fi
1558 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1559 echo "${ECHO_T}$ac_cv_host" >&6
1560 host=$ac_cv_host
1561 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1562 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1563 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1564
1565
1566 echo "$as_me:$LINENO: checking target system type" >&5
1567 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1568 if test "${ac_cv_target+set}" = set; then
1569   echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571   ac_cv_target_alias=$target_alias
1572 test "x$ac_cv_target_alias" = "x" &&
1573   ac_cv_target_alias=$ac_cv_host_alias
1574 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1575   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1576 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1577    { (exit 1); exit 1; }; }
1578
1579 fi
1580 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1581 echo "${ECHO_T}$ac_cv_target" >&6
1582 target=$ac_cv_target
1583 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1584 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1585 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1586
1587
1588 # The aliases save the names the user supplied, while $host etc.
1589 # will get canonicalized.
1590 test -n "$target_alias" &&
1591   test "$program_prefix$program_suffix$program_transform_name" = \
1592     NONENONEs,x,x, &&
1593   program_prefix=${target_alias}-
1594  case ${build_alias} in
1595   "") build_noncanonical=${build} ;;
1596   *) build_noncanonical=${build_alias} ;;
1597 esac
1598
1599  case ${host_alias} in
1600   "") host_noncanonical=${build_noncanonical} ;;
1601   *) host_noncanonical=${host_alias} ;;
1602 esac
1603
1604  case ${target_alias} in
1605   "") target_noncanonical=${host_noncanonical} ;;
1606   *) target_noncanonical=${target_alias} ;;
1607 esac
1608
1609
1610
1611
1612 am__api_version="1.9"
1613 # Find a good install program.  We prefer a C program (faster),
1614 # so one script is as good as another.  But avoid the broken or
1615 # incompatible versions:
1616 # SysV /etc/install, /usr/sbin/install
1617 # SunOS /usr/etc/install
1618 # IRIX /sbin/install
1619 # AIX /bin/install
1620 # AmigaOS /C/install, which installs bootblocks on floppy discs
1621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1624 # OS/2's system install, which has a completely different semantic
1625 # ./install, which can be erroneously created by make from ./install.sh.
1626 # Reject install programs that cannot install multiple files.
1627 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1628 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1629 if test -z "$INSTALL"; then
1630 if test "${ac_cv_path_install+set}" = set; then
1631   echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1635 do
1636   IFS=$as_save_IFS
1637   test -z "$as_dir" && as_dir=.
1638   # Account for people who put trailing slashes in PATH elements.
1639 case $as_dir/ in
1640   ./ | .// | /cC/* | \
1641   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1642   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1643   /usr/ucb/* ) ;;
1644   *)
1645     # OSF1 and SCO ODT 3.0 have their own names for install.
1646     # Don't use installbsd from OSF since it installs stuff as root
1647     # by default.
1648     for ac_prog in ginstall scoinst install; do
1649       for ac_exec_ext in '' $ac_executable_extensions; do
1650         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1651           if test $ac_prog = install &&
1652             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1653             # AIX install.  It has an incompatible calling convention.
1654             :
1655           elif test $ac_prog = install &&
1656             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1657             # program-specific install script used by HP pwplus--don't use.
1658             :
1659           else
1660             rm -rf conftest.one conftest.two conftest.dir
1661             echo one > conftest.one
1662             echo two > conftest.two
1663             mkdir conftest.dir
1664             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1665               test -s conftest.one && test -s conftest.two &&
1666               test -s conftest.dir/conftest.one &&
1667               test -s conftest.dir/conftest.two
1668             then
1669               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1670               break 3
1671             fi
1672           fi
1673         fi
1674       done
1675     done
1676     ;;
1677 esac
1678 done
1679
1680 rm -rf conftest.one conftest.two conftest.dir
1681
1682 fi
1683   if test "${ac_cv_path_install+set}" = set; then
1684     INSTALL=$ac_cv_path_install
1685   else
1686     # As a last resort, use the slow shell script.  Don't cache a
1687     # value for INSTALL within a source directory, because that will
1688     # break other packages using the cache if that directory is
1689     # removed, or if the value is a relative name.
1690     INSTALL=$ac_install_sh
1691   fi
1692 fi
1693 echo "$as_me:$LINENO: result: $INSTALL" >&5
1694 echo "${ECHO_T}$INSTALL" >&6
1695
1696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1697 # It thinks the first close brace ends the variable substitution.
1698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1699
1700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1701
1702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1703
1704 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1705 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1706 # Just in case
1707 sleep 1
1708 echo timestamp > conftest.file
1709 # Do `set' in a subshell so we don't clobber the current shell's
1710 # arguments.  Must try -L first in case configure is actually a
1711 # symlink; some systems play weird games with the mod time of symlinks
1712 # (eg FreeBSD returns the mod time of the symlink's containing
1713 # directory).
1714 if (
1715    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1716    if test "$*" = "X"; then
1717       # -L didn't work.
1718       set X `ls -t $srcdir/configure conftest.file`
1719    fi
1720    rm -f conftest.file
1721    if test "$*" != "X $srcdir/configure conftest.file" \
1722       && test "$*" != "X conftest.file $srcdir/configure"; then
1723
1724       # If neither matched, then we have a broken ls.  This can happen
1725       # if, for instance, CONFIG_SHELL is bash and it inherits a
1726       # broken ls alias from the environment.  This has actually
1727       # happened.  Such a system could not be considered "sane".
1728       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1729 alias in your environment" >&5
1730 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1731 alias in your environment" >&2;}
1732    { (exit 1); exit 1; }; }
1733    fi
1734
1735    test "$2" = conftest.file
1736    )
1737 then
1738    # Ok.
1739    :
1740 else
1741    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1742 Check your system clock" >&5
1743 echo "$as_me: error: newly created file is older than distributed files!
1744 Check your system clock" >&2;}
1745    { (exit 1); exit 1; }; }
1746 fi
1747 echo "$as_me:$LINENO: result: yes" >&5
1748 echo "${ECHO_T}yes" >&6
1749 test "$program_prefix" != NONE &&
1750   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1751 # Use a double $ so make ignores it.
1752 test "$program_suffix" != NONE &&
1753   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1754 # Double any \ or $.  echo might interpret backslashes.
1755 # By default was `s,x,x', remove it if useless.
1756 cat <<\_ACEOF >conftest.sed
1757 s/[\\$]/&&/g;s/;s,x,x,$//
1758 _ACEOF
1759 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1760 rm conftest.sed
1761
1762 # expand $ac_aux_dir to an absolute path
1763 am_aux_dir=`cd $ac_aux_dir && pwd`
1764
1765 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1766 # Use eval to expand $SHELL
1767 if eval "$MISSING --run true"; then
1768   am_missing_run="$MISSING --run "
1769 else
1770   am_missing_run=
1771   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1772 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1773 fi
1774
1775 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1776   # We used to keeping the `.' as first argument, in order to
1777   # allow $(mkdir_p) to be used without argument.  As in
1778   #   $(mkdir_p) $(somedir)
1779   # where $(somedir) is conditionally defined.  However this is wrong
1780   # for two reasons:
1781   #  1. if the package is installed by a user who cannot write `.'
1782   #     make install will fail,
1783   #  2. the above comment should most certainly read
1784   #     $(mkdir_p) $(DESTDIR)$(somedir)
1785   #     so it does not work when $(somedir) is undefined and
1786   #     $(DESTDIR) is not.
1787   #  To support the latter case, we have to write
1788   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1789   #  so the `.' trick is pointless.
1790   mkdir_p='mkdir -p --'
1791 else
1792   # On NextStep and OpenStep, the `mkdir' command does not
1793   # recognize any option.  It will interpret all options as
1794   # directories to create, and then abort because `.' already
1795   # exists.
1796   for d in ./-p ./--version;
1797   do
1798     test -d $d && rmdir $d
1799   done
1800   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1801   if test -f "$ac_aux_dir/mkinstalldirs"; then
1802     mkdir_p='$(mkinstalldirs)'
1803   else
1804     mkdir_p='$(install_sh) -d'
1805   fi
1806 fi
1807
1808 for ac_prog in gawk mawk nawk awk
1809 do
1810   # Extract the first word of "$ac_prog", so it can be a program name with args.
1811 set dummy $ac_prog; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_AWK+set}" = set; then
1815   echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817   if test -n "$AWK"; then
1818   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1819 else
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1822 do
1823   IFS=$as_save_IFS
1824   test -z "$as_dir" && as_dir=.
1825   for ac_exec_ext in '' $ac_executable_extensions; do
1826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827     ac_cv_prog_AWK="$ac_prog"
1828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1829     break 2
1830   fi
1831 done
1832 done
1833
1834 fi
1835 fi
1836 AWK=$ac_cv_prog_AWK
1837 if test -n "$AWK"; then
1838   echo "$as_me:$LINENO: result: $AWK" >&5
1839 echo "${ECHO_T}$AWK" >&6
1840 else
1841   echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843 fi
1844
1845   test -n "$AWK" && break
1846 done
1847
1848 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1849 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1851 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1852   echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854   cat >conftest.make <<\_ACEOF
1855 all:
1856         @echo 'ac_maketemp="$(MAKE)"'
1857 _ACEOF
1858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1859 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1860 if test -n "$ac_maketemp"; then
1861   eval ac_cv_prog_make_${ac_make}_set=yes
1862 else
1863   eval ac_cv_prog_make_${ac_make}_set=no
1864 fi
1865 rm -f conftest.make
1866 fi
1867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1868   echo "$as_me:$LINENO: result: yes" >&5
1869 echo "${ECHO_T}yes" >&6
1870   SET_MAKE=
1871 else
1872   echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1874   SET_MAKE="MAKE=${MAKE-make}"
1875 fi
1876
1877 rm -rf .tst 2>/dev/null
1878 mkdir .tst 2>/dev/null
1879 if test -d .tst; then
1880   am__leading_dot=.
1881 else
1882   am__leading_dot=_
1883 fi
1884 rmdir .tst 2>/dev/null
1885
1886 # test to see if srcdir already configured
1887 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1888    test -f $srcdir/config.status; then
1889   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1890 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1891    { (exit 1); exit 1; }; }
1892 fi
1893
1894 # test whether we have cygpath
1895 if test -z "$CYGPATH_W"; then
1896   if (cygpath --version) >/dev/null 2>/dev/null; then
1897     CYGPATH_W='cygpath -w'
1898   else
1899     CYGPATH_W=echo
1900   fi
1901 fi
1902
1903
1904 # Define the identity of the package.
1905  PACKAGE='libmudflap'
1906  VERSION='1.0'
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE "$PACKAGE"
1911 _ACEOF
1912
1913
1914 cat >>confdefs.h <<_ACEOF
1915 #define VERSION "$VERSION"
1916 _ACEOF
1917
1918 # Some tools Automake needs.
1919
1920 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1921
1922
1923 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1924
1925
1926 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1927
1928
1929 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1930
1931
1932 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1933
1934 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1935
1936 # Installed binaries are usually stripped using `strip' when the user
1937 # run `make install-strip'.  However `strip' might not be the right
1938 # tool to use in cross-compilation environments, therefore Automake
1939 # will honor the `STRIP' environment variable to overrule this program.
1940 if test "$cross_compiling" != no; then
1941   if test -n "$ac_tool_prefix"; then
1942   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1943 set dummy ${ac_tool_prefix}strip; ac_word=$2
1944 echo "$as_me:$LINENO: checking for $ac_word" >&5
1945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946 if test "${ac_cv_prog_STRIP+set}" = set; then
1947   echo $ECHO_N "(cached) $ECHO_C" >&6
1948 else
1949   if test -n "$STRIP"; then
1950   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1951 else
1952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953 for as_dir in $PATH
1954 do
1955   IFS=$as_save_IFS
1956   test -z "$as_dir" && as_dir=.
1957   for ac_exec_ext in '' $ac_executable_extensions; do
1958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961     break 2
1962   fi
1963 done
1964 done
1965
1966 fi
1967 fi
1968 STRIP=$ac_cv_prog_STRIP
1969 if test -n "$STRIP"; then
1970   echo "$as_me:$LINENO: result: $STRIP" >&5
1971 echo "${ECHO_T}$STRIP" >&6
1972 else
1973   echo "$as_me:$LINENO: result: no" >&5
1974 echo "${ECHO_T}no" >&6
1975 fi
1976
1977 fi
1978 if test -z "$ac_cv_prog_STRIP"; then
1979   ac_ct_STRIP=$STRIP
1980   # Extract the first word of "strip", so it can be a program name with args.
1981 set dummy strip; ac_word=$2
1982 echo "$as_me:$LINENO: checking for $ac_word" >&5
1983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1985   echo $ECHO_N "(cached) $ECHO_C" >&6
1986 else
1987   if test -n "$ac_ct_STRIP"; then
1988   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1989 else
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993   IFS=$as_save_IFS
1994   test -z "$as_dir" && as_dir=.
1995   for ac_exec_ext in '' $ac_executable_extensions; do
1996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997     ac_cv_prog_ac_ct_STRIP="strip"
1998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1999     break 2
2000   fi
2001 done
2002 done
2003
2004   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2005 fi
2006 fi
2007 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2008 if test -n "$ac_ct_STRIP"; then
2009   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2010 echo "${ECHO_T}$ac_ct_STRIP" >&6
2011 else
2012   echo "$as_me:$LINENO: result: no" >&5
2013 echo "${ECHO_T}no" >&6
2014 fi
2015
2016   STRIP=$ac_ct_STRIP
2017 else
2018   STRIP="$ac_cv_prog_STRIP"
2019 fi
2020
2021 fi
2022 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2023
2024 # We need awk for the "check" target.  The system "awk" is bad on
2025 # some platforms.
2026 # Always define AMTAR for backward compatibility.
2027
2028 AMTAR=${AMTAR-"${am_missing_run}tar"}
2029
2030 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2031
2032
2033
2034
2035
2036
2037 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
2038 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
2039 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
2040 if test "${enable_version_specific_runtime_libs+set}" = set; then
2041   enableval="$enable_version_specific_runtime_libs"
2042   case "$enableval" in
2043  yes) version_specific_libs=yes ;;
2044  no)  version_specific_libs=no ;;
2045  *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2046 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2047    { (exit 1); exit 1; }; };;
2048  esac
2049 else
2050   version_specific_libs=no
2051 fi;
2052 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
2053 echo "${ECHO_T}$version_specific_libs" >&6
2054
2055 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2056 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2057     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2058 if test "${enable_maintainer_mode+set}" = set; then
2059   enableval="$enable_maintainer_mode"
2060   USE_MAINTAINER_MODE=$enableval
2061 else
2062   USE_MAINTAINER_MODE=no
2063 fi;
2064   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2065 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2066
2067
2068 if test $USE_MAINTAINER_MODE = yes; then
2069   MAINTAINER_MODE_TRUE=
2070   MAINTAINER_MODE_FALSE='#'
2071 else
2072   MAINTAINER_MODE_TRUE='#'
2073   MAINTAINER_MODE_FALSE=
2074 fi
2075
2076   MAINT=$MAINTAINER_MODE_TRUE
2077
2078
2079
2080
2081 # Default to --enable-multilib
2082 # Check whether --enable-multilib or --disable-multilib was given.
2083 if test "${enable_multilib+set}" = set; then
2084   enableval="$enable_multilib"
2085   case "$enableval" in
2086   yes) multilib=yes ;;
2087   no)  multilib=no ;;
2088   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
2089 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
2090    { (exit 1); exit 1; }; } ;;
2091  esac
2092 else
2093   multilib=yes
2094 fi;
2095
2096 # We may get other options which we leave undocumented:
2097 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2098 # See config-ml.in if you want the gory details.
2099
2100 if test "$srcdir" = "."; then
2101   if test "$with_target_subdir" != "."; then
2102     multi_basedir="$srcdir/$with_multisrctop../.."
2103   else
2104     multi_basedir="$srcdir/$with_multisrctop.."
2105   fi
2106 else
2107   multi_basedir="$srcdir/.."
2108 fi
2109
2110
2111 # Even if the default multilib is not a cross compilation,
2112 # it may be that some of the other multilibs are.
2113 if test $cross_compiling = no && test $multilib = yes \
2114    && test "x${with_multisubdir}" != x ; then
2115    cross_compiling=maybe
2116 fi
2117
2118           ac_config_commands="$ac_config_commands default-1"
2119
2120
2121 target_alias=${target_alias-$host_alias}
2122
2123
2124           ac_config_headers="$ac_config_headers config.h"
2125
2126
2127 ac_ext=c
2128 ac_cpp='$CPP $CPPFLAGS'
2129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2132
2133 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2134 # We must force CC to /not/ be precious variables; otherwise
2135 # the wrong, non-multilib-adjusted value will be used in multilibs.
2136 # As a side effect, we have to subst CFLAGS ourselves.
2137
2138
2139
2140 ac_ext=c
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145 if test -n "$ac_tool_prefix"; then
2146   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   if test -n "$CC"; then
2154   ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159   IFS=$as_save_IFS
2160   test -z "$as_dir" && as_dir=.
2161   for ac_exec_ext in '' $ac_executable_extensions; do
2162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165     break 2
2166   fi
2167 done
2168 done
2169
2170 fi
2171 fi
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174   echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6
2176 else
2177   echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2179 fi
2180
2181 fi
2182 if test -z "$ac_cv_prog_CC"; then
2183   ac_ct_CC=$CC
2184   # Extract the first word of "gcc", so it can be a program name with args.
2185 set dummy gcc; ac_word=$2
2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   if test -n "$ac_ct_CC"; then
2192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 else
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197   IFS=$as_save_IFS
2198   test -z "$as_dir" && as_dir=.
2199   for ac_exec_ext in '' $ac_executable_extensions; do
2200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201     ac_cv_prog_ac_ct_CC="gcc"
2202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203     break 2
2204   fi
2205 done
2206 done
2207
2208 fi
2209 fi
2210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211 if test -n "$ac_ct_CC"; then
2212   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213 echo "${ECHO_T}$ac_ct_CC" >&6
2214 else
2215   echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6
2217 fi
2218
2219   CC=$ac_ct_CC
2220 else
2221   CC="$ac_cv_prog_CC"
2222 fi
2223
2224 if test -z "$CC"; then
2225   if test -n "$ac_tool_prefix"; then
2226   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2227 set dummy ${ac_tool_prefix}cc; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test -n "$CC"; then
2234   ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239   IFS=$as_save_IFS
2240   test -z "$as_dir" && as_dir=.
2241   for ac_exec_ext in '' $ac_executable_extensions; do
2242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2243     ac_cv_prog_CC="${ac_tool_prefix}cc"
2244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245     break 2
2246   fi
2247 done
2248 done
2249
2250 fi
2251 fi
2252 CC=$ac_cv_prog_CC
2253 if test -n "$CC"; then
2254   echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6
2256 else
2257   echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6
2259 fi
2260
2261 fi
2262 if test -z "$ac_cv_prog_CC"; then
2263   ac_ct_CC=$CC
2264   # Extract the first word of "cc", so it can be a program name with args.
2265 set dummy cc; ac_word=$2
2266 echo "$as_me:$LINENO: checking for $ac_word" >&5
2267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2269   echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271   if test -n "$ac_ct_CC"; then
2272   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2273 else
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2276 do
2277   IFS=$as_save_IFS
2278   test -z "$as_dir" && as_dir=.
2279   for ac_exec_ext in '' $ac_executable_extensions; do
2280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2281     ac_cv_prog_ac_ct_CC="cc"
2282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283     break 2
2284   fi
2285 done
2286 done
2287
2288 fi
2289 fi
2290 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2291 if test -n "$ac_ct_CC"; then
2292   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2293 echo "${ECHO_T}$ac_ct_CC" >&6
2294 else
2295   echo "$as_me:$LINENO: result: no" >&5
2296 echo "${ECHO_T}no" >&6
2297 fi
2298
2299   CC=$ac_ct_CC
2300 else
2301   CC="$ac_cv_prog_CC"
2302 fi
2303
2304 fi
2305 if test -z "$CC"; then
2306   # Extract the first word of "cc", so it can be a program name with args.
2307 set dummy cc; ac_word=$2
2308 echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2310 if test "${ac_cv_prog_CC+set}" = set; then
2311   echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313   if test -n "$CC"; then
2314   ac_cv_prog_CC="$CC" # Let the user override the test.
2315 else
2316   ac_prog_rejected=no
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320   IFS=$as_save_IFS
2321   test -z "$as_dir" && as_dir=.
2322   for ac_exec_ext in '' $ac_executable_extensions; do
2323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2325        ac_prog_rejected=yes
2326        continue
2327      fi
2328     ac_cv_prog_CC="cc"
2329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330     break 2
2331   fi
2332 done
2333 done
2334
2335 if test $ac_prog_rejected = yes; then
2336   # We found a bogon in the path, so make sure we never use it.
2337   set dummy $ac_cv_prog_CC
2338   shift
2339   if test $# != 0; then
2340     # We chose a different compiler from the bogus one.
2341     # However, it has the same basename, so the bogon will be chosen
2342     # first if we set CC to just the basename; use the full file name.
2343     shift
2344     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2345   fi
2346 fi
2347 fi
2348 fi
2349 CC=$ac_cv_prog_CC
2350 if test -n "$CC"; then
2351   echo "$as_me:$LINENO: result: $CC" >&5
2352 echo "${ECHO_T}$CC" >&6
2353 else
2354   echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6
2356 fi
2357
2358 fi
2359 if test -z "$CC"; then
2360   if test -n "$ac_tool_prefix"; then
2361   for ac_prog in cl
2362   do
2363     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368   echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370   if test -n "$CC"; then
2371   ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 for as_dir in $PATH
2375 do
2376   IFS=$as_save_IFS
2377   test -z "$as_dir" && as_dir=.
2378   for ac_exec_ext in '' $ac_executable_extensions; do
2379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2380     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382     break 2
2383   fi
2384 done
2385 done
2386
2387 fi
2388 fi
2389 CC=$ac_cv_prog_CC
2390 if test -n "$CC"; then
2391   echo "$as_me:$LINENO: result: $CC" >&5
2392 echo "${ECHO_T}$CC" >&6
2393 else
2394   echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6
2396 fi
2397
2398     test -n "$CC" && break
2399   done
2400 fi
2401 if test -z "$CC"; then
2402   ac_ct_CC=$CC
2403   for ac_prog in cl
2404 do
2405   # Extract the first word of "$ac_prog", so it can be a program name with args.
2406 set dummy $ac_prog; ac_word=$2
2407 echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2409 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2410   echo $ECHO_N "(cached) $ECHO_C" >&6
2411 else
2412   if test -n "$ac_ct_CC"; then
2413   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418   IFS=$as_save_IFS
2419   test -z "$as_dir" && as_dir=.
2420   for ac_exec_ext in '' $ac_executable_extensions; do
2421   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2422     ac_cv_prog_ac_ct_CC="$ac_prog"
2423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424     break 2
2425   fi
2426 done
2427 done
2428
2429 fi
2430 fi
2431 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2432 if test -n "$ac_ct_CC"; then
2433   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2434 echo "${ECHO_T}$ac_ct_CC" >&6
2435 else
2436   echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6
2438 fi
2439
2440   test -n "$ac_ct_CC" && break
2441 done
2442
2443   CC=$ac_ct_CC
2444 fi
2445
2446 fi
2447
2448
2449 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2450 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2451 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: no acceptable C compiler found in \$PATH
2454 See \`config.log' for more details." >&2;}
2455    { (exit 1); exit 1; }; }; }
2456
2457 # Provide some information about the compiler.
2458 echo "$as_me:$LINENO:" \
2459      "checking for C compiler version" >&5
2460 ac_compiler=`set X $ac_compile; echo $2`
2461 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2462   (eval $ac_compiler --version </dev/null >&5) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }
2466 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2467   (eval $ac_compiler -v </dev/null >&5) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }
2471 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2472   (eval $ac_compiler -V </dev/null >&5) 2>&5
2473   ac_status=$?
2474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }
2476
2477 cat >conftest.$ac_ext <<_ACEOF
2478 /* confdefs.h.  */
2479 _ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h.  */
2483
2484 int
2485 main ()
2486 {
2487
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 ac_clean_files_save=$ac_clean_files
2493 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2494 # Try to create an executable without -o first, disregard a.out.
2495 # It will help us diagnose broken compilers, and finding out an intuition
2496 # of exeext.
2497 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2498 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2499 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2500 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2501   (eval $ac_link_default) 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; then
2505   # Find the output, starting from the most likely.  This scheme is
2506 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2507 # resort.
2508
2509 # Be careful to initialize this variable, since it used to be cached.
2510 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2511 ac_cv_exeext=
2512 # b.out is created by i960 compilers.
2513 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2514 do
2515   test -f "$ac_file" || continue
2516   case $ac_file in
2517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2518         ;;
2519     conftest.$ac_ext )
2520         # This is the source file.
2521         ;;
2522     [ab].out )
2523         # We found the default executable, but exeext='' is most
2524         # certainly right.
2525         break;;
2526     *.* )
2527         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2528         # FIXME: I believe we export ac_cv_exeext for Libtool,
2529         # but it would be cool to find out if it's true.  Does anybody
2530         # maintain Libtool? --akim.
2531         export ac_cv_exeext
2532         break;;
2533     * )
2534         break;;
2535   esac
2536 done
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2542 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2543 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2544 See \`config.log' for more details." >&5
2545 echo "$as_me: error: C compiler cannot create executables
2546 See \`config.log' for more details." >&2;}
2547    { (exit 77); exit 77; }; }; }
2548 fi
2549
2550 ac_exeext=$ac_cv_exeext
2551 echo "$as_me:$LINENO: result: $ac_file" >&5
2552 echo "${ECHO_T}$ac_file" >&6
2553
2554 # Check the compiler produces executables we can run.  If not, either
2555 # the compiler is broken, or we cross compile.
2556 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2557 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2558 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2559 # If not cross compiling, check that we can run a simple program.
2560 if test "$cross_compiling" != yes; then
2561   if { ac_try='./$ac_file'
2562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; }; then
2567     cross_compiling=no
2568   else
2569     if test "$cross_compiling" = maybe; then
2570         cross_compiling=yes
2571     else
2572         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2573 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2574 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2575 If you meant to cross compile, use \`--host'.
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: cannot run C compiled programs.
2578 If you meant to cross compile, use \`--host'.
2579 See \`config.log' for more details." >&2;}
2580    { (exit 1); exit 1; }; }; }
2581     fi
2582   fi
2583 fi
2584 echo "$as_me:$LINENO: result: yes" >&5
2585 echo "${ECHO_T}yes" >&6
2586
2587 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2588 ac_clean_files=$ac_clean_files_save
2589 # Check the compiler produces executables we can run.  If not, either
2590 # the compiler is broken, or we cross compile.
2591 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2592 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2593 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2594 echo "${ECHO_T}$cross_compiling" >&6
2595
2596 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2597 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2599   (eval $ac_link) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; then
2603   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2604 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2605 # work properly (i.e., refer to `conftest.exe'), while it won't with
2606 # `rm'.
2607 for ac_file in conftest.exe conftest conftest.*; do
2608   test -f "$ac_file" || continue
2609   case $ac_file in
2610     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2611     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2612           export ac_cv_exeext
2613           break;;
2614     * ) break;;
2615   esac
2616 done
2617 else
2618   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2619 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2623 See \`config.log' for more details." >&2;}
2624    { (exit 1); exit 1; }; }; }
2625 fi
2626
2627 rm -f conftest$ac_cv_exeext
2628 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2629 echo "${ECHO_T}$ac_cv_exeext" >&6
2630
2631 rm -f conftest.$ac_ext
2632 EXEEXT=$ac_cv_exeext
2633 ac_exeext=$EXEEXT
2634 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2635 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2636 if test "${ac_cv_objext+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645
2646 int
2647 main ()
2648 {
2649
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.o conftest.obj
2655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2656   (eval $ac_compile) 2>&5
2657   ac_status=$?
2658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659   (exit $ac_status); }; then
2660   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2661   case $ac_file in
2662     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2663     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2664        break;;
2665   esac
2666 done
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2672 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2673 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2674 See \`config.log' for more details." >&5
2675 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2676 See \`config.log' for more details." >&2;}
2677    { (exit 1); exit 1; }; }; }
2678 fi
2679
2680 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2681 fi
2682 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2683 echo "${ECHO_T}$ac_cv_objext" >&6
2684 OBJEXT=$ac_cv_objext
2685 ac_objext=$OBJEXT
2686 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2687 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2688 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2689   echo $ECHO_N "(cached) $ECHO_C" >&6
2690 else
2691   cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h.  */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h.  */
2697
2698 int
2699 main ()
2700 {
2701 #ifndef __GNUC__
2702        choke me
2703 #endif
2704
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 rm -f conftest.$ac_objext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2711   (eval $ac_compile) 2>conftest.er1
2712   ac_status=$?
2713   grep -v '^ *+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -z "$ac_c_werror_flag"
2719                          || test ! -s conftest.err'
2720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721   (eval $ac_try) 2>&5
2722   ac_status=$?
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); }; } &&
2725          { ac_try='test -s conftest.$ac_objext'
2726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727   (eval $ac_try) 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; }; then
2731   ac_compiler_gnu=yes
2732 else
2733   echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736 ac_compiler_gnu=no
2737 fi
2738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2740
2741 fi
2742 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2743 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2744 GCC=`test $ac_compiler_gnu = yes && echo yes`
2745 ac_test_CFLAGS=${CFLAGS+set}
2746 ac_save_CFLAGS=$CFLAGS
2747 CFLAGS="-g"
2748 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2749 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2750 if test "${ac_cv_prog_cc_g+set}" = set; then
2751   echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753   cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h.  */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h.  */
2759
2760 int
2761 main ()
2762 {
2763
2764   ;
2765   return 0;
2766 }
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770   (eval $ac_compile) 2>conftest.er1
2771   ac_status=$?
2772   grep -v '^ *+' conftest.er1 >conftest.err
2773   rm -f conftest.er1
2774   cat conftest.err >&5
2775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776   (exit $ac_status); } &&
2777          { ac_try='test -z "$ac_c_werror_flag"
2778                          || test ! -s conftest.err'
2779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; } &&
2784          { ac_try='test -s conftest.$ac_objext'
2785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; }; then
2790   ac_cv_prog_cc_g=yes
2791 else
2792   echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 ac_cv_prog_cc_g=no
2796 fi
2797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2798 fi
2799 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2800 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2801 if test "$ac_test_CFLAGS" = set; then
2802   CFLAGS=$ac_save_CFLAGS
2803 elif test $ac_cv_prog_cc_g = yes; then
2804   if test "$GCC" = yes; then
2805     CFLAGS="-g -O2"
2806   else
2807     CFLAGS="-g"
2808   fi
2809 else
2810   if test "$GCC" = yes; then
2811     CFLAGS="-O2"
2812   else
2813     CFLAGS=
2814   fi
2815 fi
2816 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2817 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2818 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   ac_cv_prog_cc_stdc=no
2822 ac_save_CC=$CC
2823 cat >conftest.$ac_ext <<_ACEOF
2824 /* confdefs.h.  */
2825 _ACEOF
2826 cat confdefs.h >>conftest.$ac_ext
2827 cat >>conftest.$ac_ext <<_ACEOF
2828 /* end confdefs.h.  */
2829 #include <stdarg.h>
2830 #include <stdio.h>
2831 #include <sys/types.h>
2832 #include <sys/stat.h>
2833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2834 struct buf { int x; };
2835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2836 static char *e (p, i)
2837      char **p;
2838      int i;
2839 {
2840   return p[i];
2841 }
2842 static char *f (char * (*g) (char **, int), char **p, ...)
2843 {
2844   char *s;
2845   va_list v;
2846   va_start (v,p);
2847   s = g (p, va_arg (v,int));
2848   va_end (v);
2849   return s;
2850 }
2851
2852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2853    function prototypes and stuff, but not '\xHH' hex character constants.
2854    These don't provoke an error unfortunately, instead are silently treated
2855    as 'x'.  The following induces an error, until -std1 is added to get
2856    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2857    array size at least.  It's necessary to write '\x00'==0 to get something
2858    that's true only with -std1.  */
2859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2860
2861 int test (int i, double x);
2862 struct s1 {int (*f) (int a);};
2863 struct s2 {int (*f) (double a);};
2864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2865 int argc;
2866 char **argv;
2867 int
2868 main ()
2869 {
2870 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2871   ;
2872   return 0;
2873 }
2874 _ACEOF
2875 # Don't try gcc -ansi; that turns off useful extensions and
2876 # breaks some systems' header files.
2877 # AIX                   -qlanglvl=ansi
2878 # Ultrix and OSF/1      -std1
2879 # HP-UX 10.20 and later -Ae
2880 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2881 # SVR4                  -Xc -D__EXTENSIONS__
2882 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2883 do
2884   CC="$ac_save_CC $ac_arg"
2885   rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2887   (eval $ac_compile) 2>conftest.er1
2888   ac_status=$?
2889   grep -v '^ *+' conftest.er1 >conftest.err
2890   rm -f conftest.er1
2891   cat conftest.err >&5
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); } &&
2894          { ac_try='test -z "$ac_c_werror_flag"
2895                          || test ! -s conftest.err'
2896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897   (eval $ac_try) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; } &&
2901          { ac_try='test -s conftest.$ac_objext'
2902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903   (eval $ac_try) 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }; }; then
2907   ac_cv_prog_cc_stdc=$ac_arg
2908 break
2909 else
2910   echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 fi
2914 rm -f conftest.err conftest.$ac_objext
2915 done
2916 rm -f conftest.$ac_ext conftest.$ac_objext
2917 CC=$ac_save_CC
2918
2919 fi
2920
2921 case "x$ac_cv_prog_cc_stdc" in
2922   x|xno)
2923     echo "$as_me:$LINENO: result: none needed" >&5
2924 echo "${ECHO_T}none needed" >&6 ;;
2925   *)
2926     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2927 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2928     CC="$CC $ac_cv_prog_cc_stdc" ;;
2929 esac
2930
2931 # Some people use a C++ compiler to compile C.  Since we use `exit',
2932 # in C++ we need to declare it.  In case someone uses the same compiler
2933 # for both compiling C and C++ we need to have the C++ compiler decide
2934 # the declaration of exit, since it's the most demanding environment.
2935 cat >conftest.$ac_ext <<_ACEOF
2936 #ifndef __cplusplus
2937   choke me
2938 #endif
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942   (eval $ac_compile) 2>conftest.er1
2943   ac_status=$?
2944   grep -v '^ *+' conftest.er1 >conftest.err
2945   rm -f conftest.er1
2946   cat conftest.err >&5
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); } &&
2949          { ac_try='test -z "$ac_c_werror_flag"
2950                          || test ! -s conftest.err'
2951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952   (eval $ac_try) 2>&5
2953   ac_status=$?
2954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955   (exit $ac_status); }; } &&
2956          { ac_try='test -s conftest.$ac_objext'
2957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958   (eval $ac_try) 2>&5
2959   ac_status=$?
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); }; }; then
2962   for ac_declaration in \
2963    '' \
2964    'extern "C" void std::exit (int) throw (); using std::exit;' \
2965    'extern "C" void std::exit (int); using std::exit;' \
2966    'extern "C" void exit (int) throw ();' \
2967    'extern "C" void exit (int);' \
2968    'void exit (int);'
2969 do
2970   cat >conftest.$ac_ext <<_ACEOF
2971 /* confdefs.h.  */
2972 _ACEOF
2973 cat confdefs.h >>conftest.$ac_ext
2974 cat >>conftest.$ac_ext <<_ACEOF
2975 /* end confdefs.h.  */
2976 $ac_declaration
2977 #include <stdlib.h>
2978 int
2979 main ()
2980 {
2981 exit (42);
2982   ;
2983   return 0;
2984 }
2985 _ACEOF
2986 rm -f conftest.$ac_objext
2987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2988   (eval $ac_compile) 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } &&
2995          { ac_try='test -z "$ac_c_werror_flag"
2996                          || test ! -s conftest.err'
2997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998   (eval $ac_try) 2>&5
2999   ac_status=$?
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); }; } &&
3002          { ac_try='test -s conftest.$ac_objext'
3003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004   (eval $ac_try) 2>&5
3005   ac_status=$?
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); }; }; then
3008   :
3009 else
3010   echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013 continue
3014 fi
3015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3016   cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h.  */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h.  */
3022 $ac_declaration
3023 int
3024 main ()
3025 {
3026 exit (42);
3027   ;
3028   return 0;
3029 }
3030 _ACEOF
3031 rm -f conftest.$ac_objext
3032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033   (eval $ac_compile) 2>conftest.er1
3034   ac_status=$?
3035   grep -v '^ *+' conftest.er1 >conftest.err
3036   rm -f conftest.er1
3037   cat conftest.err >&5
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); } &&
3040          { ac_try='test -z "$ac_c_werror_flag"
3041                          || test ! -s conftest.err'
3042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3043   (eval $ac_try) 2>&5
3044   ac_status=$?
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); }; } &&
3047          { ac_try='test -s conftest.$ac_objext'
3048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049   (eval $ac_try) 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); }; }; then
3053   break
3054 else
3055   echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058 fi
3059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3060 done
3061 rm -f conftest*
3062 if test -n "$ac_declaration"; then
3063   echo '#ifdef __cplusplus' >>confdefs.h
3064   echo $ac_declaration      >>confdefs.h
3065   echo '#endif'             >>confdefs.h
3066 fi
3067
3068 else
3069   echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072 fi
3073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3074 ac_ext=c
3075 ac_cpp='$CPP $CPPFLAGS'
3076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079 DEPDIR="${am__leading_dot}deps"
3080
3081           ac_config_commands="$ac_config_commands depfiles"
3082
3083
3084 am_make=${MAKE-make}
3085 cat > confinc << 'END'
3086 am__doit:
3087         @echo done
3088 .PHONY: am__doit
3089 END
3090 # If we don't find an include directive, just comment out the code.
3091 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3092 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3093 am__include="#"
3094 am__quote=
3095 _am_result=none
3096 # First try GNU make style include.
3097 echo "include confinc" > confmf
3098 # We grep out `Entering directory' and `Leaving directory'
3099 # messages which can occur if `w' ends up in MAKEFLAGS.
3100 # In particular we don't look at `^make:' because GNU make might
3101 # be invoked under some other name (usually "gmake"), in which
3102 # case it prints its new name instead of `make'.
3103 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3104    am__include=include
3105    am__quote=
3106    _am_result=GNU
3107 fi
3108 # Now try BSD make style include.
3109 if test "$am__include" = "#"; then
3110    echo '.include "confinc"' > confmf
3111    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3112       am__include=.include
3113       am__quote="\""
3114       _am_result=BSD
3115    fi
3116 fi
3117
3118
3119 echo "$as_me:$LINENO: result: $_am_result" >&5
3120 echo "${ECHO_T}$_am_result" >&6
3121 rm -f confinc confmf
3122
3123 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3124 if test "${enable_dependency_tracking+set}" = set; then
3125   enableval="$enable_dependency_tracking"
3126
3127 fi;
3128 if test "x$enable_dependency_tracking" != xno; then
3129   am_depcomp="$ac_aux_dir/depcomp"
3130   AMDEPBACKSLASH='\'
3131 fi
3132
3133
3134 if test "x$enable_dependency_tracking" != xno; then
3135   AMDEP_TRUE=
3136   AMDEP_FALSE='#'
3137 else
3138   AMDEP_TRUE='#'
3139   AMDEP_FALSE=
3140 fi
3141
3142
3143
3144
3145 depcc="$CC"   am_compiler_list=
3146
3147 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3148 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3149 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3153   # We make a subdir and do the tests there.  Otherwise we can end up
3154   # making bogus files that we don't know about and never remove.  For
3155   # instance it was reported that on HP-UX the gcc test will end up
3156   # making a dummy file named `D' -- because `-MD' means `put the output
3157   # in D'.
3158   mkdir conftest.dir
3159   # Copy depcomp to subdir because otherwise we won't find it if we're
3160   # using a relative directory.
3161   cp "$am_depcomp" conftest.dir
3162   cd conftest.dir
3163   # We will build objects and dependencies in a subdirectory because
3164   # it helps to detect inapplicable dependency modes.  For instance
3165   # both Tru64's cc and ICC support -MD to output dependencies as a
3166   # side effect of compilation, but ICC will put the dependencies in
3167   # the current directory while Tru64 will put them in the object
3168   # directory.
3169   mkdir sub
3170
3171   am_cv_CC_dependencies_compiler_type=none
3172   if test "$am_compiler_list" = ""; then
3173      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3174   fi
3175   for depmode in $am_compiler_list; do
3176     # Setup a source with many dependencies, because some compilers
3177     # like to wrap large dependency lists on column 80 (with \), and
3178     # we should not choose a depcomp mode which is confused by this.
3179     #
3180     # We need to recreate these files for each test, as the compiler may
3181     # overwrite some of them when testing with obscure command lines.
3182     # This happens at least with the AIX C compiler.
3183     : > sub/conftest.c
3184     for i in 1 2 3 4 5 6; do
3185       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3186       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3187       # Solaris 8's {/usr,}/bin/sh.
3188       touch sub/conftst$i.h
3189     done
3190     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3191
3192     case $depmode in
3193     nosideeffect)
3194       # after this tag, mechanisms are not by side-effect, so they'll
3195       # only be used when explicitly requested
3196       if test "x$enable_dependency_tracking" = xyes; then
3197         continue
3198       else
3199         break
3200       fi
3201       ;;
3202     none) break ;;
3203     esac
3204     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3205     # mode.  It turns out that the SunPro C++ compiler does not properly
3206     # handle `-M -o', and we need to detect this.
3207     if depmode=$depmode \
3208        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3209        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3210        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3211          >/dev/null 2>conftest.err &&
3212        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3213        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3214        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3215       # icc doesn't choke on unknown options, it will just issue warnings
3216       # or remarks (even with -Werror).  So we grep stderr for any message
3217       # that says an option was ignored or not supported.
3218       # When given -MP, icc 7.0 and 7.1 complain thusly:
3219       #   icc: Command line warning: ignoring option '-M'; no argument required
3220       # The diagnosis changed in icc 8.0:
3221       #   icc: Command line remark: option '-MP' not supported
3222       if (grep 'ignoring option' conftest.err ||
3223           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3224         am_cv_CC_dependencies_compiler_type=$depmode
3225         break
3226       fi
3227     fi
3228   done
3229
3230   cd ..
3231   rm -rf conftest.dir
3232 else
3233   am_cv_CC_dependencies_compiler_type=none
3234 fi
3235
3236 fi
3237 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3238 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3239 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3240
3241
3242
3243 if
3244   test "x$enable_dependency_tracking" != xno \
3245   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3246   am__fastdepCC_TRUE=
3247   am__fastdepCC_FALSE='#'
3248 else
3249   am__fastdepCC_TRUE='#'
3250   am__fastdepCC_FALSE=
3251 fi
3252
3253
3254
3255
3256
3257
3258 if test "x$GCC" != "xyes"; then
3259   { { echo "$as_me:$LINENO: error: libmudflap must be built with GCC" >&5
3260 echo "$as_me: error: libmudflap must be built with GCC" >&2;}
3261    { (exit 1); exit 1; }; }
3262 fi
3263 ac_ext=c
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3269 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3270 # On Suns, sometimes $CPP names a directory.
3271 if test -n "$CPP" && test -d "$CPP"; then
3272   CPP=
3273 fi
3274 if test -z "$CPP"; then
3275   if test "${ac_cv_prog_CPP+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278       # Double quotes because CPP needs to be expanded
3279     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3280     do
3281       ac_preproc_ok=false
3282 for ac_c_preproc_warn_flag in '' yes
3283 do
3284   # Use a header file that comes with gcc, so configuring glibc
3285   # with a fresh cross-compiler works.
3286   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3287   # <limits.h> exists even on freestanding compilers.
3288   # On the NeXT, cc -E runs the code through the compiler's parser,
3289   # not just through cpp. "Syntax error" is here to catch this case.
3290   cat >conftest.$ac_ext <<_ACEOF
3291 /* confdefs.h.  */
3292 _ACEOF
3293 cat confdefs.h >>conftest.$ac_ext
3294 cat >>conftest.$ac_ext <<_ACEOF
3295 /* end confdefs.h.  */
3296 #ifdef __STDC__
3297 # include <limits.h>
3298 #else
3299 # include <assert.h>
3300 #endif
3301                      Syntax error
3302 _ACEOF
3303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3305   ac_status=$?
3306   grep -v '^ *+' conftest.er1 >conftest.err
3307   rm -f conftest.er1
3308   cat conftest.err >&5
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); } >/dev/null; then
3311   if test -s conftest.err; then
3312     ac_cpp_err=$ac_c_preproc_warn_flag
3313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3314   else
3315     ac_cpp_err=
3316   fi
3317 else
3318   ac_cpp_err=yes
3319 fi
3320 if test -z "$ac_cpp_err"; then
3321   :
3322 else
3323   echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3325
3326   # Broken: fails on valid input.
3327 continue
3328 fi
3329 rm -f conftest.err conftest.$ac_ext
3330
3331   # OK, works on sane cases.  Now check whether non-existent headers
3332   # can be detected and how.
3333   cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h.  */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h.  */
3339 #include <ac_nonexistent.h>
3340 _ACEOF
3341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3343   ac_status=$?
3344   grep -v '^ *+' conftest.er1 >conftest.err
3345   rm -f conftest.er1
3346   cat conftest.err >&5
3347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348   (exit $ac_status); } >/dev/null; then
3349   if test -s conftest.err; then
3350     ac_cpp_err=$ac_c_preproc_warn_flag
3351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3352   else
3353     ac_cpp_err=
3354   fi
3355 else
3356   ac_cpp_err=yes
3357 fi
3358 if test -z "$ac_cpp_err"; then
3359   # Broken: success on invalid input.
3360 continue
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365   # Passes both tests.
3366 ac_preproc_ok=:
3367 break
3368 fi
3369 rm -f conftest.err conftest.$ac_ext
3370
3371 done
3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373 rm -f conftest.err conftest.$ac_ext
3374 if $ac_preproc_ok; then
3375   break
3376 fi
3377
3378     done
3379     ac_cv_prog_CPP=$CPP
3380
3381 fi
3382   CPP=$ac_cv_prog_CPP
3383 else
3384   ac_cv_prog_CPP=$CPP
3385 fi
3386 echo "$as_me:$LINENO: result: $CPP" >&5
3387 echo "${ECHO_T}$CPP" >&6
3388 ac_preproc_ok=false
3389 for ac_c_preproc_warn_flag in '' yes
3390 do
3391   # Use a header file that comes with gcc, so configuring glibc
3392   # with a fresh cross-compiler works.
3393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394   # <limits.h> exists even on freestanding compilers.
3395   # On the NeXT, cc -E runs the code through the compiler's parser,
3396   # not just through cpp. "Syntax error" is here to catch this case.
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #ifdef __STDC__
3404 # include <limits.h>
3405 #else
3406 # include <assert.h>
3407 #endif
3408                      Syntax error
3409 _ACEOF
3410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3411   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3412   ac_status=$?
3413   grep -v '^ *+' conftest.er1 >conftest.err
3414   rm -f conftest.er1
3415   cat conftest.err >&5
3416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417   (exit $ac_status); } >/dev/null; then
3418   if test -s conftest.err; then
3419     ac_cpp_err=$ac_c_preproc_warn_flag
3420     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3421   else
3422     ac_cpp_err=
3423   fi
3424 else
3425   ac_cpp_err=yes
3426 fi
3427 if test -z "$ac_cpp_err"; then
3428   :
3429 else
3430   echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433   # Broken: fails on valid input.
3434 continue
3435 fi
3436 rm -f conftest.err conftest.$ac_ext
3437
3438   # OK, works on sane cases.  Now check whether non-existent headers
3439   # can be detected and how.
3440   cat >conftest.$ac_ext <<_ACEOF
3441 /* confdefs.h.  */
3442 _ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h.  */
3446 #include <ac_nonexistent.h>
3447 _ACEOF
3448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3450   ac_status=$?
3451   grep -v '^ *+' conftest.er1 >conftest.err
3452   rm -f conftest.er1
3453   cat conftest.err >&5
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); } >/dev/null; then
3456   if test -s conftest.err; then
3457     ac_cpp_err=$ac_c_preproc_warn_flag
3458     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3459   else
3460     ac_cpp_err=
3461   fi
3462 else
3463   ac_cpp_err=yes
3464 fi
3465 if test -z "$ac_cpp_err"; then
3466   # Broken: success on invalid input.
3467 continue
3468 else
3469   echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472   # Passes both tests.
3473 ac_preproc_ok=:
3474 break
3475 fi
3476 rm -f conftest.err conftest.$ac_ext
3477
3478 done
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.err conftest.$ac_ext
3481 if $ac_preproc_ok; then
3482   :
3483 else
3484   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3485 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details." >&5
3488 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3489 See \`config.log' for more details." >&2;}
3490    { (exit 1); exit 1; }; }; }
3491 fi
3492
3493 ac_ext=c
3494 ac_cpp='$CPP $CPPFLAGS'
3495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3498
3499
3500 # Some hosts don't have dlsym(RTLD_NEXT, "symbol") for use in
3501 # symbol interposition.  We disable shared libraries for these.
3502 echo "$as_me:$LINENO: checking whether dlsym(RTLD_NEXT,...) is available" >&5
3503 echo $ECHO_N "checking whether dlsym(RTLD_NEXT,...) is available... $ECHO_C" >&6
3504
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h.  */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h.  */
3511
3512 #define _GNU_SOURCE
3513 #include <dlfcn.h>
3514
3515 int
3516 main ()
3517 {
3518 void *foo = dlsym (RTLD_NEXT, "exit");
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525   (eval $ac_compile) 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } &&
3532          { ac_try='test -z "$ac_c_werror_flag"
3533                          || test ! -s conftest.err'
3534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535   (eval $ac_try) 2>&5
3536   ac_status=$?
3537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538   (exit $ac_status); }; } &&
3539          { ac_try='test -s conftest.$ac_objext'
3540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541   (eval $ac_try) 2>&5
3542   ac_status=$?
3543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); }; }; then
3545   echo "$as_me:$LINENO: result: yes" >&5
3546 echo "${ECHO_T}yes" >&6
3547 else
3548   echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3550
3551 echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3553 enable_shared=no
3554 fi
3555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3556
3557
3558 echo "$as_me:$LINENO: checking for egrep" >&5
3559 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3560 if test "${ac_cv_prog_egrep+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3564     then ac_cv_prog_egrep='grep -E'
3565     else ac_cv_prog_egrep='egrep'
3566     fi
3567 fi
3568 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3569 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3570  EGREP=$ac_cv_prog_egrep
3571
3572
3573 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3574 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3575 if test "${ac_cv_header_stdc+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   cat >conftest.$ac_ext <<_ACEOF
3579 /* confdefs.h.  */
3580 _ACEOF
3581 cat confdefs.h >>conftest.$ac_ext
3582 cat >>conftest.$ac_ext <<_ACEOF
3583 /* end confdefs.h.  */
3584 #include <stdlib.h>
3585 #include <stdarg.h>
3586 #include <string.h>
3587 #include <float.h>
3588
3589 int
3590 main ()
3591 {
3592
3593   ;
3594   return 0;
3595 }
3596 _ACEOF
3597 rm -f conftest.$ac_objext
3598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599   (eval $ac_compile) 2>conftest.er1
3600   ac_status=$?
3601   grep -v '^ *+' conftest.er1 >conftest.err
3602   rm -f conftest.er1
3603   cat conftest.err >&5
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } &&
3606          { ac_try='test -z "$ac_c_werror_flag"
3607                          || test ! -s conftest.err'
3608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609   (eval $ac_try) 2>&5
3610   ac_status=$?
3611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); }; } &&
3613          { ac_try='test -s conftest.$ac_objext'
3614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615   (eval $ac_try) 2>&5
3616   ac_status=$?
3617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618   (exit $ac_status); }; }; then
3619   ac_cv_header_stdc=yes
3620 else
3621   echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 ac_cv_header_stdc=no
3625 fi
3626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627
3628 if test $ac_cv_header_stdc = yes; then
3629   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3630   cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h.  */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h.  */
3636 #include <string.h>
3637
3638 _ACEOF
3639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3640   $EGREP "memchr" >/dev/null 2>&1; then
3641   :
3642 else
3643   ac_cv_header_stdc=no
3644 fi
3645 rm -f conftest*
3646
3647 fi
3648
3649 if test $ac_cv_header_stdc = yes; then
3650   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 #include <stdlib.h>
3658
3659 _ACEOF
3660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3661   $EGREP "free" >/dev/null 2>&1; then
3662   :
3663 else
3664   ac_cv_header_stdc=no
3665 fi
3666 rm -f conftest*
3667
3668 fi
3669
3670 if test $ac_cv_header_stdc = yes; then
3671   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3672   if test "$cross_compiling" = yes; then
3673   :
3674 else
3675   cat >conftest.$ac_ext <<_ACEOF
3676 /* confdefs.h.  */
3677 _ACEOF
3678 cat confdefs.h >>conftest.$ac_ext
3679 cat >>conftest.$ac_ext <<_ACEOF
3680 /* end confdefs.h.  */
3681 #include <ctype.h>
3682 #if ((' ' & 0x0FF) == 0x020)
3683 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3684 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3685 #else
3686 # define ISLOWER(c) \
3687                    (('a' <= (c) && (c) <= 'i') \
3688                      || ('j' <= (c) && (c) <= 'r') \
3689                      || ('s' <= (c) && (c) <= 'z'))
3690 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3691 #endif
3692
3693 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3694 int
3695 main ()
3696 {
3697   int i;
3698   for (i = 0; i < 256; i++)
3699     if (XOR (islower (i), ISLOWER (i))
3700         || toupper (i) != TOUPPER (i))
3701       exit(2);
3702   exit (0);
3703 }
3704 _ACEOF
3705 rm -f conftest$ac_exeext
3706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3707   (eval $ac_link) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712   (eval $ac_try) 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); }; }; then
3716   :
3717 else
3718   echo "$as_me: program exited with status $ac_status" >&5
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 ( exit $ac_status )
3723 ac_cv_header_stdc=no
3724 fi
3725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3726 fi
3727 fi
3728 fi
3729 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3730 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3731 if test $ac_cv_header_stdc = yes; then
3732
3733 cat >>confdefs.h <<\_ACEOF
3734 #define STDC_HEADERS 1
3735 _ACEOF
3736
3737 fi
3738
3739 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3750                   inttypes.h stdint.h unistd.h
3751 do
3752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3753 echo "$as_me:$LINENO: checking for $ac_header" >&5
3754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3756   echo $ECHO_N "(cached) $ECHO_C" >&6
3757 else
3758   cat >conftest.$ac_ext <<_ACEOF
3759 /* confdefs.h.  */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h.  */
3764 $ac_includes_default
3765
3766 #include <$ac_header>
3767 _ACEOF
3768 rm -f conftest.$ac_objext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3770   (eval $ac_compile) 2>conftest.er1
3771   ac_status=$?
3772   grep -v '^ *+' conftest.er1 >conftest.err
3773   rm -f conftest.er1
3774   cat conftest.err >&5
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); } &&
3777          { ac_try='test -z "$ac_c_werror_flag"
3778                          || test ! -s conftest.err'
3779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780   (eval $ac_try) 2>&5
3781   ac_status=$?
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); }; } &&
3784          { ac_try='test -s conftest.$ac_objext'
3785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786   (eval $ac_try) 2>&5
3787   ac_status=$?
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); }; }; then
3790   eval "$as_ac_Header=yes"
3791 else
3792   echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795 eval "$as_ac_Header=no"
3796 fi
3797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 fi
3799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3802   cat >>confdefs.h <<_ACEOF
3803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3804 _ACEOF
3805
3806 fi
3807
3808 done
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830 for ac_header in stdint.h execinfo.h signal.h dlfcn.h dirent.h pwd.h grp.h \
3831   netdb.h sys/ipc.h sys/sem.h sys/shm.h sys/wait.h ctype.h mntent.h \
3832   sys/socket.h netinet/in.h arpa/inet.h dlfcn.h sys/mman.h
3833 do
3834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3836   echo "$as_me:$LINENO: checking for $ac_header" >&5
3837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3839   echo $ECHO_N "(cached) $ECHO_C" >&6
3840 fi
3841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3843 else
3844   # Is the header compilable?
3845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h.  */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h.  */
3853 $ac_includes_default
3854 #include <$ac_header>
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3858   (eval $ac_compile) 2>conftest.er1
3859   ac_status=$?
3860   grep -v '^ *+' conftest.er1 >conftest.err
3861   rm -f conftest.er1
3862   cat conftest.err >&5
3863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864   (exit $ac_status); } &&
3865          { ac_try='test -z "$ac_c_werror_flag"
3866                          || test ! -s conftest.err'
3867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3868   (eval $ac_try) 2>&5
3869   ac_status=$?
3870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); }; } &&
3872          { ac_try='test -s conftest.$ac_objext'
3873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874   (eval $ac_try) 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; }; then
3878   ac_header_compiler=yes
3879 else
3880   echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3882
3883 ac_header_compiler=no
3884 fi
3885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3887 echo "${ECHO_T}$ac_header_compiler" >&6
3888
3889 # Is the header present?
3890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3892 cat >conftest.$ac_ext <<_ACEOF
3893 /* confdefs.h.  */
3894 _ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h.  */
3898 #include <$ac_header>
3899 _ACEOF
3900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3901   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3902   ac_status=$?
3903   grep -v '^ *+' conftest.er1 >conftest.err
3904   rm -f conftest.er1
3905   cat conftest.err >&5
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); } >/dev/null; then
3908   if test -s conftest.err; then
3909     ac_cpp_err=$ac_c_preproc_warn_flag
3910     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3911   else
3912     ac_cpp_err=
3913   fi
3914 else
3915   ac_cpp_err=yes
3916 fi
3917 if test -z "$ac_cpp_err"; then
3918   ac_header_preproc=yes
3919 else
3920   echo "$as_me: failed program was:" >&5
3921 sed 's/^/| /' conftest.$ac_ext >&5
3922
3923   ac_header_preproc=no
3924 fi
3925 rm -f conftest.err conftest.$ac_ext
3926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3927 echo "${ECHO_T}$ac_header_preproc" >&6
3928
3929 # So?  What about this header?
3930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3931   yes:no: )
3932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3936     ac_header_preproc=yes
3937     ;;
3938   no:yes:* )
3939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3951     (
3952       cat <<\_ASBOX
3953 ## ------------------------------------- ##
3954 ## Report this to the libmudflap lists.  ##
3955 ## ------------------------------------- ##
3956 _ASBOX
3957     ) |
3958       sed "s/^/$as_me: WARNING:     /" >&2
3959     ;;
3960 esac
3961 echo "$as_me:$LINENO: checking for $ac_header" >&5
3962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964   echo $ECHO_N "(cached) $ECHO_C" >&6
3965 else
3966   eval "$as_ac_Header=\$ac_header_preproc"
3967 fi
3968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3970
3971 fi
3972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3973   cat >>confdefs.h <<_ACEOF
3974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3975 _ACEOF
3976
3977 fi
3978
3979 done
3980
3981
3982
3983
3984
3985
3986 for ac_func in backtrace backtrace_symbols gettimeofday signal
3987 do
3988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3989 echo "$as_me:$LINENO: checking for $ac_func" >&5
3990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3991 if eval "test \"\${$as_ac_var+set}\" = set"; then
3992   echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994   cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h.  */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h.  */
4000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4001    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4002 #define $ac_func innocuous_$ac_func
4003
4004 /* System header to define __stub macros and hopefully few prototypes,
4005     which can conflict with char $ac_func (); below.
4006     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4007     <limits.h> exists even on freestanding compilers.  */
4008
4009 #ifdef __STDC__
4010 # include <limits.h>
4011 #else
4012 # include <assert.h>
4013 #endif
4014
4015 #undef $ac_func
4016
4017 /* Override any gcc2 internal prototype to avoid an error.  */
4018 #ifdef __cplusplus
4019 extern "C"
4020 {
4021 #endif
4022 /* We use char because int might match the return type of a gcc2
4023    builtin and then its argument prototype would still apply.  */
4024 char $ac_func ();
4025 /* The GNU C library defines this for functions which it implements
4026     to always fail with ENOSYS.  Some functions are actually named
4027     something starting with __ and the normal name is an alias.  */
4028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4029 choke me
4030 #else
4031 char (*f) () = $ac_func;
4032 #endif
4033 #ifdef __cplusplus
4034 }
4035 #endif
4036
4037 int
4038 main ()
4039 {
4040 return f != $ac_func;
4041   ;
4042   return 0;
4043 }
4044 _ACEOF
4045 rm -f conftest.$ac_objext conftest$ac_exeext
4046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4047   (eval $ac_link) 2>conftest.er1
4048   ac_status=$?
4049   grep -v '^ *+' conftest.er1 >conftest.err
4050   rm -f conftest.er1
4051   cat conftest.err >&5
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); } &&
4054          { ac_try='test -z "$ac_c_werror_flag"
4055                          || test ! -s conftest.err'
4056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057   (eval $ac_try) 2>&5
4058   ac_status=$?
4059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); }; } &&
4061          { ac_try='test -s conftest$ac_exeext'
4062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063   (eval $ac_try) 2>&5
4064   ac_status=$?
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); }; }; then
4067   eval "$as_ac_var=yes"
4068 else
4069   echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4071
4072 eval "$as_ac_var=no"
4073 fi
4074 rm -f conftest.err conftest.$ac_objext \
4075       conftest$ac_exeext conftest.$ac_ext
4076 fi
4077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4079 if test `eval echo '${'$as_ac_var'}'` = yes; then
4080   cat >>confdefs.h <<_ACEOF
4081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4082 _ACEOF
4083
4084 fi
4085 done
4086
4087
4088
4089
4090
4091
4092 for ac_func in fopen64 fseeko64 ftello64 stat64 freopen64
4093 do
4094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4095 echo "$as_me:$LINENO: checking for $ac_func" >&5
4096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4097 if eval "test \"\${$as_ac_var+set}\" = set"; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100   cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h.  */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h.  */
4106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4108 #define $ac_func innocuous_$ac_func
4109
4110 /* System header to define __stub macros and hopefully few prototypes,
4111     which can conflict with char $ac_func (); below.
4112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113     <limits.h> exists even on freestanding compilers.  */
4114
4115 #ifdef __STDC__
4116 # include <limits.h>
4117 #else
4118 # include <assert.h>
4119 #endif
4120
4121 #undef $ac_func
4122
4123 /* Override any gcc2 internal prototype to avoid an error.  */
4124 #ifdef __cplusplus
4125 extern "C"
4126 {
4127 #endif
4128 /* We use char because int might match the return type of a gcc2
4129    builtin and then its argument prototype would still apply.  */
4130 char $ac_func ();
4131 /* The GNU C library defines this for functions which it implements
4132     to always fail with ENOSYS.  Some functions are actually named
4133     something starting with __ and the normal name is an alias.  */
4134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4135 choke me
4136 #else
4137 char (*f) () = $ac_func;
4138 #endif
4139 #ifdef __cplusplus
4140 }
4141 #endif
4142
4143 int
4144 main ()
4145 {
4146 return f != $ac_func;
4147   ;
4148   return 0;
4149 }
4150 _ACEOF
4151 rm -f conftest.$ac_objext conftest$ac_exeext
4152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4153   (eval $ac_link) 2>conftest.er1
4154   ac_status=$?
4155   grep -v '^ *+' conftest.er1 >conftest.err
4156   rm -f conftest.er1
4157   cat conftest.err >&5
4158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159   (exit $ac_status); } &&
4160          { ac_try='test -z "$ac_c_werror_flag"
4161                          || test ! -s conftest.err'
4162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163   (eval $ac_try) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; } &&
4167          { ac_try='test -s conftest$ac_exeext'
4168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169   (eval $ac_try) 2>&5
4170   ac_status=$?
4171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172   (exit $ac_status); }; }; then
4173   eval "$as_ac_var=yes"
4174 else
4175   echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4177
4178 eval "$as_ac_var=no"
4179 fi
4180 rm -f conftest.err conftest.$ac_objext \
4181       conftest$ac_exeext conftest.$ac_ext
4182 fi
4183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4185 if test `eval echo '${'$as_ac_var'}'` = yes; then
4186   cat >>confdefs.h <<_ACEOF
4187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4188 _ACEOF
4189
4190 fi
4191 done
4192
4193
4194
4195
4196
4197 for ac_func in setbuf setbuffer setlinebuf setvbuf
4198 do
4199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4200 echo "$as_me:$LINENO: checking for $ac_func" >&5
4201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4202 if eval "test \"\${$as_ac_var+set}\" = set"; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   cat >conftest.$ac_ext <<_ACEOF
4206 /* confdefs.h.  */
4207 _ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h.  */
4211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4212    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4213 #define $ac_func innocuous_$ac_func
4214
4215 /* System header to define __stub macros and hopefully few prototypes,
4216     which can conflict with char $ac_func (); below.
4217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4218     <limits.h> exists even on freestanding compilers.  */
4219
4220 #ifdef __STDC__
4221 # include <limits.h>
4222 #else
4223 # include <assert.h>
4224 #endif
4225
4226 #undef $ac_func
4227
4228 /* Override any gcc2 internal prototype to avoid an error.  */
4229 #ifdef __cplusplus
4230 extern "C"
4231 {
4232 #endif
4233 /* We use char because int might match the return type of a gcc2
4234    builtin and then its argument prototype would still apply.  */
4235 char $ac_func ();
4236 /* The GNU C library defines this for functions which it implements
4237     to always fail with ENOSYS.  Some functions are actually named
4238     something starting with __ and the normal name is an alias.  */
4239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4240 choke me
4241 #else
4242 char (*f) () = $ac_func;
4243 #endif
4244 #ifdef __cplusplus
4245 }
4246 #endif
4247
4248 int
4249 main ()
4250 {
4251 return f != $ac_func;
4252   ;
4253   return 0;
4254 }
4255 _ACEOF
4256 rm -f conftest.$ac_objext conftest$ac_exeext
4257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4258   (eval $ac_link) 2>conftest.er1
4259   ac_status=$?
4260   grep -v '^ *+' conftest.er1 >conftest.err
4261   rm -f conftest.er1
4262   cat conftest.err >&5
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); } &&
4265          { ac_try='test -z "$ac_c_werror_flag"
4266                          || test ! -s conftest.err'
4267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268   (eval $ac_try) 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }; } &&
4272          { ac_try='test -s conftest$ac_exeext'
4273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274   (eval $ac_try) 2>&5
4275   ac_status=$?
4276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277   (exit $ac_status); }; }; then
4278   eval "$as_ac_var=yes"
4279 else
4280   echo "$as_me: failed program was:" >&5
4281 sed 's/^/| /' conftest.$ac_ext >&5
4282
4283 eval "$as_ac_var=no"
4284 fi
4285 rm -f conftest.err conftest.$ac_objext \
4286       conftest$ac_exeext conftest.$ac_ext
4287 fi
4288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4289 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4290 if test `eval echo '${'$as_ac_var'}'` = yes; then
4291   cat >>confdefs.h <<_ACEOF
4292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4293 _ACEOF
4294
4295 fi
4296 done
4297
4298
4299
4300
4301
4302
4303 for ac_func in strnlen memrchr strncpy memmem sethostname
4304 do
4305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4306 echo "$as_me:$LINENO: checking for $ac_func" >&5
4307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4308 if eval "test \"\${$as_ac_var+set}\" = set"; then
4309   echo $ECHO_N "(cached) $ECHO_C" >&6
4310 else
4311   cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4318    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4319 #define $ac_func innocuous_$ac_func
4320
4321 /* System header to define __stub macros and hopefully few prototypes,
4322     which can conflict with char $ac_func (); below.
4323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4324     <limits.h> exists even on freestanding compilers.  */
4325
4326 #ifdef __STDC__
4327 # include <limits.h>
4328 #else
4329 # include <assert.h>
4330 #endif
4331
4332 #undef $ac_func
4333
4334 /* Override any gcc2 internal prototype to avoid an error.  */
4335 #ifdef __cplusplus
4336 extern "C"
4337 {
4338 #endif
4339 /* We use char because int might match the return type of a gcc2
4340    builtin and then its argument prototype would still apply.  */
4341 char $ac_func ();
4342 /* The GNU C library defines this for functions which it implements
4343     to always fail with ENOSYS.  Some functions are actually named
4344     something starting with __ and the normal name is an alias.  */
4345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4346 choke me
4347 #else
4348 char (*f) () = $ac_func;
4349 #endif
4350 #ifdef __cplusplus
4351 }
4352 #endif
4353
4354 int
4355 main ()
4356 {
4357 return f != $ac_func;
4358   ;
4359   return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext conftest$ac_exeext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364   (eval $ac_link) 2>conftest.er1
4365   ac_status=$?
4366   grep -v '^ *+' conftest.er1 >conftest.err
4367   rm -f conftest.er1
4368   cat conftest.err >&5
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); } &&
4371          { ac_try='test -z "$ac_c_werror_flag"
4372                          || test ! -s conftest.err'
4373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374   (eval $ac_try) 2>&5
4375   ac_status=$?
4376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377   (exit $ac_status); }; } &&
4378          { ac_try='test -s conftest$ac_exeext'
4379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380   (eval $ac_try) 2>&5
4381   ac_status=$?
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); }; }; then
4384   eval "$as_ac_var=yes"
4385 else
4386   echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4388
4389 eval "$as_ac_var=no"
4390 fi
4391 rm -f conftest.err conftest.$ac_objext \
4392       conftest$ac_exeext conftest.$ac_ext
4393 fi
4394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4396 if test `eval echo '${'$as_ac_var'}'` = yes; then
4397   cat >>confdefs.h <<_ACEOF
4398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4399 _ACEOF
4400
4401 fi
4402 done
4403
4404
4405
4406
4407 for ac_func in __ctype_b_loc __ctype_tolower_loc __ctype_toupper_loc
4408 do
4409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4410 echo "$as_me:$LINENO: checking for $ac_func" >&5
4411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4412 if eval "test \"\${$as_ac_var+set}\" = set"; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   cat >conftest.$ac_ext <<_ACEOF
4416 /* confdefs.h.  */
4417 _ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h.  */
4421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4423 #define $ac_func innocuous_$ac_func
4424
4425 /* System header to define __stub macros and hopefully few prototypes,
4426     which can conflict with char $ac_func (); below.
4427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428     <limits.h> exists even on freestanding compilers.  */
4429
4430 #ifdef __STDC__
4431 # include <limits.h>
4432 #else
4433 # include <assert.h>
4434 #endif
4435
4436 #undef $ac_func
4437
4438 /* Override any gcc2 internal prototype to avoid an error.  */
4439 #ifdef __cplusplus
4440 extern "C"
4441 {
4442 #endif
4443 /* We use char because int might match the return type of a gcc2
4444    builtin and then its argument prototype would still apply.  */
4445 char $ac_func ();
4446 /* The GNU C library defines this for functions which it implements
4447     to always fail with ENOSYS.  Some functions are actually named
4448     something starting with __ and the normal name is an alias.  */
4449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4450 choke me
4451 #else
4452 char (*f) () = $ac_func;
4453 #endif
4454 #ifdef __cplusplus
4455 }
4456 #endif
4457
4458 int
4459 main ()
4460 {
4461 return f != $ac_func;
4462   ;
4463   return 0;
4464 }
4465 _ACEOF
4466 rm -f conftest.$ac_objext conftest$ac_exeext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468   (eval $ac_link) 2>conftest.er1
4469   ac_status=$?
4470   grep -v '^ *+' conftest.er1 >conftest.err
4471   rm -f conftest.er1
4472   cat conftest.err >&5
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); } &&
4475          { ac_try='test -z "$ac_c_werror_flag"
4476                          || test ! -s conftest.err'
4477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478   (eval $ac_try) 2>&5
4479   ac_status=$?
4480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481   (exit $ac_status); }; } &&
4482          { ac_try='test -s conftest$ac_exeext'
4483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484   (eval $ac_try) 2>&5
4485   ac_status=$?
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); }; }; then
4488   eval "$as_ac_var=yes"
4489 else
4490   echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493 eval "$as_ac_var=no"
4494 fi
4495 rm -f conftest.err conftest.$ac_objext \
4496       conftest$ac_exeext conftest.$ac_ext
4497 fi
4498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4500 if test `eval echo '${'$as_ac_var'}'` = yes; then
4501   cat >>confdefs.h <<_ACEOF
4502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4503 _ACEOF
4504
4505 fi
4506 done
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516 for ac_func in getlogin cuserid getpwnam getpwuid getpwent getgrnam getgrgid getgrent
4517 do
4518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4519 echo "$as_me:$LINENO: checking for $ac_func" >&5
4520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_var+set}\" = set"; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524   cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4532 #define $ac_func innocuous_$ac_func
4533
4534 /* System header to define __stub macros and hopefully few prototypes,
4535     which can conflict with char $ac_func (); below.
4536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4537     <limits.h> exists even on freestanding compilers.  */
4538
4539 #ifdef __STDC__
4540 # include <limits.h>
4541 #else
4542 # include <assert.h>
4543 #endif
4544
4545 #undef $ac_func
4546
4547 /* Override any gcc2 internal prototype to avoid an error.  */
4548 #ifdef __cplusplus
4549 extern "C"
4550 {
4551 #endif
4552 /* We use char because int might match the return type of a gcc2
4553    builtin and then its argument prototype would still apply.  */
4554 char $ac_func ();
4555 /* The GNU C library defines this for functions which it implements
4556     to always fail with ENOSYS.  Some functions are actually named
4557     something starting with __ and the normal name is an alias.  */
4558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4559 choke me
4560 #else
4561 char (*f) () = $ac_func;
4562 #endif
4563 #ifdef __cplusplus
4564 }
4565 #endif
4566
4567 int
4568 main ()
4569 {
4570 return f != $ac_func;
4571   ;
4572   return 0;
4573 }
4574 _ACEOF
4575 rm -f conftest.$ac_objext conftest$ac_exeext
4576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4577   (eval $ac_link) 2>conftest.er1
4578   ac_status=$?
4579   grep -v '^ *+' conftest.er1 >conftest.err
4580   rm -f conftest.er1
4581   cat conftest.err >&5
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); } &&
4584          { ac_try='test -z "$ac_c_werror_flag"
4585                          || test ! -s conftest.err'
4586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4587   (eval $ac_try) 2>&5
4588   ac_status=$?
4589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590   (exit $ac_status); }; } &&
4591          { ac_try='test -s conftest$ac_exeext'
4592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593   (eval $ac_try) 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; }; then
4597   eval "$as_ac_var=yes"
4598 else
4599   echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602 eval "$as_ac_var=no"
4603 fi
4604 rm -f conftest.err conftest.$ac_objext \
4605       conftest$ac_exeext conftest.$ac_ext
4606 fi
4607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4609 if test `eval echo '${'$as_ac_var'}'` = yes; then
4610   cat >>confdefs.h <<_ACEOF
4611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4612 _ACEOF
4613
4614 fi
4615 done
4616
4617
4618
4619
4620
4621
4622 for ac_func in getlogin_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r
4623 do
4624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4625 echo "$as_me:$LINENO: checking for $ac_func" >&5
4626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4627 if eval "test \"\${$as_ac_var+set}\" = set"; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4637    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4638 #define $ac_func innocuous_$ac_func
4639
4640 /* System header to define __stub macros and hopefully few prototypes,
4641     which can conflict with char $ac_func (); below.
4642     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4643     <limits.h> exists even on freestanding compilers.  */
4644
4645 #ifdef __STDC__
4646 # include <limits.h>
4647 #else
4648 # include <assert.h>
4649 #endif
4650
4651 #undef $ac_func
4652
4653 /* Override any gcc2 internal prototype to avoid an error.  */
4654 #ifdef __cplusplus
4655 extern "C"
4656 {
4657 #endif
4658 /* We use char because int might match the return type of a gcc2
4659    builtin and then its argument prototype would still apply.  */
4660 char $ac_func ();
4661 /* The GNU C library defines this for functions which it implements
4662     to always fail with ENOSYS.  Some functions are actually named
4663     something starting with __ and the normal name is an alias.  */
4664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4665 choke me
4666 #else
4667 char (*f) () = $ac_func;
4668 #endif
4669 #ifdef __cplusplus
4670 }
4671 #endif
4672
4673 int
4674 main ()
4675 {
4676 return f != $ac_func;
4677   ;
4678   return 0;
4679 }
4680 _ACEOF
4681 rm -f conftest.$ac_objext conftest$ac_exeext
4682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4683   (eval $ac_link) 2>conftest.er1
4684   ac_status=$?
4685   grep -v '^ *+' conftest.er1 >conftest.err
4686   rm -f conftest.er1
4687   cat conftest.err >&5
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } &&
4690          { ac_try='test -z "$ac_c_werror_flag"
4691                          || test ! -s conftest.err'
4692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693   (eval $ac_try) 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; } &&
4697          { ac_try='test -s conftest$ac_exeext'
4698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699   (eval $ac_try) 2>&5
4700   ac_status=$?
4701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702   (exit $ac_status); }; }; then
4703   eval "$as_ac_var=yes"
4704 else
4705   echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4707
4708 eval "$as_ac_var=no"
4709 fi
4710 rm -f conftest.err conftest.$ac_objext \
4711       conftest$ac_exeext conftest.$ac_ext
4712 fi
4713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4715 if test `eval echo '${'$as_ac_var'}'` = yes; then
4716   cat >>confdefs.h <<_ACEOF
4717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4718 _ACEOF
4719
4720 fi
4721 done
4722
4723
4724
4725
4726
4727
4728 for ac_func in getservent getservbyname getservbyport getaddrinfo gai_strerror
4729 do
4730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4731 echo "$as_me:$LINENO: checking for $ac_func" >&5
4732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4733 if eval "test \"\${$as_ac_var+set}\" = set"; then
4734   echo $ECHO_N "(cached) $ECHO_C" >&6
4735 else
4736   cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h.  */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h.  */
4742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4744 #define $ac_func innocuous_$ac_func
4745
4746 /* System header to define __stub macros and hopefully few prototypes,
4747     which can conflict with char $ac_func (); below.
4748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4749     <limits.h> exists even on freestanding compilers.  */
4750
4751 #ifdef __STDC__
4752 # include <limits.h>
4753 #else
4754 # include <assert.h>
4755 #endif
4756
4757 #undef $ac_func
4758
4759 /* Override any gcc2 internal prototype to avoid an error.  */
4760 #ifdef __cplusplus
4761 extern "C"
4762 {
4763 #endif
4764 /* We use char because int might match the return type of a gcc2
4765    builtin and then its argument prototype would still apply.  */
4766 char $ac_func ();
4767 /* The GNU C library defines this for functions which it implements
4768     to always fail with ENOSYS.  Some functions are actually named
4769     something starting with __ and the normal name is an alias.  */
4770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4771 choke me
4772 #else
4773 char (*f) () = $ac_func;
4774 #endif
4775 #ifdef __cplusplus
4776 }
4777 #endif
4778
4779 int
4780 main ()
4781 {
4782 return f != $ac_func;
4783   ;
4784   return 0;
4785 }
4786 _ACEOF
4787 rm -f conftest.$ac_objext conftest$ac_exeext
4788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4789   (eval $ac_link) 2>conftest.er1
4790   ac_status=$?
4791   grep -v '^ *+' conftest.er1 >conftest.err
4792   rm -f conftest.er1
4793   cat conftest.err >&5
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); } &&
4796          { ac_try='test -z "$ac_c_werror_flag"
4797                          || test ! -s conftest.err'
4798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799   (eval $ac_try) 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; } &&
4803          { ac_try='test -s conftest$ac_exeext'
4804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805   (eval $ac_try) 2>&5
4806   ac_status=$?
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); }; }; then
4809   eval "$as_ac_var=yes"
4810 else
4811   echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 eval "$as_ac_var=no"
4815 fi
4816 rm -f conftest.err conftest.$ac_objext \
4817       conftest$ac_exeext conftest.$ac_ext
4818 fi
4819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4821 if test `eval echo '${'$as_ac_var'}'` = yes; then
4822   cat >>confdefs.h <<_ACEOF
4823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4824 _ACEOF
4825
4826 fi
4827 done
4828
4829
4830
4831
4832 for ac_func in getprotoent getprotobyname getprotobynumber
4833 do
4834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4835 echo "$as_me:$LINENO: checking for $ac_func" >&5
4836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4837 if eval "test \"\${$as_ac_var+set}\" = set"; then
4838   echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840   cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h.  */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h.  */
4846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4848 #define $ac_func innocuous_$ac_func
4849
4850 /* System header to define __stub macros and hopefully few prototypes,
4851     which can conflict with char $ac_func (); below.
4852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4853     <limits.h> exists even on freestanding compilers.  */
4854
4855 #ifdef __STDC__
4856 # include <limits.h>
4857 #else
4858 # include <assert.h>
4859 #endif
4860
4861 #undef $ac_func
4862
4863 /* Override any gcc2 internal prototype to avoid an error.  */
4864 #ifdef __cplusplus
4865 extern "C"
4866 {
4867 #endif
4868 /* We use char because int might match the return type of a gcc2
4869    builtin and then its argument prototype would still apply.  */
4870 char $ac_func ();
4871 /* The GNU C library defines this for functions which it implements
4872     to always fail with ENOSYS.  Some functions are actually named
4873     something starting with __ and the normal name is an alias.  */
4874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4875 choke me
4876 #else
4877 char (*f) () = $ac_func;
4878 #endif
4879 #ifdef __cplusplus
4880 }
4881 #endif
4882
4883 int
4884 main ()
4885 {
4886 return f != $ac_func;
4887   ;
4888   return 0;
4889 }
4890 _ACEOF
4891 rm -f conftest.$ac_objext conftest$ac_exeext
4892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4893   (eval $ac_link) 2>conftest.er1
4894   ac_status=$?
4895   grep -v '^ *+' conftest.er1 >conftest.err
4896   rm -f conftest.er1
4897   cat conftest.err >&5
4898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899   (exit $ac_status); } &&
4900          { ac_try='test -z "$ac_c_werror_flag"
4901                          || test ! -s conftest.err'
4902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903   (eval $ac_try) 2>&5
4904   ac_status=$?
4905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906   (exit $ac_status); }; } &&
4907          { ac_try='test -s conftest$ac_exeext'
4908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4909   (eval $ac_try) 2>&5
4910   ac_status=$?
4911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912   (exit $ac_status); }; }; then
4913   eval "$as_ac_var=yes"
4914 else
4915   echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4917
4918 eval "$as_ac_var=no"
4919 fi
4920 rm -f conftest.err conftest.$ac_objext \
4921       conftest$ac_exeext conftest.$ac_ext
4922 fi
4923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4925 if test `eval echo '${'$as_ac_var'}'` = yes; then
4926   cat >>confdefs.h <<_ACEOF
4927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4928 _ACEOF
4929
4930 fi
4931 done
4932
4933
4934
4935
4936 for ac_func in getmntent setmntent addmntent
4937 do
4938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4939 echo "$as_me:$LINENO: checking for $ac_func" >&5
4940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4941 if eval "test \"\${$as_ac_var+set}\" = set"; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   cat >conftest.$ac_ext <<_ACEOF
4945 /* confdefs.h.  */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h.  */
4950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4952 #define $ac_func innocuous_$ac_func
4953
4954 /* System header to define __stub macros and hopefully few prototypes,
4955     which can conflict with char $ac_func (); below.
4956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4957     <limits.h> exists even on freestanding compilers.  */
4958
4959 #ifdef __STDC__
4960 # include <limits.h>
4961 #else
4962 # include <assert.h>
4963 #endif
4964
4965 #undef $ac_func
4966
4967 /* Override any gcc2 internal prototype to avoid an error.  */
4968 #ifdef __cplusplus
4969 extern "C"
4970 {
4971 #endif
4972 /* We use char because int might match the return type of a gcc2
4973    builtin and then its argument prototype would still apply.  */
4974 char $ac_func ();
4975 /* The GNU C library defines this for functions which it implements
4976     to always fail with ENOSYS.  Some functions are actually named
4977     something starting with __ and the normal name is an alias.  */
4978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4979 choke me
4980 #else
4981 char (*f) () = $ac_func;
4982 #endif
4983 #ifdef __cplusplus
4984 }
4985 #endif
4986
4987 int
4988 main ()
4989 {
4990 return f != $ac_func;
4991   ;
4992   return 0;
4993 }
4994 _ACEOF
4995 rm -f conftest.$ac_objext conftest$ac_exeext
4996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4997   (eval $ac_link) 2>conftest.er1
4998   ac_status=$?
4999   grep -v '^ *+' conftest.er1 >conftest.err
5000   rm -f conftest.er1
5001   cat conftest.err >&5
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); } &&
5004          { ac_try='test -z "$ac_c_werror_flag"
5005                          || test ! -s conftest.err'
5006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007   (eval $ac_try) 2>&5
5008   ac_status=$?
5009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010   (exit $ac_status); }; } &&
5011          { ac_try='test -s conftest$ac_exeext'
5012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013   (eval $ac_try) 2>&5
5014   ac_status=$?
5015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016   (exit $ac_status); }; }; then
5017   eval "$as_ac_var=yes"
5018 else
5019   echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5021
5022 eval "$as_ac_var=no"
5023 fi
5024 rm -f conftest.err conftest.$ac_objext \
5025       conftest$ac_exeext conftest.$ac_ext
5026 fi
5027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5029 if test `eval echo '${'$as_ac_var'}'` = yes; then
5030   cat >>confdefs.h <<_ACEOF
5031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5032 _ACEOF
5033
5034 fi
5035 done
5036
5037
5038
5039
5040 for ac_func in inet_ntoa mmap munmap
5041 do
5042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5043 echo "$as_me:$LINENO: checking for $ac_func" >&5
5044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5045 if eval "test \"\${$as_ac_var+set}\" = set"; then
5046   echo $ECHO_N "(cached) $ECHO_C" >&6
5047 else
5048   cat >conftest.$ac_ext <<_ACEOF
5049 /* confdefs.h.  */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h.  */
5054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5056 #define $ac_func innocuous_$ac_func
5057
5058 /* System header to define __stub macros and hopefully few prototypes,
5059     which can conflict with char $ac_func (); below.
5060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5061     <limits.h> exists even on freestanding compilers.  */
5062
5063 #ifdef __STDC__
5064 # include <limits.h>
5065 #else
5066 # include <assert.h>
5067 #endif
5068
5069 #undef $ac_func
5070
5071 /* Override any gcc2 internal prototype to avoid an error.  */
5072 #ifdef __cplusplus
5073 extern "C"
5074 {
5075 #endif
5076 /* We use char because int might match the return type of a gcc2
5077    builtin and then its argument prototype would still apply.  */
5078 char $ac_func ();
5079 /* The GNU C library defines this for functions which it implements
5080     to always fail with ENOSYS.  Some functions are actually named
5081     something starting with __ and the normal name is an alias.  */
5082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5083 choke me
5084 #else
5085 char (*f) () = $ac_func;
5086 #endif
5087 #ifdef __cplusplus
5088 }
5089 #endif
5090
5091 int
5092 main ()
5093 {
5094 return f != $ac_func;
5095   ;
5096   return 0;
5097 }
5098 _ACEOF
5099 rm -f conftest.$ac_objext conftest$ac_exeext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5101   (eval $ac_link) 2>conftest.er1
5102   ac_status=$?
5103   grep -v '^ *+' conftest.er1 >conftest.err
5104   rm -f conftest.er1
5105   cat conftest.err >&5
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); } &&
5108          { ac_try='test -z "$ac_c_werror_flag"
5109                          || test ! -s conftest.err'
5110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111   (eval $ac_try) 2>&5
5112   ac_status=$?
5113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114   (exit $ac_status); }; } &&
5115          { ac_try='test -s conftest$ac_exeext'
5116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117   (eval $ac_try) 2>&5
5118   ac_status=$?
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); }; }; then
5121   eval "$as_ac_var=yes"
5122 else
5123   echo "$as_me: failed program was:" >&5
5124 sed 's/^/| /' conftest.$ac_ext >&5
5125
5126 eval "$as_ac_var=no"
5127 fi
5128 rm -f conftest.err conftest.$ac_objext \
5129       conftest$ac_exeext conftest.$ac_ext
5130 fi
5131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5133 if test `eval echo '${'$as_ac_var'}'` = yes; then
5134   cat >>confdefs.h <<_ACEOF
5135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5136 _ACEOF
5137
5138 fi
5139 done
5140
5141
5142 for ac_func in __libc_freeres
5143 do
5144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5145 echo "$as_me:$LINENO: checking for $ac_func" >&5
5146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5147 if eval "test \"\${$as_ac_var+set}\" = set"; then
5148   echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150   cat >conftest.$ac_ext <<_ACEOF
5151 /* confdefs.h.  */
5152 _ACEOF
5153 cat confdefs.h >>conftest.$ac_ext
5154 cat >>conftest.$ac_ext <<_ACEOF
5155 /* end confdefs.h.  */
5156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5158 #define $ac_func innocuous_$ac_func
5159
5160 /* System header to define __stub macros and hopefully few prototypes,
5161     which can conflict with char $ac_func (); below.
5162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5163     <limits.h> exists even on freestanding compilers.  */
5164
5165 #ifdef __STDC__
5166 # include <limits.h>
5167 #else
5168 # include <assert.h>
5169 #endif
5170
5171 #undef $ac_func
5172
5173 /* Override any gcc2 internal prototype to avoid an error.  */
5174 #ifdef __cplusplus
5175 extern "C"
5176 {
5177 #endif
5178 /* We use char because int might match the return type of a gcc2
5179    builtin and then its argument prototype would still apply.  */
5180 char $ac_func ();
5181 /* The GNU C library defines this for functions which it implements
5182     to always fail with ENOSYS.  Some functions are actually named
5183     something starting with __ and the normal name is an alias.  */
5184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5185 choke me
5186 #else
5187 char (*f) () = $ac_func;
5188 #endif
5189 #ifdef __cplusplus
5190 }
5191 #endif
5192
5193 int
5194 main ()
5195 {
5196 return f != $ac_func;
5197   ;
5198   return 0;
5199 }
5200 _ACEOF
5201 rm -f conftest.$ac_objext conftest$ac_exeext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5203   (eval $ac_link) 2>conftest.er1
5204   ac_status=$?
5205   grep -v '^ *+' conftest.er1 >conftest.err
5206   rm -f conftest.er1
5207   cat conftest.err >&5
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); } &&
5210          { ac_try='test -z "$ac_c_werror_flag"
5211                          || test ! -s conftest.err'
5212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5213   (eval $ac_try) 2>&5
5214   ac_status=$?
5215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }; } &&
5217          { ac_try='test -s conftest$ac_exeext'
5218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219   (eval $ac_try) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); }; }; then
5223   eval "$as_ac_var=yes"
5224 else
5225   echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5227
5228 eval "$as_ac_var=no"
5229 fi
5230 rm -f conftest.err conftest.$ac_objext \
5231       conftest$ac_exeext conftest.$ac_ext
5232 fi
5233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5234 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5235 if test `eval echo '${'$as_ac_var'}'` = yes; then
5236   cat >>confdefs.h <<_ACEOF
5237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5238 _ACEOF
5239
5240 fi
5241 done
5242
5243
5244 cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 #include <sys/types.h>
5251 #include <sys/ipc.h>
5252 #include <sys/sem.h>
5253 int
5254 main ()
5255 {
5256 union semun foo;
5257   ;
5258   return 0;
5259 }
5260 _ACEOF
5261 rm -f conftest.$ac_objext
5262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263   (eval $ac_compile) 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } &&
5270          { ac_try='test -z "$ac_c_werror_flag"
5271                          || test ! -s conftest.err'
5272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273   (eval $ac_try) 2>&5
5274   ac_status=$?
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); }; } &&
5277          { ac_try='test -s conftest.$ac_objext'
5278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279   (eval $ac_try) 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }; }; then
5283   mf_have_semun=1
5284 else
5285   echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 mf_have_semun=0
5289 fi
5290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5291 if test $mf_have_semun = 1
5292 then
5293
5294 cat >>confdefs.h <<\_ACEOF
5295 #define HAVE_UNION_SEMUN 1
5296 _ACEOF
5297
5298 fi
5299
5300
5301 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
5302 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
5303 cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h.  */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h.  */
5309 #define _POSIX_PII_SOCKET
5310 #include <sys/types.h>
5311 #include <sys/socket.h>
5312 int
5313 main ()
5314 {
5315 socklen_t x = 5;
5316   ;
5317   return 0;
5318 }
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322   (eval $ac_compile) 2>conftest.er1
5323   ac_status=$?
5324   grep -v '^ *+' conftest.er1 >conftest.err
5325   rm -f conftest.er1
5326   cat conftest.err >&5
5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); } &&
5329          { ac_try='test -z "$ac_c_werror_flag"
5330                          || test ! -s conftest.err'
5331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332   (eval $ac_try) 2>&5
5333   ac_status=$?
5334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335   (exit $ac_status); }; } &&
5336          { ac_try='test -s conftest.$ac_objext'
5337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338   (eval $ac_try) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); }; }; then
5342
5343 cat >>confdefs.h <<\_ACEOF
5344 #define HAVE_SOCKLEN_T 1
5345 _ACEOF
5346
5347    echo "$as_me:$LINENO: result: yes" >&5
5348 echo "${ECHO_T}yes" >&6
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6
5355 fi
5356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357
5358 enable_dlopen=yes
5359
5360
5361
5362 case `pwd` in
5363   *\ * | *\     *)
5364     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5365 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5366 esac
5367
5368
5369
5370 macro_version='2.2.6'
5371 macro_revision='1.3012'
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 ltmain="$ac_aux_dir/ltmain.sh"
5386
5387 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5388 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5389 if test "${lt_cv_path_SED+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392   # Loop through the user's path and test for sed and gsed.
5393 # Then use that list of sed's as ones to test for truncation.
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5396 do
5397   IFS=$as_save_IFS
5398   test -z "$as_dir" && as_dir=.
5399   for lt_ac_prog in sed gsed; do
5400     for ac_exec_ext in '' $ac_executable_extensions; do
5401       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5402         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5403       fi
5404     done
5405   done
5406 done
5407 IFS=$as_save_IFS
5408 lt_ac_max=0
5409 lt_ac_count=0
5410 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5411 # along with /bin/sed that truncates output.
5412 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5413   test ! -f $lt_ac_sed && continue
5414   cat /dev/null > conftest.in
5415   lt_ac_count=0
5416   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5417   # Check for GNU sed and select it if it is found.
5418   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5419     lt_cv_path_SED=$lt_ac_sed
5420     break
5421   fi
5422   while true; do
5423     cat conftest.in conftest.in >conftest.tmp
5424     mv conftest.tmp conftest.in
5425     cp conftest.in conftest.nl
5426     echo >>conftest.nl
5427     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5428     cmp -s conftest.out conftest.nl || break
5429     # 10000 chars as input seems more than enough
5430     test $lt_ac_count -gt 10 && break
5431     lt_ac_count=`expr $lt_ac_count + 1`
5432     if test $lt_ac_count -gt $lt_ac_max; then
5433       lt_ac_max=$lt_ac_count
5434       lt_cv_path_SED=$lt_ac_sed
5435     fi
5436   done
5437 done
5438
5439 fi
5440
5441 SED=$lt_cv_path_SED
5442
5443 echo "$as_me:$LINENO: result: $SED" >&5
5444 echo "${ECHO_T}$SED" >&6
5445
5446 test -z "$SED" && SED=sed
5447 Xsed="$SED -e 1s/^X//"
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 echo "$as_me:$LINENO: checking for fgrep" >&5
5460 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5461 if test "${ac_cv_prog_fgrep+set}" = set; then
5462   echo $ECHO_N "(cached) $ECHO_C" >&6
5463 else
5464   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5465     then ac_cv_prog_fgrep='grep -F'
5466     else ac_cv_prog_fgrep='fgrep'
5467     fi
5468 fi
5469 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5470 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5471  FGREP=$ac_cv_prog_fgrep
5472
5473
5474 test -z "$GREP" && GREP=grep
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5495 if test "${with_gnu_ld+set}" = set; then
5496   withval="$with_gnu_ld"
5497   test "$withval" = no || with_gnu_ld=yes
5498 else
5499   with_gnu_ld=no
5500 fi;
5501 ac_prog=ld
5502 if test "$GCC" = yes; then
5503   # Check if gcc -print-prog-name=ld gives a path.
5504   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5505 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5506   case $host in
5507   *-*-mingw*)
5508     # gcc leaves a trailing carriage return which upsets mingw
5509     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5510   *)
5511     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5512   esac
5513   case $ac_prog in
5514     # Accept absolute paths.
5515     [\\/]* | ?:[\\/]*)
5516       re_direlt='/[^/][^/]*/\.\./'
5517       # Canonicalize the pathname of ld
5518       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5519       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5520         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5521       done
5522       test -z "$LD" && LD="$ac_prog"
5523       ;;
5524   "")
5525     # If it fails, then pretend we aren't using GCC.
5526     ac_prog=ld
5527     ;;
5528   *)
5529     # If it is relative, then search for the first ld in PATH.
5530     with_gnu_ld=unknown
5531     ;;
5532   esac
5533 elif test "$with_gnu_ld" = yes; then
5534   echo "$as_me:$LINENO: checking for GNU ld" >&5
5535 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5536 else
5537   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5538 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5539 fi
5540 if test "${lt_cv_path_LD+set}" = set; then
5541   echo $ECHO_N "(cached) $ECHO_C" >&6
5542 else
5543   if test -z "$LD"; then
5544   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5545   for ac_dir in $PATH; do
5546     IFS="$lt_save_ifs"
5547     test -z "$ac_dir" && ac_dir=.
5548     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5549       lt_cv_path_LD="$ac_dir/$ac_prog"
5550       # Check to see if the program is GNU ld.  I'd rather use --version,
5551       # but apparently some variants of GNU ld only accept -v.
5552       # Break only if it was the GNU/non-GNU ld that we prefer.
5553       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5554       *GNU* | *'with BFD'*)
5555         test "$with_gnu_ld" != no && break
5556         ;;
5557       *)
5558         test "$with_gnu_ld" != yes && break
5559         ;;
5560       esac
5561     fi
5562   done
5563   IFS="$lt_save_ifs"
5564 else
5565   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5566 fi
5567 fi
5568
5569 LD="$lt_cv_path_LD"
5570 if test -n "$LD"; then
5571   echo "$as_me:$LINENO: result: $LD" >&5
5572 echo "${ECHO_T}$LD" >&6
5573 else
5574   echo "$as_me:$LINENO: result: no" >&5
5575 echo "${ECHO_T}no" >&6
5576 fi
5577 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5578 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5579    { (exit 1); exit 1; }; }
5580 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5581 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5582 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5586 case `$LD -v 2>&1 </dev/null` in
5587 *GNU* | *'with BFD'*)
5588   lt_cv_prog_gnu_ld=yes
5589   ;;
5590 *)
5591   lt_cv_prog_gnu_ld=no
5592   ;;
5593 esac
5594 fi
5595 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5596 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5597 with_gnu_ld=$lt_cv_prog_gnu_ld
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5608 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5609 if test "${lt_cv_path_NM+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612   if test -n "$NM"; then
5613   # Let the user override the test.
5614   lt_cv_path_NM="$NM"
5615 else
5616   lt_nm_to_check="${ac_tool_prefix}nm"
5617   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5618     lt_nm_to_check="$lt_nm_to_check nm"
5619   fi
5620   for lt_tmp_nm in $lt_nm_to_check; do
5621     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5622     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5623       IFS="$lt_save_ifs"
5624       test -z "$ac_dir" && ac_dir=.
5625       tmp_nm="$ac_dir/$lt_tmp_nm"
5626       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5627         # Check to see if the nm accepts a BSD-compat flag.
5628         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5629         #   nm: unknown option "B" ignored
5630         # Tru64's nm complains that /dev/null is an invalid object file
5631         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5632         */dev/null* | *'Invalid file or object type'*)
5633           lt_cv_path_NM="$tmp_nm -B"
5634           break
5635           ;;
5636         *)
5637           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5638           */dev/null*)
5639             lt_cv_path_NM="$tmp_nm -p"
5640             break
5641             ;;
5642           *)
5643             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5644             continue # so that we can try to find one that supports BSD flags
5645             ;;
5646           esac
5647           ;;
5648         esac
5649       fi
5650     done
5651     IFS="$lt_save_ifs"
5652   done
5653   : ${lt_cv_path_NM=no}
5654 fi
5655 fi
5656 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5657 echo "${ECHO_T}$lt_cv_path_NM" >&6
5658 if test "$lt_cv_path_NM" != "no"; then
5659   NM="$lt_cv_path_NM"
5660 else
5661   # Didn't find any BSD compatible name lister, look for dumpbin.
5662   if test -n "$ac_tool_prefix"; then
5663   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5664   do
5665     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5667 echo "$as_me:$LINENO: checking for $ac_word" >&5
5668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5669 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5670   echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672   if test -n "$DUMPBIN"; then
5673   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5677 do
5678   IFS=$as_save_IFS
5679   test -z "$as_dir" && as_dir=.
5680   for ac_exec_ext in '' $ac_executable_extensions; do
5681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684     break 2
5685   fi
5686 done
5687 done
5688
5689 fi
5690 fi
5691 DUMPBIN=$ac_cv_prog_DUMPBIN
5692 if test -n "$DUMPBIN"; then
5693   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5694 echo "${ECHO_T}$DUMPBIN" >&6
5695 else
5696   echo "$as_me:$LINENO: result: no" >&5
5697 echo "${ECHO_T}no" >&6
5698 fi
5699
5700     test -n "$DUMPBIN" && break
5701   done
5702 fi
5703 if test -z "$DUMPBIN"; then
5704   ac_ct_DUMPBIN=$DUMPBIN
5705   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5706 do
5707   # Extract the first word of "$ac_prog", so it can be a program name with args.
5708 set dummy $ac_prog; ac_word=$2
5709 echo "$as_me:$LINENO: checking for $ac_word" >&5
5710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5711 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5712   echo $ECHO_N "(cached) $ECHO_C" >&6
5713 else
5714   if test -n "$ac_ct_DUMPBIN"; then
5715   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720   IFS=$as_save_IFS
5721   test -z "$as_dir" && as_dir=.
5722   for ac_exec_ext in '' $ac_executable_extensions; do
5723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5724     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5726     break 2
5727   fi
5728 done
5729 done
5730
5731 fi
5732 fi
5733 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5734 if test -n "$ac_ct_DUMPBIN"; then
5735   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5736 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5737 else
5738   echo "$as_me:$LINENO: result: no" >&5
5739 echo "${ECHO_T}no" >&6
5740 fi
5741
5742   test -n "$ac_ct_DUMPBIN" && break
5743 done
5744 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5745
5746   DUMPBIN=$ac_ct_DUMPBIN
5747 fi
5748
5749
5750   if test "$DUMPBIN" != ":"; then
5751     NM="$DUMPBIN"
5752   fi
5753 fi
5754 test -z "$NM" && NM=nm
5755
5756
5757
5758
5759
5760
5761 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5762 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5763 if test "${lt_cv_nm_interface+set}" = set; then
5764   echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766   lt_cv_nm_interface="BSD nm"
5767   echo "int some_variable = 0;" > conftest.$ac_ext
5768   (eval echo "\"\$as_me:5768: $ac_compile\"" >&5)
5769   (eval "$ac_compile" 2>conftest.err)
5770   cat conftest.err >&5
5771   (eval echo "\"\$as_me:5771: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5772   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5773   cat conftest.err >&5
5774   (eval echo "\"\$as_me:5774: output\"" >&5)
5775   cat conftest.out >&5
5776   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5777     lt_cv_nm_interface="MS dumpbin"
5778   fi
5779   rm -f conftest*
5780 fi
5781 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5782 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5783
5784 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5785 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5786 LN_S=$as_ln_s
5787 if test "$LN_S" = "ln -s"; then
5788   echo "$as_me:$LINENO: result: yes" >&5
5789 echo "${ECHO_T}yes" >&6
5790 else
5791   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5792 echo "${ECHO_T}no, using $LN_S" >&6
5793 fi
5794
5795 # find the maximum length of command line arguments
5796 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5797 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5798 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5799   echo $ECHO_N "(cached) $ECHO_C" >&6
5800 else
5801     i=0
5802   teststring="ABCD"
5803
5804   case $build_os in
5805   msdosdjgpp*)
5806     # On DJGPP, this test can blow up pretty badly due to problems in libc
5807     # (any single argument exceeding 2000 bytes causes a buffer overrun
5808     # during glob expansion).  Even if it were fixed, the result of this
5809     # check would be larger than it should be.
5810     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5811     ;;
5812
5813   gnu*)
5814     # Under GNU Hurd, this test is not required because there is
5815     # no limit to the length of command line arguments.
5816     # Libtool will interpret -1 as no limit whatsoever
5817     lt_cv_sys_max_cmd_len=-1;
5818     ;;
5819
5820   cygwin* | mingw* | cegcc*)
5821     # On Win9x/ME, this test blows up -- it succeeds, but takes
5822     # about 5 minutes as the teststring grows exponentially.
5823     # Worse, since 9x/ME are not pre-emptively multitasking,
5824     # you end up with a "frozen" computer, even though with patience
5825     # the test eventually succeeds (with a max line length of 256k).
5826     # Instead, let's just punt: use the minimum linelength reported by
5827     # all of the supported platforms: 8192 (on NT/2K/XP).
5828     lt_cv_sys_max_cmd_len=8192;
5829     ;;
5830
5831   amigaos*)
5832     # On AmigaOS with pdksh, this test takes hours, literally.
5833     # So we just punt and use a minimum line length of 8192.
5834     lt_cv_sys_max_cmd_len=8192;
5835     ;;
5836
5837   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5838     # This has been around since 386BSD, at least.  Likely further.
5839     if test -x /sbin/sysctl; then
5840       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5841     elif test -x /usr/sbin/sysctl; then
5842       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5843     else
5844       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5845     fi
5846     # And add a safety zone
5847     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5848     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5849     ;;
5850
5851   interix*)
5852     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5853     lt_cv_sys_max_cmd_len=196608
5854     ;;
5855
5856   osf*)
5857     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5858     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5859     # nice to cause kernel panics so lets avoid the loop below.
5860     # First set a reasonable default.
5861     lt_cv_sys_max_cmd_len=16384
5862     #
5863     if test -x /sbin/sysconfig; then
5864       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5865         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5866       esac
5867     fi
5868     ;;
5869   sco3.2v5*)
5870     lt_cv_sys_max_cmd_len=102400
5871     ;;
5872   sysv5* | sco5v6* | sysv4.2uw2*)
5873     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5874     if test -n "$kargmax"; then
5875       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5876     else
5877       lt_cv_sys_max_cmd_len=32768
5878     fi
5879     ;;
5880   *)
5881     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5882     if test -n "$lt_cv_sys_max_cmd_len"; then
5883       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5884       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5885     else
5886       # Make teststring a little bigger before we do anything with it.
5887       # a 1K string should be a reasonable start.
5888       for i in 1 2 3 4 5 6 7 8 ; do
5889         teststring=$teststring$teststring
5890       done
5891       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5892       # If test is not a shell built-in, we'll probably end up computing a
5893       # maximum length that is only half of the actual maximum length, but
5894       # we can't tell.
5895       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5896                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5897               test $i != 17 # 1/2 MB should be enough
5898       do
5899         i=`expr $i + 1`
5900         teststring=$teststring$teststring
5901       done
5902       # Only check the string length outside the loop.
5903       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5904       teststring=
5905       # Add a significant safety factor because C++ compilers can tack on
5906       # massive amounts of additional arguments before passing them to the
5907       # linker.  It appears as though 1/2 is a usable value.
5908       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5909     fi
5910     ;;
5911   esac
5912
5913 fi
5914
5915 if test -n $lt_cv_sys_max_cmd_len ; then
5916   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5917 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5918 else
5919   echo "$as_me:$LINENO: result: none" >&5
5920 echo "${ECHO_T}none" >&6
5921 fi
5922 max_cmd_len=$lt_cv_sys_max_cmd_len
5923
5924
5925
5926
5927
5928
5929 : ${CP="cp -f"}
5930 : ${MV="mv -f"}
5931 : ${RM="rm -f"}
5932
5933 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5934 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5935 # Try some XSI features
5936 xsi_shell=no
5937 ( _lt_dummy="a/b/c"
5938   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5939       = c,a/b,, \
5940     && eval 'test $(( 1 + 1 )) -eq 2 \
5941     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5942   && xsi_shell=yes
5943 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5944 echo "${ECHO_T}$xsi_shell" >&6
5945
5946
5947 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5948 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5949 lt_shell_append=no
5950 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5951     >/dev/null 2>&1 \
5952   && lt_shell_append=yes
5953 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5954 echo "${ECHO_T}$lt_shell_append" >&6
5955
5956
5957 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5958   lt_unset=unset
5959 else
5960   lt_unset=false
5961 fi
5962
5963
5964
5965
5966
5967 # test EBCDIC or ASCII
5968 case `echo X|tr X '\101'` in
5969  A) # ASCII based system
5970     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5971   lt_SP2NL='tr \040 \012'
5972   lt_NL2SP='tr \015\012 \040\040'
5973   ;;
5974  *) # EBCDIC based system
5975   lt_SP2NL='tr \100 \n'
5976   lt_NL2SP='tr \r\n \100\100'
5977   ;;
5978 esac
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5989 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5990 if test "${lt_cv_ld_reload_flag+set}" = set; then
5991   echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993   lt_cv_ld_reload_flag='-r'
5994 fi
5995 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5996 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5997 reload_flag=$lt_cv_ld_reload_flag
5998 case $reload_flag in
5999 "" | " "*) ;;
6000 *) reload_flag=" $reload_flag" ;;
6001 esac
6002 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6003 case $host_os in
6004   darwin*)
6005     if test "$GCC" = yes; then
6006       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6007     else
6008       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6009     fi
6010     ;;
6011 esac
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021 if test -n "$ac_tool_prefix"; then
6022   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6023 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6024 echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6026 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6027   echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029   if test -n "$OBJDUMP"; then
6030   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035   IFS=$as_save_IFS
6036   test -z "$as_dir" && as_dir=.
6037   for ac_exec_ext in '' $ac_executable_extensions; do
6038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6039     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6041     break 2
6042   fi
6043 done
6044 done
6045
6046 fi
6047 fi
6048 OBJDUMP=$ac_cv_prog_OBJDUMP
6049 if test -n "$OBJDUMP"; then
6050   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6051 echo "${ECHO_T}$OBJDUMP" >&6
6052 else
6053   echo "$as_me:$LINENO: result: no" >&5
6054 echo "${ECHO_T}no" >&6
6055 fi
6056
6057 fi
6058 if test -z "$ac_cv_prog_OBJDUMP"; then
6059   ac_ct_OBJDUMP=$OBJDUMP
6060   # Extract the first word of "objdump", so it can be a program name with args.
6061 set dummy objdump; ac_word=$2
6062 echo "$as_me:$LINENO: checking for $ac_word" >&5
6063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6064 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6065   echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067   if test -n "$ac_ct_OBJDUMP"; then
6068   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073   IFS=$as_save_IFS
6074   test -z "$as_dir" && as_dir=.
6075   for ac_exec_ext in '' $ac_executable_extensions; do
6076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6079     break 2
6080   fi
6081 done
6082 done
6083
6084   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6085 fi
6086 fi
6087 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6088 if test -n "$ac_ct_OBJDUMP"; then
6089   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6090 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6091 else
6092   echo "$as_me:$LINENO: result: no" >&5
6093 echo "${ECHO_T}no" >&6
6094 fi
6095
6096   OBJDUMP=$ac_ct_OBJDUMP
6097 else
6098   OBJDUMP="$ac_cv_prog_OBJDUMP"
6099 fi
6100
6101 test -z "$OBJDUMP" && OBJDUMP=objdump
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6112 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6113 if test "${lt_cv_deplibs_check_method+set}" = set; then
6114   echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116   lt_cv_file_magic_cmd='$MAGIC_CMD'
6117 lt_cv_file_magic_test_file=
6118 lt_cv_deplibs_check_method='unknown'
6119 # Need to set the preceding variable on all platforms that support
6120 # interlibrary dependencies.
6121 # 'none' -- dependencies not supported.
6122 # `unknown' -- same as none, but documents that we really don't know.
6123 # 'pass_all' -- all dependencies passed with no checks.
6124 # 'test_compile' -- check by making test program.
6125 # 'file_magic [[regex]]' -- check by looking for files in library path
6126 # which responds to the $file_magic_cmd with a given extended regex.
6127 # If you have `file' or equivalent on your system and you're not sure
6128 # whether `pass_all' will *always* work, you probably want this one.
6129
6130 case $host_os in
6131 aix[4-9]*)
6132   lt_cv_deplibs_check_method=pass_all
6133   ;;
6134
6135 beos*)
6136   lt_cv_deplibs_check_method=pass_all
6137   ;;
6138
6139 bsdi[45]*)
6140   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6141   lt_cv_file_magic_cmd='/usr/bin/file -L'
6142   lt_cv_file_magic_test_file=/shlib/libc.so
6143   ;;
6144
6145 cygwin*)
6146   # func_win32_libid is a shell function defined in ltmain.sh
6147   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6148   lt_cv_file_magic_cmd='func_win32_libid'
6149   ;;
6150
6151 mingw* | pw32*)
6152   # Base MSYS/MinGW do not provide the 'file' command needed by
6153   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6154   # unless we find 'file', for example because we are cross-compiling.
6155   if ( file / ) >/dev/null 2>&1; then
6156     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6157     lt_cv_file_magic_cmd='func_win32_libid'
6158   else
6159     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6160     lt_cv_file_magic_cmd='$OBJDUMP -f'
6161   fi
6162   ;;
6163
6164 cegcc)
6165   # use the weaker test based on 'objdump'. See mingw*.
6166   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6167   lt_cv_file_magic_cmd='$OBJDUMP -f'
6168   ;;
6169
6170 darwin* | rhapsody*)
6171   lt_cv_deplibs_check_method=pass_all
6172   ;;
6173
6174 freebsd* | dragonfly*)
6175   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6176     case $host_cpu in
6177     i*86 )
6178       # Not sure whether the presence of OpenBSD here was a mistake.
6179       # Let's accept both of them until this is cleared up.
6180       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6181       lt_cv_file_magic_cmd=/usr/bin/file
6182       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6183       ;;
6184     esac
6185   else
6186     lt_cv_deplibs_check_method=pass_all
6187   fi
6188   ;;
6189
6190 gnu*)
6191   lt_cv_deplibs_check_method=pass_all
6192   ;;
6193
6194 hpux10.20* | hpux11*)
6195   lt_cv_file_magic_cmd=/usr/bin/file
6196   case $host_cpu in
6197   ia64*)
6198     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6199     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6200     ;;
6201   hppa*64*)
6202     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]'
6203     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6204     ;;
6205   *)
6206     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6207     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6208     ;;
6209   esac
6210   ;;
6211
6212 interix[3-9]*)
6213   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6214   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6215   ;;
6216
6217 irix5* | irix6* | nonstopux*)
6218   case $LD in
6219   *-32|*"-32 ") libmagic=32-bit;;
6220   *-n32|*"-n32 ") libmagic=N32;;
6221   *-64|*"-64 ") libmagic=64-bit;;
6222   *) libmagic=never-match;;
6223   esac
6224   lt_cv_deplibs_check_method=pass_all
6225   ;;
6226
6227 # This must be Linux ELF.
6228 linux* | k*bsd*-gnu)
6229   lt_cv_deplibs_check_method=pass_all
6230   ;;
6231
6232 netbsd*)
6233   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6234     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6235   else
6236     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6237   fi
6238   ;;
6239
6240 newos6*)
6241   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6242   lt_cv_file_magic_cmd=/usr/bin/file
6243   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6244   ;;
6245
6246 *nto* | *qnx*)
6247   lt_cv_deplibs_check_method=pass_all
6248   ;;
6249
6250 openbsd*)
6251   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6252     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6253   else
6254     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6255   fi
6256   ;;
6257
6258 osf3* | osf4* | osf5*)
6259   lt_cv_deplibs_check_method=pass_all
6260   ;;
6261
6262 rdos*)
6263   lt_cv_deplibs_check_method=pass_all
6264   ;;
6265
6266 solaris*)
6267   lt_cv_deplibs_check_method=pass_all
6268   ;;
6269
6270 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6271   lt_cv_deplibs_check_method=pass_all
6272   ;;
6273
6274 sysv4 | sysv4.3*)
6275   case $host_vendor in
6276   motorola)
6277     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]'
6278     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6279     ;;
6280   ncr)
6281     lt_cv_deplibs_check_method=pass_all
6282     ;;
6283   sequent)
6284     lt_cv_file_magic_cmd='/bin/file'
6285     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6286     ;;
6287   sni)
6288     lt_cv_file_magic_cmd='/bin/file'
6289     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6290     lt_cv_file_magic_test_file=/lib/libc.so
6291     ;;
6292   siemens)
6293     lt_cv_deplibs_check_method=pass_all
6294     ;;
6295   pc)
6296     lt_cv_deplibs_check_method=pass_all
6297     ;;
6298   esac
6299   ;;
6300
6301 tpf*)
6302   lt_cv_deplibs_check_method=pass_all
6303   ;;
6304 esac
6305
6306 fi
6307 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6308 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6309 file_magic_cmd=$lt_cv_file_magic_cmd
6310 deplibs_check_method=$lt_cv_deplibs_check_method
6311 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324 if test -n "$ac_tool_prefix"; then
6325   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6326 set dummy ${ac_tool_prefix}ar; ac_word=$2
6327 echo "$as_me:$LINENO: checking for $ac_word" >&5
6328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6329 if test "${ac_cv_prog_AR+set}" = set; then
6330   echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332   if test -n "$AR"; then
6333   ac_cv_prog_AR="$AR" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338   IFS=$as_save_IFS
6339   test -z "$as_dir" && as_dir=.
6340   for ac_exec_ext in '' $ac_executable_extensions; do
6341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342     ac_cv_prog_AR="${ac_tool_prefix}ar"
6343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344     break 2
6345   fi
6346 done
6347 done
6348
6349 fi
6350 fi
6351 AR=$ac_cv_prog_AR
6352 if test -n "$AR"; then
6353   echo "$as_me:$LINENO: result: $AR" >&5
6354 echo "${ECHO_T}$AR" >&6
6355 else
6356   echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6
6358 fi
6359
6360 fi
6361 if test -z "$ac_cv_prog_AR"; then
6362   ac_ct_AR=$AR
6363   # Extract the first word of "ar", so it can be a program name with args.
6364 set dummy ar; ac_word=$2
6365 echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6367 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6368   echo $ECHO_N "(cached) $ECHO_C" >&6
6369 else
6370   if test -n "$ac_ct_AR"; then
6371   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6372 else
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374 for as_dir in $PATH
6375 do
6376   IFS=$as_save_IFS
6377   test -z "$as_dir" && as_dir=.
6378   for ac_exec_ext in '' $ac_executable_extensions; do
6379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380     ac_cv_prog_ac_ct_AR="ar"
6381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382     break 2
6383   fi
6384 done
6385 done
6386
6387   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6388 fi
6389 fi
6390 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6391 if test -n "$ac_ct_AR"; then
6392   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6393 echo "${ECHO_T}$ac_ct_AR" >&6
6394 else
6395   echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6
6397 fi
6398
6399   AR=$ac_ct_AR
6400 else
6401   AR="$ac_cv_prog_AR"
6402 fi
6403
6404 test -z "$AR" && AR=ar
6405 test -z "$AR_FLAGS" && AR_FLAGS=cru
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417 if test -n "$ac_tool_prefix"; then
6418   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6419 set dummy ${ac_tool_prefix}strip; ac_word=$2
6420 echo "$as_me:$LINENO: checking for $ac_word" >&5
6421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6422 if test "${ac_cv_prog_STRIP+set}" = set; then
6423   echo $ECHO_N "(cached) $ECHO_C" >&6
6424 else
6425   if test -n "$STRIP"; then
6426   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6427 else
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6430 do
6431   IFS=$as_save_IFS
6432   test -z "$as_dir" && as_dir=.
6433   for ac_exec_ext in '' $ac_executable_extensions; do
6434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437     break 2
6438   fi
6439 done
6440 done
6441
6442 fi
6443 fi
6444 STRIP=$ac_cv_prog_STRIP
6445 if test -n "$STRIP"; then
6446   echo "$as_me:$LINENO: result: $STRIP" >&5
6447 echo "${ECHO_T}$STRIP" >&6
6448 else
6449   echo "$as_me:$LINENO: result: no" >&5
6450 echo "${ECHO_T}no" >&6
6451 fi
6452
6453 fi
6454 if test -z "$ac_cv_prog_STRIP"; then
6455   ac_ct_STRIP=$STRIP
6456   # Extract the first word of "strip", so it can be a program name with args.
6457 set dummy strip; ac_word=$2
6458 echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6460 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6461   echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463   if test -n "$ac_ct_STRIP"; then
6464   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471   for ac_exec_ext in '' $ac_executable_extensions; do
6472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473     ac_cv_prog_ac_ct_STRIP="strip"
6474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475     break 2
6476   fi
6477 done
6478 done
6479
6480   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6481 fi
6482 fi
6483 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6484 if test -n "$ac_ct_STRIP"; then
6485   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6486 echo "${ECHO_T}$ac_ct_STRIP" >&6
6487 else
6488   echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6
6490 fi
6491
6492   STRIP=$ac_ct_STRIP
6493 else
6494   STRIP="$ac_cv_prog_STRIP"
6495 fi
6496
6497 test -z "$STRIP" && STRIP=:
6498
6499
6500
6501
6502
6503
6504 if test -n "$ac_tool_prefix"; then
6505   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6506 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6507 echo "$as_me:$LINENO: checking for $ac_word" >&5
6508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6509 if test "${ac_cv_prog_RANLIB+set}" = set; then
6510   echo $ECHO_N "(cached) $ECHO_C" >&6
6511 else
6512   if test -n "$RANLIB"; then
6513   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518   IFS=$as_save_IFS
6519   test -z "$as_dir" && as_dir=.
6520   for ac_exec_ext in '' $ac_executable_extensions; do
6521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524     break 2
6525   fi
6526 done
6527 done
6528
6529 fi
6530 fi
6531 RANLIB=$ac_cv_prog_RANLIB
6532 if test -n "$RANLIB"; then
6533   echo "$as_me:$LINENO: result: $RANLIB" >&5
6534 echo "${ECHO_T}$RANLIB" >&6
6535 else
6536   echo "$as_me:$LINENO: result: no" >&5
6537 echo "${ECHO_T}no" >&6
6538 fi
6539
6540 fi
6541 if test -z "$ac_cv_prog_RANLIB"; then
6542   ac_ct_RANLIB=$RANLIB
6543   # Extract the first word of "ranlib", so it can be a program name with args.
6544 set dummy ranlib; ac_word=$2
6545 echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6547 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   if test -n "$ac_ct_RANLIB"; then
6551   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556   IFS=$as_save_IFS
6557   test -z "$as_dir" && as_dir=.
6558   for ac_exec_ext in '' $ac_executable_extensions; do
6559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6560     ac_cv_prog_ac_ct_RANLIB="ranlib"
6561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6562     break 2
6563   fi
6564 done
6565 done
6566
6567   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6568 fi
6569 fi
6570 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6571 if test -n "$ac_ct_RANLIB"; then
6572   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6573 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6574 else
6575   echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6
6577 fi
6578
6579   RANLIB=$ac_ct_RANLIB
6580 else
6581   RANLIB="$ac_cv_prog_RANLIB"
6582 fi
6583
6584 test -z "$RANLIB" && RANLIB=:
6585
6586
6587
6588
6589
6590
6591 # Determine commands to create old-style static archives.
6592 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6593 old_postinstall_cmds='chmod 644 $oldlib'
6594 old_postuninstall_cmds=
6595
6596 if test -n "$RANLIB"; then
6597   case $host_os in
6598   openbsd*)
6599     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6600     ;;
6601   *)
6602     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6603     ;;
6604   esac
6605   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6606 fi
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641 # If no C compiler was specified, use CC.
6642 LTCC=${LTCC-"$CC"}
6643
6644 # If no C compiler flags were specified, use CFLAGS.
6645 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6646
6647 # Allow CC to be a program name with arguments.
6648 compiler=$CC
6649
6650
6651 # Check for command to grab the raw symbol name followed by C symbol from nm.
6652 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6653 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6654 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6655   echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657
6658 # These are sane defaults that work on at least a few old systems.
6659 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6660
6661 # Character class describing NM global symbol codes.
6662 symcode='[BCDEGRST]'
6663
6664 # Regexp to match symbols that can be accessed directly from C.
6665 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6666
6667 # Define system-specific variables.
6668 case $host_os in
6669 aix*)
6670   symcode='[BCDT]'
6671   ;;
6672 cygwin* | mingw* | pw32* | cegcc*)
6673   symcode='[ABCDGISTW]'
6674   ;;
6675 hpux*)
6676   if test "$host_cpu" = ia64; then
6677     symcode='[ABCDEGRST]'
6678   fi
6679   ;;
6680 irix* | nonstopux*)
6681   symcode='[BCDEGRST]'
6682   ;;
6683 osf*)
6684   symcode='[BCDEGQRST]'
6685   ;;
6686 solaris*)
6687   symcode='[BDRT]'
6688   ;;
6689 sco3.2v5*)
6690   symcode='[DT]'
6691   ;;
6692 sysv4.2uw2*)
6693   symcode='[DT]'
6694   ;;
6695 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6696   symcode='[ABDT]'
6697   ;;
6698 sysv4)
6699   symcode='[DFNSTU]'
6700   ;;
6701 esac
6702
6703 # If we're using GNU nm, then use its standard symbol codes.
6704 case `$NM -V 2>&1` in
6705 *GNU* | *'with BFD'*)
6706   symcode='[ABCDGIRSTW]' ;;
6707 esac
6708
6709 # Transform an extracted symbol line into a proper C declaration.
6710 # Some systems (esp. on ia64) link data and code symbols differently,
6711 # so use this general approach.
6712 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6713
6714 # Transform an extracted symbol line into symbol name and symbol address
6715 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6716 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6717
6718 # Handle CRLF in mingw tool chain
6719 opt_cr=
6720 case $build_os in
6721 mingw*)
6722   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6723   ;;
6724 esac
6725
6726 # Try without a prefix underscore, then with it.
6727 for ac_symprfx in "" "_"; do
6728
6729   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6730   symxfrm="\\1 $ac_symprfx\\2 \\2"
6731
6732   # Write the raw and C identifiers.
6733   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6734     # Fake it for dumpbin and say T for any non-static function
6735     # and D for any global variable.
6736     # Also find C++ and __fastcall symbols from MSVC++,
6737     # which start with @ or ?.
6738     lt_cv_sys_global_symbol_pipe="$AWK '"\
6739 "     {last_section=section; section=\$ 3};"\
6740 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6741 "     \$ 0!~/External *\|/{next};"\
6742 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6743 "     {if(hide[section]) next};"\
6744 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6745 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6746 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6747 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6748 "     ' prfx=^$ac_symprfx"
6749   else
6750     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6751   fi
6752
6753   # Check to see that the pipe works correctly.
6754   pipe_works=no
6755
6756   rm -f conftest*
6757   cat > conftest.$ac_ext <<_LT_EOF
6758 #ifdef __cplusplus
6759 extern "C" {
6760 #endif
6761 char nm_test_var;
6762 void nm_test_func(void);
6763 void nm_test_func(void){}
6764 #ifdef __cplusplus
6765 }
6766 #endif
6767 int main(){nm_test_var='a';nm_test_func();return(0);}
6768 _LT_EOF
6769
6770   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771   (eval $ac_compile) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); }; then
6775     # Now try to grab the symbols.
6776     nlist=conftest.nm
6777     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6778   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6779   ac_status=$?
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); } && test -s "$nlist"; then
6782       # Try sorting and uniquifying the output.
6783       if sort "$nlist" | uniq > "$nlist"T; then
6784         mv -f "$nlist"T "$nlist"
6785       else
6786         rm -f "$nlist"T
6787       fi
6788
6789       # Make sure that we snagged all the symbols we need.
6790       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6791         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6792           cat <<_LT_EOF > conftest.$ac_ext
6793 #ifdef __cplusplus
6794 extern "C" {
6795 #endif
6796
6797 _LT_EOF
6798           # Now generate the symbol file.
6799           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6800
6801           cat <<_LT_EOF >> conftest.$ac_ext
6802
6803 /* The mapping between symbol names and symbols.  */
6804 const struct {
6805   const char *name;
6806   void       *address;
6807 }
6808 lt__PROGRAM__LTX_preloaded_symbols[] =
6809 {
6810   { "@PROGRAM@", (void *) 0 },
6811 _LT_EOF
6812           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6813           cat <<\_LT_EOF >> conftest.$ac_ext
6814   {0, (void *) 0}
6815 };
6816
6817 /* This works around a problem in FreeBSD linker */
6818 #ifdef FREEBSD_WORKAROUND
6819 static const void *lt_preloaded_setup() {
6820   return lt__PROGRAM__LTX_preloaded_symbols;
6821 }
6822 #endif
6823
6824 #ifdef __cplusplus
6825 }
6826 #endif
6827 _LT_EOF
6828           # Now try linking the two files.
6829           mv conftest.$ac_objext conftstm.$ac_objext
6830           lt_save_LIBS="$LIBS"
6831           lt_save_CFLAGS="$CFLAGS"
6832           LIBS="conftstm.$ac_objext"
6833           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6834           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6835   (eval $ac_link) 2>&5
6836   ac_status=$?
6837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6838   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6839             pipe_works=yes
6840           fi
6841           LIBS="$lt_save_LIBS"
6842           CFLAGS="$lt_save_CFLAGS"
6843         else
6844           echo "cannot find nm_test_func in $nlist" >&5
6845         fi
6846       else
6847         echo "cannot find nm_test_var in $nlist" >&5
6848       fi
6849     else
6850       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6851     fi
6852   else
6853     echo "$progname: failed program was:" >&5
6854     cat conftest.$ac_ext >&5
6855   fi
6856   rm -rf conftest* conftst*
6857
6858   # Do not use the global_symbol_pipe unless it works.
6859   if test "$pipe_works" = yes; then
6860     break
6861   else
6862     lt_cv_sys_global_symbol_pipe=
6863   fi
6864 done
6865
6866 fi
6867
6868 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6869   lt_cv_sys_global_symbol_to_cdecl=
6870 fi
6871 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6872   echo "$as_me:$LINENO: result: failed" >&5
6873 echo "${ECHO_T}failed" >&6
6874 else
6875   echo "$as_me:$LINENO: result: ok" >&5
6876 echo "${ECHO_T}ok" >&6
6877 fi
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6901 if test "${enable_libtool_lock+set}" = set; then
6902   enableval="$enable_libtool_lock"
6903
6904 fi;
6905 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6906
6907 # Some flags need to be propagated to the compiler or linker for good
6908 # libtool support.
6909 case $host in
6910 ia64-*-hpux*)
6911   # Find out which ABI we are using.
6912   echo 'int i;' > conftest.$ac_ext
6913   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914   (eval $ac_compile) 2>&5
6915   ac_status=$?
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); }; then
6918     case `/usr/bin/file conftest.$ac_objext` in
6919       *ELF-32*)
6920         HPUX_IA64_MODE="32"
6921         ;;
6922       *ELF-64*)
6923         HPUX_IA64_MODE="64"
6924         ;;
6925     esac
6926   fi
6927   rm -rf conftest*
6928   ;;
6929 *-*-irix6*)
6930   # Find out which ABI we are using.
6931   echo '#line 6931 "configure"' > conftest.$ac_ext
6932   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6933   (eval $ac_compile) 2>&5
6934   ac_status=$?
6935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6936   (exit $ac_status); }; then
6937     if test "$lt_cv_prog_gnu_ld" = yes; then
6938       case `/usr/bin/file conftest.$ac_objext` in
6939         *32-bit*)
6940           LD="${LD-ld} -melf32bsmip"
6941           ;;
6942         *N32*)
6943           LD="${LD-ld} -melf32bmipn32"
6944           ;;
6945         *64-bit*)
6946           LD="${LD-ld} -melf64bmip"
6947         ;;
6948       esac
6949     else
6950       case `/usr/bin/file conftest.$ac_objext` in
6951         *32-bit*)
6952           LD="${LD-ld} -32"
6953           ;;
6954         *N32*)
6955           LD="${LD-ld} -n32"
6956           ;;
6957         *64-bit*)
6958           LD="${LD-ld} -64"
6959           ;;
6960       esac
6961     fi
6962   fi
6963   rm -rf conftest*
6964   ;;
6965
6966 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6967 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6968   # Find out which ABI we are using.
6969   echo 'int i;' > conftest.$ac_ext
6970   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971   (eval $ac_compile) 2>&5
6972   ac_status=$?
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); }; then
6975     case `/usr/bin/file conftest.o` in
6976       *32-bit*)
6977         case $host in
6978           x86_64-*kfreebsd*-gnu)
6979             LD="${LD-ld} -m elf_i386_fbsd"
6980             ;;
6981           x86_64-*linux*)
6982             LD="${LD-ld} -m elf_i386"
6983             ;;
6984           ppc64-*linux*|powerpc64-*linux*)
6985             LD="${LD-ld} -m elf32ppclinux"
6986             ;;
6987           s390x-*linux*)
6988             LD="${LD-ld} -m elf_s390"
6989             ;;
6990           sparc64-*linux*)
6991             LD="${LD-ld} -m elf32_sparc"
6992             ;;
6993         esac
6994         ;;
6995       *64-bit*)
6996         case $host in
6997           x86_64-*kfreebsd*-gnu)
6998             LD="${LD-ld} -m elf_x86_64_fbsd"
6999             ;;
7000           x86_64-*linux*)
7001             LD="${LD-ld} -m elf_x86_64"
7002             ;;
7003           ppc*-*linux*|powerpc*-*linux*)
7004             LD="${LD-ld} -m elf64ppc"
7005             ;;
7006           s390*-*linux*|s390*-*tpf*)
7007             LD="${LD-ld} -m elf64_s390"
7008             ;;
7009           sparc*-*linux*)
7010             LD="${LD-ld} -m elf64_sparc"
7011             ;;
7012         esac
7013         ;;
7014     esac
7015   fi
7016   rm -rf conftest*
7017   ;;
7018
7019 *-*-sco3.2v5*)
7020   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7021   SAVE_CFLAGS="$CFLAGS"
7022   CFLAGS="$CFLAGS -belf"
7023   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7024 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7025 if test "${lt_cv_cc_needs_belf+set}" = set; then
7026   echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028   ac_ext=c
7029 ac_cpp='$CPP $CPPFLAGS'
7030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7033
7034      cat >conftest.$ac_ext <<_ACEOF
7035 /* confdefs.h.  */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h.  */
7040
7041 int
7042 main ()
7043 {
7044
7045   ;
7046   return 0;
7047 }
7048 _ACEOF
7049 rm -f conftest.$ac_objext conftest$ac_exeext
7050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7051   (eval $ac_link) 2>conftest.er1
7052   ac_status=$?
7053   grep -v '^ *+' conftest.er1 >conftest.err
7054   rm -f conftest.er1
7055   cat conftest.err >&5
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); } &&
7058          { ac_try='test -z "$ac_c_werror_flag"
7059                          || test ! -s conftest.err'
7060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061   (eval $ac_try) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; } &&
7065          { ac_try='test -s conftest$ac_exeext'
7066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067   (eval $ac_try) 2>&5
7068   ac_status=$?
7069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); }; }; then
7071   lt_cv_cc_needs_belf=yes
7072 else
7073   echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7075
7076 lt_cv_cc_needs_belf=no
7077 fi
7078 rm -f conftest.err conftest.$ac_objext \
7079       conftest$ac_exeext conftest.$ac_ext
7080      ac_ext=c
7081 ac_cpp='$CPP $CPPFLAGS'
7082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7085
7086 fi
7087 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7088 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7089   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7090     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7091     CFLAGS="$SAVE_CFLAGS"
7092   fi
7093   ;;
7094 sparc*-*solaris*)
7095   # Find out which ABI we are using.
7096   echo 'int i;' > conftest.$ac_ext
7097   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7098   (eval $ac_compile) 2>&5
7099   ac_status=$?
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); }; then
7102     case `/usr/bin/file conftest.o` in
7103     *64-bit*)
7104       case $lt_cv_prog_gnu_ld in
7105       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7106       *)
7107         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7108           LD="${LD-ld} -64"
7109         fi
7110         ;;
7111       esac
7112       ;;
7113     esac
7114   fi
7115   rm -rf conftest*
7116   ;;
7117 esac
7118
7119 need_locks="$enable_libtool_lock"
7120
7121
7122   case $host_os in
7123     rhapsody* | darwin*)
7124     if test -n "$ac_tool_prefix"; then
7125   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7127 echo "$as_me:$LINENO: checking for $ac_word" >&5
7128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7129 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   if test -n "$DSYMUTIL"; then
7133   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148
7149 fi
7150 fi
7151 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7152 if test -n "$DSYMUTIL"; then
7153   echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7154 echo "${ECHO_T}$DSYMUTIL" >&6
7155 else
7156   echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6
7158 fi
7159
7160 fi
7161 if test -z "$ac_cv_prog_DSYMUTIL"; then
7162   ac_ct_DSYMUTIL=$DSYMUTIL
7163   # Extract the first word of "dsymutil", so it can be a program name with args.
7164 set dummy dsymutil; ac_word=$2
7165 echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7167 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170   if test -n "$ac_ct_DSYMUTIL"; then
7171   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178   for ac_exec_ext in '' $ac_executable_extensions; do
7179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185 done
7186
7187   test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7188 fi
7189 fi
7190 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7191 if test -n "$ac_ct_DSYMUTIL"; then
7192   echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7193 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7194 else
7195   echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6
7197 fi
7198
7199   DSYMUTIL=$ac_ct_DSYMUTIL
7200 else
7201   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7202 fi
7203
7204     if test -n "$ac_tool_prefix"; then
7205   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7206 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7207 echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7209 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7210   echo $ECHO_N "(cached) $ECHO_C" >&6
7211 else
7212   if test -n "$NMEDIT"; then
7213   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220   for ac_exec_ext in '' $ac_executable_extensions; do
7221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7222     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227 done
7228
7229 fi
7230 fi
7231 NMEDIT=$ac_cv_prog_NMEDIT
7232 if test -n "$NMEDIT"; then
7233   echo "$as_me:$LINENO: result: $NMEDIT" >&5
7234 echo "${ECHO_T}$NMEDIT" >&6
7235 else
7236   echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6
7238 fi
7239
7240 fi
7241 if test -z "$ac_cv_prog_NMEDIT"; then
7242   ac_ct_NMEDIT=$NMEDIT
7243   # Extract the first word of "nmedit", so it can be a program name with args.
7244 set dummy nmedit; ac_word=$2
7245 echo "$as_me:$LINENO: checking for $ac_word" >&5
7246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7247 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7248   echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7250   if test -n "$ac_ct_NMEDIT"; then
7251   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7252 else
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 for as_dir in $PATH
7255 do
7256   IFS=$as_save_IFS
7257   test -z "$as_dir" && as_dir=.
7258   for ac_exec_ext in '' $ac_executable_extensions; do
7259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7260     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7262     break 2
7263   fi
7264 done
7265 done
7266
7267   test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7268 fi
7269 fi
7270 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7271 if test -n "$ac_ct_NMEDIT"; then
7272   echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7273 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7274 else
7275   echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7277 fi
7278
7279   NMEDIT=$ac_ct_NMEDIT
7280 else
7281   NMEDIT="$ac_cv_prog_NMEDIT"
7282 fi
7283
7284     if test -n "$ac_tool_prefix"; then
7285   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7286 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7287 echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7289 if test "${ac_cv_prog_LIPO+set}" = set; then
7290   echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292   if test -n "$LIPO"; then
7293   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298   IFS=$as_save_IFS
7299   test -z "$as_dir" && as_dir=.
7300   for ac_exec_ext in '' $ac_executable_extensions; do
7301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304     break 2
7305   fi
7306 done
7307 done
7308
7309 fi
7310 fi
7311 LIPO=$ac_cv_prog_LIPO
7312 if test -n "$LIPO"; then
7313   echo "$as_me:$LINENO: result: $LIPO" >&5
7314 echo "${ECHO_T}$LIPO" >&6
7315 else
7316   echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6
7318 fi
7319
7320 fi
7321 if test -z "$ac_cv_prog_LIPO"; then
7322   ac_ct_LIPO=$LIPO
7323   # Extract the first word of "lipo", so it can be a program name with args.
7324 set dummy lipo; ac_word=$2
7325 echo "$as_me:$LINENO: checking for $ac_word" >&5
7326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7327 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7328   echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330   if test -n "$ac_ct_LIPO"; then
7331   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7332 else
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 for as_dir in $PATH
7335 do
7336   IFS=$as_save_IFS
7337   test -z "$as_dir" && as_dir=.
7338   for ac_exec_ext in '' $ac_executable_extensions; do
7339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340     ac_cv_prog_ac_ct_LIPO="lipo"
7341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7342     break 2
7343   fi
7344 done
7345 done
7346
7347   test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7348 fi
7349 fi
7350 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7351 if test -n "$ac_ct_LIPO"; then
7352   echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7353 echo "${ECHO_T}$ac_ct_LIPO" >&6
7354 else
7355   echo "$as_me:$LINENO: result: no" >&5
7356 echo "${ECHO_T}no" >&6
7357 fi
7358
7359   LIPO=$ac_ct_LIPO
7360 else
7361   LIPO="$ac_cv_prog_LIPO"
7362 fi
7363
7364     if test -n "$ac_tool_prefix"; then
7365   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7366 set dummy ${ac_tool_prefix}otool; ac_word=$2
7367 echo "$as_me:$LINENO: checking for $ac_word" >&5
7368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7369 if test "${ac_cv_prog_OTOOL+set}" = set; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372   if test -n "$OTOOL"; then
7373   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378   IFS=$as_save_IFS
7379   test -z "$as_dir" && as_dir=.
7380   for ac_exec_ext in '' $ac_executable_extensions; do
7381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7382     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7384     break 2
7385   fi
7386 done
7387 done
7388
7389 fi
7390 fi
7391 OTOOL=$ac_cv_prog_OTOOL
7392 if test -n "$OTOOL"; then
7393   echo "$as_me:$LINENO: result: $OTOOL" >&5
7394 echo "${ECHO_T}$OTOOL" >&6
7395 else
7396   echo "$as_me:$LINENO: result: no" >&5
7397 echo "${ECHO_T}no" >&6
7398 fi
7399
7400 fi
7401 if test -z "$ac_cv_prog_OTOOL"; then
7402   ac_ct_OTOOL=$OTOOL
7403   # Extract the first word of "otool", so it can be a program name with args.
7404 set dummy otool; ac_word=$2
7405 echo "$as_me:$LINENO: checking for $ac_word" >&5
7406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7407 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7408   echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410   if test -n "$ac_ct_OTOOL"; then
7411   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416   IFS=$as_save_IFS
7417   test -z "$as_dir" && as_dir=.
7418   for ac_exec_ext in '' $ac_executable_extensions; do
7419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420     ac_cv_prog_ac_ct_OTOOL="otool"
7421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422     break 2
7423   fi
7424 done
7425 done
7426
7427   test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7428 fi
7429 fi
7430 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7431 if test -n "$ac_ct_OTOOL"; then
7432   echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7433 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7434 else
7435   echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6
7437 fi
7438
7439   OTOOL=$ac_ct_OTOOL
7440 else
7441   OTOOL="$ac_cv_prog_OTOOL"
7442 fi
7443
7444     if test -n "$ac_tool_prefix"; then
7445   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7446 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7447 echo "$as_me:$LINENO: checking for $ac_word" >&5
7448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7449 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7450   echo $ECHO_N "(cached) $ECHO_C" >&6
7451 else
7452   if test -n "$OTOOL64"; then
7453   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7457 do
7458   IFS=$as_save_IFS
7459   test -z "$as_dir" && as_dir=.
7460   for ac_exec_ext in '' $ac_executable_extensions; do
7461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464     break 2
7465   fi
7466 done
7467 done
7468
7469 fi
7470 fi
7471 OTOOL64=$ac_cv_prog_OTOOL64
7472 if test -n "$OTOOL64"; then
7473   echo "$as_me:$LINENO: result: $OTOOL64" >&5
7474 echo "${ECHO_T}$OTOOL64" >&6
7475 else
7476   echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6
7478 fi
7479
7480 fi
7481 if test -z "$ac_cv_prog_OTOOL64"; then
7482   ac_ct_OTOOL64=$OTOOL64
7483   # Extract the first word of "otool64", so it can be a program name with args.
7484 set dummy otool64; ac_word=$2
7485 echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7487 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7488   echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490   if test -n "$ac_ct_OTOOL64"; then
7491   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7495 do
7496   IFS=$as_save_IFS
7497   test -z "$as_dir" && as_dir=.
7498   for ac_exec_ext in '' $ac_executable_extensions; do
7499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500     ac_cv_prog_ac_ct_OTOOL64="otool64"
7501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502     break 2
7503   fi
7504 done
7505 done
7506
7507   test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7508 fi
7509 fi
7510 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7511 if test -n "$ac_ct_OTOOL64"; then
7512   echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7513 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7514 else
7515   echo "$as_me:$LINENO: result: no" >&5
7516 echo "${ECHO_T}no" >&6
7517 fi
7518
7519   OTOOL64=$ac_ct_OTOOL64
7520 else
7521   OTOOL64="$ac_cv_prog_OTOOL64"
7522 fi
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550     echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7551 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7552 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7553   echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555   lt_cv_apple_cc_single_mod=no
7556       if test -z "${LT_MULTI_MODULE}"; then
7557         # By default we will add the -single_module flag. You can override
7558         # by either setting the environment variable LT_MULTI_MODULE
7559         # non-empty at configure time, or by adding -multi_module to the
7560         # link flags.
7561         rm -rf libconftest.dylib*
7562         echo "int foo(void){return 1;}" > conftest.c
7563         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7564 -dynamiclib -Wl,-single_module conftest.c" >&5
7565         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7566           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7567         _lt_result=$?
7568         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7569           lt_cv_apple_cc_single_mod=yes
7570         else
7571           cat conftest.err >&5
7572         fi
7573         rm -rf libconftest.dylib*
7574         rm -f conftest.*
7575       fi
7576 fi
7577 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7578 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7579     echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7580 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7581 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7582   echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584   lt_cv_ld_exported_symbols_list=no
7585       save_LDFLAGS=$LDFLAGS
7586       echo "_main" > conftest.sym
7587       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7588       cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h.  */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h.  */
7594
7595 int
7596 main ()
7597 {
7598
7599   ;
7600   return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605   (eval $ac_link) 2>conftest.er1
7606   ac_status=$?
7607   grep -v '^ *+' conftest.er1 >conftest.err
7608   rm -f conftest.er1
7609   cat conftest.err >&5
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); } &&
7612          { ac_try='test -z "$ac_c_werror_flag"
7613                          || test ! -s conftest.err'
7614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615   (eval $ac_try) 2>&5
7616   ac_status=$?
7617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618   (exit $ac_status); }; } &&
7619          { ac_try='test -s conftest$ac_exeext'
7620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621   (eval $ac_try) 2>&5
7622   ac_status=$?
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); }; }; then
7625   lt_cv_ld_exported_symbols_list=yes
7626 else
7627   echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7629
7630 lt_cv_ld_exported_symbols_list=no
7631 fi
7632 rm -f conftest.err conftest.$ac_objext \
7633       conftest$ac_exeext conftest.$ac_ext
7634         LDFLAGS="$save_LDFLAGS"
7635
7636 fi
7637 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7638 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7639     case $host_os in
7640     rhapsody* | darwin1.[012])
7641       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7642     darwin1.*)
7643       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7644     darwin*) # darwin 5.x on
7645       # if running on 10.5 or later, the deployment target defaults
7646       # to the OS version, if on x86, and 10.4, the deployment
7647       # target defaults to 10.4. Don't you love it?
7648       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7649         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7650           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7651         10.[012]*)
7652           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7653         10.*)
7654           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7655       esac
7656     ;;
7657   esac
7658     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7659       _lt_dar_single_mod='$single_module'
7660     fi
7661     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7662       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7663     else
7664       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7665     fi
7666     if test "$DSYMUTIL" != ":"; then
7667       _lt_dsymutil='~$DSYMUTIL $lib || :'
7668     else
7669       _lt_dsymutil=
7670     fi
7671     ;;
7672   esac
7673
7674
7675 for ac_header in dlfcn.h
7676 do
7677 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678 echo "$as_me:$LINENO: checking for $ac_header" >&5
7679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7681   echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683   cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h.  */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h.  */
7689 $ac_includes_default
7690
7691 #include <$ac_header>
7692 _ACEOF
7693 rm -f conftest.$ac_objext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7695   (eval $ac_compile) 2>conftest.er1
7696   ac_status=$?
7697   grep -v '^ *+' conftest.er1 >conftest.err
7698   rm -f conftest.er1
7699   cat conftest.err >&5
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); } &&
7702          { ac_try='test -z "$ac_c_werror_flag"
7703                          || test ! -s conftest.err'
7704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705   (eval $ac_try) 2>&5
7706   ac_status=$?
7707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708   (exit $ac_status); }; } &&
7709          { ac_try='test -s conftest.$ac_objext'
7710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7711   (eval $ac_try) 2>&5
7712   ac_status=$?
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); }; }; then
7715   eval "$as_ac_Header=yes"
7716 else
7717   echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7719
7720 eval "$as_ac_Header=no"
7721 fi
7722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7723 fi
7724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7727   cat >>confdefs.h <<_ACEOF
7728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7729 _ACEOF
7730
7731 fi
7732
7733 done
7734
7735
7736
7737 # Set options
7738
7739
7740
7741
7742   enable_win32_dll=no
7743
7744
7745             # Check whether --enable-shared or --disable-shared was given.
7746 if test "${enable_shared+set}" = set; then
7747   enableval="$enable_shared"
7748   p=${PACKAGE-default}
7749     case $enableval in
7750     yes) enable_shared=yes ;;
7751     no) enable_shared=no ;;
7752     *)
7753       enable_shared=no
7754       # Look at the argument we got.  We use all the common list separators.
7755       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7756       for pkg in $enableval; do
7757         IFS="$lt_save_ifs"
7758         if test "X$pkg" = "X$p"; then
7759           enable_shared=yes
7760         fi
7761       done
7762       IFS="$lt_save_ifs"
7763       ;;
7764     esac
7765 else
7766   enable_shared=yes
7767 fi;
7768
7769
7770
7771
7772
7773
7774
7775
7776   # Check whether --enable-static or --disable-static was given.
7777 if test "${enable_static+set}" = set; then
7778   enableval="$enable_static"
7779   p=${PACKAGE-default}
7780     case $enableval in
7781     yes) enable_static=yes ;;
7782     no) enable_static=no ;;
7783     *)
7784      enable_static=no
7785       # Look at the argument we got.  We use all the common list separators.
7786       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7787       for pkg in $enableval; do
7788         IFS="$lt_save_ifs"
7789         if test "X$pkg" = "X$p"; then
7790           enable_static=yes
7791         fi
7792       done
7793       IFS="$lt_save_ifs"
7794       ;;
7795     esac
7796 else
7797   enable_static=yes
7798 fi;
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808 # Check whether --with-pic or --without-pic was given.
7809 if test "${with_pic+set}" = set; then
7810   withval="$with_pic"
7811   pic_mode="$withval"
7812 else
7813   pic_mode=default
7814 fi;
7815
7816 test -z "$pic_mode" && pic_mode=default
7817
7818
7819
7820
7821
7822
7823
7824   # Check whether --enable-fast-install or --disable-fast-install was given.
7825 if test "${enable_fast_install+set}" = set; then
7826   enableval="$enable_fast_install"
7827   p=${PACKAGE-default}
7828     case $enableval in
7829     yes) enable_fast_install=yes ;;
7830     no) enable_fast_install=no ;;
7831     *)
7832       enable_fast_install=no
7833       # Look at the argument we got.  We use all the common list separators.
7834       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7835       for pkg in $enableval; do
7836         IFS="$lt_save_ifs"
7837         if test "X$pkg" = "X$p"; then
7838           enable_fast_install=yes
7839         fi
7840       done
7841       IFS="$lt_save_ifs"
7842       ;;
7843     esac
7844 else
7845   enable_fast_install=yes
7846 fi;
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857 # This can be used to rebuild libtool when needed
7858 LIBTOOL_DEPS="$ltmain"
7859
7860 # Always use our own libtool.
7861 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887 test -z "$LN_S" && LN_S="ln -s"
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902 if test -n "${ZSH_VERSION+set}" ; then
7903    setopt NO_GLOB_SUBST
7904 fi
7905
7906 echo "$as_me:$LINENO: checking for objdir" >&5
7907 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7908 if test "${lt_cv_objdir+set}" = set; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911   rm -f .libs 2>/dev/null
7912 mkdir .libs 2>/dev/null
7913 if test -d .libs; then
7914   lt_cv_objdir=.libs
7915 else
7916   # MS-DOS does not allow filenames that begin with a dot.
7917   lt_cv_objdir=_libs
7918 fi
7919 rmdir .libs 2>/dev/null
7920 fi
7921 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7922 echo "${ECHO_T}$lt_cv_objdir" >&6
7923 objdir=$lt_cv_objdir
7924
7925
7926
7927
7928
7929 cat >>confdefs.h <<_ACEOF
7930 #define LT_OBJDIR "$lt_cv_objdir/"
7931 _ACEOF
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949 case $host_os in
7950 aix3*)
7951   # AIX sometimes has problems with the GCC collect2 program.  For some
7952   # reason, if we set the COLLECT_NAMES environment variable, the problems
7953   # vanish in a puff of smoke.
7954   if test "X${COLLECT_NAMES+set}" != Xset; then
7955     COLLECT_NAMES=
7956     export COLLECT_NAMES
7957   fi
7958   ;;
7959 esac
7960
7961 # Sed substitution that helps us do robust quoting.  It backslashifies
7962 # metacharacters that are still active within double-quoted strings.
7963 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7964
7965 # Same as above, but do not quote variable references.
7966 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7967
7968 # Sed substitution to delay expansion of an escaped shell variable in a
7969 # double_quote_subst'ed string.
7970 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7971
7972 # Sed substitution to delay expansion of an escaped single quote.
7973 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7974
7975 # Sed substitution to avoid accidental globbing in evaled expressions
7976 no_glob_subst='s/\*/\\\*/g'
7977
7978 # Global variables:
7979 ofile=libtool
7980 can_build_shared=yes
7981
7982 # All known linkers require a `.a' archive for static linking (except MSVC,
7983 # which needs '.lib').
7984 libext=a
7985
7986 with_gnu_ld="$lt_cv_prog_gnu_ld"
7987
7988 old_CC="$CC"
7989 old_CFLAGS="$CFLAGS"
7990
7991 # Set sane defaults for various variables
7992 test -z "$CC" && CC=cc
7993 test -z "$LTCC" && LTCC=$CC
7994 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7995 test -z "$LD" && LD=ld
7996 test -z "$ac_objext" && ac_objext=o
7997
7998 for cc_temp in $compiler""; do
7999   case $cc_temp in
8000     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8001     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8002     \-*) ;;
8003     *) break;;
8004   esac
8005 done
8006 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8007
8008
8009 # Only perform the check for file, if the check method requires it
8010 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8011 case $deplibs_check_method in
8012 file_magic*)
8013   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8014     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8015 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8016 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019   case $MAGIC_CMD in
8020 [\\/*] |  ?:[\\/]*)
8021   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8022   ;;
8023 *)
8024   lt_save_MAGIC_CMD="$MAGIC_CMD"
8025   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8026   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8027   for ac_dir in $ac_dummy; do
8028     IFS="$lt_save_ifs"
8029     test -z "$ac_dir" && ac_dir=.
8030     if test -f $ac_dir/${ac_tool_prefix}file; then
8031       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8032       if test -n "$file_magic_test_file"; then
8033         case $deplibs_check_method in
8034         "file_magic "*)
8035           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8036           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8037           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8038             $EGREP "$file_magic_regex" > /dev/null; then
8039             :
8040           else
8041             cat <<_LT_EOF 1>&2
8042
8043 *** Warning: the command libtool uses to detect shared libraries,
8044 *** $file_magic_cmd, produces output that libtool cannot recognize.
8045 *** The result is that libtool may fail to recognize shared libraries
8046 *** as such.  This will affect the creation of libtool libraries that
8047 *** depend on shared libraries, but programs linked with such libtool
8048 *** libraries will work regardless of this problem.  Nevertheless, you
8049 *** may want to report the problem to your system manager and/or to
8050 *** bug-libtool@gnu.org
8051
8052 _LT_EOF
8053           fi ;;
8054         esac
8055       fi
8056       break
8057     fi
8058   done
8059   IFS="$lt_save_ifs"
8060   MAGIC_CMD="$lt_save_MAGIC_CMD"
8061   ;;
8062 esac
8063 fi
8064
8065 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8066 if test -n "$MAGIC_CMD"; then
8067   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8068 echo "${ECHO_T}$MAGIC_CMD" >&6
8069 else
8070   echo "$as_me:$LINENO: result: no" >&5
8071 echo "${ECHO_T}no" >&6
8072 fi
8073
8074
8075
8076
8077
8078 if test -z "$lt_cv_path_MAGIC_CMD"; then
8079   if test -n "$ac_tool_prefix"; then
8080     echo "$as_me:$LINENO: checking for file" >&5
8081 echo $ECHO_N "checking for file... $ECHO_C" >&6
8082 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8083   echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085   case $MAGIC_CMD in
8086 [\\/*] |  ?:[\\/]*)
8087   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8088   ;;
8089 *)
8090   lt_save_MAGIC_CMD="$MAGIC_CMD"
8091   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8092   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8093   for ac_dir in $ac_dummy; do
8094     IFS="$lt_save_ifs"
8095     test -z "$ac_dir" && ac_dir=.
8096     if test -f $ac_dir/file; then
8097       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8098       if test -n "$file_magic_test_file"; then
8099         case $deplibs_check_method in
8100         "file_magic "*)
8101           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8102           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8103           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8104             $EGREP "$file_magic_regex" > /dev/null; then
8105             :
8106           else
8107             cat <<_LT_EOF 1>&2
8108
8109 *** Warning: the command libtool uses to detect shared libraries,
8110 *** $file_magic_cmd, produces output that libtool cannot recognize.
8111 *** The result is that libtool may fail to recognize shared libraries
8112 *** as such.  This will affect the creation of libtool libraries that
8113 *** depend on shared libraries, but programs linked with such libtool
8114 *** libraries will work regardless of this problem.  Nevertheless, you
8115 *** may want to report the problem to your system manager and/or to
8116 *** bug-libtool@gnu.org
8117
8118 _LT_EOF
8119           fi ;;
8120         esac
8121       fi
8122       break
8123     fi
8124   done
8125   IFS="$lt_save_ifs"
8126   MAGIC_CMD="$lt_save_MAGIC_CMD"
8127   ;;
8128 esac
8129 fi
8130
8131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8132 if test -n "$MAGIC_CMD"; then
8133   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8134 echo "${ECHO_T}$MAGIC_CMD" >&6
8135 else
8136   echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6
8138 fi
8139
8140
8141   else
8142     MAGIC_CMD=:
8143   fi
8144 fi
8145
8146   fi
8147   ;;
8148 esac
8149
8150 # Use C for the default configuration in the libtool script
8151
8152 lt_save_CC="$CC"
8153 ac_ext=c
8154 ac_cpp='$CPP $CPPFLAGS'
8155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8158
8159
8160 # Source file extension for C test sources.
8161 ac_ext=c
8162
8163 # Object file extension for compiled C test sources.
8164 objext=o
8165 objext=$objext
8166
8167 # Code to be used in simple compile tests
8168 lt_simple_compile_test_code="int some_variable = 0;"
8169
8170 # Code to be used in simple link tests
8171 lt_simple_link_test_code='int main(){return(0);}'
8172
8173
8174
8175
8176
8177
8178
8179 # If no C compiler was specified, use CC.
8180 LTCC=${LTCC-"$CC"}
8181
8182 # If no C compiler flags were specified, use CFLAGS.
8183 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8184
8185 # Allow CC to be a program name with arguments.
8186 compiler=$CC
8187
8188 # Save the default compiler, since it gets overwritten when the other
8189 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8190 compiler_DEFAULT=$CC
8191
8192 # save warnings/boilerplate of simple test code
8193 ac_outfile=conftest.$ac_objext
8194 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8195 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8196 _lt_compiler_boilerplate=`cat conftest.err`
8197 $RM conftest*
8198
8199 ac_outfile=conftest.$ac_objext
8200 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8201 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8202 _lt_linker_boilerplate=`cat conftest.err`
8203 $RM -r conftest*
8204
8205
8206 ## CAVEAT EMPTOR:
8207 ## There is no encapsulation within the following macros, do not change
8208 ## the running order or otherwise move them around unless you know exactly
8209 ## what you are doing...
8210 if test -n "$compiler"; then
8211
8212 lt_prog_compiler_no_builtin_flag=
8213
8214 if test "$GCC" = yes; then
8215   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8216
8217   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8218 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8219 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8220   echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222   lt_cv_prog_compiler_rtti_exceptions=no
8223    ac_outfile=conftest.$ac_objext
8224    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8225    lt_compiler_flag="-fno-rtti -fno-exceptions"
8226    # Insert the option either (1) after the last *FLAGS variable, or
8227    # (2) before a word containing "conftest.", or (3) at the end.
8228    # Note that $ac_compile itself does not contain backslashes and begins
8229    # with a dollar sign (not a hyphen), so the echo should work correctly.
8230    # The option is referenced via a variable to avoid confusing sed.
8231    lt_compile=`echo "$ac_compile" | $SED \
8232    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8234    -e 's:$: $lt_compiler_flag:'`
8235    (eval echo "\"\$as_me:8235: $lt_compile\"" >&5)
8236    (eval "$lt_compile" 2>conftest.err)
8237    ac_status=$?
8238    cat conftest.err >&5
8239    echo "$as_me:8239: \$? = $ac_status" >&5
8240    if (exit $ac_status) && test -s "$ac_outfile"; then
8241      # The compiler can only warn and ignore the option if not recognized
8242      # So say no if there are warnings other than the usual output.
8243      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8244      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8245      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8246        lt_cv_prog_compiler_rtti_exceptions=yes
8247      fi
8248    fi
8249    $RM conftest*
8250
8251 fi
8252 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8253 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8254
8255 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8256     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8257 else
8258     :
8259 fi
8260
8261 fi
8262
8263
8264
8265
8266
8267
8268   lt_prog_compiler_wl=
8269 lt_prog_compiler_pic=
8270 lt_prog_compiler_static=
8271
8272 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8273 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8274
8275   if test "$GCC" = yes; then
8276     lt_prog_compiler_wl='-Wl,'
8277     lt_prog_compiler_static='-static'
8278
8279     case $host_os in
8280       aix*)
8281       # All AIX code is PIC.
8282       if test "$host_cpu" = ia64; then
8283         # AIX 5 now supports IA64 processor
8284         lt_prog_compiler_static='-Bstatic'
8285       fi
8286       ;;
8287
8288     amigaos*)
8289       case $host_cpu in
8290       powerpc)
8291             # see comment about AmigaOS4 .so support
8292             lt_prog_compiler_pic='-fPIC'
8293         ;;
8294       m68k)
8295             # FIXME: we need at least 68020 code to build shared libraries, but
8296             # adding the `-m68020' flag to GCC prevents building anything better,
8297             # like `-m68040'.
8298             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8299         ;;
8300       esac
8301       ;;
8302
8303     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8304       # PIC is the default for these OSes.
8305       ;;
8306
8307     mingw* | cygwin* | pw32* | os2* | cegcc*)
8308       # This hack is so that the source file can tell whether it is being
8309       # built for inclusion in a dll (and should export symbols for example).
8310       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8311       # (--disable-auto-import) libraries
8312       lt_prog_compiler_pic='-DDLL_EXPORT'
8313       ;;
8314
8315     darwin* | rhapsody*)
8316       # PIC is the default on this platform
8317       # Common symbols not allowed in MH_DYLIB files
8318       lt_prog_compiler_pic='-fno-common'
8319       ;;
8320
8321     hpux*)
8322       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8323       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8324       # sets the default TLS model and affects inlining.
8325       case $host_cpu in
8326       hppa*64*)
8327         # +Z the default
8328         ;;
8329       *)
8330         lt_prog_compiler_pic='-fPIC'
8331         ;;
8332       esac
8333       ;;
8334
8335     interix[3-9]*)
8336       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8337       # Instead, we relocate shared libraries at runtime.
8338       ;;
8339
8340     msdosdjgpp*)
8341       # Just because we use GCC doesn't mean we suddenly get shared libraries
8342       # on systems that don't support them.
8343       lt_prog_compiler_can_build_shared=no
8344       enable_shared=no
8345       ;;
8346
8347     *nto* | *qnx*)
8348       # QNX uses GNU C++, but need to define -shared option too, otherwise
8349       # it will coredump.
8350       lt_prog_compiler_pic='-fPIC -shared'
8351       ;;
8352
8353     sysv4*MP*)
8354       if test -d /usr/nec; then
8355         lt_prog_compiler_pic=-Kconform_pic
8356       fi
8357       ;;
8358
8359     *)
8360       lt_prog_compiler_pic='-fPIC'
8361       ;;
8362     esac
8363   else
8364     # PORTME Check for flag to pass linker flags through the system compiler.
8365     case $host_os in
8366     aix*)
8367       lt_prog_compiler_wl='-Wl,'
8368       if test "$host_cpu" = ia64; then
8369         # AIX 5 now supports IA64 processor
8370         lt_prog_compiler_static='-Bstatic'
8371       else
8372         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8373       fi
8374       ;;
8375
8376     mingw* | cygwin* | pw32* | os2* | cegcc*)
8377       # This hack is so that the source file can tell whether it is being
8378       # built for inclusion in a dll (and should export symbols for example).
8379       lt_prog_compiler_pic='-DDLL_EXPORT'
8380       ;;
8381
8382     hpux9* | hpux10* | hpux11*)
8383       lt_prog_compiler_wl='-Wl,'
8384       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8385       # not for PA HP-UX.
8386       case $host_cpu in
8387       hppa*64*|ia64*)
8388         # +Z the default
8389         ;;
8390       *)
8391         lt_prog_compiler_pic='+Z'
8392         ;;
8393       esac
8394       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8395       lt_prog_compiler_static='${wl}-a ${wl}archive'
8396       ;;
8397
8398     irix5* | irix6* | nonstopux*)
8399       lt_prog_compiler_wl='-Wl,'
8400       # PIC (with -KPIC) is the default.
8401       lt_prog_compiler_static='-non_shared'
8402       ;;
8403
8404     linux* | k*bsd*-gnu)
8405       case $cc_basename in
8406       # old Intel for x86_64 which still supported -KPIC.
8407       ecc*)
8408         lt_prog_compiler_wl='-Wl,'
8409         lt_prog_compiler_pic='-KPIC'
8410         lt_prog_compiler_static='-static'
8411         ;;
8412       # icc used to be incompatible with GCC.
8413       # ICC 10 doesn't accept -KPIC any more.
8414       icc* | ifort*)
8415         lt_prog_compiler_wl='-Wl,'
8416         lt_prog_compiler_pic='-fPIC'
8417         lt_prog_compiler_static='-static'
8418         ;;
8419       # Lahey Fortran 8.1.
8420       lf95*)
8421         lt_prog_compiler_wl='-Wl,'
8422         lt_prog_compiler_pic='--shared'
8423         lt_prog_compiler_static='--static'
8424         ;;
8425       pgcc* | pgf77* | pgf90* | pgf95*)
8426         # Portland Group compilers (*not* the Pentium gcc compiler,
8427         # which looks to be a dead project)
8428         lt_prog_compiler_wl='-Wl,'
8429         lt_prog_compiler_pic='-fpic'
8430         lt_prog_compiler_static='-Bstatic'
8431         ;;
8432       ccc*)
8433         lt_prog_compiler_wl='-Wl,'
8434         # All Alpha code is PIC.
8435         lt_prog_compiler_static='-non_shared'
8436         ;;
8437       xl*)
8438         # IBM XL C 8.0/Fortran 10.1 on PPC
8439         lt_prog_compiler_wl='-Wl,'
8440         lt_prog_compiler_pic='-qpic'
8441         lt_prog_compiler_static='-qstaticlink'
8442         ;;
8443       *)
8444         case `$CC -V 2>&1 | sed 5q` in
8445         *Sun\ C*)
8446           # Sun C 5.9
8447           lt_prog_compiler_pic='-KPIC'
8448           lt_prog_compiler_static='-Bstatic'
8449           lt_prog_compiler_wl='-Wl,'
8450           ;;
8451         *Sun\ F*)
8452           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8453           lt_prog_compiler_pic='-KPIC'
8454           lt_prog_compiler_static='-Bstatic'
8455           lt_prog_compiler_wl=''
8456           ;;
8457         esac
8458         ;;
8459       esac
8460       ;;
8461
8462     newsos6)
8463       lt_prog_compiler_pic='-KPIC'
8464       lt_prog_compiler_static='-Bstatic'
8465       ;;
8466
8467     *nto* | *qnx*)
8468       # QNX uses GNU C++, but need to define -shared option too, otherwise
8469       # it will coredump.
8470       lt_prog_compiler_pic='-fPIC -shared'
8471       ;;
8472
8473     osf3* | osf4* | osf5*)
8474       lt_prog_compiler_wl='-Wl,'
8475       # All OSF/1 code is PIC.
8476       lt_prog_compiler_static='-non_shared'
8477       ;;
8478
8479     rdos*)
8480       lt_prog_compiler_static='-non_shared'
8481       ;;
8482
8483     solaris*)
8484       lt_prog_compiler_pic='-KPIC'
8485       lt_prog_compiler_static='-Bstatic'
8486       case $cc_basename in
8487       f77* | f90* | f95*)
8488         lt_prog_compiler_wl='-Qoption ld ';;
8489       *)
8490         lt_prog_compiler_wl='-Wl,';;
8491       esac
8492       ;;
8493
8494     sunos4*)
8495       lt_prog_compiler_wl='-Qoption ld '
8496       lt_prog_compiler_pic='-PIC'
8497       lt_prog_compiler_static='-Bstatic'
8498       ;;
8499
8500     sysv4 | sysv4.2uw2* | sysv4.3*)
8501       lt_prog_compiler_wl='-Wl,'
8502       lt_prog_compiler_pic='-KPIC'
8503       lt_prog_compiler_static='-Bstatic'
8504       ;;
8505
8506     sysv4*MP*)
8507       if test -d /usr/nec ;then
8508         lt_prog_compiler_pic='-Kconform_pic'
8509         lt_prog_compiler_static='-Bstatic'
8510       fi
8511       ;;
8512
8513     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8514       lt_prog_compiler_wl='-Wl,'
8515       lt_prog_compiler_pic='-KPIC'
8516       lt_prog_compiler_static='-Bstatic'
8517       ;;
8518
8519     unicos*)
8520       lt_prog_compiler_wl='-Wl,'
8521       lt_prog_compiler_can_build_shared=no
8522       ;;
8523
8524     uts4*)
8525       lt_prog_compiler_pic='-pic'
8526       lt_prog_compiler_static='-Bstatic'
8527       ;;
8528
8529     *)
8530       lt_prog_compiler_can_build_shared=no
8531       ;;
8532     esac
8533   fi
8534
8535 case $host_os in
8536   # For platforms which do not support PIC, -DPIC is meaningless:
8537   *djgpp*)
8538     lt_prog_compiler_pic=
8539     ;;
8540   *)
8541     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8542     ;;
8543 esac
8544 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8545 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8546
8547
8548
8549
8550
8551
8552 #
8553 # Check to make sure the PIC flag actually works.
8554 #
8555 if test -n "$lt_prog_compiler_pic"; then
8556   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8557 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8558 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8559   echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561   lt_cv_prog_compiler_pic_works=no
8562    ac_outfile=conftest.$ac_objext
8563    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8564    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8565    # Insert the option either (1) after the last *FLAGS variable, or
8566    # (2) before a word containing "conftest.", or (3) at the end.
8567    # Note that $ac_compile itself does not contain backslashes and begins
8568    # with a dollar sign (not a hyphen), so the echo should work correctly.
8569    # The option is referenced via a variable to avoid confusing sed.
8570    lt_compile=`echo "$ac_compile" | $SED \
8571    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8572    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8573    -e 's:$: $lt_compiler_flag:'`
8574    (eval echo "\"\$as_me:8574: $lt_compile\"" >&5)
8575    (eval "$lt_compile" 2>conftest.err)
8576    ac_status=$?
8577    cat conftest.err >&5
8578    echo "$as_me:8578: \$? = $ac_status" >&5
8579    if (exit $ac_status) && test -s "$ac_outfile"; then
8580      # The compiler can only warn and ignore the option if not recognized
8581      # So say no if there are warnings other than the usual output.
8582      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8583      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8584      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8585        lt_cv_prog_compiler_pic_works=yes
8586      fi
8587    fi
8588    $RM conftest*
8589
8590 fi
8591 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8592 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8593
8594 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8595     case $lt_prog_compiler_pic in
8596      "" | " "*) ;;
8597      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8598      esac
8599 else
8600     lt_prog_compiler_pic=
8601      lt_prog_compiler_can_build_shared=no
8602 fi
8603
8604 fi
8605
8606
8607
8608
8609
8610
8611 #
8612 # Check to make sure the static flag actually works.
8613 #
8614 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8615 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8616 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8617 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8618   echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620   lt_cv_prog_compiler_static_works=no
8621    save_LDFLAGS="$LDFLAGS"
8622    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8623    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8624    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8625      # The linker can only warn and ignore the option if not recognized
8626      # So say no if there are warnings
8627      if test -s conftest.err; then
8628        # Append any errors to the config.log.
8629        cat conftest.err 1>&5
8630        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8631        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8632        if diff conftest.exp conftest.er2 >/dev/null; then
8633          lt_cv_prog_compiler_static_works=yes
8634        fi
8635      else
8636        lt_cv_prog_compiler_static_works=yes
8637      fi
8638    fi
8639    $RM -r conftest*
8640    LDFLAGS="$save_LDFLAGS"
8641
8642 fi
8643 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8644 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8645
8646 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8647     :
8648 else
8649     lt_prog_compiler_static=
8650 fi
8651
8652
8653
8654
8655
8656
8657
8658   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8659 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8660 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8661   echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663   lt_cv_prog_compiler_c_o=no
8664    $RM -r conftest 2>/dev/null
8665    mkdir conftest
8666    cd conftest
8667    mkdir out
8668    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8669
8670    lt_compiler_flag="-o out/conftest2.$ac_objext"
8671    # Insert the option either (1) after the last *FLAGS variable, or
8672    # (2) before a word containing "conftest.", or (3) at the end.
8673    # Note that $ac_compile itself does not contain backslashes and begins
8674    # with a dollar sign (not a hyphen), so the echo should work correctly.
8675    lt_compile=`echo "$ac_compile" | $SED \
8676    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8677    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8678    -e 's:$: $lt_compiler_flag:'`
8679    (eval echo "\"\$as_me:8679: $lt_compile\"" >&5)
8680    (eval "$lt_compile" 2>out/conftest.err)
8681    ac_status=$?
8682    cat out/conftest.err >&5
8683    echo "$as_me:8683: \$? = $ac_status" >&5
8684    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8685    then
8686      # The compiler can only warn and ignore the option if not recognized
8687      # So say no if there are warnings
8688      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8689      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8690      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8691        lt_cv_prog_compiler_c_o=yes
8692      fi
8693    fi
8694    chmod u+w . 2>&5
8695    $RM conftest*
8696    # SGI C++ compiler will create directory out/ii_files/ for
8697    # template instantiation
8698    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8699    $RM out/* && rmdir out
8700    cd ..
8701    $RM -r conftest
8702    $RM conftest*
8703
8704 fi
8705 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8706 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8707
8708
8709
8710
8711
8712
8713   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8714 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8715 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8716   echo $ECHO_N "(cached) $ECHO_C" >&6
8717 else
8718   lt_cv_prog_compiler_c_o=no
8719    $RM -r conftest 2>/dev/null
8720    mkdir conftest
8721    cd conftest
8722    mkdir out
8723    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8724
8725    lt_compiler_flag="-o out/conftest2.$ac_objext"
8726    # Insert the option either (1) after the last *FLAGS variable, or
8727    # (2) before a word containing "conftest.", or (3) at the end.
8728    # Note that $ac_compile itself does not contain backslashes and begins
8729    # with a dollar sign (not a hyphen), so the echo should work correctly.
8730    lt_compile=`echo "$ac_compile" | $SED \
8731    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8732    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8733    -e 's:$: $lt_compiler_flag:'`
8734    (eval echo "\"\$as_me:8734: $lt_compile\"" >&5)
8735    (eval "$lt_compile" 2>out/conftest.err)
8736    ac_status=$?
8737    cat out/conftest.err >&5
8738    echo "$as_me:8738: \$? = $ac_status" >&5
8739    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8740    then
8741      # The compiler can only warn and ignore the option if not recognized
8742      # So say no if there are warnings
8743      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8744      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8745      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8746        lt_cv_prog_compiler_c_o=yes
8747      fi
8748    fi
8749    chmod u+w . 2>&5
8750    $RM conftest*
8751    # SGI C++ compiler will create directory out/ii_files/ for
8752    # template instantiation
8753    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8754    $RM out/* && rmdir out
8755    cd ..
8756    $RM -r conftest
8757    $RM conftest*
8758
8759 fi
8760 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8761 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8762
8763
8764
8765
8766 hard_links="nottested"
8767 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8768   # do not overwrite the value of need_locks provided by the user
8769   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8770 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8771   hard_links=yes
8772   $RM conftest*
8773   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8774   touch conftest.a
8775   ln conftest.a conftest.b 2>&5 || hard_links=no
8776   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8777   echo "$as_me:$LINENO: result: $hard_links" >&5
8778 echo "${ECHO_T}$hard_links" >&6
8779   if test "$hard_links" = no; then
8780     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8781 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8782     need_locks=warn
8783   fi
8784 else
8785   need_locks=no
8786 fi
8787
8788
8789
8790
8791
8792
8793   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8794 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8795
8796   runpath_var=
8797   allow_undefined_flag=
8798   always_export_symbols=no
8799   archive_cmds=
8800   archive_expsym_cmds=
8801   compiler_needs_object=no
8802   enable_shared_with_static_runtimes=no
8803   export_dynamic_flag_spec=
8804   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8805   hardcode_automatic=no
8806   hardcode_direct=no
8807   hardcode_direct_absolute=no
8808   hardcode_libdir_flag_spec=
8809   hardcode_libdir_flag_spec_ld=
8810   hardcode_libdir_separator=
8811   hardcode_minus_L=no
8812   hardcode_shlibpath_var=unsupported
8813   inherit_rpath=no
8814   link_all_deplibs=unknown
8815   module_cmds=
8816   module_expsym_cmds=
8817   old_archive_from_new_cmds=
8818   old_archive_from_expsyms_cmds=
8819   thread_safe_flag_spec=
8820   whole_archive_flag_spec=
8821   # include_expsyms should be a list of space-separated symbols to be *always*
8822   # included in the symbol list
8823   include_expsyms=
8824   # exclude_expsyms can be an extended regexp of symbols to exclude
8825   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8826   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8827   # as well as any symbol that contains `d'.
8828   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8829   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8830   # platforms (ab)use it in PIC code, but their linkers get confused if
8831   # the symbol is explicitly referenced.  Since portable code cannot
8832   # rely on this symbol name, it's probably fine to never include it in
8833   # preloaded symbol tables.
8834   # Exclude shared library initialization/finalization symbols.
8835   extract_expsyms_cmds=
8836
8837   case $host_os in
8838   cygwin* | mingw* | pw32* | cegcc*)
8839     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8840     # When not using gcc, we currently assume that we are using
8841     # Microsoft Visual C++.
8842     if test "$GCC" != yes; then
8843       with_gnu_ld=no
8844     fi
8845     ;;
8846   interix*)
8847     # we just hope/assume this is gcc and not c89 (= MSVC++)
8848     with_gnu_ld=yes
8849     ;;
8850   openbsd*)
8851     with_gnu_ld=no
8852     ;;
8853   esac
8854
8855   ld_shlibs=yes
8856   if test "$with_gnu_ld" = yes; then
8857     # If archive_cmds runs LD, not CC, wlarc should be empty
8858     wlarc='${wl}'
8859
8860     # Set some defaults for GNU ld with shared library support. These
8861     # are reset later if shared libraries are not supported. Putting them
8862     # here allows them to be overridden if necessary.
8863     runpath_var=LD_RUN_PATH
8864     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8865     export_dynamic_flag_spec='${wl}--export-dynamic'
8866     # ancient GNU ld didn't support --whole-archive et. al.
8867     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8868       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8869     else
8870       whole_archive_flag_spec=
8871     fi
8872     supports_anon_versioning=no
8873     case `$LD -v 2>&1` in
8874       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8875       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8876       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8877       *\ 2.11.*) ;; # other 2.11 versions
8878       *) supports_anon_versioning=yes ;;
8879     esac
8880
8881     # See if GNU ld supports shared libraries.
8882     case $host_os in
8883     aix[3-9]*)
8884       # On AIX/PPC, the GNU linker is very broken
8885       if test "$host_cpu" != ia64; then
8886         ld_shlibs=no
8887         cat <<_LT_EOF 1>&2
8888
8889 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8890 *** to be unable to reliably create shared libraries on AIX.
8891 *** Therefore, libtool is disabling shared libraries support.  If you
8892 *** really care for shared libraries, you may want to modify your PATH
8893 *** so that a non-GNU linker is found, and then restart.
8894
8895 _LT_EOF
8896       fi
8897       ;;
8898
8899     amigaos*)
8900       case $host_cpu in
8901       powerpc)
8902             # see comment about AmigaOS4 .so support
8903             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8904             archive_expsym_cmds=''
8905         ;;
8906       m68k)
8907             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)'
8908             hardcode_libdir_flag_spec='-L$libdir'
8909             hardcode_minus_L=yes
8910         ;;
8911       esac
8912       ;;
8913
8914     beos*)
8915       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8916         allow_undefined_flag=unsupported
8917         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8918         # support --undefined.  This deserves some investigation.  FIXME
8919         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920       else
8921         ld_shlibs=no
8922       fi
8923       ;;
8924
8925     cygwin* | mingw* | pw32* | cegcc*)
8926       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8927       # as there is no search path for DLLs.
8928       hardcode_libdir_flag_spec='-L$libdir'
8929       allow_undefined_flag=unsupported
8930       always_export_symbols=no
8931       enable_shared_with_static_runtimes=yes
8932       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8933
8934       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8935         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8936         # If the export-symbols file already is a .def file (1st line
8937         # is EXPORTS), use it as is; otherwise, prepend...
8938         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8939           cp $export_symbols $output_objdir/$soname.def;
8940         else
8941           echo EXPORTS > $output_objdir/$soname.def;
8942           cat $export_symbols >> $output_objdir/$soname.def;
8943         fi~
8944         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8945       else
8946         ld_shlibs=no
8947       fi
8948       ;;
8949
8950     interix[3-9]*)
8951       hardcode_direct=no
8952       hardcode_shlibpath_var=no
8953       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8954       export_dynamic_flag_spec='${wl}-E'
8955       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8956       # Instead, shared libraries are loaded at an image base (0x10000000 by
8957       # default) and relocated if they conflict, which is a slow very memory
8958       # consuming and fragmenting process.  To avoid this, we pick a random,
8959       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8960       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8961       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8962       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'
8963       ;;
8964
8965     gnu* | linux* | tpf* | k*bsd*-gnu)
8966       tmp_diet=no
8967       if test "$host_os" = linux-dietlibc; then
8968         case $cc_basename in
8969           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8970         esac
8971       fi
8972       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8973          && test "$tmp_diet" = no
8974       then
8975         tmp_addflag=
8976         tmp_sharedflag='-shared'
8977         case $cc_basename,$host_cpu in
8978         pgcc*)                          # Portland Group C compiler
8979           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'
8980           tmp_addflag=' $pic_flag'
8981           ;;
8982         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8983           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'
8984           tmp_addflag=' $pic_flag -Mnomain' ;;
8985         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8986           tmp_addflag=' -i_dynamic' ;;
8987         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8988           tmp_addflag=' -i_dynamic -nofor_main' ;;
8989         ifc* | ifort*)                  # Intel Fortran compiler
8990           tmp_addflag=' -nofor_main' ;;
8991         lf95*)                          # Lahey Fortran 8.1
8992           whole_archive_flag_spec=
8993           tmp_sharedflag='--shared' ;;
8994         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8995           tmp_sharedflag='-qmkshrobj'
8996           tmp_addflag= ;;
8997         esac
8998         case `$CC -V 2>&1 | sed 5q` in
8999         *Sun\ C*)                       # Sun C 5.9
9000           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'
9001           compiler_needs_object=yes
9002           tmp_sharedflag='-G' ;;
9003         *Sun\ F*)                       # Sun Fortran 8.3
9004           tmp_sharedflag='-G' ;;
9005         esac
9006         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007
9008         if test "x$supports_anon_versioning" = xyes; then
9009           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9010             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9011             echo "local: *; };" >> $output_objdir/$libname.ver~
9012             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9013         fi
9014
9015         case $cc_basename in
9016         xlf*)
9017           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9018           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9019           hardcode_libdir_flag_spec=
9020           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9021           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9022           if test "x$supports_anon_versioning" = xyes; then
9023             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9024               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9025               echo "local: *; };" >> $output_objdir/$libname.ver~
9026               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9027           fi
9028           ;;
9029         esac
9030       else
9031         ld_shlibs=no
9032       fi
9033       ;;
9034
9035     netbsd*)
9036       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9037         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9038         wlarc=
9039       else
9040         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9042       fi
9043       ;;
9044
9045     solaris*)
9046       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9047         ld_shlibs=no
9048         cat <<_LT_EOF 1>&2
9049
9050 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9051 *** create shared libraries on Solaris systems.  Therefore, libtool
9052 *** is disabling shared libraries support.  We urge you to upgrade GNU
9053 *** binutils to release 2.9.1 or newer.  Another option is to modify
9054 *** your PATH or compiler configuration so that the native linker is
9055 *** used, and then restart.
9056
9057 _LT_EOF
9058       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9059         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9061       else
9062         ld_shlibs=no
9063       fi
9064       ;;
9065
9066     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9067       case `$LD -v 2>&1` in
9068         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9069         ld_shlibs=no
9070         cat <<_LT_EOF 1>&2
9071
9072 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9073 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9074 *** is disabling shared libraries support.  We urge you to upgrade GNU
9075 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9076 *** your PATH or compiler configuration so that the native linker is
9077 *** used, and then restart.
9078
9079 _LT_EOF
9080         ;;
9081         *)
9082           # For security reasons, it is highly recommended that you always
9083           # use absolute paths for naming shared libraries, and exclude the
9084           # DT_RUNPATH tag from executables and libraries.  But doing so
9085           # requires that you compile everything twice, which is a pain.
9086           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9087             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9088             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9090           else
9091             ld_shlibs=no
9092           fi
9093         ;;
9094       esac
9095       ;;
9096
9097     sunos4*)
9098       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9099       wlarc=
9100       hardcode_direct=yes
9101       hardcode_shlibpath_var=no
9102       ;;
9103
9104     *)
9105       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9106         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9108       else
9109         ld_shlibs=no
9110       fi
9111       ;;
9112     esac
9113
9114     if test "$ld_shlibs" = no; then
9115       runpath_var=
9116       hardcode_libdir_flag_spec=
9117       export_dynamic_flag_spec=
9118       whole_archive_flag_spec=
9119     fi
9120   else
9121     # PORTME fill in a description of your system's linker (not GNU ld)
9122     case $host_os in
9123     aix3*)
9124       allow_undefined_flag=unsupported
9125       always_export_symbols=yes
9126       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'
9127       # Note: this linker hardcodes the directories in LIBPATH if there
9128       # are no directories specified by -L.
9129       hardcode_minus_L=yes
9130       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9131         # Neither direct hardcoding nor static linking is supported with a
9132         # broken collect2.
9133         hardcode_direct=unsupported
9134       fi
9135       ;;
9136
9137     aix[4-9]*)
9138       if test "$host_cpu" = ia64; then
9139         # On IA64, the linker does run time linking by default, so we don't
9140         # have to do anything special.
9141         aix_use_runtimelinking=no
9142         exp_sym_flag='-Bexport'
9143         no_entry_flag=""
9144       else
9145         # If we're using GNU nm, then we don't want the "-C" option.
9146         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9147         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9148           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'
9149         else
9150           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'
9151         fi
9152         aix_use_runtimelinking=no
9153
9154         # Test if we are trying to use run time linking or normal
9155         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9156         # need to do runtime linking.
9157         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9158           for ld_flag in $LDFLAGS; do
9159           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9160             aix_use_runtimelinking=yes
9161             break
9162           fi
9163           done
9164           ;;
9165         esac
9166
9167         exp_sym_flag='-bexport'
9168         no_entry_flag='-bnoentry'
9169       fi
9170
9171       # When large executables or shared objects are built, AIX ld can
9172       # have problems creating the table of contents.  If linking a library
9173       # or program results in "error TOC overflow" add -mminimal-toc to
9174       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9175       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9176
9177       archive_cmds=''
9178       hardcode_direct=yes
9179       hardcode_direct_absolute=yes
9180       hardcode_libdir_separator=':'
9181       link_all_deplibs=yes
9182       file_list_spec='${wl}-f,'
9183
9184       if test "$GCC" = yes; then
9185         case $host_os in aix4.[012]|aix4.[012].*)
9186         # We only want to do this on AIX 4.2 and lower, the check
9187         # below for broken collect2 doesn't work under 4.3+
9188           collect2name=`${CC} -print-prog-name=collect2`
9189           if test -f "$collect2name" &&
9190            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9191           then
9192           # We have reworked collect2
9193           :
9194           else
9195           # We have old collect2
9196           hardcode_direct=unsupported
9197           # It fails to find uninstalled libraries when the uninstalled
9198           # path is not listed in the libpath.  Setting hardcode_minus_L
9199           # to unsupported forces relinking
9200           hardcode_minus_L=yes
9201           hardcode_libdir_flag_spec='-L$libdir'
9202           hardcode_libdir_separator=
9203           fi
9204           ;;
9205         esac
9206         shared_flag='-shared'
9207         if test "$aix_use_runtimelinking" = yes; then
9208           shared_flag="$shared_flag "'${wl}-G'
9209         fi
9210       else
9211         # not using gcc
9212         if test "$host_cpu" = ia64; then
9213         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9214         # chokes on -Wl,-G. The following line is correct:
9215           shared_flag='-G'
9216         else
9217           if test "$aix_use_runtimelinking" = yes; then
9218             shared_flag='${wl}-G'
9219           else
9220             shared_flag='${wl}-bM:SRE'
9221           fi
9222         fi
9223       fi
9224
9225       export_dynamic_flag_spec='${wl}-bexpall'
9226       # It seems that -bexpall does not export symbols beginning with
9227       # underscore (_), so it is better to generate a list of symbols to export.
9228       always_export_symbols=yes
9229       if test "$aix_use_runtimelinking" = yes; then
9230         # Warning - without using the other runtime loading flags (-brtl),
9231         # -berok will link without error, but may produce a broken library.
9232         allow_undefined_flag='-berok'
9233         # Determine the default libpath from the value encoded in an
9234         # empty executable.
9235         cat >conftest.$ac_ext <<_ACEOF
9236 /* confdefs.h.  */
9237 _ACEOF
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h.  */
9241
9242 int
9243 main ()
9244 {
9245
9246   ;
9247   return 0;
9248 }
9249 _ACEOF
9250 rm -f conftest.$ac_objext conftest$ac_exeext
9251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9252   (eval $ac_link) 2>conftest.er1
9253   ac_status=$?
9254   grep -v '^ *+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } &&
9259          { ac_try='test -z "$ac_c_werror_flag"
9260                          || test ! -s conftest.err'
9261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262   (eval $ac_try) 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; } &&
9266          { ac_try='test -s conftest$ac_exeext'
9267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268   (eval $ac_try) 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); }; }; then
9272
9273 lt_aix_libpath_sed='
9274     /Import File Strings/,/^$/ {
9275         /^0/ {
9276             s/^0  *\(.*\)$/\1/
9277             p
9278         }
9279     }'
9280 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9281 # Check for a 64-bit object if we didn't find anything.
9282 if test -z "$aix_libpath"; then
9283   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9284 fi
9285 else
9286   echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9288
9289 fi
9290 rm -f conftest.err conftest.$ac_objext \
9291       conftest$ac_exeext conftest.$ac_ext
9292 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9293
9294         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9295         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"
9296       else
9297         if test "$host_cpu" = ia64; then
9298           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9299           allow_undefined_flag="-z nodefs"
9300           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"
9301         else
9302          # Determine the default libpath from the value encoded in an
9303          # empty executable.
9304          cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h.  */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h.  */
9310
9311 int
9312 main ()
9313 {
9314
9315   ;
9316   return 0;
9317 }
9318 _ACEOF
9319 rm -f conftest.$ac_objext conftest$ac_exeext
9320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9321   (eval $ac_link) 2>conftest.er1
9322   ac_status=$?
9323   grep -v '^ *+' conftest.er1 >conftest.err
9324   rm -f conftest.er1
9325   cat conftest.err >&5
9326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327   (exit $ac_status); } &&
9328          { ac_try='test -z "$ac_c_werror_flag"
9329                          || test ! -s conftest.err'
9330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9331   (eval $ac_try) 2>&5
9332   ac_status=$?
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); }; } &&
9335          { ac_try='test -s conftest$ac_exeext'
9336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9337   (eval $ac_try) 2>&5
9338   ac_status=$?
9339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340   (exit $ac_status); }; }; then
9341
9342 lt_aix_libpath_sed='
9343     /Import File Strings/,/^$/ {
9344         /^0/ {
9345             s/^0  *\(.*\)$/\1/
9346             p
9347         }
9348     }'
9349 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9350 # Check for a 64-bit object if we didn't find anything.
9351 if test -z "$aix_libpath"; then
9352   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9353 fi
9354 else
9355   echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9357
9358 fi
9359 rm -f conftest.err conftest.$ac_objext \
9360       conftest$ac_exeext conftest.$ac_ext
9361 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9362
9363          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9364           # Warning - without using the other run time loading flags,
9365           # -berok will link without error, but may produce a broken library.
9366           no_undefined_flag=' ${wl}-bernotok'
9367           allow_undefined_flag=' ${wl}-berok'
9368           # Exported symbols can be pulled into shared objects from archives
9369           whole_archive_flag_spec='$convenience'
9370           archive_cmds_need_lc=yes
9371           # This is similar to how AIX traditionally builds its shared libraries.
9372           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'
9373         fi
9374       fi
9375       ;;
9376
9377     amigaos*)
9378       case $host_cpu in
9379       powerpc)
9380             # see comment about AmigaOS4 .so support
9381             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9382             archive_expsym_cmds=''
9383         ;;
9384       m68k)
9385             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)'
9386             hardcode_libdir_flag_spec='-L$libdir'
9387             hardcode_minus_L=yes
9388         ;;
9389       esac
9390       ;;
9391
9392     bsdi[45]*)
9393       export_dynamic_flag_spec=-rdynamic
9394       ;;
9395
9396     cygwin* | mingw* | pw32* | cegcc*)
9397       # When not using gcc, we currently assume that we are using
9398       # Microsoft Visual C++.
9399       # hardcode_libdir_flag_spec is actually meaningless, as there is
9400       # no search path for DLLs.
9401       hardcode_libdir_flag_spec=' '
9402       allow_undefined_flag=unsupported
9403       # Tell ltmain to make .lib files, not .a files.
9404       libext=lib
9405       # Tell ltmain to make .dll files, not .so files.
9406       shrext_cmds=".dll"
9407       # FIXME: Setting linknames here is a bad hack.
9408       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9409       # The linker will automatically build a .lib file if we build a DLL.
9410       old_archive_from_new_cmds='true'
9411       # FIXME: Should let the user specify the lib program.
9412       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9413       fix_srcfile_path='`cygpath -w "$srcfile"`'
9414       enable_shared_with_static_runtimes=yes
9415       ;;
9416
9417     darwin* | rhapsody*)
9418
9419
9420   archive_cmds_need_lc=no
9421   hardcode_direct=no
9422   hardcode_automatic=yes
9423   hardcode_shlibpath_var=unsupported
9424   whole_archive_flag_spec=''
9425   link_all_deplibs=yes
9426   allow_undefined_flag="$_lt_dar_allow_undefined"
9427   case $cc_basename in
9428      ifort*) _lt_dar_can_shared=yes ;;
9429      *) _lt_dar_can_shared=$GCC ;;
9430   esac
9431   if test "$_lt_dar_can_shared" = "yes"; then
9432     output_verbose_link_cmd=echo
9433     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9434     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9435     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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9436     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9437
9438   else
9439   ld_shlibs=no
9440   fi
9441
9442       ;;
9443
9444     dgux*)
9445       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446       hardcode_libdir_flag_spec='-L$libdir'
9447       hardcode_shlibpath_var=no
9448       ;;
9449
9450     freebsd1*)
9451       ld_shlibs=no
9452       ;;
9453
9454     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9455     # support.  Future versions do this automatically, but an explicit c++rt0.o
9456     # does not break anything, and helps significantly (at the cost of a little
9457     # extra space).
9458     freebsd2.2*)
9459       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9460       hardcode_libdir_flag_spec='-R$libdir'
9461       hardcode_direct=yes
9462       hardcode_shlibpath_var=no
9463       ;;
9464
9465     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9466     freebsd2*)
9467       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9468       hardcode_direct=yes
9469       hardcode_minus_L=yes
9470       hardcode_shlibpath_var=no
9471       ;;
9472
9473     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9474     freebsd* | dragonfly*)
9475       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9476       hardcode_libdir_flag_spec='-R$libdir'
9477       hardcode_direct=yes
9478       hardcode_shlibpath_var=no
9479       ;;
9480
9481     hpux9*)
9482       if test "$GCC" = yes; then
9483         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'
9484       else
9485         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'
9486       fi
9487       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9488       hardcode_libdir_separator=:
9489       hardcode_direct=yes
9490
9491       # hardcode_minus_L: Not really in the search PATH,
9492       # but as the default location of the library.
9493       hardcode_minus_L=yes
9494       export_dynamic_flag_spec='${wl}-E'
9495       ;;
9496
9497     hpux10*)
9498       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9499         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9500       else
9501         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9502       fi
9503       if test "$with_gnu_ld" = no; then
9504         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9505         hardcode_libdir_flag_spec_ld='+b $libdir'
9506         hardcode_libdir_separator=:
9507         hardcode_direct=yes
9508         hardcode_direct_absolute=yes
9509         export_dynamic_flag_spec='${wl}-E'
9510         # hardcode_minus_L: Not really in the search PATH,
9511         # but as the default location of the library.
9512         hardcode_minus_L=yes
9513       fi
9514       ;;
9515
9516     hpux11*)
9517       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9518         case $host_cpu in
9519         hppa*64*)
9520           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9521           ;;
9522         ia64*)
9523           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9524           ;;
9525         *)
9526           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9527           ;;
9528         esac
9529       else
9530         case $host_cpu in
9531         hppa*64*)
9532           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9533           ;;
9534         ia64*)
9535           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9536           ;;
9537         *)
9538           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9539           ;;
9540         esac
9541       fi
9542       if test "$with_gnu_ld" = no; then
9543         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9544         hardcode_libdir_separator=:
9545
9546         case $host_cpu in
9547         hppa*64*|ia64*)
9548           hardcode_direct=no
9549           hardcode_shlibpath_var=no
9550           ;;
9551         *)
9552           hardcode_direct=yes
9553           hardcode_direct_absolute=yes
9554           export_dynamic_flag_spec='${wl}-E'
9555
9556           # hardcode_minus_L: Not really in the search PATH,
9557           # but as the default location of the library.
9558           hardcode_minus_L=yes
9559           ;;
9560         esac
9561       fi
9562       ;;
9563
9564     irix5* | irix6* | nonstopux*)
9565       if test "$GCC" = yes; then
9566         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'
9567         # Try to use the -exported_symbol ld option, if it does not
9568         # work, assume that -exports_file does not work either and
9569         # implicitly export all symbols.
9570         save_LDFLAGS="$LDFLAGS"
9571         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9572         cat >conftest.$ac_ext <<_ACEOF
9573 int foo(void) {}
9574 _ACEOF
9575 rm -f conftest.$ac_objext conftest$ac_exeext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9577   (eval $ac_link) 2>conftest.er1
9578   ac_status=$?
9579   grep -v '^ *+' conftest.er1 >conftest.err
9580   rm -f conftest.er1
9581   cat conftest.err >&5
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } &&
9584          { ac_try='test -z "$ac_c_werror_flag"
9585                          || test ! -s conftest.err'
9586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9587   (eval $ac_try) 2>&5
9588   ac_status=$?
9589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590   (exit $ac_status); }; } &&
9591          { ac_try='test -s conftest$ac_exeext'
9592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593   (eval $ac_try) 2>&5
9594   ac_status=$?
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); }; }; then
9597   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'
9598
9599 else
9600   echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9602
9603 fi
9604 rm -f conftest.err conftest.$ac_objext \
9605       conftest$ac_exeext conftest.$ac_ext
9606         LDFLAGS="$save_LDFLAGS"
9607       else
9608         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'
9609         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'
9610       fi
9611       archive_cmds_need_lc='no'
9612       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9613       hardcode_libdir_separator=:
9614       inherit_rpath=yes
9615       link_all_deplibs=yes
9616       ;;
9617
9618     netbsd*)
9619       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9620         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9621       else
9622         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9623       fi
9624       hardcode_libdir_flag_spec='-R$libdir'
9625       hardcode_direct=yes
9626       hardcode_shlibpath_var=no
9627       ;;
9628
9629     newsos6)
9630       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631       hardcode_direct=yes
9632       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9633       hardcode_libdir_separator=:
9634       hardcode_shlibpath_var=no
9635       ;;
9636
9637     *nto* | *qnx*)
9638       ;;
9639
9640     openbsd*)
9641       if test -f /usr/libexec/ld.so; then
9642         hardcode_direct=yes
9643         hardcode_shlibpath_var=no
9644         hardcode_direct_absolute=yes
9645         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9646           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9647           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9648           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9649           export_dynamic_flag_spec='${wl}-E'
9650         else
9651           case $host_os in
9652            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9653              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9654              hardcode_libdir_flag_spec='-R$libdir'
9655              ;;
9656            *)
9657              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9658              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9659              ;;
9660           esac
9661         fi
9662       else
9663         ld_shlibs=no
9664       fi
9665       ;;
9666
9667     os2*)
9668       hardcode_libdir_flag_spec='-L$libdir'
9669       hardcode_minus_L=yes
9670       allow_undefined_flag=unsupported
9671       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'
9672       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9673       ;;
9674
9675     osf3*)
9676       if test "$GCC" = yes; then
9677         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9678         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'
9679       else
9680         allow_undefined_flag=' -expect_unresolved \*'
9681         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'
9682       fi
9683       archive_cmds_need_lc='no'
9684       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9685       hardcode_libdir_separator=:
9686       ;;
9687
9688     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9689       if test "$GCC" = yes; then
9690         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9691         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'
9692         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9693       else
9694         allow_undefined_flag=' -expect_unresolved \*'
9695         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'
9696         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~
9697         $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'
9698
9699         # Both c and cxx compiler support -rpath directly
9700         hardcode_libdir_flag_spec='-rpath $libdir'
9701       fi
9702       archive_cmds_need_lc='no'
9703       hardcode_libdir_separator=:
9704       ;;
9705
9706     solaris*)
9707       no_undefined_flag=' -z defs'
9708       if test "$GCC" = yes; then
9709         wlarc='${wl}'
9710         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9711         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9712           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9713       else
9714         case `$CC -V 2>&1` in
9715         *"Compilers 5.0"*)
9716           wlarc=''
9717           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9719           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9720           ;;
9721         *)
9722           wlarc='${wl}'
9723           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9724           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9725           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9726           ;;
9727         esac
9728       fi
9729       hardcode_libdir_flag_spec='-R$libdir'
9730       hardcode_shlibpath_var=no
9731       case $host_os in
9732       solaris2.[0-5] | solaris2.[0-5].*) ;;
9733       *)
9734         # The compiler driver will combine and reorder linker options,
9735         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9736         # but is careful enough not to reorder.
9737         # Supported since Solaris 2.6 (maybe 2.5.1?)
9738         if test "$GCC" = yes; then
9739           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9740         else
9741           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9742         fi
9743         ;;
9744       esac
9745       link_all_deplibs=yes
9746       ;;
9747
9748     sunos4*)
9749       if test "x$host_vendor" = xsequent; then
9750         # Use $CC to link under sequent, because it throws in some extra .o
9751         # files that make .init and .fini sections work.
9752         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9753       else
9754         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9755       fi
9756       hardcode_libdir_flag_spec='-L$libdir'
9757       hardcode_direct=yes
9758       hardcode_minus_L=yes
9759       hardcode_shlibpath_var=no
9760       ;;
9761
9762     sysv4)
9763       case $host_vendor in
9764         sni)
9765           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766           hardcode_direct=yes # is this really true???
9767         ;;
9768         siemens)
9769           ## LD is ld it makes a PLAMLIB
9770           ## CC just makes a GrossModule.
9771           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9772           reload_cmds='$CC -r -o $output$reload_objs'
9773           hardcode_direct=no
9774         ;;
9775         motorola)
9776           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9777           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9778         ;;
9779       esac
9780       runpath_var='LD_RUN_PATH'
9781       hardcode_shlibpath_var=no
9782       ;;
9783
9784     sysv4.3*)
9785       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9786       hardcode_shlibpath_var=no
9787       export_dynamic_flag_spec='-Bexport'
9788       ;;
9789
9790     sysv4*MP*)
9791       if test -d /usr/nec; then
9792         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9793         hardcode_shlibpath_var=no
9794         runpath_var=LD_RUN_PATH
9795         hardcode_runpath_var=yes
9796         ld_shlibs=yes
9797       fi
9798       ;;
9799
9800     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9801       no_undefined_flag='${wl}-z,text'
9802       archive_cmds_need_lc=no
9803       hardcode_shlibpath_var=no
9804       runpath_var='LD_RUN_PATH'
9805
9806       if test "$GCC" = yes; then
9807         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9808         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9809       else
9810         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9811         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9812       fi
9813       ;;
9814
9815     sysv5* | sco3.2v5* | sco5v6*)
9816       # Note: We can NOT use -z defs as we might desire, because we do not
9817       # link with -lc, and that would cause any symbols used from libc to
9818       # always be unresolved, which means just about no library would
9819       # ever link correctly.  If we're not using GNU ld we use -z text
9820       # though, which does catch some bad symbols but isn't as heavy-handed
9821       # as -z defs.
9822       no_undefined_flag='${wl}-z,text'
9823       allow_undefined_flag='${wl}-z,nodefs'
9824       archive_cmds_need_lc=no
9825       hardcode_shlibpath_var=no
9826       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9827       hardcode_libdir_separator=':'
9828       link_all_deplibs=yes
9829       export_dynamic_flag_spec='${wl}-Bexport'
9830       runpath_var='LD_RUN_PATH'
9831
9832       if test "$GCC" = yes; then
9833         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9835       else
9836         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9837         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838       fi
9839       ;;
9840
9841     uts4*)
9842       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843       hardcode_libdir_flag_spec='-L$libdir'
9844       hardcode_shlibpath_var=no
9845       ;;
9846
9847     *)
9848       ld_shlibs=no
9849       ;;
9850     esac
9851
9852     if test x$host_vendor = xsni; then
9853       case $host in
9854       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9855         export_dynamic_flag_spec='${wl}-Blargedynsym'
9856         ;;
9857       esac
9858     fi
9859   fi
9860
9861 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9862 echo "${ECHO_T}$ld_shlibs" >&6
9863 test "$ld_shlibs" = no && can_build_shared=no
9864
9865 with_gnu_ld=$with_gnu_ld
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881 #
9882 # Do we need to explicitly link libc?
9883 #
9884 case "x$archive_cmds_need_lc" in
9885 x|xyes)
9886   # Assume -lc should be added
9887   archive_cmds_need_lc=yes
9888
9889   if test "$enable_shared" = yes && test "$GCC" = yes; then
9890     case $archive_cmds in
9891     *'~'*)
9892       # FIXME: we may have to deal with multi-command sequences.
9893       ;;
9894     '$CC '*)
9895       # Test whether the compiler implicitly links with -lc since on some
9896       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9897       # to ld, don't add -lc before -lgcc.
9898       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9899 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9900       $RM conftest*
9901       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9902
9903       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9904   (eval $ac_compile) 2>&5
9905   ac_status=$?
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); } 2>conftest.err; then
9908         soname=conftest
9909         lib=conftest
9910         libobjs=conftest.$ac_objext
9911         deplibs=
9912         wl=$lt_prog_compiler_wl
9913         pic_flag=$lt_prog_compiler_pic
9914         compiler_flags=-v
9915         linker_flags=-v
9916         verstring=
9917         output_objdir=.
9918         libname=conftest
9919         lt_save_allow_undefined_flag=$allow_undefined_flag
9920         allow_undefined_flag=
9921         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9922   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }
9926         then
9927           archive_cmds_need_lc=no
9928         else
9929           archive_cmds_need_lc=yes
9930         fi
9931         allow_undefined_flag=$lt_save_allow_undefined_flag
9932       else
9933         cat conftest.err 1>&5
9934       fi
9935       $RM conftest*
9936       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9937 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9938       ;;
9939     esac
9940   fi
9941   ;;
9942 esac
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10101 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10102
10103 if test "$GCC" = yes; then
10104   case $host_os in
10105     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10106     *) lt_awk_arg="/^libraries:/" ;;
10107   esac
10108   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10109   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10110     # if the path contains ";" then we assume it to be the separator
10111     # otherwise default to the standard path separator (i.e. ":") - it is
10112     # assumed that no part of a normal pathname contains ";" but that should
10113     # okay in the real world where ";" in dirpaths is itself problematic.
10114     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10115   else
10116     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10117   fi
10118   # Ok, now we have the path, separated by spaces, we can step through it
10119   # and add multilib dir if necessary.
10120   lt_tmp_lt_search_path_spec=
10121   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10122   for lt_sys_path in $lt_search_path_spec; do
10123     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10124       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10125     else
10126       test -d "$lt_sys_path" && \
10127         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10128     fi
10129   done
10130   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10131 BEGIN {RS=" "; FS="/|\n";} {
10132   lt_foo="";
10133   lt_count=0;
10134   for (lt_i = NF; lt_i > 0; lt_i--) {
10135     if ($lt_i != "" && $lt_i != ".") {
10136       if ($lt_i == "..") {
10137         lt_count++;
10138       } else {
10139         if (lt_count == 0) {
10140           lt_foo="/" $lt_i lt_foo;
10141         } else {
10142           lt_count--;
10143         }
10144       }
10145     }
10146   }
10147   if (lt_foo != "") { lt_freq[lt_foo]++; }
10148   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10149 }'`
10150   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10151 else
10152   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10153 fi
10154 library_names_spec=
10155 libname_spec='lib$name'
10156 soname_spec=
10157 shrext_cmds=".so"
10158 postinstall_cmds=
10159 postuninstall_cmds=
10160 finish_cmds=
10161 finish_eval=
10162 shlibpath_var=
10163 shlibpath_overrides_runpath=unknown
10164 version_type=none
10165 dynamic_linker="$host_os ld.so"
10166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10167 need_lib_prefix=unknown
10168 hardcode_into_libs=no
10169
10170 # when you set need_version to no, make sure it does not cause -set_version
10171 # flags to be left without arguments
10172 need_version=unknown
10173
10174 case $host_os in
10175 aix3*)
10176   version_type=linux
10177   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10178   shlibpath_var=LIBPATH
10179
10180   # AIX 3 has no versioning support, so we append a major version to the name.
10181   soname_spec='${libname}${release}${shared_ext}$major'
10182   ;;
10183
10184 aix[4-9]*)
10185   version_type=linux
10186   need_lib_prefix=no
10187   need_version=no
10188   hardcode_into_libs=yes
10189   if test "$host_cpu" = ia64; then
10190     # AIX 5 supports IA64
10191     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10192     shlibpath_var=LD_LIBRARY_PATH
10193   else
10194     # With GCC up to 2.95.x, collect2 would create an import file
10195     # for dependence libraries.  The import file would start with
10196     # the line `#! .'.  This would cause the generated library to
10197     # depend on `.', always an invalid library.  This was fixed in
10198     # development snapshots of GCC prior to 3.0.
10199     case $host_os in
10200       aix4 | aix4.[01] | aix4.[01].*)
10201       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10202            echo ' yes '
10203            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10204         :
10205       else
10206         can_build_shared=no
10207       fi
10208       ;;
10209     esac
10210     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10211     # soname into executable. Probably we can add versioning support to
10212     # collect2, so additional links can be useful in future.
10213     if test "$aix_use_runtimelinking" = yes; then
10214       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10215       # instead of lib<name>.a to let people know that these are not
10216       # typical AIX shared libraries.
10217       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218     else
10219       # We preserve .a as extension for shared libraries through AIX4.2
10220       # and later when we are not doing run time linking.
10221       library_names_spec='${libname}${release}.a $libname.a'
10222       soname_spec='${libname}${release}${shared_ext}$major'
10223     fi
10224     shlibpath_var=LIBPATH
10225   fi
10226   ;;
10227
10228 amigaos*)
10229   case $host_cpu in
10230   powerpc)
10231     # Since July 2007 AmigaOS4 officially supports .so libraries.
10232     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234     ;;
10235   m68k)
10236     library_names_spec='$libname.ixlibrary $libname.a'
10237     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10238     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'
10239     ;;
10240   esac
10241   ;;
10242
10243 beos*)
10244   library_names_spec='${libname}${shared_ext}'
10245   dynamic_linker="$host_os ld.so"
10246   shlibpath_var=LIBRARY_PATH
10247   ;;
10248
10249 bsdi[45]*)
10250   version_type=linux
10251   need_version=no
10252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253   soname_spec='${libname}${release}${shared_ext}$major'
10254   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10255   shlibpath_var=LD_LIBRARY_PATH
10256   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10257   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10258   # the default ld.so.conf also contains /usr/contrib/lib and
10259   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10260   # libtool to hard-code these into programs
10261   ;;
10262
10263 cygwin* | mingw* | pw32* | cegcc*)
10264   version_type=windows
10265   shrext_cmds=".dll"
10266   need_version=no
10267   need_lib_prefix=no
10268
10269   case $GCC,$host_os in
10270   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10271     library_names_spec='$libname.dll.a'
10272     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10273     postinstall_cmds='base_file=`basename \${file}`~
10274       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10275       dldir=$destdir/`dirname \$dlpath`~
10276       test -d \$dldir || mkdir -p \$dldir~
10277       $install_prog $dir/$dlname \$dldir/$dlname~
10278       chmod a+x \$dldir/$dlname~
10279       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10280         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10281       fi'
10282     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10283       dlpath=$dir/\$dldll~
10284        $RM \$dlpath'
10285     shlibpath_overrides_runpath=yes
10286
10287     case $host_os in
10288     cygwin*)
10289       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10290       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10291       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10292       ;;
10293     mingw* | cegcc*)
10294       # MinGW DLLs use traditional 'lib' prefix
10295       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10296       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10297       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10298         # It is most probably a Windows format PATH printed by
10299         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10300         # path with ; separators, and with drive letters. We can handle the
10301         # drive letters (cygwin fileutils understands them), so leave them,
10302         # especially as we might pass files found there to a mingw objdump,
10303         # which wouldn't understand a cygwinified path. Ahh.
10304         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10305       else
10306         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10307       fi
10308       ;;
10309     pw32*)
10310       # pw32 DLLs use 'pw' prefix rather than 'lib'
10311       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10312       ;;
10313     esac
10314     ;;
10315
10316   *)
10317     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10318     ;;
10319   esac
10320   dynamic_linker='Win32 ld.exe'
10321   # FIXME: first we should search . and the directory the executable is in
10322   shlibpath_var=PATH
10323   ;;
10324
10325 darwin* | rhapsody*)
10326   dynamic_linker="$host_os dyld"
10327   version_type=darwin
10328   need_lib_prefix=no
10329   need_version=no
10330   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10331   soname_spec='${libname}${release}${major}$shared_ext'
10332   shlibpath_overrides_runpath=yes
10333   shlibpath_var=DYLD_LIBRARY_PATH
10334   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10335
10336   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10337   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10338   ;;
10339
10340 dgux*)
10341   version_type=linux
10342   need_lib_prefix=no
10343   need_version=no
10344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10345   soname_spec='${libname}${release}${shared_ext}$major'
10346   shlibpath_var=LD_LIBRARY_PATH
10347   ;;
10348
10349 freebsd1*)
10350   dynamic_linker=no
10351   ;;
10352
10353 freebsd* | dragonfly*)
10354   # DragonFly does not have aout.  When/if they implement a new
10355   # versioning mechanism, adjust this.
10356   if test -x /usr/bin/objformat; then
10357     objformat=`/usr/bin/objformat`
10358   else
10359     case $host_os in
10360     freebsd[123]*) objformat=aout ;;
10361     *) objformat=elf ;;
10362     esac
10363   fi
10364   version_type=freebsd-$objformat
10365   case $version_type in
10366     freebsd-elf*)
10367       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10368       need_version=no
10369       need_lib_prefix=no
10370       ;;
10371     freebsd-*)
10372       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10373       need_version=yes
10374       ;;
10375   esac
10376   shlibpath_var=LD_LIBRARY_PATH
10377   case $host_os in
10378   freebsd2*)
10379     shlibpath_overrides_runpath=yes
10380     ;;
10381   freebsd3.[01]* | freebsdelf3.[01]*)
10382     shlibpath_overrides_runpath=yes
10383     hardcode_into_libs=yes
10384     ;;
10385   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10386   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10387     shlibpath_overrides_runpath=no
10388     hardcode_into_libs=yes
10389     ;;
10390   *) # from 4.6 on, and DragonFly
10391     shlibpath_overrides_runpath=yes
10392     hardcode_into_libs=yes
10393     ;;
10394   esac
10395   ;;
10396
10397 gnu*)
10398   version_type=linux
10399   need_lib_prefix=no
10400   need_version=no
10401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10402   soname_spec='${libname}${release}${shared_ext}$major'
10403   shlibpath_var=LD_LIBRARY_PATH
10404   hardcode_into_libs=yes
10405   ;;
10406
10407 hpux9* | hpux10* | hpux11*)
10408   # Give a soname corresponding to the major version so that dld.sl refuses to
10409   # link against other versions.
10410   version_type=sunos
10411   need_lib_prefix=no
10412   need_version=no
10413   case $host_cpu in
10414   ia64*)
10415     shrext_cmds='.so'
10416     hardcode_into_libs=yes
10417     dynamic_linker="$host_os dld.so"
10418     shlibpath_var=LD_LIBRARY_PATH
10419     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10420     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421     soname_spec='${libname}${release}${shared_ext}$major'
10422     if test "X$HPUX_IA64_MODE" = X32; then
10423       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10424     else
10425       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10426     fi
10427     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10428     ;;
10429   hppa*64*)
10430     shrext_cmds='.sl'
10431     hardcode_into_libs=yes
10432     dynamic_linker="$host_os dld.sl"
10433     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10434     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436     soname_spec='${libname}${release}${shared_ext}$major'
10437     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10438     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10439     ;;
10440   *)
10441     shrext_cmds='.sl'
10442     dynamic_linker="$host_os dld.sl"
10443     shlibpath_var=SHLIB_PATH
10444     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10445     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446     soname_spec='${libname}${release}${shared_ext}$major'
10447     ;;
10448   esac
10449   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10450   postinstall_cmds='chmod 555 $lib'
10451   ;;
10452
10453 interix[3-9]*)
10454   version_type=linux
10455   need_lib_prefix=no
10456   need_version=no
10457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10458   soname_spec='${libname}${release}${shared_ext}$major'
10459   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10460   shlibpath_var=LD_LIBRARY_PATH
10461   shlibpath_overrides_runpath=no
10462   hardcode_into_libs=yes
10463   ;;
10464
10465 irix5* | irix6* | nonstopux*)
10466   case $host_os in
10467     nonstopux*) version_type=nonstopux ;;
10468     *)
10469         if test "$lt_cv_prog_gnu_ld" = yes; then
10470                 version_type=linux
10471         else
10472                 version_type=irix
10473         fi ;;
10474   esac
10475   need_lib_prefix=no
10476   need_version=no
10477   soname_spec='${libname}${release}${shared_ext}$major'
10478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10479   case $host_os in
10480   irix5* | nonstopux*)
10481     libsuff= shlibsuff=
10482     ;;
10483   *)
10484     case $LD in # libtool.m4 will add one of these switches to LD
10485     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10486       libsuff= shlibsuff= libmagic=32-bit;;
10487     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10488       libsuff=32 shlibsuff=N32 libmagic=N32;;
10489     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10490       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10491     *) libsuff= shlibsuff= libmagic=never-match;;
10492     esac
10493     ;;
10494   esac
10495   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10496   shlibpath_overrides_runpath=no
10497   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10498   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10499   hardcode_into_libs=yes
10500   ;;
10501
10502 # No shared lib support for Linux oldld, aout, or coff.
10503 linux*oldld* | linux*aout* | linux*coff*)
10504   dynamic_linker=no
10505   ;;
10506
10507 # This must be Linux ELF.
10508 linux* | k*bsd*-gnu)
10509   version_type=linux
10510   need_lib_prefix=no
10511   need_version=no
10512   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513   soname_spec='${libname}${release}${shared_ext}$major'
10514   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10515   shlibpath_var=LD_LIBRARY_PATH
10516   shlibpath_overrides_runpath=no
10517   # Some binutils ld are patched to set DT_RUNPATH
10518   save_LDFLAGS=$LDFLAGS
10519   save_libdir=$libdir
10520   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10521        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10522   cat >conftest.$ac_ext <<_ACEOF
10523 /* confdefs.h.  */
10524 _ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h.  */
10528
10529 int
10530 main ()
10531 {
10532
10533   ;
10534   return 0;
10535 }
10536 _ACEOF
10537 rm -f conftest.$ac_objext conftest$ac_exeext
10538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539   (eval $ac_link) 2>conftest.er1
10540   ac_status=$?
10541   grep -v '^ *+' conftest.er1 >conftest.err
10542   rm -f conftest.er1
10543   cat conftest.err >&5
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); } &&
10546          { ac_try='test -z "$ac_c_werror_flag"
10547                          || test ! -s conftest.err'
10548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549   (eval $ac_try) 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); }; } &&
10553          { ac_try='test -s conftest$ac_exeext'
10554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555   (eval $ac_try) 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); }; }; then
10559   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10560   shlibpath_overrides_runpath=yes
10561 fi
10562
10563 else
10564   echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567 fi
10568 rm -f conftest.err conftest.$ac_objext \
10569       conftest$ac_exeext conftest.$ac_ext
10570   LDFLAGS=$save_LDFLAGS
10571   libdir=$save_libdir
10572
10573   # This implies no fast_install, which is unacceptable.
10574   # Some rework will be needed to allow for fast_install
10575   # before this can be enabled.
10576   hardcode_into_libs=yes
10577
10578   # Append ld.so.conf contents to the search path
10579   if test -f /etc/ld.so.conf; then
10580     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/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10581     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10582   fi
10583
10584   # We used to test for /lib/ld.so.1 and disable shared libraries on
10585   # powerpc, because MkLinux only supported shared libraries with the
10586   # GNU dynamic linker.  Since this was broken with cross compilers,
10587   # most powerpc-linux boxes support dynamic linking these days and
10588   # people can always --disable-shared, the test was removed, and we
10589   # assume the GNU/Linux dynamic linker is in use.
10590   dynamic_linker='GNU/Linux ld.so'
10591   ;;
10592
10593 netbsd*)
10594   version_type=sunos
10595   need_lib_prefix=no
10596   need_version=no
10597   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10599     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10600     dynamic_linker='NetBSD (a.out) ld.so'
10601   else
10602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10603     soname_spec='${libname}${release}${shared_ext}$major'
10604     dynamic_linker='NetBSD ld.elf_so'
10605   fi
10606   shlibpath_var=LD_LIBRARY_PATH
10607   shlibpath_overrides_runpath=yes
10608   hardcode_into_libs=yes
10609   ;;
10610
10611 newsos6)
10612   version_type=linux
10613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10614   shlibpath_var=LD_LIBRARY_PATH
10615   shlibpath_overrides_runpath=yes
10616   ;;
10617
10618 *nto* | *qnx*)
10619   version_type=qnx
10620   need_lib_prefix=no
10621   need_version=no
10622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623   soname_spec='${libname}${release}${shared_ext}$major'
10624   shlibpath_var=LD_LIBRARY_PATH
10625   shlibpath_overrides_runpath=no
10626   hardcode_into_libs=yes
10627   dynamic_linker='ldqnx.so'
10628   ;;
10629
10630 openbsd*)
10631   version_type=sunos
10632   sys_lib_dlsearch_path_spec="/usr/lib"
10633   need_lib_prefix=no
10634   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10635   case $host_os in
10636     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10637     *)                          need_version=no  ;;
10638   esac
10639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10640   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10641   shlibpath_var=LD_LIBRARY_PATH
10642   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10643     case $host_os in
10644       openbsd2.[89] | openbsd2.[89].*)
10645         shlibpath_overrides_runpath=no
10646         ;;
10647       *)
10648         shlibpath_overrides_runpath=yes
10649         ;;
10650       esac
10651   else
10652     shlibpath_overrides_runpath=yes
10653   fi
10654   ;;
10655
10656 os2*)
10657   libname_spec='$name'
10658   shrext_cmds=".dll"
10659   need_lib_prefix=no
10660   library_names_spec='$libname${shared_ext} $libname.a'
10661   dynamic_linker='OS/2 ld.exe'
10662   shlibpath_var=LIBPATH
10663   ;;
10664
10665 osf3* | osf4* | osf5*)
10666   version_type=osf
10667   need_lib_prefix=no
10668   need_version=no
10669   soname_spec='${libname}${release}${shared_ext}$major'
10670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671   shlibpath_var=LD_LIBRARY_PATH
10672   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10673   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10674   ;;
10675
10676 rdos*)
10677   dynamic_linker=no
10678   ;;
10679
10680 solaris*)
10681   version_type=linux
10682   need_lib_prefix=no
10683   need_version=no
10684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685   soname_spec='${libname}${release}${shared_ext}$major'
10686   shlibpath_var=LD_LIBRARY_PATH
10687   shlibpath_overrides_runpath=yes
10688   hardcode_into_libs=yes
10689   # ldd complains unless libraries are executable
10690   postinstall_cmds='chmod +x $lib'
10691   ;;
10692
10693 sunos4*)
10694   version_type=sunos
10695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10696   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10697   shlibpath_var=LD_LIBRARY_PATH
10698   shlibpath_overrides_runpath=yes
10699   if test "$with_gnu_ld" = yes; then
10700     need_lib_prefix=no
10701   fi
10702   need_version=yes
10703   ;;
10704
10705 sysv4 | sysv4.3*)
10706   version_type=linux
10707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10708   soname_spec='${libname}${release}${shared_ext}$major'
10709   shlibpath_var=LD_LIBRARY_PATH
10710   case $host_vendor in
10711     sni)
10712       shlibpath_overrides_runpath=no
10713       need_lib_prefix=no
10714       runpath_var=LD_RUN_PATH
10715       ;;
10716     siemens)
10717       need_lib_prefix=no
10718       ;;
10719     motorola)
10720       need_lib_prefix=no
10721       need_version=no
10722       shlibpath_overrides_runpath=no
10723       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10724       ;;
10725   esac
10726   ;;
10727
10728 sysv4*MP*)
10729   if test -d /usr/nec ;then
10730     version_type=linux
10731     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10732     soname_spec='$libname${shared_ext}.$major'
10733     shlibpath_var=LD_LIBRARY_PATH
10734   fi
10735   ;;
10736
10737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10738   version_type=freebsd-elf
10739   need_lib_prefix=no
10740   need_version=no
10741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10742   soname_spec='${libname}${release}${shared_ext}$major'
10743   shlibpath_var=LD_LIBRARY_PATH
10744   shlibpath_overrides_runpath=yes
10745   hardcode_into_libs=yes
10746   if test "$with_gnu_ld" = yes; then
10747     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10748   else
10749     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10750     case $host_os in
10751       sco3.2v5*)
10752         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10753         ;;
10754     esac
10755   fi
10756   sys_lib_dlsearch_path_spec='/usr/lib'
10757   ;;
10758
10759 tpf*)
10760   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10761   version_type=linux
10762   need_lib_prefix=no
10763   need_version=no
10764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10765   shlibpath_var=LD_LIBRARY_PATH
10766   shlibpath_overrides_runpath=no
10767   hardcode_into_libs=yes
10768   ;;
10769
10770 uts4*)
10771   version_type=linux
10772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773   soname_spec='${libname}${release}${shared_ext}$major'
10774   shlibpath_var=LD_LIBRARY_PATH
10775   ;;
10776
10777 *)
10778   dynamic_linker=no
10779   ;;
10780 esac
10781 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10782 echo "${ECHO_T}$dynamic_linker" >&6
10783 test "$dynamic_linker" = no && can_build_shared=no
10784
10785 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10786 if test "$GCC" = yes; then
10787   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10788 fi
10789
10790 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10791   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10792 fi
10793 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10794   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10795 fi
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10884 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10885 hardcode_action=
10886 if test -n "$hardcode_libdir_flag_spec" ||
10887    test -n "$runpath_var" ||
10888    test "X$hardcode_automatic" = "Xyes" ; then
10889
10890   # We can hardcode non-existent directories.
10891   if test "$hardcode_direct" != no &&
10892      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10893      # have to relink, otherwise we might link with an installed library
10894      # when we should be linking with a yet-to-be-installed one
10895      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10896      test "$hardcode_minus_L" != no; then
10897     # Linking always hardcodes the temporary library directory.
10898     hardcode_action=relink
10899   else
10900     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10901     hardcode_action=immediate
10902   fi
10903 else
10904   # We cannot hardcode anything, or else we can only hardcode existing
10905   # directories.
10906   hardcode_action=unsupported
10907 fi
10908 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10909 echo "${ECHO_T}$hardcode_action" >&6
10910
10911 if test "$hardcode_action" = relink ||
10912    test "$inherit_rpath" = yes; then
10913   # Fast installation is not supported
10914   enable_fast_install=no
10915 elif test "$shlibpath_overrides_runpath" = yes ||
10916      test "$enable_shared" = no; then
10917   # Fast installation is not necessary
10918   enable_fast_install=needless
10919 fi
10920
10921
10922
10923
10924
10925
10926   if test "x$enable_dlopen" != xyes; then
10927   enable_dlopen=unknown
10928   enable_dlopen_self=unknown
10929   enable_dlopen_self_static=unknown
10930 else
10931   lt_cv_dlopen=no
10932   lt_cv_dlopen_libs=
10933
10934   case $host_os in
10935   beos*)
10936     lt_cv_dlopen="load_add_on"
10937     lt_cv_dlopen_libs=
10938     lt_cv_dlopen_self=yes
10939     ;;
10940
10941   mingw* | pw32* | cegcc*)
10942     lt_cv_dlopen="LoadLibrary"
10943     lt_cv_dlopen_libs=
10944     ;;
10945
10946   cygwin*)
10947     lt_cv_dlopen="dlopen"
10948     lt_cv_dlopen_libs=
10949     ;;
10950
10951   darwin*)
10952   # if libdl is installed we need to link against it
10953     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10954 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10955 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10956   echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958   ac_check_lib_save_LIBS=$LIBS
10959 LIBS="-ldl  $LIBS"
10960 cat >conftest.$ac_ext <<_ACEOF
10961 /* confdefs.h.  */
10962 _ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h.  */
10966
10967 /* Override any gcc2 internal prototype to avoid an error.  */
10968 #ifdef __cplusplus
10969 extern "C"
10970 #endif
10971 /* We use char because int might match the return type of a gcc2
10972    builtin and then its argument prototype would still apply.  */
10973 char dlopen ();
10974 int
10975 main ()
10976 {
10977 dlopen ();
10978   ;
10979   return 0;
10980 }
10981 _ACEOF
10982 rm -f conftest.$ac_objext conftest$ac_exeext
10983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10984   (eval $ac_link) 2>conftest.er1
10985   ac_status=$?
10986   grep -v '^ *+' conftest.er1 >conftest.err
10987   rm -f conftest.er1
10988   cat conftest.err >&5
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); } &&
10991          { ac_try='test -z "$ac_c_werror_flag"
10992                          || test ! -s conftest.err'
10993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994   (eval $ac_try) 2>&5
10995   ac_status=$?
10996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997   (exit $ac_status); }; } &&
10998          { ac_try='test -s conftest$ac_exeext'
10999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000   (eval $ac_try) 2>&5
11001   ac_status=$?
11002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003   (exit $ac_status); }; }; then
11004   ac_cv_lib_dl_dlopen=yes
11005 else
11006   echo "$as_me: failed program was:" >&5
11007 sed 's/^/| /' conftest.$ac_ext >&5
11008
11009 ac_cv_lib_dl_dlopen=no
11010 fi
11011 rm -f conftest.err conftest.$ac_objext \
11012       conftest$ac_exeext conftest.$ac_ext
11013 LIBS=$ac_check_lib_save_LIBS
11014 fi
11015 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11016 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11017 if test $ac_cv_lib_dl_dlopen = yes; then
11018   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11019 else
11020
11021     lt_cv_dlopen="dyld"
11022     lt_cv_dlopen_libs=
11023     lt_cv_dlopen_self=yes
11024
11025 fi
11026
11027     ;;
11028
11029   *)
11030     echo "$as_me:$LINENO: checking for shl_load" >&5
11031 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11032 if test "${ac_cv_func_shl_load+set}" = set; then
11033   echo $ECHO_N "(cached) $ECHO_C" >&6
11034 else
11035   cat >conftest.$ac_ext <<_ACEOF
11036 /* confdefs.h.  */
11037 _ACEOF
11038 cat confdefs.h >>conftest.$ac_ext
11039 cat >>conftest.$ac_ext <<_ACEOF
11040 /* end confdefs.h.  */
11041 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11043 #define shl_load innocuous_shl_load
11044
11045 /* System header to define __stub macros and hopefully few prototypes,
11046     which can conflict with char shl_load (); below.
11047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11048     <limits.h> exists even on freestanding compilers.  */
11049
11050 #ifdef __STDC__
11051 # include <limits.h>
11052 #else
11053 # include <assert.h>
11054 #endif
11055
11056 #undef shl_load
11057
11058 /* Override any gcc2 internal prototype to avoid an error.  */
11059 #ifdef __cplusplus
11060 extern "C"
11061 {
11062 #endif
11063 /* We use char because int might match the return type of a gcc2
11064    builtin and then its argument prototype would still apply.  */
11065 char shl_load ();
11066 /* The GNU C library defines this for functions which it implements
11067     to always fail with ENOSYS.  Some functions are actually named
11068     something starting with __ and the normal name is an alias.  */
11069 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11070 choke me
11071 #else
11072 char (*f) () = shl_load;
11073 #endif
11074 #ifdef __cplusplus
11075 }
11076 #endif
11077
11078 int
11079 main ()
11080 {
11081 return f != shl_load;
11082   ;
11083   return 0;
11084 }
11085 _ACEOF
11086 rm -f conftest.$ac_objext conftest$ac_exeext
11087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11088   (eval $ac_link) 2>conftest.er1
11089   ac_status=$?
11090   grep -v '^ *+' conftest.er1 >conftest.err
11091   rm -f conftest.er1
11092   cat conftest.err >&5
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); } &&
11095          { ac_try='test -z "$ac_c_werror_flag"
11096                          || test ! -s conftest.err'
11097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098   (eval $ac_try) 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); }; } &&
11102          { ac_try='test -s conftest$ac_exeext'
11103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104   (eval $ac_try) 2>&5
11105   ac_status=$?
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); }; }; then
11108   ac_cv_func_shl_load=yes
11109 else
11110   echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11112
11113 ac_cv_func_shl_load=no
11114 fi
11115 rm -f conftest.err conftest.$ac_objext \
11116       conftest$ac_exeext conftest.$ac_ext
11117 fi
11118 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11119 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11120 if test $ac_cv_func_shl_load = yes; then
11121   lt_cv_dlopen="shl_load"
11122 else
11123   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11124 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11125 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11126   echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128   ac_check_lib_save_LIBS=$LIBS
11129 LIBS="-ldld  $LIBS"
11130 cat >conftest.$ac_ext <<_ACEOF
11131 /* confdefs.h.  */
11132 _ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h.  */
11136
11137 /* Override any gcc2 internal prototype to avoid an error.  */
11138 #ifdef __cplusplus
11139 extern "C"
11140 #endif
11141 /* We use char because int might match the return type of a gcc2
11142    builtin and then its argument prototype would still apply.  */
11143 char shl_load ();
11144 int
11145 main ()
11146 {
11147 shl_load ();
11148   ;
11149   return 0;
11150 }
11151 _ACEOF
11152 rm -f conftest.$ac_objext conftest$ac_exeext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11154   (eval $ac_link) 2>conftest.er1
11155   ac_status=$?
11156   grep -v '^ *+' conftest.er1 >conftest.err
11157   rm -f conftest.er1
11158   cat conftest.err >&5
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); } &&
11161          { ac_try='test -z "$ac_c_werror_flag"
11162                          || test ! -s conftest.err'
11163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164   (eval $ac_try) 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); }; } &&
11168          { ac_try='test -s conftest$ac_exeext'
11169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170   (eval $ac_try) 2>&5
11171   ac_status=$?
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); }; }; then
11174   ac_cv_lib_dld_shl_load=yes
11175 else
11176   echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11178
11179 ac_cv_lib_dld_shl_load=no
11180 fi
11181 rm -f conftest.err conftest.$ac_objext \
11182       conftest$ac_exeext conftest.$ac_ext
11183 LIBS=$ac_check_lib_save_LIBS
11184 fi
11185 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11186 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11187 if test $ac_cv_lib_dld_shl_load = yes; then
11188   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11189 else
11190   echo "$as_me:$LINENO: checking for dlopen" >&5
11191 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11192 if test "${ac_cv_func_dlopen+set}" = set; then
11193   echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195   cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h.  */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h.  */
11201 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11203 #define dlopen innocuous_dlopen
11204
11205 /* System header to define __stub macros and hopefully few prototypes,
11206     which can conflict with char dlopen (); below.
11207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11208     <limits.h> exists even on freestanding compilers.  */
11209
11210 #ifdef __STDC__
11211 # include <limits.h>
11212 #else
11213 # include <assert.h>
11214 #endif
11215
11216 #undef dlopen
11217
11218 /* Override any gcc2 internal prototype to avoid an error.  */
11219 #ifdef __cplusplus
11220 extern "C"
11221 {
11222 #endif
11223 /* We use char because int might match the return type of a gcc2
11224    builtin and then its argument prototype would still apply.  */
11225 char dlopen ();
11226 /* The GNU C library defines this for functions which it implements
11227     to always fail with ENOSYS.  Some functions are actually named
11228     something starting with __ and the normal name is an alias.  */
11229 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11230 choke me
11231 #else
11232 char (*f) () = dlopen;
11233 #endif
11234 #ifdef __cplusplus
11235 }
11236 #endif
11237
11238 int
11239 main ()
11240 {
11241 return f != dlopen;
11242   ;
11243   return 0;
11244 }
11245 _ACEOF
11246 rm -f conftest.$ac_objext conftest$ac_exeext
11247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11248   (eval $ac_link) 2>conftest.er1
11249   ac_status=$?
11250   grep -v '^ *+' conftest.er1 >conftest.err
11251   rm -f conftest.er1
11252   cat conftest.err >&5
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } &&
11255          { ac_try='test -z "$ac_c_werror_flag"
11256                          || test ! -s conftest.err'
11257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258   (eval $ac_try) 2>&5
11259   ac_status=$?
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); }; } &&
11262          { ac_try='test -s conftest$ac_exeext'
11263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264   (eval $ac_try) 2>&5
11265   ac_status=$?
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); }; }; then
11268   ac_cv_func_dlopen=yes
11269 else
11270   echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11272
11273 ac_cv_func_dlopen=no
11274 fi
11275 rm -f conftest.err conftest.$ac_objext \
11276       conftest$ac_exeext conftest.$ac_ext
11277 fi
11278 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11279 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11280 if test $ac_cv_func_dlopen = yes; then
11281   lt_cv_dlopen="dlopen"
11282 else
11283   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11284 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11285 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11286   echo $ECHO_N "(cached) $ECHO_C" >&6
11287 else
11288   ac_check_lib_save_LIBS=$LIBS
11289 LIBS="-ldl  $LIBS"
11290 cat >conftest.$ac_ext <<_ACEOF
11291 /* confdefs.h.  */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h.  */
11296
11297 /* Override any gcc2 internal prototype to avoid an error.  */
11298 #ifdef __cplusplus
11299 extern "C"
11300 #endif
11301 /* We use char because int might match the return type of a gcc2
11302    builtin and then its argument prototype would still apply.  */
11303 char dlopen ();
11304 int
11305 main ()
11306 {
11307 dlopen ();
11308   ;
11309   return 0;
11310 }
11311 _ACEOF
11312 rm -f conftest.$ac_objext conftest$ac_exeext
11313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11314   (eval $ac_link) 2>conftest.er1
11315   ac_status=$?
11316   grep -v '^ *+' conftest.er1 >conftest.err
11317   rm -f conftest.er1
11318   cat conftest.err >&5
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); } &&
11321          { ac_try='test -z "$ac_c_werror_flag"
11322                          || test ! -s conftest.err'
11323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324   (eval $ac_try) 2>&5
11325   ac_status=$?
11326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327   (exit $ac_status); }; } &&
11328          { ac_try='test -s conftest$ac_exeext'
11329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330   (eval $ac_try) 2>&5
11331   ac_status=$?
11332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333   (exit $ac_status); }; }; then
11334   ac_cv_lib_dl_dlopen=yes
11335 else
11336   echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11338
11339 ac_cv_lib_dl_dlopen=no
11340 fi
11341 rm -f conftest.err conftest.$ac_objext \
11342       conftest$ac_exeext conftest.$ac_ext
11343 LIBS=$ac_check_lib_save_LIBS
11344 fi
11345 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11346 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11347 if test $ac_cv_lib_dl_dlopen = yes; then
11348   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11349 else
11350   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11351 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11352 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11353   echo $ECHO_N "(cached) $ECHO_C" >&6
11354 else
11355   ac_check_lib_save_LIBS=$LIBS
11356 LIBS="-lsvld  $LIBS"
11357 cat >conftest.$ac_ext <<_ACEOF
11358 /* confdefs.h.  */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h.  */
11363
11364 /* Override any gcc2 internal prototype to avoid an error.  */
11365 #ifdef __cplusplus
11366 extern "C"
11367 #endif
11368 /* We use char because int might match the return type of a gcc2
11369    builtin and then its argument prototype would still apply.  */
11370 char dlopen ();
11371 int
11372 main ()
11373 {
11374 dlopen ();
11375   ;
11376   return 0;
11377 }
11378 _ACEOF
11379 rm -f conftest.$ac_objext conftest$ac_exeext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11381   (eval $ac_link) 2>conftest.er1
11382   ac_status=$?
11383   grep -v '^ *+' conftest.er1 >conftest.err
11384   rm -f conftest.er1
11385   cat conftest.err >&5
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); } &&
11388          { ac_try='test -z "$ac_c_werror_flag"
11389                          || test ! -s conftest.err'
11390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391   (eval $ac_try) 2>&5
11392   ac_status=$?
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); }; } &&
11395          { ac_try='test -s conftest$ac_exeext'
11396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397   (eval $ac_try) 2>&5
11398   ac_status=$?
11399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); }; }; then
11401   ac_cv_lib_svld_dlopen=yes
11402 else
11403   echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.$ac_ext >&5
11405
11406 ac_cv_lib_svld_dlopen=no
11407 fi
11408 rm -f conftest.err conftest.$ac_objext \
11409       conftest$ac_exeext conftest.$ac_ext
11410 LIBS=$ac_check_lib_save_LIBS
11411 fi
11412 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11413 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11414 if test $ac_cv_lib_svld_dlopen = yes; then
11415   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11416 else
11417   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11418 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11419 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11420   echo $ECHO_N "(cached) $ECHO_C" >&6
11421 else
11422   ac_check_lib_save_LIBS=$LIBS
11423 LIBS="-ldld  $LIBS"
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h.  */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h.  */
11430
11431 /* Override any gcc2 internal prototype to avoid an error.  */
11432 #ifdef __cplusplus
11433 extern "C"
11434 #endif
11435 /* We use char because int might match the return type of a gcc2
11436    builtin and then its argument prototype would still apply.  */
11437 char dld_link ();
11438 int
11439 main ()
11440 {
11441 dld_link ();
11442   ;
11443   return 0;
11444 }
11445 _ACEOF
11446 rm -f conftest.$ac_objext conftest$ac_exeext
11447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11448   (eval $ac_link) 2>conftest.er1
11449   ac_status=$?
11450   grep -v '^ *+' conftest.er1 >conftest.err
11451   rm -f conftest.er1
11452   cat conftest.err >&5
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); } &&
11455          { ac_try='test -z "$ac_c_werror_flag"
11456                          || test ! -s conftest.err'
11457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458   (eval $ac_try) 2>&5
11459   ac_status=$?
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); }; } &&
11462          { ac_try='test -s conftest$ac_exeext'
11463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464   (eval $ac_try) 2>&5
11465   ac_status=$?
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); }; }; then
11468   ac_cv_lib_dld_dld_link=yes
11469 else
11470   echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11472
11473 ac_cv_lib_dld_dld_link=no
11474 fi
11475 rm -f conftest.err conftest.$ac_objext \
11476       conftest$ac_exeext conftest.$ac_ext
11477 LIBS=$ac_check_lib_save_LIBS
11478 fi
11479 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11480 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11481 if test $ac_cv_lib_dld_dld_link = yes; then
11482   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11483 fi
11484
11485
11486 fi
11487
11488
11489 fi
11490
11491
11492 fi
11493
11494
11495 fi
11496
11497
11498 fi
11499
11500     ;;
11501   esac
11502
11503   if test "x$lt_cv_dlopen" != xno; then
11504     enable_dlopen=yes
11505   else
11506     enable_dlopen=no
11507   fi
11508
11509   case $lt_cv_dlopen in
11510   dlopen)
11511     save_CPPFLAGS="$CPPFLAGS"
11512     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11513
11514     save_LDFLAGS="$LDFLAGS"
11515     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11516
11517     save_LIBS="$LIBS"
11518     LIBS="$lt_cv_dlopen_libs $LIBS"
11519
11520     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11521 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11522 if test "${lt_cv_dlopen_self+set}" = set; then
11523   echo $ECHO_N "(cached) $ECHO_C" >&6
11524 else
11525           if test "$cross_compiling" = yes; then :
11526   lt_cv_dlopen_self=cross
11527 else
11528   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11529   lt_status=$lt_dlunknown
11530   cat > conftest.$ac_ext <<_LT_EOF
11531 #line 11531 "configure"
11532 #include "confdefs.h"
11533
11534 #if HAVE_DLFCN_H
11535 #include <dlfcn.h>
11536 #endif
11537
11538 #include <stdio.h>
11539
11540 #ifdef RTLD_GLOBAL
11541 #  define LT_DLGLOBAL           RTLD_GLOBAL
11542 #else
11543 #  ifdef DL_GLOBAL
11544 #    define LT_DLGLOBAL         DL_GLOBAL
11545 #  else
11546 #    define LT_DLGLOBAL         0
11547 #  endif
11548 #endif
11549
11550 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11551    find out it does not work in some platform. */
11552 #ifndef LT_DLLAZY_OR_NOW
11553 #  ifdef RTLD_LAZY
11554 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11555 #  else
11556 #    ifdef DL_LAZY
11557 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11558 #    else
11559 #      ifdef RTLD_NOW
11560 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11561 #      else
11562 #        ifdef DL_NOW
11563 #          define LT_DLLAZY_OR_NOW      DL_NOW
11564 #        else
11565 #          define LT_DLLAZY_OR_NOW      0
11566 #        endif
11567 #      endif
11568 #    endif
11569 #  endif
11570 #endif
11571
11572 void fnord() { int i=42;}
11573 int main ()
11574 {
11575   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11576   int status = $lt_dlunknown;
11577
11578   if (self)
11579     {
11580       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11581       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11582       /* dlclose (self); */
11583     }
11584   else
11585     puts (dlerror ());
11586
11587   return status;
11588 }
11589 _LT_EOF
11590   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11591   (eval $ac_link) 2>&5
11592   ac_status=$?
11593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11595     (./conftest; exit; ) >&5 2>/dev/null
11596     lt_status=$?
11597     case x$lt_status in
11598       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11599       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11600       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11601     esac
11602   else :
11603     # compilation failed
11604     lt_cv_dlopen_self=no
11605   fi
11606 fi
11607 rm -fr conftest*
11608
11609
11610 fi
11611 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11612 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11613
11614     if test "x$lt_cv_dlopen_self" = xyes; then
11615       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11616       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11617 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11618 if test "${lt_cv_dlopen_self_static+set}" = set; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621           if test "$cross_compiling" = yes; then :
11622   lt_cv_dlopen_self_static=cross
11623 else
11624   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11625   lt_status=$lt_dlunknown
11626   cat > conftest.$ac_ext <<_LT_EOF
11627 #line 11627 "configure"
11628 #include "confdefs.h"
11629
11630 #if HAVE_DLFCN_H
11631 #include <dlfcn.h>
11632 #endif
11633
11634 #include <stdio.h>
11635
11636 #ifdef RTLD_GLOBAL
11637 #  define LT_DLGLOBAL           RTLD_GLOBAL
11638 #else
11639 #  ifdef DL_GLOBAL
11640 #    define LT_DLGLOBAL         DL_GLOBAL
11641 #  else
11642 #    define LT_DLGLOBAL         0
11643 #  endif
11644 #endif
11645
11646 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11647    find out it does not work in some platform. */
11648 #ifndef LT_DLLAZY_OR_NOW
11649 #  ifdef RTLD_LAZY
11650 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11651 #  else
11652 #    ifdef DL_LAZY
11653 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11654 #    else
11655 #      ifdef RTLD_NOW
11656 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11657 #      else
11658 #        ifdef DL_NOW
11659 #          define LT_DLLAZY_OR_NOW      DL_NOW
11660 #        else
11661 #          define LT_DLLAZY_OR_NOW      0
11662 #        endif
11663 #      endif
11664 #    endif
11665 #  endif
11666 #endif
11667
11668 void fnord() { int i=42;}
11669 int main ()
11670 {
11671   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11672   int status = $lt_dlunknown;
11673
11674   if (self)
11675     {
11676       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11677       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11678       /* dlclose (self); */
11679     }
11680   else
11681     puts (dlerror ());
11682
11683   return status;
11684 }
11685 _LT_EOF
11686   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11687   (eval $ac_link) 2>&5
11688   ac_status=$?
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11691     (./conftest; exit; ) >&5 2>/dev/null
11692     lt_status=$?
11693     case x$lt_status in
11694       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11695       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11696       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11697     esac
11698   else :
11699     # compilation failed
11700     lt_cv_dlopen_self_static=no
11701   fi
11702 fi
11703 rm -fr conftest*
11704
11705
11706 fi
11707 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11708 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11709     fi
11710
11711     CPPFLAGS="$save_CPPFLAGS"
11712     LDFLAGS="$save_LDFLAGS"
11713     LIBS="$save_LIBS"
11714     ;;
11715   esac
11716
11717   case $lt_cv_dlopen_self in
11718   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11719   *) enable_dlopen_self=unknown ;;
11720   esac
11721
11722   case $lt_cv_dlopen_self_static in
11723   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11724   *) enable_dlopen_self_static=unknown ;;
11725   esac
11726 fi
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744 striplib=
11745 old_striplib=
11746 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11747 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11748 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11749   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11750   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11751   echo "$as_me:$LINENO: result: yes" >&5
11752 echo "${ECHO_T}yes" >&6
11753 else
11754 # FIXME - insert some real tests, host_os isn't really good enough
11755   case $host_os in
11756   darwin*)
11757     if test -n "$STRIP" ; then
11758       striplib="$STRIP -x"
11759       old_striplib="$STRIP -S"
11760       echo "$as_me:$LINENO: result: yes" >&5
11761 echo "${ECHO_T}yes" >&6
11762     else
11763       echo "$as_me:$LINENO: result: no" >&5
11764 echo "${ECHO_T}no" >&6
11765     fi
11766     ;;
11767   *)
11768     echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6
11770     ;;
11771   esac
11772 fi
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785   # Report which library types will actually be built
11786   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11787 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11788   echo "$as_me:$LINENO: result: $can_build_shared" >&5
11789 echo "${ECHO_T}$can_build_shared" >&6
11790
11791   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11792 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11793   test "$can_build_shared" = "no" && enable_shared=no
11794
11795   # On AIX, shared libraries and static libraries use the same namespace, and
11796   # are all built from PIC.
11797   case $host_os in
11798   aix3*)
11799     test "$enable_shared" = yes && enable_static=no
11800     if test -n "$RANLIB"; then
11801       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11802       postinstall_cmds='$RANLIB $lib'
11803     fi
11804     ;;
11805
11806   aix[4-9]*)
11807     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11808       test "$enable_shared" = yes && enable_static=no
11809     fi
11810     ;;
11811   esac
11812   echo "$as_me:$LINENO: result: $enable_shared" >&5
11813 echo "${ECHO_T}$enable_shared" >&6
11814
11815   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11816 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11817   # Make sure either enable_shared or enable_static is yes.
11818   test "$enable_shared" = yes || enable_static=yes
11819   echo "$as_me:$LINENO: result: $enable_static" >&5
11820 echo "${ECHO_T}$enable_static" >&6
11821
11822
11823
11824
11825 fi
11826 ac_ext=c
11827 ac_cpp='$CPP $CPPFLAGS'
11828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11831
11832 CC="$lt_save_CC"
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846                   ac_config_commands="$ac_config_commands libtool"
11847
11848
11849
11850
11851 # Only expand once:
11852
11853
11854
11855
11856
11857 if test "${ac_cv_header_stdint_h+set}" = set; then
11858   echo "$as_me:$LINENO: checking for stdint.h" >&5
11859 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11860 if test "${ac_cv_header_stdint_h+set}" = set; then
11861   echo $ECHO_N "(cached) $ECHO_C" >&6
11862 fi
11863 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11864 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11865 else
11866   # Is the header compilable?
11867 echo "$as_me:$LINENO: checking stdint.h usability" >&5
11868 echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
11869 cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h.  */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h.  */
11875 $ac_includes_default
11876 #include <stdint.h>
11877 _ACEOF
11878 rm -f conftest.$ac_objext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11880   (eval $ac_compile) 2>conftest.er1
11881   ac_status=$?
11882   grep -v '^ *+' conftest.er1 >conftest.err
11883   rm -f conftest.er1
11884   cat conftest.err >&5
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); } &&
11887          { ac_try='test -z "$ac_c_werror_flag"
11888                          || test ! -s conftest.err'
11889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890   (eval $ac_try) 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; } &&
11894          { ac_try='test -s conftest.$ac_objext'
11895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896   (eval $ac_try) 2>&5
11897   ac_status=$?
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); }; }; then
11900   ac_header_compiler=yes
11901 else
11902   echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11904
11905 ac_header_compiler=no
11906 fi
11907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11908 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11909 echo "${ECHO_T}$ac_header_compiler" >&6
11910
11911 # Is the header present?
11912 echo "$as_me:$LINENO: checking stdint.h presence" >&5
11913 echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
11914 cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h.  */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h.  */
11920 #include <stdint.h>
11921 _ACEOF
11922 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11923   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11924   ac_status=$?
11925   grep -v '^ *+' conftest.er1 >conftest.err
11926   rm -f conftest.er1
11927   cat conftest.err >&5
11928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929   (exit $ac_status); } >/dev/null; then
11930   if test -s conftest.err; then
11931     ac_cpp_err=$ac_c_preproc_warn_flag
11932     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11933   else
11934     ac_cpp_err=
11935   fi
11936 else
11937   ac_cpp_err=yes
11938 fi
11939 if test -z "$ac_cpp_err"; then
11940   ac_header_preproc=yes
11941 else
11942   echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945   ac_header_preproc=no
11946 fi
11947 rm -f conftest.err conftest.$ac_ext
11948 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11949 echo "${ECHO_T}$ac_header_preproc" >&6
11950
11951 # So?  What about this header?
11952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11953   yes:no: )
11954     { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
11955 echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11956     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
11957 echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
11958     ac_header_preproc=yes
11959     ;;
11960   no:yes:* )
11961     { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
11962 echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
11963     { echo "$as_me:$LINENO: WARNING: stdint.h:     check for missing prerequisite headers?" >&5
11964 echo "$as_me: WARNING: stdint.h:     check for missing prerequisite headers?" >&2;}
11965     { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
11966 echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
11967     { echo "$as_me:$LINENO: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&5
11968 echo "$as_me: WARNING: stdint.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11969     { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
11970 echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
11971     { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
11972 echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
11973     (
11974       cat <<\_ASBOX
11975 ## ------------------------------------- ##
11976 ## Report this to the libmudflap lists.  ##
11977 ## ------------------------------------- ##
11978 _ASBOX
11979     ) |
11980       sed "s/^/$as_me: WARNING:     /" >&2
11981     ;;
11982 esac
11983 echo "$as_me:$LINENO: checking for stdint.h" >&5
11984 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
11985 if test "${ac_cv_header_stdint_h+set}" = set; then
11986   echo $ECHO_N "(cached) $ECHO_C" >&6
11987 else
11988   ac_cv_header_stdint_h=$ac_header_preproc
11989 fi
11990 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
11991 echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
11992
11993 fi
11994 if test $ac_cv_header_stdint_h = yes; then
11995   MF_HAVE_STDINT_H=1
11996 else
11997   MF_HAVE_STDINT_H=0
11998 fi
11999
12000
12001
12002 if test $MF_HAVE_STDINT_H = 1
12003 then
12004    MF_HAVE_UINTPTR_T=1
12005 else
12006    cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h.  */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h.  */
12012 #include <sys/types.h>
12013 int
12014 main ()
12015 {
12016 uintptr_t k = 0;
12017   ;
12018   return 0;
12019 }
12020 _ACEOF
12021 rm -f conftest.$ac_objext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12023   (eval $ac_compile) 2>conftest.er1
12024   ac_status=$?
12025   grep -v '^ *+' conftest.er1 >conftest.err
12026   rm -f conftest.er1
12027   cat conftest.err >&5
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); } &&
12030          { ac_try='test -z "$ac_c_werror_flag"
12031                          || test ! -s conftest.err'
12032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033   (eval $ac_try) 2>&5
12034   ac_status=$?
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); }; } &&
12037          { ac_try='test -s conftest.$ac_objext'
12038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039   (eval $ac_try) 2>&5
12040   ac_status=$?
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); }; }; then
12043   MF_HAVE_UINTPTR_T=1
12044 else
12045   echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048 MF_HAVE_UINTPTR_T=0
12049 fi
12050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12051 fi
12052
12053
12054 if test ! -d pth
12055 then
12056   # libmudflapth objects are built in this subdirectory
12057   mkdir pth
12058 fi
12059
12060
12061 for ac_header in pthread.h
12062 do
12063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12065   echo "$as_me:$LINENO: checking for $ac_header" >&5
12066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12068   echo $ECHO_N "(cached) $ECHO_C" >&6
12069 fi
12070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12072 else
12073   # Is the header compilable?
12074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12076 cat >conftest.$ac_ext <<_ACEOF
12077 /* confdefs.h.  */
12078 _ACEOF
12079 cat confdefs.h >>conftest.$ac_ext
12080 cat >>conftest.$ac_ext <<_ACEOF
12081 /* end confdefs.h.  */
12082 $ac_includes_default
12083 #include <$ac_header>
12084 _ACEOF
12085 rm -f conftest.$ac_objext
12086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12087   (eval $ac_compile) 2>conftest.er1
12088   ac_status=$?
12089   grep -v '^ *+' conftest.er1 >conftest.err
12090   rm -f conftest.er1
12091   cat conftest.err >&5
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); } &&
12094          { ac_try='test -z "$ac_c_werror_flag"
12095                          || test ! -s conftest.err'
12096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097   (eval $ac_try) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; } &&
12101          { ac_try='test -s conftest.$ac_objext'
12102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12103   (eval $ac_try) 2>&5
12104   ac_status=$?
12105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106   (exit $ac_status); }; }; then
12107   ac_header_compiler=yes
12108 else
12109   echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 ac_header_compiler=no
12113 fi
12114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12116 echo "${ECHO_T}$ac_header_compiler" >&6
12117
12118 # Is the header present?
12119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12121 cat >conftest.$ac_ext <<_ACEOF
12122 /* confdefs.h.  */
12123 _ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h.  */
12127 #include <$ac_header>
12128 _ACEOF
12129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12131   ac_status=$?
12132   grep -v '^ *+' conftest.er1 >conftest.err
12133   rm -f conftest.er1
12134   cat conftest.err >&5
12135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136   (exit $ac_status); } >/dev/null; then
12137   if test -s conftest.err; then
12138     ac_cpp_err=$ac_c_preproc_warn_flag
12139     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12140   else
12141     ac_cpp_err=
12142   fi
12143 else
12144   ac_cpp_err=yes
12145 fi
12146 if test -z "$ac_cpp_err"; then
12147   ac_header_preproc=yes
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151
12152   ac_header_preproc=no
12153 fi
12154 rm -f conftest.err conftest.$ac_ext
12155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12156 echo "${ECHO_T}$ac_header_preproc" >&6
12157
12158 # So?  What about this header?
12159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12160   yes:no: )
12161     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12165     ac_header_preproc=yes
12166     ;;
12167   no:yes:* )
12168     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12170     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12171 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12172     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12174     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12175 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12176     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12178     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12180     (
12181       cat <<\_ASBOX
12182 ## ------------------------------------- ##
12183 ## Report this to the libmudflap lists.  ##
12184 ## ------------------------------------- ##
12185 _ASBOX
12186     ) |
12187       sed "s/^/$as_me: WARNING:     /" >&2
12188     ;;
12189 esac
12190 echo "$as_me:$LINENO: checking for $ac_header" >&5
12191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12193   echo $ECHO_N "(cached) $ECHO_C" >&6
12194 else
12195   eval "$as_ac_Header=\$ac_header_preproc"
12196 fi
12197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12199
12200 fi
12201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12202   cat >>confdefs.h <<_ACEOF
12203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12204 _ACEOF
12205
12206 fi
12207
12208 done
12209
12210
12211 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
12212 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
12213 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
12214 echo "$as_me:$LINENO: result: $target_thread_file" >&5
12215 echo "${ECHO_T}$target_thread_file" >&6
12216
12217 # We only support posix threads, or no threads at all.
12218 posix_threads=
12219 case ${target_thread_file} in
12220   posix)
12221     posix_threads=yes
12222     ;;
12223   single)
12224     ;;
12225   *)
12226     echo "${target_thread_file} is an unsupported thread package" 1>&2
12227     exit 1
12228     ;;
12229 esac
12230
12231
12232
12233 if test "x$posix_threads" != "x"; then
12234   LIBMUDFLAPTH_TRUE=
12235   LIBMUDFLAPTH_FALSE='#'
12236 else
12237   LIBMUDFLAPTH_TRUE='#'
12238   LIBMUDFLAPTH_FALSE=
12239 fi
12240
12241 if test "x$posix_threads" != "x"
12242 then
12243         build_libmudflapth=1
12244 else
12245         build_libmudflapth=0
12246 fi
12247
12248
12249
12250 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
12251 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
12252 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
12253   echo $ECHO_N "(cached) $ECHO_C" >&6
12254 else
12255   ac_check_lib_save_LIBS=$LIBS
12256 LIBS="-ldl  $LIBS"
12257 cat >conftest.$ac_ext <<_ACEOF
12258 /* confdefs.h.  */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h.  */
12263
12264 /* Override any gcc2 internal prototype to avoid an error.  */
12265 #ifdef __cplusplus
12266 extern "C"
12267 #endif
12268 /* We use char because int might match the return type of a gcc2
12269    builtin and then its argument prototype would still apply.  */
12270 char dlsym ();
12271 int
12272 main ()
12273 {
12274 dlsym ();
12275   ;
12276   return 0;
12277 }
12278 _ACEOF
12279 rm -f conftest.$ac_objext conftest$ac_exeext
12280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12281   (eval $ac_link) 2>conftest.er1
12282   ac_status=$?
12283   grep -v '^ *+' conftest.er1 >conftest.err
12284   rm -f conftest.er1
12285   cat conftest.err >&5
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); } &&
12288          { ac_try='test -z "$ac_c_werror_flag"
12289                          || test ! -s conftest.err'
12290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291   (eval $ac_try) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); }; } &&
12295          { ac_try='test -s conftest$ac_exeext'
12296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12297   (eval $ac_try) 2>&5
12298   ac_status=$?
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); }; }; then
12301   ac_cv_lib_dl_dlsym=yes
12302 else
12303   echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12305
12306 ac_cv_lib_dl_dlsym=no
12307 fi
12308 rm -f conftest.err conftest.$ac_objext \
12309       conftest$ac_exeext conftest.$ac_ext
12310 LIBS=$ac_check_lib_save_LIBS
12311 fi
12312 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
12313 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
12314 if test $ac_cv_lib_dl_dlsym = yes; then
12315   cat >>confdefs.h <<_ACEOF
12316 #define HAVE_LIBDL 1
12317 _ACEOF
12318
12319   LIBS="-ldl $LIBS"
12320
12321 fi
12322
12323
12324 # Calculate toolexeclibdir
12325 # Also toolexecdir, though it's only used in toolexeclibdir
12326 case ${version_specific_libs} in
12327   yes)
12328     # Need the gcc compiler version to know where to install libraries
12329     # and header files if --enable-version-specific-runtime-libs option
12330     # is selected.
12331     toolexecdir='$(libdir)/gcc/$(target_alias)'
12332     toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
12333     ;;
12334   no)
12335     if test -n "$with_cross_host" &&
12336        test x"$with_cross_host" != x"no"; then
12337       # Install a library built with a cross compiler in tooldir, not libdir.
12338       toolexecdir='$(exec_prefix)/$(target_alias)'
12339       toolexeclibdir='$(toolexecdir)/lib'
12340     else
12341       toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12342       toolexeclibdir='$(libdir)'
12343     fi
12344     multi_os_directory=`$CC -print-multi-os-directory`
12345     case $multi_os_directory in
12346       .) ;; # Avoid trailing /.
12347       *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12348     esac
12349     ;;
12350 esac
12351
12352
12353
12354 includedir=${toolexecdir}/include
12355
12356
12357 pthread_create_version='""'
12358 if test "x$enable_shared" = "xyes" && test "x$posix_threads" != "x"; then
12359   # NB: don't check for -lpthread here, because then it would be
12360   # added to LIBS.  For the thread-unaware libmudflap.la, we don't
12361   # want it there.
12362
12363   # glibc-related hacks.  dlsym() may pick the wrong version of
12364   # interposed functions like pthread_create on modern glibc.
12365   # We need to find the proper symbol version string, and use
12366   # the nonstandard dlvsym().
12367
12368 for ac_func in dlvsym
12369 do
12370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12371 echo "$as_me:$LINENO: checking for $ac_func" >&5
12372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12373 if eval "test \"\${$as_ac_var+set}\" = set"; then
12374   echo $ECHO_N "(cached) $ECHO_C" >&6
12375 else
12376   cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h.  */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h.  */
12382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12384 #define $ac_func innocuous_$ac_func
12385
12386 /* System header to define __stub macros and hopefully few prototypes,
12387     which can conflict with char $ac_func (); below.
12388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12389     <limits.h> exists even on freestanding compilers.  */
12390
12391 #ifdef __STDC__
12392 # include <limits.h>
12393 #else
12394 # include <assert.h>
12395 #endif
12396
12397 #undef $ac_func
12398
12399 /* Override any gcc2 internal prototype to avoid an error.  */
12400 #ifdef __cplusplus
12401 extern "C"
12402 {
12403 #endif
12404 /* We use char because int might match the return type of a gcc2
12405    builtin and then its argument prototype would still apply.  */
12406 char $ac_func ();
12407 /* The GNU C library defines this for functions which it implements
12408     to always fail with ENOSYS.  Some functions are actually named
12409     something starting with __ and the normal name is an alias.  */
12410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12411 choke me
12412 #else
12413 char (*f) () = $ac_func;
12414 #endif
12415 #ifdef __cplusplus
12416 }
12417 #endif
12418
12419 int
12420 main ()
12421 {
12422 return f != $ac_func;
12423   ;
12424   return 0;
12425 }
12426 _ACEOF
12427 rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429   (eval $ac_link) 2>conftest.er1
12430   ac_status=$?
12431   grep -v '^ *+' conftest.er1 >conftest.err
12432   rm -f conftest.er1
12433   cat conftest.err >&5
12434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435   (exit $ac_status); } &&
12436          { ac_try='test -z "$ac_c_werror_flag"
12437                          || test ! -s conftest.err'
12438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439   (eval $ac_try) 2>&5
12440   ac_status=$?
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); }; } &&
12443          { ac_try='test -s conftest$ac_exeext'
12444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445   (eval $ac_try) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); }; }; then
12449   eval "$as_ac_var=yes"
12450 else
12451   echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12453
12454 eval "$as_ac_var=no"
12455 fi
12456 rm -f conftest.err conftest.$ac_objext \
12457       conftest$ac_exeext conftest.$ac_ext
12458 fi
12459 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12460 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12461 if test `eval echo '${'$as_ac_var'}'` = yes; then
12462   cat >>confdefs.h <<_ACEOF
12463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12464 _ACEOF
12465
12466 fi
12467 done
12468
12469   if test -n "$ac_tool_prefix"; then
12470   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
12471 set dummy ${ac_tool_prefix}nm; ac_word=$2
12472 echo "$as_me:$LINENO: checking for $ac_word" >&5
12473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12474 if test "${ac_cv_prog_NM+set}" = set; then
12475   echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477   if test -n "$NM"; then
12478   ac_cv_prog_NM="$NM" # Let the user override the test.
12479 else
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12482 do
12483   IFS=$as_save_IFS
12484   test -z "$as_dir" && as_dir=.
12485   for ac_exec_ext in '' $ac_executable_extensions; do
12486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12487     ac_cv_prog_NM="${ac_tool_prefix}nm"
12488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12489     break 2
12490   fi
12491 done
12492 done
12493
12494 fi
12495 fi
12496 NM=$ac_cv_prog_NM
12497 if test -n "$NM"; then
12498   echo "$as_me:$LINENO: result: $NM" >&5
12499 echo "${ECHO_T}$NM" >&6
12500 else
12501   echo "$as_me:$LINENO: result: no" >&5
12502 echo "${ECHO_T}no" >&6
12503 fi
12504
12505 fi
12506 if test -z "$ac_cv_prog_NM"; then
12507   ac_ct_NM=$NM
12508   # Extract the first word of "nm", so it can be a program name with args.
12509 set dummy nm; ac_word=$2
12510 echo "$as_me:$LINENO: checking for $ac_word" >&5
12511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12512 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
12513   echo $ECHO_N "(cached) $ECHO_C" >&6
12514 else
12515   if test -n "$ac_ct_NM"; then
12516   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
12517 else
12518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12519 for as_dir in $PATH
12520 do
12521   IFS=$as_save_IFS
12522   test -z "$as_dir" && as_dir=.
12523   for ac_exec_ext in '' $ac_executable_extensions; do
12524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12525     ac_cv_prog_ac_ct_NM="nm"
12526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12527     break 2
12528   fi
12529 done
12530 done
12531
12532 fi
12533 fi
12534 ac_ct_NM=$ac_cv_prog_ac_ct_NM
12535 if test -n "$ac_ct_NM"; then
12536   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
12537 echo "${ECHO_T}$ac_ct_NM" >&6
12538 else
12539   echo "$as_me:$LINENO: result: no" >&5
12540 echo "${ECHO_T}no" >&6
12541 fi
12542
12543   NM=$ac_ct_NM
12544 else
12545   NM="$ac_cv_prog_NM"
12546 fi
12547
12548   if test "x$ac_cv_have_dlvsym" != "x"; then
12549     # Try compiling a simple pthreads program.  Find the shared libraries it
12550     # ends up with.  Then use "nm" on those libraries to extract the
12551     # default symbol versioning suffix ("@@"), if any.  But that's tricky.
12552     # Rather, run nm on the resulting executable.  Unfortunately, autoconf
12553     # doesn't appear to have a macro that builds a test executable for
12554     # subsequent analysis ... so we do it by hand here.
12555     cat >> conftest.c << EOF
12556 #include <pthread.h>
12557 int main () { void *p = (void *) & pthread_create; return (int) p; }
12558 EOF
12559     oldLIBS="$LIBS"
12560     LIBS="$LIBS -lpthread"
12561     pthread_create_version="\"\""
12562     echo "$as_me:$LINENO: checking pthread_create symbol version" >&5
12563 echo $ECHO_N "checking pthread_create symbol version... $ECHO_C" >&6
12564     if eval $ac_link 2>&5 && test -s conftest${ac_exeext}; then
12565       version=`$NM conftest${ac_exeect} | grep 'pthread_create@@' | sed -e 's/^.*@@//'`
12566       if test "x$version" != "x"; then
12567         pthread_create_version="\"$version\""
12568       fi
12569     fi
12570     echo "$as_me:$LINENO: result: $pthread_create_version" >&5
12571 echo "${ECHO_T}$pthread_create_version" >&6
12572     LIBS="$oldLIBS"
12573   fi
12574 fi
12575
12576 cat >>confdefs.h <<_ACEOF
12577 #define PTHREAD_CREATE_VERSION $pthread_create_version
12578 _ACEOF
12579
12580
12581
12582 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
12583 # similarly to how libstdc++ does it
12584 ac_test_CFLAGS="${CFLAGS+set}"
12585 ac_save_CFLAGS="$CFLAGS"
12586
12587 # Check for -ffunction-sections -fdata-sections
12588 echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
12589 echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
12590 CFLAGS='-Werror -ffunction-sections -fdata-sections'
12591 cat >conftest.$ac_ext <<_ACEOF
12592 /* confdefs.h.  */
12593 _ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h.  */
12597
12598 int
12599 main ()
12600 {
12601 int foo;
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12608   (eval $ac_compile) 2>conftest.er1
12609   ac_status=$?
12610   grep -v '^ *+' conftest.er1 >conftest.err
12611   rm -f conftest.er1
12612   cat conftest.err >&5
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); } &&
12615          { ac_try='test -z "$ac_c_werror_flag"
12616                          || test ! -s conftest.err'
12617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618   (eval $ac_try) 2>&5
12619   ac_status=$?
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); }; } &&
12622          { ac_try='test -s conftest.$ac_objext'
12623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624   (eval $ac_try) 2>&5
12625   ac_status=$?
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); }; }; then
12628   ac_fdsections=yes
12629 else
12630   echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12632
12633 ac_fdsections=no
12634 fi
12635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12636 if test "$ac_test_CFLAGS" = set; then
12637   CFLAGS="$ac_save_CFLAGS"
12638 else
12639   # this is the suspicious part
12640   CFLAGS=""
12641 fi
12642 if test x"$ac_fdsections" = x"yes"; then
12643   SECTION_FLAGS='-ffunction-sections -fdata-sections'
12644 fi
12645 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
12646 echo "${ECHO_T}$ac_fdsections" >&6
12647
12648
12649
12650 # Check for the name of the symbol used for the entry point.
12651 echo "$as_me:$LINENO: checking for the name of the symbol used for the entry point" >&5
12652 echo $ECHO_N "checking for the name of the symbol used for the entry point... $ECHO_C" >&6
12653 if test "${mudflap_cv_entry_point+set}" = set; then
12654   echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656
12657 for name in _start __start unknown; do
12658   cat >conftest.$ac_ext <<_ACEOF
12659 /* confdefs.h.  */
12660 _ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h.  */
12664 extern char $name[];
12665 int
12666 main ()
12667 {
12668 $name[0] = 0;
12669   ;
12670   return 0;
12671 }
12672 _ACEOF
12673 rm -f conftest.$ac_objext conftest$ac_exeext
12674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12675   (eval $ac_link) 2>conftest.er1
12676   ac_status=$?
12677   grep -v '^ *+' conftest.er1 >conftest.err
12678   rm -f conftest.er1
12679   cat conftest.err >&5
12680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); } &&
12682          { ac_try='test -z "$ac_c_werror_flag"
12683                          || test ! -s conftest.err'
12684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685   (eval $ac_try) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; } &&
12689          { ac_try='test -s conftest$ac_exeext'
12690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691   (eval $ac_try) 2>&5
12692   ac_status=$?
12693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694   (exit $ac_status); }; }; then
12695   break
12696 else
12697   echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12699
12700 fi
12701 rm -f conftest.err conftest.$ac_objext \
12702       conftest$ac_exeext conftest.$ac_ext
12703 done
12704 mudflap_cv_entry_point="$name"
12705 fi
12706 echo "$as_me:$LINENO: result: $mudflap_cv_entry_point" >&5
12707 echo "${ECHO_T}$mudflap_cv_entry_point" >&6
12708 if test "$mudflap_cv_entry_point" = unknown; then
12709   { { echo "$as_me:$LINENO: error: none of the known symbol names works" >&5
12710 echo "$as_me: error: none of the known symbol names works" >&2;}
12711    { (exit 1); exit 1; }; }
12712 fi
12713
12714 cat >>confdefs.h <<_ACEOF
12715 #define ENTRY_POINT $mudflap_cv_entry_point
12716 _ACEOF
12717
12718
12719
12720 if test ${multilib} = yes; then
12721   multilib_arg="--enable-multilib"
12722 else
12723   multilib_arg=
12724 fi
12725
12726 # See if we support thread-local storage.
12727
12728    # Check whether --enable-tls or --disable-tls was given.
12729 if test "${enable_tls+set}" = set; then
12730   enableval="$enable_tls"
12731
12732       case "$enableval" in
12733        yes|no) ;;
12734        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
12735 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
12736    { (exit 1); exit 1; }; } ;;
12737       esac
12738
12739 else
12740   enable_tls=yes
12741 fi;
12742
12743   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
12744 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
12745 if test "${gcc_cv_have_tls+set}" = set; then
12746   echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748
12749     if test "$cross_compiling" = yes; then
12750                 cat >conftest.$ac_ext <<_ACEOF
12751 __thread int a; int b; int main() { return a = b; }
12752 _ACEOF
12753 rm -f conftest.$ac_objext conftest$ac_exeext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12755   (eval $ac_link) 2>conftest.er1
12756   ac_status=$?
12757   grep -v '^ *+' conftest.er1 >conftest.err
12758   rm -f conftest.er1
12759   cat conftest.err >&5
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); } &&
12762          { ac_try='test -z "$ac_c_werror_flag"
12763                          || test ! -s conftest.err'
12764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765   (eval $ac_try) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); }; } &&
12769          { ac_try='test -s conftest$ac_exeext'
12770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771   (eval $ac_try) 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; }; then
12775   gcc_cv_have_tls=yes
12776 else
12777   echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780 gcc_cv_have_tls=no
12781 fi
12782 rm -f conftest.err conftest.$ac_objext \
12783       conftest$ac_exeext conftest.$ac_ext
12784
12785
12786 else
12787   cat >conftest.$ac_ext <<_ACEOF
12788 __thread int a; int b; int main() { return a = b; }
12789 _ACEOF
12790 rm -f conftest$ac_exeext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792   (eval $ac_link) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797   (eval $ac_try) 2>&5
12798   ac_status=$?
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); }; }; then
12801                       chktls_save_LDFLAGS="$LDFLAGS"
12802       LDFLAGS="-static $LDFLAGS"
12803       cat >conftest.$ac_ext <<_ACEOF
12804 int main() { return 0; }
12805 _ACEOF
12806 rm -f conftest.$ac_objext conftest$ac_exeext
12807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12808   (eval $ac_link) 2>conftest.er1
12809   ac_status=$?
12810   grep -v '^ *+' conftest.er1 >conftest.err
12811   rm -f conftest.er1
12812   cat conftest.err >&5
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); } &&
12815          { ac_try='test -z "$ac_c_werror_flag"
12816                          || test ! -s conftest.err'
12817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818   (eval $ac_try) 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); }; } &&
12822          { ac_try='test -s conftest$ac_exeext'
12823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12824   (eval $ac_try) 2>&5
12825   ac_status=$?
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); }; }; then
12828   if test "$cross_compiling" = yes; then
12829   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12830 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12831 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12832 See \`config.log' for more details." >&5
12833 echo "$as_me: error: cannot run test program while cross compiling
12834 See \`config.log' for more details." >&2;}
12835    { (exit 1); exit 1; }; }; }
12836 else
12837   cat >conftest.$ac_ext <<_ACEOF
12838 __thread int a; int b; int main() { return a = b; }
12839 _ACEOF
12840 rm -f conftest$ac_exeext
12841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12842   (eval $ac_link) 2>&5
12843   ac_status=$?
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847   (eval $ac_try) 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); }; }; then
12851   gcc_cv_have_tls=yes
12852 else
12853   echo "$as_me: program exited with status $ac_status" >&5
12854 echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857 ( exit $ac_status )
12858 gcc_cv_have_tls=no
12859 fi
12860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12861 fi
12862 else
12863   echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12865
12866 gcc_cv_have_tls=yes
12867 fi
12868 rm -f conftest.err conftest.$ac_objext \
12869       conftest$ac_exeext conftest.$ac_ext
12870       LDFLAGS="$chktls_save_LDFLAGS"
12871       if test $gcc_cv_have_tls = yes; then
12872                                                 chktls_save_CFLAGS="$CFLAGS"
12873         thread_CFLAGS=failed
12874         for flag in '' '-pthread' '-lpthread'; do
12875           CFLAGS="$flag $chktls_save_CFLAGS"
12876           cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h.  */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h.  */
12882 #include <pthread.h>
12883                 void *g(void *d) { return NULL; }
12884 int
12885 main ()
12886 {
12887 pthread_t t; pthread_create(&t,NULL,g,NULL);
12888   ;
12889   return 0;
12890 }
12891 _ACEOF
12892 rm -f conftest.$ac_objext conftest$ac_exeext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12894   (eval $ac_link) 2>conftest.er1
12895   ac_status=$?
12896   grep -v '^ *+' conftest.er1 >conftest.err
12897   rm -f conftest.er1
12898   cat conftest.err >&5
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); } &&
12901          { ac_try='test -z "$ac_c_werror_flag"
12902                          || test ! -s conftest.err'
12903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904   (eval $ac_try) 2>&5
12905   ac_status=$?
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); }; } &&
12908          { ac_try='test -s conftest$ac_exeext'
12909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910   (eval $ac_try) 2>&5
12911   ac_status=$?
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); }; }; then
12914   thread_CFLAGS="$flag"
12915 else
12916   echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12918
12919 fi
12920 rm -f conftest.err conftest.$ac_objext \
12921       conftest$ac_exeext conftest.$ac_ext
12922           if test "X$thread_CFLAGS" != Xfailed; then
12923             break
12924           fi
12925         done
12926         CFLAGS="$chktls_save_CFLAGS"
12927         if test "X$thread_CFLAGS" != Xfailed; then
12928           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
12929           if test "$cross_compiling" = yes; then
12930   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12931 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12932 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12933 See \`config.log' for more details." >&5
12934 echo "$as_me: error: cannot run test program while cross compiling
12935 See \`config.log' for more details." >&2;}
12936    { (exit 1); exit 1; }; }; }
12937 else
12938   cat >conftest.$ac_ext <<_ACEOF
12939 /* confdefs.h.  */
12940 _ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h.  */
12944 #include <pthread.h>
12945                 __thread int a;
12946                 static int *a_in_other_thread;
12947                 static void *
12948                 thread_func (void *arg)
12949                 {
12950                   a_in_other_thread = &a;
12951                   return (void *)0;
12952                 }
12953 int
12954 main ()
12955 {
12956 pthread_t thread;
12957                 void *thread_retval;
12958                 int *a_in_main_thread;
12959                 if (pthread_create (&thread, (pthread_attr_t *)0,
12960                                     thread_func, (void *)0))
12961                   return 0;
12962                 a_in_main_thread = &a;
12963                 if (pthread_join (thread, &thread_retval))
12964                   return 0;
12965                 return (a_in_other_thread == a_in_main_thread);
12966   ;
12967   return 0;
12968 }
12969 _ACEOF
12970 rm -f conftest$ac_exeext
12971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12972   (eval $ac_link) 2>&5
12973   ac_status=$?
12974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977   (eval $ac_try) 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }; }; then
12981   gcc_cv_have_tls=yes
12982 else
12983   echo "$as_me: program exited with status $ac_status" >&5
12984 echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12986
12987 ( exit $ac_status )
12988 gcc_cv_have_tls=no
12989 fi
12990 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12991 fi
12992           CFLAGS="$chktls_save_CFLAGS"
12993         fi
12994       fi
12995 else
12996   echo "$as_me: program exited with status $ac_status" >&5
12997 echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
12999
13000 ( exit $ac_status )
13001 gcc_cv_have_tls=no
13002 fi
13003 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13004 fi
13005 fi
13006 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
13007 echo "${ECHO_T}$gcc_cv_have_tls" >&6
13008   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
13009
13010 cat >>confdefs.h <<\_ACEOF
13011 #define HAVE_TLS 1
13012 _ACEOF
13013
13014   fi
13015
13016                               ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/mfconfig.exp"
13017
13018 cat >confcache <<\_ACEOF
13019 # This file is a shell script that caches the results of configure
13020 # tests run on this system so they can be shared between configure
13021 # scripts and configure runs, see configure's option --config-cache.
13022 # It is not useful on other systems.  If it contains results you don't
13023 # want to keep, you may remove or edit it.
13024 #
13025 # config.status only pays attention to the cache file if you give it
13026 # the --recheck option to rerun configure.
13027 #
13028 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13029 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13030 # following values.
13031
13032 _ACEOF
13033
13034 # The following way of writing the cache mishandles newlines in values,
13035 # but we know of no workaround that is simple, portable, and efficient.
13036 # So, don't put newlines in cache variables' values.
13037 # Ultrix sh set writes to stderr and can't be redirected directly,
13038 # and sets the high bit in the cache file unless we assign to the vars.
13039 {
13040   (set) 2>&1 |
13041     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13042     *ac_space=\ *)
13043       # `set' does not quote correctly, so add quotes (double-quote
13044       # substitution turns \\\\ into \\, and sed turns \\ into \).
13045       sed -n \
13046         "s/'/'\\\\''/g;
13047           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13048       ;;
13049     *)
13050       # `set' quotes correctly as required by POSIX, so do not add quotes.
13051       sed -n \
13052         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13053       ;;
13054     esac;
13055 } |
13056   sed '
13057      t clear
13058      : clear
13059      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13060      t end
13061      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13062      : end' >>confcache
13063 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13064   if test -w $cache_file; then
13065     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13066     cat confcache >$cache_file
13067   else
13068     echo "not updating unwritable cache $cache_file"
13069   fi
13070 fi
13071 rm -f confcache
13072
13073 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13074 # Let make expand exec_prefix.
13075 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13076
13077 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13078 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13079 # trailing colons and then remove the whole line if VPATH becomes empty
13080 # (actually we leave an empty line to preserve line numbers).
13081 if test "x$srcdir" = x.; then
13082   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13083 s/:*\$(srcdir):*/:/;
13084 s/:*\${srcdir}:*/:/;
13085 s/:*@srcdir@:*/:/;
13086 s/^\([^=]*=[     ]*\):*/\1/;
13087 s/:*$//;
13088 s/^[^=]*=[       ]*$//;
13089 }'
13090 fi
13091
13092 DEFS=-DHAVE_CONFIG_H
13093
13094 ac_libobjs=
13095 ac_ltlibobjs=
13096 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13097   # 1. Remove the extension, and $U if already installed.
13098   ac_i=`echo "$ac_i" |
13099          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13100   # 2. Add them.
13101   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13102   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13103 done
13104 LIBOBJS=$ac_libobjs
13105
13106 LTLIBOBJS=$ac_ltlibobjs
13107
13108
13109 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13110   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13111 Usually this means the macro was only invoked conditionally." >&5
13112 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13113 Usually this means the macro was only invoked conditionally." >&2;}
13114    { (exit 1); exit 1; }; }
13115 fi
13116 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13117   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13118 Usually this means the macro was only invoked conditionally." >&5
13119 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13120 Usually this means the macro was only invoked conditionally." >&2;}
13121    { (exit 1); exit 1; }; }
13122 fi
13123 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13124   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13125 Usually this means the macro was only invoked conditionally." >&5
13126 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13127 Usually this means the macro was only invoked conditionally." >&2;}
13128    { (exit 1); exit 1; }; }
13129 fi
13130 if test -z "${LIBMUDFLAPTH_TRUE}" && test -z "${LIBMUDFLAPTH_FALSE}"; then
13131   { { echo "$as_me:$LINENO: error: conditional \"LIBMUDFLAPTH\" was never defined.
13132 Usually this means the macro was only invoked conditionally." >&5
13133 echo "$as_me: error: conditional \"LIBMUDFLAPTH\" was never defined.
13134 Usually this means the macro was only invoked conditionally." >&2;}
13135    { (exit 1); exit 1; }; }
13136 fi
13137
13138 : ${CONFIG_STATUS=./config.status}
13139 ac_clean_files_save=$ac_clean_files
13140 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13141 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13142 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13143 cat >$CONFIG_STATUS <<_ACEOF
13144 #! $SHELL
13145 # Generated by $as_me.
13146 # Run this file to recreate the current configuration.
13147 # Compiler output produced by configure, useful for debugging
13148 # configure, is in config.log if it exists.
13149
13150 debug=false
13151 ac_cs_recheck=false
13152 ac_cs_silent=false
13153 SHELL=\${CONFIG_SHELL-$SHELL}
13154 _ACEOF
13155
13156 cat >>$CONFIG_STATUS <<\_ACEOF
13157 ## --------------------- ##
13158 ## M4sh Initialization.  ##
13159 ## --------------------- ##
13160
13161 # Be Bourne compatible
13162 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13163   emulate sh
13164   NULLCMD=:
13165   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13166   # is contrary to our usage.  Disable this feature.
13167   alias -g '${1+"$@"}'='"$@"'
13168 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13169   set -o posix
13170 fi
13171 DUALCASE=1; export DUALCASE # for MKS sh
13172
13173 # Support unset when possible.
13174 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13175   as_unset=unset
13176 else
13177   as_unset=false
13178 fi
13179
13180
13181 # Work around bugs in pre-3.0 UWIN ksh.
13182 $as_unset ENV MAIL MAILPATH
13183 PS1='$ '
13184 PS2='> '
13185 PS4='+ '
13186
13187 # NLS nuisances.
13188 for as_var in \
13189   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13190   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13191   LC_TELEPHONE LC_TIME
13192 do
13193   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13194     eval $as_var=C; export $as_var
13195   else
13196     $as_unset $as_var
13197   fi
13198 done
13199
13200 # Required to use basename.
13201 if expr a : '\(a\)' >/dev/null 2>&1; then
13202   as_expr=expr
13203 else
13204   as_expr=false
13205 fi
13206
13207 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13208   as_basename=basename
13209 else
13210   as_basename=false
13211 fi
13212
13213
13214 # Name of the executable.
13215 as_me=`$as_basename "$0" ||
13216 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13217          X"$0" : 'X\(//\)$' \| \
13218          X"$0" : 'X\(/\)$' \| \
13219          .     : '\(.\)' 2>/dev/null ||
13220 echo X/"$0" |
13221     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13222           /^X\/\(\/\/\)$/{ s//\1/; q; }
13223           /^X\/\(\/\).*/{ s//\1/; q; }
13224           s/.*/./; q'`
13225
13226
13227 # PATH needs CR, and LINENO needs CR and PATH.
13228 # Avoid depending upon Character Ranges.
13229 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13230 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13231 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13232 as_cr_digits='0123456789'
13233 as_cr_alnum=$as_cr_Letters$as_cr_digits
13234
13235 # The user is always right.
13236 if test "${PATH_SEPARATOR+set}" != set; then
13237   echo "#! /bin/sh" >conf$$.sh
13238   echo  "exit 0"   >>conf$$.sh
13239   chmod +x conf$$.sh
13240   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13241     PATH_SEPARATOR=';'
13242   else
13243     PATH_SEPARATOR=:
13244   fi
13245   rm -f conf$$.sh
13246 fi
13247
13248
13249   as_lineno_1=$LINENO
13250   as_lineno_2=$LINENO
13251   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13252   test "x$as_lineno_1" != "x$as_lineno_2" &&
13253   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13254   # Find who we are.  Look in the path if we contain no path at all
13255   # relative or not.
13256   case $0 in
13257     *[\\/]* ) as_myself=$0 ;;
13258     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13259 for as_dir in $PATH
13260 do
13261   IFS=$as_save_IFS
13262   test -z "$as_dir" && as_dir=.
13263   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13264 done
13265
13266        ;;
13267   esac
13268   # We did not find ourselves, most probably we were run as `sh COMMAND'
13269   # in which case we are not to be found in the path.
13270   if test "x$as_myself" = x; then
13271     as_myself=$0
13272   fi
13273   if test ! -f "$as_myself"; then
13274     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13275 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13276    { (exit 1); exit 1; }; }
13277   fi
13278   case $CONFIG_SHELL in
13279   '')
13280     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13282 do
13283   IFS=$as_save_IFS
13284   test -z "$as_dir" && as_dir=.
13285   for as_base in sh bash ksh sh5; do
13286          case $as_dir in
13287          /*)
13288            if ("$as_dir/$as_base" -c '
13289   as_lineno_1=$LINENO
13290   as_lineno_2=$LINENO
13291   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13292   test "x$as_lineno_1" != "x$as_lineno_2" &&
13293   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13294              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13295              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13296              CONFIG_SHELL=$as_dir/$as_base
13297              export CONFIG_SHELL
13298              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13299            fi;;
13300          esac
13301        done
13302 done
13303 ;;
13304   esac
13305
13306   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13307   # uniformly replaced by the line number.  The first 'sed' inserts a
13308   # line-number line before each line; the second 'sed' does the real
13309   # work.  The second script uses 'N' to pair each line-number line
13310   # with the numbered line, and appends trailing '-' during
13311   # substitution so that $LINENO is not a special case at line end.
13312   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13313   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13314   sed '=' <$as_myself |
13315     sed '
13316       N
13317       s,$,-,
13318       : loop
13319       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13320       t loop
13321       s,-$,,
13322       s,^['$as_cr_digits']*\n,,
13323     ' >$as_me.lineno &&
13324   chmod +x $as_me.lineno ||
13325     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13326 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13327    { (exit 1); exit 1; }; }
13328
13329   # Don't try to exec as it changes $[0], causing all sort of problems
13330   # (the dirname of $[0] is not the place where we might find the
13331   # original and so on.  Autoconf is especially sensible to this).
13332   . ./$as_me.lineno
13333   # Exit status is that of the last command.
13334   exit
13335 }
13336
13337
13338 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13339   *c*,-n*) ECHO_N= ECHO_C='
13340 ' ECHO_T='      ' ;;
13341   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13342   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13343 esac
13344
13345 if expr a : '\(a\)' >/dev/null 2>&1; then
13346   as_expr=expr
13347 else
13348   as_expr=false
13349 fi
13350
13351 rm -f conf$$ conf$$.exe conf$$.file
13352 echo >conf$$.file
13353 if ln -s conf$$.file conf$$ 2>/dev/null; then
13354   # We could just check for DJGPP; but this test a) works b) is more generic
13355   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13356   if test -f conf$$.exe; then
13357     # Don't use ln at all; we don't have any links
13358     as_ln_s='cp -p'
13359   else
13360     as_ln_s='ln -s'
13361   fi
13362 elif ln conf$$.file conf$$ 2>/dev/null; then
13363   as_ln_s=ln
13364 else
13365   as_ln_s='cp -p'
13366 fi
13367 rm -f conf$$ conf$$.exe conf$$.file
13368
13369 if mkdir -p . 2>/dev/null; then
13370   as_mkdir_p=:
13371 else
13372   test -d ./-p && rmdir ./-p
13373   as_mkdir_p=false
13374 fi
13375
13376 as_executable_p="test -f"
13377
13378 # Sed expression to map a string onto a valid CPP name.
13379 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13380
13381 # Sed expression to map a string onto a valid variable name.
13382 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13383
13384
13385 # IFS
13386 # We need space, tab and new line, in precisely that order.
13387 as_nl='
13388 '
13389 IFS="   $as_nl"
13390
13391 # CDPATH.
13392 $as_unset CDPATH
13393
13394 exec 6>&1
13395
13396 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13397 # report actual input values of CONFIG_FILES etc. instead of their
13398 # values after options handling.  Logging --version etc. is OK.
13399 exec 5>>config.log
13400 {
13401   echo
13402   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13403 ## Running $as_me. ##
13404 _ASBOX
13405 } >&5
13406 cat >&5 <<_CSEOF
13407
13408 This file was extended by libmudflap $as_me 1.0, which was
13409 generated by GNU Autoconf 2.59.  Invocation command line was
13410
13411   CONFIG_FILES    = $CONFIG_FILES
13412   CONFIG_HEADERS  = $CONFIG_HEADERS
13413   CONFIG_LINKS    = $CONFIG_LINKS
13414   CONFIG_COMMANDS = $CONFIG_COMMANDS
13415   $ $0 $@
13416
13417 _CSEOF
13418 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13419 echo >&5
13420 _ACEOF
13421
13422 # Files that config.status was made for.
13423 if test -n "$ac_config_files"; then
13424   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13425 fi
13426
13427 if test -n "$ac_config_headers"; then
13428   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13429 fi
13430
13431 if test -n "$ac_config_links"; then
13432   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13433 fi
13434
13435 if test -n "$ac_config_commands"; then
13436   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13437 fi
13438
13439 cat >>$CONFIG_STATUS <<\_ACEOF
13440
13441 ac_cs_usage="\
13442 \`$as_me' instantiates files from templates according to the
13443 current configuration.
13444
13445 Usage: $0 [OPTIONS] [FILE]...
13446
13447   -h, --help       print this help, then exit
13448   -V, --version    print version number, then exit
13449   -q, --quiet      do not print progress messages
13450   -d, --debug      don't remove temporary files
13451       --recheck    update $as_me by reconfiguring in the same conditions
13452   --file=FILE[:TEMPLATE]
13453                    instantiate the configuration file FILE
13454   --header=FILE[:TEMPLATE]
13455                    instantiate the configuration header FILE
13456
13457 Configuration files:
13458 $config_files
13459
13460 Configuration headers:
13461 $config_headers
13462
13463 Configuration commands:
13464 $config_commands
13465
13466 Report bugs to <bug-autoconf@gnu.org>."
13467 _ACEOF
13468
13469 cat >>$CONFIG_STATUS <<_ACEOF
13470 ac_cs_version="\\
13471 libmudflap config.status 1.0
13472 configured by $0, generated by GNU Autoconf 2.59,
13473   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13474
13475 Copyright (C) 2003 Free Software Foundation, Inc.
13476 This config.status script is free software; the Free Software Foundation
13477 gives unlimited permission to copy, distribute and modify it."
13478 srcdir=$srcdir
13479 INSTALL="$INSTALL"
13480 _ACEOF
13481
13482 cat >>$CONFIG_STATUS <<\_ACEOF
13483 # If no file are specified by the user, then we need to provide default
13484 # value.  By we need to know if files were specified by the user.
13485 ac_need_defaults=:
13486 while test $# != 0
13487 do
13488   case $1 in
13489   --*=*)
13490     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13491     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13492     ac_shift=:
13493     ;;
13494   -*)
13495     ac_option=$1
13496     ac_optarg=$2
13497     ac_shift=shift
13498     ;;
13499   *) # This is not an option, so the user has probably given explicit
13500      # arguments.
13501      ac_option=$1
13502      ac_need_defaults=false;;
13503   esac
13504
13505   case $ac_option in
13506   # Handling of the options.
13507 _ACEOF
13508 cat >>$CONFIG_STATUS <<\_ACEOF
13509   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13510     ac_cs_recheck=: ;;
13511   --version | --vers* | -V )
13512     echo "$ac_cs_version"; exit 0 ;;
13513   --he | --h)
13514     # Conflict between --help and --header
13515     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13516 Try \`$0 --help' for more information." >&5
13517 echo "$as_me: error: ambiguous option: $1
13518 Try \`$0 --help' for more information." >&2;}
13519    { (exit 1); exit 1; }; };;
13520   --help | --hel | -h )
13521     echo "$ac_cs_usage"; exit 0 ;;
13522   --debug | --d* | -d )
13523     debug=: ;;
13524   --file | --fil | --fi | --f )
13525     $ac_shift
13526     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13527     ac_need_defaults=false;;
13528   --header | --heade | --head | --hea )
13529     $ac_shift
13530     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13531     ac_need_defaults=false;;
13532   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13533   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13534     ac_cs_silent=: ;;
13535
13536   # This is an error.
13537   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13538 Try \`$0 --help' for more information." >&5
13539 echo "$as_me: error: unrecognized option: $1
13540 Try \`$0 --help' for more information." >&2;}
13541    { (exit 1); exit 1; }; } ;;
13542
13543   *) ac_config_targets="$ac_config_targets $1" ;;
13544
13545   esac
13546   shift
13547 done
13548
13549 ac_configure_extra_args=
13550
13551 if $ac_cs_silent; then
13552   exec 6>/dev/null
13553   ac_configure_extra_args="$ac_configure_extra_args --silent"
13554 fi
13555
13556 _ACEOF
13557 cat >>$CONFIG_STATUS <<_ACEOF
13558 if \$ac_cs_recheck; then
13559   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13560   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13561 fi
13562
13563 _ACEOF
13564
13565 cat >>$CONFIG_STATUS <<_ACEOF
13566 #
13567 # INIT-COMMANDS section.
13568 #
13569
13570
13571 srcdir="$srcdir"
13572 host="$host"
13573 target="$target"
13574 with_multisubdir="$with_multisubdir"
13575 with_multisrctop="$with_multisrctop"
13576 with_target_subdir="$with_target_subdir"
13577 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13578 multi_basedir="$multi_basedir"
13579 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13580 CC="$CC"
13581 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13582
13583
13584 # The HP-UX ksh and POSIX shell print the target directory to stdout
13585 # if CDPATH is set.
13586 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13587
13588 sed_quote_subst='$sed_quote_subst'
13589 double_quote_subst='$double_quote_subst'
13590 delay_variable_subst='$delay_variable_subst'
13591 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13592 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13593 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13594 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13595 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13596 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13597 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13598 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13599 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13600 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13601 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13602 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13603 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13604 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13605 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13606 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13607 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13608 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13609 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13610 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13611 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13612 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13613 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13614 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13615 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13616 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13617 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13618 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13619 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13620 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13621 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13622 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13623 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13624 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13625 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13626 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13627 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13628 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13629 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13630 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13631 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13632 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13633 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13634 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13635 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"`'
13636 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13637 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13638 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13639 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13640 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13641 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13642 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13643 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13644 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13645 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13646 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13647 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13648 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13649 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13650 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13651 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13652 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13653 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13654 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13655 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13656 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13657 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13658 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13659 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13660 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13661 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13662 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13663 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13664 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13665 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13666 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13667 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13668 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13669 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13670 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13671 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13672 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13673 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13674 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13675 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13676 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13677 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13678 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13679 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13680 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13681 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13682 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13683 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13684 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13685 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13686 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13687 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13688 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13689 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13690 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13691 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13692 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13693 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13694 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13695 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13696 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13697 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13698 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13699 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13700 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13701 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13702 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13703 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13704 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13705 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13706 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13707 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13708 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13709
13710 LTCC='$LTCC'
13711 LTCFLAGS='$LTCFLAGS'
13712 compiler='$compiler_DEFAULT'
13713
13714 # Quote evaled strings.
13715 for var in SED \
13716 GREP \
13717 EGREP \
13718 FGREP \
13719 LD \
13720 NM \
13721 LN_S \
13722 lt_SP2NL \
13723 lt_NL2SP \
13724 reload_flag \
13725 OBJDUMP \
13726 deplibs_check_method \
13727 file_magic_cmd \
13728 AR \
13729 AR_FLAGS \
13730 STRIP \
13731 RANLIB \
13732 CC \
13733 CFLAGS \
13734 compiler \
13735 lt_cv_sys_global_symbol_pipe \
13736 lt_cv_sys_global_symbol_to_cdecl \
13737 lt_cv_sys_global_symbol_to_c_name_address \
13738 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13739 SHELL \
13740 ECHO \
13741 lt_prog_compiler_no_builtin_flag \
13742 lt_prog_compiler_wl \
13743 lt_prog_compiler_pic \
13744 lt_prog_compiler_static \
13745 lt_cv_prog_compiler_c_o \
13746 need_locks \
13747 DSYMUTIL \
13748 NMEDIT \
13749 LIPO \
13750 OTOOL \
13751 OTOOL64 \
13752 shrext_cmds \
13753 export_dynamic_flag_spec \
13754 whole_archive_flag_spec \
13755 compiler_needs_object \
13756 with_gnu_ld \
13757 allow_undefined_flag \
13758 no_undefined_flag \
13759 hardcode_libdir_flag_spec \
13760 hardcode_libdir_flag_spec_ld \
13761 hardcode_libdir_separator \
13762 fix_srcfile_path \
13763 exclude_expsyms \
13764 include_expsyms \
13765 file_list_spec \
13766 variables_saved_for_relink \
13767 libname_spec \
13768 library_names_spec \
13769 soname_spec \
13770 finish_eval \
13771 old_striplib \
13772 striplib; do
13773     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13774     *[\\\\\\\`\\"\\\$]*)
13775       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13776       ;;
13777     *)
13778       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13779       ;;
13780     esac
13781 done
13782
13783 # Double-quote double-evaled strings.
13784 for var in reload_cmds \
13785 old_postinstall_cmds \
13786 old_postuninstall_cmds \
13787 old_archive_cmds \
13788 extract_expsyms_cmds \
13789 old_archive_from_new_cmds \
13790 old_archive_from_expsyms_cmds \
13791 archive_cmds \
13792 archive_expsym_cmds \
13793 module_cmds \
13794 module_expsym_cmds \
13795 export_symbols_cmds \
13796 prelink_cmds \
13797 postinstall_cmds \
13798 postuninstall_cmds \
13799 finish_cmds \
13800 sys_lib_search_path_spec \
13801 sys_lib_dlsearch_path_spec; do
13802     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13803     *[\\\\\\\`\\"\\\$]*)
13804       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13805       ;;
13806     *)
13807       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13808       ;;
13809     esac
13810 done
13811
13812 # Fix-up fallback echo if it was mangled by the above quoting rules.
13813 case \$lt_ECHO in
13814 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13815   ;;
13816 esac
13817
13818 ac_aux_dir='$ac_aux_dir'
13819 xsi_shell='$xsi_shell'
13820 lt_shell_append='$lt_shell_append'
13821
13822 # See if we are running on zsh, and set the options which allow our
13823 # commands through without removal of \ escapes INIT.
13824 if test -n "\${ZSH_VERSION+set}" ; then
13825    setopt NO_GLOB_SUBST
13826 fi
13827
13828
13829     PACKAGE='$PACKAGE'
13830     VERSION='$VERSION'
13831     TIMESTAMP='$TIMESTAMP'
13832     RM='$RM'
13833     ofile='$ofile'
13834
13835
13836
13837
13838 _ACEOF
13839
13840
13841
13842 cat >>$CONFIG_STATUS <<\_ACEOF
13843 for ac_config_target in $ac_config_targets
13844 do
13845   case "$ac_config_target" in
13846   # Handling of arguments.
13847   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13848   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13849   "testsuite/mfconfig.exp" ) CONFIG_FILES="$CONFIG_FILES testsuite/mfconfig.exp" ;;
13850   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13851   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13852   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13853   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13854   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13855 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13856    { (exit 1); exit 1; }; };;
13857   esac
13858 done
13859
13860 # If the user did not use the arguments to specify the items to instantiate,
13861 # then the envvar interface is used.  Set only those that are not.
13862 # We use the long form for the default assignment because of an extremely
13863 # bizarre bug on SunOS 4.1.3.
13864 if $ac_need_defaults; then
13865   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13866   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13867   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13868 fi
13869
13870 # Have a temporary directory for convenience.  Make it in the build tree
13871 # simply because there is no reason to put it here, and in addition,
13872 # creating and moving files from /tmp can sometimes cause problems.
13873 # Create a temporary directory, and hook for its removal unless debugging.
13874 $debug ||
13875 {
13876   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13877   trap '{ (exit 1); exit 1; }' 1 2 13 15
13878 }
13879
13880 # Create a (secure) tmp directory for tmp files.
13881
13882 {
13883   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13884   test -n "$tmp" && test -d "$tmp"
13885 }  ||
13886 {
13887   tmp=./confstat$$-$RANDOM
13888   (umask 077 && mkdir $tmp)
13889 } ||
13890 {
13891    echo "$me: cannot create a temporary directory in ." >&2
13892    { (exit 1); exit 1; }
13893 }
13894
13895 _ACEOF
13896
13897 cat >>$CONFIG_STATUS <<_ACEOF
13898
13899 #
13900 # CONFIG_FILES section.
13901 #
13902
13903 # No need to generate the scripts if there are no CONFIG_FILES.
13904 # This happens for instance when ./config.status config.h
13905 if test -n "\$CONFIG_FILES"; then
13906   # Protect against being on the right side of a sed subst in config.status.
13907   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13908    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13909 s,@SHELL@,$SHELL,;t t
13910 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13911 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13912 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13913 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13914 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13915 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13916 s,@exec_prefix@,$exec_prefix,;t t
13917 s,@prefix@,$prefix,;t t
13918 s,@program_transform_name@,$program_transform_name,;t t
13919 s,@bindir@,$bindir,;t t
13920 s,@sbindir@,$sbindir,;t t
13921 s,@libexecdir@,$libexecdir,;t t
13922 s,@datadir@,$datadir,;t t
13923 s,@sysconfdir@,$sysconfdir,;t t
13924 s,@sharedstatedir@,$sharedstatedir,;t t
13925 s,@localstatedir@,$localstatedir,;t t
13926 s,@libdir@,$libdir,;t t
13927 s,@includedir@,$includedir,;t t
13928 s,@oldincludedir@,$oldincludedir,;t t
13929 s,@infodir@,$infodir,;t t
13930 s,@mandir@,$mandir,;t t
13931 s,@build_alias@,$build_alias,;t t
13932 s,@host_alias@,$host_alias,;t t
13933 s,@target_alias@,$target_alias,;t t
13934 s,@DEFS@,$DEFS,;t t
13935 s,@ECHO_C@,$ECHO_C,;t t
13936 s,@ECHO_N@,$ECHO_N,;t t
13937 s,@ECHO_T@,$ECHO_T,;t t
13938 s,@LIBS@,$LIBS,;t t
13939 s,@build@,$build,;t t
13940 s,@build_cpu@,$build_cpu,;t t
13941 s,@build_vendor@,$build_vendor,;t t
13942 s,@build_os@,$build_os,;t t
13943 s,@host@,$host,;t t
13944 s,@host_cpu@,$host_cpu,;t t
13945 s,@host_vendor@,$host_vendor,;t t
13946 s,@host_os@,$host_os,;t t
13947 s,@target@,$target,;t t
13948 s,@target_cpu@,$target_cpu,;t t
13949 s,@target_vendor@,$target_vendor,;t t
13950 s,@target_os@,$target_os,;t t
13951 s,@target_noncanonical@,$target_noncanonical,;t t
13952 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13953 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13954 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13955 s,@CYGPATH_W@,$CYGPATH_W,;t t
13956 s,@PACKAGE@,$PACKAGE,;t t
13957 s,@VERSION@,$VERSION,;t t
13958 s,@ACLOCAL@,$ACLOCAL,;t t
13959 s,@AUTOCONF@,$AUTOCONF,;t t
13960 s,@AUTOMAKE@,$AUTOMAKE,;t t
13961 s,@AUTOHEADER@,$AUTOHEADER,;t t
13962 s,@MAKEINFO@,$MAKEINFO,;t t
13963 s,@install_sh@,$install_sh,;t t
13964 s,@STRIP@,$STRIP,;t t
13965 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13966 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13967 s,@mkdir_p@,$mkdir_p,;t t
13968 s,@AWK@,$AWK,;t t
13969 s,@SET_MAKE@,$SET_MAKE,;t t
13970 s,@am__leading_dot@,$am__leading_dot,;t t
13971 s,@AMTAR@,$AMTAR,;t t
13972 s,@am__tar@,$am__tar,;t t
13973 s,@am__untar@,$am__untar,;t t
13974 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13975 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13976 s,@MAINT@,$MAINT,;t t
13977 s,@multi_basedir@,$multi_basedir,;t t
13978 s,@CC@,$CC,;t t
13979 s,@ac_ct_CC@,$ac_ct_CC,;t t
13980 s,@EXEEXT@,$EXEEXT,;t t
13981 s,@OBJEXT@,$OBJEXT,;t t
13982 s,@DEPDIR@,$DEPDIR,;t t
13983 s,@am__include@,$am__include,;t t
13984 s,@am__quote@,$am__quote,;t t
13985 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13986 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13987 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13988 s,@CCDEPMODE@,$CCDEPMODE,;t t
13989 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13990 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13991 s,@CFLAGS@,$CFLAGS,;t t
13992 s,@CPP@,$CPP,;t t
13993 s,@CPPFLAGS@,$CPPFLAGS,;t t
13994 s,@EGREP@,$EGREP,;t t
13995 s,@LIBTOOL@,$LIBTOOL,;t t
13996 s,@SED@,$SED,;t t
13997 s,@FGREP@,$FGREP,;t t
13998 s,@GREP@,$GREP,;t t
13999 s,@LD@,$LD,;t t
14000 s,@DUMPBIN@,$DUMPBIN,;t t
14001 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14002 s,@NM@,$NM,;t t
14003 s,@LN_S@,$LN_S,;t t
14004 s,@OBJDUMP@,$OBJDUMP,;t t
14005 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
14006 s,@AR@,$AR,;t t
14007 s,@ac_ct_AR@,$ac_ct_AR,;t t
14008 s,@RANLIB@,$RANLIB,;t t
14009 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14010 s,@lt_ECHO@,$lt_ECHO,;t t
14011 s,@DSYMUTIL@,$DSYMUTIL,;t t
14012 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
14013 s,@NMEDIT@,$NMEDIT,;t t
14014 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
14015 s,@LIPO@,$LIPO,;t t
14016 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
14017 s,@OTOOL@,$OTOOL,;t t
14018 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
14019 s,@OTOOL64@,$OTOOL64,;t t
14020 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
14021 s,@enable_shared@,$enable_shared,;t t
14022 s,@enable_static@,$enable_static,;t t
14023 s,@MF_HAVE_STDINT_H@,$MF_HAVE_STDINT_H,;t t
14024 s,@MF_HAVE_UINTPTR_T@,$MF_HAVE_UINTPTR_T,;t t
14025 s,@LIBMUDFLAPTH_TRUE@,$LIBMUDFLAPTH_TRUE,;t t
14026 s,@LIBMUDFLAPTH_FALSE@,$LIBMUDFLAPTH_FALSE,;t t
14027 s,@build_libmudflapth@,$build_libmudflapth,;t t
14028 s,@toolexecdir@,$toolexecdir,;t t
14029 s,@toolexeclibdir@,$toolexeclibdir,;t t
14030 s,@ac_ct_NM@,$ac_ct_NM,;t t
14031 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
14032 s,@LIBOBJS@,$LIBOBJS,;t t
14033 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14034 CEOF
14035
14036 _ACEOF
14037
14038   cat >>$CONFIG_STATUS <<\_ACEOF
14039   # Split the substitutions into bite-sized pieces for seds with
14040   # small command number limits, like on Digital OSF/1 and HP-UX.
14041   ac_max_sed_lines=48
14042   ac_sed_frag=1 # Number of current file.
14043   ac_beg=1 # First line for current file.
14044   ac_end=$ac_max_sed_lines # Line after last line for current file.
14045   ac_more_lines=:
14046   ac_sed_cmds=
14047   while $ac_more_lines; do
14048     if test $ac_beg -gt 1; then
14049       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14050     else
14051       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14052     fi
14053     if test ! -s $tmp/subs.frag; then
14054       ac_more_lines=false
14055     else
14056       # The purpose of the label and of the branching condition is to
14057       # speed up the sed processing (if there are no `@' at all, there
14058       # is no need to browse any of the substitutions).
14059       # These are the two extra sed commands mentioned above.
14060       (echo ':t
14061   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14062       if test -z "$ac_sed_cmds"; then
14063         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14064       else
14065         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14066       fi
14067       ac_sed_frag=`expr $ac_sed_frag + 1`
14068       ac_beg=$ac_end
14069       ac_end=`expr $ac_end + $ac_max_sed_lines`
14070     fi
14071   done
14072   if test -z "$ac_sed_cmds"; then
14073     ac_sed_cmds=cat
14074   fi
14075 fi # test -n "$CONFIG_FILES"
14076
14077 _ACEOF
14078 cat >>$CONFIG_STATUS <<\_ACEOF
14079 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14080   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14081   case $ac_file in
14082   - | *:- | *:-:* ) # input from stdin
14083         cat >$tmp/stdin
14084         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14085         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14086   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14087         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14088   * )   ac_file_in=$ac_file.in ;;
14089   esac
14090
14091   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14092   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14093 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14094          X"$ac_file" : 'X\(//\)[^/]' \| \
14095          X"$ac_file" : 'X\(//\)$' \| \
14096          X"$ac_file" : 'X\(/\)' \| \
14097          .     : '\(.\)' 2>/dev/null ||
14098 echo X"$ac_file" |
14099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14100           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14101           /^X\(\/\/\)$/{ s//\1/; q; }
14102           /^X\(\/\).*/{ s//\1/; q; }
14103           s/.*/./; q'`
14104   { if $as_mkdir_p; then
14105     mkdir -p "$ac_dir"
14106   else
14107     as_dir="$ac_dir"
14108     as_dirs=
14109     while test ! -d "$as_dir"; do
14110       as_dirs="$as_dir $as_dirs"
14111       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14113          X"$as_dir" : 'X\(//\)[^/]' \| \
14114          X"$as_dir" : 'X\(//\)$' \| \
14115          X"$as_dir" : 'X\(/\)' \| \
14116          .     : '\(.\)' 2>/dev/null ||
14117 echo X"$as_dir" |
14118     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14119           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14120           /^X\(\/\/\)$/{ s//\1/; q; }
14121           /^X\(\/\).*/{ s//\1/; q; }
14122           s/.*/./; q'`
14123     done
14124     test ! -n "$as_dirs" || mkdir $as_dirs
14125   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14126 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14127    { (exit 1); exit 1; }; }; }
14128
14129   ac_builddir=.
14130
14131 if test "$ac_dir" != .; then
14132   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14133   # A "../" for each directory in $ac_dir_suffix.
14134   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14135 else
14136   ac_dir_suffix= ac_top_builddir=
14137 fi
14138
14139 case $srcdir in
14140   .)  # No --srcdir option.  We are building in place.
14141     ac_srcdir=.
14142     if test -z "$ac_top_builddir"; then
14143        ac_top_srcdir=.
14144     else
14145        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14146     fi ;;
14147   [\\/]* | ?:[\\/]* )  # Absolute path.
14148     ac_srcdir=$srcdir$ac_dir_suffix;
14149     ac_top_srcdir=$srcdir ;;
14150   *) # Relative path.
14151     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14152     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14153 esac
14154
14155 # Do not use `cd foo && pwd` to compute absolute paths, because
14156 # the directories may not exist.
14157 case `pwd` in
14158 .) ac_abs_builddir="$ac_dir";;
14159 *)
14160   case "$ac_dir" in
14161   .) ac_abs_builddir=`pwd`;;
14162   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14163   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14164   esac;;
14165 esac
14166 case $ac_abs_builddir in
14167 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14168 *)
14169   case ${ac_top_builddir}. in
14170   .) ac_abs_top_builddir=$ac_abs_builddir;;
14171   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14172   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14173   esac;;
14174 esac
14175 case $ac_abs_builddir in
14176 .) ac_abs_srcdir=$ac_srcdir;;
14177 *)
14178   case $ac_srcdir in
14179   .) ac_abs_srcdir=$ac_abs_builddir;;
14180   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14181   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14182   esac;;
14183 esac
14184 case $ac_abs_builddir in
14185 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14186 *)
14187   case $ac_top_srcdir in
14188   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14189   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14190   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14191   esac;;
14192 esac
14193
14194
14195   case $INSTALL in
14196   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14197   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14198   esac
14199
14200   if test x"$ac_file" != x-; then
14201     { echo "$as_me:$LINENO: creating $ac_file" >&5
14202 echo "$as_me: creating $ac_file" >&6;}
14203     rm -f "$ac_file"
14204   fi
14205   # Let's still pretend it is `configure' which instantiates (i.e., don't
14206   # use $as_me), people would be surprised to read:
14207   #    /* config.h.  Generated by config.status.  */
14208   if test x"$ac_file" = x-; then
14209     configure_input=
14210   else
14211     configure_input="$ac_file.  "
14212   fi
14213   configure_input=$configure_input"Generated from `echo $ac_file_in |
14214                                      sed 's,.*/,,'` by configure."
14215
14216   # First look for the input files in the build tree, otherwise in the
14217   # src tree.
14218   ac_file_inputs=`IFS=:
14219     for f in $ac_file_in; do
14220       case $f in
14221       -) echo $tmp/stdin ;;
14222       [\\/$]*)
14223          # Absolute (can't be DOS-style, as IFS=:)
14224          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14225 echo "$as_me: error: cannot find input file: $f" >&2;}
14226    { (exit 1); exit 1; }; }
14227          echo "$f";;
14228       *) # Relative
14229          if test -f "$f"; then
14230            # Build tree
14231            echo "$f"
14232          elif test -f "$srcdir/$f"; then
14233            # Source tree
14234            echo "$srcdir/$f"
14235          else
14236            # /dev/null tree
14237            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14238 echo "$as_me: error: cannot find input file: $f" >&2;}
14239    { (exit 1); exit 1; }; }
14240          fi;;
14241       esac
14242     done` || { (exit 1); exit 1; }
14243 _ACEOF
14244 cat >>$CONFIG_STATUS <<_ACEOF
14245   sed "$ac_vpsub
14246 $extrasub
14247 _ACEOF
14248 cat >>$CONFIG_STATUS <<\_ACEOF
14249 :t
14250 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14251 s,@configure_input@,$configure_input,;t t
14252 s,@srcdir@,$ac_srcdir,;t t
14253 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14254 s,@top_srcdir@,$ac_top_srcdir,;t t
14255 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14256 s,@builddir@,$ac_builddir,;t t
14257 s,@abs_builddir@,$ac_abs_builddir,;t t
14258 s,@top_builddir@,$ac_top_builddir,;t t
14259 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14260 s,@INSTALL@,$ac_INSTALL,;t t
14261 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14262   rm -f $tmp/stdin
14263   if test x"$ac_file" != x-; then
14264     mv $tmp/out $ac_file
14265   else
14266     cat $tmp/out
14267     rm -f $tmp/out
14268   fi
14269
14270 done
14271 _ACEOF
14272 cat >>$CONFIG_STATUS <<\_ACEOF
14273
14274 #
14275 # CONFIG_HEADER section.
14276 #
14277
14278 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14279 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14280 #
14281 # ac_d sets the value in "#define NAME VALUE" lines.
14282 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
14283 ac_dB='[         ].*$,\1#\2'
14284 ac_dC=' '
14285 ac_dD=',;t'
14286 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14287 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14288 ac_uB='$,\1#\2define\3'
14289 ac_uC=' '
14290 ac_uD=',;t'
14291
14292 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14293   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14294   case $ac_file in
14295   - | *:- | *:-:* ) # input from stdin
14296         cat >$tmp/stdin
14297         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14298         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14299   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14300         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14301   * )   ac_file_in=$ac_file.in ;;
14302   esac
14303
14304   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14305 echo "$as_me: creating $ac_file" >&6;}
14306
14307   # First look for the input files in the build tree, otherwise in the
14308   # src tree.
14309   ac_file_inputs=`IFS=:
14310     for f in $ac_file_in; do
14311       case $f in
14312       -) echo $tmp/stdin ;;
14313       [\\/$]*)
14314          # Absolute (can't be DOS-style, as IFS=:)
14315          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14316 echo "$as_me: error: cannot find input file: $f" >&2;}
14317    { (exit 1); exit 1; }; }
14318          # Do quote $f, to prevent DOS paths from being IFS'd.
14319          echo "$f";;
14320       *) # Relative
14321          if test -f "$f"; then
14322            # Build tree
14323            echo "$f"
14324          elif test -f "$srcdir/$f"; then
14325            # Source tree
14326            echo "$srcdir/$f"
14327          else
14328            # /dev/null tree
14329            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14330 echo "$as_me: error: cannot find input file: $f" >&2;}
14331    { (exit 1); exit 1; }; }
14332          fi;;
14333       esac
14334     done` || { (exit 1); exit 1; }
14335   # Remove the trailing spaces.
14336   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
14337
14338 _ACEOF
14339
14340 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14341 # `conftest.undefs', that substitutes the proper values into
14342 # config.h.in to produce config.h.  The first handles `#define'
14343 # templates, and the second `#undef' templates.
14344 # And first: Protect against being on the right side of a sed subst in
14345 # config.status.  Protect against being in an unquoted here document
14346 # in config.status.
14347 rm -f conftest.defines conftest.undefs
14348 # Using a here document instead of a string reduces the quoting nightmare.
14349 # Putting comments in sed scripts is not portable.
14350 #
14351 # `end' is used to avoid that the second main sed command (meant for
14352 # 0-ary CPP macros) applies to n-ary macro definitions.
14353 # See the Autoconf documentation for `clear'.
14354 cat >confdef2sed.sed <<\_ACEOF
14355 s/[\\&,]/\\&/g
14356 s,[\\$`],\\&,g
14357 t clear
14358 : clear
14359 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14360 t end
14361 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14362 : end
14363 _ACEOF
14364 # If some macros were called several times there might be several times
14365 # the same #defines, which is useless.  Nevertheless, we may not want to
14366 # sort them, since we want the *last* AC-DEFINE to be honored.
14367 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14368 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14369 rm -f confdef2sed.sed
14370
14371 # This sed command replaces #undef with comments.  This is necessary, for
14372 # example, in the case of _POSIX_SOURCE, which is predefined and required
14373 # on some systems where configure will not decide to define it.
14374 cat >>conftest.undefs <<\_ACEOF
14375 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14376 _ACEOF
14377
14378 # Break up conftest.defines because some shells have a limit on the size
14379 # of here documents, and old seds have small limits too (100 cmds).
14380 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14381 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14382 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14383 echo '  :' >>$CONFIG_STATUS
14384 rm -f conftest.tail
14385 while grep . conftest.defines >/dev/null
14386 do
14387   # Write a limited-size here document to $tmp/defines.sed.
14388   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14389   # Speed up: don't consider the non `#define' lines.
14390   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
14391   # Work around the forget-to-reset-the-flag bug.
14392   echo 't clr' >>$CONFIG_STATUS
14393   echo ': clr' >>$CONFIG_STATUS
14394   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14395   echo 'CEOF
14396   sed -f $tmp/defines.sed $tmp/in >$tmp/out
14397   rm -f $tmp/in
14398   mv $tmp/out $tmp/in
14399 ' >>$CONFIG_STATUS
14400   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14401   rm -f conftest.defines
14402   mv conftest.tail conftest.defines
14403 done
14404 rm -f conftest.defines
14405 echo '  fi # grep' >>$CONFIG_STATUS
14406 echo >>$CONFIG_STATUS
14407
14408 # Break up conftest.undefs because some shells have a limit on the size
14409 # of here documents, and old seds have small limits too (100 cmds).
14410 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14411 rm -f conftest.tail
14412 while grep . conftest.undefs >/dev/null
14413 do
14414   # Write a limited-size here document to $tmp/undefs.sed.
14415   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14416   # Speed up: don't consider the non `#undef'
14417   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14418   # Work around the forget-to-reset-the-flag bug.
14419   echo 't clr' >>$CONFIG_STATUS
14420   echo ': clr' >>$CONFIG_STATUS
14421   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14422   echo 'CEOF
14423   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14424   rm -f $tmp/in
14425   mv $tmp/out $tmp/in
14426 ' >>$CONFIG_STATUS
14427   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14428   rm -f conftest.undefs
14429   mv conftest.tail conftest.undefs
14430 done
14431 rm -f conftest.undefs
14432
14433 cat >>$CONFIG_STATUS <<\_ACEOF
14434   # Let's still pretend it is `configure' which instantiates (i.e., don't
14435   # use $as_me), people would be surprised to read:
14436   #    /* config.h.  Generated by config.status.  */
14437   if test x"$ac_file" = x-; then
14438     echo "/* Generated by configure.  */" >$tmp/config.h
14439   else
14440     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14441   fi
14442   cat $tmp/in >>$tmp/config.h
14443   rm -f $tmp/in
14444   if test x"$ac_file" != x-; then
14445     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14446       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14447 echo "$as_me: $ac_file is unchanged" >&6;}
14448     else
14449       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14451          X"$ac_file" : 'X\(//\)[^/]' \| \
14452          X"$ac_file" : 'X\(//\)$' \| \
14453          X"$ac_file" : 'X\(/\)' \| \
14454          .     : '\(.\)' 2>/dev/null ||
14455 echo X"$ac_file" |
14456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14457           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14458           /^X\(\/\/\)$/{ s//\1/; q; }
14459           /^X\(\/\).*/{ s//\1/; q; }
14460           s/.*/./; q'`
14461       { if $as_mkdir_p; then
14462     mkdir -p "$ac_dir"
14463   else
14464     as_dir="$ac_dir"
14465     as_dirs=
14466     while test ! -d "$as_dir"; do
14467       as_dirs="$as_dir $as_dirs"
14468       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14470          X"$as_dir" : 'X\(//\)[^/]' \| \
14471          X"$as_dir" : 'X\(//\)$' \| \
14472          X"$as_dir" : 'X\(/\)' \| \
14473          .     : '\(.\)' 2>/dev/null ||
14474 echo X"$as_dir" |
14475     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14476           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14477           /^X\(\/\/\)$/{ s//\1/; q; }
14478           /^X\(\/\).*/{ s//\1/; q; }
14479           s/.*/./; q'`
14480     done
14481     test ! -n "$as_dirs" || mkdir $as_dirs
14482   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14483 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14484    { (exit 1); exit 1; }; }; }
14485
14486       rm -f $ac_file
14487       mv $tmp/config.h $ac_file
14488     fi
14489   else
14490     cat $tmp/config.h
14491     rm -f $tmp/config.h
14492   fi
14493 # Compute $ac_file's index in $config_headers.
14494 _am_stamp_count=1
14495 for _am_header in $config_headers :; do
14496   case $_am_header in
14497     $ac_file | $ac_file:* )
14498       break ;;
14499     * )
14500       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14501   esac
14502 done
14503 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14504 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14505          X$ac_file : 'X\(//\)[^/]' \| \
14506          X$ac_file : 'X\(//\)$' \| \
14507          X$ac_file : 'X\(/\)' \| \
14508          .     : '\(.\)' 2>/dev/null ||
14509 echo X$ac_file |
14510     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14511           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14512           /^X\(\/\/\)$/{ s//\1/; q; }
14513           /^X\(\/\).*/{ s//\1/; q; }
14514           s/.*/./; q'`/stamp-h$_am_stamp_count
14515 done
14516 _ACEOF
14517 cat >>$CONFIG_STATUS <<\_ACEOF
14518
14519 #
14520 # CONFIG_COMMANDS section.
14521 #
14522 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14523   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14524   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14525   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14526 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14527          X"$ac_dest" : 'X\(//\)[^/]' \| \
14528          X"$ac_dest" : 'X\(//\)$' \| \
14529          X"$ac_dest" : 'X\(/\)' \| \
14530          .     : '\(.\)' 2>/dev/null ||
14531 echo X"$ac_dest" |
14532     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14533           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14534           /^X\(\/\/\)$/{ s//\1/; q; }
14535           /^X\(\/\).*/{ s//\1/; q; }
14536           s/.*/./; q'`
14537   { if $as_mkdir_p; then
14538     mkdir -p "$ac_dir"
14539   else
14540     as_dir="$ac_dir"
14541     as_dirs=
14542     while test ! -d "$as_dir"; do
14543       as_dirs="$as_dir $as_dirs"
14544       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14545 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14546          X"$as_dir" : 'X\(//\)[^/]' \| \
14547          X"$as_dir" : 'X\(//\)$' \| \
14548          X"$as_dir" : 'X\(/\)' \| \
14549          .     : '\(.\)' 2>/dev/null ||
14550 echo X"$as_dir" |
14551     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14552           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14553           /^X\(\/\/\)$/{ s//\1/; q; }
14554           /^X\(\/\).*/{ s//\1/; q; }
14555           s/.*/./; q'`
14556     done
14557     test ! -n "$as_dirs" || mkdir $as_dirs
14558   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14559 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14560    { (exit 1); exit 1; }; }; }
14561
14562   ac_builddir=.
14563
14564 if test "$ac_dir" != .; then
14565   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14566   # A "../" for each directory in $ac_dir_suffix.
14567   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14568 else
14569   ac_dir_suffix= ac_top_builddir=
14570 fi
14571
14572 case $srcdir in
14573   .)  # No --srcdir option.  We are building in place.
14574     ac_srcdir=.
14575     if test -z "$ac_top_builddir"; then
14576        ac_top_srcdir=.
14577     else
14578        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14579     fi ;;
14580   [\\/]* | ?:[\\/]* )  # Absolute path.
14581     ac_srcdir=$srcdir$ac_dir_suffix;
14582     ac_top_srcdir=$srcdir ;;
14583   *) # Relative path.
14584     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14585     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14586 esac
14587
14588 # Do not use `cd foo && pwd` to compute absolute paths, because
14589 # the directories may not exist.
14590 case `pwd` in
14591 .) ac_abs_builddir="$ac_dir";;
14592 *)
14593   case "$ac_dir" in
14594   .) ac_abs_builddir=`pwd`;;
14595   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14596   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14597   esac;;
14598 esac
14599 case $ac_abs_builddir in
14600 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14601 *)
14602   case ${ac_top_builddir}. in
14603   .) ac_abs_top_builddir=$ac_abs_builddir;;
14604   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14605   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14606   esac;;
14607 esac
14608 case $ac_abs_builddir in
14609 .) ac_abs_srcdir=$ac_srcdir;;
14610 *)
14611   case $ac_srcdir in
14612   .) ac_abs_srcdir=$ac_abs_builddir;;
14613   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14614   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14615   esac;;
14616 esac
14617 case $ac_abs_builddir in
14618 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14619 *)
14620   case $ac_top_srcdir in
14621   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14622   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14623   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14624   esac;;
14625 esac
14626
14627
14628   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14629 echo "$as_me: executing $ac_dest commands" >&6;}
14630   case $ac_dest in
14631     default-1 )
14632 # Only add multilib support code if we just rebuilt the top-level
14633 # Makefile.
14634 case " $CONFIG_FILES " in
14635  *" Makefile "*)
14636    ac_file=Makefile . ${multi_basedir}/config-ml.in
14637    ;;
14638 esac ;;
14639     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14640   # Strip MF so we end up with the name of the file.
14641   mf=`echo "$mf" | sed -e 's/:.*$//'`
14642   # Check whether this is an Automake generated Makefile or not.
14643   # We used to match only the files named `Makefile.in', but
14644   # some people rename them; so instead we look at the file content.
14645   # Grep'ing the first line is not enough: some people post-process
14646   # each Makefile.in and add a new line on top of each file to say so.
14647   # So let's grep whole file.
14648   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14649     dirpart=`(dirname "$mf") 2>/dev/null ||
14650 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14651          X"$mf" : 'X\(//\)[^/]' \| \
14652          X"$mf" : 'X\(//\)$' \| \
14653          X"$mf" : 'X\(/\)' \| \
14654          .     : '\(.\)' 2>/dev/null ||
14655 echo X"$mf" |
14656     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14657           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14658           /^X\(\/\/\)$/{ s//\1/; q; }
14659           /^X\(\/\).*/{ s//\1/; q; }
14660           s/.*/./; q'`
14661   else
14662     continue
14663   fi
14664   # Extract the definition of DEPDIR, am__include, and am__quote
14665   # from the Makefile without running `make'.
14666   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14667   test -z "$DEPDIR" && continue
14668   am__include=`sed -n 's/^am__include = //p' < "$mf"`
14669   test -z "am__include" && continue
14670   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14671   # When using ansi2knr, U may be empty or an underscore; expand it
14672   U=`sed -n 's/^U = //p' < "$mf"`
14673   # Find all dependency output files, they are included files with
14674   # $(DEPDIR) in their names.  We invoke sed twice because it is the
14675   # simplest approach to changing $(DEPDIR) to its actual value in the
14676   # expansion.
14677   for file in `sed -n "
14678     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14679        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14680     # Make sure the directory exists.
14681     test -f "$dirpart/$file" && continue
14682     fdir=`(dirname "$file") 2>/dev/null ||
14683 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14684          X"$file" : 'X\(//\)[^/]' \| \
14685          X"$file" : 'X\(//\)$' \| \
14686          X"$file" : 'X\(/\)' \| \
14687          .     : '\(.\)' 2>/dev/null ||
14688 echo X"$file" |
14689     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14690           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14691           /^X\(\/\/\)$/{ s//\1/; q; }
14692           /^X\(\/\).*/{ s//\1/; q; }
14693           s/.*/./; q'`
14694     { if $as_mkdir_p; then
14695     mkdir -p $dirpart/$fdir
14696   else
14697     as_dir=$dirpart/$fdir
14698     as_dirs=
14699     while test ! -d "$as_dir"; do
14700       as_dirs="$as_dir $as_dirs"
14701       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14702 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14703          X"$as_dir" : 'X\(//\)[^/]' \| \
14704          X"$as_dir" : 'X\(//\)$' \| \
14705          X"$as_dir" : 'X\(/\)' \| \
14706          .     : '\(.\)' 2>/dev/null ||
14707 echo X"$as_dir" |
14708     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14709           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14710           /^X\(\/\/\)$/{ s//\1/; q; }
14711           /^X\(\/\).*/{ s//\1/; q; }
14712           s/.*/./; q'`
14713     done
14714     test ! -n "$as_dirs" || mkdir $as_dirs
14715   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14716 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14717    { (exit 1); exit 1; }; }; }
14718
14719     # echo "creating $dirpart/$file"
14720     echo '# dummy' > "$dirpart/$file"
14721   done
14722 done
14723  ;;
14724     libtool )
14725
14726     # See if we are running on zsh, and set the options which allow our
14727     # commands through without removal of \ escapes.
14728     if test -n "${ZSH_VERSION+set}" ; then
14729       setopt NO_GLOB_SUBST
14730     fi
14731
14732     cfgfile="${ofile}T"
14733     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14734     $RM "$cfgfile"
14735
14736     cat <<_LT_EOF >> "$cfgfile"
14737 #! $SHELL
14738
14739 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14740 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14741 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14742 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14743 #
14744 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14745 #                 2006, 2007, 2008 Free Software Foundation, Inc.
14746 #   Written by Gordon Matzigkeit, 1996
14747 #
14748 #   This file is part of GNU Libtool.
14749 #
14750 # GNU Libtool is free software; you can redistribute it and/or
14751 # modify it under the terms of the GNU General Public License as
14752 # published by the Free Software Foundation; either version 2 of
14753 # the License, or (at your option) any later version.
14754 #
14755 # As a special exception to the GNU General Public License,
14756 # if you distribute this file as part of a program or library that
14757 # is built using GNU Libtool, you may include this file under the
14758 # same distribution terms that you use for the rest of that program.
14759 #
14760 # GNU Libtool is distributed in the hope that it will be useful,
14761 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14762 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14763 # GNU General Public License for more details.
14764 #
14765 # You should have received a copy of the GNU General Public License
14766 # along with GNU Libtool; see the file COPYING.  If not, a copy
14767 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14768 # obtained by writing to the Free Software Foundation, Inc.,
14769 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14770
14771
14772 # The names of the tagged configurations supported by this script.
14773 available_tags=""
14774
14775 # ### BEGIN LIBTOOL CONFIG
14776
14777 # Which release of libtool.m4 was used?
14778 macro_version=$macro_version
14779 macro_revision=$macro_revision
14780
14781 # Whether or not to build shared libraries.
14782 build_libtool_libs=$enable_shared
14783
14784 # Whether or not to build static libraries.
14785 build_old_libs=$enable_static
14786
14787 # What type of objects to build.
14788 pic_mode=$pic_mode
14789
14790 # Whether or not to optimize for fast installation.
14791 fast_install=$enable_fast_install
14792
14793 # The host system.
14794 host_alias=$host_alias
14795 host=$host
14796 host_os=$host_os
14797
14798 # The build system.
14799 build_alias=$build_alias
14800 build=$build
14801 build_os=$build_os
14802
14803 # A sed program that does not truncate output.
14804 SED=$lt_SED
14805
14806 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14807 Xsed="\$SED -e 1s/^X//"
14808
14809 # A grep program that handles long lines.
14810 GREP=$lt_GREP
14811
14812 # An ERE matcher.
14813 EGREP=$lt_EGREP
14814
14815 # A literal string matcher.
14816 FGREP=$lt_FGREP
14817
14818 # A BSD- or MS-compatible name lister.
14819 NM=$lt_NM
14820
14821 # Whether we need soft or hard links.
14822 LN_S=$lt_LN_S
14823
14824 # What is the maximum length of a command?
14825 max_cmd_len=$max_cmd_len
14826
14827 # Object file suffix (normally "o").
14828 objext=$ac_objext
14829
14830 # Executable file suffix (normally "").
14831 exeext=$exeext
14832
14833 # whether the shell understands "unset".
14834 lt_unset=$lt_unset
14835
14836 # turn spaces into newlines.
14837 SP2NL=$lt_lt_SP2NL
14838
14839 # turn newlines into spaces.
14840 NL2SP=$lt_lt_NL2SP
14841
14842 # How to create reloadable object files.
14843 reload_flag=$lt_reload_flag
14844 reload_cmds=$lt_reload_cmds
14845
14846 # An object symbol dumper.
14847 OBJDUMP=$lt_OBJDUMP
14848
14849 # Method to check whether dependent libraries are shared objects.
14850 deplibs_check_method=$lt_deplibs_check_method
14851
14852 # Command to use when deplibs_check_method == "file_magic".
14853 file_magic_cmd=$lt_file_magic_cmd
14854
14855 # The archiver.
14856 AR=$lt_AR
14857 AR_FLAGS=$lt_AR_FLAGS
14858
14859 # A symbol stripping program.
14860 STRIP=$lt_STRIP
14861
14862 # Commands used to install an old-style archive.
14863 RANLIB=$lt_RANLIB
14864 old_postinstall_cmds=$lt_old_postinstall_cmds
14865 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14866
14867 # A C compiler.
14868 LTCC=$lt_CC
14869
14870 # LTCC compiler flags.
14871 LTCFLAGS=$lt_CFLAGS
14872
14873 # Take the output of nm and produce a listing of raw symbols and C names.
14874 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14875
14876 # Transform the output of nm in a proper C declaration.
14877 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14878
14879 # Transform the output of nm in a C name address pair.
14880 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14881
14882 # Transform the output of nm in a C name address pair when lib prefix is needed.
14883 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14884
14885 # The name of the directory that contains temporary libtool files.
14886 objdir=$objdir
14887
14888 # Shell to use when invoking shell scripts.
14889 SHELL=$lt_SHELL
14890
14891 # An echo program that does not interpret backslashes.
14892 ECHO=$lt_ECHO
14893
14894 # Used to examine libraries when file_magic_cmd begins with "file".
14895 MAGIC_CMD=$MAGIC_CMD
14896
14897 # Must we lock files when doing compilation?
14898 need_locks=$lt_need_locks
14899
14900 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14901 DSYMUTIL=$lt_DSYMUTIL
14902
14903 # Tool to change global to local symbols on Mac OS X.
14904 NMEDIT=$lt_NMEDIT
14905
14906 # Tool to manipulate fat objects and archives on Mac OS X.
14907 LIPO=$lt_LIPO
14908
14909 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14910 OTOOL=$lt_OTOOL
14911
14912 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14913 OTOOL64=$lt_OTOOL64
14914
14915 # Old archive suffix (normally "a").
14916 libext=$libext
14917
14918 # Shared library suffix (normally ".so").
14919 shrext_cmds=$lt_shrext_cmds
14920
14921 # The commands to extract the exported symbol list from a shared archive.
14922 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14923
14924 # Variables whose values should be saved in libtool wrapper scripts and
14925 # restored at link time.
14926 variables_saved_for_relink=$lt_variables_saved_for_relink
14927
14928 # Do we need the "lib" prefix for modules?
14929 need_lib_prefix=$need_lib_prefix
14930
14931 # Do we need a version for libraries?
14932 need_version=$need_version
14933
14934 # Library versioning type.
14935 version_type=$version_type
14936
14937 # Shared library runtime path variable.
14938 runpath_var=$runpath_var
14939
14940 # Shared library path variable.
14941 shlibpath_var=$shlibpath_var
14942
14943 # Is shlibpath searched before the hard-coded library search path?
14944 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14945
14946 # Format of library name prefix.
14947 libname_spec=$lt_libname_spec
14948
14949 # List of archive names.  First name is the real one, the rest are links.
14950 # The last name is the one that the linker finds with -lNAME
14951 library_names_spec=$lt_library_names_spec
14952
14953 # The coded name of the library, if different from the real name.
14954 soname_spec=$lt_soname_spec
14955
14956 # Command to use after installation of a shared archive.
14957 postinstall_cmds=$lt_postinstall_cmds
14958
14959 # Command to use after uninstallation of a shared archive.
14960 postuninstall_cmds=$lt_postuninstall_cmds
14961
14962 # Commands used to finish a libtool library installation in a directory.
14963 finish_cmds=$lt_finish_cmds
14964
14965 # As "finish_cmds", except a single script fragment to be evaled but
14966 # not shown.
14967 finish_eval=$lt_finish_eval
14968
14969 # Whether we should hardcode library paths into libraries.
14970 hardcode_into_libs=$hardcode_into_libs
14971
14972 # Compile-time system search path for libraries.
14973 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14974
14975 # Run-time system search path for libraries.
14976 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14977
14978 # Whether dlopen is supported.
14979 dlopen_support=$enable_dlopen
14980
14981 # Whether dlopen of programs is supported.
14982 dlopen_self=$enable_dlopen_self
14983
14984 # Whether dlopen of statically linked programs is supported.
14985 dlopen_self_static=$enable_dlopen_self_static
14986
14987 # Commands to strip libraries.
14988 old_striplib=$lt_old_striplib
14989 striplib=$lt_striplib
14990
14991
14992 # The linker used to build libraries.
14993 LD=$lt_LD
14994
14995 # Commands used to build an old-style archive.
14996 old_archive_cmds=$lt_old_archive_cmds
14997
14998 # A language specific compiler.
14999 CC=$lt_compiler
15000
15001 # Is the compiler the GNU compiler?
15002 with_gcc=$GCC
15003
15004 # Compiler flag to turn off builtin functions.
15005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15006
15007 # How to pass a linker flag through the compiler.
15008 wl=$lt_lt_prog_compiler_wl
15009
15010 # Additional compiler flags for building library objects.
15011 pic_flag=$lt_lt_prog_compiler_pic
15012
15013 # Compiler flag to prevent dynamic linking.
15014 link_static_flag=$lt_lt_prog_compiler_static
15015
15016 # Does compiler simultaneously support -c and -o options?
15017 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15018
15019 # Whether or not to add -lc for building shared libraries.
15020 build_libtool_need_lc=$archive_cmds_need_lc
15021
15022 # Whether or not to disallow shared libs when runtime libs are static.
15023 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15024
15025 # Compiler flag to allow reflexive dlopens.
15026 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15027
15028 # Compiler flag to generate shared objects directly from archives.
15029 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15030
15031 # Whether the compiler copes with passing no objects directly.
15032 compiler_needs_object=$lt_compiler_needs_object
15033
15034 # Create an old-style archive from a shared archive.
15035 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15036
15037 # Create a temporary old-style archive to link instead of a shared archive.
15038 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15039
15040 # Commands used to build a shared archive.
15041 archive_cmds=$lt_archive_cmds
15042 archive_expsym_cmds=$lt_archive_expsym_cmds
15043
15044 # Commands used to build a loadable module if different from building
15045 # a shared archive.
15046 module_cmds=$lt_module_cmds
15047 module_expsym_cmds=$lt_module_expsym_cmds
15048
15049 # Whether we are building with GNU ld or not.
15050 with_gnu_ld=$lt_with_gnu_ld
15051
15052 # Flag that allows shared libraries with undefined symbols to be built.
15053 allow_undefined_flag=$lt_allow_undefined_flag
15054
15055 # Flag that enforces no undefined symbols.
15056 no_undefined_flag=$lt_no_undefined_flag
15057
15058 # Flag to hardcode \$libdir into a binary during linking.
15059 # This must work even if \$libdir does not exist
15060 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15061
15062 # If ld is used when linking, flag to hardcode \$libdir into a binary
15063 # during linking.  This must work even if \$libdir does not exist.
15064 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15065
15066 # Whether we need a single "-rpath" flag with a separated argument.
15067 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15068
15069 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15070 # DIR into the resulting binary.
15071 hardcode_direct=$hardcode_direct
15072
15073 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15074 # DIR into the resulting binary and the resulting library dependency is
15075 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15076 # library is relocated.
15077 hardcode_direct_absolute=$hardcode_direct_absolute
15078
15079 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15080 # into the resulting binary.
15081 hardcode_minus_L=$hardcode_minus_L
15082
15083 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15084 # into the resulting binary.
15085 hardcode_shlibpath_var=$hardcode_shlibpath_var
15086
15087 # Set to "yes" if building a shared library automatically hardcodes DIR
15088 # into the library and all subsequent libraries and executables linked
15089 # against it.
15090 hardcode_automatic=$hardcode_automatic
15091
15092 # Set to yes if linker adds runtime paths of dependent libraries
15093 # to runtime path list.
15094 inherit_rpath=$inherit_rpath
15095
15096 # Whether libtool must link a program against all its dependency libraries.
15097 link_all_deplibs=$link_all_deplibs
15098
15099 # Fix the shell variable \$srcfile for the compiler.
15100 fix_srcfile_path=$lt_fix_srcfile_path
15101
15102 # Set to "yes" if exported symbols are required.
15103 always_export_symbols=$always_export_symbols
15104
15105 # The commands to list exported symbols.
15106 export_symbols_cmds=$lt_export_symbols_cmds
15107
15108 # Symbols that should not be listed in the preloaded symbols.
15109 exclude_expsyms=$lt_exclude_expsyms
15110
15111 # Symbols that must always be exported.
15112 include_expsyms=$lt_include_expsyms
15113
15114 # Commands necessary for linking programs (against libraries) with templates.
15115 prelink_cmds=$lt_prelink_cmds
15116
15117 # Specify filename containing input files.
15118 file_list_spec=$lt_file_list_spec
15119
15120 # How to hardcode a shared library path into an executable.
15121 hardcode_action=$hardcode_action
15122
15123 # ### END LIBTOOL CONFIG
15124
15125 _LT_EOF
15126
15127   case $host_os in
15128   aix3*)
15129     cat <<\_LT_EOF >> "$cfgfile"
15130 # AIX sometimes has problems with the GCC collect2 program.  For some
15131 # reason, if we set the COLLECT_NAMES environment variable, the problems
15132 # vanish in a puff of smoke.
15133 if test "X${COLLECT_NAMES+set}" != Xset; then
15134   COLLECT_NAMES=
15135   export COLLECT_NAMES
15136 fi
15137 _LT_EOF
15138     ;;
15139   esac
15140
15141
15142 ltmain="$ac_aux_dir/ltmain.sh"
15143
15144
15145   # We use sed instead of cat because bash on DJGPP gets confused if
15146   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15147   # text mode, it properly converts lines to CR/LF.  This bash problem
15148   # is reportedly fixed, but why not run on old versions too?
15149   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15150     || (rm -f "$cfgfile"; exit 1)
15151
15152   case $xsi_shell in
15153   yes)
15154     cat << \_LT_EOF >> "$cfgfile"
15155
15156 # func_dirname file append nondir_replacement
15157 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15158 # otherwise set result to NONDIR_REPLACEMENT.
15159 func_dirname ()
15160 {
15161   case ${1} in
15162     */*) func_dirname_result="${1%/*}${2}" ;;
15163     *  ) func_dirname_result="${3}" ;;
15164   esac
15165 }
15166
15167 # func_basename file
15168 func_basename ()
15169 {
15170   func_basename_result="${1##*/}"
15171 }
15172
15173 # func_dirname_and_basename file append nondir_replacement
15174 # perform func_basename and func_dirname in a single function
15175 # call:
15176 #   dirname:  Compute the dirname of FILE.  If nonempty,
15177 #             add APPEND to the result, otherwise set result
15178 #             to NONDIR_REPLACEMENT.
15179 #             value returned in "$func_dirname_result"
15180 #   basename: Compute filename of FILE.
15181 #             value retuned in "$func_basename_result"
15182 # Implementation must be kept synchronized with func_dirname
15183 # and func_basename. For efficiency, we do not delegate to
15184 # those functions but instead duplicate the functionality here.
15185 func_dirname_and_basename ()
15186 {
15187   case ${1} in
15188     */*) func_dirname_result="${1%/*}${2}" ;;
15189     *  ) func_dirname_result="${3}" ;;
15190   esac
15191   func_basename_result="${1##*/}"
15192 }
15193
15194 # func_stripname prefix suffix name
15195 # strip PREFIX and SUFFIX off of NAME.
15196 # PREFIX and SUFFIX must not contain globbing or regex special
15197 # characters, hashes, percent signs, but SUFFIX may contain a leading
15198 # dot (in which case that matches only a dot).
15199 func_stripname ()
15200 {
15201   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15202   # positional parameters, so assign one to ordinary parameter first.
15203   func_stripname_result=${3}
15204   func_stripname_result=${func_stripname_result#"${1}"}
15205   func_stripname_result=${func_stripname_result%"${2}"}
15206 }
15207
15208 # func_opt_split
15209 func_opt_split ()
15210 {
15211   func_opt_split_opt=${1%%=*}
15212   func_opt_split_arg=${1#*=}
15213 }
15214
15215 # func_lo2o object
15216 func_lo2o ()
15217 {
15218   case ${1} in
15219     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15220     *)    func_lo2o_result=${1} ;;
15221   esac
15222 }
15223
15224 # func_xform libobj-or-source
15225 func_xform ()
15226 {
15227   func_xform_result=${1%.*}.lo
15228 }
15229
15230 # func_arith arithmetic-term...
15231 func_arith ()
15232 {
15233   func_arith_result=$(( $* ))
15234 }
15235
15236 # func_len string
15237 # STRING may not start with a hyphen.
15238 func_len ()
15239 {
15240   func_len_result=${#1}
15241 }
15242
15243 _LT_EOF
15244     ;;
15245   *) # Bourne compatible functions.
15246     cat << \_LT_EOF >> "$cfgfile"
15247
15248 # func_dirname file append nondir_replacement
15249 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15250 # otherwise set result to NONDIR_REPLACEMENT.
15251 func_dirname ()
15252 {
15253   # Extract subdirectory from the argument.
15254   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15255   if test "X$func_dirname_result" = "X${1}"; then
15256     func_dirname_result="${3}"
15257   else
15258     func_dirname_result="$func_dirname_result${2}"
15259   fi
15260 }
15261
15262 # func_basename file
15263 func_basename ()
15264 {
15265   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15266 }
15267
15268
15269 # func_stripname prefix suffix name
15270 # strip PREFIX and SUFFIX off of NAME.
15271 # PREFIX and SUFFIX must not contain globbing or regex special
15272 # characters, hashes, percent signs, but SUFFIX may contain a leading
15273 # dot (in which case that matches only a dot).
15274 # func_strip_suffix prefix name
15275 func_stripname ()
15276 {
15277   case ${2} in
15278     .*) func_stripname_result=`$ECHO "X${3}" \
15279            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15280     *)  func_stripname_result=`$ECHO "X${3}" \
15281            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15282   esac
15283 }
15284
15285 # sed scripts:
15286 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15287 my_sed_long_arg='1s/^-[^=]*=//'
15288
15289 # func_opt_split
15290 func_opt_split ()
15291 {
15292   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15293   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15294 }
15295
15296 # func_lo2o object
15297 func_lo2o ()
15298 {
15299   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15300 }
15301
15302 # func_xform libobj-or-source
15303 func_xform ()
15304 {
15305   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15306 }
15307
15308 # func_arith arithmetic-term...
15309 func_arith ()
15310 {
15311   func_arith_result=`expr "$@"`
15312 }
15313
15314 # func_len string
15315 # STRING may not start with a hyphen.
15316 func_len ()
15317 {
15318   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15319 }
15320
15321 _LT_EOF
15322 esac
15323
15324 case $lt_shell_append in
15325   yes)
15326     cat << \_LT_EOF >> "$cfgfile"
15327
15328 # func_append var value
15329 # Append VALUE to the end of shell variable VAR.
15330 func_append ()
15331 {
15332   eval "$1+=\$2"
15333 }
15334 _LT_EOF
15335     ;;
15336   *)
15337     cat << \_LT_EOF >> "$cfgfile"
15338
15339 # func_append var value
15340 # Append VALUE to the end of shell variable VAR.
15341 func_append ()
15342 {
15343   eval "$1=\$$1\$2"
15344 }
15345
15346 _LT_EOF
15347     ;;
15348   esac
15349
15350
15351   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15352     || (rm -f "$cfgfile"; exit 1)
15353
15354   mv -f "$cfgfile" "$ofile" ||
15355     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15356   chmod +x "$ofile"
15357
15358  ;;
15359   esac
15360 done
15361 _ACEOF
15362
15363 cat >>$CONFIG_STATUS <<\_ACEOF
15364
15365 { (exit 0); exit 0; }
15366 _ACEOF
15367 chmod +x $CONFIG_STATUS
15368 ac_clean_files=$ac_clean_files_save
15369
15370
15371 # configure is writing to config.log, and then calls config.status.
15372 # config.status does its own redirection, appending to config.log.
15373 # Unfortunately, on DOS this fails, as config.log is still kept open
15374 # by configure, so config.status won't be able to write to it; its
15375 # output is simply discarded.  So we exec the FD to /dev/null,
15376 # effectively closing config.log, so it can be properly (re)opened and
15377 # appended to by config.status.  When coming back to configure, we
15378 # need to make the FD available again.
15379 if test "$no_create" != yes; then
15380   ac_cs_success=:
15381   ac_config_status_args=
15382   test "$silent" = yes &&
15383     ac_config_status_args="$ac_config_status_args --quiet"
15384   exec 5>/dev/null
15385   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15386   exec 5>>config.log
15387   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15388   # would make configure fail if this is the last instruction.
15389   $ac_cs_success || { (exit 1); exit 1; }
15390 fi
15391