Add new binutils target: moxie
[external/binutils.git] / opcodes / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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=
418 PACKAGE_TARNAME=
419 PACKAGE_VERSION=
420 PACKAGE_STRING=
421 PACKAGE_BUGREPORT=
422
423 ac_unique_file="z8k-dis.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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE CC_FOR_BUILD EXEEXT_FOR_BUILD HDEFINES CGEN_MAINT_TRUE CGEN_MAINT_FALSE cgendir LIBM SHARED_LDFLAGS SHARED_LIBADD SHARED_DEPENDENCIES archdefs BFD_MACHINES 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_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923
924 #
925 # Report the --help message.
926 #
927 if test "$ac_init_help" = "long"; then
928   # Omit some internal or obsolete options to make the list less imposing.
929   # This message is too long to be a string in the A/UX 3.1 sh.
930   cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
932
933 Usage: $0 [OPTION]... [VAR=VALUE]...
934
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE.  See below for descriptions of some of the useful variables.
937
938 Defaults for the options are specified in brackets.
939
940 Configuration:
941   -h, --help              display this help and exit
942       --help=short        display options specific to this package
943       --help=recursive    display the short help of all the included packages
944   -V, --version           display version information and exit
945   -q, --quiet, --silent   do not print \`checking...' messages
946       --cache-file=FILE   cache test results in FILE [disabled]
947   -C, --config-cache      alias for \`--cache-file=config.cache'
948   -n, --no-create         do not create output files
949       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
950
951 _ACEOF
952
953   cat <<_ACEOF
954 Installation directories:
955   --prefix=PREFIX         install architecture-independent files in PREFIX
956                           [$ac_default_prefix]
957   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
958                           [PREFIX]
959
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
964
965 For better control, use the options below.
966
967 Fine tuning of the installation directories:
968   --bindir=DIR           user executables [EPREFIX/bin]
969   --sbindir=DIR          system admin executables [EPREFIX/sbin]
970   --libexecdir=DIR       program executables [EPREFIX/libexec]
971   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
972   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
973   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
974   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
975   --libdir=DIR           object code libraries [EPREFIX/lib]
976   --includedir=DIR       C header files [PREFIX/include]
977   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
978   --infodir=DIR          info documentation [PREFIX/info]
979   --mandir=DIR           man documentation [PREFIX/man]
980 _ACEOF
981
982   cat <<\_ACEOF
983
984 Program names:
985   --program-prefix=PREFIX            prepend PREFIX to installed program names
986   --program-suffix=SUFFIX            append SUFFIX to installed program names
987   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
988
989 System types:
990   --build=BUILD     configure for building on BUILD [guessed]
991   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
992   --target=TARGET   configure for building compilers for TARGET [HOST]
993 _ACEOF
994 fi
995
996 if test -n "$ac_init_help"; then
997
998   cat <<\_ACEOF
999
1000 Optional Features:
1001   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1002   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1003   --disable-dependency-tracking  speeds up one-time build
1004   --enable-dependency-tracking   do not reject slow dependency extractors
1005   --enable-shared[=PKGS]
1006                           build shared libraries [default=no]
1007   --enable-static[=PKGS]
1008                           build static libraries [default=yes]
1009   --enable-fast-install[=PKGS]
1010                           optimize for fast installation [default=yes]
1011   --disable-libtool-lock  avoid locking (might break parallel builds)
1012   --enable-targets        alternative target configurations
1013   --enable-werror         treat compile warnings as errors
1014   --enable-build-warnings enable build-time compiler warnings
1015   --enable-maintainer-mode  enable make rules and dependencies not useful
1016                           (and sometimes confusing) to the casual installer
1017   --enable-install-libbfd controls installation of libbfd and related headers
1018   --disable-nls           do not use Native Language Support
1019   --enable-cgen-maint=dir    build cgen generated files
1020
1021 Optional Packages:
1022   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1023   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1024   --with-pic              try to use only PIC/non-PIC objects [default=use
1025                           both]
1026   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1027
1028 Some influential environment variables:
1029   CC          C compiler command
1030   CFLAGS      C compiler flags
1031   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1032               nonstandard directory <lib dir>
1033   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1034               headers in a nonstandard directory <include dir>
1035   CPP         C preprocessor
1036
1037 Use these variables to override the choices made by `configure' or to help
1038 it to find libraries and programs with nonstandard names/locations.
1039
1040 _ACEOF
1041 fi
1042
1043 if test "$ac_init_help" = "recursive"; then
1044   # If there are subdirs, report their specific --help.
1045   ac_popdir=`pwd`
1046   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047     test -d $ac_dir || continue
1048     ac_builddir=.
1049
1050 if test "$ac_dir" != .; then
1051   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052   # A "../" for each directory in $ac_dir_suffix.
1053   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054 else
1055   ac_dir_suffix= ac_top_builddir=
1056 fi
1057
1058 case $srcdir in
1059   .)  # No --srcdir option.  We are building in place.
1060     ac_srcdir=.
1061     if test -z "$ac_top_builddir"; then
1062        ac_top_srcdir=.
1063     else
1064        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065     fi ;;
1066   [\\/]* | ?:[\\/]* )  # Absolute path.
1067     ac_srcdir=$srcdir$ac_dir_suffix;
1068     ac_top_srcdir=$srcdir ;;
1069   *) # Relative path.
1070     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072 esac
1073
1074 # Do not use `cd foo && pwd` to compute absolute paths, because
1075 # the directories may not exist.
1076 case `pwd` in
1077 .) ac_abs_builddir="$ac_dir";;
1078 *)
1079   case "$ac_dir" in
1080   .) ac_abs_builddir=`pwd`;;
1081   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083   esac;;
1084 esac
1085 case $ac_abs_builddir in
1086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1087 *)
1088   case ${ac_top_builddir}. in
1089   .) ac_abs_top_builddir=$ac_abs_builddir;;
1090   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092   esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_srcdir=$ac_srcdir;;
1096 *)
1097   case $ac_srcdir in
1098   .) ac_abs_srcdir=$ac_abs_builddir;;
1099   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101   esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1105 *)
1106   case $ac_top_srcdir in
1107   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110   esac;;
1111 esac
1112
1113     cd $ac_dir
1114     # Check for guested configure; otherwise get Cygnus style configure.
1115     if test -f $ac_srcdir/configure.gnu; then
1116       echo
1117       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1118     elif test -f $ac_srcdir/configure; then
1119       echo
1120       $SHELL $ac_srcdir/configure  --help=recursive
1121     elif test -f $ac_srcdir/configure.ac ||
1122            test -f $ac_srcdir/configure.in; then
1123       echo
1124       $ac_configure --help
1125     else
1126       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127     fi
1128     cd $ac_popdir
1129   done
1130 fi
1131
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1134   cat <<\_ACEOF
1135
1136 Copyright (C) 2003 Free Software Foundation, Inc.
1137 This configure script is free software; the Free Software Foundation
1138 gives unlimited permission to copy, distribute and modify it.
1139 _ACEOF
1140   exit 0
1141 fi
1142 exec 5>config.log
1143 cat >&5 <<_ACEOF
1144 This file contains any messages produced by compilers while
1145 running configure, to aid debugging if configure makes a mistake.
1146
1147 It was created by $as_me, which was
1148 generated by GNU Autoconf 2.59.  Invocation command line was
1149
1150   $ $0 $@
1151
1152 _ACEOF
1153 {
1154 cat <<_ASUNAME
1155 ## --------- ##
1156 ## Platform. ##
1157 ## --------- ##
1158
1159 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1160 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1161 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1162 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1163 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1164
1165 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1166 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1167
1168 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1169 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1170 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1171 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1172 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1173 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1174 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1175
1176 _ASUNAME
1177
1178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1179 for as_dir in $PATH
1180 do
1181   IFS=$as_save_IFS
1182   test -z "$as_dir" && as_dir=.
1183   echo "PATH: $as_dir"
1184 done
1185
1186 } >&5
1187
1188 cat >&5 <<_ACEOF
1189
1190
1191 ## ----------- ##
1192 ## Core tests. ##
1193 ## ----------- ##
1194
1195 _ACEOF
1196
1197
1198 # Keep a trace of the command line.
1199 # Strip out --no-create and --no-recursion so they do not pile up.
1200 # Strip out --silent because we don't want to record it for future runs.
1201 # Also quote any args containing shell meta-characters.
1202 # Make two passes to allow for proper duplicate-argument suppression.
1203 ac_configure_args=
1204 ac_configure_args0=
1205 ac_configure_args1=
1206 ac_sep=
1207 ac_must_keep_next=false
1208 for ac_pass in 1 2
1209 do
1210   for ac_arg
1211   do
1212     case $ac_arg in
1213     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1214     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215     | -silent | --silent | --silen | --sile | --sil)
1216       continue ;;
1217     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1218       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1219     esac
1220     case $ac_pass in
1221     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1222     2)
1223       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1224       if test $ac_must_keep_next = true; then
1225         ac_must_keep_next=false # Got value, back to normal.
1226       else
1227         case $ac_arg in
1228           *=* | --config-cache | -C | -disable-* | --disable-* \
1229           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1230           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1231           | -with-* | --with-* | -without-* | --without-* | --x)
1232             case "$ac_configure_args0 " in
1233               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1234             esac
1235             ;;
1236           -* ) ac_must_keep_next=true ;;
1237         esac
1238       fi
1239       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1240       # Get rid of the leading space.
1241       ac_sep=" "
1242       ;;
1243     esac
1244   done
1245 done
1246 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1247 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1248
1249 # When interrupted or exit'd, cleanup temporary files, and complete
1250 # config.log.  We remove comments because anyway the quotes in there
1251 # would cause problems or look ugly.
1252 # WARNING: Be sure not to use single quotes in there, as some shells,
1253 # such as our DU 5.0 friend, will then `close' the trap.
1254 trap 'exit_status=$?
1255   # Save into config.log some information that might help in debugging.
1256   {
1257     echo
1258
1259     cat <<\_ASBOX
1260 ## ---------------- ##
1261 ## Cache variables. ##
1262 ## ---------------- ##
1263 _ASBOX
1264     echo
1265     # The following way of writing the cache mishandles newlines in values,
1266 {
1267   (set) 2>&1 |
1268     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1269     *ac_space=\ *)
1270       sed -n \
1271         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1272           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1273       ;;
1274     *)
1275       sed -n \
1276         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1277       ;;
1278     esac;
1279 }
1280     echo
1281
1282     cat <<\_ASBOX
1283 ## ----------------- ##
1284 ## Output variables. ##
1285 ## ----------------- ##
1286 _ASBOX
1287     echo
1288     for ac_var in $ac_subst_vars
1289     do
1290       eval ac_val=$`echo $ac_var`
1291       echo "$ac_var='"'"'$ac_val'"'"'"
1292     done | sort
1293     echo
1294
1295     if test -n "$ac_subst_files"; then
1296       cat <<\_ASBOX
1297 ## ------------- ##
1298 ## Output files. ##
1299 ## ------------- ##
1300 _ASBOX
1301       echo
1302       for ac_var in $ac_subst_files
1303       do
1304         eval ac_val=$`echo $ac_var`
1305         echo "$ac_var='"'"'$ac_val'"'"'"
1306       done | sort
1307       echo
1308     fi
1309
1310     if test -s confdefs.h; then
1311       cat <<\_ASBOX
1312 ## ----------- ##
1313 ## confdefs.h. ##
1314 ## ----------- ##
1315 _ASBOX
1316       echo
1317       sed "/^$/d" confdefs.h | sort
1318       echo
1319     fi
1320     test "$ac_signal" != 0 &&
1321       echo "$as_me: caught signal $ac_signal"
1322     echo "$as_me: exit $exit_status"
1323   } >&5
1324   rm -f core *.core &&
1325   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1326     exit $exit_status
1327      ' 0
1328 for ac_signal in 1 2 13 15; do
1329   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1330 done
1331 ac_signal=0
1332
1333 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1334 rm -rf conftest* confdefs.h
1335 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1336 echo >confdefs.h
1337
1338 # Predefined preprocessor variables.
1339
1340 cat >>confdefs.h <<_ACEOF
1341 #define PACKAGE_NAME "$PACKAGE_NAME"
1342 _ACEOF
1343
1344
1345 cat >>confdefs.h <<_ACEOF
1346 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1347 _ACEOF
1348
1349
1350 cat >>confdefs.h <<_ACEOF
1351 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1352 _ACEOF
1353
1354
1355 cat >>confdefs.h <<_ACEOF
1356 #define PACKAGE_STRING "$PACKAGE_STRING"
1357 _ACEOF
1358
1359
1360 cat >>confdefs.h <<_ACEOF
1361 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1362 _ACEOF
1363
1364
1365 # Let the site file select an alternate cache file if it wants to.
1366 # Prefer explicitly selected file to automatically selected ones.
1367 if test -z "$CONFIG_SITE"; then
1368   if test "x$prefix" != xNONE; then
1369     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1370   else
1371     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1372   fi
1373 fi
1374 for ac_site_file in $CONFIG_SITE; do
1375   if test -r "$ac_site_file"; then
1376     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1377 echo "$as_me: loading site script $ac_site_file" >&6;}
1378     sed 's/^/| /' "$ac_site_file" >&5
1379     . "$ac_site_file"
1380   fi
1381 done
1382
1383 if test -r "$cache_file"; then
1384   # Some versions of bash will fail to source /dev/null (special
1385   # files actually), so we avoid doing that.
1386   if test -f "$cache_file"; then
1387     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1388 echo "$as_me: loading cache $cache_file" >&6;}
1389     case $cache_file in
1390       [\\/]* | ?:[\\/]* ) . $cache_file;;
1391       *)                      . ./$cache_file;;
1392     esac
1393   fi
1394 else
1395   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1396 echo "$as_me: creating cache $cache_file" >&6;}
1397   >$cache_file
1398 fi
1399
1400 # Check that the precious variables saved in the cache have kept the same
1401 # value.
1402 ac_cache_corrupted=false
1403 for ac_var in `(set) 2>&1 |
1404                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1405   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1406   eval ac_new_set=\$ac_env_${ac_var}_set
1407   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1408   eval ac_new_val="\$ac_env_${ac_var}_value"
1409   case $ac_old_set,$ac_new_set in
1410     set,)
1411       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1413       ac_cache_corrupted=: ;;
1414     ,set)
1415       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1416 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1417       ac_cache_corrupted=: ;;
1418     ,);;
1419     *)
1420       if test "x$ac_old_val" != "x$ac_new_val"; then
1421         # differences in whitespace do not lead to failure.
1422         ac_old_val_w=`echo x $ac_old_val`
1423         ac_new_val_w=`echo x $ac_new_val`
1424         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1425           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1426 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1427           ac_cache_corrupted=:
1428         else
1429           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1430 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1431           eval $ac_var=\$ac_old_val
1432         fi
1433         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1434 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1435         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1436 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1437       fi;;
1438   esac
1439   # Pass precious variables to config.status.
1440   if test "$ac_new_set" = set; then
1441     case $ac_new_val in
1442     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1443       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1444     *) ac_arg=$ac_var=$ac_new_val ;;
1445     esac
1446     case " $ac_configure_args " in
1447       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1448       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1449     esac
1450   fi
1451 done
1452 if $ac_cache_corrupted; then
1453   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1454 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1455   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459    { (exit 1); exit 1; }; }
1460 fi
1461
1462 ac_ext=c
1463 ac_cpp='$CPP $CPPFLAGS'
1464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491 ac_aux_dir=
1492 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1493   if 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/install.sh; then
1498     ac_aux_dir=$ac_dir
1499     ac_install_sh="$ac_aux_dir/install.sh -c"
1500     break
1501   elif test -f $ac_dir/shtool; then
1502     ac_aux_dir=$ac_dir
1503     ac_install_sh="$ac_aux_dir/shtool install -c"
1504     break
1505   fi
1506 done
1507 if test -z "$ac_aux_dir"; then
1508   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1509 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1510    { (exit 1); exit 1; }; }
1511 fi
1512 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1513 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1514 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1515
1516 # Make sure we can run config.sub.
1517 $ac_config_sub sun4 >/dev/null 2>&1 ||
1518   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1519 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1520    { (exit 1); exit 1; }; }
1521
1522 echo "$as_me:$LINENO: checking build system type" >&5
1523 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1524 if test "${ac_cv_build+set}" = set; then
1525   echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527   ac_cv_build_alias=$build_alias
1528 test -z "$ac_cv_build_alias" &&
1529   ac_cv_build_alias=`$ac_config_guess`
1530 test -z "$ac_cv_build_alias" &&
1531   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1532 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1533    { (exit 1); exit 1; }; }
1534 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1535   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1536 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1537    { (exit 1); exit 1; }; }
1538
1539 fi
1540 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1541 echo "${ECHO_T}$ac_cv_build" >&6
1542 build=$ac_cv_build
1543 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1544 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1545 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546
1547
1548 echo "$as_me:$LINENO: checking host system type" >&5
1549 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1550 if test "${ac_cv_host+set}" = set; then
1551   echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553   ac_cv_host_alias=$host_alias
1554 test -z "$ac_cv_host_alias" &&
1555   ac_cv_host_alias=$ac_cv_build_alias
1556 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1557   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1558 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1559    { (exit 1); exit 1; }; }
1560
1561 fi
1562 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1563 echo "${ECHO_T}$ac_cv_host" >&6
1564 host=$ac_cv_host
1565 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1566 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1567 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568
1569
1570 echo "$as_me:$LINENO: checking target system type" >&5
1571 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1572 if test "${ac_cv_target+set}" = set; then
1573   echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575   ac_cv_target_alias=$target_alias
1576 test "x$ac_cv_target_alias" = "x" &&
1577   ac_cv_target_alias=$ac_cv_host_alias
1578 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1579   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1580 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1581    { (exit 1); exit 1; }; }
1582
1583 fi
1584 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1585 echo "${ECHO_T}$ac_cv_target" >&6
1586 target=$ac_cv_target
1587 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590
1591
1592 # The aliases save the names the user supplied, while $host etc.
1593 # will get canonicalized.
1594 test -n "$target_alias" &&
1595   test "$program_prefix$program_suffix$program_transform_name" = \
1596     NONENONEs,x,x, &&
1597   program_prefix=${target_alias}-
1598 ac_ext=c
1599 ac_cpp='$CPP $CPPFLAGS'
1600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1603 if test -n "$ac_tool_prefix"; then
1604   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609   echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611   if test -n "$CC"; then
1612   ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617   IFS=$as_save_IFS
1618   test -z "$as_dir" && as_dir=.
1619   for ac_exec_ext in '' $ac_executable_extensions; do
1620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623     break 2
1624   fi
1625 done
1626 done
1627
1628 fi
1629 fi
1630 CC=$ac_cv_prog_CC
1631 if test -n "$CC"; then
1632   echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1634 else
1635   echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 fi
1638
1639 fi
1640 if test -z "$ac_cv_prog_CC"; then
1641   ac_ct_CC=$CC
1642   # Extract the first word of "gcc", so it can be a program name with args.
1643 set dummy gcc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647   echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649   if test -n "$ac_ct_CC"; then
1650   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655   IFS=$as_save_IFS
1656   test -z "$as_dir" && as_dir=.
1657   for ac_exec_ext in '' $ac_executable_extensions; do
1658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659     ac_cv_prog_ac_ct_CC="gcc"
1660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661     break 2
1662   fi
1663 done
1664 done
1665
1666 fi
1667 fi
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1672 else
1673   echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677   CC=$ac_ct_CC
1678 else
1679   CC="$ac_cv_prog_CC"
1680 fi
1681
1682 if test -z "$CC"; then
1683   if test -n "$ac_tool_prefix"; then
1684   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1685 set dummy ${ac_tool_prefix}cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   if test -n "$CC"; then
1692   ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1695 for as_dir in $PATH
1696 do
1697   IFS=$as_save_IFS
1698   test -z "$as_dir" && as_dir=.
1699   for ac_exec_ext in '' $ac_executable_extensions; do
1700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701     ac_cv_prog_CC="${ac_tool_prefix}cc"
1702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1703     break 2
1704   fi
1705 done
1706 done
1707
1708 fi
1709 fi
1710 CC=$ac_cv_prog_CC
1711 if test -n "$CC"; then
1712   echo "$as_me:$LINENO: result: $CC" >&5
1713 echo "${ECHO_T}$CC" >&6
1714 else
1715   echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1717 fi
1718
1719 fi
1720 if test -z "$ac_cv_prog_CC"; then
1721   ac_ct_CC=$CC
1722   # Extract the first word of "cc", so it can be a program name with args.
1723 set dummy cc; ac_word=$2
1724 echo "$as_me:$LINENO: checking for $ac_word" >&5
1725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1726 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1727   echo $ECHO_N "(cached) $ECHO_C" >&6
1728 else
1729   if test -n "$ac_ct_CC"; then
1730   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1731 else
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1733 for as_dir in $PATH
1734 do
1735   IFS=$as_save_IFS
1736   test -z "$as_dir" && as_dir=.
1737   for ac_exec_ext in '' $ac_executable_extensions; do
1738   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1739     ac_cv_prog_ac_ct_CC="cc"
1740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1741     break 2
1742   fi
1743 done
1744 done
1745
1746 fi
1747 fi
1748 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1749 if test -n "$ac_ct_CC"; then
1750   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1751 echo "${ECHO_T}$ac_ct_CC" >&6
1752 else
1753   echo "$as_me:$LINENO: result: no" >&5
1754 echo "${ECHO_T}no" >&6
1755 fi
1756
1757   CC=$ac_ct_CC
1758 else
1759   CC="$ac_cv_prog_CC"
1760 fi
1761
1762 fi
1763 if test -z "$CC"; then
1764   # Extract the first word of "cc", so it can be a program name with args.
1765 set dummy cc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   if test -n "$CC"; then
1772   ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774   ac_prog_rejected=no
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1777 do
1778   IFS=$as_save_IFS
1779   test -z "$as_dir" && as_dir=.
1780   for ac_exec_ext in '' $ac_executable_extensions; do
1781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1783        ac_prog_rejected=yes
1784        continue
1785      fi
1786     ac_cv_prog_CC="cc"
1787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788     break 2
1789   fi
1790 done
1791 done
1792
1793 if test $ac_prog_rejected = yes; then
1794   # We found a bogon in the path, so make sure we never use it.
1795   set dummy $ac_cv_prog_CC
1796   shift
1797   if test $# != 0; then
1798     # We chose a different compiler from the bogus one.
1799     # However, it has the same basename, so the bogon will be chosen
1800     # first if we set CC to just the basename; use the full file name.
1801     shift
1802     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1803   fi
1804 fi
1805 fi
1806 fi
1807 CC=$ac_cv_prog_CC
1808 if test -n "$CC"; then
1809   echo "$as_me:$LINENO: result: $CC" >&5
1810 echo "${ECHO_T}$CC" >&6
1811 else
1812   echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814 fi
1815
1816 fi
1817 if test -z "$CC"; then
1818   if test -n "$ac_tool_prefix"; then
1819   for ac_prog in cl
1820   do
1821     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826   echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828   if test -n "$CC"; then
1829   ac_cv_prog_CC="$CC" # Let the user override the test.
1830 else
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1833 do
1834   IFS=$as_save_IFS
1835   test -z "$as_dir" && as_dir=.
1836   for ac_exec_ext in '' $ac_executable_extensions; do
1837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840     break 2
1841   fi
1842 done
1843 done
1844
1845 fi
1846 fi
1847 CC=$ac_cv_prog_CC
1848 if test -n "$CC"; then
1849   echo "$as_me:$LINENO: result: $CC" >&5
1850 echo "${ECHO_T}$CC" >&6
1851 else
1852   echo "$as_me:$LINENO: result: no" >&5
1853 echo "${ECHO_T}no" >&6
1854 fi
1855
1856     test -n "$CC" && break
1857   done
1858 fi
1859 if test -z "$CC"; then
1860   ac_ct_CC=$CC
1861   for ac_prog in cl
1862 do
1863   # Extract the first word of "$ac_prog", so it can be a program name with args.
1864 set dummy $ac_prog; ac_word=$2
1865 echo "$as_me:$LINENO: checking for $ac_word" >&5
1866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1868   echo $ECHO_N "(cached) $ECHO_C" >&6
1869 else
1870   if test -n "$ac_ct_CC"; then
1871   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1872 else
1873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1874 for as_dir in $PATH
1875 do
1876   IFS=$as_save_IFS
1877   test -z "$as_dir" && as_dir=.
1878   for ac_exec_ext in '' $ac_executable_extensions; do
1879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880     ac_cv_prog_ac_ct_CC="$ac_prog"
1881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1882     break 2
1883   fi
1884 done
1885 done
1886
1887 fi
1888 fi
1889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1890 if test -n "$ac_ct_CC"; then
1891   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1892 echo "${ECHO_T}$ac_ct_CC" >&6
1893 else
1894   echo "$as_me:$LINENO: result: no" >&5
1895 echo "${ECHO_T}no" >&6
1896 fi
1897
1898   test -n "$ac_ct_CC" && break
1899 done
1900
1901   CC=$ac_ct_CC
1902 fi
1903
1904 fi
1905
1906
1907 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1908 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1909 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: no acceptable C compiler found in \$PATH
1912 See \`config.log' for more details." >&2;}
1913    { (exit 1); exit 1; }; }; }
1914
1915 # Provide some information about the compiler.
1916 echo "$as_me:$LINENO:" \
1917      "checking for C compiler version" >&5
1918 ac_compiler=`set X $ac_compile; echo $2`
1919 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1920   (eval $ac_compiler --version </dev/null >&5) 2>&5
1921   ac_status=$?
1922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923   (exit $ac_status); }
1924 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1925   (eval $ac_compiler -v </dev/null >&5) 2>&5
1926   ac_status=$?
1927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928   (exit $ac_status); }
1929 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1930   (eval $ac_compiler -V </dev/null >&5) 2>&5
1931   ac_status=$?
1932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933   (exit $ac_status); }
1934
1935 cat >conftest.$ac_ext <<_ACEOF
1936 /* confdefs.h.  */
1937 _ACEOF
1938 cat confdefs.h >>conftest.$ac_ext
1939 cat >>conftest.$ac_ext <<_ACEOF
1940 /* end confdefs.h.  */
1941
1942 int
1943 main ()
1944 {
1945
1946   ;
1947   return 0;
1948 }
1949 _ACEOF
1950 ac_clean_files_save=$ac_clean_files
1951 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1952 # Try to create an executable without -o first, disregard a.out.
1953 # It will help us diagnose broken compilers, and finding out an intuition
1954 # of exeext.
1955 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1956 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1957 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1958 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1959   (eval $ac_link_default) 2>&5
1960   ac_status=$?
1961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962   (exit $ac_status); }; then
1963   # Find the output, starting from the most likely.  This scheme is
1964 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1965 # resort.
1966
1967 # Be careful to initialize this variable, since it used to be cached.
1968 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1969 ac_cv_exeext=
1970 # b.out is created by i960 compilers.
1971 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1972 do
1973   test -f "$ac_file" || continue
1974   case $ac_file in
1975     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1976         ;;
1977     conftest.$ac_ext )
1978         # This is the source file.
1979         ;;
1980     [ab].out )
1981         # We found the default executable, but exeext='' is most
1982         # certainly right.
1983         break;;
1984     *.* )
1985         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1986         # FIXME: I believe we export ac_cv_exeext for Libtool,
1987         # but it would be cool to find out if it's true.  Does anybody
1988         # maintain Libtool? --akim.
1989         export ac_cv_exeext
1990         break;;
1991     * )
1992         break;;
1993   esac
1994 done
1995 else
1996   echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1998
1999 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2000 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2001 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2002 See \`config.log' for more details." >&5
2003 echo "$as_me: error: C compiler cannot create executables
2004 See \`config.log' for more details." >&2;}
2005    { (exit 77); exit 77; }; }; }
2006 fi
2007
2008 ac_exeext=$ac_cv_exeext
2009 echo "$as_me:$LINENO: result: $ac_file" >&5
2010 echo "${ECHO_T}$ac_file" >&6
2011
2012 # Check the compiler produces executables we can run.  If not, either
2013 # the compiler is broken, or we cross compile.
2014 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2015 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2016 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2017 # If not cross compiling, check that we can run a simple program.
2018 if test "$cross_compiling" != yes; then
2019   if { ac_try='./$ac_file'
2020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021   (eval $ac_try) 2>&5
2022   ac_status=$?
2023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024   (exit $ac_status); }; }; then
2025     cross_compiling=no
2026   else
2027     if test "$cross_compiling" = maybe; then
2028         cross_compiling=yes
2029     else
2030         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2031 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2032 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2033 If you meant to cross compile, use \`--host'.
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot run C compiled programs.
2036 If you meant to cross compile, use \`--host'.
2037 See \`config.log' for more details." >&2;}
2038    { (exit 1); exit 1; }; }; }
2039     fi
2040   fi
2041 fi
2042 echo "$as_me:$LINENO: result: yes" >&5
2043 echo "${ECHO_T}yes" >&6
2044
2045 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2046 ac_clean_files=$ac_clean_files_save
2047 # Check the compiler produces executables we can run.  If not, either
2048 # the compiler is broken, or we cross compile.
2049 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2050 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2051 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2052 echo "${ECHO_T}$cross_compiling" >&6
2053
2054 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2055 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2057   (eval $ac_link) 2>&5
2058   ac_status=$?
2059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060   (exit $ac_status); }; then
2061   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2062 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2063 # work properly (i.e., refer to `conftest.exe'), while it won't with
2064 # `rm'.
2065 for ac_file in conftest.exe conftest conftest.*; do
2066   test -f "$ac_file" || continue
2067   case $ac_file in
2068     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2069     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2070           export ac_cv_exeext
2071           break;;
2072     * ) break;;
2073   esac
2074 done
2075 else
2076   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2077 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2078 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2079 See \`config.log' for more details." >&5
2080 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2081 See \`config.log' for more details." >&2;}
2082    { (exit 1); exit 1; }; }; }
2083 fi
2084
2085 rm -f conftest$ac_cv_exeext
2086 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2087 echo "${ECHO_T}$ac_cv_exeext" >&6
2088
2089 rm -f conftest.$ac_ext
2090 EXEEXT=$ac_cv_exeext
2091 ac_exeext=$EXEEXT
2092 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2093 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2094 if test "${ac_cv_objext+set}" = set; then
2095   echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097   cat >conftest.$ac_ext <<_ACEOF
2098 /* confdefs.h.  */
2099 _ACEOF
2100 cat confdefs.h >>conftest.$ac_ext
2101 cat >>conftest.$ac_ext <<_ACEOF
2102 /* end confdefs.h.  */
2103
2104 int
2105 main ()
2106 {
2107
2108   ;
2109   return 0;
2110 }
2111 _ACEOF
2112 rm -f conftest.o conftest.obj
2113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2114   (eval $ac_compile) 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }; then
2118   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2119   case $ac_file in
2120     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2121     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2122        break;;
2123   esac
2124 done
2125 else
2126   echo "$as_me: failed program was:" >&5
2127 sed 's/^/| /' conftest.$ac_ext >&5
2128
2129 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2130 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2132 See \`config.log' for more details." >&5
2133 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2134 See \`config.log' for more details." >&2;}
2135    { (exit 1); exit 1; }; }; }
2136 fi
2137
2138 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2139 fi
2140 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2141 echo "${ECHO_T}$ac_cv_objext" >&6
2142 OBJEXT=$ac_cv_objext
2143 ac_objext=$OBJEXT
2144 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2145 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2146 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149   cat >conftest.$ac_ext <<_ACEOF
2150 /* confdefs.h.  */
2151 _ACEOF
2152 cat confdefs.h >>conftest.$ac_ext
2153 cat >>conftest.$ac_ext <<_ACEOF
2154 /* end confdefs.h.  */
2155
2156 int
2157 main ()
2158 {
2159 #ifndef __GNUC__
2160        choke me
2161 #endif
2162
2163   ;
2164   return 0;
2165 }
2166 _ACEOF
2167 rm -f conftest.$ac_objext
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169   (eval $ac_compile) 2>conftest.er1
2170   ac_status=$?
2171   grep -v '^ *+' conftest.er1 >conftest.err
2172   rm -f conftest.er1
2173   cat conftest.err >&5
2174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175   (exit $ac_status); } &&
2176          { ac_try='test -z "$ac_c_werror_flag"
2177                          || test ! -s conftest.err'
2178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2179   (eval $ac_try) 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }; } &&
2183          { ac_try='test -s conftest.$ac_objext'
2184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185   (eval $ac_try) 2>&5
2186   ac_status=$?
2187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188   (exit $ac_status); }; }; then
2189   ac_compiler_gnu=yes
2190 else
2191   echo "$as_me: failed program was:" >&5
2192 sed 's/^/| /' conftest.$ac_ext >&5
2193
2194 ac_compiler_gnu=no
2195 fi
2196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2197 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2198
2199 fi
2200 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2201 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2202 GCC=`test $ac_compiler_gnu = yes && echo yes`
2203 ac_test_CFLAGS=${CFLAGS+set}
2204 ac_save_CFLAGS=$CFLAGS
2205 CFLAGS="-g"
2206 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2207 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2208 if test "${ac_cv_prog_cc_g+set}" = set; then
2209   echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211   cat >conftest.$ac_ext <<_ACEOF
2212 /* confdefs.h.  */
2213 _ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h.  */
2217
2218 int
2219 main ()
2220 {
2221
2222   ;
2223   return 0;
2224 }
2225 _ACEOF
2226 rm -f conftest.$ac_objext
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228   (eval $ac_compile) 2>conftest.er1
2229   ac_status=$?
2230   grep -v '^ *+' conftest.er1 >conftest.err
2231   rm -f conftest.er1
2232   cat conftest.err >&5
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); } &&
2235          { ac_try='test -z "$ac_c_werror_flag"
2236                          || test ! -s conftest.err'
2237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238   (eval $ac_try) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; } &&
2242          { ac_try='test -s conftest.$ac_objext'
2243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244   (eval $ac_try) 2>&5
2245   ac_status=$?
2246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247   (exit $ac_status); }; }; then
2248   ac_cv_prog_cc_g=yes
2249 else
2250   echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252
2253 ac_cv_prog_cc_g=no
2254 fi
2255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2256 fi
2257 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2258 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2259 if test "$ac_test_CFLAGS" = set; then
2260   CFLAGS=$ac_save_CFLAGS
2261 elif test $ac_cv_prog_cc_g = yes; then
2262   if test "$GCC" = yes; then
2263     CFLAGS="-g -O2"
2264   else
2265     CFLAGS="-g"
2266   fi
2267 else
2268   if test "$GCC" = yes; then
2269     CFLAGS="-O2"
2270   else
2271     CFLAGS=
2272   fi
2273 fi
2274 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2275 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2276 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   ac_cv_prog_cc_stdc=no
2280 ac_save_CC=$CC
2281 cat >conftest.$ac_ext <<_ACEOF
2282 /* confdefs.h.  */
2283 _ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h.  */
2287 #include <stdarg.h>
2288 #include <stdio.h>
2289 #include <sys/types.h>
2290 #include <sys/stat.h>
2291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2292 struct buf { int x; };
2293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2294 static char *e (p, i)
2295      char **p;
2296      int i;
2297 {
2298   return p[i];
2299 }
2300 static char *f (char * (*g) (char **, int), char **p, ...)
2301 {
2302   char *s;
2303   va_list v;
2304   va_start (v,p);
2305   s = g (p, va_arg (v,int));
2306   va_end (v);
2307   return s;
2308 }
2309
2310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2311    function prototypes and stuff, but not '\xHH' hex character constants.
2312    These don't provoke an error unfortunately, instead are silently treated
2313    as 'x'.  The following induces an error, until -std1 is added to get
2314    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2315    array size at least.  It's necessary to write '\x00'==0 to get something
2316    that's true only with -std1.  */
2317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2318
2319 int test (int i, double x);
2320 struct s1 {int (*f) (int a);};
2321 struct s2 {int (*f) (double a);};
2322 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2323 int argc;
2324 char **argv;
2325 int
2326 main ()
2327 {
2328 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2329   ;
2330   return 0;
2331 }
2332 _ACEOF
2333 # Don't try gcc -ansi; that turns off useful extensions and
2334 # breaks some systems' header files.
2335 # AIX                   -qlanglvl=ansi
2336 # Ultrix and OSF/1      -std1
2337 # HP-UX 10.20 and later -Ae
2338 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2339 # SVR4                  -Xc -D__EXTENSIONS__
2340 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2341 do
2342   CC="$ac_save_CC $ac_arg"
2343   rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345   (eval $ac_compile) 2>conftest.er1
2346   ac_status=$?
2347   grep -v '^ *+' conftest.er1 >conftest.err
2348   rm -f conftest.er1
2349   cat conftest.err >&5
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); } &&
2352          { ac_try='test -z "$ac_c_werror_flag"
2353                          || test ! -s conftest.err'
2354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355   (eval $ac_try) 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }; } &&
2359          { ac_try='test -s conftest.$ac_objext'
2360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361   (eval $ac_try) 2>&5
2362   ac_status=$?
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); }; }; then
2365   ac_cv_prog_cc_stdc=$ac_arg
2366 break
2367 else
2368   echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 fi
2372 rm -f conftest.err conftest.$ac_objext
2373 done
2374 rm -f conftest.$ac_ext conftest.$ac_objext
2375 CC=$ac_save_CC
2376
2377 fi
2378
2379 case "x$ac_cv_prog_cc_stdc" in
2380   x|xno)
2381     echo "$as_me:$LINENO: result: none needed" >&5
2382 echo "${ECHO_T}none needed" >&6 ;;
2383   *)
2384     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2385 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2386     CC="$CC $ac_cv_prog_cc_stdc" ;;
2387 esac
2388
2389 # Some people use a C++ compiler to compile C.  Since we use `exit',
2390 # in C++ we need to declare it.  In case someone uses the same compiler
2391 # for both compiling C and C++ we need to have the C++ compiler decide
2392 # the declaration of exit, since it's the most demanding environment.
2393 cat >conftest.$ac_ext <<_ACEOF
2394 #ifndef __cplusplus
2395   choke me
2396 #endif
2397 _ACEOF
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400   (eval $ac_compile) 2>conftest.er1
2401   ac_status=$?
2402   grep -v '^ *+' conftest.er1 >conftest.err
2403   rm -f conftest.er1
2404   cat conftest.err >&5
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); } &&
2407          { ac_try='test -z "$ac_c_werror_flag"
2408                          || test ! -s conftest.err'
2409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410   (eval $ac_try) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; } &&
2414          { ac_try='test -s conftest.$ac_objext'
2415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416   (eval $ac_try) 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; }; then
2420   for ac_declaration in \
2421    '' \
2422    'extern "C" void std::exit (int) throw (); using std::exit;' \
2423    'extern "C" void std::exit (int); using std::exit;' \
2424    'extern "C" void exit (int) throw ();' \
2425    'extern "C" void exit (int);' \
2426    'void exit (int);'
2427 do
2428   cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h.  */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h.  */
2434 $ac_declaration
2435 #include <stdlib.h>
2436 int
2437 main ()
2438 {
2439 exit (42);
2440   ;
2441   return 0;
2442 }
2443 _ACEOF
2444 rm -f conftest.$ac_objext
2445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446   (eval $ac_compile) 2>conftest.er1
2447   ac_status=$?
2448   grep -v '^ *+' conftest.er1 >conftest.err
2449   rm -f conftest.er1
2450   cat conftest.err >&5
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); } &&
2453          { ac_try='test -z "$ac_c_werror_flag"
2454                          || test ! -s conftest.err'
2455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456   (eval $ac_try) 2>&5
2457   ac_status=$?
2458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459   (exit $ac_status); }; } &&
2460          { ac_try='test -s conftest.$ac_objext'
2461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462   (eval $ac_try) 2>&5
2463   ac_status=$?
2464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465   (exit $ac_status); }; }; then
2466   :
2467 else
2468   echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2470
2471 continue
2472 fi
2473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2474   cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h.  */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h.  */
2480 $ac_declaration
2481 int
2482 main ()
2483 {
2484 exit (42);
2485   ;
2486   return 0;
2487 }
2488 _ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491   (eval $ac_compile) 2>conftest.er1
2492   ac_status=$?
2493   grep -v '^ *+' conftest.er1 >conftest.err
2494   rm -f conftest.er1
2495   cat conftest.err >&5
2496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497   (exit $ac_status); } &&
2498          { ac_try='test -z "$ac_c_werror_flag"
2499                          || test ! -s conftest.err'
2500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2501   (eval $ac_try) 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; } &&
2505          { ac_try='test -s conftest.$ac_objext'
2506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507   (eval $ac_try) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; }; then
2511   break
2512 else
2513   echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2515
2516 fi
2517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518 done
2519 rm -f conftest*
2520 if test -n "$ac_declaration"; then
2521   echo '#ifdef __cplusplus' >>confdefs.h
2522   echo $ac_declaration      >>confdefs.h
2523   echo '#endif'             >>confdefs.h
2524 fi
2525
2526 else
2527   echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529
2530 fi
2531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2532 ac_ext=c
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537
2538
2539 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2540 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2541 if test "${ac_cv_search_strerror+set}" = set; then
2542   echo $ECHO_N "(cached) $ECHO_C" >&6
2543 else
2544   ac_func_search_save_LIBS=$LIBS
2545 ac_cv_search_strerror=no
2546 cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h.  */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h.  */
2552
2553 /* Override any gcc2 internal prototype to avoid an error.  */
2554 #ifdef __cplusplus
2555 extern "C"
2556 #endif
2557 /* We use char because int might match the return type of a gcc2
2558    builtin and then its argument prototype would still apply.  */
2559 char strerror ();
2560 int
2561 main ()
2562 {
2563 strerror ();
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 rm -f conftest.$ac_objext conftest$ac_exeext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2570   (eval $ac_link) 2>conftest.er1
2571   ac_status=$?
2572   grep -v '^ *+' conftest.er1 >conftest.err
2573   rm -f conftest.er1
2574   cat conftest.err >&5
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); } &&
2577          { ac_try='test -z "$ac_c_werror_flag"
2578                          || test ! -s conftest.err'
2579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580   (eval $ac_try) 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; } &&
2584          { ac_try='test -s conftest$ac_exeext'
2585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586   (eval $ac_try) 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; }; then
2590   ac_cv_search_strerror="none required"
2591 else
2592   echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2594
2595 fi
2596 rm -f conftest.err conftest.$ac_objext \
2597       conftest$ac_exeext conftest.$ac_ext
2598 if test "$ac_cv_search_strerror" = no; then
2599   for ac_lib in cposix; do
2600     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2601     cat >conftest.$ac_ext <<_ACEOF
2602 /* confdefs.h.  */
2603 _ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h.  */
2607
2608 /* Override any gcc2 internal prototype to avoid an error.  */
2609 #ifdef __cplusplus
2610 extern "C"
2611 #endif
2612 /* We use char because int might match the return type of a gcc2
2613    builtin and then its argument prototype would still apply.  */
2614 char strerror ();
2615 int
2616 main ()
2617 {
2618 strerror ();
2619   ;
2620   return 0;
2621 }
2622 _ACEOF
2623 rm -f conftest.$ac_objext conftest$ac_exeext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2625   (eval $ac_link) 2>conftest.er1
2626   ac_status=$?
2627   grep -v '^ *+' conftest.er1 >conftest.err
2628   rm -f conftest.er1
2629   cat conftest.err >&5
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } &&
2632          { ac_try='test -z "$ac_c_werror_flag"
2633                          || test ! -s conftest.err'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; } &&
2639          { ac_try='test -s conftest$ac_exeext'
2640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641   (eval $ac_try) 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); }; }; then
2645   ac_cv_search_strerror="-l$ac_lib"
2646 break
2647 else
2648   echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2650
2651 fi
2652 rm -f conftest.err conftest.$ac_objext \
2653       conftest$ac_exeext conftest.$ac_ext
2654   done
2655 fi
2656 LIBS=$ac_func_search_save_LIBS
2657 fi
2658 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2659 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2660 if test "$ac_cv_search_strerror" != no; then
2661   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2662
2663 fi
2664
2665
2666 # We currently only use the version number for the name of any shared
2667 # library.  For user convenience, we always use the same version
2668 # number that BFD is using.
2669 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2670
2671 am__api_version="1.9"
2672 # Find a good install program.  We prefer a C program (faster),
2673 # so one script is as good as another.  But avoid the broken or
2674 # incompatible versions:
2675 # SysV /etc/install, /usr/sbin/install
2676 # SunOS /usr/etc/install
2677 # IRIX /sbin/install
2678 # AIX /bin/install
2679 # AmigaOS /C/install, which installs bootblocks on floppy discs
2680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2683 # OS/2's system install, which has a completely different semantic
2684 # ./install, which can be erroneously created by make from ./install.sh.
2685 # Reject install programs that cannot install multiple files.
2686 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2687 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2688 if test -z "$INSTALL"; then
2689 if test "${ac_cv_path_install+set}" = set; then
2690   echo $ECHO_N "(cached) $ECHO_C" >&6
2691 else
2692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695   IFS=$as_save_IFS
2696   test -z "$as_dir" && as_dir=.
2697   # Account for people who put trailing slashes in PATH elements.
2698 case $as_dir/ in
2699   ./ | .// | /cC/* | \
2700   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2702   /usr/ucb/* ) ;;
2703   *)
2704     # OSF1 and SCO ODT 3.0 have their own names for install.
2705     # Don't use installbsd from OSF since it installs stuff as root
2706     # by default.
2707     for ac_prog in ginstall scoinst install; do
2708       for ac_exec_ext in '' $ac_executable_extensions; do
2709         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2710           if test $ac_prog = install &&
2711             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712             # AIX install.  It has an incompatible calling convention.
2713             :
2714           elif test $ac_prog = install &&
2715             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716             # program-specific install script used by HP pwplus--don't use.
2717             :
2718           else
2719             rm -rf conftest.one conftest.two conftest.dir
2720             echo one > conftest.one
2721             echo two > conftest.two
2722             mkdir conftest.dir
2723             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724               test -s conftest.one && test -s conftest.two &&
2725               test -s conftest.dir/conftest.one &&
2726               test -s conftest.dir/conftest.two
2727             then
2728               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729               break 3
2730             fi
2731           fi
2732         fi
2733       done
2734     done
2735     ;;
2736 esac
2737 done
2738
2739 rm -rf conftest.one conftest.two conftest.dir
2740
2741 fi
2742   if test "${ac_cv_path_install+set}" = set; then
2743     INSTALL=$ac_cv_path_install
2744   else
2745     # As a last resort, use the slow shell script.  Don't cache a
2746     # value for INSTALL within a source directory, because that will
2747     # break other packages using the cache if that directory is
2748     # removed, or if the value is a relative name.
2749     INSTALL=$ac_install_sh
2750   fi
2751 fi
2752 echo "$as_me:$LINENO: result: $INSTALL" >&5
2753 echo "${ECHO_T}$INSTALL" >&6
2754
2755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756 # It thinks the first close brace ends the variable substitution.
2757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2758
2759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2760
2761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2762
2763 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2764 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2765 # Just in case
2766 sleep 1
2767 echo timestamp > conftest.file
2768 # Do `set' in a subshell so we don't clobber the current shell's
2769 # arguments.  Must try -L first in case configure is actually a
2770 # symlink; some systems play weird games with the mod time of symlinks
2771 # (eg FreeBSD returns the mod time of the symlink's containing
2772 # directory).
2773 if (
2774    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2775    if test "$*" = "X"; then
2776       # -L didn't work.
2777       set X `ls -t $srcdir/configure conftest.file`
2778    fi
2779    rm -f conftest.file
2780    if test "$*" != "X $srcdir/configure conftest.file" \
2781       && test "$*" != "X conftest.file $srcdir/configure"; then
2782
2783       # If neither matched, then we have a broken ls.  This can happen
2784       # if, for instance, CONFIG_SHELL is bash and it inherits a
2785       # broken ls alias from the environment.  This has actually
2786       # happened.  Such a system could not be considered "sane".
2787       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2788 alias in your environment" >&5
2789 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2790 alias in your environment" >&2;}
2791    { (exit 1); exit 1; }; }
2792    fi
2793
2794    test "$2" = conftest.file
2795    )
2796 then
2797    # Ok.
2798    :
2799 else
2800    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2801 Check your system clock" >&5
2802 echo "$as_me: error: newly created file is older than distributed files!
2803 Check your system clock" >&2;}
2804    { (exit 1); exit 1; }; }
2805 fi
2806 echo "$as_me:$LINENO: result: yes" >&5
2807 echo "${ECHO_T}yes" >&6
2808 test "$program_prefix" != NONE &&
2809   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2810 # Use a double $ so make ignores it.
2811 test "$program_suffix" != NONE &&
2812   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2813 # Double any \ or $.  echo might interpret backslashes.
2814 # By default was `s,x,x', remove it if useless.
2815 cat <<\_ACEOF >conftest.sed
2816 s/[\\$]/&&/g;s/;s,x,x,$//
2817 _ACEOF
2818 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2819 rm conftest.sed
2820
2821 # expand $ac_aux_dir to an absolute path
2822 am_aux_dir=`cd $ac_aux_dir && pwd`
2823
2824 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2825 # Use eval to expand $SHELL
2826 if eval "$MISSING --run true"; then
2827   am_missing_run="$MISSING --run "
2828 else
2829   am_missing_run=
2830   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2831 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2832 fi
2833
2834 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2835   # We used to keeping the `.' as first argument, in order to
2836   # allow $(mkdir_p) to be used without argument.  As in
2837   #   $(mkdir_p) $(somedir)
2838   # where $(somedir) is conditionally defined.  However this is wrong
2839   # for two reasons:
2840   #  1. if the package is installed by a user who cannot write `.'
2841   #     make install will fail,
2842   #  2. the above comment should most certainly read
2843   #     $(mkdir_p) $(DESTDIR)$(somedir)
2844   #     so it does not work when $(somedir) is undefined and
2845   #     $(DESTDIR) is not.
2846   #  To support the latter case, we have to write
2847   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2848   #  so the `.' trick is pointless.
2849   mkdir_p='mkdir -p --'
2850 else
2851   # On NextStep and OpenStep, the `mkdir' command does not
2852   # recognize any option.  It will interpret all options as
2853   # directories to create, and then abort because `.' already
2854   # exists.
2855   for d in ./-p ./--version;
2856   do
2857     test -d $d && rmdir $d
2858   done
2859   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2860   if test -f "$ac_aux_dir/mkinstalldirs"; then
2861     mkdir_p='$(mkinstalldirs)'
2862   else
2863     mkdir_p='$(install_sh) -d'
2864   fi
2865 fi
2866
2867 for ac_prog in gawk mawk nawk awk
2868 do
2869   # Extract the first word of "$ac_prog", so it can be a program name with args.
2870 set dummy $ac_prog; ac_word=$2
2871 echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873 if test "${ac_cv_prog_AWK+set}" = set; then
2874   echo $ECHO_N "(cached) $ECHO_C" >&6
2875 else
2876   if test -n "$AWK"; then
2877   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882   IFS=$as_save_IFS
2883   test -z "$as_dir" && as_dir=.
2884   for ac_exec_ext in '' $ac_executable_extensions; do
2885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886     ac_cv_prog_AWK="$ac_prog"
2887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2888     break 2
2889   fi
2890 done
2891 done
2892
2893 fi
2894 fi
2895 AWK=$ac_cv_prog_AWK
2896 if test -n "$AWK"; then
2897   echo "$as_me:$LINENO: result: $AWK" >&5
2898 echo "${ECHO_T}$AWK" >&6
2899 else
2900   echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2902 fi
2903
2904   test -n "$AWK" && break
2905 done
2906
2907 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2908 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2909 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2910 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2911   echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913   cat >conftest.make <<\_ACEOF
2914 all:
2915         @echo 'ac_maketemp="$(MAKE)"'
2916 _ACEOF
2917 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2918 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2919 if test -n "$ac_maketemp"; then
2920   eval ac_cv_prog_make_${ac_make}_set=yes
2921 else
2922   eval ac_cv_prog_make_${ac_make}_set=no
2923 fi
2924 rm -f conftest.make
2925 fi
2926 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2927   echo "$as_me:$LINENO: result: yes" >&5
2928 echo "${ECHO_T}yes" >&6
2929   SET_MAKE=
2930 else
2931   echo "$as_me:$LINENO: result: no" >&5
2932 echo "${ECHO_T}no" >&6
2933   SET_MAKE="MAKE=${MAKE-make}"
2934 fi
2935
2936 rm -rf .tst 2>/dev/null
2937 mkdir .tst 2>/dev/null
2938 if test -d .tst; then
2939   am__leading_dot=.
2940 else
2941   am__leading_dot=_
2942 fi
2943 rmdir .tst 2>/dev/null
2944
2945 DEPDIR="${am__leading_dot}deps"
2946
2947           ac_config_commands="$ac_config_commands depfiles"
2948
2949
2950 am_make=${MAKE-make}
2951 cat > confinc << 'END'
2952 am__doit:
2953         @echo done
2954 .PHONY: am__doit
2955 END
2956 # If we don't find an include directive, just comment out the code.
2957 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2958 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2959 am__include="#"
2960 am__quote=
2961 _am_result=none
2962 # First try GNU make style include.
2963 echo "include confinc" > confmf
2964 # We grep out `Entering directory' and `Leaving directory'
2965 # messages which can occur if `w' ends up in MAKEFLAGS.
2966 # In particular we don't look at `^make:' because GNU make might
2967 # be invoked under some other name (usually "gmake"), in which
2968 # case it prints its new name instead of `make'.
2969 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2970    am__include=include
2971    am__quote=
2972    _am_result=GNU
2973 fi
2974 # Now try BSD make style include.
2975 if test "$am__include" = "#"; then
2976    echo '.include "confinc"' > confmf
2977    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2978       am__include=.include
2979       am__quote="\""
2980       _am_result=BSD
2981    fi
2982 fi
2983
2984
2985 echo "$as_me:$LINENO: result: $_am_result" >&5
2986 echo "${ECHO_T}$_am_result" >&6
2987 rm -f confinc confmf
2988
2989 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2990 if test "${enable_dependency_tracking+set}" = set; then
2991   enableval="$enable_dependency_tracking"
2992
2993 fi;
2994 if test "x$enable_dependency_tracking" != xno; then
2995   am_depcomp="$ac_aux_dir/depcomp"
2996   AMDEPBACKSLASH='\'
2997 fi
2998
2999
3000 if test "x$enable_dependency_tracking" != xno; then
3001   AMDEP_TRUE=
3002   AMDEP_FALSE='#'
3003 else
3004   AMDEP_TRUE='#'
3005   AMDEP_FALSE=
3006 fi
3007
3008
3009
3010 # test to see if srcdir already configured
3011 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3012    test -f $srcdir/config.status; then
3013   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3014 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3015    { (exit 1); exit 1; }; }
3016 fi
3017
3018 # test whether we have cygpath
3019 if test -z "$CYGPATH_W"; then
3020   if (cygpath --version) >/dev/null 2>/dev/null; then
3021     CYGPATH_W='cygpath -w'
3022   else
3023     CYGPATH_W=echo
3024   fi
3025 fi
3026
3027
3028 # Define the identity of the package.
3029  PACKAGE=opcodes
3030  VERSION=${BFD_VERSION}
3031
3032
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE "$PACKAGE"
3035 _ACEOF
3036
3037
3038 cat >>confdefs.h <<_ACEOF
3039 #define VERSION "$VERSION"
3040 _ACEOF
3041
3042 # Some tools Automake needs.
3043
3044 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3045
3046
3047 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3048
3049
3050 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3051
3052
3053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3054
3055
3056 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3057
3058 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3059
3060 # Installed binaries are usually stripped using `strip' when the user
3061 # run `make install-strip'.  However `strip' might not be the right
3062 # tool to use in cross-compilation environments, therefore Automake
3063 # will honor the `STRIP' environment variable to overrule this program.
3064 if test "$cross_compiling" != no; then
3065   if test -n "$ac_tool_prefix"; then
3066   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3067 set dummy ${ac_tool_prefix}strip; ac_word=$2
3068 echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070 if test "${ac_cv_prog_STRIP+set}" = set; then
3071   echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073   if test -n "$STRIP"; then
3074   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081   for ac_exec_ext in '' $ac_executable_extensions; do
3082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088 done
3089
3090 fi
3091 fi
3092 STRIP=$ac_cv_prog_STRIP
3093 if test -n "$STRIP"; then
3094   echo "$as_me:$LINENO: result: $STRIP" >&5
3095 echo "${ECHO_T}$STRIP" >&6
3096 else
3097   echo "$as_me:$LINENO: result: no" >&5
3098 echo "${ECHO_T}no" >&6
3099 fi
3100
3101 fi
3102 if test -z "$ac_cv_prog_STRIP"; then
3103   ac_ct_STRIP=$STRIP
3104   # Extract the first word of "strip", so it can be a program name with args.
3105 set dummy strip; ac_word=$2
3106 echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   if test -n "$ac_ct_STRIP"; then
3112   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117   IFS=$as_save_IFS
3118   test -z "$as_dir" && as_dir=.
3119   for ac_exec_ext in '' $ac_executable_extensions; do
3120   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121     ac_cv_prog_ac_ct_STRIP="strip"
3122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123     break 2
3124   fi
3125 done
3126 done
3127
3128   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3129 fi
3130 fi
3131 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3132 if test -n "$ac_ct_STRIP"; then
3133   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3134 echo "${ECHO_T}$ac_ct_STRIP" >&6
3135 else
3136   echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3138 fi
3139
3140   STRIP=$ac_ct_STRIP
3141 else
3142   STRIP="$ac_cv_prog_STRIP"
3143 fi
3144
3145 fi
3146 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3147
3148 # We need awk for the "check" target.  The system "awk" is bad on
3149 # some platforms.
3150 # Always define AMTAR for backward compatibility.
3151
3152 AMTAR=${AMTAR-"${am_missing_run}tar"}
3153
3154 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3155
3156
3157
3158
3159 depcc="$CC"   am_compiler_list=
3160
3161 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3162 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3163 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3164   echo $ECHO_N "(cached) $ECHO_C" >&6
3165 else
3166   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3167   # We make a subdir and do the tests there.  Otherwise we can end up
3168   # making bogus files that we don't know about and never remove.  For
3169   # instance it was reported that on HP-UX the gcc test will end up
3170   # making a dummy file named `D' -- because `-MD' means `put the output
3171   # in D'.
3172   mkdir conftest.dir
3173   # Copy depcomp to subdir because otherwise we won't find it if we're
3174   # using a relative directory.
3175   cp "$am_depcomp" conftest.dir
3176   cd conftest.dir
3177   # We will build objects and dependencies in a subdirectory because
3178   # it helps to detect inapplicable dependency modes.  For instance
3179   # both Tru64's cc and ICC support -MD to output dependencies as a
3180   # side effect of compilation, but ICC will put the dependencies in
3181   # the current directory while Tru64 will put them in the object
3182   # directory.
3183   mkdir sub
3184
3185   am_cv_CC_dependencies_compiler_type=none
3186   if test "$am_compiler_list" = ""; then
3187      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3188   fi
3189   for depmode in $am_compiler_list; do
3190     # Setup a source with many dependencies, because some compilers
3191     # like to wrap large dependency lists on column 80 (with \), and
3192     # we should not choose a depcomp mode which is confused by this.
3193     #
3194     # We need to recreate these files for each test, as the compiler may
3195     # overwrite some of them when testing with obscure command lines.
3196     # This happens at least with the AIX C compiler.
3197     : > sub/conftest.c
3198     for i in 1 2 3 4 5 6; do
3199       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3200       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3201       # Solaris 8's {/usr,}/bin/sh.
3202       touch sub/conftst$i.h
3203     done
3204     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3205
3206     case $depmode in
3207     nosideeffect)
3208       # after this tag, mechanisms are not by side-effect, so they'll
3209       # only be used when explicitly requested
3210       if test "x$enable_dependency_tracking" = xyes; then
3211         continue
3212       else
3213         break
3214       fi
3215       ;;
3216     none) break ;;
3217     esac
3218     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3219     # mode.  It turns out that the SunPro C++ compiler does not properly
3220     # handle `-M -o', and we need to detect this.
3221     if depmode=$depmode \
3222        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3223        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3224        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3225          >/dev/null 2>conftest.err &&
3226        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3227        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3228        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3229       # icc doesn't choke on unknown options, it will just issue warnings
3230       # or remarks (even with -Werror).  So we grep stderr for any message
3231       # that says an option was ignored or not supported.
3232       # When given -MP, icc 7.0 and 7.1 complain thusly:
3233       #   icc: Command line warning: ignoring option '-M'; no argument required
3234       # The diagnosis changed in icc 8.0:
3235       #   icc: Command line remark: option '-MP' not supported
3236       if (grep 'ignoring option' conftest.err ||
3237           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3238         am_cv_CC_dependencies_compiler_type=$depmode
3239         break
3240       fi
3241     fi
3242   done
3243
3244   cd ..
3245   rm -rf conftest.dir
3246 else
3247   am_cv_CC_dependencies_compiler_type=none
3248 fi
3249
3250 fi
3251 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3252 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3253 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3254
3255
3256
3257 if
3258   test "x$enable_dependency_tracking" != xno \
3259   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3260   am__fastdepCC_TRUE=
3261   am__fastdepCC_FALSE='#'
3262 else
3263   am__fastdepCC_TRUE='#'
3264   am__fastdepCC_FALSE=
3265 fi
3266
3267
3268
3269
3270 ac_ext=c
3271 ac_cpp='$CPP $CPPFLAGS'
3272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3275 if test -n "$ac_tool_prefix"; then
3276   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3277 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3278 echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3280 if test "${ac_cv_prog_CC+set}" = set; then
3281   echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283   if test -n "$CC"; then
3284   ac_cv_prog_CC="$CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3288 do
3289   IFS=$as_save_IFS
3290   test -z "$as_dir" && as_dir=.
3291   for ac_exec_ext in '' $ac_executable_extensions; do
3292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295     break 2
3296   fi
3297 done
3298 done
3299
3300 fi
3301 fi
3302 CC=$ac_cv_prog_CC
3303 if test -n "$CC"; then
3304   echo "$as_me:$LINENO: result: $CC" >&5
3305 echo "${ECHO_T}$CC" >&6
3306 else
3307   echo "$as_me:$LINENO: result: no" >&5
3308 echo "${ECHO_T}no" >&6
3309 fi
3310
3311 fi
3312 if test -z "$ac_cv_prog_CC"; then
3313   ac_ct_CC=$CC
3314   # Extract the first word of "gcc", so it can be a program name with args.
3315 set dummy gcc; ac_word=$2
3316 echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   if test -n "$ac_ct_CC"; then
3322   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327   IFS=$as_save_IFS
3328   test -z "$as_dir" && as_dir=.
3329   for ac_exec_ext in '' $ac_executable_extensions; do
3330   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331     ac_cv_prog_ac_ct_CC="gcc"
3332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333     break 2
3334   fi
3335 done
3336 done
3337
3338 fi
3339 fi
3340 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343 echo "${ECHO_T}$ac_ct_CC" >&6
3344 else
3345   echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3347 fi
3348
3349   CC=$ac_ct_CC
3350 else
3351   CC="$ac_cv_prog_CC"
3352 fi
3353
3354 if test -z "$CC"; then
3355   if test -n "$ac_tool_prefix"; then
3356   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3357 set dummy ${ac_tool_prefix}cc; ac_word=$2
3358 echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360 if test "${ac_cv_prog_CC+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363   if test -n "$CC"; then
3364   ac_cv_prog_CC="$CC" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369   IFS=$as_save_IFS
3370   test -z "$as_dir" && as_dir=.
3371   for ac_exec_ext in '' $ac_executable_extensions; do
3372   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373     ac_cv_prog_CC="${ac_tool_prefix}cc"
3374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375     break 2
3376   fi
3377 done
3378 done
3379
3380 fi
3381 fi
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384   echo "$as_me:$LINENO: result: $CC" >&5
3385 echo "${ECHO_T}$CC" >&6
3386 else
3387   echo "$as_me:$LINENO: result: no" >&5
3388 echo "${ECHO_T}no" >&6
3389 fi
3390
3391 fi
3392 if test -z "$ac_cv_prog_CC"; then
3393   ac_ct_CC=$CC
3394   # Extract the first word of "cc", so it can be a program name with args.
3395 set dummy cc; ac_word=$2
3396 echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3398 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3399   echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401   if test -n "$ac_ct_CC"; then
3402   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407   IFS=$as_save_IFS
3408   test -z "$as_dir" && as_dir=.
3409   for ac_exec_ext in '' $ac_executable_extensions; do
3410   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411     ac_cv_prog_ac_ct_CC="cc"
3412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3413     break 2
3414   fi
3415 done
3416 done
3417
3418 fi
3419 fi
3420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3421 if test -n "$ac_ct_CC"; then
3422   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3423 echo "${ECHO_T}$ac_ct_CC" >&6
3424 else
3425   echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6
3427 fi
3428
3429   CC=$ac_ct_CC
3430 else
3431   CC="$ac_cv_prog_CC"
3432 fi
3433
3434 fi
3435 if test -z "$CC"; then
3436   # Extract the first word of "cc", so it can be a program name with args.
3437 set dummy cc; ac_word=$2
3438 echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_prog_CC+set}" = set; then
3441   echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443   if test -n "$CC"; then
3444   ac_cv_prog_CC="$CC" # Let the user override the test.
3445 else
3446   ac_prog_rejected=no
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450   IFS=$as_save_IFS
3451   test -z "$as_dir" && as_dir=.
3452   for ac_exec_ext in '' $ac_executable_extensions; do
3453   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3455        ac_prog_rejected=yes
3456        continue
3457      fi
3458     ac_cv_prog_CC="cc"
3459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460     break 2
3461   fi
3462 done
3463 done
3464
3465 if test $ac_prog_rejected = yes; then
3466   # We found a bogon in the path, so make sure we never use it.
3467   set dummy $ac_cv_prog_CC
3468   shift
3469   if test $# != 0; then
3470     # We chose a different compiler from the bogus one.
3471     # However, it has the same basename, so the bogon will be chosen
3472     # first if we set CC to just the basename; use the full file name.
3473     shift
3474     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3475   fi
3476 fi
3477 fi
3478 fi
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481   echo "$as_me:$LINENO: result: $CC" >&5
3482 echo "${ECHO_T}$CC" >&6
3483 else
3484   echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3486 fi
3487
3488 fi
3489 if test -z "$CC"; then
3490   if test -n "$ac_tool_prefix"; then
3491   for ac_prog in cl
3492   do
3493     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495 echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3497 if test "${ac_cv_prog_CC+set}" = set; then
3498   echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500   if test -n "$CC"; then
3501   ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506   IFS=$as_save_IFS
3507   test -z "$as_dir" && as_dir=.
3508   for ac_exec_ext in '' $ac_executable_extensions; do
3509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512     break 2
3513   fi
3514 done
3515 done
3516
3517 fi
3518 fi
3519 CC=$ac_cv_prog_CC
3520 if test -n "$CC"; then
3521   echo "$as_me:$LINENO: result: $CC" >&5
3522 echo "${ECHO_T}$CC" >&6
3523 else
3524   echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6
3526 fi
3527
3528     test -n "$CC" && break
3529   done
3530 fi
3531 if test -z "$CC"; then
3532   ac_ct_CC=$CC
3533   for ac_prog in cl
3534 do
3535   # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   if test -n "$ac_ct_CC"; then
3543   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550   for ac_exec_ext in '' $ac_executable_extensions; do
3551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552     ac_cv_prog_ac_ct_CC="$ac_prog"
3553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557 done
3558
3559 fi
3560 fi
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3564 echo "${ECHO_T}$ac_ct_CC" >&6
3565 else
3566   echo "$as_me:$LINENO: result: no" >&5
3567 echo "${ECHO_T}no" >&6
3568 fi
3569
3570   test -n "$ac_ct_CC" && break
3571 done
3572
3573   CC=$ac_ct_CC
3574 fi
3575
3576 fi
3577
3578
3579 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3580 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3582 See \`config.log' for more details." >&5
3583 echo "$as_me: error: no acceptable C compiler found in \$PATH
3584 See \`config.log' for more details." >&2;}
3585    { (exit 1); exit 1; }; }; }
3586
3587 # Provide some information about the compiler.
3588 echo "$as_me:$LINENO:" \
3589      "checking for C compiler version" >&5
3590 ac_compiler=`set X $ac_compile; echo $2`
3591 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3592   (eval $ac_compiler --version </dev/null >&5) 2>&5
3593   ac_status=$?
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); }
3596 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3597   (eval $ac_compiler -v </dev/null >&5) 2>&5
3598   ac_status=$?
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); }
3601 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3602   (eval $ac_compiler -V </dev/null >&5) 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); }
3606
3607 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3608 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3609 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612   cat >conftest.$ac_ext <<_ACEOF
3613 /* confdefs.h.  */
3614 _ACEOF
3615 cat confdefs.h >>conftest.$ac_ext
3616 cat >>conftest.$ac_ext <<_ACEOF
3617 /* end confdefs.h.  */
3618
3619 int
3620 main ()
3621 {
3622 #ifndef __GNUC__
3623        choke me
3624 #endif
3625
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 rm -f conftest.$ac_objext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632   (eval $ac_compile) 2>conftest.er1
3633   ac_status=$?
3634   grep -v '^ *+' conftest.er1 >conftest.err
3635   rm -f conftest.er1
3636   cat conftest.err >&5
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); } &&
3639          { ac_try='test -z "$ac_c_werror_flag"
3640                          || test ! -s conftest.err'
3641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642   (eval $ac_try) 2>&5
3643   ac_status=$?
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); }; } &&
3646          { ac_try='test -s conftest.$ac_objext'
3647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3648   (eval $ac_try) 2>&5
3649   ac_status=$?
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); }; }; then
3652   ac_compiler_gnu=yes
3653 else
3654   echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3656
3657 ac_compiler_gnu=no
3658 fi
3659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3661
3662 fi
3663 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3664 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3665 GCC=`test $ac_compiler_gnu = yes && echo yes`
3666 ac_test_CFLAGS=${CFLAGS+set}
3667 ac_save_CFLAGS=$CFLAGS
3668 CFLAGS="-g"
3669 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3670 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3671 if test "${ac_cv_prog_cc_g+set}" = set; then
3672   echo $ECHO_N "(cached) $ECHO_C" >&6
3673 else
3674   cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h.  */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h.  */
3680
3681 int
3682 main ()
3683 {
3684
3685   ;
3686   return 0;
3687 }
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691   (eval $ac_compile) 2>conftest.er1
3692   ac_status=$?
3693   grep -v '^ *+' conftest.er1 >conftest.err
3694   rm -f conftest.er1
3695   cat conftest.err >&5
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); } &&
3698          { ac_try='test -z "$ac_c_werror_flag"
3699                          || test ! -s conftest.err'
3700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701   (eval $ac_try) 2>&5
3702   ac_status=$?
3703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704   (exit $ac_status); }; } &&
3705          { ac_try='test -s conftest.$ac_objext'
3706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707   (eval $ac_try) 2>&5
3708   ac_status=$?
3709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710   (exit $ac_status); }; }; then
3711   ac_cv_prog_cc_g=yes
3712 else
3713   echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 ac_cv_prog_cc_g=no
3717 fi
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3721 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3722 if test "$ac_test_CFLAGS" = set; then
3723   CFLAGS=$ac_save_CFLAGS
3724 elif test $ac_cv_prog_cc_g = yes; then
3725   if test "$GCC" = yes; then
3726     CFLAGS="-g -O2"
3727   else
3728     CFLAGS="-g"
3729   fi
3730 else
3731   if test "$GCC" = yes; then
3732     CFLAGS="-O2"
3733   else
3734     CFLAGS=
3735   fi
3736 fi
3737 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3738 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3739 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3740   echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742   ac_cv_prog_cc_stdc=no
3743 ac_save_CC=$CC
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h.  */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h.  */
3750 #include <stdarg.h>
3751 #include <stdio.h>
3752 #include <sys/types.h>
3753 #include <sys/stat.h>
3754 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3755 struct buf { int x; };
3756 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3757 static char *e (p, i)
3758      char **p;
3759      int i;
3760 {
3761   return p[i];
3762 }
3763 static char *f (char * (*g) (char **, int), char **p, ...)
3764 {
3765   char *s;
3766   va_list v;
3767   va_start (v,p);
3768   s = g (p, va_arg (v,int));
3769   va_end (v);
3770   return s;
3771 }
3772
3773 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3774    function prototypes and stuff, but not '\xHH' hex character constants.
3775    These don't provoke an error unfortunately, instead are silently treated
3776    as 'x'.  The following induces an error, until -std1 is added to get
3777    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3778    array size at least.  It's necessary to write '\x00'==0 to get something
3779    that's true only with -std1.  */
3780 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3781
3782 int test (int i, double x);
3783 struct s1 {int (*f) (int a);};
3784 struct s2 {int (*f) (double a);};
3785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 int argc;
3787 char **argv;
3788 int
3789 main ()
3790 {
3791 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3792   ;
3793   return 0;
3794 }
3795 _ACEOF
3796 # Don't try gcc -ansi; that turns off useful extensions and
3797 # breaks some systems' header files.
3798 # AIX                   -qlanglvl=ansi
3799 # Ultrix and OSF/1      -std1
3800 # HP-UX 10.20 and later -Ae
3801 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3802 # SVR4                  -Xc -D__EXTENSIONS__
3803 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3804 do
3805   CC="$ac_save_CC $ac_arg"
3806   rm -f conftest.$ac_objext
3807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3808   (eval $ac_compile) 2>conftest.er1
3809   ac_status=$?
3810   grep -v '^ *+' conftest.er1 >conftest.err
3811   rm -f conftest.er1
3812   cat conftest.err >&5
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } &&
3815          { ac_try='test -z "$ac_c_werror_flag"
3816                          || test ! -s conftest.err'
3817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818   (eval $ac_try) 2>&5
3819   ac_status=$?
3820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; } &&
3822          { ac_try='test -s conftest.$ac_objext'
3823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824   (eval $ac_try) 2>&5
3825   ac_status=$?
3826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827   (exit $ac_status); }; }; then
3828   ac_cv_prog_cc_stdc=$ac_arg
3829 break
3830 else
3831   echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834 fi
3835 rm -f conftest.err conftest.$ac_objext
3836 done
3837 rm -f conftest.$ac_ext conftest.$ac_objext
3838 CC=$ac_save_CC
3839
3840 fi
3841
3842 case "x$ac_cv_prog_cc_stdc" in
3843   x|xno)
3844     echo "$as_me:$LINENO: result: none needed" >&5
3845 echo "${ECHO_T}none needed" >&6 ;;
3846   *)
3847     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3848 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3849     CC="$CC $ac_cv_prog_cc_stdc" ;;
3850 esac
3851
3852 # Some people use a C++ compiler to compile C.  Since we use `exit',
3853 # in C++ we need to declare it.  In case someone uses the same compiler
3854 # for both compiling C and C++ we need to have the C++ compiler decide
3855 # the declaration of exit, since it's the most demanding environment.
3856 cat >conftest.$ac_ext <<_ACEOF
3857 #ifndef __cplusplus
3858   choke me
3859 #endif
3860 _ACEOF
3861 rm -f conftest.$ac_objext
3862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3863   (eval $ac_compile) 2>conftest.er1
3864   ac_status=$?
3865   grep -v '^ *+' conftest.er1 >conftest.err
3866   rm -f conftest.er1
3867   cat conftest.err >&5
3868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869   (exit $ac_status); } &&
3870          { ac_try='test -z "$ac_c_werror_flag"
3871                          || test ! -s conftest.err'
3872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873   (eval $ac_try) 2>&5
3874   ac_status=$?
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); }; } &&
3877          { ac_try='test -s conftest.$ac_objext'
3878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879   (eval $ac_try) 2>&5
3880   ac_status=$?
3881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882   (exit $ac_status); }; }; then
3883   for ac_declaration in \
3884    '' \
3885    'extern "C" void std::exit (int) throw (); using std::exit;' \
3886    'extern "C" void std::exit (int); using std::exit;' \
3887    'extern "C" void exit (int) throw ();' \
3888    'extern "C" void exit (int);' \
3889    'void exit (int);'
3890 do
3891   cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h.  */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h.  */
3897 $ac_declaration
3898 #include <stdlib.h>
3899 int
3900 main ()
3901 {
3902 exit (42);
3903   ;
3904   return 0;
3905 }
3906 _ACEOF
3907 rm -f conftest.$ac_objext
3908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3909   (eval $ac_compile) 2>conftest.er1
3910   ac_status=$?
3911   grep -v '^ *+' conftest.er1 >conftest.err
3912   rm -f conftest.er1
3913   cat conftest.err >&5
3914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915   (exit $ac_status); } &&
3916          { ac_try='test -z "$ac_c_werror_flag"
3917                          || test ! -s conftest.err'
3918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3919   (eval $ac_try) 2>&5
3920   ac_status=$?
3921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922   (exit $ac_status); }; } &&
3923          { ac_try='test -s conftest.$ac_objext'
3924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925   (eval $ac_try) 2>&5
3926   ac_status=$?
3927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928   (exit $ac_status); }; }; then
3929   :
3930 else
3931   echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3933
3934 continue
3935 fi
3936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3937   cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h.  */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h.  */
3943 $ac_declaration
3944 int
3945 main ()
3946 {
3947 exit (42);
3948   ;
3949   return 0;
3950 }
3951 _ACEOF
3952 rm -f conftest.$ac_objext
3953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3954   (eval $ac_compile) 2>conftest.er1
3955   ac_status=$?
3956   grep -v '^ *+' conftest.er1 >conftest.err
3957   rm -f conftest.er1
3958   cat conftest.err >&5
3959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960   (exit $ac_status); } &&
3961          { ac_try='test -z "$ac_c_werror_flag"
3962                          || test ! -s conftest.err'
3963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964   (eval $ac_try) 2>&5
3965   ac_status=$?
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); }; } &&
3968          { ac_try='test -s conftest.$ac_objext'
3969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970   (eval $ac_try) 2>&5
3971   ac_status=$?
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); }; }; then
3974   break
3975 else
3976   echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979 fi
3980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3981 done
3982 rm -f conftest*
3983 if test -n "$ac_declaration"; then
3984   echo '#ifdef __cplusplus' >>confdefs.h
3985   echo $ac_declaration      >>confdefs.h
3986   echo '#endif'             >>confdefs.h
3987 fi
3988
3989 else
3990   echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3992
3993 fi
3994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3995 ac_ext=c
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000
4001
4002 cat >>confdefs.h <<\_ACEOF
4003 #define _GNU_SOURCE 1
4004 _ACEOF
4005
4006
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4013 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4014 # On Suns, sometimes $CPP names a directory.
4015 if test -n "$CPP" && test -d "$CPP"; then
4016   CPP=
4017 fi
4018 if test -z "$CPP"; then
4019   if test "${ac_cv_prog_CPP+set}" = set; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022       # Double quotes because CPP needs to be expanded
4023     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024     do
4025       ac_preproc_ok=false
4026 for ac_c_preproc_warn_flag in '' yes
4027 do
4028   # Use a header file that comes with gcc, so configuring glibc
4029   # with a fresh cross-compiler works.
4030   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031   # <limits.h> exists even on freestanding compilers.
4032   # On the NeXT, cc -E runs the code through the compiler's parser,
4033   # not just through cpp. "Syntax error" is here to catch this case.
4034   cat >conftest.$ac_ext <<_ACEOF
4035 /* confdefs.h.  */
4036 _ACEOF
4037 cat confdefs.h >>conftest.$ac_ext
4038 cat >>conftest.$ac_ext <<_ACEOF
4039 /* end confdefs.h.  */
4040 #ifdef __STDC__
4041 # include <limits.h>
4042 #else
4043 # include <assert.h>
4044 #endif
4045                      Syntax error
4046 _ACEOF
4047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4049   ac_status=$?
4050   grep -v '^ *+' conftest.er1 >conftest.err
4051   rm -f conftest.er1
4052   cat conftest.err >&5
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); } >/dev/null; then
4055   if test -s conftest.err; then
4056     ac_cpp_err=$ac_c_preproc_warn_flag
4057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4058   else
4059     ac_cpp_err=
4060   fi
4061 else
4062   ac_cpp_err=yes
4063 fi
4064 if test -z "$ac_cpp_err"; then
4065   :
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070   # Broken: fails on valid input.
4071 continue
4072 fi
4073 rm -f conftest.err conftest.$ac_ext
4074
4075   # OK, works on sane cases.  Now check whether non-existent headers
4076   # can be detected and how.
4077   cat >conftest.$ac_ext <<_ACEOF
4078 /* confdefs.h.  */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h.  */
4083 #include <ac_nonexistent.h>
4084 _ACEOF
4085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4087   ac_status=$?
4088   grep -v '^ *+' conftest.er1 >conftest.err
4089   rm -f conftest.er1
4090   cat conftest.err >&5
4091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092   (exit $ac_status); } >/dev/null; then
4093   if test -s conftest.err; then
4094     ac_cpp_err=$ac_c_preproc_warn_flag
4095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4096   else
4097     ac_cpp_err=
4098   fi
4099 else
4100   ac_cpp_err=yes
4101 fi
4102 if test -z "$ac_cpp_err"; then
4103   # Broken: success on invalid input.
4104 continue
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109   # Passes both tests.
4110 ac_preproc_ok=:
4111 break
4112 fi
4113 rm -f conftest.err conftest.$ac_ext
4114
4115 done
4116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117 rm -f conftest.err conftest.$ac_ext
4118 if $ac_preproc_ok; then
4119   break
4120 fi
4121
4122     done
4123     ac_cv_prog_CPP=$CPP
4124
4125 fi
4126   CPP=$ac_cv_prog_CPP
4127 else
4128   ac_cv_prog_CPP=$CPP
4129 fi
4130 echo "$as_me:$LINENO: result: $CPP" >&5
4131 echo "${ECHO_T}$CPP" >&6
4132 ac_preproc_ok=false
4133 for ac_c_preproc_warn_flag in '' yes
4134 do
4135   # Use a header file that comes with gcc, so configuring glibc
4136   # with a fresh cross-compiler works.
4137   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138   # <limits.h> exists even on freestanding compilers.
4139   # On the NeXT, cc -E runs the code through the compiler's parser,
4140   # not just through cpp. "Syntax error" is here to catch this case.
4141   cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h.  */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h.  */
4147 #ifdef __STDC__
4148 # include <limits.h>
4149 #else
4150 # include <assert.h>
4151 #endif
4152                      Syntax error
4153 _ACEOF
4154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4156   ac_status=$?
4157   grep -v '^ *+' conftest.er1 >conftest.err
4158   rm -f conftest.er1
4159   cat conftest.err >&5
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); } >/dev/null; then
4162   if test -s conftest.err; then
4163     ac_cpp_err=$ac_c_preproc_warn_flag
4164     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4165   else
4166     ac_cpp_err=
4167   fi
4168 else
4169   ac_cpp_err=yes
4170 fi
4171 if test -z "$ac_cpp_err"; then
4172   :
4173 else
4174   echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4176
4177   # Broken: fails on valid input.
4178 continue
4179 fi
4180 rm -f conftest.err conftest.$ac_ext
4181
4182   # OK, works on sane cases.  Now check whether non-existent headers
4183   # can be detected and how.
4184   cat >conftest.$ac_ext <<_ACEOF
4185 /* confdefs.h.  */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h.  */
4190 #include <ac_nonexistent.h>
4191 _ACEOF
4192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4194   ac_status=$?
4195   grep -v '^ *+' conftest.er1 >conftest.err
4196   rm -f conftest.er1
4197   cat conftest.err >&5
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); } >/dev/null; then
4200   if test -s conftest.err; then
4201     ac_cpp_err=$ac_c_preproc_warn_flag
4202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4203   else
4204     ac_cpp_err=
4205   fi
4206 else
4207   ac_cpp_err=yes
4208 fi
4209 if test -z "$ac_cpp_err"; then
4210   # Broken: success on invalid input.
4211 continue
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216   # Passes both tests.
4217 ac_preproc_ok=:
4218 break
4219 fi
4220 rm -f conftest.err conftest.$ac_ext
4221
4222 done
4223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224 rm -f conftest.err conftest.$ac_ext
4225 if $ac_preproc_ok; then
4226   :
4227 else
4228   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4229 echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4231 See \`config.log' for more details." >&5
4232 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4233 See \`config.log' for more details." >&2;}
4234    { (exit 1); exit 1; }; }; }
4235 fi
4236
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242
4243
4244 echo "$as_me:$LINENO: checking for egrep" >&5
4245 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4246 if test "${ac_cv_prog_egrep+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4250     then ac_cv_prog_egrep='grep -E'
4251     else ac_cv_prog_egrep='egrep'
4252     fi
4253 fi
4254 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4255 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4256  EGREP=$ac_cv_prog_egrep
4257
4258
4259 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4260 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4261 if test "${ac_cv_header_stdc+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   cat >conftest.$ac_ext <<_ACEOF
4265 /* confdefs.h.  */
4266 _ACEOF
4267 cat confdefs.h >>conftest.$ac_ext
4268 cat >>conftest.$ac_ext <<_ACEOF
4269 /* end confdefs.h.  */
4270 #include <stdlib.h>
4271 #include <stdarg.h>
4272 #include <string.h>
4273 #include <float.h>
4274
4275 int
4276 main ()
4277 {
4278
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285   (eval $ac_compile) 2>conftest.er1
4286   ac_status=$?
4287   grep -v '^ *+' conftest.er1 >conftest.err
4288   rm -f conftest.er1
4289   cat conftest.err >&5
4290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291   (exit $ac_status); } &&
4292          { ac_try='test -z "$ac_c_werror_flag"
4293                          || test ! -s conftest.err'
4294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295   (eval $ac_try) 2>&5
4296   ac_status=$?
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); }; } &&
4299          { ac_try='test -s conftest.$ac_objext'
4300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301   (eval $ac_try) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; }; then
4305   ac_cv_header_stdc=yes
4306 else
4307   echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 ac_cv_header_stdc=no
4311 fi
4312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313
4314 if test $ac_cv_header_stdc = yes; then
4315   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4316   cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h.  */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h.  */
4322 #include <string.h>
4323
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326   $EGREP "memchr" >/dev/null 2>&1; then
4327   :
4328 else
4329   ac_cv_header_stdc=no
4330 fi
4331 rm -f conftest*
4332
4333 fi
4334
4335 if test $ac_cv_header_stdc = yes; then
4336   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4337   cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h.  */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h.  */
4343 #include <stdlib.h>
4344
4345 _ACEOF
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347   $EGREP "free" >/dev/null 2>&1; then
4348   :
4349 else
4350   ac_cv_header_stdc=no
4351 fi
4352 rm -f conftest*
4353
4354 fi
4355
4356 if test $ac_cv_header_stdc = yes; then
4357   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4358   if test "$cross_compiling" = yes; then
4359   :
4360 else
4361   cat >conftest.$ac_ext <<_ACEOF
4362 /* confdefs.h.  */
4363 _ACEOF
4364 cat confdefs.h >>conftest.$ac_ext
4365 cat >>conftest.$ac_ext <<_ACEOF
4366 /* end confdefs.h.  */
4367 #include <ctype.h>
4368 #if ((' ' & 0x0FF) == 0x020)
4369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4371 #else
4372 # define ISLOWER(c) \
4373                    (('a' <= (c) && (c) <= 'i') \
4374                      || ('j' <= (c) && (c) <= 'r') \
4375                      || ('s' <= (c) && (c) <= 'z'))
4376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4377 #endif
4378
4379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4380 int
4381 main ()
4382 {
4383   int i;
4384   for (i = 0; i < 256; i++)
4385     if (XOR (islower (i), ISLOWER (i))
4386         || toupper (i) != TOUPPER (i))
4387       exit(2);
4388   exit (0);
4389 }
4390 _ACEOF
4391 rm -f conftest$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393   (eval $ac_link) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398   (eval $ac_try) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; }; then
4402   :
4403 else
4404   echo "$as_me: program exited with status $ac_status" >&5
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4407
4408 ( exit $ac_status )
4409 ac_cv_header_stdc=no
4410 fi
4411 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4412 fi
4413 fi
4414 fi
4415 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4416 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4417 if test $ac_cv_header_stdc = yes; then
4418
4419 cat >>confdefs.h <<\_ACEOF
4420 #define STDC_HEADERS 1
4421 _ACEOF
4422
4423 fi
4424
4425 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4436                   inttypes.h stdint.h unistd.h
4437 do
4438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4439 echo "$as_me:$LINENO: checking for $ac_header" >&5
4440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h.  */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h.  */
4450 $ac_includes_default
4451
4452 #include <$ac_header>
4453 _ACEOF
4454 rm -f conftest.$ac_objext
4455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456   (eval $ac_compile) 2>conftest.er1
4457   ac_status=$?
4458   grep -v '^ *+' conftest.er1 >conftest.err
4459   rm -f conftest.er1
4460   cat conftest.err >&5
4461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462   (exit $ac_status); } &&
4463          { ac_try='test -z "$ac_c_werror_flag"
4464                          || test ! -s conftest.err'
4465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4466   (eval $ac_try) 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); }; } &&
4470          { ac_try='test -s conftest.$ac_objext'
4471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4472   (eval $ac_try) 2>&5
4473   ac_status=$?
4474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475   (exit $ac_status); }; }; then
4476   eval "$as_ac_Header=yes"
4477 else
4478   echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.$ac_ext >&5
4480
4481 eval "$as_ac_Header=no"
4482 fi
4483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4484 fi
4485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4488   cat >>confdefs.h <<_ACEOF
4489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4490 _ACEOF
4491
4492 fi
4493
4494 done
4495
4496
4497
4498   if test "${ac_cv_header_minix_config_h+set}" = set; then
4499   echo "$as_me:$LINENO: checking for minix/config.h" >&5
4500 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4501 if test "${ac_cv_header_minix_config_h+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 fi
4504 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4505 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4506 else
4507   # Is the header compilable?
4508 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4509 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
4510 cat >conftest.$ac_ext <<_ACEOF
4511 /* confdefs.h.  */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h.  */
4516 $ac_includes_default
4517 #include <minix/config.h>
4518 _ACEOF
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521   (eval $ac_compile) 2>conftest.er1
4522   ac_status=$?
4523   grep -v '^ *+' conftest.er1 >conftest.err
4524   rm -f conftest.er1
4525   cat conftest.err >&5
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); } &&
4528          { ac_try='test -z "$ac_c_werror_flag"
4529                          || test ! -s conftest.err'
4530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531   (eval $ac_try) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }; } &&
4535          { ac_try='test -s conftest.$ac_objext'
4536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537   (eval $ac_try) 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); }; }; then
4541   ac_header_compiler=yes
4542 else
4543   echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546 ac_header_compiler=no
4547 fi
4548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4549 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4550 echo "${ECHO_T}$ac_header_compiler" >&6
4551
4552 # Is the header present?
4553 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4554 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4555 cat >conftest.$ac_ext <<_ACEOF
4556 /* confdefs.h.  */
4557 _ACEOF
4558 cat confdefs.h >>conftest.$ac_ext
4559 cat >>conftest.$ac_ext <<_ACEOF
4560 /* end confdefs.h.  */
4561 #include <minix/config.h>
4562 _ACEOF
4563 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4564   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4565   ac_status=$?
4566   grep -v '^ *+' conftest.er1 >conftest.err
4567   rm -f conftest.er1
4568   cat conftest.err >&5
4569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); } >/dev/null; then
4571   if test -s conftest.err; then
4572     ac_cpp_err=$ac_c_preproc_warn_flag
4573     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4574   else
4575     ac_cpp_err=
4576   fi
4577 else
4578   ac_cpp_err=yes
4579 fi
4580 if test -z "$ac_cpp_err"; then
4581   ac_header_preproc=yes
4582 else
4583   echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586   ac_header_preproc=no
4587 fi
4588 rm -f conftest.err conftest.$ac_ext
4589 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4590 echo "${ECHO_T}$ac_header_preproc" >&6
4591
4592 # So?  What about this header?
4593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4594   yes:no: )
4595     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4596 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4597     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4598 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4599     ac_header_preproc=yes
4600     ;;
4601   no:yes:* )
4602     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4603 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4604     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4605 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4606     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4607 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4608     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4609 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4610     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4611 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4612     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4613 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4614     (
4615       cat <<\_ASBOX
4616 ## ------------------------------------------ ##
4617 ## Report this to the AC_PACKAGE_NAME lists.  ##
4618 ## ------------------------------------------ ##
4619 _ASBOX
4620     ) |
4621       sed "s/^/$as_me: WARNING:     /" >&2
4622     ;;
4623 esac
4624 echo "$as_me:$LINENO: checking for minix/config.h" >&5
4625 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4626 if test "${ac_cv_header_minix_config_h+set}" = set; then
4627   echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629   ac_cv_header_minix_config_h=$ac_header_preproc
4630 fi
4631 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4632 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4633
4634 fi
4635 if test $ac_cv_header_minix_config_h = yes; then
4636   MINIX=yes
4637 else
4638   MINIX=
4639 fi
4640
4641
4642   if test "$MINIX" = yes; then
4643
4644 cat >>confdefs.h <<\_ACEOF
4645 #define _POSIX_SOURCE 1
4646 _ACEOF
4647
4648
4649 cat >>confdefs.h <<\_ACEOF
4650 #define _POSIX_1_SOURCE 2
4651 _ACEOF
4652
4653
4654 cat >>confdefs.h <<\_ACEOF
4655 #define _MINIX 1
4656 _ACEOF
4657
4658   fi
4659
4660
4661
4662   echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4663 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
4664 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673
4674 #         define __EXTENSIONS__ 1
4675           $ac_includes_default
4676 int
4677 main ()
4678 {
4679
4680   ;
4681   return 0;
4682 }
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686   (eval $ac_compile) 2>conftest.er1
4687   ac_status=$?
4688   grep -v '^ *+' conftest.er1 >conftest.err
4689   rm -f conftest.er1
4690   cat conftest.err >&5
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); } &&
4693          { ac_try='test -z "$ac_c_werror_flag"
4694                          || test ! -s conftest.err'
4695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696   (eval $ac_try) 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); }; } &&
4700          { ac_try='test -s conftest.$ac_objext'
4701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702   (eval $ac_try) 2>&5
4703   ac_status=$?
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); }; }; then
4706   ac_cv_safe_to_define___extensions__=yes
4707 else
4708   echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711 ac_cv_safe_to_define___extensions__=no
4712 fi
4713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4714 fi
4715 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4716 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
4717   test $ac_cv_safe_to_define___extensions__ = yes &&
4718     cat >>confdefs.h <<\_ACEOF
4719 #define __EXTENSIONS__ 1
4720 _ACEOF
4721
4722   cat >>confdefs.h <<\_ACEOF
4723 #define _ALL_SOURCE 1
4724 _ACEOF
4725
4726   cat >>confdefs.h <<\_ACEOF
4727 #define _GNU_SOURCE 1
4728 _ACEOF
4729
4730   cat >>confdefs.h <<\_ACEOF
4731 #define _POSIX_PTHREAD_SEMANTICS 1
4732 _ACEOF
4733
4734   cat >>confdefs.h <<\_ACEOF
4735 #define _TANDEM_SOURCE 1
4736 _ACEOF
4737
4738
4739
4740 if test -n "$ac_tool_prefix"; then
4741   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4742 set dummy ${ac_tool_prefix}ar; ac_word=$2
4743 echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745 if test "${ac_cv_prog_AR+set}" = set; then
4746   echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748   if test -n "$AR"; then
4749   ac_cv_prog_AR="$AR" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754   IFS=$as_save_IFS
4755   test -z "$as_dir" && as_dir=.
4756   for ac_exec_ext in '' $ac_executable_extensions; do
4757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758     ac_cv_prog_AR="${ac_tool_prefix}ar"
4759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760     break 2
4761   fi
4762 done
4763 done
4764
4765 fi
4766 fi
4767 AR=$ac_cv_prog_AR
4768 if test -n "$AR"; then
4769   echo "$as_me:$LINENO: result: $AR" >&5
4770 echo "${ECHO_T}$AR" >&6
4771 else
4772   echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6
4774 fi
4775
4776 fi
4777 if test -z "$ac_cv_prog_AR"; then
4778   ac_ct_AR=$AR
4779   # Extract the first word of "ar", so it can be a program name with args.
4780 set dummy ar; ac_word=$2
4781 echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4783 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4784   echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786   if test -n "$ac_ct_AR"; then
4787   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794   for ac_exec_ext in '' $ac_executable_extensions; do
4795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796     ac_cv_prog_ac_ct_AR="ar"
4797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801 done
4802
4803 fi
4804 fi
4805 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4806 if test -n "$ac_ct_AR"; then
4807   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4808 echo "${ECHO_T}$ac_ct_AR" >&6
4809 else
4810   echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4812 fi
4813
4814   AR=$ac_ct_AR
4815 else
4816   AR="$ac_cv_prog_AR"
4817 fi
4818
4819 if test -n "$ac_tool_prefix"; then
4820   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4821 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4822 echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4824 if test "${ac_cv_prog_RANLIB+set}" = set; then
4825   echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827   if test -n "$RANLIB"; then
4828   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833   IFS=$as_save_IFS
4834   test -z "$as_dir" && as_dir=.
4835   for ac_exec_ext in '' $ac_executable_extensions; do
4836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839     break 2
4840   fi
4841 done
4842 done
4843
4844 fi
4845 fi
4846 RANLIB=$ac_cv_prog_RANLIB
4847 if test -n "$RANLIB"; then
4848   echo "$as_me:$LINENO: result: $RANLIB" >&5
4849 echo "${ECHO_T}$RANLIB" >&6
4850 else
4851   echo "$as_me:$LINENO: result: no" >&5
4852 echo "${ECHO_T}no" >&6
4853 fi
4854
4855 fi
4856 if test -z "$ac_cv_prog_RANLIB"; then
4857   ac_ct_RANLIB=$RANLIB
4858   # Extract the first word of "ranlib", so it can be a program name with args.
4859 set dummy ranlib; ac_word=$2
4860 echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   if test -n "$ac_ct_RANLIB"; then
4866   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871   IFS=$as_save_IFS
4872   test -z "$as_dir" && as_dir=.
4873   for ac_exec_ext in '' $ac_executable_extensions; do
4874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875     ac_cv_prog_ac_ct_RANLIB="ranlib"
4876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877     break 2
4878   fi
4879 done
4880 done
4881
4882   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4883 fi
4884 fi
4885 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4886 if test -n "$ac_ct_RANLIB"; then
4887   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4888 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4889 else
4890   echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6
4892 fi
4893
4894   RANLIB=$ac_ct_RANLIB
4895 else
4896   RANLIB="$ac_cv_prog_RANLIB"
4897 fi
4898
4899
4900 # Check whether --enable-shared or --disable-shared was given.
4901 if test "${enable_shared+set}" = set; then
4902   enableval="$enable_shared"
4903   p=${PACKAGE-default}
4904     case $enableval in
4905     yes) enable_shared=yes ;;
4906     no) enable_shared=no ;;
4907     *)
4908       enable_shared=no
4909       # Look at the argument we got.  We use all the common list separators.
4910       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4911       for pkg in $enableval; do
4912         IFS="$lt_save_ifs"
4913         if test "X$pkg" = "X$p"; then
4914           enable_shared=yes
4915         fi
4916       done
4917       IFS="$lt_save_ifs"
4918       ;;
4919     esac
4920 else
4921   enable_shared=no
4922 fi;
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932 case `pwd` in
4933   *\ * | *\     *)
4934     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4935 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4936 esac
4937
4938
4939
4940 macro_version='2.2.6'
4941 macro_revision='1.3012'
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955 ltmain="$ac_aux_dir/ltmain.sh"
4956
4957 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4958 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4959 if test "${lt_cv_path_SED+set}" = set; then
4960   echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962   # Loop through the user's path and test for sed and gsed.
4963 # Then use that list of sed's as ones to test for truncation.
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967   IFS=$as_save_IFS
4968   test -z "$as_dir" && as_dir=.
4969   for lt_ac_prog in sed gsed; do
4970     for ac_exec_ext in '' $ac_executable_extensions; do
4971       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4972         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4973       fi
4974     done
4975   done
4976 done
4977 IFS=$as_save_IFS
4978 lt_ac_max=0
4979 lt_ac_count=0
4980 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4981 # along with /bin/sed that truncates output.
4982 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4983   test ! -f $lt_ac_sed && continue
4984   cat /dev/null > conftest.in
4985   lt_ac_count=0
4986   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4987   # Check for GNU sed and select it if it is found.
4988   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4989     lt_cv_path_SED=$lt_ac_sed
4990     break
4991   fi
4992   while true; do
4993     cat conftest.in conftest.in >conftest.tmp
4994     mv conftest.tmp conftest.in
4995     cp conftest.in conftest.nl
4996     echo >>conftest.nl
4997     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4998     cmp -s conftest.out conftest.nl || break
4999     # 10000 chars as input seems more than enough
5000     test $lt_ac_count -gt 10 && break
5001     lt_ac_count=`expr $lt_ac_count + 1`
5002     if test $lt_ac_count -gt $lt_ac_max; then
5003       lt_ac_max=$lt_ac_count
5004       lt_cv_path_SED=$lt_ac_sed
5005     fi
5006   done
5007 done
5008
5009 fi
5010
5011 SED=$lt_cv_path_SED
5012
5013 echo "$as_me:$LINENO: result: $SED" >&5
5014 echo "${ECHO_T}$SED" >&6
5015
5016 test -z "$SED" && SED=sed
5017 Xsed="$SED -e 1s/^X//"
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029 echo "$as_me:$LINENO: checking for fgrep" >&5
5030 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5031 if test "${ac_cv_prog_fgrep+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5035     then ac_cv_prog_fgrep='grep -F'
5036     else ac_cv_prog_fgrep='fgrep'
5037     fi
5038 fi
5039 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5040 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5041  FGREP=$ac_cv_prog_fgrep
5042
5043
5044 test -z "$GREP" && GREP=grep
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5065 if test "${with_gnu_ld+set}" = set; then
5066   withval="$with_gnu_ld"
5067   test "$withval" = no || with_gnu_ld=yes
5068 else
5069   with_gnu_ld=no
5070 fi;
5071 ac_prog=ld
5072 if test "$GCC" = yes; then
5073   # Check if gcc -print-prog-name=ld gives a path.
5074   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5075 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5076   case $host in
5077   *-*-mingw*)
5078     # gcc leaves a trailing carriage return which upsets mingw
5079     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5080   *)
5081     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5082   esac
5083   case $ac_prog in
5084     # Accept absolute paths.
5085     [\\/]* | ?:[\\/]*)
5086       re_direlt='/[^/][^/]*/\.\./'
5087       # Canonicalize the pathname of ld
5088       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5089       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5090         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5091       done
5092       test -z "$LD" && LD="$ac_prog"
5093       ;;
5094   "")
5095     # If it fails, then pretend we aren't using GCC.
5096     ac_prog=ld
5097     ;;
5098   *)
5099     # If it is relative, then search for the first ld in PATH.
5100     with_gnu_ld=unknown
5101     ;;
5102   esac
5103 elif test "$with_gnu_ld" = yes; then
5104   echo "$as_me:$LINENO: checking for GNU ld" >&5
5105 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5106 else
5107   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5108 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5109 fi
5110 if test "${lt_cv_path_LD+set}" = set; then
5111   echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113   if test -z "$LD"; then
5114   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5115   for ac_dir in $PATH; do
5116     IFS="$lt_save_ifs"
5117     test -z "$ac_dir" && ac_dir=.
5118     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5119       lt_cv_path_LD="$ac_dir/$ac_prog"
5120       # Check to see if the program is GNU ld.  I'd rather use --version,
5121       # but apparently some variants of GNU ld only accept -v.
5122       # Break only if it was the GNU/non-GNU ld that we prefer.
5123       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5124       *GNU* | *'with BFD'*)
5125         test "$with_gnu_ld" != no && break
5126         ;;
5127       *)
5128         test "$with_gnu_ld" != yes && break
5129         ;;
5130       esac
5131     fi
5132   done
5133   IFS="$lt_save_ifs"
5134 else
5135   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5136 fi
5137 fi
5138
5139 LD="$lt_cv_path_LD"
5140 if test -n "$LD"; then
5141   echo "$as_me:$LINENO: result: $LD" >&5
5142 echo "${ECHO_T}$LD" >&6
5143 else
5144   echo "$as_me:$LINENO: result: no" >&5
5145 echo "${ECHO_T}no" >&6
5146 fi
5147 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5148 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5149    { (exit 1); exit 1; }; }
5150 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5151 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5152 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5153   echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5156 case `$LD -v 2>&1 </dev/null` in
5157 *GNU* | *'with BFD'*)
5158   lt_cv_prog_gnu_ld=yes
5159   ;;
5160 *)
5161   lt_cv_prog_gnu_ld=no
5162   ;;
5163 esac
5164 fi
5165 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5166 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5167 with_gnu_ld=$lt_cv_prog_gnu_ld
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5178 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5179 if test "${lt_cv_path_NM+set}" = set; then
5180   echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182   if test -n "$NM"; then
5183   # Let the user override the test.
5184   lt_cv_path_NM="$NM"
5185 else
5186   lt_nm_to_check="${ac_tool_prefix}nm"
5187   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5188     lt_nm_to_check="$lt_nm_to_check nm"
5189   fi
5190   for lt_tmp_nm in $lt_nm_to_check; do
5191     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5192     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5193       IFS="$lt_save_ifs"
5194       test -z "$ac_dir" && ac_dir=.
5195       tmp_nm="$ac_dir/$lt_tmp_nm"
5196       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5197         # Check to see if the nm accepts a BSD-compat flag.
5198         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5199         #   nm: unknown option "B" ignored
5200         # Tru64's nm complains that /dev/null is an invalid object file
5201         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5202         */dev/null* | *'Invalid file or object type'*)
5203           lt_cv_path_NM="$tmp_nm -B"
5204           break
5205           ;;
5206         *)
5207           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5208           */dev/null*)
5209             lt_cv_path_NM="$tmp_nm -p"
5210             break
5211             ;;
5212           *)
5213             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5214             continue # so that we can try to find one that supports BSD flags
5215             ;;
5216           esac
5217           ;;
5218         esac
5219       fi
5220     done
5221     IFS="$lt_save_ifs"
5222   done
5223   : ${lt_cv_path_NM=no}
5224 fi
5225 fi
5226 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5227 echo "${ECHO_T}$lt_cv_path_NM" >&6
5228 if test "$lt_cv_path_NM" != "no"; then
5229   NM="$lt_cv_path_NM"
5230 else
5231   # Didn't find any BSD compatible name lister, look for dumpbin.
5232   if test -n "$ac_tool_prefix"; then
5233   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5234   do
5235     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5237 echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   if test -n "$DUMPBIN"; then
5243   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5244 else
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248   IFS=$as_save_IFS
5249   test -z "$as_dir" && as_dir=.
5250   for ac_exec_ext in '' $ac_executable_extensions; do
5251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254     break 2
5255   fi
5256 done
5257 done
5258
5259 fi
5260 fi
5261 DUMPBIN=$ac_cv_prog_DUMPBIN
5262 if test -n "$DUMPBIN"; then
5263   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5264 echo "${ECHO_T}$DUMPBIN" >&6
5265 else
5266   echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6
5268 fi
5269
5270     test -n "$DUMPBIN" && break
5271   done
5272 fi
5273 if test -z "$DUMPBIN"; then
5274   ac_ct_DUMPBIN=$DUMPBIN
5275   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5276 do
5277   # Extract the first word of "$ac_prog", so it can be a program name with args.
5278 set dummy $ac_prog; ac_word=$2
5279 echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5281 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   if test -n "$ac_ct_DUMPBIN"; then
5285   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5286 else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292   for ac_exec_ext in '' $ac_executable_extensions; do
5293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299 done
5300
5301 fi
5302 fi
5303 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5304 if test -n "$ac_ct_DUMPBIN"; then
5305   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5306 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5307 else
5308   echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6
5310 fi
5311
5312   test -n "$ac_ct_DUMPBIN" && break
5313 done
5314 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5315
5316   DUMPBIN=$ac_ct_DUMPBIN
5317 fi
5318
5319
5320   if test "$DUMPBIN" != ":"; then
5321     NM="$DUMPBIN"
5322   fi
5323 fi
5324 test -z "$NM" && NM=nm
5325
5326
5327
5328
5329
5330
5331 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5332 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5333 if test "${lt_cv_nm_interface+set}" = set; then
5334   echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336   lt_cv_nm_interface="BSD nm"
5337   echo "int some_variable = 0;" > conftest.$ac_ext
5338   (eval echo "\"\$as_me:5338: $ac_compile\"" >&5)
5339   (eval "$ac_compile" 2>conftest.err)
5340   cat conftest.err >&5
5341   (eval echo "\"\$as_me:5341: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5342   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5343   cat conftest.err >&5
5344   (eval echo "\"\$as_me:5344: output\"" >&5)
5345   cat conftest.out >&5
5346   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5347     lt_cv_nm_interface="MS dumpbin"
5348   fi
5349   rm -f conftest*
5350 fi
5351 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5352 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5353
5354 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5355 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5356 LN_S=$as_ln_s
5357 if test "$LN_S" = "ln -s"; then
5358   echo "$as_me:$LINENO: result: yes" >&5
5359 echo "${ECHO_T}yes" >&6
5360 else
5361   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5362 echo "${ECHO_T}no, using $LN_S" >&6
5363 fi
5364
5365 # find the maximum length of command line arguments
5366 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5367 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5368 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371     i=0
5372   teststring="ABCD"
5373
5374   case $build_os in
5375   msdosdjgpp*)
5376     # On DJGPP, this test can blow up pretty badly due to problems in libc
5377     # (any single argument exceeding 2000 bytes causes a buffer overrun
5378     # during glob expansion).  Even if it were fixed, the result of this
5379     # check would be larger than it should be.
5380     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5381     ;;
5382
5383   gnu*)
5384     # Under GNU Hurd, this test is not required because there is
5385     # no limit to the length of command line arguments.
5386     # Libtool will interpret -1 as no limit whatsoever
5387     lt_cv_sys_max_cmd_len=-1;
5388     ;;
5389
5390   cygwin* | mingw* | cegcc*)
5391     # On Win9x/ME, this test blows up -- it succeeds, but takes
5392     # about 5 minutes as the teststring grows exponentially.
5393     # Worse, since 9x/ME are not pre-emptively multitasking,
5394     # you end up with a "frozen" computer, even though with patience
5395     # the test eventually succeeds (with a max line length of 256k).
5396     # Instead, let's just punt: use the minimum linelength reported by
5397     # all of the supported platforms: 8192 (on NT/2K/XP).
5398     lt_cv_sys_max_cmd_len=8192;
5399     ;;
5400
5401   amigaos*)
5402     # On AmigaOS with pdksh, this test takes hours, literally.
5403     # So we just punt and use a minimum line length of 8192.
5404     lt_cv_sys_max_cmd_len=8192;
5405     ;;
5406
5407   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5408     # This has been around since 386BSD, at least.  Likely further.
5409     if test -x /sbin/sysctl; then
5410       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5411     elif test -x /usr/sbin/sysctl; then
5412       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5413     else
5414       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5415     fi
5416     # And add a safety zone
5417     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5418     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5419     ;;
5420
5421   interix*)
5422     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5423     lt_cv_sys_max_cmd_len=196608
5424     ;;
5425
5426   osf*)
5427     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5428     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5429     # nice to cause kernel panics so lets avoid the loop below.
5430     # First set a reasonable default.
5431     lt_cv_sys_max_cmd_len=16384
5432     #
5433     if test -x /sbin/sysconfig; then
5434       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5435         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5436       esac
5437     fi
5438     ;;
5439   sco3.2v5*)
5440     lt_cv_sys_max_cmd_len=102400
5441     ;;
5442   sysv5* | sco5v6* | sysv4.2uw2*)
5443     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5444     if test -n "$kargmax"; then
5445       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5446     else
5447       lt_cv_sys_max_cmd_len=32768
5448     fi
5449     ;;
5450   *)
5451     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5452     if test -n "$lt_cv_sys_max_cmd_len"; then
5453       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5454       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5455     else
5456       # Make teststring a little bigger before we do anything with it.
5457       # a 1K string should be a reasonable start.
5458       for i in 1 2 3 4 5 6 7 8 ; do
5459         teststring=$teststring$teststring
5460       done
5461       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5462       # If test is not a shell built-in, we'll probably end up computing a
5463       # maximum length that is only half of the actual maximum length, but
5464       # we can't tell.
5465       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5466                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5467               test $i != 17 # 1/2 MB should be enough
5468       do
5469         i=`expr $i + 1`
5470         teststring=$teststring$teststring
5471       done
5472       # Only check the string length outside the loop.
5473       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5474       teststring=
5475       # Add a significant safety factor because C++ compilers can tack on
5476       # massive amounts of additional arguments before passing them to the
5477       # linker.  It appears as though 1/2 is a usable value.
5478       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5479     fi
5480     ;;
5481   esac
5482
5483 fi
5484
5485 if test -n $lt_cv_sys_max_cmd_len ; then
5486   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5487 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5488 else
5489   echo "$as_me:$LINENO: result: none" >&5
5490 echo "${ECHO_T}none" >&6
5491 fi
5492 max_cmd_len=$lt_cv_sys_max_cmd_len
5493
5494
5495
5496
5497
5498
5499 : ${CP="cp -f"}
5500 : ${MV="mv -f"}
5501 : ${RM="rm -f"}
5502
5503 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5504 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5505 # Try some XSI features
5506 xsi_shell=no
5507 ( _lt_dummy="a/b/c"
5508   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5509       = c,a/b,, \
5510     && eval 'test $(( 1 + 1 )) -eq 2 \
5511     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5512   && xsi_shell=yes
5513 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5514 echo "${ECHO_T}$xsi_shell" >&6
5515
5516
5517 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5518 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5519 lt_shell_append=no
5520 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5521     >/dev/null 2>&1 \
5522   && lt_shell_append=yes
5523 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5524 echo "${ECHO_T}$lt_shell_append" >&6
5525
5526
5527 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5528   lt_unset=unset
5529 else
5530   lt_unset=false
5531 fi
5532
5533
5534
5535
5536
5537 # test EBCDIC or ASCII
5538 case `echo X|tr X '\101'` in
5539  A) # ASCII based system
5540     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5541   lt_SP2NL='tr \040 \012'
5542   lt_NL2SP='tr \015\012 \040\040'
5543   ;;
5544  *) # EBCDIC based system
5545   lt_SP2NL='tr \100 \n'
5546   lt_NL2SP='tr \r\n \100\100'
5547   ;;
5548 esac
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5559 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5560 if test "${lt_cv_ld_reload_flag+set}" = set; then
5561   echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563   lt_cv_ld_reload_flag='-r'
5564 fi
5565 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5566 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5567 reload_flag=$lt_cv_ld_reload_flag
5568 case $reload_flag in
5569 "" | " "*) ;;
5570 *) reload_flag=" $reload_flag" ;;
5571 esac
5572 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5573 case $host_os in
5574   darwin*)
5575     if test "$GCC" = yes; then
5576       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5577     else
5578       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5579     fi
5580     ;;
5581 esac
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591 if test -n "$ac_tool_prefix"; then
5592   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5593 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5594 echo "$as_me:$LINENO: checking for $ac_word" >&5
5595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5596 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5597   echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599   if test -n "$OBJDUMP"; then
5600   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605   IFS=$as_save_IFS
5606   test -z "$as_dir" && as_dir=.
5607   for ac_exec_ext in '' $ac_executable_extensions; do
5608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611     break 2
5612   fi
5613 done
5614 done
5615
5616 fi
5617 fi
5618 OBJDUMP=$ac_cv_prog_OBJDUMP
5619 if test -n "$OBJDUMP"; then
5620   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5621 echo "${ECHO_T}$OBJDUMP" >&6
5622 else
5623   echo "$as_me:$LINENO: result: no" >&5
5624 echo "${ECHO_T}no" >&6
5625 fi
5626
5627 fi
5628 if test -z "$ac_cv_prog_OBJDUMP"; then
5629   ac_ct_OBJDUMP=$OBJDUMP
5630   # Extract the first word of "objdump", so it can be a program name with args.
5631 set dummy objdump; ac_word=$2
5632 echo "$as_me:$LINENO: checking for $ac_word" >&5
5633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5634 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   if test -n "$ac_ct_OBJDUMP"; then
5638   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643   IFS=$as_save_IFS
5644   test -z "$as_dir" && as_dir=.
5645   for ac_exec_ext in '' $ac_executable_extensions; do
5646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649     break 2
5650   fi
5651 done
5652 done
5653
5654   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5655 fi
5656 fi
5657 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5658 if test -n "$ac_ct_OBJDUMP"; then
5659   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5660 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5661 else
5662   echo "$as_me:$LINENO: result: no" >&5
5663 echo "${ECHO_T}no" >&6
5664 fi
5665
5666   OBJDUMP=$ac_ct_OBJDUMP
5667 else
5668   OBJDUMP="$ac_cv_prog_OBJDUMP"
5669 fi
5670
5671 test -z "$OBJDUMP" && OBJDUMP=objdump
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5682 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
5683 if test "${lt_cv_deplibs_check_method+set}" = set; then
5684   echo $ECHO_N "(cached) $ECHO_C" >&6
5685 else
5686   lt_cv_file_magic_cmd='$MAGIC_CMD'
5687 lt_cv_file_magic_test_file=
5688 lt_cv_deplibs_check_method='unknown'
5689 # Need to set the preceding variable on all platforms that support
5690 # interlibrary dependencies.
5691 # 'none' -- dependencies not supported.
5692 # `unknown' -- same as none, but documents that we really don't know.
5693 # 'pass_all' -- all dependencies passed with no checks.
5694 # 'test_compile' -- check by making test program.
5695 # 'file_magic [[regex]]' -- check by looking for files in library path
5696 # which responds to the $file_magic_cmd with a given extended regex.
5697 # If you have `file' or equivalent on your system and you're not sure
5698 # whether `pass_all' will *always* work, you probably want this one.
5699
5700 case $host_os in
5701 aix[4-9]*)
5702   lt_cv_deplibs_check_method=pass_all
5703   ;;
5704
5705 beos*)
5706   lt_cv_deplibs_check_method=pass_all
5707   ;;
5708
5709 bsdi[45]*)
5710   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5711   lt_cv_file_magic_cmd='/usr/bin/file -L'
5712   lt_cv_file_magic_test_file=/shlib/libc.so
5713   ;;
5714
5715 cygwin*)
5716   # func_win32_libid is a shell function defined in ltmain.sh
5717   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5718   lt_cv_file_magic_cmd='func_win32_libid'
5719   ;;
5720
5721 mingw* | pw32*)
5722   # Base MSYS/MinGW do not provide the 'file' command needed by
5723   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5724   # unless we find 'file', for example because we are cross-compiling.
5725   if ( file / ) >/dev/null 2>&1; then
5726     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5727     lt_cv_file_magic_cmd='func_win32_libid'
5728   else
5729     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5730     lt_cv_file_magic_cmd='$OBJDUMP -f'
5731   fi
5732   ;;
5733
5734 cegcc)
5735   # use the weaker test based on 'objdump'. See mingw*.
5736   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5737   lt_cv_file_magic_cmd='$OBJDUMP -f'
5738   ;;
5739
5740 darwin* | rhapsody*)
5741   lt_cv_deplibs_check_method=pass_all
5742   ;;
5743
5744 freebsd* | dragonfly*)
5745   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5746     case $host_cpu in
5747     i*86 )
5748       # Not sure whether the presence of OpenBSD here was a mistake.
5749       # Let's accept both of them until this is cleared up.
5750       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5751       lt_cv_file_magic_cmd=/usr/bin/file
5752       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5753       ;;
5754     esac
5755   else
5756     lt_cv_deplibs_check_method=pass_all
5757   fi
5758   ;;
5759
5760 gnu*)
5761   lt_cv_deplibs_check_method=pass_all
5762   ;;
5763
5764 hpux10.20* | hpux11*)
5765   lt_cv_file_magic_cmd=/usr/bin/file
5766   case $host_cpu in
5767   ia64*)
5768     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5769     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5770     ;;
5771   hppa*64*)
5772     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]'
5773     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5774     ;;
5775   *)
5776     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5777     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5778     ;;
5779   esac
5780   ;;
5781
5782 interix[3-9]*)
5783   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5784   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5785   ;;
5786
5787 irix5* | irix6* | nonstopux*)
5788   case $LD in
5789   *-32|*"-32 ") libmagic=32-bit;;
5790   *-n32|*"-n32 ") libmagic=N32;;
5791   *-64|*"-64 ") libmagic=64-bit;;
5792   *) libmagic=never-match;;
5793   esac
5794   lt_cv_deplibs_check_method=pass_all
5795   ;;
5796
5797 # This must be Linux ELF.
5798 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5799   lt_cv_deplibs_check_method=pass_all
5800   ;;
5801
5802 netbsd*)
5803   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5804     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5805   else
5806     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5807   fi
5808   ;;
5809
5810 newos6*)
5811   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5812   lt_cv_file_magic_cmd=/usr/bin/file
5813   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5814   ;;
5815
5816 *nto* | *qnx*)
5817   lt_cv_deplibs_check_method=pass_all
5818   ;;
5819
5820 openbsd*)
5821   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5822     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5823   else
5824     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5825   fi
5826   ;;
5827
5828 osf3* | osf4* | osf5*)
5829   lt_cv_deplibs_check_method=pass_all
5830   ;;
5831
5832 rdos*)
5833   lt_cv_deplibs_check_method=pass_all
5834   ;;
5835
5836 solaris*)
5837   lt_cv_deplibs_check_method=pass_all
5838   ;;
5839
5840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5841   lt_cv_deplibs_check_method=pass_all
5842   ;;
5843
5844 sysv4 | sysv4.3*)
5845   case $host_vendor in
5846   motorola)
5847     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]'
5848     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5849     ;;
5850   ncr)
5851     lt_cv_deplibs_check_method=pass_all
5852     ;;
5853   sequent)
5854     lt_cv_file_magic_cmd='/bin/file'
5855     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5856     ;;
5857   sni)
5858     lt_cv_file_magic_cmd='/bin/file'
5859     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5860     lt_cv_file_magic_test_file=/lib/libc.so
5861     ;;
5862   siemens)
5863     lt_cv_deplibs_check_method=pass_all
5864     ;;
5865   pc)
5866     lt_cv_deplibs_check_method=pass_all
5867     ;;
5868   esac
5869   ;;
5870
5871 tpf*)
5872   lt_cv_deplibs_check_method=pass_all
5873   ;;
5874 esac
5875
5876 fi
5877 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5878 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5879 file_magic_cmd=$lt_cv_file_magic_cmd
5880 deplibs_check_method=$lt_cv_deplibs_check_method
5881 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894 if test -n "$ac_tool_prefix"; then
5895   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5896 set dummy ${ac_tool_prefix}ar; ac_word=$2
5897 echo "$as_me:$LINENO: checking for $ac_word" >&5
5898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5899 if test "${ac_cv_prog_AR+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   if test -n "$AR"; then
5903   ac_cv_prog_AR="$AR" # Let the user override the test.
5904 else
5905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 for as_dir in $PATH
5907 do
5908   IFS=$as_save_IFS
5909   test -z "$as_dir" && as_dir=.
5910   for ac_exec_ext in '' $ac_executable_extensions; do
5911   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5912     ac_cv_prog_AR="${ac_tool_prefix}ar"
5913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5914     break 2
5915   fi
5916 done
5917 done
5918
5919 fi
5920 fi
5921 AR=$ac_cv_prog_AR
5922 if test -n "$AR"; then
5923   echo "$as_me:$LINENO: result: $AR" >&5
5924 echo "${ECHO_T}$AR" >&6
5925 else
5926   echo "$as_me:$LINENO: result: no" >&5
5927 echo "${ECHO_T}no" >&6
5928 fi
5929
5930 fi
5931 if test -z "$ac_cv_prog_AR"; then
5932   ac_ct_AR=$AR
5933   # Extract the first word of "ar", so it can be a program name with args.
5934 set dummy ar; ac_word=$2
5935 echo "$as_me:$LINENO: checking for $ac_word" >&5
5936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5937 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5938   echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940   if test -n "$ac_ct_AR"; then
5941   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946   IFS=$as_save_IFS
5947   test -z "$as_dir" && as_dir=.
5948   for ac_exec_ext in '' $ac_executable_extensions; do
5949   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950     ac_cv_prog_ac_ct_AR="ar"
5951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952     break 2
5953   fi
5954 done
5955 done
5956
5957   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5958 fi
5959 fi
5960 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5961 if test -n "$ac_ct_AR"; then
5962   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5963 echo "${ECHO_T}$ac_ct_AR" >&6
5964 else
5965   echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5967 fi
5968
5969   AR=$ac_ct_AR
5970 else
5971   AR="$ac_cv_prog_AR"
5972 fi
5973
5974 test -z "$AR" && AR=ar
5975 test -z "$AR_FLAGS" && AR_FLAGS=cru
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987 if test -n "$ac_tool_prefix"; then
5988   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5989 set dummy ${ac_tool_prefix}strip; ac_word=$2
5990 echo "$as_me:$LINENO: checking for $ac_word" >&5
5991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5992 if test "${ac_cv_prog_STRIP+set}" = set; then
5993   echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995   if test -n "$STRIP"; then
5996   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5997 else
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999 for as_dir in $PATH
6000 do
6001   IFS=$as_save_IFS
6002   test -z "$as_dir" && as_dir=.
6003   for ac_exec_ext in '' $ac_executable_extensions; do
6004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6005     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007     break 2
6008   fi
6009 done
6010 done
6011
6012 fi
6013 fi
6014 STRIP=$ac_cv_prog_STRIP
6015 if test -n "$STRIP"; then
6016   echo "$as_me:$LINENO: result: $STRIP" >&5
6017 echo "${ECHO_T}$STRIP" >&6
6018 else
6019   echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6
6021 fi
6022
6023 fi
6024 if test -z "$ac_cv_prog_STRIP"; then
6025   ac_ct_STRIP=$STRIP
6026   # Extract the first word of "strip", so it can be a program name with args.
6027 set dummy strip; ac_word=$2
6028 echo "$as_me:$LINENO: checking for $ac_word" >&5
6029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6030 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6031   echo $ECHO_N "(cached) $ECHO_C" >&6
6032 else
6033   if test -n "$ac_ct_STRIP"; then
6034   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6035 else
6036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 for as_dir in $PATH
6038 do
6039   IFS=$as_save_IFS
6040   test -z "$as_dir" && as_dir=.
6041   for ac_exec_ext in '' $ac_executable_extensions; do
6042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6043     ac_cv_prog_ac_ct_STRIP="strip"
6044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6045     break 2
6046   fi
6047 done
6048 done
6049
6050   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6051 fi
6052 fi
6053 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6054 if test -n "$ac_ct_STRIP"; then
6055   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6056 echo "${ECHO_T}$ac_ct_STRIP" >&6
6057 else
6058   echo "$as_me:$LINENO: result: no" >&5
6059 echo "${ECHO_T}no" >&6
6060 fi
6061
6062   STRIP=$ac_ct_STRIP
6063 else
6064   STRIP="$ac_cv_prog_STRIP"
6065 fi
6066
6067 test -z "$STRIP" && STRIP=:
6068
6069
6070
6071
6072
6073
6074 if test -n "$ac_tool_prefix"; then
6075   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6077 echo "$as_me:$LINENO: checking for $ac_word" >&5
6078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6079 if test "${ac_cv_prog_RANLIB+set}" = set; then
6080   echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082   if test -n "$RANLIB"; then
6083   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088   IFS=$as_save_IFS
6089   test -z "$as_dir" && as_dir=.
6090   for ac_exec_ext in '' $ac_executable_extensions; do
6091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6094     break 2
6095   fi
6096 done
6097 done
6098
6099 fi
6100 fi
6101 RANLIB=$ac_cv_prog_RANLIB
6102 if test -n "$RANLIB"; then
6103   echo "$as_me:$LINENO: result: $RANLIB" >&5
6104 echo "${ECHO_T}$RANLIB" >&6
6105 else
6106   echo "$as_me:$LINENO: result: no" >&5
6107 echo "${ECHO_T}no" >&6
6108 fi
6109
6110 fi
6111 if test -z "$ac_cv_prog_RANLIB"; then
6112   ac_ct_RANLIB=$RANLIB
6113   # Extract the first word of "ranlib", so it can be a program name with args.
6114 set dummy ranlib; ac_word=$2
6115 echo "$as_me:$LINENO: checking for $ac_word" >&5
6116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   if test -n "$ac_ct_RANLIB"; then
6121   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126   IFS=$as_save_IFS
6127   test -z "$as_dir" && as_dir=.
6128   for ac_exec_ext in '' $ac_executable_extensions; do
6129   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130     ac_cv_prog_ac_ct_RANLIB="ranlib"
6131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132     break 2
6133   fi
6134 done
6135 done
6136
6137   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6138 fi
6139 fi
6140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6141 if test -n "$ac_ct_RANLIB"; then
6142   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6143 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6144 else
6145   echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6
6147 fi
6148
6149   RANLIB=$ac_ct_RANLIB
6150 else
6151   RANLIB="$ac_cv_prog_RANLIB"
6152 fi
6153
6154 test -z "$RANLIB" && RANLIB=:
6155
6156
6157
6158
6159
6160
6161 # Determine commands to create old-style static archives.
6162 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6163 old_postinstall_cmds='chmod 644 $oldlib'
6164 old_postuninstall_cmds=
6165
6166 if test -n "$RANLIB"; then
6167   case $host_os in
6168   openbsd*)
6169     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6170     ;;
6171   *)
6172     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6173     ;;
6174   esac
6175   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6176 fi
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211 # If no C compiler was specified, use CC.
6212 LTCC=${LTCC-"$CC"}
6213
6214 # If no C compiler flags were specified, use CFLAGS.
6215 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6216
6217 # Allow CC to be a program name with arguments.
6218 compiler=$CC
6219
6220
6221 # Check for command to grab the raw symbol name followed by C symbol from nm.
6222 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6223 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6224 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227
6228 # These are sane defaults that work on at least a few old systems.
6229 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6230
6231 # Character class describing NM global symbol codes.
6232 symcode='[BCDEGRST]'
6233
6234 # Regexp to match symbols that can be accessed directly from C.
6235 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6236
6237 # Define system-specific variables.
6238 case $host_os in
6239 aix*)
6240   symcode='[BCDT]'
6241   ;;
6242 cygwin* | mingw* | pw32* | cegcc*)
6243   symcode='[ABCDGISTW]'
6244   ;;
6245 hpux*)
6246   if test "$host_cpu" = ia64; then
6247     symcode='[ABCDEGRST]'
6248   fi
6249   ;;
6250 irix* | nonstopux*)
6251   symcode='[BCDEGRST]'
6252   ;;
6253 osf*)
6254   symcode='[BCDEGQRST]'
6255   ;;
6256 solaris*)
6257   symcode='[BDRT]'
6258   ;;
6259 sco3.2v5*)
6260   symcode='[DT]'
6261   ;;
6262 sysv4.2uw2*)
6263   symcode='[DT]'
6264   ;;
6265 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6266   symcode='[ABDT]'
6267   ;;
6268 sysv4)
6269   symcode='[DFNSTU]'
6270   ;;
6271 esac
6272
6273 # If we're using GNU nm, then use its standard symbol codes.
6274 case `$NM -V 2>&1` in
6275 *GNU* | *'with BFD'*)
6276   symcode='[ABCDGIRSTW]' ;;
6277 esac
6278
6279 # Transform an extracted symbol line into a proper C declaration.
6280 # Some systems (esp. on ia64) link data and code symbols differently,
6281 # so use this general approach.
6282 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6283
6284 # Transform an extracted symbol line into symbol name and symbol address
6285 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6286 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'"
6287
6288 # Handle CRLF in mingw tool chain
6289 opt_cr=
6290 case $build_os in
6291 mingw*)
6292   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6293   ;;
6294 esac
6295
6296 # Try without a prefix underscore, then with it.
6297 for ac_symprfx in "" "_"; do
6298
6299   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6300   symxfrm="\\1 $ac_symprfx\\2 \\2"
6301
6302   # Write the raw and C identifiers.
6303   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6304     # Fake it for dumpbin and say T for any non-static function
6305     # and D for any global variable.
6306     # Also find C++ and __fastcall symbols from MSVC++,
6307     # which start with @ or ?.
6308     lt_cv_sys_global_symbol_pipe="$AWK '"\
6309 "     {last_section=section; section=\$ 3};"\
6310 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6311 "     \$ 0!~/External *\|/{next};"\
6312 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6313 "     {if(hide[section]) next};"\
6314 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6315 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6316 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6317 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6318 "     ' prfx=^$ac_symprfx"
6319   else
6320     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6321   fi
6322
6323   # Check to see that the pipe works correctly.
6324   pipe_works=no
6325
6326   rm -f conftest*
6327   cat > conftest.$ac_ext <<_LT_EOF
6328 #ifdef __cplusplus
6329 extern "C" {
6330 #endif
6331 char nm_test_var;
6332 void nm_test_func(void);
6333 void nm_test_func(void){}
6334 #ifdef __cplusplus
6335 }
6336 #endif
6337 int main(){nm_test_var='a';nm_test_func();return(0);}
6338 _LT_EOF
6339
6340   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341   (eval $ac_compile) 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); }; then
6345     # Now try to grab the symbols.
6346     nlist=conftest.nm
6347     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6348   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6349   ac_status=$?
6350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351   (exit $ac_status); } && test -s "$nlist"; then
6352       # Try sorting and uniquifying the output.
6353       if sort "$nlist" | uniq > "$nlist"T; then
6354         mv -f "$nlist"T "$nlist"
6355       else
6356         rm -f "$nlist"T
6357       fi
6358
6359       # Make sure that we snagged all the symbols we need.
6360       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6361         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6362           cat <<_LT_EOF > conftest.$ac_ext
6363 #ifdef __cplusplus
6364 extern "C" {
6365 #endif
6366
6367 _LT_EOF
6368           # Now generate the symbol file.
6369           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6370
6371           cat <<_LT_EOF >> conftest.$ac_ext
6372
6373 /* The mapping between symbol names and symbols.  */
6374 const struct {
6375   const char *name;
6376   void       *address;
6377 }
6378 lt__PROGRAM__LTX_preloaded_symbols[] =
6379 {
6380   { "@PROGRAM@", (void *) 0 },
6381 _LT_EOF
6382           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6383           cat <<\_LT_EOF >> conftest.$ac_ext
6384   {0, (void *) 0}
6385 };
6386
6387 /* This works around a problem in FreeBSD linker */
6388 #ifdef FREEBSD_WORKAROUND
6389 static const void *lt_preloaded_setup() {
6390   return lt__PROGRAM__LTX_preloaded_symbols;
6391 }
6392 #endif
6393
6394 #ifdef __cplusplus
6395 }
6396 #endif
6397 _LT_EOF
6398           # Now try linking the two files.
6399           mv conftest.$ac_objext conftstm.$ac_objext
6400           lt_save_LIBS="$LIBS"
6401           lt_save_CFLAGS="$CFLAGS"
6402           LIBS="conftstm.$ac_objext"
6403           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6404           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6405   (eval $ac_link) 2>&5
6406   ac_status=$?
6407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6409             pipe_works=yes
6410           fi
6411           LIBS="$lt_save_LIBS"
6412           CFLAGS="$lt_save_CFLAGS"
6413         else
6414           echo "cannot find nm_test_func in $nlist" >&5
6415         fi
6416       else
6417         echo "cannot find nm_test_var in $nlist" >&5
6418       fi
6419     else
6420       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6421     fi
6422   else
6423     echo "$progname: failed program was:" >&5
6424     cat conftest.$ac_ext >&5
6425   fi
6426   rm -rf conftest* conftst*
6427
6428   # Do not use the global_symbol_pipe unless it works.
6429   if test "$pipe_works" = yes; then
6430     break
6431   else
6432     lt_cv_sys_global_symbol_pipe=
6433   fi
6434 done
6435
6436 fi
6437
6438 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6439   lt_cv_sys_global_symbol_to_cdecl=
6440 fi
6441 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6442   echo "$as_me:$LINENO: result: failed" >&5
6443 echo "${ECHO_T}failed" >&6
6444 else
6445   echo "$as_me:$LINENO: result: ok" >&5
6446 echo "${ECHO_T}ok" >&6
6447 fi
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6471 if test "${enable_libtool_lock+set}" = set; then
6472   enableval="$enable_libtool_lock"
6473
6474 fi;
6475 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6476
6477 # Some flags need to be propagated to the compiler or linker for good
6478 # libtool support.
6479 case $host in
6480 ia64-*-hpux*)
6481   # Find out which ABI we are using.
6482   echo 'int i;' > conftest.$ac_ext
6483   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6484   (eval $ac_compile) 2>&5
6485   ac_status=$?
6486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487   (exit $ac_status); }; then
6488     case `/usr/bin/file conftest.$ac_objext` in
6489       *ELF-32*)
6490         HPUX_IA64_MODE="32"
6491         ;;
6492       *ELF-64*)
6493         HPUX_IA64_MODE="64"
6494         ;;
6495     esac
6496   fi
6497   rm -rf conftest*
6498   ;;
6499 *-*-irix6*)
6500   # Find out which ABI we are using.
6501   echo '#line 6501 "configure"' > conftest.$ac_ext
6502   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6503   (eval $ac_compile) 2>&5
6504   ac_status=$?
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); }; then
6507     if test "$lt_cv_prog_gnu_ld" = yes; then
6508       case `/usr/bin/file conftest.$ac_objext` in
6509         *32-bit*)
6510           LD="${LD-ld} -melf32bsmip"
6511           ;;
6512         *N32*)
6513           LD="${LD-ld} -melf32bmipn32"
6514           ;;
6515         *64-bit*)
6516           LD="${LD-ld} -melf64bmip"
6517         ;;
6518       esac
6519     else
6520       case `/usr/bin/file conftest.$ac_objext` in
6521         *32-bit*)
6522           LD="${LD-ld} -32"
6523           ;;
6524         *N32*)
6525           LD="${LD-ld} -n32"
6526           ;;
6527         *64-bit*)
6528           LD="${LD-ld} -64"
6529           ;;
6530       esac
6531     fi
6532   fi
6533   rm -rf conftest*
6534   ;;
6535
6536 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6537 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6538   # Find out which ABI we are using.
6539   echo 'int i;' > conftest.$ac_ext
6540   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541   (eval $ac_compile) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; then
6545     case `/usr/bin/file conftest.o` in
6546       *32-bit*)
6547         case $host in
6548           x86_64-*kfreebsd*-gnu)
6549             LD="${LD-ld} -m elf_i386_fbsd"
6550             ;;
6551           x86_64-*linux*)
6552             LD="${LD-ld} -m elf_i386"
6553             ;;
6554           ppc64-*linux*|powerpc64-*linux*)
6555             LD="${LD-ld} -m elf32ppclinux"
6556             ;;
6557           s390x-*linux*)
6558             LD="${LD-ld} -m elf_s390"
6559             ;;
6560           sparc64-*linux*)
6561             LD="${LD-ld} -m elf32_sparc"
6562             ;;
6563         esac
6564         ;;
6565       *64-bit*)
6566         case $host in
6567           x86_64-*kfreebsd*-gnu)
6568             LD="${LD-ld} -m elf_x86_64_fbsd"
6569             ;;
6570           x86_64-*linux*)
6571             LD="${LD-ld} -m elf_x86_64"
6572             ;;
6573           ppc*-*linux*|powerpc*-*linux*)
6574             LD="${LD-ld} -m elf64ppc"
6575             ;;
6576           s390*-*linux*|s390*-*tpf*)
6577             LD="${LD-ld} -m elf64_s390"
6578             ;;
6579           sparc*-*linux*)
6580             LD="${LD-ld} -m elf64_sparc"
6581             ;;
6582         esac
6583         ;;
6584     esac
6585   fi
6586   rm -rf conftest*
6587   ;;
6588
6589 *-*-sco3.2v5*)
6590   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6591   SAVE_CFLAGS="$CFLAGS"
6592   CFLAGS="$CFLAGS -belf"
6593   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6594 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6595 if test "${lt_cv_cc_needs_belf+set}" = set; then
6596   echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598   ac_ext=c
6599 ac_cpp='$CPP $CPPFLAGS'
6600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6603
6604      cat >conftest.$ac_ext <<_ACEOF
6605 /* confdefs.h.  */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h.  */
6610
6611 int
6612 main ()
6613 {
6614
6615   ;
6616   return 0;
6617 }
6618 _ACEOF
6619 rm -f conftest.$ac_objext conftest$ac_exeext
6620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6621   (eval $ac_link) 2>conftest.er1
6622   ac_status=$?
6623   grep -v '^ *+' conftest.er1 >conftest.err
6624   rm -f conftest.er1
6625   cat conftest.err >&5
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); } &&
6628          { ac_try='test -z "$ac_c_werror_flag"
6629                          || test ! -s conftest.err'
6630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6631   (eval $ac_try) 2>&5
6632   ac_status=$?
6633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); }; } &&
6635          { ac_try='test -s conftest$ac_exeext'
6636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637   (eval $ac_try) 2>&5
6638   ac_status=$?
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); }; }; then
6641   lt_cv_cc_needs_belf=yes
6642 else
6643   echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6645
6646 lt_cv_cc_needs_belf=no
6647 fi
6648 rm -f conftest.err conftest.$ac_objext \
6649       conftest$ac_exeext conftest.$ac_ext
6650      ac_ext=c
6651 ac_cpp='$CPP $CPPFLAGS'
6652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6655
6656 fi
6657 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6658 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6659   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6660     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6661     CFLAGS="$SAVE_CFLAGS"
6662   fi
6663   ;;
6664 sparc*-*solaris*)
6665   # Find out which ABI we are using.
6666   echo 'int i;' > conftest.$ac_ext
6667   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6668   (eval $ac_compile) 2>&5
6669   ac_status=$?
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); }; then
6672     case `/usr/bin/file conftest.o` in
6673     *64-bit*)
6674       case $lt_cv_prog_gnu_ld in
6675       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6676       *)
6677         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6678           LD="${LD-ld} -64"
6679         fi
6680         ;;
6681       esac
6682       ;;
6683     esac
6684   fi
6685   rm -rf conftest*
6686   ;;
6687 esac
6688
6689 need_locks="$enable_libtool_lock"
6690
6691
6692   case $host_os in
6693     rhapsody* | darwin*)
6694     if test -n "$ac_tool_prefix"; then
6695   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6696 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6697 echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6699 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702   if test -n "$DSYMUTIL"; then
6703   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6707 do
6708   IFS=$as_save_IFS
6709   test -z "$as_dir" && as_dir=.
6710   for ac_exec_ext in '' $ac_executable_extensions; do
6711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714     break 2
6715   fi
6716 done
6717 done
6718
6719 fi
6720 fi
6721 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6722 if test -n "$DSYMUTIL"; then
6723   echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6724 echo "${ECHO_T}$DSYMUTIL" >&6
6725 else
6726   echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6
6728 fi
6729
6730 fi
6731 if test -z "$ac_cv_prog_DSYMUTIL"; then
6732   ac_ct_DSYMUTIL=$DSYMUTIL
6733   # Extract the first word of "dsymutil", so it can be a program name with args.
6734 set dummy dsymutil; ac_word=$2
6735 echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6737 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   if test -n "$ac_ct_DSYMUTIL"; then
6741   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746   IFS=$as_save_IFS
6747   test -z "$as_dir" && as_dir=.
6748   for ac_exec_ext in '' $ac_executable_extensions; do
6749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6750     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752     break 2
6753   fi
6754 done
6755 done
6756
6757   test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6758 fi
6759 fi
6760 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6761 if test -n "$ac_ct_DSYMUTIL"; then
6762   echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6763 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6764 else
6765   echo "$as_me:$LINENO: result: no" >&5
6766 echo "${ECHO_T}no" >&6
6767 fi
6768
6769   DSYMUTIL=$ac_ct_DSYMUTIL
6770 else
6771   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6772 fi
6773
6774     if test -n "$ac_tool_prefix"; then
6775   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6776 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6777 echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6779 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   if test -n "$NMEDIT"; then
6783   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788   IFS=$as_save_IFS
6789   test -z "$as_dir" && as_dir=.
6790   for ac_exec_ext in '' $ac_executable_extensions; do
6791   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794     break 2
6795   fi
6796 done
6797 done
6798
6799 fi
6800 fi
6801 NMEDIT=$ac_cv_prog_NMEDIT
6802 if test -n "$NMEDIT"; then
6803   echo "$as_me:$LINENO: result: $NMEDIT" >&5
6804 echo "${ECHO_T}$NMEDIT" >&6
6805 else
6806   echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6
6808 fi
6809
6810 fi
6811 if test -z "$ac_cv_prog_NMEDIT"; then
6812   ac_ct_NMEDIT=$NMEDIT
6813   # Extract the first word of "nmedit", so it can be a program name with args.
6814 set dummy nmedit; ac_word=$2
6815 echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6817 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   if test -n "$ac_ct_NMEDIT"; then
6821   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6825 do
6826   IFS=$as_save_IFS
6827   test -z "$as_dir" && as_dir=.
6828   for ac_exec_ext in '' $ac_executable_extensions; do
6829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6830     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6832     break 2
6833   fi
6834 done
6835 done
6836
6837   test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6838 fi
6839 fi
6840 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6841 if test -n "$ac_ct_NMEDIT"; then
6842   echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6843 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6844 else
6845   echo "$as_me:$LINENO: result: no" >&5
6846 echo "${ECHO_T}no" >&6
6847 fi
6848
6849   NMEDIT=$ac_ct_NMEDIT
6850 else
6851   NMEDIT="$ac_cv_prog_NMEDIT"
6852 fi
6853
6854     if test -n "$ac_tool_prefix"; then
6855   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6857 echo "$as_me:$LINENO: checking for $ac_word" >&5
6858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6859 if test "${ac_cv_prog_LIPO+set}" = set; then
6860   echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862   if test -n "$LIPO"; then
6863   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870   for ac_exec_ext in '' $ac_executable_extensions; do
6871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877 done
6878
6879 fi
6880 fi
6881 LIPO=$ac_cv_prog_LIPO
6882 if test -n "$LIPO"; then
6883   echo "$as_me:$LINENO: result: $LIPO" >&5
6884 echo "${ECHO_T}$LIPO" >&6
6885 else
6886   echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6
6888 fi
6889
6890 fi
6891 if test -z "$ac_cv_prog_LIPO"; then
6892   ac_ct_LIPO=$LIPO
6893   # Extract the first word of "lipo", so it can be a program name with args.
6894 set dummy lipo; ac_word=$2
6895 echo "$as_me:$LINENO: checking for $ac_word" >&5
6896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6897 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6898   echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900   if test -n "$ac_ct_LIPO"; then
6901   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906   IFS=$as_save_IFS
6907   test -z "$as_dir" && as_dir=.
6908   for ac_exec_ext in '' $ac_executable_extensions; do
6909   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910     ac_cv_prog_ac_ct_LIPO="lipo"
6911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6912     break 2
6913   fi
6914 done
6915 done
6916
6917   test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6918 fi
6919 fi
6920 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6921 if test -n "$ac_ct_LIPO"; then
6922   echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6923 echo "${ECHO_T}$ac_ct_LIPO" >&6
6924 else
6925   echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6
6927 fi
6928
6929   LIPO=$ac_ct_LIPO
6930 else
6931   LIPO="$ac_cv_prog_LIPO"
6932 fi
6933
6934     if test -n "$ac_tool_prefix"; then
6935   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6936 set dummy ${ac_tool_prefix}otool; ac_word=$2
6937 echo "$as_me:$LINENO: checking for $ac_word" >&5
6938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6939 if test "${ac_cv_prog_OTOOL+set}" = set; then
6940   echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942   if test -n "$OTOOL"; then
6943   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6944 else
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 for as_dir in $PATH
6947 do
6948   IFS=$as_save_IFS
6949   test -z "$as_dir" && as_dir=.
6950   for ac_exec_ext in '' $ac_executable_extensions; do
6951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6952     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6954     break 2
6955   fi
6956 done
6957 done
6958
6959 fi
6960 fi
6961 OTOOL=$ac_cv_prog_OTOOL
6962 if test -n "$OTOOL"; then
6963   echo "$as_me:$LINENO: result: $OTOOL" >&5
6964 echo "${ECHO_T}$OTOOL" >&6
6965 else
6966   echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6
6968 fi
6969
6970 fi
6971 if test -z "$ac_cv_prog_OTOOL"; then
6972   ac_ct_OTOOL=$OTOOL
6973   # Extract the first word of "otool", so it can be a program name with args.
6974 set dummy otool; ac_word=$2
6975 echo "$as_me:$LINENO: checking for $ac_word" >&5
6976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6977 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6978   echo $ECHO_N "(cached) $ECHO_C" >&6
6979 else
6980   if test -n "$ac_ct_OTOOL"; then
6981   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986   IFS=$as_save_IFS
6987   test -z "$as_dir" && as_dir=.
6988   for ac_exec_ext in '' $ac_executable_extensions; do
6989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990     ac_cv_prog_ac_ct_OTOOL="otool"
6991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992     break 2
6993   fi
6994 done
6995 done
6996
6997   test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6998 fi
6999 fi
7000 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7001 if test -n "$ac_ct_OTOOL"; then
7002   echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7003 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7004 else
7005   echo "$as_me:$LINENO: result: no" >&5
7006 echo "${ECHO_T}no" >&6
7007 fi
7008
7009   OTOOL=$ac_ct_OTOOL
7010 else
7011   OTOOL="$ac_cv_prog_OTOOL"
7012 fi
7013
7014     if test -n "$ac_tool_prefix"; then
7015   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7016 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7017 echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7019 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7020   echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022   if test -n "$OTOOL64"; then
7023   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7027 do
7028   IFS=$as_save_IFS
7029   test -z "$as_dir" && as_dir=.
7030   for ac_exec_ext in '' $ac_executable_extensions; do
7031   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7032     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034     break 2
7035   fi
7036 done
7037 done
7038
7039 fi
7040 fi
7041 OTOOL64=$ac_cv_prog_OTOOL64
7042 if test -n "$OTOOL64"; then
7043   echo "$as_me:$LINENO: result: $OTOOL64" >&5
7044 echo "${ECHO_T}$OTOOL64" >&6
7045 else
7046   echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6
7048 fi
7049
7050 fi
7051 if test -z "$ac_cv_prog_OTOOL64"; then
7052   ac_ct_OTOOL64=$OTOOL64
7053   # Extract the first word of "otool64", so it can be a program name with args.
7054 set dummy otool64; ac_word=$2
7055 echo "$as_me:$LINENO: checking for $ac_word" >&5
7056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7057 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7058   echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060   if test -n "$ac_ct_OTOOL64"; then
7061   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7062 else
7063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7065 do
7066   IFS=$as_save_IFS
7067   test -z "$as_dir" && as_dir=.
7068   for ac_exec_ext in '' $ac_executable_extensions; do
7069   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7070     ac_cv_prog_ac_ct_OTOOL64="otool64"
7071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072     break 2
7073   fi
7074 done
7075 done
7076
7077   test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7078 fi
7079 fi
7080 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7081 if test -n "$ac_ct_OTOOL64"; then
7082   echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7083 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7084 else
7085   echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6
7087 fi
7088
7089   OTOOL64=$ac_ct_OTOOL64
7090 else
7091   OTOOL64="$ac_cv_prog_OTOOL64"
7092 fi
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120     echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7121 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7122 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7123   echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125   lt_cv_apple_cc_single_mod=no
7126       if test -z "${LT_MULTI_MODULE}"; then
7127         # By default we will add the -single_module flag. You can override
7128         # by either setting the environment variable LT_MULTI_MODULE
7129         # non-empty at configure time, or by adding -multi_module to the
7130         # link flags.
7131         rm -rf libconftest.dylib*
7132         echo "int foo(void){return 1;}" > conftest.c
7133         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7134 -dynamiclib -Wl,-single_module conftest.c" >&5
7135         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7136           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7137         _lt_result=$?
7138         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7139           lt_cv_apple_cc_single_mod=yes
7140         else
7141           cat conftest.err >&5
7142         fi
7143         rm -rf libconftest.dylib*
7144         rm -f conftest.*
7145       fi
7146 fi
7147 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7148 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7149     echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7150 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7151 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7152   echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154   lt_cv_ld_exported_symbols_list=no
7155       save_LDFLAGS=$LDFLAGS
7156       echo "_main" > conftest.sym
7157       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7158       cat >conftest.$ac_ext <<_ACEOF
7159 /* confdefs.h.  */
7160 _ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h.  */
7164
7165 int
7166 main ()
7167 {
7168
7169   ;
7170   return 0;
7171 }
7172 _ACEOF
7173 rm -f conftest.$ac_objext conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175   (eval $ac_link) 2>conftest.er1
7176   ac_status=$?
7177   grep -v '^ *+' conftest.er1 >conftest.err
7178   rm -f conftest.er1
7179   cat conftest.err >&5
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); } &&
7182          { ac_try='test -z "$ac_c_werror_flag"
7183                          || test ! -s conftest.err'
7184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185   (eval $ac_try) 2>&5
7186   ac_status=$?
7187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188   (exit $ac_status); }; } &&
7189          { ac_try='test -s conftest$ac_exeext'
7190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7191   (eval $ac_try) 2>&5
7192   ac_status=$?
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); }; }; then
7195   lt_cv_ld_exported_symbols_list=yes
7196 else
7197   echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7199
7200 lt_cv_ld_exported_symbols_list=no
7201 fi
7202 rm -f conftest.err conftest.$ac_objext \
7203       conftest$ac_exeext conftest.$ac_ext
7204         LDFLAGS="$save_LDFLAGS"
7205
7206 fi
7207 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7208 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7209     case $host_os in
7210     rhapsody* | darwin1.[012])
7211       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7212     darwin1.*)
7213       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7214     darwin*) # darwin 5.x on
7215       # if running on 10.5 or later, the deployment target defaults
7216       # to the OS version, if on x86, and 10.4, the deployment
7217       # target defaults to 10.4. Don't you love it?
7218       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7219         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7220           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7221         10.[012]*)
7222           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7223         10.*)
7224           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7225       esac
7226     ;;
7227   esac
7228     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7229       _lt_dar_single_mod='$single_module'
7230     fi
7231     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7232       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7233     else
7234       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7235     fi
7236     if test "$DSYMUTIL" != ":"; then
7237       _lt_dsymutil='~$DSYMUTIL $lib || :'
7238     else
7239       _lt_dsymutil=
7240     fi
7241     ;;
7242   esac
7243
7244
7245 for ac_header in dlfcn.h
7246 do
7247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7248 echo "$as_me:$LINENO: checking for $ac_header" >&5
7249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7251   echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253   cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h.  */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h.  */
7259 $ac_includes_default
7260
7261 #include <$ac_header>
7262 _ACEOF
7263 rm -f conftest.$ac_objext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265   (eval $ac_compile) 2>conftest.er1
7266   ac_status=$?
7267   grep -v '^ *+' conftest.er1 >conftest.err
7268   rm -f conftest.er1
7269   cat conftest.err >&5
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); } &&
7272          { ac_try='test -z "$ac_c_werror_flag"
7273                          || test ! -s conftest.err'
7274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275   (eval $ac_try) 2>&5
7276   ac_status=$?
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); }; } &&
7279          { ac_try='test -s conftest.$ac_objext'
7280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281   (eval $ac_try) 2>&5
7282   ac_status=$?
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); }; }; then
7285   eval "$as_ac_Header=yes"
7286 else
7287   echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7289
7290 eval "$as_ac_Header=no"
7291 fi
7292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7293 fi
7294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7297   cat >>confdefs.h <<_ACEOF
7298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7299 _ACEOF
7300
7301 fi
7302
7303 done
7304
7305
7306
7307 # Set options
7308
7309
7310
7311         enable_dlopen=no
7312
7313
7314   enable_win32_dll=no
7315
7316
7317
7318   # Check whether --enable-static or --disable-static was given.
7319 if test "${enable_static+set}" = set; then
7320   enableval="$enable_static"
7321   p=${PACKAGE-default}
7322     case $enableval in
7323     yes) enable_static=yes ;;
7324     no) enable_static=no ;;
7325     *)
7326      enable_static=no
7327       # Look at the argument we got.  We use all the common list separators.
7328       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7329       for pkg in $enableval; do
7330         IFS="$lt_save_ifs"
7331         if test "X$pkg" = "X$p"; then
7332           enable_static=yes
7333         fi
7334       done
7335       IFS="$lt_save_ifs"
7336       ;;
7337     esac
7338 else
7339   enable_static=yes
7340 fi;
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350 # Check whether --with-pic or --without-pic was given.
7351 if test "${with_pic+set}" = set; then
7352   withval="$with_pic"
7353   pic_mode="$withval"
7354 else
7355   pic_mode=default
7356 fi;
7357
7358 test -z "$pic_mode" && pic_mode=default
7359
7360
7361
7362
7363
7364
7365
7366   # Check whether --enable-fast-install or --disable-fast-install was given.
7367 if test "${enable_fast_install+set}" = set; then
7368   enableval="$enable_fast_install"
7369   p=${PACKAGE-default}
7370     case $enableval in
7371     yes) enable_fast_install=yes ;;
7372     no) enable_fast_install=no ;;
7373     *)
7374       enable_fast_install=no
7375       # Look at the argument we got.  We use all the common list separators.
7376       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7377       for pkg in $enableval; do
7378         IFS="$lt_save_ifs"
7379         if test "X$pkg" = "X$p"; then
7380           enable_fast_install=yes
7381         fi
7382       done
7383       IFS="$lt_save_ifs"
7384       ;;
7385     esac
7386 else
7387   enable_fast_install=yes
7388 fi;
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399 # This can be used to rebuild libtool when needed
7400 LIBTOOL_DEPS="$ltmain"
7401
7402 # Always use our own libtool.
7403 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429 test -z "$LN_S" && LN_S="ln -s"
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444 if test -n "${ZSH_VERSION+set}" ; then
7445    setopt NO_GLOB_SUBST
7446 fi
7447
7448 echo "$as_me:$LINENO: checking for objdir" >&5
7449 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7450 if test "${lt_cv_objdir+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453   rm -f .libs 2>/dev/null
7454 mkdir .libs 2>/dev/null
7455 if test -d .libs; then
7456   lt_cv_objdir=.libs
7457 else
7458   # MS-DOS does not allow filenames that begin with a dot.
7459   lt_cv_objdir=_libs
7460 fi
7461 rmdir .libs 2>/dev/null
7462 fi
7463 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7464 echo "${ECHO_T}$lt_cv_objdir" >&6
7465 objdir=$lt_cv_objdir
7466
7467
7468
7469
7470
7471 cat >>confdefs.h <<_ACEOF
7472 #define LT_OBJDIR "$lt_cv_objdir/"
7473 _ACEOF
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491 case $host_os in
7492 aix3*)
7493   # AIX sometimes has problems with the GCC collect2 program.  For some
7494   # reason, if we set the COLLECT_NAMES environment variable, the problems
7495   # vanish in a puff of smoke.
7496   if test "X${COLLECT_NAMES+set}" != Xset; then
7497     COLLECT_NAMES=
7498     export COLLECT_NAMES
7499   fi
7500   ;;
7501 esac
7502
7503 # Sed substitution that helps us do robust quoting.  It backslashifies
7504 # metacharacters that are still active within double-quoted strings.
7505 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7506
7507 # Same as above, but do not quote variable references.
7508 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7509
7510 # Sed substitution to delay expansion of an escaped shell variable in a
7511 # double_quote_subst'ed string.
7512 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7513
7514 # Sed substitution to delay expansion of an escaped single quote.
7515 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7516
7517 # Sed substitution to avoid accidental globbing in evaled expressions
7518 no_glob_subst='s/\*/\\\*/g'
7519
7520 # Global variables:
7521 ofile=libtool
7522 can_build_shared=yes
7523
7524 # All known linkers require a `.a' archive for static linking (except MSVC,
7525 # which needs '.lib').
7526 libext=a
7527
7528 with_gnu_ld="$lt_cv_prog_gnu_ld"
7529
7530 old_CC="$CC"
7531 old_CFLAGS="$CFLAGS"
7532
7533 # Set sane defaults for various variables
7534 test -z "$CC" && CC=cc
7535 test -z "$LTCC" && LTCC=$CC
7536 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7537 test -z "$LD" && LD=ld
7538 test -z "$ac_objext" && ac_objext=o
7539
7540 for cc_temp in $compiler""; do
7541   case $cc_temp in
7542     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7543     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7544     \-*) ;;
7545     *) break;;
7546   esac
7547 done
7548 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7549
7550
7551 # Only perform the check for file, if the check method requires it
7552 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7553 case $deplibs_check_method in
7554 file_magic*)
7555   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7556     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7557 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7558 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7559   echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561   case $MAGIC_CMD in
7562 [\\/*] |  ?:[\\/]*)
7563   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7564   ;;
7565 *)
7566   lt_save_MAGIC_CMD="$MAGIC_CMD"
7567   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7568   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7569   for ac_dir in $ac_dummy; do
7570     IFS="$lt_save_ifs"
7571     test -z "$ac_dir" && ac_dir=.
7572     if test -f $ac_dir/${ac_tool_prefix}file; then
7573       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7574       if test -n "$file_magic_test_file"; then
7575         case $deplibs_check_method in
7576         "file_magic "*)
7577           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7578           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7579           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7580             $EGREP "$file_magic_regex" > /dev/null; then
7581             :
7582           else
7583             cat <<_LT_EOF 1>&2
7584
7585 *** Warning: the command libtool uses to detect shared libraries,
7586 *** $file_magic_cmd, produces output that libtool cannot recognize.
7587 *** The result is that libtool may fail to recognize shared libraries
7588 *** as such.  This will affect the creation of libtool libraries that
7589 *** depend on shared libraries, but programs linked with such libtool
7590 *** libraries will work regardless of this problem.  Nevertheless, you
7591 *** may want to report the problem to your system manager and/or to
7592 *** bug-libtool@gnu.org
7593
7594 _LT_EOF
7595           fi ;;
7596         esac
7597       fi
7598       break
7599     fi
7600   done
7601   IFS="$lt_save_ifs"
7602   MAGIC_CMD="$lt_save_MAGIC_CMD"
7603   ;;
7604 esac
7605 fi
7606
7607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7608 if test -n "$MAGIC_CMD"; then
7609   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7610 echo "${ECHO_T}$MAGIC_CMD" >&6
7611 else
7612   echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6
7614 fi
7615
7616
7617
7618
7619
7620 if test -z "$lt_cv_path_MAGIC_CMD"; then
7621   if test -n "$ac_tool_prefix"; then
7622     echo "$as_me:$LINENO: checking for file" >&5
7623 echo $ECHO_N "checking for file... $ECHO_C" >&6
7624 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7625   echo $ECHO_N "(cached) $ECHO_C" >&6
7626 else
7627   case $MAGIC_CMD in
7628 [\\/*] |  ?:[\\/]*)
7629   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7630   ;;
7631 *)
7632   lt_save_MAGIC_CMD="$MAGIC_CMD"
7633   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7634   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7635   for ac_dir in $ac_dummy; do
7636     IFS="$lt_save_ifs"
7637     test -z "$ac_dir" && ac_dir=.
7638     if test -f $ac_dir/file; then
7639       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7640       if test -n "$file_magic_test_file"; then
7641         case $deplibs_check_method in
7642         "file_magic "*)
7643           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7644           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7645           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7646             $EGREP "$file_magic_regex" > /dev/null; then
7647             :
7648           else
7649             cat <<_LT_EOF 1>&2
7650
7651 *** Warning: the command libtool uses to detect shared libraries,
7652 *** $file_magic_cmd, produces output that libtool cannot recognize.
7653 *** The result is that libtool may fail to recognize shared libraries
7654 *** as such.  This will affect the creation of libtool libraries that
7655 *** depend on shared libraries, but programs linked with such libtool
7656 *** libraries will work regardless of this problem.  Nevertheless, you
7657 *** may want to report the problem to your system manager and/or to
7658 *** bug-libtool@gnu.org
7659
7660 _LT_EOF
7661           fi ;;
7662         esac
7663       fi
7664       break
7665     fi
7666   done
7667   IFS="$lt_save_ifs"
7668   MAGIC_CMD="$lt_save_MAGIC_CMD"
7669   ;;
7670 esac
7671 fi
7672
7673 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7674 if test -n "$MAGIC_CMD"; then
7675   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7676 echo "${ECHO_T}$MAGIC_CMD" >&6
7677 else
7678   echo "$as_me:$LINENO: result: no" >&5
7679 echo "${ECHO_T}no" >&6
7680 fi
7681
7682
7683   else
7684     MAGIC_CMD=:
7685   fi
7686 fi
7687
7688   fi
7689   ;;
7690 esac
7691
7692 # Use C for the default configuration in the libtool script
7693
7694 lt_save_CC="$CC"
7695 ac_ext=c
7696 ac_cpp='$CPP $CPPFLAGS'
7697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7700
7701
7702 # Source file extension for C test sources.
7703 ac_ext=c
7704
7705 # Object file extension for compiled C test sources.
7706 objext=o
7707 objext=$objext
7708
7709 # Code to be used in simple compile tests
7710 lt_simple_compile_test_code="int some_variable = 0;"
7711
7712 # Code to be used in simple link tests
7713 lt_simple_link_test_code='int main(){return(0);}'
7714
7715
7716
7717
7718
7719
7720
7721 # If no C compiler was specified, use CC.
7722 LTCC=${LTCC-"$CC"}
7723
7724 # If no C compiler flags were specified, use CFLAGS.
7725 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7726
7727 # Allow CC to be a program name with arguments.
7728 compiler=$CC
7729
7730 # Save the default compiler, since it gets overwritten when the other
7731 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7732 compiler_DEFAULT=$CC
7733
7734 # save warnings/boilerplate of simple test code
7735 ac_outfile=conftest.$ac_objext
7736 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7737 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7738 _lt_compiler_boilerplate=`cat conftest.err`
7739 $RM conftest*
7740
7741 ac_outfile=conftest.$ac_objext
7742 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7743 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7744 _lt_linker_boilerplate=`cat conftest.err`
7745 $RM -r conftest*
7746
7747
7748 ## CAVEAT EMPTOR:
7749 ## There is no encapsulation within the following macros, do not change
7750 ## the running order or otherwise move them around unless you know exactly
7751 ## what you are doing...
7752 if test -n "$compiler"; then
7753
7754 lt_prog_compiler_no_builtin_flag=
7755
7756 if test "$GCC" = yes; then
7757   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7758
7759   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7760 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7761 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7762   echo $ECHO_N "(cached) $ECHO_C" >&6
7763 else
7764   lt_cv_prog_compiler_rtti_exceptions=no
7765    ac_outfile=conftest.$ac_objext
7766    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7767    lt_compiler_flag="-fno-rtti -fno-exceptions"
7768    # Insert the option either (1) after the last *FLAGS variable, or
7769    # (2) before a word containing "conftest.", or (3) at the end.
7770    # Note that $ac_compile itself does not contain backslashes and begins
7771    # with a dollar sign (not a hyphen), so the echo should work correctly.
7772    # The option is referenced via a variable to avoid confusing sed.
7773    lt_compile=`echo "$ac_compile" | $SED \
7774    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7775    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7776    -e 's:$: $lt_compiler_flag:'`
7777    (eval echo "\"\$as_me:7777: $lt_compile\"" >&5)
7778    (eval "$lt_compile" 2>conftest.err)
7779    ac_status=$?
7780    cat conftest.err >&5
7781    echo "$as_me:7781: \$? = $ac_status" >&5
7782    if (exit $ac_status) && test -s "$ac_outfile"; then
7783      # The compiler can only warn and ignore the option if not recognized
7784      # So say no if there are warnings other than the usual output.
7785      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7786      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7787      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7788        lt_cv_prog_compiler_rtti_exceptions=yes
7789      fi
7790    fi
7791    $RM conftest*
7792
7793 fi
7794 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7795 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7796
7797 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7798     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7799 else
7800     :
7801 fi
7802
7803 fi
7804
7805
7806
7807
7808
7809
7810   lt_prog_compiler_wl=
7811 lt_prog_compiler_pic=
7812 lt_prog_compiler_static=
7813
7814 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7815 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7816
7817   if test "$GCC" = yes; then
7818     lt_prog_compiler_wl='-Wl,'
7819     lt_prog_compiler_static='-static'
7820
7821     case $host_os in
7822       aix*)
7823       # All AIX code is PIC.
7824       if test "$host_cpu" = ia64; then
7825         # AIX 5 now supports IA64 processor
7826         lt_prog_compiler_static='-Bstatic'
7827       fi
7828       ;;
7829
7830     amigaos*)
7831       case $host_cpu in
7832       powerpc)
7833             # see comment about AmigaOS4 .so support
7834             lt_prog_compiler_pic='-fPIC'
7835         ;;
7836       m68k)
7837             # FIXME: we need at least 68020 code to build shared libraries, but
7838             # adding the `-m68020' flag to GCC prevents building anything better,
7839             # like `-m68040'.
7840             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7841         ;;
7842       esac
7843       ;;
7844
7845     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7846       # PIC is the default for these OSes.
7847       ;;
7848
7849     mingw* | cygwin* | pw32* | os2* | cegcc*)
7850       # This hack is so that the source file can tell whether it is being
7851       # built for inclusion in a dll (and should export symbols for example).
7852       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7853       # (--disable-auto-import) libraries
7854       lt_prog_compiler_pic='-DDLL_EXPORT'
7855       ;;
7856
7857     darwin* | rhapsody*)
7858       # PIC is the default on this platform
7859       # Common symbols not allowed in MH_DYLIB files
7860       lt_prog_compiler_pic='-fno-common'
7861       ;;
7862
7863     hpux*)
7864       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7865       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7866       # sets the default TLS model and affects inlining.
7867       case $host_cpu in
7868       hppa*64*)
7869         # +Z the default
7870         ;;
7871       *)
7872         lt_prog_compiler_pic='-fPIC'
7873         ;;
7874       esac
7875       ;;
7876
7877     interix[3-9]*)
7878       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7879       # Instead, we relocate shared libraries at runtime.
7880       ;;
7881
7882     msdosdjgpp*)
7883       # Just because we use GCC doesn't mean we suddenly get shared libraries
7884       # on systems that don't support them.
7885       lt_prog_compiler_can_build_shared=no
7886       enable_shared=no
7887       ;;
7888
7889     *nto* | *qnx*)
7890       # QNX uses GNU C++, but need to define -shared option too, otherwise
7891       # it will coredump.
7892       lt_prog_compiler_pic='-fPIC -shared'
7893       ;;
7894
7895     sysv4*MP*)
7896       if test -d /usr/nec; then
7897         lt_prog_compiler_pic=-Kconform_pic
7898       fi
7899       ;;
7900
7901     *)
7902       lt_prog_compiler_pic='-fPIC'
7903       ;;
7904     esac
7905   else
7906     # PORTME Check for flag to pass linker flags through the system compiler.
7907     case $host_os in
7908     aix*)
7909       lt_prog_compiler_wl='-Wl,'
7910       if test "$host_cpu" = ia64; then
7911         # AIX 5 now supports IA64 processor
7912         lt_prog_compiler_static='-Bstatic'
7913       else
7914         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7915       fi
7916       ;;
7917
7918     mingw* | cygwin* | pw32* | os2* | cegcc*)
7919       # This hack is so that the source file can tell whether it is being
7920       # built for inclusion in a dll (and should export symbols for example).
7921       lt_prog_compiler_pic='-DDLL_EXPORT'
7922       ;;
7923
7924     hpux9* | hpux10* | hpux11*)
7925       lt_prog_compiler_wl='-Wl,'
7926       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7927       # not for PA HP-UX.
7928       case $host_cpu in
7929       hppa*64*|ia64*)
7930         # +Z the default
7931         ;;
7932       *)
7933         lt_prog_compiler_pic='+Z'
7934         ;;
7935       esac
7936       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7937       lt_prog_compiler_static='${wl}-a ${wl}archive'
7938       ;;
7939
7940     irix5* | irix6* | nonstopux*)
7941       lt_prog_compiler_wl='-Wl,'
7942       # PIC (with -KPIC) is the default.
7943       lt_prog_compiler_static='-non_shared'
7944       ;;
7945
7946     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7947       case $cc_basename in
7948       # old Intel for x86_64 which still supported -KPIC.
7949       ecc*)
7950         lt_prog_compiler_wl='-Wl,'
7951         lt_prog_compiler_pic='-KPIC'
7952         lt_prog_compiler_static='-static'
7953         ;;
7954       # icc used to be incompatible with GCC.
7955       # ICC 10 doesn't accept -KPIC any more.
7956       icc* | ifort*)
7957         lt_prog_compiler_wl='-Wl,'
7958         lt_prog_compiler_pic='-fPIC'
7959         lt_prog_compiler_static='-static'
7960         ;;
7961       # Lahey Fortran 8.1.
7962       lf95*)
7963         lt_prog_compiler_wl='-Wl,'
7964         lt_prog_compiler_pic='--shared'
7965         lt_prog_compiler_static='--static'
7966         ;;
7967       pgcc* | pgf77* | pgf90* | pgf95*)
7968         # Portland Group compilers (*not* the Pentium gcc compiler,
7969         # which looks to be a dead project)
7970         lt_prog_compiler_wl='-Wl,'
7971         lt_prog_compiler_pic='-fpic'
7972         lt_prog_compiler_static='-Bstatic'
7973         ;;
7974       ccc*)
7975         lt_prog_compiler_wl='-Wl,'
7976         # All Alpha code is PIC.
7977         lt_prog_compiler_static='-non_shared'
7978         ;;
7979       xl*)
7980         # IBM XL C 8.0/Fortran 10.1 on PPC
7981         lt_prog_compiler_wl='-Wl,'
7982         lt_prog_compiler_pic='-qpic'
7983         lt_prog_compiler_static='-qstaticlink'
7984         ;;
7985       *)
7986         case `$CC -V 2>&1 | sed 5q` in
7987         *Sun\ C*)
7988           # Sun C 5.9
7989           lt_prog_compiler_pic='-KPIC'
7990           lt_prog_compiler_static='-Bstatic'
7991           lt_prog_compiler_wl='-Wl,'
7992           ;;
7993         *Sun\ F*)
7994           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7995           lt_prog_compiler_pic='-KPIC'
7996           lt_prog_compiler_static='-Bstatic'
7997           lt_prog_compiler_wl=''
7998           ;;
7999         esac
8000         ;;
8001       esac
8002       ;;
8003
8004     newsos6)
8005       lt_prog_compiler_pic='-KPIC'
8006       lt_prog_compiler_static='-Bstatic'
8007       ;;
8008
8009     *nto* | *qnx*)
8010       # QNX uses GNU C++, but need to define -shared option too, otherwise
8011       # it will coredump.
8012       lt_prog_compiler_pic='-fPIC -shared'
8013       ;;
8014
8015     osf3* | osf4* | osf5*)
8016       lt_prog_compiler_wl='-Wl,'
8017       # All OSF/1 code is PIC.
8018       lt_prog_compiler_static='-non_shared'
8019       ;;
8020
8021     rdos*)
8022       lt_prog_compiler_static='-non_shared'
8023       ;;
8024
8025     solaris*)
8026       lt_prog_compiler_pic='-KPIC'
8027       lt_prog_compiler_static='-Bstatic'
8028       case $cc_basename in
8029       f77* | f90* | f95*)
8030         lt_prog_compiler_wl='-Qoption ld ';;
8031       *)
8032         lt_prog_compiler_wl='-Wl,';;
8033       esac
8034       ;;
8035
8036     sunos4*)
8037       lt_prog_compiler_wl='-Qoption ld '
8038       lt_prog_compiler_pic='-PIC'
8039       lt_prog_compiler_static='-Bstatic'
8040       ;;
8041
8042     sysv4 | sysv4.2uw2* | sysv4.3*)
8043       lt_prog_compiler_wl='-Wl,'
8044       lt_prog_compiler_pic='-KPIC'
8045       lt_prog_compiler_static='-Bstatic'
8046       ;;
8047
8048     sysv4*MP*)
8049       if test -d /usr/nec ;then
8050         lt_prog_compiler_pic='-Kconform_pic'
8051         lt_prog_compiler_static='-Bstatic'
8052       fi
8053       ;;
8054
8055     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8056       lt_prog_compiler_wl='-Wl,'
8057       lt_prog_compiler_pic='-KPIC'
8058       lt_prog_compiler_static='-Bstatic'
8059       ;;
8060
8061     unicos*)
8062       lt_prog_compiler_wl='-Wl,'
8063       lt_prog_compiler_can_build_shared=no
8064       ;;
8065
8066     uts4*)
8067       lt_prog_compiler_pic='-pic'
8068       lt_prog_compiler_static='-Bstatic'
8069       ;;
8070
8071     *)
8072       lt_prog_compiler_can_build_shared=no
8073       ;;
8074     esac
8075   fi
8076
8077 case $host_os in
8078   # For platforms which do not support PIC, -DPIC is meaningless:
8079   *djgpp*)
8080     lt_prog_compiler_pic=
8081     ;;
8082   *)
8083     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8084     ;;
8085 esac
8086 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8087 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8088
8089
8090
8091
8092
8093
8094 #
8095 # Check to make sure the PIC flag actually works.
8096 #
8097 if test -n "$lt_prog_compiler_pic"; then
8098   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8099 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8100 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103   lt_cv_prog_compiler_pic_works=no
8104    ac_outfile=conftest.$ac_objext
8105    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8106    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8107    # Insert the option either (1) after the last *FLAGS variable, or
8108    # (2) before a word containing "conftest.", or (3) at the end.
8109    # Note that $ac_compile itself does not contain backslashes and begins
8110    # with a dollar sign (not a hyphen), so the echo should work correctly.
8111    # The option is referenced via a variable to avoid confusing sed.
8112    lt_compile=`echo "$ac_compile" | $SED \
8113    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8114    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8115    -e 's:$: $lt_compiler_flag:'`
8116    (eval echo "\"\$as_me:8116: $lt_compile\"" >&5)
8117    (eval "$lt_compile" 2>conftest.err)
8118    ac_status=$?
8119    cat conftest.err >&5
8120    echo "$as_me:8120: \$? = $ac_status" >&5
8121    if (exit $ac_status) && test -s "$ac_outfile"; then
8122      # The compiler can only warn and ignore the option if not recognized
8123      # So say no if there are warnings other than the usual output.
8124      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8125      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8126      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8127        lt_cv_prog_compiler_pic_works=yes
8128      fi
8129    fi
8130    $RM conftest*
8131
8132 fi
8133 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8134 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8135
8136 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8137     case $lt_prog_compiler_pic in
8138      "" | " "*) ;;
8139      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8140      esac
8141 else
8142     lt_prog_compiler_pic=
8143      lt_prog_compiler_can_build_shared=no
8144 fi
8145
8146 fi
8147
8148
8149
8150
8151
8152
8153 #
8154 # Check to make sure the static flag actually works.
8155 #
8156 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8157 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8158 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8159 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8160   echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162   lt_cv_prog_compiler_static_works=no
8163    save_LDFLAGS="$LDFLAGS"
8164    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8165    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8166    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8167      # The linker can only warn and ignore the option if not recognized
8168      # So say no if there are warnings
8169      if test -s conftest.err; then
8170        # Append any errors to the config.log.
8171        cat conftest.err 1>&5
8172        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8173        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8174        if diff conftest.exp conftest.er2 >/dev/null; then
8175          lt_cv_prog_compiler_static_works=yes
8176        fi
8177      else
8178        lt_cv_prog_compiler_static_works=yes
8179      fi
8180    fi
8181    $RM -r conftest*
8182    LDFLAGS="$save_LDFLAGS"
8183
8184 fi
8185 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8186 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8187
8188 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8189     :
8190 else
8191     lt_prog_compiler_static=
8192 fi
8193
8194
8195
8196
8197
8198
8199
8200   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8201 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8202 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8203   echo $ECHO_N "(cached) $ECHO_C" >&6
8204 else
8205   lt_cv_prog_compiler_c_o=no
8206    $RM -r conftest 2>/dev/null
8207    mkdir conftest
8208    cd conftest
8209    mkdir out
8210    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8211
8212    lt_compiler_flag="-o out/conftest2.$ac_objext"
8213    # Insert the option either (1) after the last *FLAGS variable, or
8214    # (2) before a word containing "conftest.", or (3) at the end.
8215    # Note that $ac_compile itself does not contain backslashes and begins
8216    # with a dollar sign (not a hyphen), so the echo should work correctly.
8217    lt_compile=`echo "$ac_compile" | $SED \
8218    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8219    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8220    -e 's:$: $lt_compiler_flag:'`
8221    (eval echo "\"\$as_me:8221: $lt_compile\"" >&5)
8222    (eval "$lt_compile" 2>out/conftest.err)
8223    ac_status=$?
8224    cat out/conftest.err >&5
8225    echo "$as_me:8225: \$? = $ac_status" >&5
8226    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8227    then
8228      # The compiler can only warn and ignore the option if not recognized
8229      # So say no if there are warnings
8230      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8231      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8232      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8233        lt_cv_prog_compiler_c_o=yes
8234      fi
8235    fi
8236    chmod u+w . 2>&5
8237    $RM conftest*
8238    # SGI C++ compiler will create directory out/ii_files/ for
8239    # template instantiation
8240    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8241    $RM out/* && rmdir out
8242    cd ..
8243    $RM -r conftest
8244    $RM conftest*
8245
8246 fi
8247 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8248 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8249
8250
8251
8252
8253
8254
8255   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8256 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8257 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8258   echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260   lt_cv_prog_compiler_c_o=no
8261    $RM -r conftest 2>/dev/null
8262    mkdir conftest
8263    cd conftest
8264    mkdir out
8265    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8266
8267    lt_compiler_flag="-o out/conftest2.$ac_objext"
8268    # Insert the option either (1) after the last *FLAGS variable, or
8269    # (2) before a word containing "conftest.", or (3) at the end.
8270    # Note that $ac_compile itself does not contain backslashes and begins
8271    # with a dollar sign (not a hyphen), so the echo should work correctly.
8272    lt_compile=`echo "$ac_compile" | $SED \
8273    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8274    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8275    -e 's:$: $lt_compiler_flag:'`
8276    (eval echo "\"\$as_me:8276: $lt_compile\"" >&5)
8277    (eval "$lt_compile" 2>out/conftest.err)
8278    ac_status=$?
8279    cat out/conftest.err >&5
8280    echo "$as_me:8280: \$? = $ac_status" >&5
8281    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8282    then
8283      # The compiler can only warn and ignore the option if not recognized
8284      # So say no if there are warnings
8285      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8286      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8287      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8288        lt_cv_prog_compiler_c_o=yes
8289      fi
8290    fi
8291    chmod u+w . 2>&5
8292    $RM conftest*
8293    # SGI C++ compiler will create directory out/ii_files/ for
8294    # template instantiation
8295    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8296    $RM out/* && rmdir out
8297    cd ..
8298    $RM -r conftest
8299    $RM conftest*
8300
8301 fi
8302 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8303 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8304
8305
8306
8307
8308 hard_links="nottested"
8309 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8310   # do not overwrite the value of need_locks provided by the user
8311   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8312 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8313   hard_links=yes
8314   $RM conftest*
8315   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8316   touch conftest.a
8317   ln conftest.a conftest.b 2>&5 || hard_links=no
8318   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8319   echo "$as_me:$LINENO: result: $hard_links" >&5
8320 echo "${ECHO_T}$hard_links" >&6
8321   if test "$hard_links" = no; then
8322     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8323 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8324     need_locks=warn
8325   fi
8326 else
8327   need_locks=no
8328 fi
8329
8330
8331
8332
8333
8334
8335   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8336 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8337
8338   runpath_var=
8339   allow_undefined_flag=
8340   always_export_symbols=no
8341   archive_cmds=
8342   archive_expsym_cmds=
8343   compiler_needs_object=no
8344   enable_shared_with_static_runtimes=no
8345   export_dynamic_flag_spec=
8346   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8347   hardcode_automatic=no
8348   hardcode_direct=no
8349   hardcode_direct_absolute=no
8350   hardcode_libdir_flag_spec=
8351   hardcode_libdir_flag_spec_ld=
8352   hardcode_libdir_separator=
8353   hardcode_minus_L=no
8354   hardcode_shlibpath_var=unsupported
8355   inherit_rpath=no
8356   link_all_deplibs=unknown
8357   module_cmds=
8358   module_expsym_cmds=
8359   old_archive_from_new_cmds=
8360   old_archive_from_expsyms_cmds=
8361   thread_safe_flag_spec=
8362   whole_archive_flag_spec=
8363   # include_expsyms should be a list of space-separated symbols to be *always*
8364   # included in the symbol list
8365   include_expsyms=
8366   # exclude_expsyms can be an extended regexp of symbols to exclude
8367   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8368   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8369   # as well as any symbol that contains `d'.
8370   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8371   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8372   # platforms (ab)use it in PIC code, but their linkers get confused if
8373   # the symbol is explicitly referenced.  Since portable code cannot
8374   # rely on this symbol name, it's probably fine to never include it in
8375   # preloaded symbol tables.
8376   # Exclude shared library initialization/finalization symbols.
8377   extract_expsyms_cmds=
8378
8379   case $host_os in
8380   cygwin* | mingw* | pw32* | cegcc*)
8381     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8382     # When not using gcc, we currently assume that we are using
8383     # Microsoft Visual C++.
8384     if test "$GCC" != yes; then
8385       with_gnu_ld=no
8386     fi
8387     ;;
8388   interix*)
8389     # we just hope/assume this is gcc and not c89 (= MSVC++)
8390     with_gnu_ld=yes
8391     ;;
8392   openbsd*)
8393     with_gnu_ld=no
8394     ;;
8395   esac
8396
8397   ld_shlibs=yes
8398   if test "$with_gnu_ld" = yes; then
8399     # If archive_cmds runs LD, not CC, wlarc should be empty
8400     wlarc='${wl}'
8401
8402     # Set some defaults for GNU ld with shared library support. These
8403     # are reset later if shared libraries are not supported. Putting them
8404     # here allows them to be overridden if necessary.
8405     runpath_var=LD_RUN_PATH
8406     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8407     export_dynamic_flag_spec='${wl}--export-dynamic'
8408     # ancient GNU ld didn't support --whole-archive et. al.
8409     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8410       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8411     else
8412       whole_archive_flag_spec=
8413     fi
8414     supports_anon_versioning=no
8415     case `$LD -v 2>&1` in
8416       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8417       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8418       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8419       *\ 2.11.*) ;; # other 2.11 versions
8420       *) supports_anon_versioning=yes ;;
8421     esac
8422
8423     # See if GNU ld supports shared libraries.
8424     case $host_os in
8425     aix[3-9]*)
8426       # On AIX/PPC, the GNU linker is very broken
8427       if test "$host_cpu" != ia64; then
8428         ld_shlibs=no
8429         cat <<_LT_EOF 1>&2
8430
8431 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8432 *** to be unable to reliably create shared libraries on AIX.
8433 *** Therefore, libtool is disabling shared libraries support.  If you
8434 *** really care for shared libraries, you may want to modify your PATH
8435 *** so that a non-GNU linker is found, and then restart.
8436
8437 _LT_EOF
8438       fi
8439       ;;
8440
8441     amigaos*)
8442       case $host_cpu in
8443       powerpc)
8444             # see comment about AmigaOS4 .so support
8445             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8446             archive_expsym_cmds=''
8447         ;;
8448       m68k)
8449             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)'
8450             hardcode_libdir_flag_spec='-L$libdir'
8451             hardcode_minus_L=yes
8452         ;;
8453       esac
8454       ;;
8455
8456     beos*)
8457       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8458         allow_undefined_flag=unsupported
8459         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8460         # support --undefined.  This deserves some investigation.  FIXME
8461         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8462       else
8463         ld_shlibs=no
8464       fi
8465       ;;
8466
8467     cygwin* | mingw* | pw32* | cegcc*)
8468       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8469       # as there is no search path for DLLs.
8470       hardcode_libdir_flag_spec='-L$libdir'
8471       allow_undefined_flag=unsupported
8472       always_export_symbols=no
8473       enable_shared_with_static_runtimes=yes
8474       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8475
8476       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8477         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8478         # If the export-symbols file already is a .def file (1st line
8479         # is EXPORTS), use it as is; otherwise, prepend...
8480         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8481           cp $export_symbols $output_objdir/$soname.def;
8482         else
8483           echo EXPORTS > $output_objdir/$soname.def;
8484           cat $export_symbols >> $output_objdir/$soname.def;
8485         fi~
8486         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8487       else
8488         ld_shlibs=no
8489       fi
8490       ;;
8491
8492     interix[3-9]*)
8493       hardcode_direct=no
8494       hardcode_shlibpath_var=no
8495       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8496       export_dynamic_flag_spec='${wl}-E'
8497       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8498       # Instead, shared libraries are loaded at an image base (0x10000000 by
8499       # default) and relocated if they conflict, which is a slow very memory
8500       # consuming and fragmenting process.  To avoid this, we pick a random,
8501       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8502       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8503       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8504       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'
8505       ;;
8506
8507     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8508       tmp_diet=no
8509       if test "$host_os" = linux-dietlibc; then
8510         case $cc_basename in
8511           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8512         esac
8513       fi
8514       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8515          && test "$tmp_diet" = no
8516       then
8517         tmp_addflag=
8518         tmp_sharedflag='-shared'
8519         case $cc_basename,$host_cpu in
8520         pgcc*)                          # Portland Group C compiler
8521           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'
8522           tmp_addflag=' $pic_flag'
8523           ;;
8524         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8525           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'
8526           tmp_addflag=' $pic_flag -Mnomain' ;;
8527         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8528           tmp_addflag=' -i_dynamic' ;;
8529         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8530           tmp_addflag=' -i_dynamic -nofor_main' ;;
8531         ifc* | ifort*)                  # Intel Fortran compiler
8532           tmp_addflag=' -nofor_main' ;;
8533         lf95*)                          # Lahey Fortran 8.1
8534           whole_archive_flag_spec=
8535           tmp_sharedflag='--shared' ;;
8536         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8537           tmp_sharedflag='-qmkshrobj'
8538           tmp_addflag= ;;
8539         esac
8540         case `$CC -V 2>&1 | sed 5q` in
8541         *Sun\ C*)                       # Sun C 5.9
8542           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'
8543           compiler_needs_object=yes
8544           tmp_sharedflag='-G' ;;
8545         *Sun\ F*)                       # Sun Fortran 8.3
8546           tmp_sharedflag='-G' ;;
8547         esac
8548         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549
8550         if test "x$supports_anon_versioning" = xyes; then
8551           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8552             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8553             echo "local: *; };" >> $output_objdir/$libname.ver~
8554             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8555         fi
8556
8557         case $cc_basename in
8558         xlf*)
8559           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8560           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8561           hardcode_libdir_flag_spec=
8562           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8563           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8564           if test "x$supports_anon_versioning" = xyes; then
8565             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8566               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8567               echo "local: *; };" >> $output_objdir/$libname.ver~
8568               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8569           fi
8570           ;;
8571         esac
8572       else
8573         ld_shlibs=no
8574       fi
8575       ;;
8576
8577     netbsd*)
8578       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8579         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8580         wlarc=
8581       else
8582         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8583         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8584       fi
8585       ;;
8586
8587     solaris*)
8588       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8589         ld_shlibs=no
8590         cat <<_LT_EOF 1>&2
8591
8592 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8593 *** create shared libraries on Solaris systems.  Therefore, libtool
8594 *** is disabling shared libraries support.  We urge you to upgrade GNU
8595 *** binutils to release 2.9.1 or newer.  Another option is to modify
8596 *** your PATH or compiler configuration so that the native linker is
8597 *** used, and then restart.
8598
8599 _LT_EOF
8600       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8601         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8602         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8603       else
8604         ld_shlibs=no
8605       fi
8606       ;;
8607
8608     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8609       case `$LD -v 2>&1` in
8610         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8611         ld_shlibs=no
8612         cat <<_LT_EOF 1>&2
8613
8614 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8615 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8616 *** is disabling shared libraries support.  We urge you to upgrade GNU
8617 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8618 *** your PATH or compiler configuration so that the native linker is
8619 *** used, and then restart.
8620
8621 _LT_EOF
8622         ;;
8623         *)
8624           # For security reasons, it is highly recommended that you always
8625           # use absolute paths for naming shared libraries, and exclude the
8626           # DT_RUNPATH tag from executables and libraries.  But doing so
8627           # requires that you compile everything twice, which is a pain.
8628           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8629             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8630             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8631             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8632           else
8633             ld_shlibs=no
8634           fi
8635         ;;
8636       esac
8637       ;;
8638
8639     sunos4*)
8640       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8641       wlarc=
8642       hardcode_direct=yes
8643       hardcode_shlibpath_var=no
8644       ;;
8645
8646     *)
8647       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8648         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8649         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8650       else
8651         ld_shlibs=no
8652       fi
8653       ;;
8654     esac
8655
8656     if test "$ld_shlibs" = no; then
8657       runpath_var=
8658       hardcode_libdir_flag_spec=
8659       export_dynamic_flag_spec=
8660       whole_archive_flag_spec=
8661     fi
8662   else
8663     # PORTME fill in a description of your system's linker (not GNU ld)
8664     case $host_os in
8665     aix3*)
8666       allow_undefined_flag=unsupported
8667       always_export_symbols=yes
8668       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'
8669       # Note: this linker hardcodes the directories in LIBPATH if there
8670       # are no directories specified by -L.
8671       hardcode_minus_L=yes
8672       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8673         # Neither direct hardcoding nor static linking is supported with a
8674         # broken collect2.
8675         hardcode_direct=unsupported
8676       fi
8677       ;;
8678
8679     aix[4-9]*)
8680       if test "$host_cpu" = ia64; then
8681         # On IA64, the linker does run time linking by default, so we don't
8682         # have to do anything special.
8683         aix_use_runtimelinking=no
8684         exp_sym_flag='-Bexport'
8685         no_entry_flag=""
8686       else
8687         # If we're using GNU nm, then we don't want the "-C" option.
8688         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8689         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8690           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'
8691         else
8692           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'
8693         fi
8694         aix_use_runtimelinking=no
8695
8696         # Test if we are trying to use run time linking or normal
8697         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8698         # need to do runtime linking.
8699         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8700           for ld_flag in $LDFLAGS; do
8701           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8702             aix_use_runtimelinking=yes
8703             break
8704           fi
8705           done
8706           ;;
8707         esac
8708
8709         exp_sym_flag='-bexport'
8710         no_entry_flag='-bnoentry'
8711       fi
8712
8713       # When large executables or shared objects are built, AIX ld can
8714       # have problems creating the table of contents.  If linking a library
8715       # or program results in "error TOC overflow" add -mminimal-toc to
8716       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8717       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8718
8719       archive_cmds=''
8720       hardcode_direct=yes
8721       hardcode_direct_absolute=yes
8722       hardcode_libdir_separator=':'
8723       link_all_deplibs=yes
8724       file_list_spec='${wl}-f,'
8725
8726       if test "$GCC" = yes; then
8727         case $host_os in aix4.[012]|aix4.[012].*)
8728         # We only want to do this on AIX 4.2 and lower, the check
8729         # below for broken collect2 doesn't work under 4.3+
8730           collect2name=`${CC} -print-prog-name=collect2`
8731           if test -f "$collect2name" &&
8732            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8733           then
8734           # We have reworked collect2
8735           :
8736           else
8737           # We have old collect2
8738           hardcode_direct=unsupported
8739           # It fails to find uninstalled libraries when the uninstalled
8740           # path is not listed in the libpath.  Setting hardcode_minus_L
8741           # to unsupported forces relinking
8742           hardcode_minus_L=yes
8743           hardcode_libdir_flag_spec='-L$libdir'
8744           hardcode_libdir_separator=
8745           fi
8746           ;;
8747         esac
8748         shared_flag='-shared'
8749         if test "$aix_use_runtimelinking" = yes; then
8750           shared_flag="$shared_flag "'${wl}-G'
8751         fi
8752       else
8753         # not using gcc
8754         if test "$host_cpu" = ia64; then
8755         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8756         # chokes on -Wl,-G. The following line is correct:
8757           shared_flag='-G'
8758         else
8759           if test "$aix_use_runtimelinking" = yes; then
8760             shared_flag='${wl}-G'
8761           else
8762             shared_flag='${wl}-bM:SRE'
8763           fi
8764         fi
8765       fi
8766
8767       export_dynamic_flag_spec='${wl}-bexpall'
8768       # It seems that -bexpall does not export symbols beginning with
8769       # underscore (_), so it is better to generate a list of symbols to export.
8770       always_export_symbols=yes
8771       if test "$aix_use_runtimelinking" = yes; then
8772         # Warning - without using the other runtime loading flags (-brtl),
8773         # -berok will link without error, but may produce a broken library.
8774         allow_undefined_flag='-berok'
8775         # Determine the default libpath from the value encoded in an
8776         # empty executable.
8777         cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783
8784 int
8785 main ()
8786 {
8787
8788   ;
8789   return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext conftest$ac_exeext
8793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8794   (eval $ac_link) 2>conftest.er1
8795   ac_status=$?
8796   grep -v '^ *+' conftest.er1 >conftest.err
8797   rm -f conftest.er1
8798   cat conftest.err >&5
8799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800   (exit $ac_status); } &&
8801          { ac_try='test -z "$ac_c_werror_flag"
8802                          || test ! -s conftest.err'
8803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804   (eval $ac_try) 2>&5
8805   ac_status=$?
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); }; } &&
8808          { ac_try='test -s conftest$ac_exeext'
8809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810   (eval $ac_try) 2>&5
8811   ac_status=$?
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); }; }; then
8814
8815 lt_aix_libpath_sed='
8816     /Import File Strings/,/^$/ {
8817         /^0/ {
8818             s/^0  *\(.*\)$/\1/
8819             p
8820         }
8821     }'
8822 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8823 # Check for a 64-bit object if we didn't find anything.
8824 if test -z "$aix_libpath"; then
8825   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8826 fi
8827 else
8828   echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831 fi
8832 rm -f conftest.err conftest.$ac_objext \
8833       conftest$ac_exeext conftest.$ac_ext
8834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8835
8836         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8837         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"
8838       else
8839         if test "$host_cpu" = ia64; then
8840           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8841           allow_undefined_flag="-z nodefs"
8842           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"
8843         else
8844          # Determine the default libpath from the value encoded in an
8845          # empty executable.
8846          cat >conftest.$ac_ext <<_ACEOF
8847 /* confdefs.h.  */
8848 _ACEOF
8849 cat confdefs.h >>conftest.$ac_ext
8850 cat >>conftest.$ac_ext <<_ACEOF
8851 /* end confdefs.h.  */
8852
8853 int
8854 main ()
8855 {
8856
8857   ;
8858   return 0;
8859 }
8860 _ACEOF
8861 rm -f conftest.$ac_objext conftest$ac_exeext
8862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863   (eval $ac_link) 2>conftest.er1
8864   ac_status=$?
8865   grep -v '^ *+' conftest.er1 >conftest.err
8866   rm -f conftest.er1
8867   cat conftest.err >&5
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); } &&
8870          { ac_try='test -z "$ac_c_werror_flag"
8871                          || test ! -s conftest.err'
8872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873   (eval $ac_try) 2>&5
8874   ac_status=$?
8875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876   (exit $ac_status); }; } &&
8877          { ac_try='test -s conftest$ac_exeext'
8878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8879   (eval $ac_try) 2>&5
8880   ac_status=$?
8881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882   (exit $ac_status); }; }; then
8883
8884 lt_aix_libpath_sed='
8885     /Import File Strings/,/^$/ {
8886         /^0/ {
8887             s/^0  *\(.*\)$/\1/
8888             p
8889         }
8890     }'
8891 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892 # Check for a 64-bit object if we didn't find anything.
8893 if test -z "$aix_libpath"; then
8894   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8895 fi
8896 else
8897   echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8899
8900 fi
8901 rm -f conftest.err conftest.$ac_objext \
8902       conftest$ac_exeext conftest.$ac_ext
8903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8904
8905          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8906           # Warning - without using the other run time loading flags,
8907           # -berok will link without error, but may produce a broken library.
8908           no_undefined_flag=' ${wl}-bernotok'
8909           allow_undefined_flag=' ${wl}-berok'
8910           # Exported symbols can be pulled into shared objects from archives
8911           whole_archive_flag_spec='$convenience'
8912           archive_cmds_need_lc=yes
8913           # This is similar to how AIX traditionally builds its shared libraries.
8914           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'
8915         fi
8916       fi
8917       ;;
8918
8919     amigaos*)
8920       case $host_cpu in
8921       powerpc)
8922             # see comment about AmigaOS4 .so support
8923             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924             archive_expsym_cmds=''
8925         ;;
8926       m68k)
8927             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)'
8928             hardcode_libdir_flag_spec='-L$libdir'
8929             hardcode_minus_L=yes
8930         ;;
8931       esac
8932       ;;
8933
8934     bsdi[45]*)
8935       export_dynamic_flag_spec=-rdynamic
8936       ;;
8937
8938     cygwin* | mingw* | pw32* | cegcc*)
8939       # When not using gcc, we currently assume that we are using
8940       # Microsoft Visual C++.
8941       # hardcode_libdir_flag_spec is actually meaningless, as there is
8942       # no search path for DLLs.
8943       hardcode_libdir_flag_spec=' '
8944       allow_undefined_flag=unsupported
8945       # Tell ltmain to make .lib files, not .a files.
8946       libext=lib
8947       # Tell ltmain to make .dll files, not .so files.
8948       shrext_cmds=".dll"
8949       # FIXME: Setting linknames here is a bad hack.
8950       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8951       # The linker will automatically build a .lib file if we build a DLL.
8952       old_archive_from_new_cmds='true'
8953       # FIXME: Should let the user specify the lib program.
8954       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8955       fix_srcfile_path='`cygpath -w "$srcfile"`'
8956       enable_shared_with_static_runtimes=yes
8957       ;;
8958
8959     darwin* | rhapsody*)
8960
8961
8962   archive_cmds_need_lc=no
8963   hardcode_direct=no
8964   hardcode_automatic=yes
8965   hardcode_shlibpath_var=unsupported
8966   whole_archive_flag_spec=''
8967   link_all_deplibs=yes
8968   allow_undefined_flag="$_lt_dar_allow_undefined"
8969   case $cc_basename in
8970      ifort*) _lt_dar_can_shared=yes ;;
8971      *) _lt_dar_can_shared=$GCC ;;
8972   esac
8973   if test "$_lt_dar_can_shared" = "yes"; then
8974     output_verbose_link_cmd=echo
8975     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8976     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8977     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}"
8978     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}"
8979
8980   else
8981   ld_shlibs=no
8982   fi
8983
8984       ;;
8985
8986     dgux*)
8987       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988       hardcode_libdir_flag_spec='-L$libdir'
8989       hardcode_shlibpath_var=no
8990       ;;
8991
8992     freebsd1*)
8993       ld_shlibs=no
8994       ;;
8995
8996     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8997     # support.  Future versions do this automatically, but an explicit c++rt0.o
8998     # does not break anything, and helps significantly (at the cost of a little
8999     # extra space).
9000     freebsd2.2*)
9001       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9002       hardcode_libdir_flag_spec='-R$libdir'
9003       hardcode_direct=yes
9004       hardcode_shlibpath_var=no
9005       ;;
9006
9007     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9008     freebsd2*)
9009       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9010       hardcode_direct=yes
9011       hardcode_minus_L=yes
9012       hardcode_shlibpath_var=no
9013       ;;
9014
9015     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9016     freebsd* | dragonfly*)
9017       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9018       hardcode_libdir_flag_spec='-R$libdir'
9019       hardcode_direct=yes
9020       hardcode_shlibpath_var=no
9021       ;;
9022
9023     hpux9*)
9024       if test "$GCC" = yes; then
9025         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'
9026       else
9027         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'
9028       fi
9029       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9030       hardcode_libdir_separator=:
9031       hardcode_direct=yes
9032
9033       # hardcode_minus_L: Not really in the search PATH,
9034       # but as the default location of the library.
9035       hardcode_minus_L=yes
9036       export_dynamic_flag_spec='${wl}-E'
9037       ;;
9038
9039     hpux10*)
9040       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9041         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9042       else
9043         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9044       fi
9045       if test "$with_gnu_ld" = no; then
9046         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9047         hardcode_libdir_flag_spec_ld='+b $libdir'
9048         hardcode_libdir_separator=:
9049         hardcode_direct=yes
9050         hardcode_direct_absolute=yes
9051         export_dynamic_flag_spec='${wl}-E'
9052         # hardcode_minus_L: Not really in the search PATH,
9053         # but as the default location of the library.
9054         hardcode_minus_L=yes
9055       fi
9056       ;;
9057
9058     hpux11*)
9059       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9060         case $host_cpu in
9061         hppa*64*)
9062           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9063           ;;
9064         ia64*)
9065           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9066           ;;
9067         *)
9068           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9069           ;;
9070         esac
9071       else
9072         case $host_cpu in
9073         hppa*64*)
9074           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9075           ;;
9076         ia64*)
9077           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9078           ;;
9079         *)
9080           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9081           ;;
9082         esac
9083       fi
9084       if test "$with_gnu_ld" = no; then
9085         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9086         hardcode_libdir_separator=:
9087
9088         case $host_cpu in
9089         hppa*64*|ia64*)
9090           hardcode_direct=no
9091           hardcode_shlibpath_var=no
9092           ;;
9093         *)
9094           hardcode_direct=yes
9095           hardcode_direct_absolute=yes
9096           export_dynamic_flag_spec='${wl}-E'
9097
9098           # hardcode_minus_L: Not really in the search PATH,
9099           # but as the default location of the library.
9100           hardcode_minus_L=yes
9101           ;;
9102         esac
9103       fi
9104       ;;
9105
9106     irix5* | irix6* | nonstopux*)
9107       if test "$GCC" = yes; then
9108         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'
9109         # Try to use the -exported_symbol ld option, if it does not
9110         # work, assume that -exports_file does not work either and
9111         # implicitly export all symbols.
9112         save_LDFLAGS="$LDFLAGS"
9113         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9114         cat >conftest.$ac_ext <<_ACEOF
9115 int foo(void) {}
9116 _ACEOF
9117 rm -f conftest.$ac_objext conftest$ac_exeext
9118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9119   (eval $ac_link) 2>conftest.er1
9120   ac_status=$?
9121   grep -v '^ *+' conftest.er1 >conftest.err
9122   rm -f conftest.er1
9123   cat conftest.err >&5
9124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125   (exit $ac_status); } &&
9126          { ac_try='test -z "$ac_c_werror_flag"
9127                          || test ! -s conftest.err'
9128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129   (eval $ac_try) 2>&5
9130   ac_status=$?
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); }; } &&
9133          { ac_try='test -s conftest$ac_exeext'
9134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135   (eval $ac_try) 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); }; }; then
9139   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'
9140
9141 else
9142   echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9144
9145 fi
9146 rm -f conftest.err conftest.$ac_objext \
9147       conftest$ac_exeext conftest.$ac_ext
9148         LDFLAGS="$save_LDFLAGS"
9149       else
9150         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'
9151         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'
9152       fi
9153       archive_cmds_need_lc='no'
9154       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9155       hardcode_libdir_separator=:
9156       inherit_rpath=yes
9157       link_all_deplibs=yes
9158       ;;
9159
9160     netbsd*)
9161       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9162         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9163       else
9164         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9165       fi
9166       hardcode_libdir_flag_spec='-R$libdir'
9167       hardcode_direct=yes
9168       hardcode_shlibpath_var=no
9169       ;;
9170
9171     newsos6)
9172       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9173       hardcode_direct=yes
9174       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175       hardcode_libdir_separator=:
9176       hardcode_shlibpath_var=no
9177       ;;
9178
9179     *nto* | *qnx*)
9180       ;;
9181
9182     openbsd*)
9183       if test -f /usr/libexec/ld.so; then
9184         hardcode_direct=yes
9185         hardcode_shlibpath_var=no
9186         hardcode_direct_absolute=yes
9187         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9188           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9189           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9190           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9191           export_dynamic_flag_spec='${wl}-E'
9192         else
9193           case $host_os in
9194            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9195              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9196              hardcode_libdir_flag_spec='-R$libdir'
9197              ;;
9198            *)
9199              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9200              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9201              ;;
9202           esac
9203         fi
9204       else
9205         ld_shlibs=no
9206       fi
9207       ;;
9208
9209     os2*)
9210       hardcode_libdir_flag_spec='-L$libdir'
9211       hardcode_minus_L=yes
9212       allow_undefined_flag=unsupported
9213       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'
9214       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9215       ;;
9216
9217     osf3*)
9218       if test "$GCC" = yes; then
9219         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9220         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'
9221       else
9222         allow_undefined_flag=' -expect_unresolved \*'
9223         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'
9224       fi
9225       archive_cmds_need_lc='no'
9226       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227       hardcode_libdir_separator=:
9228       ;;
9229
9230     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9231       if test "$GCC" = yes; then
9232         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9233         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'
9234         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9235       else
9236         allow_undefined_flag=' -expect_unresolved \*'
9237         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'
9238         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~
9239         $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'
9240
9241         # Both c and cxx compiler support -rpath directly
9242         hardcode_libdir_flag_spec='-rpath $libdir'
9243       fi
9244       archive_cmds_need_lc='no'
9245       hardcode_libdir_separator=:
9246       ;;
9247
9248     solaris*)
9249       no_undefined_flag=' -z defs'
9250       if test "$GCC" = yes; then
9251         wlarc='${wl}'
9252         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9253         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9254           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9255       else
9256         case `$CC -V 2>&1` in
9257         *"Compilers 5.0"*)
9258           wlarc=''
9259           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9260           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9261           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9262           ;;
9263         *)
9264           wlarc='${wl}'
9265           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9266           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9267           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9268           ;;
9269         esac
9270       fi
9271       hardcode_libdir_flag_spec='-R$libdir'
9272       hardcode_shlibpath_var=no
9273       case $host_os in
9274       solaris2.[0-5] | solaris2.[0-5].*) ;;
9275       *)
9276         # The compiler driver will combine and reorder linker options,
9277         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9278         # but is careful enough not to reorder.
9279         # Supported since Solaris 2.6 (maybe 2.5.1?)
9280         if test "$GCC" = yes; then
9281           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9282         else
9283           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9284         fi
9285         ;;
9286       esac
9287       link_all_deplibs=yes
9288       ;;
9289
9290     sunos4*)
9291       if test "x$host_vendor" = xsequent; then
9292         # Use $CC to link under sequent, because it throws in some extra .o
9293         # files that make .init and .fini sections work.
9294         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9295       else
9296         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9297       fi
9298       hardcode_libdir_flag_spec='-L$libdir'
9299       hardcode_direct=yes
9300       hardcode_minus_L=yes
9301       hardcode_shlibpath_var=no
9302       ;;
9303
9304     sysv4)
9305       case $host_vendor in
9306         sni)
9307           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9308           hardcode_direct=yes # is this really true???
9309         ;;
9310         siemens)
9311           ## LD is ld it makes a PLAMLIB
9312           ## CC just makes a GrossModule.
9313           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9314           reload_cmds='$CC -r -o $output$reload_objs'
9315           hardcode_direct=no
9316         ;;
9317         motorola)
9318           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9320         ;;
9321       esac
9322       runpath_var='LD_RUN_PATH'
9323       hardcode_shlibpath_var=no
9324       ;;
9325
9326     sysv4.3*)
9327       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328       hardcode_shlibpath_var=no
9329       export_dynamic_flag_spec='-Bexport'
9330       ;;
9331
9332     sysv4*MP*)
9333       if test -d /usr/nec; then
9334         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9335         hardcode_shlibpath_var=no
9336         runpath_var=LD_RUN_PATH
9337         hardcode_runpath_var=yes
9338         ld_shlibs=yes
9339       fi
9340       ;;
9341
9342     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9343       no_undefined_flag='${wl}-z,text'
9344       archive_cmds_need_lc=no
9345       hardcode_shlibpath_var=no
9346       runpath_var='LD_RUN_PATH'
9347
9348       if test "$GCC" = yes; then
9349         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9350         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351       else
9352         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354       fi
9355       ;;
9356
9357     sysv5* | sco3.2v5* | sco5v6*)
9358       # Note: We can NOT use -z defs as we might desire, because we do not
9359       # link with -lc, and that would cause any symbols used from libc to
9360       # always be unresolved, which means just about no library would
9361       # ever link correctly.  If we're not using GNU ld we use -z text
9362       # though, which does catch some bad symbols but isn't as heavy-handed
9363       # as -z defs.
9364       no_undefined_flag='${wl}-z,text'
9365       allow_undefined_flag='${wl}-z,nodefs'
9366       archive_cmds_need_lc=no
9367       hardcode_shlibpath_var=no
9368       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9369       hardcode_libdir_separator=':'
9370       link_all_deplibs=yes
9371       export_dynamic_flag_spec='${wl}-Bexport'
9372       runpath_var='LD_RUN_PATH'
9373
9374       if test "$GCC" = yes; then
9375         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9376         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377       else
9378         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380       fi
9381       ;;
9382
9383     uts4*)
9384       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9385       hardcode_libdir_flag_spec='-L$libdir'
9386       hardcode_shlibpath_var=no
9387       ;;
9388
9389     *)
9390       ld_shlibs=no
9391       ;;
9392     esac
9393
9394     if test x$host_vendor = xsni; then
9395       case $host in
9396       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9397         export_dynamic_flag_spec='${wl}-Blargedynsym'
9398         ;;
9399       esac
9400     fi
9401   fi
9402
9403 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9404 echo "${ECHO_T}$ld_shlibs" >&6
9405 test "$ld_shlibs" = no && can_build_shared=no
9406
9407 with_gnu_ld=$with_gnu_ld
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423 #
9424 # Do we need to explicitly link libc?
9425 #
9426 case "x$archive_cmds_need_lc" in
9427 x|xyes)
9428   # Assume -lc should be added
9429   archive_cmds_need_lc=yes
9430
9431   if test "$enable_shared" = yes && test "$GCC" = yes; then
9432     case $archive_cmds in
9433     *'~'*)
9434       # FIXME: we may have to deal with multi-command sequences.
9435       ;;
9436     '$CC '*)
9437       # Test whether the compiler implicitly links with -lc since on some
9438       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9439       # to ld, don't add -lc before -lgcc.
9440       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9441 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9442 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9443   echo $ECHO_N "(cached) $ECHO_C" >&6
9444 else
9445   $RM conftest*
9446         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9447
9448         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9449   (eval $ac_compile) 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); } 2>conftest.err; then
9453           soname=conftest
9454           lib=conftest
9455           libobjs=conftest.$ac_objext
9456           deplibs=
9457           wl=$lt_prog_compiler_wl
9458           pic_flag=$lt_prog_compiler_pic
9459           compiler_flags=-v
9460           linker_flags=-v
9461           verstring=
9462           output_objdir=.
9463           libname=conftest
9464           lt_save_allow_undefined_flag=$allow_undefined_flag
9465           allow_undefined_flag=
9466           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9467   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9468   ac_status=$?
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); }
9471           then
9472             lt_cv_archive_cmds_need_lc=no
9473           else
9474             lt_cv_archive_cmds_need_lc=yes
9475           fi
9476           allow_undefined_flag=$lt_save_allow_undefined_flag
9477         else
9478           cat conftest.err 1>&5
9479         fi
9480         $RM conftest*
9481
9482 fi
9483 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9484 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9485       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9486       ;;
9487     esac
9488   fi
9489   ;;
9490 esac
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9649 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9650
9651 if test "$GCC" = yes; then
9652   case $host_os in
9653     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9654     *) lt_awk_arg="/^libraries:/" ;;
9655   esac
9656   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9657   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9658     # if the path contains ";" then we assume it to be the separator
9659     # otherwise default to the standard path separator (i.e. ":") - it is
9660     # assumed that no part of a normal pathname contains ";" but that should
9661     # okay in the real world where ";" in dirpaths is itself problematic.
9662     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9663   else
9664     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9665   fi
9666   # Ok, now we have the path, separated by spaces, we can step through it
9667   # and add multilib dir if necessary.
9668   lt_tmp_lt_search_path_spec=
9669   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9670   for lt_sys_path in $lt_search_path_spec; do
9671     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9672       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9673     else
9674       test -d "$lt_sys_path" && \
9675         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9676     fi
9677   done
9678   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9679 BEGIN {RS=" "; FS="/|\n";} {
9680   lt_foo="";
9681   lt_count=0;
9682   for (lt_i = NF; lt_i > 0; lt_i--) {
9683     if ($lt_i != "" && $lt_i != ".") {
9684       if ($lt_i == "..") {
9685         lt_count++;
9686       } else {
9687         if (lt_count == 0) {
9688           lt_foo="/" $lt_i lt_foo;
9689         } else {
9690           lt_count--;
9691         }
9692       }
9693     }
9694   }
9695   if (lt_foo != "") { lt_freq[lt_foo]++; }
9696   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9697 }'`
9698   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9699 else
9700   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9701 fi
9702 library_names_spec=
9703 libname_spec='lib$name'
9704 soname_spec=
9705 shrext_cmds=".so"
9706 postinstall_cmds=
9707 postuninstall_cmds=
9708 finish_cmds=
9709 finish_eval=
9710 shlibpath_var=
9711 shlibpath_overrides_runpath=unknown
9712 version_type=none
9713 dynamic_linker="$host_os ld.so"
9714 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9715 need_lib_prefix=unknown
9716 hardcode_into_libs=no
9717
9718 # when you set need_version to no, make sure it does not cause -set_version
9719 # flags to be left without arguments
9720 need_version=unknown
9721
9722 case $host_os in
9723 aix3*)
9724   version_type=linux
9725   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9726   shlibpath_var=LIBPATH
9727
9728   # AIX 3 has no versioning support, so we append a major version to the name.
9729   soname_spec='${libname}${release}${shared_ext}$major'
9730   ;;
9731
9732 aix[4-9]*)
9733   version_type=linux
9734   need_lib_prefix=no
9735   need_version=no
9736   hardcode_into_libs=yes
9737   if test "$host_cpu" = ia64; then
9738     # AIX 5 supports IA64
9739     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9740     shlibpath_var=LD_LIBRARY_PATH
9741   else
9742     # With GCC up to 2.95.x, collect2 would create an import file
9743     # for dependence libraries.  The import file would start with
9744     # the line `#! .'.  This would cause the generated library to
9745     # depend on `.', always an invalid library.  This was fixed in
9746     # development snapshots of GCC prior to 3.0.
9747     case $host_os in
9748       aix4 | aix4.[01] | aix4.[01].*)
9749       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9750            echo ' yes '
9751            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9752         :
9753       else
9754         can_build_shared=no
9755       fi
9756       ;;
9757     esac
9758     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9759     # soname into executable. Probably we can add versioning support to
9760     # collect2, so additional links can be useful in future.
9761     if test "$aix_use_runtimelinking" = yes; then
9762       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9763       # instead of lib<name>.a to let people know that these are not
9764       # typical AIX shared libraries.
9765       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766     else
9767       # We preserve .a as extension for shared libraries through AIX4.2
9768       # and later when we are not doing run time linking.
9769       library_names_spec='${libname}${release}.a $libname.a'
9770       soname_spec='${libname}${release}${shared_ext}$major'
9771     fi
9772     shlibpath_var=LIBPATH
9773   fi
9774   ;;
9775
9776 amigaos*)
9777   case $host_cpu in
9778   powerpc)
9779     # Since July 2007 AmigaOS4 officially supports .so libraries.
9780     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9781     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782     ;;
9783   m68k)
9784     library_names_spec='$libname.ixlibrary $libname.a'
9785     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9786     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'
9787     ;;
9788   esac
9789   ;;
9790
9791 beos*)
9792   library_names_spec='${libname}${shared_ext}'
9793   dynamic_linker="$host_os ld.so"
9794   shlibpath_var=LIBRARY_PATH
9795   ;;
9796
9797 bsdi[45]*)
9798   version_type=linux
9799   need_version=no
9800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801   soname_spec='${libname}${release}${shared_ext}$major'
9802   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9803   shlibpath_var=LD_LIBRARY_PATH
9804   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9805   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9806   # the default ld.so.conf also contains /usr/contrib/lib and
9807   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9808   # libtool to hard-code these into programs
9809   ;;
9810
9811 cygwin* | mingw* | pw32* | cegcc*)
9812   version_type=windows
9813   shrext_cmds=".dll"
9814   need_version=no
9815   need_lib_prefix=no
9816
9817   case $GCC,$host_os in
9818   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9819     library_names_spec='$libname.dll.a'
9820     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9821     postinstall_cmds='base_file=`basename \${file}`~
9822       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9823       dldir=$destdir/`dirname \$dlpath`~
9824       test -d \$dldir || mkdir -p \$dldir~
9825       $install_prog $dir/$dlname \$dldir/$dlname~
9826       chmod a+x \$dldir/$dlname~
9827       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9828         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9829       fi'
9830     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9831       dlpath=$dir/\$dldll~
9832        $RM \$dlpath'
9833     shlibpath_overrides_runpath=yes
9834
9835     case $host_os in
9836     cygwin*)
9837       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9838       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9839       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9840       ;;
9841     mingw* | cegcc*)
9842       # MinGW DLLs use traditional 'lib' prefix
9843       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9844       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9845       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9846         # It is most probably a Windows format PATH printed by
9847         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9848         # path with ; separators, and with drive letters. We can handle the
9849         # drive letters (cygwin fileutils understands them), so leave them,
9850         # especially as we might pass files found there to a mingw objdump,
9851         # which wouldn't understand a cygwinified path. Ahh.
9852         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9853       else
9854         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9855       fi
9856       ;;
9857     pw32*)
9858       # pw32 DLLs use 'pw' prefix rather than 'lib'
9859       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9860       ;;
9861     esac
9862     ;;
9863
9864   *)
9865     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9866     ;;
9867   esac
9868   dynamic_linker='Win32 ld.exe'
9869   # FIXME: first we should search . and the directory the executable is in
9870   shlibpath_var=PATH
9871   ;;
9872
9873 darwin* | rhapsody*)
9874   dynamic_linker="$host_os dyld"
9875   version_type=darwin
9876   need_lib_prefix=no
9877   need_version=no
9878   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9879   soname_spec='${libname}${release}${major}$shared_ext'
9880   shlibpath_overrides_runpath=yes
9881   shlibpath_var=DYLD_LIBRARY_PATH
9882   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9883
9884   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9885   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9886   ;;
9887
9888 dgux*)
9889   version_type=linux
9890   need_lib_prefix=no
9891   need_version=no
9892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9893   soname_spec='${libname}${release}${shared_ext}$major'
9894   shlibpath_var=LD_LIBRARY_PATH
9895   ;;
9896
9897 freebsd1*)
9898   dynamic_linker=no
9899   ;;
9900
9901 freebsd* | dragonfly*)
9902   # DragonFly does not have aout.  When/if they implement a new
9903   # versioning mechanism, adjust this.
9904   if test -x /usr/bin/objformat; then
9905     objformat=`/usr/bin/objformat`
9906   else
9907     case $host_os in
9908     freebsd[123]*) objformat=aout ;;
9909     *) objformat=elf ;;
9910     esac
9911   fi
9912   version_type=freebsd-$objformat
9913   case $version_type in
9914     freebsd-elf*)
9915       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9916       need_version=no
9917       need_lib_prefix=no
9918       ;;
9919     freebsd-*)
9920       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9921       need_version=yes
9922       ;;
9923   esac
9924   shlibpath_var=LD_LIBRARY_PATH
9925   case $host_os in
9926   freebsd2*)
9927     shlibpath_overrides_runpath=yes
9928     ;;
9929   freebsd3.[01]* | freebsdelf3.[01]*)
9930     shlibpath_overrides_runpath=yes
9931     hardcode_into_libs=yes
9932     ;;
9933   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9934   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9935     shlibpath_overrides_runpath=no
9936     hardcode_into_libs=yes
9937     ;;
9938   *) # from 4.6 on, and DragonFly
9939     shlibpath_overrides_runpath=yes
9940     hardcode_into_libs=yes
9941     ;;
9942   esac
9943   ;;
9944
9945 gnu*)
9946   version_type=linux
9947   need_lib_prefix=no
9948   need_version=no
9949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9950   soname_spec='${libname}${release}${shared_ext}$major'
9951   shlibpath_var=LD_LIBRARY_PATH
9952   hardcode_into_libs=yes
9953   ;;
9954
9955 hpux9* | hpux10* | hpux11*)
9956   # Give a soname corresponding to the major version so that dld.sl refuses to
9957   # link against other versions.
9958   version_type=sunos
9959   need_lib_prefix=no
9960   need_version=no
9961   case $host_cpu in
9962   ia64*)
9963     shrext_cmds='.so'
9964     hardcode_into_libs=yes
9965     dynamic_linker="$host_os dld.so"
9966     shlibpath_var=LD_LIBRARY_PATH
9967     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969     soname_spec='${libname}${release}${shared_ext}$major'
9970     if test "X$HPUX_IA64_MODE" = X32; then
9971       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9972     else
9973       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9974     fi
9975     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9976     ;;
9977   hppa*64*)
9978     shrext_cmds='.sl'
9979     hardcode_into_libs=yes
9980     dynamic_linker="$host_os dld.sl"
9981     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9982     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9983     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984     soname_spec='${libname}${release}${shared_ext}$major'
9985     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9986     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9987     ;;
9988   *)
9989     shrext_cmds='.sl'
9990     dynamic_linker="$host_os dld.sl"
9991     shlibpath_var=SHLIB_PATH
9992     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9993     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9994     soname_spec='${libname}${release}${shared_ext}$major'
9995     ;;
9996   esac
9997   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9998   postinstall_cmds='chmod 555 $lib'
9999   ;;
10000
10001 interix[3-9]*)
10002   version_type=linux
10003   need_lib_prefix=no
10004   need_version=no
10005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10006   soname_spec='${libname}${release}${shared_ext}$major'
10007   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10008   shlibpath_var=LD_LIBRARY_PATH
10009   shlibpath_overrides_runpath=no
10010   hardcode_into_libs=yes
10011   ;;
10012
10013 irix5* | irix6* | nonstopux*)
10014   case $host_os in
10015     nonstopux*) version_type=nonstopux ;;
10016     *)
10017         if test "$lt_cv_prog_gnu_ld" = yes; then
10018                 version_type=linux
10019         else
10020                 version_type=irix
10021         fi ;;
10022   esac
10023   need_lib_prefix=no
10024   need_version=no
10025   soname_spec='${libname}${release}${shared_ext}$major'
10026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10027   case $host_os in
10028   irix5* | nonstopux*)
10029     libsuff= shlibsuff=
10030     ;;
10031   *)
10032     case $LD in # libtool.m4 will add one of these switches to LD
10033     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10034       libsuff= shlibsuff= libmagic=32-bit;;
10035     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10036       libsuff=32 shlibsuff=N32 libmagic=N32;;
10037     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10038       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10039     *) libsuff= shlibsuff= libmagic=never-match;;
10040     esac
10041     ;;
10042   esac
10043   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10044   shlibpath_overrides_runpath=no
10045   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10046   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10047   hardcode_into_libs=yes
10048   ;;
10049
10050 # No shared lib support for Linux oldld, aout, or coff.
10051 linux*oldld* | linux*aout* | linux*coff*)
10052   dynamic_linker=no
10053   ;;
10054
10055 # This must be Linux ELF.
10056 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10057   version_type=linux
10058   need_lib_prefix=no
10059   need_version=no
10060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061   soname_spec='${libname}${release}${shared_ext}$major'
10062   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10063   shlibpath_var=LD_LIBRARY_PATH
10064   shlibpath_overrides_runpath=no
10065
10066   # Some binutils ld are patched to set DT_RUNPATH
10067   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10068   echo $ECHO_N "(cached) $ECHO_C" >&6
10069 else
10070   lt_cv_shlibpath_overrides_runpath=no
10071     save_LDFLAGS=$LDFLAGS
10072     save_libdir=$libdir
10073     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10074          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10075     cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h.  */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h.  */
10081
10082 int
10083 main ()
10084 {
10085
10086   ;
10087   return 0;
10088 }
10089 _ACEOF
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092   (eval $ac_link) 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } &&
10099          { ac_try='test -z "$ac_c_werror_flag"
10100                          || test ! -s conftest.err'
10101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102   (eval $ac_try) 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); }; } &&
10106          { ac_try='test -s conftest$ac_exeext'
10107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108   (eval $ac_try) 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; }; then
10112   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10113   lt_cv_shlibpath_overrides_runpath=yes
10114 fi
10115
10116 else
10117   echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10119
10120 fi
10121 rm -f conftest.err conftest.$ac_objext \
10122       conftest$ac_exeext conftest.$ac_ext
10123     LDFLAGS=$save_LDFLAGS
10124     libdir=$save_libdir
10125
10126 fi
10127
10128   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10129
10130   # This implies no fast_install, which is unacceptable.
10131   # Some rework will be needed to allow for fast_install
10132   # before this can be enabled.
10133   hardcode_into_libs=yes
10134
10135   # Append ld.so.conf contents to the search path
10136   if test -f /etc/ld.so.conf; then
10137     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' ' '`
10138     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10139   fi
10140
10141   # We used to test for /lib/ld.so.1 and disable shared libraries on
10142   # powerpc, because MkLinux only supported shared libraries with the
10143   # GNU dynamic linker.  Since this was broken with cross compilers,
10144   # most powerpc-linux boxes support dynamic linking these days and
10145   # people can always --disable-shared, the test was removed, and we
10146   # assume the GNU/Linux dynamic linker is in use.
10147   dynamic_linker='GNU/Linux ld.so'
10148   ;;
10149
10150 netbsd*)
10151   version_type=sunos
10152   need_lib_prefix=no
10153   need_version=no
10154   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10156     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10157     dynamic_linker='NetBSD (a.out) ld.so'
10158   else
10159     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10160     soname_spec='${libname}${release}${shared_ext}$major'
10161     dynamic_linker='NetBSD ld.elf_so'
10162   fi
10163   shlibpath_var=LD_LIBRARY_PATH
10164   shlibpath_overrides_runpath=yes
10165   hardcode_into_libs=yes
10166   ;;
10167
10168 newsos6)
10169   version_type=linux
10170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10171   shlibpath_var=LD_LIBRARY_PATH
10172   shlibpath_overrides_runpath=yes
10173   ;;
10174
10175 *nto* | *qnx*)
10176   version_type=qnx
10177   need_lib_prefix=no
10178   need_version=no
10179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180   soname_spec='${libname}${release}${shared_ext}$major'
10181   shlibpath_var=LD_LIBRARY_PATH
10182   shlibpath_overrides_runpath=no
10183   hardcode_into_libs=yes
10184   dynamic_linker='ldqnx.so'
10185   ;;
10186
10187 openbsd*)
10188   version_type=sunos
10189   sys_lib_dlsearch_path_spec="/usr/lib"
10190   need_lib_prefix=no
10191   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10192   case $host_os in
10193     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10194     *)                          need_version=no  ;;
10195   esac
10196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10197   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10198   shlibpath_var=LD_LIBRARY_PATH
10199   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10200     case $host_os in
10201       openbsd2.[89] | openbsd2.[89].*)
10202         shlibpath_overrides_runpath=no
10203         ;;
10204       *)
10205         shlibpath_overrides_runpath=yes
10206         ;;
10207       esac
10208   else
10209     shlibpath_overrides_runpath=yes
10210   fi
10211   ;;
10212
10213 os2*)
10214   libname_spec='$name'
10215   shrext_cmds=".dll"
10216   need_lib_prefix=no
10217   library_names_spec='$libname${shared_ext} $libname.a'
10218   dynamic_linker='OS/2 ld.exe'
10219   shlibpath_var=LIBPATH
10220   ;;
10221
10222 osf3* | osf4* | osf5*)
10223   version_type=osf
10224   need_lib_prefix=no
10225   need_version=no
10226   soname_spec='${libname}${release}${shared_ext}$major'
10227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228   shlibpath_var=LD_LIBRARY_PATH
10229   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10230   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10231   ;;
10232
10233 rdos*)
10234   dynamic_linker=no
10235   ;;
10236
10237 solaris*)
10238   version_type=linux
10239   need_lib_prefix=no
10240   need_version=no
10241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242   soname_spec='${libname}${release}${shared_ext}$major'
10243   shlibpath_var=LD_LIBRARY_PATH
10244   shlibpath_overrides_runpath=yes
10245   hardcode_into_libs=yes
10246   # ldd complains unless libraries are executable
10247   postinstall_cmds='chmod +x $lib'
10248   ;;
10249
10250 sunos4*)
10251   version_type=sunos
10252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10253   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10254   shlibpath_var=LD_LIBRARY_PATH
10255   shlibpath_overrides_runpath=yes
10256   if test "$with_gnu_ld" = yes; then
10257     need_lib_prefix=no
10258   fi
10259   need_version=yes
10260   ;;
10261
10262 sysv4 | sysv4.3*)
10263   version_type=linux
10264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10265   soname_spec='${libname}${release}${shared_ext}$major'
10266   shlibpath_var=LD_LIBRARY_PATH
10267   case $host_vendor in
10268     sni)
10269       shlibpath_overrides_runpath=no
10270       need_lib_prefix=no
10271       runpath_var=LD_RUN_PATH
10272       ;;
10273     siemens)
10274       need_lib_prefix=no
10275       ;;
10276     motorola)
10277       need_lib_prefix=no
10278       need_version=no
10279       shlibpath_overrides_runpath=no
10280       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10281       ;;
10282   esac
10283   ;;
10284
10285 sysv4*MP*)
10286   if test -d /usr/nec ;then
10287     version_type=linux
10288     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10289     soname_spec='$libname${shared_ext}.$major'
10290     shlibpath_var=LD_LIBRARY_PATH
10291   fi
10292   ;;
10293
10294 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10295   version_type=freebsd-elf
10296   need_lib_prefix=no
10297   need_version=no
10298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10299   soname_spec='${libname}${release}${shared_ext}$major'
10300   shlibpath_var=LD_LIBRARY_PATH
10301   shlibpath_overrides_runpath=yes
10302   hardcode_into_libs=yes
10303   if test "$with_gnu_ld" = yes; then
10304     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10305   else
10306     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10307     case $host_os in
10308       sco3.2v5*)
10309         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10310         ;;
10311     esac
10312   fi
10313   sys_lib_dlsearch_path_spec='/usr/lib'
10314   ;;
10315
10316 tpf*)
10317   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10318   version_type=linux
10319   need_lib_prefix=no
10320   need_version=no
10321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322   shlibpath_var=LD_LIBRARY_PATH
10323   shlibpath_overrides_runpath=no
10324   hardcode_into_libs=yes
10325   ;;
10326
10327 uts4*)
10328   version_type=linux
10329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330   soname_spec='${libname}${release}${shared_ext}$major'
10331   shlibpath_var=LD_LIBRARY_PATH
10332   ;;
10333
10334 *)
10335   dynamic_linker=no
10336   ;;
10337 esac
10338 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10339 echo "${ECHO_T}$dynamic_linker" >&6
10340 test "$dynamic_linker" = no && can_build_shared=no
10341
10342 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10343 if test "$GCC" = yes; then
10344   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10345 fi
10346
10347 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10348   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10349 fi
10350 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10351   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10352 fi
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10441 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10442 hardcode_action=
10443 if test -n "$hardcode_libdir_flag_spec" ||
10444    test -n "$runpath_var" ||
10445    test "X$hardcode_automatic" = "Xyes" ; then
10446
10447   # We can hardcode non-existent directories.
10448   if test "$hardcode_direct" != no &&
10449      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10450      # have to relink, otherwise we might link with an installed library
10451      # when we should be linking with a yet-to-be-installed one
10452      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10453      test "$hardcode_minus_L" != no; then
10454     # Linking always hardcodes the temporary library directory.
10455     hardcode_action=relink
10456   else
10457     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10458     hardcode_action=immediate
10459   fi
10460 else
10461   # We cannot hardcode anything, or else we can only hardcode existing
10462   # directories.
10463   hardcode_action=unsupported
10464 fi
10465 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10466 echo "${ECHO_T}$hardcode_action" >&6
10467
10468 if test "$hardcode_action" = relink ||
10469    test "$inherit_rpath" = yes; then
10470   # Fast installation is not supported
10471   enable_fast_install=no
10472 elif test "$shlibpath_overrides_runpath" = yes ||
10473      test "$enable_shared" = no; then
10474   # Fast installation is not necessary
10475   enable_fast_install=needless
10476 fi
10477
10478
10479
10480
10481
10482
10483   if test "x$enable_dlopen" != xyes; then
10484   enable_dlopen=unknown
10485   enable_dlopen_self=unknown
10486   enable_dlopen_self_static=unknown
10487 else
10488   lt_cv_dlopen=no
10489   lt_cv_dlopen_libs=
10490
10491   case $host_os in
10492   beos*)
10493     lt_cv_dlopen="load_add_on"
10494     lt_cv_dlopen_libs=
10495     lt_cv_dlopen_self=yes
10496     ;;
10497
10498   mingw* | pw32* | cegcc*)
10499     lt_cv_dlopen="LoadLibrary"
10500     lt_cv_dlopen_libs=
10501     ;;
10502
10503   cygwin*)
10504     lt_cv_dlopen="dlopen"
10505     lt_cv_dlopen_libs=
10506     ;;
10507
10508   darwin*)
10509   # if libdl is installed we need to link against it
10510     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10511 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10512 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10513   echo $ECHO_N "(cached) $ECHO_C" >&6
10514 else
10515   ac_check_lib_save_LIBS=$LIBS
10516 LIBS="-ldl  $LIBS"
10517 cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h.  */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h.  */
10523
10524 /* Override any gcc2 internal prototype to avoid an error.  */
10525 #ifdef __cplusplus
10526 extern "C"
10527 #endif
10528 /* We use char because int might match the return type of a gcc2
10529    builtin and then its argument prototype would still apply.  */
10530 char dlopen ();
10531 int
10532 main ()
10533 {
10534 dlopen ();
10535   ;
10536   return 0;
10537 }
10538 _ACEOF
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10541   (eval $ac_link) 2>conftest.er1
10542   ac_status=$?
10543   grep -v '^ *+' conftest.er1 >conftest.err
10544   rm -f conftest.er1
10545   cat conftest.err >&5
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); } &&
10548          { ac_try='test -z "$ac_c_werror_flag"
10549                          || test ! -s conftest.err'
10550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551   (eval $ac_try) 2>&5
10552   ac_status=$?
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); }; } &&
10555          { ac_try='test -s conftest$ac_exeext'
10556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557   (eval $ac_try) 2>&5
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); }; }; then
10561   ac_cv_lib_dl_dlopen=yes
10562 else
10563   echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 ac_cv_lib_dl_dlopen=no
10567 fi
10568 rm -f conftest.err conftest.$ac_objext \
10569       conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10571 fi
10572 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10573 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10574 if test $ac_cv_lib_dl_dlopen = yes; then
10575   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10576 else
10577
10578     lt_cv_dlopen="dyld"
10579     lt_cv_dlopen_libs=
10580     lt_cv_dlopen_self=yes
10581
10582 fi
10583
10584     ;;
10585
10586   *)
10587     echo "$as_me:$LINENO: checking for shl_load" >&5
10588 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10589 if test "${ac_cv_func_shl_load+set}" = set; then
10590   echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592   cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h.  */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h.  */
10598 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10600 #define shl_load innocuous_shl_load
10601
10602 /* System header to define __stub macros and hopefully few prototypes,
10603     which can conflict with char shl_load (); below.
10604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10605     <limits.h> exists even on freestanding compilers.  */
10606
10607 #ifdef __STDC__
10608 # include <limits.h>
10609 #else
10610 # include <assert.h>
10611 #endif
10612
10613 #undef shl_load
10614
10615 /* Override any gcc2 internal prototype to avoid an error.  */
10616 #ifdef __cplusplus
10617 extern "C"
10618 {
10619 #endif
10620 /* We use char because int might match the return type of a gcc2
10621    builtin and then its argument prototype would still apply.  */
10622 char shl_load ();
10623 /* The GNU C library defines this for functions which it implements
10624     to always fail with ENOSYS.  Some functions are actually named
10625     something starting with __ and the normal name is an alias.  */
10626 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10627 choke me
10628 #else
10629 char (*f) () = shl_load;
10630 #endif
10631 #ifdef __cplusplus
10632 }
10633 #endif
10634
10635 int
10636 main ()
10637 {
10638 return f != shl_load;
10639   ;
10640   return 0;
10641 }
10642 _ACEOF
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645   (eval $ac_link) 2>conftest.er1
10646   ac_status=$?
10647   grep -v '^ *+' conftest.er1 >conftest.err
10648   rm -f conftest.er1
10649   cat conftest.err >&5
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); } &&
10652          { ac_try='test -z "$ac_c_werror_flag"
10653                          || test ! -s conftest.err'
10654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655   (eval $ac_try) 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; } &&
10659          { ac_try='test -s conftest$ac_exeext'
10660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661   (eval $ac_try) 2>&5
10662   ac_status=$?
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); }; }; then
10665   ac_cv_func_shl_load=yes
10666 else
10667   echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10669
10670 ac_cv_func_shl_load=no
10671 fi
10672 rm -f conftest.err conftest.$ac_objext \
10673       conftest$ac_exeext conftest.$ac_ext
10674 fi
10675 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10676 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10677 if test $ac_cv_func_shl_load = yes; then
10678   lt_cv_dlopen="shl_load"
10679 else
10680   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10681 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10682 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10683   echo $ECHO_N "(cached) $ECHO_C" >&6
10684 else
10685   ac_check_lib_save_LIBS=$LIBS
10686 LIBS="-ldld  $LIBS"
10687 cat >conftest.$ac_ext <<_ACEOF
10688 /* confdefs.h.  */
10689 _ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h.  */
10693
10694 /* Override any gcc2 internal prototype to avoid an error.  */
10695 #ifdef __cplusplus
10696 extern "C"
10697 #endif
10698 /* We use char because int might match the return type of a gcc2
10699    builtin and then its argument prototype would still apply.  */
10700 char shl_load ();
10701 int
10702 main ()
10703 {
10704 shl_load ();
10705   ;
10706   return 0;
10707 }
10708 _ACEOF
10709 rm -f conftest.$ac_objext conftest$ac_exeext
10710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10711   (eval $ac_link) 2>conftest.er1
10712   ac_status=$?
10713   grep -v '^ *+' conftest.er1 >conftest.err
10714   rm -f conftest.er1
10715   cat conftest.err >&5
10716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717   (exit $ac_status); } &&
10718          { ac_try='test -z "$ac_c_werror_flag"
10719                          || test ! -s conftest.err'
10720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721   (eval $ac_try) 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; } &&
10725          { ac_try='test -s conftest$ac_exeext'
10726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727   (eval $ac_try) 2>&5
10728   ac_status=$?
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); }; }; then
10731   ac_cv_lib_dld_shl_load=yes
10732 else
10733   echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736 ac_cv_lib_dld_shl_load=no
10737 fi
10738 rm -f conftest.err conftest.$ac_objext \
10739       conftest$ac_exeext conftest.$ac_ext
10740 LIBS=$ac_check_lib_save_LIBS
10741 fi
10742 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10743 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10744 if test $ac_cv_lib_dld_shl_load = yes; then
10745   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10746 else
10747   echo "$as_me:$LINENO: checking for dlopen" >&5
10748 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10749 if test "${ac_cv_func_dlopen+set}" = set; then
10750   echo $ECHO_N "(cached) $ECHO_C" >&6
10751 else
10752   cat >conftest.$ac_ext <<_ACEOF
10753 /* confdefs.h.  */
10754 _ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h.  */
10758 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10760 #define dlopen innocuous_dlopen
10761
10762 /* System header to define __stub macros and hopefully few prototypes,
10763     which can conflict with char dlopen (); below.
10764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10765     <limits.h> exists even on freestanding compilers.  */
10766
10767 #ifdef __STDC__
10768 # include <limits.h>
10769 #else
10770 # include <assert.h>
10771 #endif
10772
10773 #undef dlopen
10774
10775 /* Override any gcc2 internal prototype to avoid an error.  */
10776 #ifdef __cplusplus
10777 extern "C"
10778 {
10779 #endif
10780 /* We use char because int might match the return type of a gcc2
10781    builtin and then its argument prototype would still apply.  */
10782 char dlopen ();
10783 /* The GNU C library defines this for functions which it implements
10784     to always fail with ENOSYS.  Some functions are actually named
10785     something starting with __ and the normal name is an alias.  */
10786 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10787 choke me
10788 #else
10789 char (*f) () = dlopen;
10790 #endif
10791 #ifdef __cplusplus
10792 }
10793 #endif
10794
10795 int
10796 main ()
10797 {
10798 return f != dlopen;
10799   ;
10800   return 0;
10801 }
10802 _ACEOF
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10805   (eval $ac_link) 2>conftest.er1
10806   ac_status=$?
10807   grep -v '^ *+' conftest.er1 >conftest.err
10808   rm -f conftest.er1
10809   cat conftest.err >&5
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); } &&
10812          { ac_try='test -z "$ac_c_werror_flag"
10813                          || test ! -s conftest.err'
10814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815   (eval $ac_try) 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); }; } &&
10819          { ac_try='test -s conftest$ac_exeext'
10820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821   (eval $ac_try) 2>&5
10822   ac_status=$?
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); }; }; then
10825   ac_cv_func_dlopen=yes
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830 ac_cv_func_dlopen=no
10831 fi
10832 rm -f conftest.err conftest.$ac_objext \
10833       conftest$ac_exeext conftest.$ac_ext
10834 fi
10835 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10836 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10837 if test $ac_cv_func_dlopen = yes; then
10838   lt_cv_dlopen="dlopen"
10839 else
10840   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10841 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10842 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10843   echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845   ac_check_lib_save_LIBS=$LIBS
10846 LIBS="-ldl  $LIBS"
10847 cat >conftest.$ac_ext <<_ACEOF
10848 /* confdefs.h.  */
10849 _ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h.  */
10853
10854 /* Override any gcc2 internal prototype to avoid an error.  */
10855 #ifdef __cplusplus
10856 extern "C"
10857 #endif
10858 /* We use char because int might match the return type of a gcc2
10859    builtin and then its argument prototype would still apply.  */
10860 char dlopen ();
10861 int
10862 main ()
10863 {
10864 dlopen ();
10865   ;
10866   return 0;
10867 }
10868 _ACEOF
10869 rm -f conftest.$ac_objext conftest$ac_exeext
10870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10871   (eval $ac_link) 2>conftest.er1
10872   ac_status=$?
10873   grep -v '^ *+' conftest.er1 >conftest.err
10874   rm -f conftest.er1
10875   cat conftest.err >&5
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); } &&
10878          { ac_try='test -z "$ac_c_werror_flag"
10879                          || test ! -s conftest.err'
10880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881   (eval $ac_try) 2>&5
10882   ac_status=$?
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); }; } &&
10885          { ac_try='test -s conftest$ac_exeext'
10886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887   (eval $ac_try) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; }; then
10891   ac_cv_lib_dl_dlopen=yes
10892 else
10893   echo "$as_me: failed program was:" >&5
10894 sed 's/^/| /' conftest.$ac_ext >&5
10895
10896 ac_cv_lib_dl_dlopen=no
10897 fi
10898 rm -f conftest.err conftest.$ac_objext \
10899       conftest$ac_exeext conftest.$ac_ext
10900 LIBS=$ac_check_lib_save_LIBS
10901 fi
10902 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10903 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10904 if test $ac_cv_lib_dl_dlopen = yes; then
10905   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10906 else
10907   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10908 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10909 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10910   echo $ECHO_N "(cached) $ECHO_C" >&6
10911 else
10912   ac_check_lib_save_LIBS=$LIBS
10913 LIBS="-lsvld  $LIBS"
10914 cat >conftest.$ac_ext <<_ACEOF
10915 /* confdefs.h.  */
10916 _ACEOF
10917 cat confdefs.h >>conftest.$ac_ext
10918 cat >>conftest.$ac_ext <<_ACEOF
10919 /* end confdefs.h.  */
10920
10921 /* Override any gcc2 internal prototype to avoid an error.  */
10922 #ifdef __cplusplus
10923 extern "C"
10924 #endif
10925 /* We use char because int might match the return type of a gcc2
10926    builtin and then its argument prototype would still apply.  */
10927 char dlopen ();
10928 int
10929 main ()
10930 {
10931 dlopen ();
10932   ;
10933   return 0;
10934 }
10935 _ACEOF
10936 rm -f conftest.$ac_objext conftest$ac_exeext
10937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10938   (eval $ac_link) 2>conftest.er1
10939   ac_status=$?
10940   grep -v '^ *+' conftest.er1 >conftest.err
10941   rm -f conftest.er1
10942   cat conftest.err >&5
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); } &&
10945          { ac_try='test -z "$ac_c_werror_flag"
10946                          || test ! -s conftest.err'
10947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948   (eval $ac_try) 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }; } &&
10952          { ac_try='test -s conftest$ac_exeext'
10953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954   (eval $ac_try) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; }; then
10958   ac_cv_lib_svld_dlopen=yes
10959 else
10960   echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10962
10963 ac_cv_lib_svld_dlopen=no
10964 fi
10965 rm -f conftest.err conftest.$ac_objext \
10966       conftest$ac_exeext conftest.$ac_ext
10967 LIBS=$ac_check_lib_save_LIBS
10968 fi
10969 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10970 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10971 if test $ac_cv_lib_svld_dlopen = yes; then
10972   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10973 else
10974   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10975 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10976 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10977   echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979   ac_check_lib_save_LIBS=$LIBS
10980 LIBS="-ldld  $LIBS"
10981 cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h.  */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h.  */
10987
10988 /* Override any gcc2 internal prototype to avoid an error.  */
10989 #ifdef __cplusplus
10990 extern "C"
10991 #endif
10992 /* We use char because int might match the return type of a gcc2
10993    builtin and then its argument prototype would still apply.  */
10994 char dld_link ();
10995 int
10996 main ()
10997 {
10998 dld_link ();
10999   ;
11000   return 0;
11001 }
11002 _ACEOF
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11005   (eval $ac_link) 2>conftest.er1
11006   ac_status=$?
11007   grep -v '^ *+' conftest.er1 >conftest.err
11008   rm -f conftest.er1
11009   cat conftest.err >&5
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); } &&
11012          { ac_try='test -z "$ac_c_werror_flag"
11013                          || test ! -s conftest.err'
11014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015   (eval $ac_try) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; } &&
11019          { ac_try='test -s conftest$ac_exeext'
11020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021   (eval $ac_try) 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; }; then
11025   ac_cv_lib_dld_dld_link=yes
11026 else
11027   echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11029
11030 ac_cv_lib_dld_dld_link=no
11031 fi
11032 rm -f conftest.err conftest.$ac_objext \
11033       conftest$ac_exeext conftest.$ac_ext
11034 LIBS=$ac_check_lib_save_LIBS
11035 fi
11036 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11037 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11038 if test $ac_cv_lib_dld_dld_link = yes; then
11039   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11040 fi
11041
11042
11043 fi
11044
11045
11046 fi
11047
11048
11049 fi
11050
11051
11052 fi
11053
11054
11055 fi
11056
11057     ;;
11058   esac
11059
11060   if test "x$lt_cv_dlopen" != xno; then
11061     enable_dlopen=yes
11062   else
11063     enable_dlopen=no
11064   fi
11065
11066   case $lt_cv_dlopen in
11067   dlopen)
11068     save_CPPFLAGS="$CPPFLAGS"
11069     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11070
11071     save_LDFLAGS="$LDFLAGS"
11072     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11073
11074     save_LIBS="$LIBS"
11075     LIBS="$lt_cv_dlopen_libs $LIBS"
11076
11077     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11078 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11079 if test "${lt_cv_dlopen_self+set}" = set; then
11080   echo $ECHO_N "(cached) $ECHO_C" >&6
11081 else
11082           if test "$cross_compiling" = yes; then :
11083   lt_cv_dlopen_self=cross
11084 else
11085   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11086   lt_status=$lt_dlunknown
11087   cat > conftest.$ac_ext <<_LT_EOF
11088 #line 11088 "configure"
11089 #include "confdefs.h"
11090
11091 #if HAVE_DLFCN_H
11092 #include <dlfcn.h>
11093 #endif
11094
11095 #include <stdio.h>
11096
11097 #ifdef RTLD_GLOBAL
11098 #  define LT_DLGLOBAL           RTLD_GLOBAL
11099 #else
11100 #  ifdef DL_GLOBAL
11101 #    define LT_DLGLOBAL         DL_GLOBAL
11102 #  else
11103 #    define LT_DLGLOBAL         0
11104 #  endif
11105 #endif
11106
11107 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11108    find out it does not work in some platform. */
11109 #ifndef LT_DLLAZY_OR_NOW
11110 #  ifdef RTLD_LAZY
11111 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11112 #  else
11113 #    ifdef DL_LAZY
11114 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11115 #    else
11116 #      ifdef RTLD_NOW
11117 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11118 #      else
11119 #        ifdef DL_NOW
11120 #          define LT_DLLAZY_OR_NOW      DL_NOW
11121 #        else
11122 #          define LT_DLLAZY_OR_NOW      0
11123 #        endif
11124 #      endif
11125 #    endif
11126 #  endif
11127 #endif
11128
11129 void fnord() { int i=42;}
11130 int main ()
11131 {
11132   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11133   int status = $lt_dlunknown;
11134
11135   if (self)
11136     {
11137       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11138       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11139       /* dlclose (self); */
11140     }
11141   else
11142     puts (dlerror ());
11143
11144   return status;
11145 }
11146 _LT_EOF
11147   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11148   (eval $ac_link) 2>&5
11149   ac_status=$?
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11152     (./conftest; exit; ) >&5 2>/dev/null
11153     lt_status=$?
11154     case x$lt_status in
11155       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11156       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11157       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11158     esac
11159   else :
11160     # compilation failed
11161     lt_cv_dlopen_self=no
11162   fi
11163 fi
11164 rm -fr conftest*
11165
11166
11167 fi
11168 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11169 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11170
11171     if test "x$lt_cv_dlopen_self" = xyes; then
11172       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11173       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11174 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11175 if test "${lt_cv_dlopen_self_static+set}" = set; then
11176   echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11178           if test "$cross_compiling" = yes; then :
11179   lt_cv_dlopen_self_static=cross
11180 else
11181   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11182   lt_status=$lt_dlunknown
11183   cat > conftest.$ac_ext <<_LT_EOF
11184 #line 11184 "configure"
11185 #include "confdefs.h"
11186
11187 #if HAVE_DLFCN_H
11188 #include <dlfcn.h>
11189 #endif
11190
11191 #include <stdio.h>
11192
11193 #ifdef RTLD_GLOBAL
11194 #  define LT_DLGLOBAL           RTLD_GLOBAL
11195 #else
11196 #  ifdef DL_GLOBAL
11197 #    define LT_DLGLOBAL         DL_GLOBAL
11198 #  else
11199 #    define LT_DLGLOBAL         0
11200 #  endif
11201 #endif
11202
11203 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11204    find out it does not work in some platform. */
11205 #ifndef LT_DLLAZY_OR_NOW
11206 #  ifdef RTLD_LAZY
11207 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11208 #  else
11209 #    ifdef DL_LAZY
11210 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11211 #    else
11212 #      ifdef RTLD_NOW
11213 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11214 #      else
11215 #        ifdef DL_NOW
11216 #          define LT_DLLAZY_OR_NOW      DL_NOW
11217 #        else
11218 #          define LT_DLLAZY_OR_NOW      0
11219 #        endif
11220 #      endif
11221 #    endif
11222 #  endif
11223 #endif
11224
11225 void fnord() { int i=42;}
11226 int main ()
11227 {
11228   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11229   int status = $lt_dlunknown;
11230
11231   if (self)
11232     {
11233       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11234       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11235       /* dlclose (self); */
11236     }
11237   else
11238     puts (dlerror ());
11239
11240   return status;
11241 }
11242 _LT_EOF
11243   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11244   (eval $ac_link) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11248     (./conftest; exit; ) >&5 2>/dev/null
11249     lt_status=$?
11250     case x$lt_status in
11251       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11252       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11253       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11254     esac
11255   else :
11256     # compilation failed
11257     lt_cv_dlopen_self_static=no
11258   fi
11259 fi
11260 rm -fr conftest*
11261
11262
11263 fi
11264 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11265 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11266     fi
11267
11268     CPPFLAGS="$save_CPPFLAGS"
11269     LDFLAGS="$save_LDFLAGS"
11270     LIBS="$save_LIBS"
11271     ;;
11272   esac
11273
11274   case $lt_cv_dlopen_self in
11275   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11276   *) enable_dlopen_self=unknown ;;
11277   esac
11278
11279   case $lt_cv_dlopen_self_static in
11280   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11281   *) enable_dlopen_self_static=unknown ;;
11282   esac
11283 fi
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301 striplib=
11302 old_striplib=
11303 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11304 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11305 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11306   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11307   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11308   echo "$as_me:$LINENO: result: yes" >&5
11309 echo "${ECHO_T}yes" >&6
11310 else
11311 # FIXME - insert some real tests, host_os isn't really good enough
11312   case $host_os in
11313   darwin*)
11314     if test -n "$STRIP" ; then
11315       striplib="$STRIP -x"
11316       old_striplib="$STRIP -S"
11317       echo "$as_me:$LINENO: result: yes" >&5
11318 echo "${ECHO_T}yes" >&6
11319     else
11320       echo "$as_me:$LINENO: result: no" >&5
11321 echo "${ECHO_T}no" >&6
11322     fi
11323     ;;
11324   *)
11325     echo "$as_me:$LINENO: result: no" >&5
11326 echo "${ECHO_T}no" >&6
11327     ;;
11328   esac
11329 fi
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342   # Report which library types will actually be built
11343   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11344 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11345   echo "$as_me:$LINENO: result: $can_build_shared" >&5
11346 echo "${ECHO_T}$can_build_shared" >&6
11347
11348   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11349 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11350   test "$can_build_shared" = "no" && enable_shared=no
11351
11352   # On AIX, shared libraries and static libraries use the same namespace, and
11353   # are all built from PIC.
11354   case $host_os in
11355   aix3*)
11356     test "$enable_shared" = yes && enable_static=no
11357     if test -n "$RANLIB"; then
11358       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11359       postinstall_cmds='$RANLIB $lib'
11360     fi
11361     ;;
11362
11363   aix[4-9]*)
11364     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11365       test "$enable_shared" = yes && enable_static=no
11366     fi
11367     ;;
11368   esac
11369   echo "$as_me:$LINENO: result: $enable_shared" >&5
11370 echo "${ECHO_T}$enable_shared" >&6
11371
11372   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11373 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11374   # Make sure either enable_shared or enable_static is yes.
11375   test "$enable_shared" = yes || enable_static=yes
11376   echo "$as_me:$LINENO: result: $enable_static" >&5
11377 echo "${ECHO_T}$enable_static" >&6
11378
11379
11380
11381
11382 fi
11383 ac_ext=c
11384 ac_cpp='$CPP $CPPFLAGS'
11385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11388
11389 CC="$lt_save_CC"
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403                   ac_config_commands="$ac_config_commands libtool"
11404
11405
11406
11407
11408 # Only expand once:
11409
11410
11411
11412 # Check whether --enable-targets or --disable-targets was given.
11413 if test "${enable_targets+set}" = set; then
11414   enableval="$enable_targets"
11415   case "${enableval}" in
11416   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
11417 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
11418    { (exit 1); exit 1; }; }
11419             ;;
11420   no)       enable_targets= ;;
11421   *)        enable_targets=$enableval ;;
11422 esac
11423 fi;
11424
11425 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11426
11427 # Check whether --enable-werror or --disable-werror was given.
11428 if test "${enable_werror+set}" = set; then
11429   enableval="$enable_werror"
11430   case "${enableval}" in
11431      yes | y) ERROR_ON_WARNING="yes" ;;
11432      no | n)  ERROR_ON_WARNING="no" ;;
11433      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
11434 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
11435    { (exit 1); exit 1; }; } ;;
11436    esac
11437 fi;
11438
11439 # Enable -Wno-format by default when using gcc on mingw
11440 case "${host}" in
11441   *-*-mingw32*)
11442     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11443       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11444     fi
11445     ;;
11446   *) ;;
11447 esac
11448
11449 # Enable -Werror by default when using gcc
11450 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11451     ERROR_ON_WARNING=yes
11452 fi
11453
11454 NO_WERROR=
11455 if test "${ERROR_ON_WARNING}" = yes ; then
11456     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11457     NO_WERROR="-Wno-error"
11458 fi
11459
11460 if test "${GCC}" = yes ; then
11461   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11462 fi
11463
11464 # Check whether --enable-build-warnings or --disable-build-warnings was given.
11465 if test "${enable_build_warnings+set}" = set; then
11466   enableval="$enable_build_warnings"
11467   case "${enableval}" in
11468   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11469   no)   if test "${GCC}" = yes ; then
11470           WARN_CFLAGS="-w"
11471         fi;;
11472   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11473         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11474   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
11475         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11476   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11477 esac
11478 fi;
11479
11480 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11481   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11482 fi
11483
11484
11485
11486
11487
11488           ac_config_headers="$ac_config_headers config.h:config.in"
11489
11490
11491 if test -z "$target" ; then
11492     { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
11493 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
11494    { (exit 1); exit 1; }; }
11495 fi
11496
11497 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
11498 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
11499     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
11500 if test "${enable_maintainer_mode+set}" = set; then
11501   enableval="$enable_maintainer_mode"
11502   USE_MAINTAINER_MODE=$enableval
11503 else
11504   USE_MAINTAINER_MODE=no
11505 fi;
11506   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
11507 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
11508
11509
11510 if test $USE_MAINTAINER_MODE = yes; then
11511   MAINTAINER_MODE_TRUE=
11512   MAINTAINER_MODE_FALSE='#'
11513 else
11514   MAINTAINER_MODE_TRUE='#'
11515   MAINTAINER_MODE_FALSE=
11516 fi
11517
11518   MAINT=$MAINTAINER_MODE_TRUE
11519
11520
11521  case ${build_alias} in
11522   "") build_noncanonical=${build} ;;
11523   *) build_noncanonical=${build_alias} ;;
11524 esac
11525
11526  case ${host_alias} in
11527   "") host_noncanonical=${build_noncanonical} ;;
11528   *) host_noncanonical=${host_alias} ;;
11529 esac
11530
11531  case ${target_alias} in
11532   "") target_noncanonical=${host_noncanonical} ;;
11533   *) target_noncanonical=${target_alias} ;;
11534 esac
11535
11536 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
11537 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
11538   # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
11539 if test "${enable_install_libbfd+set}" = set; then
11540   enableval="$enable_install_libbfd"
11541   install_libbfd_p=$enableval
11542 else
11543   if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
11544         install_libbfd_p=yes
11545       else
11546         install_libbfd_p=no
11547       fi
11548 fi;
11549   echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
11550 echo "${ECHO_T}$install_libbfd_p" >&6
11551
11552
11553 if test $install_libbfd_p = yes; then
11554   INSTALL_LIBBFD_TRUE=
11555   INSTALL_LIBBFD_FALSE='#'
11556 else
11557   INSTALL_LIBBFD_TRUE='#'
11558   INSTALL_LIBBFD_FALSE=
11559 fi
11560
11561   # Need _noncanonical variables for this.
11562
11563
11564
11565
11566   # libbfd.a is a host library containing target dependent code
11567   bfdlibdir='$(libdir)'
11568   bfdincludedir='$(includedir)'
11569   if test "${host}" != "${target}"; then
11570     bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
11571     bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
11572   fi
11573
11574
11575
11576
11577
11578
11579 # host-specific stuff:
11580
11581 ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
11582 # If we haven't got the data from the intl directory,
11583 # assume NLS is disabled.
11584 USE_NLS=no
11585 LIBINTL=
11586 LIBINTL_DEP=
11587 INCINTL=
11588 XGETTEXT=
11589 GMSGFMT=
11590 POSUB=
11591
11592 if test -f  ../intl/config.intl; then
11593   .  ../intl/config.intl
11594 fi
11595 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11596 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11597 if test x"$USE_NLS" != xyes; then
11598   echo "$as_me:$LINENO: result: no" >&5
11599 echo "${ECHO_T}no" >&6
11600 else
11601   echo "$as_me:$LINENO: result: yes" >&5
11602 echo "${ECHO_T}yes" >&6
11603
11604 cat >>confdefs.h <<\_ACEOF
11605 #define ENABLE_NLS 1
11606 _ACEOF
11607
11608
11609   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
11610 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
11611   # Look for .po and .gmo files in the source directory.
11612   CATALOGS=
11613   XLINGUAS=
11614   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11615     # If there aren't any .gmo files the shell will give us the
11616     # literal string "../path/to/srcdir/po/*.gmo" which has to be
11617     # weeded out.
11618     case "$cat" in *\**)
11619       continue;;
11620     esac
11621     # The quadruple backslash is collapsed to a double backslash
11622     # by the backticks, then collapsed again by the double quotes,
11623     # leaving us with one backslash in the sed expression (right
11624     # before the dot that mustn't act as a wildcard).
11625     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11626     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11627     # The user is allowed to set LINGUAS to a list of languages to
11628     # install catalogs for.  If it's empty that means "all of them."
11629     if test "x$LINGUAS" = x; then
11630       CATALOGS="$CATALOGS $cat"
11631       XLINGUAS="$XLINGUAS $lang"
11632     else
11633       case "$LINGUAS" in *$lang*)
11634         CATALOGS="$CATALOGS $cat"
11635         XLINGUAS="$XLINGUAS $lang"
11636         ;;
11637       esac
11638     fi
11639   done
11640   LINGUAS="$XLINGUAS"
11641   echo "$as_me:$LINENO: result: $LINGUAS" >&5
11642 echo "${ECHO_T}$LINGUAS" >&6
11643
11644
11645     DATADIRNAME=share
11646
11647   INSTOBJEXT=.mo
11648
11649   GENCAT=gencat
11650
11651   CATOBJEXT=.gmo
11652
11653 fi
11654
11655         MKINSTALLDIRS=
11656   if test -n "$ac_aux_dir"; then
11657     case "$ac_aux_dir" in
11658       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11659       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11660     esac
11661   fi
11662   if test -z "$MKINSTALLDIRS"; then
11663     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11664   fi
11665
11666
11667
11668   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11669 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11670     # Check whether --enable-nls or --disable-nls was given.
11671 if test "${enable_nls+set}" = set; then
11672   enableval="$enable_nls"
11673   USE_NLS=$enableval
11674 else
11675   USE_NLS=yes
11676 fi;
11677   echo "$as_me:$LINENO: result: $USE_NLS" >&5
11678 echo "${ECHO_T}$USE_NLS" >&6
11679
11680
11681
11682
11683
11684
11685 # Prepare PATH_SEPARATOR.
11686 # The user is always right.
11687 if test "${PATH_SEPARATOR+set}" != set; then
11688   echo "#! /bin/sh" >conf$$.sh
11689   echo  "exit 0"   >>conf$$.sh
11690   chmod +x conf$$.sh
11691   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11692     PATH_SEPARATOR=';'
11693   else
11694     PATH_SEPARATOR=:
11695   fi
11696   rm -f conf$$.sh
11697 fi
11698
11699 # Find out how to test for executable files. Don't use a zero-byte file,
11700 # as systems may use methods other than mode bits to determine executability.
11701 cat >conf$$.file <<_ASEOF
11702 #! /bin/sh
11703 exit 0
11704 _ASEOF
11705 chmod +x conf$$.file
11706 if test -x conf$$.file >/dev/null 2>&1; then
11707   ac_executable_p="test -x"
11708 else
11709   ac_executable_p="test -f"
11710 fi
11711 rm -f conf$$.file
11712
11713 # Extract the first word of "msgfmt", so it can be a program name with args.
11714 set dummy msgfmt; ac_word=$2
11715 echo "$as_me:$LINENO: checking for $ac_word" >&5
11716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11717 if test "${ac_cv_path_MSGFMT+set}" = set; then
11718   echo $ECHO_N "(cached) $ECHO_C" >&6
11719 else
11720   case "$MSGFMT" in
11721   [\\/]* | ?:[\\/]*)
11722     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11723     ;;
11724   *)
11725     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11726     for ac_dir in $PATH; do
11727       IFS="$ac_save_IFS"
11728       test -z "$ac_dir" && ac_dir=.
11729       for ac_exec_ext in '' $ac_executable_extensions; do
11730         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11731           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
11732      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11733             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
11734             break 2
11735           fi
11736         fi
11737       done
11738     done
11739     IFS="$ac_save_IFS"
11740   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
11741     ;;
11742 esac
11743 fi
11744 MSGFMT="$ac_cv_path_MSGFMT"
11745 if test "$MSGFMT" != ":"; then
11746   echo "$as_me:$LINENO: result: $MSGFMT" >&5
11747 echo "${ECHO_T}$MSGFMT" >&6
11748 else
11749   echo "$as_me:$LINENO: result: no" >&5
11750 echo "${ECHO_T}no" >&6
11751 fi
11752
11753   # Extract the first word of "gmsgfmt", so it can be a program name with args.
11754 set dummy gmsgfmt; ac_word=$2
11755 echo "$as_me:$LINENO: checking for $ac_word" >&5
11756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11757 if test "${ac_cv_path_GMSGFMT+set}" = set; then
11758   echo $ECHO_N "(cached) $ECHO_C" >&6
11759 else
11760   case $GMSGFMT in
11761   [\\/]* | ?:[\\/]*)
11762   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11763   ;;
11764   *)
11765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766 for as_dir in $PATH
11767 do
11768   IFS=$as_save_IFS
11769   test -z "$as_dir" && as_dir=.
11770   for ac_exec_ext in '' $ac_executable_extensions; do
11771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11772     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11774     break 2
11775   fi
11776 done
11777 done
11778
11779   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11780   ;;
11781 esac
11782 fi
11783 GMSGFMT=$ac_cv_path_GMSGFMT
11784
11785 if test -n "$GMSGFMT"; then
11786   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
11787 echo "${ECHO_T}$GMSGFMT" >&6
11788 else
11789   echo "$as_me:$LINENO: result: no" >&5
11790 echo "${ECHO_T}no" >&6
11791 fi
11792
11793
11794
11795 # Prepare PATH_SEPARATOR.
11796 # The user is always right.
11797 if test "${PATH_SEPARATOR+set}" != set; then
11798   echo "#! /bin/sh" >conf$$.sh
11799   echo  "exit 0"   >>conf$$.sh
11800   chmod +x conf$$.sh
11801   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11802     PATH_SEPARATOR=';'
11803   else
11804     PATH_SEPARATOR=:
11805   fi
11806   rm -f conf$$.sh
11807 fi
11808
11809 # Find out how to test for executable files. Don't use a zero-byte file,
11810 # as systems may use methods other than mode bits to determine executability.
11811 cat >conf$$.file <<_ASEOF
11812 #! /bin/sh
11813 exit 0
11814 _ASEOF
11815 chmod +x conf$$.file
11816 if test -x conf$$.file >/dev/null 2>&1; then
11817   ac_executable_p="test -x"
11818 else
11819   ac_executable_p="test -f"
11820 fi
11821 rm -f conf$$.file
11822
11823 # Extract the first word of "xgettext", so it can be a program name with args.
11824 set dummy xgettext; ac_word=$2
11825 echo "$as_me:$LINENO: checking for $ac_word" >&5
11826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11827 if test "${ac_cv_path_XGETTEXT+set}" = set; then
11828   echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830   case "$XGETTEXT" in
11831   [\\/]* | ?:[\\/]*)
11832     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11833     ;;
11834   *)
11835     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11836     for ac_dir in $PATH; do
11837       IFS="$ac_save_IFS"
11838       test -z "$ac_dir" && ac_dir=.
11839       for ac_exec_ext in '' $ac_executable_extensions; do
11840         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11841           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11842      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11843             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
11844             break 2
11845           fi
11846         fi
11847       done
11848     done
11849     IFS="$ac_save_IFS"
11850   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
11851     ;;
11852 esac
11853 fi
11854 XGETTEXT="$ac_cv_path_XGETTEXT"
11855 if test "$XGETTEXT" != ":"; then
11856   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
11857 echo "${ECHO_T}$XGETTEXT" >&6
11858 else
11859   echo "$as_me:$LINENO: result: no" >&5
11860 echo "${ECHO_T}no" >&6
11861 fi
11862
11863     rm -f messages.po
11864
11865
11866 # Prepare PATH_SEPARATOR.
11867 # The user is always right.
11868 if test "${PATH_SEPARATOR+set}" != set; then
11869   echo "#! /bin/sh" >conf$$.sh
11870   echo  "exit 0"   >>conf$$.sh
11871   chmod +x conf$$.sh
11872   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11873     PATH_SEPARATOR=';'
11874   else
11875     PATH_SEPARATOR=:
11876   fi
11877   rm -f conf$$.sh
11878 fi
11879
11880 # Find out how to test for executable files. Don't use a zero-byte file,
11881 # as systems may use methods other than mode bits to determine executability.
11882 cat >conf$$.file <<_ASEOF
11883 #! /bin/sh
11884 exit 0
11885 _ASEOF
11886 chmod +x conf$$.file
11887 if test -x conf$$.file >/dev/null 2>&1; then
11888   ac_executable_p="test -x"
11889 else
11890   ac_executable_p="test -f"
11891 fi
11892 rm -f conf$$.file
11893
11894 # Extract the first word of "msgmerge", so it can be a program name with args.
11895 set dummy msgmerge; ac_word=$2
11896 echo "$as_me:$LINENO: checking for $ac_word" >&5
11897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11898 if test "${ac_cv_path_MSGMERGE+set}" = set; then
11899   echo $ECHO_N "(cached) $ECHO_C" >&6
11900 else
11901   case "$MSGMERGE" in
11902   [\\/]* | ?:[\\/]*)
11903     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11904     ;;
11905   *)
11906     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
11907     for ac_dir in $PATH; do
11908       IFS="$ac_save_IFS"
11909       test -z "$ac_dir" && ac_dir=.
11910       for ac_exec_ext in '' $ac_executable_extensions; do
11911         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
11912           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
11913             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
11914             break 2
11915           fi
11916         fi
11917       done
11918     done
11919     IFS="$ac_save_IFS"
11920   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
11921     ;;
11922 esac
11923 fi
11924 MSGMERGE="$ac_cv_path_MSGMERGE"
11925 if test "$MSGMERGE" != ":"; then
11926   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
11927 echo "${ECHO_T}$MSGMERGE" >&6
11928 else
11929   echo "$as_me:$LINENO: result: no" >&5
11930 echo "${ECHO_T}no" >&6
11931 fi
11932
11933
11934       if test "$GMSGFMT" != ":"; then
11935             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
11936        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11937       : ;
11938     else
11939       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
11940       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
11941 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
11942       GMSGFMT=":"
11943     fi
11944   fi
11945
11946       if test "$XGETTEXT" != ":"; then
11947             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
11948        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
11949       : ;
11950     else
11951       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
11952 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
11953       XGETTEXT=":"
11954     fi
11955         rm -f messages.po
11956   fi
11957
11958             ac_config_commands="$ac_config_commands default-1"
11959
11960
11961
11962 . ${srcdir}/../bfd/configure.host
11963
11964 # Put a plausible default for CC_FOR_BUILD in Makefile.
11965 if test -z "$CC_FOR_BUILD"; then
11966   if test "x$cross_compiling" = "xno"; then
11967     CC_FOR_BUILD='$(CC)'
11968   else
11969     CC_FOR_BUILD=gcc
11970   fi
11971 fi
11972
11973 # Also set EXEEXT_FOR_BUILD.
11974 if test "x$cross_compiling" = "xno"; then
11975   EXEEXT_FOR_BUILD='$(EXEEXT)'
11976 else
11977   echo "$as_me:$LINENO: checking for build system executable suffix" >&5
11978 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
11979 if test "${bfd_cv_build_exeext+set}" = set; then
11980   echo $ECHO_N "(cached) $ECHO_C" >&6
11981 else
11982   rm -f conftest*
11983      echo 'int main () { return 0; }' > conftest.c
11984      bfd_cv_build_exeext=
11985      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
11986      for file in conftest.*; do
11987        case $file in
11988        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11989        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11990        esac
11991      done
11992      rm -f conftest*
11993      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11994 fi
11995 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11996 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11997   EXEEXT_FOR_BUILD=""
11998   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11999 fi
12000
12001
12002
12003 # Find a good install program.  We prefer a C program (faster),
12004 # so one script is as good as another.  But avoid the broken or
12005 # incompatible versions:
12006 # SysV /etc/install, /usr/sbin/install
12007 # SunOS /usr/etc/install
12008 # IRIX /sbin/install
12009 # AIX /bin/install
12010 # AmigaOS /C/install, which installs bootblocks on floppy discs
12011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12014 # OS/2's system install, which has a completely different semantic
12015 # ./install, which can be erroneously created by make from ./install.sh.
12016 # Reject install programs that cannot install multiple files.
12017 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12018 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12019 if test -z "$INSTALL"; then
12020 if test "${ac_cv_path_install+set}" = set; then
12021   echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12025 do
12026   IFS=$as_save_IFS
12027   test -z "$as_dir" && as_dir=.
12028   # Account for people who put trailing slashes in PATH elements.
12029 case $as_dir/ in
12030   ./ | .// | /cC/* | \
12031   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12032   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12033   /usr/ucb/* ) ;;
12034   *)
12035     # OSF1 and SCO ODT 3.0 have their own names for install.
12036     # Don't use installbsd from OSF since it installs stuff as root
12037     # by default.
12038     for ac_prog in ginstall scoinst install; do
12039       for ac_exec_ext in '' $ac_executable_extensions; do
12040         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12041           if test $ac_prog = install &&
12042             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12043             # AIX install.  It has an incompatible calling convention.
12044             :
12045           elif test $ac_prog = install &&
12046             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12047             # program-specific install script used by HP pwplus--don't use.
12048             :
12049           else
12050             rm -rf conftest.one conftest.two conftest.dir
12051             echo one > conftest.one
12052             echo two > conftest.two
12053             mkdir conftest.dir
12054             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12055               test -s conftest.one && test -s conftest.two &&
12056               test -s conftest.dir/conftest.one &&
12057               test -s conftest.dir/conftest.two
12058             then
12059               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12060               break 3
12061             fi
12062           fi
12063         fi
12064       done
12065     done
12066     ;;
12067 esac
12068 done
12069
12070 rm -rf conftest.one conftest.two conftest.dir
12071
12072 fi
12073   if test "${ac_cv_path_install+set}" = set; then
12074     INSTALL=$ac_cv_path_install
12075   else
12076     # As a last resort, use the slow shell script.  Don't cache a
12077     # value for INSTALL within a source directory, because that will
12078     # break other packages using the cache if that directory is
12079     # removed, or if the value is a relative name.
12080     INSTALL=$ac_install_sh
12081   fi
12082 fi
12083 echo "$as_me:$LINENO: result: $INSTALL" >&5
12084 echo "${ECHO_T}$INSTALL" >&6
12085
12086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12087 # It thinks the first close brace ends the variable substitution.
12088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12089
12090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12091
12092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12093
12094
12095
12096
12097
12098
12099 for ac_header in string.h strings.h stdlib.h limits.h
12100 do
12101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12103   echo "$as_me:$LINENO: checking for $ac_header" >&5
12104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12106   echo $ECHO_N "(cached) $ECHO_C" >&6
12107 fi
12108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12110 else
12111   # Is the header compilable?
12112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12114 cat >conftest.$ac_ext <<_ACEOF
12115 /* confdefs.h.  */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h.  */
12120 $ac_includes_default
12121 #include <$ac_header>
12122 _ACEOF
12123 rm -f conftest.$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125   (eval $ac_compile) 2>conftest.er1
12126   ac_status=$?
12127   grep -v '^ *+' conftest.er1 >conftest.err
12128   rm -f conftest.er1
12129   cat conftest.err >&5
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); } &&
12132          { ac_try='test -z "$ac_c_werror_flag"
12133                          || test ! -s conftest.err'
12134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135   (eval $ac_try) 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); }; } &&
12139          { ac_try='test -s conftest.$ac_objext'
12140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12141   (eval $ac_try) 2>&5
12142   ac_status=$?
12143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144   (exit $ac_status); }; }; then
12145   ac_header_compiler=yes
12146 else
12147   echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12149
12150 ac_header_compiler=no
12151 fi
12152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12154 echo "${ECHO_T}$ac_header_compiler" >&6
12155
12156 # Is the header present?
12157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12159 cat >conftest.$ac_ext <<_ACEOF
12160 /* confdefs.h.  */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h.  */
12165 #include <$ac_header>
12166 _ACEOF
12167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12169   ac_status=$?
12170   grep -v '^ *+' conftest.er1 >conftest.err
12171   rm -f conftest.er1
12172   cat conftest.err >&5
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); } >/dev/null; then
12175   if test -s conftest.err; then
12176     ac_cpp_err=$ac_c_preproc_warn_flag
12177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12178   else
12179     ac_cpp_err=
12180   fi
12181 else
12182   ac_cpp_err=yes
12183 fi
12184 if test -z "$ac_cpp_err"; then
12185   ac_header_preproc=yes
12186 else
12187   echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190   ac_header_preproc=no
12191 fi
12192 rm -f conftest.err conftest.$ac_ext
12193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12194 echo "${ECHO_T}$ac_header_preproc" >&6
12195
12196 # So?  What about this header?
12197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12198   yes:no: )
12199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12203     ac_header_preproc=yes
12204     ;;
12205   no:yes:* )
12206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12218     (
12219       cat <<\_ASBOX
12220 ## ------------------------------------------ ##
12221 ## Report this to the AC_PACKAGE_NAME lists.  ##
12222 ## ------------------------------------------ ##
12223 _ASBOX
12224     ) |
12225       sed "s/^/$as_me: WARNING:     /" >&2
12226     ;;
12227 esac
12228 echo "$as_me:$LINENO: checking for $ac_header" >&5
12229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233   eval "$as_ac_Header=\$ac_header_preproc"
12234 fi
12235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12237
12238 fi
12239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12240   cat >>confdefs.h <<_ACEOF
12241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12242 _ACEOF
12243
12244 fi
12245
12246 done
12247
12248
12249 echo "$as_me:$LINENO: checking whether basename is declared" >&5
12250 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
12251 if test "${ac_cv_have_decl_basename+set}" = set; then
12252   echo $ECHO_N "(cached) $ECHO_C" >&6
12253 else
12254   cat >conftest.$ac_ext <<_ACEOF
12255 /* confdefs.h.  */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h.  */
12260 $ac_includes_default
12261 int
12262 main ()
12263 {
12264 #ifndef basename
12265   char *p = (char *) basename;
12266 #endif
12267
12268   ;
12269   return 0;
12270 }
12271 _ACEOF
12272 rm -f conftest.$ac_objext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12274   (eval $ac_compile) 2>conftest.er1
12275   ac_status=$?
12276   grep -v '^ *+' conftest.er1 >conftest.err
12277   rm -f conftest.er1
12278   cat conftest.err >&5
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); } &&
12281          { ac_try='test -z "$ac_c_werror_flag"
12282                          || test ! -s conftest.err'
12283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284   (eval $ac_try) 2>&5
12285   ac_status=$?
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); }; } &&
12288          { ac_try='test -s conftest.$ac_objext'
12289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290   (eval $ac_try) 2>&5
12291   ac_status=$?
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); }; }; then
12294   ac_cv_have_decl_basename=yes
12295 else
12296   echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 ac_cv_have_decl_basename=no
12300 fi
12301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12302 fi
12303 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
12304 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
12305 if test $ac_cv_have_decl_basename = yes; then
12306
12307 cat >>confdefs.h <<_ACEOF
12308 #define HAVE_DECL_BASENAME 1
12309 _ACEOF
12310
12311
12312 else
12313   cat >>confdefs.h <<_ACEOF
12314 #define HAVE_DECL_BASENAME 0
12315 _ACEOF
12316
12317
12318 fi
12319 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
12320 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
12321 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
12322   echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324   cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h.  */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h.  */
12330 $ac_includes_default
12331 int
12332 main ()
12333 {
12334 #ifndef stpcpy
12335   char *p = (char *) stpcpy;
12336 #endif
12337
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344   (eval $ac_compile) 2>conftest.er1
12345   ac_status=$?
12346   grep -v '^ *+' conftest.er1 >conftest.err
12347   rm -f conftest.er1
12348   cat conftest.err >&5
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); } &&
12351          { ac_try='test -z "$ac_c_werror_flag"
12352                          || test ! -s conftest.err'
12353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354   (eval $ac_try) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }; } &&
12358          { ac_try='test -s conftest.$ac_objext'
12359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360   (eval $ac_try) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; }; then
12364   ac_cv_have_decl_stpcpy=yes
12365 else
12366   echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 ac_cv_have_decl_stpcpy=no
12370 fi
12371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12372 fi
12373 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
12374 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
12375 if test $ac_cv_have_decl_stpcpy = yes; then
12376
12377 cat >>confdefs.h <<_ACEOF
12378 #define HAVE_DECL_STPCPY 1
12379 _ACEOF
12380
12381
12382 else
12383   cat >>confdefs.h <<_ACEOF
12384 #define HAVE_DECL_STPCPY 0
12385 _ACEOF
12386
12387
12388 fi
12389
12390
12391
12392 cgen_maint=no
12393 cgendir='$(srcdir)/../cgen'
12394
12395 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
12396 if test "${enable_cgen_maint+set}" = set; then
12397   enableval="$enable_cgen_maint"
12398   case "${enableval}" in
12399   yes)  cgen_maint=yes ;;
12400   no)   cgen_maint=no ;;
12401   *)
12402         # argument is cgen install directory (not implemented yet).
12403         # Having a `share' directory might be more appropriate for the .scm,
12404         # .cpu, etc. files.
12405         cgen_maint=yes
12406         cgendir=${cgen_maint}/lib/cgen
12407         ;;
12408 esac
12409 fi;
12410
12411 if test x${cgen_maint} = xyes; then
12412   CGEN_MAINT_TRUE=
12413   CGEN_MAINT_FALSE='#'
12414 else
12415   CGEN_MAINT_TRUE='#'
12416   CGEN_MAINT_FALSE=
12417 fi
12418
12419
12420
12421 using_cgen=no
12422
12423 # Check if linker supports --as-needed and --no-as-needed options
12424 echo "$as_me:$LINENO: checking linker --as-needed support" >&5
12425 echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6
12426 if test "${bfd_cv_ld_as_needed+set}" = set; then
12427   echo $ECHO_N "(cached) $ECHO_C" >&6
12428 else
12429   bfd_cv_ld_as_needed=no
12430         if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
12431                 bfd_cv_ld_as_needed=yes
12432         fi
12433
12434 fi
12435 echo "$as_me:$LINENO: result: $bfd_cv_ld_as_needed" >&5
12436 echo "${ECHO_T}$bfd_cv_ld_as_needed" >&6
12437
12438 LIBM=
12439 case $host in
12440 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
12441   # These system don't have libm, or don't need it
12442   ;;
12443 *-ncr-sysv4.3*)
12444   echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
12445 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
12446 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
12447   echo $ECHO_N "(cached) $ECHO_C" >&6
12448 else
12449   ac_check_lib_save_LIBS=$LIBS
12450 LIBS="-lmw  $LIBS"
12451 cat >conftest.$ac_ext <<_ACEOF
12452 /* confdefs.h.  */
12453 _ACEOF
12454 cat confdefs.h >>conftest.$ac_ext
12455 cat >>conftest.$ac_ext <<_ACEOF
12456 /* end confdefs.h.  */
12457
12458 /* Override any gcc2 internal prototype to avoid an error.  */
12459 #ifdef __cplusplus
12460 extern "C"
12461 #endif
12462 /* We use char because int might match the return type of a gcc2
12463    builtin and then its argument prototype would still apply.  */
12464 char _mwvalidcheckl ();
12465 int
12466 main ()
12467 {
12468 _mwvalidcheckl ();
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 rm -f conftest.$ac_objext conftest$ac_exeext
12474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12475   (eval $ac_link) 2>conftest.er1
12476   ac_status=$?
12477   grep -v '^ *+' conftest.er1 >conftest.err
12478   rm -f conftest.er1
12479   cat conftest.err >&5
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); } &&
12482          { ac_try='test -z "$ac_c_werror_flag"
12483                          || test ! -s conftest.err'
12484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485   (eval $ac_try) 2>&5
12486   ac_status=$?
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); }; } &&
12489          { ac_try='test -s conftest$ac_exeext'
12490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491   (eval $ac_try) 2>&5
12492   ac_status=$?
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); }; }; then
12495   ac_cv_lib_mw__mwvalidcheckl=yes
12496 else
12497   echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12499
12500 ac_cv_lib_mw__mwvalidcheckl=no
12501 fi
12502 rm -f conftest.err conftest.$ac_objext \
12503       conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_lib_save_LIBS
12505 fi
12506 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
12507 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
12508 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
12509   LIBM="-lmw"
12510 fi
12511
12512   echo "$as_me:$LINENO: checking for cos in -lm" >&5
12513 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12514 if test "${ac_cv_lib_m_cos+set}" = set; then
12515   echo $ECHO_N "(cached) $ECHO_C" >&6
12516 else
12517   ac_check_lib_save_LIBS=$LIBS
12518 LIBS="-lm  $LIBS"
12519 cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h.  */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h.  */
12525
12526 /* Override any gcc2 internal prototype to avoid an error.  */
12527 #ifdef __cplusplus
12528 extern "C"
12529 #endif
12530 /* We use char because int might match the return type of a gcc2
12531    builtin and then its argument prototype would still apply.  */
12532 char cos ();
12533 int
12534 main ()
12535 {
12536 cos ();
12537   ;
12538   return 0;
12539 }
12540 _ACEOF
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12543   (eval $ac_link) 2>conftest.er1
12544   ac_status=$?
12545   grep -v '^ *+' conftest.er1 >conftest.err
12546   rm -f conftest.er1
12547   cat conftest.err >&5
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); } &&
12550          { ac_try='test -z "$ac_c_werror_flag"
12551                          || test ! -s conftest.err'
12552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553   (eval $ac_try) 2>&5
12554   ac_status=$?
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); }; } &&
12557          { ac_try='test -s conftest$ac_exeext'
12558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559   (eval $ac_try) 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); }; }; then
12563   ac_cv_lib_m_cos=yes
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568 ac_cv_lib_m_cos=no
12569 fi
12570 rm -f conftest.err conftest.$ac_objext \
12571       conftest$ac_exeext conftest.$ac_ext
12572 LIBS=$ac_check_lib_save_LIBS
12573 fi
12574 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
12575 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
12576 if test $ac_cv_lib_m_cos = yes; then
12577   LIBM="$LIBM -lm"
12578 fi
12579
12580   ;;
12581 *)
12582   echo "$as_me:$LINENO: checking for cos in -lm" >&5
12583 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
12584 if test "${ac_cv_lib_m_cos+set}" = set; then
12585   echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587   ac_check_lib_save_LIBS=$LIBS
12588 LIBS="-lm  $LIBS"
12589 cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h.  */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h.  */
12595
12596 /* Override any gcc2 internal prototype to avoid an error.  */
12597 #ifdef __cplusplus
12598 extern "C"
12599 #endif
12600 /* We use char because int might match the return type of a gcc2
12601    builtin and then its argument prototype would still apply.  */
12602 char cos ();
12603 int
12604 main ()
12605 {
12606 cos ();
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12613   (eval $ac_link) 2>conftest.er1
12614   ac_status=$?
12615   grep -v '^ *+' conftest.er1 >conftest.err
12616   rm -f conftest.er1
12617   cat conftest.err >&5
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); } &&
12620          { ac_try='test -z "$ac_c_werror_flag"
12621                          || test ! -s conftest.err'
12622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623   (eval $ac_try) 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; } &&
12627          { ac_try='test -s conftest$ac_exeext'
12628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629   (eval $ac_try) 2>&5
12630   ac_status=$?
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); }; }; then
12633   ac_cv_lib_m_cos=yes
12634 else
12635   echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12637
12638 ac_cv_lib_m_cos=no
12639 fi
12640 rm -f conftest.err conftest.$ac_objext \
12641       conftest$ac_exeext conftest.$ac_ext
12642 LIBS=$ac_check_lib_save_LIBS
12643 fi
12644 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
12645 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
12646 if test $ac_cv_lib_m_cos = yes; then
12647   LIBM="-lm"
12648 fi
12649
12650   ;;
12651 esac
12652
12653
12654
12655 # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
12656 SHARED_LDFLAGS=
12657 SHARED_LIBADD=
12658 SHARED_DEPENDENCIES=
12659 if test "$enable_shared" = "yes"; then
12660 # When building a shared libopcodes, link against the pic version of libiberty
12661 # so that apps that use libopcodes won't need libiberty just to satisfy any
12662 # libopcodes references.
12663 # We can't do that if a pic libiberty is unavailable since including non-pic
12664 # code would insert text relocations into libopcodes.
12665 # Note that linking against libbfd as we do here, which is itself linked
12666 # against libiberty, may not satisfy all the libopcodes libiberty references
12667 # since libbfd may not pull in the entirety of libiberty.
12668   x=`sed -n -e 's/^[    ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12669   if test -n "$x"; then
12670     SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
12671   fi
12672
12673   case "${host}" in
12674     *-*-cygwin*)
12675       SHARED_LDFLAGS="-no-undefined"
12676       SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
12677       ;;
12678    *-*-darwin*)
12679      SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.dylib ${SHARED_LIBADD}"
12680      SHARED_DEPENDENCIES="../bfd/libbfd.la"
12681      ;;
12682     *)
12683       case "$host_vendor" in
12684         hp)
12685           SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.sl ${SHARED_LIBADD}"
12686           ;;
12687         *)
12688           SHARED_LIBADD="-Wl,`pwd`/../bfd/.libs/libbfd.so ${SHARED_LIBADD}"
12689           ;;
12690       esac
12691       SHARED_DEPENDENCIES="../bfd/libbfd.la"
12692       ;;
12693   esac
12694
12695   if test -n "$SHARED_LIBADD"; then
12696     if test -n "$LIBM"; then
12697       if test x"$bfd_cv_ld_as_needed" = xyes; then
12698         # Link against libm only when needed.  Put -lc, -lm inside -Wl
12699         # to stop libtool reordering these options.
12700         SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
12701       else
12702         SHARED_LIBADD="$SHARED_LIBADD $LIBM"
12703       fi
12704     fi
12705   fi
12706 fi
12707
12708
12709
12710
12711 # target-specific stuff:
12712
12713 # Canonicalize the secondary target names.
12714 if test -n "$enable_targets" ; then
12715     for targ in `echo $enable_targets | sed 's/,/ /g'`
12716     do
12717         result=`$ac_config_sub $targ 2>/dev/null`
12718         if test -n "$result" ; then
12719             canon_targets="$canon_targets $result"
12720         else
12721             # Allow targets that config.sub doesn't recognize, like "all".
12722             canon_targets="$canon_targets $targ"
12723         fi
12724     done
12725 fi
12726
12727 all_targets=false
12728 selarchs=
12729 for targ in $target $canon_targets
12730 do
12731     if test "x$targ" = "xall" ; then
12732         all_targets=true
12733     else
12734         . $srcdir/../bfd/config.bfd
12735         selarchs="$selarchs $targ_archs"
12736     fi
12737 done
12738
12739 # Utility var, documents generic cgen support files.
12740
12741 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
12742
12743 # We don't do any links based on the target system, just makefile config.
12744
12745 if test x${all_targets} = xfalse ; then
12746
12747     # Target architecture .o files.
12748     ta=
12749
12750     for arch in $selarchs
12751     do
12752         ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
12753         archdefs="$archdefs -DARCH_$ad"
12754         case "$arch" in
12755         bfd_alpha_arch)         ta="$ta alpha-dis.lo alpha-opc.lo" ;;
12756         bfd_arc_arch)           ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
12757         bfd_arm_arch)           ta="$ta arm-dis.lo" ;;
12758         bfd_avr_arch)           ta="$ta avr-dis.lo" ;;
12759         bfd_bfin_arch)          ta="$ta bfin-dis.lo" ;;
12760         bfd_cr16_arch)          ta="$ta cr16-dis.lo cr16-opc.lo" ;;
12761         bfd_cris_arch)          ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
12762         bfd_crx_arch)           ta="$ta crx-dis.lo crx-opc.lo" ;;
12763         bfd_d10v_arch)          ta="$ta d10v-dis.lo d10v-opc.lo" ;;
12764         bfd_d30v_arch)          ta="$ta d30v-dis.lo d30v-opc.lo" ;;
12765         bfd_dlx_arch)           ta="$ta dlx-dis.lo" ;;
12766         bfd_fr30_arch)          ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
12767         bfd_frv_arch)           ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
12768         bfd_moxie_arch)         ta="$ta moxie-dis.lo moxie-opc.lo" ;;
12769         bfd_h8300_arch)         ta="$ta h8300-dis.lo" ;;
12770         bfd_h8500_arch)         ta="$ta h8500-dis.lo" ;;
12771         bfd_hppa_arch)          ta="$ta hppa-dis.lo" ;;
12772         bfd_i370_arch)          ta="$ta i370-dis.lo i370-opc.lo" ;;
12773         bfd_i386_arch)          ta="$ta i386-dis.lo i386-opc.lo" ;;
12774         bfd_i860_arch)          ta="$ta i860-dis.lo" ;;
12775         bfd_i960_arch)          ta="$ta i960-dis.lo" ;;
12776         bfd_ia64_arch)          ta="$ta ia64-dis.lo ia64-opc.lo" ;;
12777         bfd_ip2k_arch)          ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
12778         bfd_iq2000_arch)        ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
12779         bfd_lm32_arch)          ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;;
12780         bfd_m32c_arch)          ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
12781         bfd_m32r_arch)          ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;;
12782         bfd_m68hc11_arch)       ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12783         bfd_m68hc12_arch)       ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
12784         bfd_m68k_arch)          ta="$ta m68k-dis.lo m68k-opc.lo" ;;
12785         bfd_m88k_arch)          ta="$ta m88k-dis.lo" ;;
12786         bfd_maxq_arch)          ta="$ta maxq-dis.lo" ;;
12787         bfd_mcore_arch)         ta="$ta mcore-dis.lo" ;;
12788         bfd_mep_arch)           ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
12789         bfd_mips_arch)          ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
12790         bfd_mmix_arch)          ta="$ta mmix-dis.lo mmix-opc.lo" ;;
12791         bfd_mn10200_arch)       ta="$ta m10200-dis.lo m10200-opc.lo" ;;
12792         bfd_mn10300_arch)       ta="$ta m10300-dis.lo m10300-opc.lo" ;;
12793         bfd_mt_arch)            ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
12794         bfd_msp430_arch)        ta="$ta msp430-dis.lo" ;;
12795         bfd_ns32k_arch)         ta="$ta ns32k-dis.lo" ;;
12796         bfd_openrisc_arch)      ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
12797         bfd_or32_arch)          ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
12798         bfd_pdp11_arch)         ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
12799         bfd_pj_arch)            ta="$ta pj-dis.lo pj-opc.lo" ;;
12800         bfd_powerpc_arch)       ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12801         bfd_powerpc_64_arch)    ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12802         bfd_pyramid_arch)       ;;
12803         bfd_romp_arch)          ;;
12804         bfd_rs6000_arch)        ta="$ta ppc-dis.lo ppc-opc.lo" ;;
12805         bfd_s390_arch)          ta="$ta s390-dis.lo s390-opc.lo" ;;
12806         bfd_score_arch)         ta="$ta score-dis.lo score7-dis.lo" ;;
12807         bfd_sh_arch)
12808           # We can't decide what we want just from the CPU family.
12809           # We want SH5 support unless a specific version of sh is
12810           # specified, as in sh3-elf, sh3b-linux-gnu, etc.
12811           # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
12812           for t in $target $canon_targets; do
12813             case $t in
12814               all |  sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
12815               sh-*-linux* | shl-*-linux*)
12816                                 ta="$ta sh64-dis.lo sh64-opc.lo"
12817                                 archdefs="$archdefs -DINCLUDE_SHMEDIA"
12818                                 break;;
12819             esac;
12820           done
12821                                 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
12822         bfd_sparc_arch)         ta="$ta sparc-dis.lo sparc-opc.lo" ;;
12823         bfd_spu_arch)           ta="$ta spu-dis.lo spu-opc.lo" ;;
12824         bfd_tahoe_arch)         ;;
12825         bfd_tic30_arch)         ta="$ta tic30-dis.lo" ;;
12826         bfd_tic4x_arch)         ta="$ta tic4x-dis.lo" ;;
12827         bfd_tic54x_arch)        ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
12828         bfd_tic80_arch)         ta="$ta tic80-dis.lo tic80-opc.lo" ;;
12829         bfd_v850_arch)          ta="$ta v850-opc.lo v850-dis.lo" ;;
12830         bfd_v850e_arch)         ta="$ta v850-opc.lo v850-dis.lo" ;;
12831         bfd_v850ea_arch)        ta="$ta v850-opc.lo v850-dis.lo" ;;
12832         bfd_vax_arch)           ta="$ta vax-dis.lo" ;;
12833         bfd_w65_arch)           ta="$ta w65-dis.lo" ;;
12834         bfd_we32k_arch)         ;;
12835         bfd_xc16x_arch)         ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
12836         bfd_xstormy16_arch)     ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
12837         bfd_xtensa_arch)        ta="$ta xtensa-dis.lo" ;;
12838         bfd_z80_arch)           ta="$ta z80-dis.lo" ;;
12839         bfd_z8k_arch)           ta="$ta z8k-dis.lo" ;;
12840
12841         "")                     ;;
12842         *)              { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
12843 echo "$as_me: error: *** unknown target architecture $arch" >&2;}
12844    { (exit 1); exit 1; }; } ;;
12845         esac
12846     done
12847
12848     if test $using_cgen = yes ; then
12849         ta="$ta $cgen_files"
12850     fi
12851
12852     # Weed out duplicate .o files.
12853     f=""
12854     for i in $ta ; do
12855         case " $f " in
12856         *" $i "*) ;;
12857         *) f="$f $i" ;;
12858         esac
12859     done
12860     ta="$f"
12861
12862     # And duplicate -D flags.
12863     f=""
12864     for i in $archdefs ; do
12865         case " $f " in
12866         *" $i "*) ;;
12867         *) f="$f $i" ;;
12868         esac
12869     done
12870     archdefs="$f"
12871
12872     BFD_MACHINES="$ta"
12873
12874 else    # all_targets is true
12875     archdefs=-DARCH_all
12876     BFD_MACHINES='$(ALL_MACHINES)'
12877 fi
12878
12879
12880
12881
12882                     ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
12883
12884 cat >confcache <<\_ACEOF
12885 # This file is a shell script that caches the results of configure
12886 # tests run on this system so they can be shared between configure
12887 # scripts and configure runs, see configure's option --config-cache.
12888 # It is not useful on other systems.  If it contains results you don't
12889 # want to keep, you may remove or edit it.
12890 #
12891 # config.status only pays attention to the cache file if you give it
12892 # the --recheck option to rerun configure.
12893 #
12894 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12895 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12896 # following values.
12897
12898 _ACEOF
12899
12900 # The following way of writing the cache mishandles newlines in values,
12901 # but we know of no workaround that is simple, portable, and efficient.
12902 # So, don't put newlines in cache variables' values.
12903 # Ultrix sh set writes to stderr and can't be redirected directly,
12904 # and sets the high bit in the cache file unless we assign to the vars.
12905 {
12906   (set) 2>&1 |
12907     case `(ac_space=' '; set | grep ac_space) 2>&1` in
12908     *ac_space=\ *)
12909       # `set' does not quote correctly, so add quotes (double-quote
12910       # substitution turns \\\\ into \\, and sed turns \\ into \).
12911       sed -n \
12912         "s/'/'\\\\''/g;
12913           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12914       ;;
12915     *)
12916       # `set' quotes correctly as required by POSIX, so do not add quotes.
12917       sed -n \
12918         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12919       ;;
12920     esac;
12921 } |
12922   sed '
12923      t clear
12924      : clear
12925      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12926      t end
12927      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12928      : end' >>confcache
12929 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12930   if test -w $cache_file; then
12931     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12932     cat confcache >$cache_file
12933   else
12934     echo "not updating unwritable cache $cache_file"
12935   fi
12936 fi
12937 rm -f confcache
12938
12939 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12940 # Let make expand exec_prefix.
12941 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12942
12943 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12944 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12945 # trailing colons and then remove the whole line if VPATH becomes empty
12946 # (actually we leave an empty line to preserve line numbers).
12947 if test "x$srcdir" = x.; then
12948   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12949 s/:*\$(srcdir):*/:/;
12950 s/:*\${srcdir}:*/:/;
12951 s/:*@srcdir@:*/:/;
12952 s/^\([^=]*=[     ]*\):*/\1/;
12953 s/:*$//;
12954 s/^[^=]*=[       ]*$//;
12955 }'
12956 fi
12957
12958 DEFS=-DHAVE_CONFIG_H
12959
12960 ac_libobjs=
12961 ac_ltlibobjs=
12962 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12963   # 1. Remove the extension, and $U if already installed.
12964   ac_i=`echo "$ac_i" |
12965          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12966   # 2. Add them.
12967   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12968   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12969 done
12970 LIBOBJS=$ac_libobjs
12971
12972 LTLIBOBJS=$ac_ltlibobjs
12973
12974
12975 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12976   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12977 Usually this means the macro was only invoked conditionally." >&5
12978 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12979 Usually this means the macro was only invoked conditionally." >&2;}
12980    { (exit 1); exit 1; }; }
12981 fi
12982 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12983   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12984 Usually this means the macro was only invoked conditionally." >&5
12985 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12986 Usually this means the macro was only invoked conditionally." >&2;}
12987    { (exit 1); exit 1; }; }
12988 fi
12989 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12990   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12991 Usually this means the macro was only invoked conditionally." >&5
12992 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12993 Usually this means the macro was only invoked conditionally." >&2;}
12994    { (exit 1); exit 1; }; }
12995 fi
12996 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12997   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12998 Usually this means the macro was only invoked conditionally." >&5
12999 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
13000 Usually this means the macro was only invoked conditionally." >&2;}
13001    { (exit 1); exit 1; }; }
13002 fi
13003 if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
13004   { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
13005 Usually this means the macro was only invoked conditionally." >&5
13006 echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
13007 Usually this means the macro was only invoked conditionally." >&2;}
13008    { (exit 1); exit 1; }; }
13009 fi
13010
13011 : ${CONFIG_STATUS=./config.status}
13012 ac_clean_files_save=$ac_clean_files
13013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13014 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13015 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13016 cat >$CONFIG_STATUS <<_ACEOF
13017 #! $SHELL
13018 # Generated by $as_me.
13019 # Run this file to recreate the current configuration.
13020 # Compiler output produced by configure, useful for debugging
13021 # configure, is in config.log if it exists.
13022
13023 debug=false
13024 ac_cs_recheck=false
13025 ac_cs_silent=false
13026 SHELL=\${CONFIG_SHELL-$SHELL}
13027 _ACEOF
13028
13029 cat >>$CONFIG_STATUS <<\_ACEOF
13030 ## --------------------- ##
13031 ## M4sh Initialization.  ##
13032 ## --------------------- ##
13033
13034 # Be Bourne compatible
13035 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13036   emulate sh
13037   NULLCMD=:
13038   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13039   # is contrary to our usage.  Disable this feature.
13040   alias -g '${1+"$@"}'='"$@"'
13041 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13042   set -o posix
13043 fi
13044 DUALCASE=1; export DUALCASE # for MKS sh
13045
13046 # Support unset when possible.
13047 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13048   as_unset=unset
13049 else
13050   as_unset=false
13051 fi
13052
13053
13054 # Work around bugs in pre-3.0 UWIN ksh.
13055 $as_unset ENV MAIL MAILPATH
13056 PS1='$ '
13057 PS2='> '
13058 PS4='+ '
13059
13060 # NLS nuisances.
13061 for as_var in \
13062   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13063   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13064   LC_TELEPHONE LC_TIME
13065 do
13066   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13067     eval $as_var=C; export $as_var
13068   else
13069     $as_unset $as_var
13070   fi
13071 done
13072
13073 # Required to use basename.
13074 if expr a : '\(a\)' >/dev/null 2>&1; then
13075   as_expr=expr
13076 else
13077   as_expr=false
13078 fi
13079
13080 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13081   as_basename=basename
13082 else
13083   as_basename=false
13084 fi
13085
13086
13087 # Name of the executable.
13088 as_me=`$as_basename "$0" ||
13089 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13090          X"$0" : 'X\(//\)$' \| \
13091          X"$0" : 'X\(/\)$' \| \
13092          .     : '\(.\)' 2>/dev/null ||
13093 echo X/"$0" |
13094     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13095           /^X\/\(\/\/\)$/{ s//\1/; q; }
13096           /^X\/\(\/\).*/{ s//\1/; q; }
13097           s/.*/./; q'`
13098
13099
13100 # PATH needs CR, and LINENO needs CR and PATH.
13101 # Avoid depending upon Character Ranges.
13102 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13103 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13104 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13105 as_cr_digits='0123456789'
13106 as_cr_alnum=$as_cr_Letters$as_cr_digits
13107
13108 # The user is always right.
13109 if test "${PATH_SEPARATOR+set}" != set; then
13110   echo "#! /bin/sh" >conf$$.sh
13111   echo  "exit 0"   >>conf$$.sh
13112   chmod +x conf$$.sh
13113   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13114     PATH_SEPARATOR=';'
13115   else
13116     PATH_SEPARATOR=:
13117   fi
13118   rm -f conf$$.sh
13119 fi
13120
13121
13122   as_lineno_1=$LINENO
13123   as_lineno_2=$LINENO
13124   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13125   test "x$as_lineno_1" != "x$as_lineno_2" &&
13126   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13127   # Find who we are.  Look in the path if we contain no path at all
13128   # relative or not.
13129   case $0 in
13130     *[\\/]* ) as_myself=$0 ;;
13131     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132 for as_dir in $PATH
13133 do
13134   IFS=$as_save_IFS
13135   test -z "$as_dir" && as_dir=.
13136   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13137 done
13138
13139        ;;
13140   esac
13141   # We did not find ourselves, most probably we were run as `sh COMMAND'
13142   # in which case we are not to be found in the path.
13143   if test "x$as_myself" = x; then
13144     as_myself=$0
13145   fi
13146   if test ! -f "$as_myself"; then
13147     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13148 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13149    { (exit 1); exit 1; }; }
13150   fi
13151   case $CONFIG_SHELL in
13152   '')
13153     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13155 do
13156   IFS=$as_save_IFS
13157   test -z "$as_dir" && as_dir=.
13158   for as_base in sh bash ksh sh5; do
13159          case $as_dir in
13160          /*)
13161            if ("$as_dir/$as_base" -c '
13162   as_lineno_1=$LINENO
13163   as_lineno_2=$LINENO
13164   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13165   test "x$as_lineno_1" != "x$as_lineno_2" &&
13166   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13167              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13168              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13169              CONFIG_SHELL=$as_dir/$as_base
13170              export CONFIG_SHELL
13171              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13172            fi;;
13173          esac
13174        done
13175 done
13176 ;;
13177   esac
13178
13179   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13180   # uniformly replaced by the line number.  The first 'sed' inserts a
13181   # line-number line before each line; the second 'sed' does the real
13182   # work.  The second script uses 'N' to pair each line-number line
13183   # with the numbered line, and appends trailing '-' during
13184   # substitution so that $LINENO is not a special case at line end.
13185   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13186   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13187   sed '=' <$as_myself |
13188     sed '
13189       N
13190       s,$,-,
13191       : loop
13192       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13193       t loop
13194       s,-$,,
13195       s,^['$as_cr_digits']*\n,,
13196     ' >$as_me.lineno &&
13197   chmod +x $as_me.lineno ||
13198     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13199 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13200    { (exit 1); exit 1; }; }
13201
13202   # Don't try to exec as it changes $[0], causing all sort of problems
13203   # (the dirname of $[0] is not the place where we might find the
13204   # original and so on.  Autoconf is especially sensible to this).
13205   . ./$as_me.lineno
13206   # Exit status is that of the last command.
13207   exit
13208 }
13209
13210
13211 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13212   *c*,-n*) ECHO_N= ECHO_C='
13213 ' ECHO_T='      ' ;;
13214   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13215   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13216 esac
13217
13218 if expr a : '\(a\)' >/dev/null 2>&1; then
13219   as_expr=expr
13220 else
13221   as_expr=false
13222 fi
13223
13224 rm -f conf$$ conf$$.exe conf$$.file
13225 echo >conf$$.file
13226 if ln -s conf$$.file conf$$ 2>/dev/null; then
13227   # We could just check for DJGPP; but this test a) works b) is more generic
13228   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13229   if test -f conf$$.exe; then
13230     # Don't use ln at all; we don't have any links
13231     as_ln_s='cp -p'
13232   else
13233     as_ln_s='ln -s'
13234   fi
13235 elif ln conf$$.file conf$$ 2>/dev/null; then
13236   as_ln_s=ln
13237 else
13238   as_ln_s='cp -p'
13239 fi
13240 rm -f conf$$ conf$$.exe conf$$.file
13241
13242 if mkdir -p . 2>/dev/null; then
13243   as_mkdir_p=:
13244 else
13245   test -d ./-p && rmdir ./-p
13246   as_mkdir_p=false
13247 fi
13248
13249 as_executable_p="test -f"
13250
13251 # Sed expression to map a string onto a valid CPP name.
13252 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13253
13254 # Sed expression to map a string onto a valid variable name.
13255 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13256
13257
13258 # IFS
13259 # We need space, tab and new line, in precisely that order.
13260 as_nl='
13261 '
13262 IFS="   $as_nl"
13263
13264 # CDPATH.
13265 $as_unset CDPATH
13266
13267 exec 6>&1
13268
13269 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13270 # report actual input values of CONFIG_FILES etc. instead of their
13271 # values after options handling.  Logging --version etc. is OK.
13272 exec 5>>config.log
13273 {
13274   echo
13275   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13276 ## Running $as_me. ##
13277 _ASBOX
13278 } >&5
13279 cat >&5 <<_CSEOF
13280
13281 This file was extended by $as_me, which was
13282 generated by GNU Autoconf 2.59.  Invocation command line was
13283
13284   CONFIG_FILES    = $CONFIG_FILES
13285   CONFIG_HEADERS  = $CONFIG_HEADERS
13286   CONFIG_LINKS    = $CONFIG_LINKS
13287   CONFIG_COMMANDS = $CONFIG_COMMANDS
13288   $ $0 $@
13289
13290 _CSEOF
13291 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13292 echo >&5
13293 _ACEOF
13294
13295 # Files that config.status was made for.
13296 if test -n "$ac_config_files"; then
13297   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13298 fi
13299
13300 if test -n "$ac_config_headers"; then
13301   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13302 fi
13303
13304 if test -n "$ac_config_links"; then
13305   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13306 fi
13307
13308 if test -n "$ac_config_commands"; then
13309   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13310 fi
13311
13312 cat >>$CONFIG_STATUS <<\_ACEOF
13313
13314 ac_cs_usage="\
13315 \`$as_me' instantiates files from templates according to the
13316 current configuration.
13317
13318 Usage: $0 [OPTIONS] [FILE]...
13319
13320   -h, --help       print this help, then exit
13321   -V, --version    print version number, then exit
13322   -q, --quiet      do not print progress messages
13323   -d, --debug      don't remove temporary files
13324       --recheck    update $as_me by reconfiguring in the same conditions
13325   --file=FILE[:TEMPLATE]
13326                    instantiate the configuration file FILE
13327   --header=FILE[:TEMPLATE]
13328                    instantiate the configuration header FILE
13329
13330 Configuration files:
13331 $config_files
13332
13333 Configuration headers:
13334 $config_headers
13335
13336 Configuration commands:
13337 $config_commands
13338
13339 Report bugs to <bug-autoconf@gnu.org>."
13340 _ACEOF
13341
13342 cat >>$CONFIG_STATUS <<_ACEOF
13343 ac_cs_version="\\
13344 config.status
13345 configured by $0, generated by GNU Autoconf 2.59,
13346   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13347
13348 Copyright (C) 2003 Free Software Foundation, Inc.
13349 This config.status script is free software; the Free Software Foundation
13350 gives unlimited permission to copy, distribute and modify it."
13351 srcdir=$srcdir
13352 INSTALL="$INSTALL"
13353 _ACEOF
13354
13355 cat >>$CONFIG_STATUS <<\_ACEOF
13356 # If no file are specified by the user, then we need to provide default
13357 # value.  By we need to know if files were specified by the user.
13358 ac_need_defaults=:
13359 while test $# != 0
13360 do
13361   case $1 in
13362   --*=*)
13363     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13364     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13365     ac_shift=:
13366     ;;
13367   -*)
13368     ac_option=$1
13369     ac_optarg=$2
13370     ac_shift=shift
13371     ;;
13372   *) # This is not an option, so the user has probably given explicit
13373      # arguments.
13374      ac_option=$1
13375      ac_need_defaults=false;;
13376   esac
13377
13378   case $ac_option in
13379   # Handling of the options.
13380 _ACEOF
13381 cat >>$CONFIG_STATUS <<\_ACEOF
13382   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13383     ac_cs_recheck=: ;;
13384   --version | --vers* | -V )
13385     echo "$ac_cs_version"; exit 0 ;;
13386   --he | --h)
13387     # Conflict between --help and --header
13388     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13389 Try \`$0 --help' for more information." >&5
13390 echo "$as_me: error: ambiguous option: $1
13391 Try \`$0 --help' for more information." >&2;}
13392    { (exit 1); exit 1; }; };;
13393   --help | --hel | -h )
13394     echo "$ac_cs_usage"; exit 0 ;;
13395   --debug | --d* | -d )
13396     debug=: ;;
13397   --file | --fil | --fi | --f )
13398     $ac_shift
13399     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13400     ac_need_defaults=false;;
13401   --header | --heade | --head | --hea )
13402     $ac_shift
13403     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13404     ac_need_defaults=false;;
13405   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13406   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13407     ac_cs_silent=: ;;
13408
13409   # This is an error.
13410   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13411 Try \`$0 --help' for more information." >&5
13412 echo "$as_me: error: unrecognized option: $1
13413 Try \`$0 --help' for more information." >&2;}
13414    { (exit 1); exit 1; }; } ;;
13415
13416   *) ac_config_targets="$ac_config_targets $1" ;;
13417
13418   esac
13419   shift
13420 done
13421
13422 ac_configure_extra_args=
13423
13424 if $ac_cs_silent; then
13425   exec 6>/dev/null
13426   ac_configure_extra_args="$ac_configure_extra_args --silent"
13427 fi
13428
13429 _ACEOF
13430 cat >>$CONFIG_STATUS <<_ACEOF
13431 if \$ac_cs_recheck; then
13432   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13433   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13434 fi
13435
13436 _ACEOF
13437
13438 cat >>$CONFIG_STATUS <<_ACEOF
13439 #
13440 # INIT-COMMANDS section.
13441 #
13442
13443 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13444
13445
13446 # The HP-UX ksh and POSIX shell print the target directory to stdout
13447 # if CDPATH is set.
13448 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13449
13450 sed_quote_subst='$sed_quote_subst'
13451 double_quote_subst='$double_quote_subst'
13452 delay_variable_subst='$delay_variable_subst'
13453 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13454 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13455 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13456 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13457 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13458 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13459 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13460 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13461 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13462 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13463 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13464 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13465 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13466 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13467 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13468 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13469 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13470 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13471 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13472 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13473 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13474 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13475 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13476 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13477 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13478 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13479 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13480 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13481 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13482 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13483 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13484 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13485 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13486 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13487 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13488 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13489 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13490 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13491 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13492 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13493 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13494 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13495 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13496 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13497 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"`'
13498 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"`'
13499 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13500 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13501 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13502 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13503 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13504 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13505 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13506 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13507 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13508 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13509 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13510 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13511 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13512 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13513 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13514 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13515 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13516 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13517 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13518 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13519 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13520 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13521 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13522 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13523 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13524 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13525 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13526 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13527 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13528 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13529 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13530 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13531 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13532 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13533 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13534 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13535 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13536 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13537 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13538 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13539 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13540 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13541 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13542 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13543 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13544 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13545 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13546 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13547 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13548 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13549 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13550 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13551 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13552 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13553 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13554 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13555 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13556 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13557 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13558 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13559 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13560 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13561 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13562 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13563 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13564 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13565 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13566 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13567 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13568 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13569 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13570 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13571
13572 LTCC='$LTCC'
13573 LTCFLAGS='$LTCFLAGS'
13574 compiler='$compiler_DEFAULT'
13575
13576 # Quote evaled strings.
13577 for var in SED \
13578 GREP \
13579 EGREP \
13580 FGREP \
13581 LD \
13582 NM \
13583 LN_S \
13584 lt_SP2NL \
13585 lt_NL2SP \
13586 reload_flag \
13587 OBJDUMP \
13588 deplibs_check_method \
13589 file_magic_cmd \
13590 AR \
13591 AR_FLAGS \
13592 STRIP \
13593 RANLIB \
13594 CC \
13595 CFLAGS \
13596 compiler \
13597 lt_cv_sys_global_symbol_pipe \
13598 lt_cv_sys_global_symbol_to_cdecl \
13599 lt_cv_sys_global_symbol_to_c_name_address \
13600 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13601 SHELL \
13602 ECHO \
13603 lt_prog_compiler_no_builtin_flag \
13604 lt_prog_compiler_wl \
13605 lt_prog_compiler_pic \
13606 lt_prog_compiler_static \
13607 lt_cv_prog_compiler_c_o \
13608 need_locks \
13609 DSYMUTIL \
13610 NMEDIT \
13611 LIPO \
13612 OTOOL \
13613 OTOOL64 \
13614 shrext_cmds \
13615 export_dynamic_flag_spec \
13616 whole_archive_flag_spec \
13617 compiler_needs_object \
13618 with_gnu_ld \
13619 allow_undefined_flag \
13620 no_undefined_flag \
13621 hardcode_libdir_flag_spec \
13622 hardcode_libdir_flag_spec_ld \
13623 hardcode_libdir_separator \
13624 fix_srcfile_path \
13625 exclude_expsyms \
13626 include_expsyms \
13627 file_list_spec \
13628 variables_saved_for_relink \
13629 libname_spec \
13630 library_names_spec \
13631 soname_spec \
13632 finish_eval \
13633 old_striplib \
13634 striplib; do
13635     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13636     *[\\\\\\\`\\"\\\$]*)
13637       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13638       ;;
13639     *)
13640       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13641       ;;
13642     esac
13643 done
13644
13645 # Double-quote double-evaled strings.
13646 for var in reload_cmds \
13647 old_postinstall_cmds \
13648 old_postuninstall_cmds \
13649 old_archive_cmds \
13650 extract_expsyms_cmds \
13651 old_archive_from_new_cmds \
13652 old_archive_from_expsyms_cmds \
13653 archive_cmds \
13654 archive_expsym_cmds \
13655 module_cmds \
13656 module_expsym_cmds \
13657 export_symbols_cmds \
13658 prelink_cmds \
13659 postinstall_cmds \
13660 postuninstall_cmds \
13661 finish_cmds \
13662 sys_lib_search_path_spec \
13663 sys_lib_dlsearch_path_spec; do
13664     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13665     *[\\\\\\\`\\"\\\$]*)
13666       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13667       ;;
13668     *)
13669       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13670       ;;
13671     esac
13672 done
13673
13674 # Fix-up fallback echo if it was mangled by the above quoting rules.
13675 case \$lt_ECHO in
13676 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13677   ;;
13678 esac
13679
13680 ac_aux_dir='$ac_aux_dir'
13681 xsi_shell='$xsi_shell'
13682 lt_shell_append='$lt_shell_append'
13683
13684 # See if we are running on zsh, and set the options which allow our
13685 # commands through without removal of \ escapes INIT.
13686 if test -n "\${ZSH_VERSION+set}" ; then
13687    setopt NO_GLOB_SUBST
13688 fi
13689
13690
13691     PACKAGE='$PACKAGE'
13692     VERSION='$VERSION'
13693     TIMESTAMP='$TIMESTAMP'
13694     RM='$RM'
13695     ofile='$ofile'
13696
13697
13698
13699 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13700     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13701     # from automake.
13702     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13703     # Capture the value of LINGUAS because we need it to compute CATALOGS.
13704     LINGUAS="${LINGUAS-%UNSET%}"
13705
13706
13707 _ACEOF
13708
13709
13710
13711 cat >>$CONFIG_STATUS <<\_ACEOF
13712 for ac_config_target in $ac_config_targets
13713 do
13714   case "$ac_config_target" in
13715   # Handling of arguments.
13716   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13717   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13718   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13719   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13720   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13721   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13722   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13723 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13724    { (exit 1); exit 1; }; };;
13725   esac
13726 done
13727
13728 # If the user did not use the arguments to specify the items to instantiate,
13729 # then the envvar interface is used.  Set only those that are not.
13730 # We use the long form for the default assignment because of an extremely
13731 # bizarre bug on SunOS 4.1.3.
13732 if $ac_need_defaults; then
13733   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13734   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13735   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13736 fi
13737
13738 # Have a temporary directory for convenience.  Make it in the build tree
13739 # simply because there is no reason to put it here, and in addition,
13740 # creating and moving files from /tmp can sometimes cause problems.
13741 # Create a temporary directory, and hook for its removal unless debugging.
13742 $debug ||
13743 {
13744   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13745   trap '{ (exit 1); exit 1; }' 1 2 13 15
13746 }
13747
13748 # Create a (secure) tmp directory for tmp files.
13749
13750 {
13751   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13752   test -n "$tmp" && test -d "$tmp"
13753 }  ||
13754 {
13755   tmp=./confstat$$-$RANDOM
13756   (umask 077 && mkdir $tmp)
13757 } ||
13758 {
13759    echo "$me: cannot create a temporary directory in ." >&2
13760    { (exit 1); exit 1; }
13761 }
13762
13763 _ACEOF
13764
13765 cat >>$CONFIG_STATUS <<_ACEOF
13766
13767 #
13768 # CONFIG_FILES section.
13769 #
13770
13771 # No need to generate the scripts if there are no CONFIG_FILES.
13772 # This happens for instance when ./config.status config.h
13773 if test -n "\$CONFIG_FILES"; then
13774   # Protect against being on the right side of a sed subst in config.status.
13775   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13776    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13777 s,@SHELL@,$SHELL,;t t
13778 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13779 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13780 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13781 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13782 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13783 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13784 s,@exec_prefix@,$exec_prefix,;t t
13785 s,@prefix@,$prefix,;t t
13786 s,@program_transform_name@,$program_transform_name,;t t
13787 s,@bindir@,$bindir,;t t
13788 s,@sbindir@,$sbindir,;t t
13789 s,@libexecdir@,$libexecdir,;t t
13790 s,@datadir@,$datadir,;t t
13791 s,@sysconfdir@,$sysconfdir,;t t
13792 s,@sharedstatedir@,$sharedstatedir,;t t
13793 s,@localstatedir@,$localstatedir,;t t
13794 s,@libdir@,$libdir,;t t
13795 s,@includedir@,$includedir,;t t
13796 s,@oldincludedir@,$oldincludedir,;t t
13797 s,@infodir@,$infodir,;t t
13798 s,@mandir@,$mandir,;t t
13799 s,@build_alias@,$build_alias,;t t
13800 s,@host_alias@,$host_alias,;t t
13801 s,@target_alias@,$target_alias,;t t
13802 s,@DEFS@,$DEFS,;t t
13803 s,@ECHO_C@,$ECHO_C,;t t
13804 s,@ECHO_N@,$ECHO_N,;t t
13805 s,@ECHO_T@,$ECHO_T,;t t
13806 s,@LIBS@,$LIBS,;t t
13807 s,@build@,$build,;t t
13808 s,@build_cpu@,$build_cpu,;t t
13809 s,@build_vendor@,$build_vendor,;t t
13810 s,@build_os@,$build_os,;t t
13811 s,@host@,$host,;t t
13812 s,@host_cpu@,$host_cpu,;t t
13813 s,@host_vendor@,$host_vendor,;t t
13814 s,@host_os@,$host_os,;t t
13815 s,@target@,$target,;t t
13816 s,@target_cpu@,$target_cpu,;t t
13817 s,@target_vendor@,$target_vendor,;t t
13818 s,@target_os@,$target_os,;t t
13819 s,@CC@,$CC,;t t
13820 s,@CFLAGS@,$CFLAGS,;t t
13821 s,@LDFLAGS@,$LDFLAGS,;t t
13822 s,@CPPFLAGS@,$CPPFLAGS,;t t
13823 s,@ac_ct_CC@,$ac_ct_CC,;t t
13824 s,@EXEEXT@,$EXEEXT,;t t
13825 s,@OBJEXT@,$OBJEXT,;t t
13826 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13827 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13828 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13829 s,@CYGPATH_W@,$CYGPATH_W,;t t
13830 s,@PACKAGE@,$PACKAGE,;t t
13831 s,@VERSION@,$VERSION,;t t
13832 s,@ACLOCAL@,$ACLOCAL,;t t
13833 s,@AUTOCONF@,$AUTOCONF,;t t
13834 s,@AUTOMAKE@,$AUTOMAKE,;t t
13835 s,@AUTOHEADER@,$AUTOHEADER,;t t
13836 s,@MAKEINFO@,$MAKEINFO,;t t
13837 s,@install_sh@,$install_sh,;t t
13838 s,@STRIP@,$STRIP,;t t
13839 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13840 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13841 s,@mkdir_p@,$mkdir_p,;t t
13842 s,@AWK@,$AWK,;t t
13843 s,@SET_MAKE@,$SET_MAKE,;t t
13844 s,@am__leading_dot@,$am__leading_dot,;t t
13845 s,@AMTAR@,$AMTAR,;t t
13846 s,@am__tar@,$am__tar,;t t
13847 s,@am__untar@,$am__untar,;t t
13848 s,@DEPDIR@,$DEPDIR,;t t
13849 s,@am__include@,$am__include,;t t
13850 s,@am__quote@,$am__quote,;t t
13851 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13852 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13853 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13854 s,@CCDEPMODE@,$CCDEPMODE,;t t
13855 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13856 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13857 s,@CPP@,$CPP,;t t
13858 s,@EGREP@,$EGREP,;t t
13859 s,@AR@,$AR,;t t
13860 s,@ac_ct_AR@,$ac_ct_AR,;t t
13861 s,@RANLIB@,$RANLIB,;t t
13862 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13863 s,@LIBTOOL@,$LIBTOOL,;t t
13864 s,@SED@,$SED,;t t
13865 s,@FGREP@,$FGREP,;t t
13866 s,@GREP@,$GREP,;t t
13867 s,@LD@,$LD,;t t
13868 s,@DUMPBIN@,$DUMPBIN,;t t
13869 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13870 s,@NM@,$NM,;t t
13871 s,@LN_S@,$LN_S,;t t
13872 s,@OBJDUMP@,$OBJDUMP,;t t
13873 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
13874 s,@lt_ECHO@,$lt_ECHO,;t t
13875 s,@DSYMUTIL@,$DSYMUTIL,;t t
13876 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
13877 s,@NMEDIT@,$NMEDIT,;t t
13878 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
13879 s,@LIPO@,$LIPO,;t t
13880 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
13881 s,@OTOOL@,$OTOOL,;t t
13882 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
13883 s,@OTOOL64@,$OTOOL64,;t t
13884 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
13885 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13886 s,@NO_WERROR@,$NO_WERROR,;t t
13887 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13888 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13889 s,@MAINT@,$MAINT,;t t
13890 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13891 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
13892 s,@host_noncanonical@,$host_noncanonical,;t t
13893 s,@target_noncanonical@,$target_noncanonical,;t t
13894 s,@bfdlibdir@,$bfdlibdir,;t t
13895 s,@bfdincludedir@,$bfdincludedir,;t t
13896 s,@USE_NLS@,$USE_NLS,;t t
13897 s,@LIBINTL@,$LIBINTL,;t t
13898 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
13899 s,@INCINTL@,$INCINTL,;t t
13900 s,@XGETTEXT@,$XGETTEXT,;t t
13901 s,@GMSGFMT@,$GMSGFMT,;t t
13902 s,@POSUB@,$POSUB,;t t
13903 s,@CATALOGS@,$CATALOGS,;t t
13904 s,@DATADIRNAME@,$DATADIRNAME,;t t
13905 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13906 s,@GENCAT@,$GENCAT,;t t
13907 s,@CATOBJEXT@,$CATOBJEXT,;t t
13908 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13909 s,@MSGFMT@,$MSGFMT,;t t
13910 s,@MSGMERGE@,$MSGMERGE,;t t
13911 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13912 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13913 s,@HDEFINES@,$HDEFINES,;t t
13914 s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
13915 s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
13916 s,@cgendir@,$cgendir,;t t
13917 s,@LIBM@,$LIBM,;t t
13918 s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t
13919 s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t
13920 s,@SHARED_DEPENDENCIES@,$SHARED_DEPENDENCIES,;t t
13921 s,@archdefs@,$archdefs,;t t
13922 s,@BFD_MACHINES@,$BFD_MACHINES,;t t
13923 s,@LIBOBJS@,$LIBOBJS,;t t
13924 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13925 CEOF
13926
13927 _ACEOF
13928
13929   cat >>$CONFIG_STATUS <<\_ACEOF
13930   # Split the substitutions into bite-sized pieces for seds with
13931   # small command number limits, like on Digital OSF/1 and HP-UX.
13932   ac_max_sed_lines=48
13933   ac_sed_frag=1 # Number of current file.
13934   ac_beg=1 # First line for current file.
13935   ac_end=$ac_max_sed_lines # Line after last line for current file.
13936   ac_more_lines=:
13937   ac_sed_cmds=
13938   while $ac_more_lines; do
13939     if test $ac_beg -gt 1; then
13940       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13941     else
13942       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13943     fi
13944     if test ! -s $tmp/subs.frag; then
13945       ac_more_lines=false
13946     else
13947       # The purpose of the label and of the branching condition is to
13948       # speed up the sed processing (if there are no `@' at all, there
13949       # is no need to browse any of the substitutions).
13950       # These are the two extra sed commands mentioned above.
13951       (echo ':t
13952   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13953       if test -z "$ac_sed_cmds"; then
13954         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13955       else
13956         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13957       fi
13958       ac_sed_frag=`expr $ac_sed_frag + 1`
13959       ac_beg=$ac_end
13960       ac_end=`expr $ac_end + $ac_max_sed_lines`
13961     fi
13962   done
13963   if test -z "$ac_sed_cmds"; then
13964     ac_sed_cmds=cat
13965   fi
13966 fi # test -n "$CONFIG_FILES"
13967
13968 _ACEOF
13969 cat >>$CONFIG_STATUS <<\_ACEOF
13970 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13971   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13972   case $ac_file in
13973   - | *:- | *:-:* ) # input from stdin
13974         cat >$tmp/stdin
13975         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13976         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13977   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13978         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13979   * )   ac_file_in=$ac_file.in ;;
13980   esac
13981
13982   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13983   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13984 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13985          X"$ac_file" : 'X\(//\)[^/]' \| \
13986          X"$ac_file" : 'X\(//\)$' \| \
13987          X"$ac_file" : 'X\(/\)' \| \
13988          .     : '\(.\)' 2>/dev/null ||
13989 echo X"$ac_file" |
13990     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13991           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13992           /^X\(\/\/\)$/{ s//\1/; q; }
13993           /^X\(\/\).*/{ s//\1/; q; }
13994           s/.*/./; q'`
13995   { if $as_mkdir_p; then
13996     mkdir -p "$ac_dir"
13997   else
13998     as_dir="$ac_dir"
13999     as_dirs=
14000     while test ! -d "$as_dir"; do
14001       as_dirs="$as_dir $as_dirs"
14002       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14004          X"$as_dir" : 'X\(//\)[^/]' \| \
14005          X"$as_dir" : 'X\(//\)$' \| \
14006          X"$as_dir" : 'X\(/\)' \| \
14007          .     : '\(.\)' 2>/dev/null ||
14008 echo X"$as_dir" |
14009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14010           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14011           /^X\(\/\/\)$/{ s//\1/; q; }
14012           /^X\(\/\).*/{ s//\1/; q; }
14013           s/.*/./; q'`
14014     done
14015     test ! -n "$as_dirs" || mkdir $as_dirs
14016   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14017 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14018    { (exit 1); exit 1; }; }; }
14019
14020   ac_builddir=.
14021
14022 if test "$ac_dir" != .; then
14023   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14024   # A "../" for each directory in $ac_dir_suffix.
14025   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14026 else
14027   ac_dir_suffix= ac_top_builddir=
14028 fi
14029
14030 case $srcdir in
14031   .)  # No --srcdir option.  We are building in place.
14032     ac_srcdir=.
14033     if test -z "$ac_top_builddir"; then
14034        ac_top_srcdir=.
14035     else
14036        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14037     fi ;;
14038   [\\/]* | ?:[\\/]* )  # Absolute path.
14039     ac_srcdir=$srcdir$ac_dir_suffix;
14040     ac_top_srcdir=$srcdir ;;
14041   *) # Relative path.
14042     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14043     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14044 esac
14045
14046 # Do not use `cd foo && pwd` to compute absolute paths, because
14047 # the directories may not exist.
14048 case `pwd` in
14049 .) ac_abs_builddir="$ac_dir";;
14050 *)
14051   case "$ac_dir" in
14052   .) ac_abs_builddir=`pwd`;;
14053   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14054   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14055   esac;;
14056 esac
14057 case $ac_abs_builddir in
14058 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14059 *)
14060   case ${ac_top_builddir}. in
14061   .) ac_abs_top_builddir=$ac_abs_builddir;;
14062   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14063   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14064   esac;;
14065 esac
14066 case $ac_abs_builddir in
14067 .) ac_abs_srcdir=$ac_srcdir;;
14068 *)
14069   case $ac_srcdir in
14070   .) ac_abs_srcdir=$ac_abs_builddir;;
14071   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14072   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14073   esac;;
14074 esac
14075 case $ac_abs_builddir in
14076 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14077 *)
14078   case $ac_top_srcdir in
14079   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14080   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14081   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14082   esac;;
14083 esac
14084
14085
14086   case $INSTALL in
14087   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14088   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14089   esac
14090
14091   if test x"$ac_file" != x-; then
14092     { echo "$as_me:$LINENO: creating $ac_file" >&5
14093 echo "$as_me: creating $ac_file" >&6;}
14094     rm -f "$ac_file"
14095   fi
14096   # Let's still pretend it is `configure' which instantiates (i.e., don't
14097   # use $as_me), people would be surprised to read:
14098   #    /* config.h.  Generated by config.status.  */
14099   if test x"$ac_file" = x-; then
14100     configure_input=
14101   else
14102     configure_input="$ac_file.  "
14103   fi
14104   configure_input=$configure_input"Generated from `echo $ac_file_in |
14105                                      sed 's,.*/,,'` by configure."
14106
14107   # First look for the input files in the build tree, otherwise in the
14108   # src tree.
14109   ac_file_inputs=`IFS=:
14110     for f in $ac_file_in; do
14111       case $f in
14112       -) echo $tmp/stdin ;;
14113       [\\/$]*)
14114          # Absolute (can't be DOS-style, as IFS=:)
14115          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14116 echo "$as_me: error: cannot find input file: $f" >&2;}
14117    { (exit 1); exit 1; }; }
14118          echo "$f";;
14119       *) # Relative
14120          if test -f "$f"; then
14121            # Build tree
14122            echo "$f"
14123          elif test -f "$srcdir/$f"; then
14124            # Source tree
14125            echo "$srcdir/$f"
14126          else
14127            # /dev/null tree
14128            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14129 echo "$as_me: error: cannot find input file: $f" >&2;}
14130    { (exit 1); exit 1; }; }
14131          fi;;
14132       esac
14133     done` || { (exit 1); exit 1; }
14134 _ACEOF
14135 cat >>$CONFIG_STATUS <<_ACEOF
14136   sed "$ac_vpsub
14137 $extrasub
14138 _ACEOF
14139 cat >>$CONFIG_STATUS <<\_ACEOF
14140 :t
14141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14142 s,@configure_input@,$configure_input,;t t
14143 s,@srcdir@,$ac_srcdir,;t t
14144 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14145 s,@top_srcdir@,$ac_top_srcdir,;t t
14146 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14147 s,@builddir@,$ac_builddir,;t t
14148 s,@abs_builddir@,$ac_abs_builddir,;t t
14149 s,@top_builddir@,$ac_top_builddir,;t t
14150 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14151 s,@INSTALL@,$ac_INSTALL,;t t
14152 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14153   rm -f $tmp/stdin
14154   if test x"$ac_file" != x-; then
14155     mv $tmp/out $ac_file
14156   else
14157     cat $tmp/out
14158     rm -f $tmp/out
14159   fi
14160
14161 done
14162 _ACEOF
14163 cat >>$CONFIG_STATUS <<\_ACEOF
14164
14165 #
14166 # CONFIG_HEADER section.
14167 #
14168
14169 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14170 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14171 #
14172 # ac_d sets the value in "#define NAME VALUE" lines.
14173 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
14174 ac_dB='[         ].*$,\1#\2'
14175 ac_dC=' '
14176 ac_dD=',;t'
14177 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14178 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14179 ac_uB='$,\1#\2define\3'
14180 ac_uC=' '
14181 ac_uD=',;t'
14182
14183 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14184   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14185   case $ac_file in
14186   - | *:- | *:-:* ) # input from stdin
14187         cat >$tmp/stdin
14188         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14189         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14190   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14191         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14192   * )   ac_file_in=$ac_file.in ;;
14193   esac
14194
14195   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14196 echo "$as_me: creating $ac_file" >&6;}
14197
14198   # First look for the input files in the build tree, otherwise in the
14199   # src tree.
14200   ac_file_inputs=`IFS=:
14201     for f in $ac_file_in; do
14202       case $f in
14203       -) echo $tmp/stdin ;;
14204       [\\/$]*)
14205          # Absolute (can't be DOS-style, as IFS=:)
14206          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14207 echo "$as_me: error: cannot find input file: $f" >&2;}
14208    { (exit 1); exit 1; }; }
14209          # Do quote $f, to prevent DOS paths from being IFS'd.
14210          echo "$f";;
14211       *) # Relative
14212          if test -f "$f"; then
14213            # Build tree
14214            echo "$f"
14215          elif test -f "$srcdir/$f"; then
14216            # Source tree
14217            echo "$srcdir/$f"
14218          else
14219            # /dev/null tree
14220            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14221 echo "$as_me: error: cannot find input file: $f" >&2;}
14222    { (exit 1); exit 1; }; }
14223          fi;;
14224       esac
14225     done` || { (exit 1); exit 1; }
14226   # Remove the trailing spaces.
14227   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
14228
14229 _ACEOF
14230
14231 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14232 # `conftest.undefs', that substitutes the proper values into
14233 # config.h.in to produce config.h.  The first handles `#define'
14234 # templates, and the second `#undef' templates.
14235 # And first: Protect against being on the right side of a sed subst in
14236 # config.status.  Protect against being in an unquoted here document
14237 # in config.status.
14238 rm -f conftest.defines conftest.undefs
14239 # Using a here document instead of a string reduces the quoting nightmare.
14240 # Putting comments in sed scripts is not portable.
14241 #
14242 # `end' is used to avoid that the second main sed command (meant for
14243 # 0-ary CPP macros) applies to n-ary macro definitions.
14244 # See the Autoconf documentation for `clear'.
14245 cat >confdef2sed.sed <<\_ACEOF
14246 s/[\\&,]/\\&/g
14247 s,[\\$`],\\&,g
14248 t clear
14249 : clear
14250 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14251 t end
14252 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14253 : end
14254 _ACEOF
14255 # If some macros were called several times there might be several times
14256 # the same #defines, which is useless.  Nevertheless, we may not want to
14257 # sort them, since we want the *last* AC-DEFINE to be honored.
14258 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14259 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14260 rm -f confdef2sed.sed
14261
14262 # This sed command replaces #undef with comments.  This is necessary, for
14263 # example, in the case of _POSIX_SOURCE, which is predefined and required
14264 # on some systems where configure will not decide to define it.
14265 cat >>conftest.undefs <<\_ACEOF
14266 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14267 _ACEOF
14268
14269 # Break up conftest.defines because some shells have a limit on the size
14270 # of here documents, and old seds have small limits too (100 cmds).
14271 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14272 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14273 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14274 echo '  :' >>$CONFIG_STATUS
14275 rm -f conftest.tail
14276 while grep . conftest.defines >/dev/null
14277 do
14278   # Write a limited-size here document to $tmp/defines.sed.
14279   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14280   # Speed up: don't consider the non `#define' lines.
14281   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
14282   # Work around the forget-to-reset-the-flag bug.
14283   echo 't clr' >>$CONFIG_STATUS
14284   echo ': clr' >>$CONFIG_STATUS
14285   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14286   echo 'CEOF
14287   sed -f $tmp/defines.sed $tmp/in >$tmp/out
14288   rm -f $tmp/in
14289   mv $tmp/out $tmp/in
14290 ' >>$CONFIG_STATUS
14291   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14292   rm -f conftest.defines
14293   mv conftest.tail conftest.defines
14294 done
14295 rm -f conftest.defines
14296 echo '  fi # grep' >>$CONFIG_STATUS
14297 echo >>$CONFIG_STATUS
14298
14299 # Break up conftest.undefs because some shells have a limit on the size
14300 # of here documents, and old seds have small limits too (100 cmds).
14301 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14302 rm -f conftest.tail
14303 while grep . conftest.undefs >/dev/null
14304 do
14305   # Write a limited-size here document to $tmp/undefs.sed.
14306   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14307   # Speed up: don't consider the non `#undef'
14308   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14309   # Work around the forget-to-reset-the-flag bug.
14310   echo 't clr' >>$CONFIG_STATUS
14311   echo ': clr' >>$CONFIG_STATUS
14312   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14313   echo 'CEOF
14314   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14315   rm -f $tmp/in
14316   mv $tmp/out $tmp/in
14317 ' >>$CONFIG_STATUS
14318   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14319   rm -f conftest.undefs
14320   mv conftest.tail conftest.undefs
14321 done
14322 rm -f conftest.undefs
14323
14324 cat >>$CONFIG_STATUS <<\_ACEOF
14325   # Let's still pretend it is `configure' which instantiates (i.e., don't
14326   # use $as_me), people would be surprised to read:
14327   #    /* config.h.  Generated by config.status.  */
14328   if test x"$ac_file" = x-; then
14329     echo "/* Generated by configure.  */" >$tmp/config.h
14330   else
14331     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14332   fi
14333   cat $tmp/in >>$tmp/config.h
14334   rm -f $tmp/in
14335   if test x"$ac_file" != x-; then
14336     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14337       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14338 echo "$as_me: $ac_file is unchanged" >&6;}
14339     else
14340       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14342          X"$ac_file" : 'X\(//\)[^/]' \| \
14343          X"$ac_file" : 'X\(//\)$' \| \
14344          X"$ac_file" : 'X\(/\)' \| \
14345          .     : '\(.\)' 2>/dev/null ||
14346 echo X"$ac_file" |
14347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14348           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14349           /^X\(\/\/\)$/{ s//\1/; q; }
14350           /^X\(\/\).*/{ s//\1/; q; }
14351           s/.*/./; q'`
14352       { if $as_mkdir_p; then
14353     mkdir -p "$ac_dir"
14354   else
14355     as_dir="$ac_dir"
14356     as_dirs=
14357     while test ! -d "$as_dir"; do
14358       as_dirs="$as_dir $as_dirs"
14359       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14361          X"$as_dir" : 'X\(//\)[^/]' \| \
14362          X"$as_dir" : 'X\(//\)$' \| \
14363          X"$as_dir" : 'X\(/\)' \| \
14364          .     : '\(.\)' 2>/dev/null ||
14365 echo X"$as_dir" |
14366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14367           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14368           /^X\(\/\/\)$/{ s//\1/; q; }
14369           /^X\(\/\).*/{ s//\1/; q; }
14370           s/.*/./; q'`
14371     done
14372     test ! -n "$as_dirs" || mkdir $as_dirs
14373   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14374 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14375    { (exit 1); exit 1; }; }; }
14376
14377       rm -f $ac_file
14378       mv $tmp/config.h $ac_file
14379     fi
14380   else
14381     cat $tmp/config.h
14382     rm -f $tmp/config.h
14383   fi
14384 # Compute $ac_file's index in $config_headers.
14385 _am_stamp_count=1
14386 for _am_header in $config_headers :; do
14387   case $_am_header in
14388     $ac_file | $ac_file:* )
14389       break ;;
14390     * )
14391       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14392   esac
14393 done
14394 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14395 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14396          X$ac_file : 'X\(//\)[^/]' \| \
14397          X$ac_file : 'X\(//\)$' \| \
14398          X$ac_file : 'X\(/\)' \| \
14399          .     : '\(.\)' 2>/dev/null ||
14400 echo X$ac_file |
14401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14402           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14403           /^X\(\/\/\)$/{ s//\1/; q; }
14404           /^X\(\/\).*/{ s//\1/; q; }
14405           s/.*/./; q'`/stamp-h$_am_stamp_count
14406 done
14407 _ACEOF
14408 cat >>$CONFIG_STATUS <<\_ACEOF
14409
14410 #
14411 # CONFIG_COMMANDS section.
14412 #
14413 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14414   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14415   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14416   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14417 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14418          X"$ac_dest" : 'X\(//\)[^/]' \| \
14419          X"$ac_dest" : 'X\(//\)$' \| \
14420          X"$ac_dest" : 'X\(/\)' \| \
14421          .     : '\(.\)' 2>/dev/null ||
14422 echo X"$ac_dest" |
14423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14424           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14425           /^X\(\/\/\)$/{ s//\1/; q; }
14426           /^X\(\/\).*/{ s//\1/; q; }
14427           s/.*/./; q'`
14428   { if $as_mkdir_p; then
14429     mkdir -p "$ac_dir"
14430   else
14431     as_dir="$ac_dir"
14432     as_dirs=
14433     while test ! -d "$as_dir"; do
14434       as_dirs="$as_dir $as_dirs"
14435       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14437          X"$as_dir" : 'X\(//\)[^/]' \| \
14438          X"$as_dir" : 'X\(//\)$' \| \
14439          X"$as_dir" : 'X\(/\)' \| \
14440          .     : '\(.\)' 2>/dev/null ||
14441 echo X"$as_dir" |
14442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14443           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14444           /^X\(\/\/\)$/{ s//\1/; q; }
14445           /^X\(\/\).*/{ s//\1/; q; }
14446           s/.*/./; q'`
14447     done
14448     test ! -n "$as_dirs" || mkdir $as_dirs
14449   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14450 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14451    { (exit 1); exit 1; }; }; }
14452
14453   ac_builddir=.
14454
14455 if test "$ac_dir" != .; then
14456   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14457   # A "../" for each directory in $ac_dir_suffix.
14458   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14459 else
14460   ac_dir_suffix= ac_top_builddir=
14461 fi
14462
14463 case $srcdir in
14464   .)  # No --srcdir option.  We are building in place.
14465     ac_srcdir=.
14466     if test -z "$ac_top_builddir"; then
14467        ac_top_srcdir=.
14468     else
14469        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14470     fi ;;
14471   [\\/]* | ?:[\\/]* )  # Absolute path.
14472     ac_srcdir=$srcdir$ac_dir_suffix;
14473     ac_top_srcdir=$srcdir ;;
14474   *) # Relative path.
14475     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14476     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14477 esac
14478
14479 # Do not use `cd foo && pwd` to compute absolute paths, because
14480 # the directories may not exist.
14481 case `pwd` in
14482 .) ac_abs_builddir="$ac_dir";;
14483 *)
14484   case "$ac_dir" in
14485   .) ac_abs_builddir=`pwd`;;
14486   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14487   *) ac_abs_builddir=`pwd`/"$ac_dir";;
14488   esac;;
14489 esac
14490 case $ac_abs_builddir in
14491 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14492 *)
14493   case ${ac_top_builddir}. in
14494   .) ac_abs_top_builddir=$ac_abs_builddir;;
14495   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14496   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14497   esac;;
14498 esac
14499 case $ac_abs_builddir in
14500 .) ac_abs_srcdir=$ac_srcdir;;
14501 *)
14502   case $ac_srcdir in
14503   .) ac_abs_srcdir=$ac_abs_builddir;;
14504   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14505   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14506   esac;;
14507 esac
14508 case $ac_abs_builddir in
14509 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14510 *)
14511   case $ac_top_srcdir in
14512   .) ac_abs_top_srcdir=$ac_abs_builddir;;
14513   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14514   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14515   esac;;
14516 esac
14517
14518
14519   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14520 echo "$as_me: executing $ac_dest commands" >&6;}
14521   case $ac_dest in
14522     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14523   # Strip MF so we end up with the name of the file.
14524   mf=`echo "$mf" | sed -e 's/:.*$//'`
14525   # Check whether this is an Automake generated Makefile or not.
14526   # We used to match only the files named `Makefile.in', but
14527   # some people rename them; so instead we look at the file content.
14528   # Grep'ing the first line is not enough: some people post-process
14529   # each Makefile.in and add a new line on top of each file to say so.
14530   # So let's grep whole file.
14531   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14532     dirpart=`(dirname "$mf") 2>/dev/null ||
14533 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14534          X"$mf" : 'X\(//\)[^/]' \| \
14535          X"$mf" : 'X\(//\)$' \| \
14536          X"$mf" : 'X\(/\)' \| \
14537          .     : '\(.\)' 2>/dev/null ||
14538 echo X"$mf" |
14539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14540           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14541           /^X\(\/\/\)$/{ s//\1/; q; }
14542           /^X\(\/\).*/{ s//\1/; q; }
14543           s/.*/./; q'`
14544   else
14545     continue
14546   fi
14547   # Extract the definition of DEPDIR, am__include, and am__quote
14548   # from the Makefile without running `make'.
14549   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14550   test -z "$DEPDIR" && continue
14551   am__include=`sed -n 's/^am__include = //p' < "$mf"`
14552   test -z "am__include" && continue
14553   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14554   # When using ansi2knr, U may be empty or an underscore; expand it
14555   U=`sed -n 's/^U = //p' < "$mf"`
14556   # Find all dependency output files, they are included files with
14557   # $(DEPDIR) in their names.  We invoke sed twice because it is the
14558   # simplest approach to changing $(DEPDIR) to its actual value in the
14559   # expansion.
14560   for file in `sed -n "
14561     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14562        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14563     # Make sure the directory exists.
14564     test -f "$dirpart/$file" && continue
14565     fdir=`(dirname "$file") 2>/dev/null ||
14566 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14567          X"$file" : 'X\(//\)[^/]' \| \
14568          X"$file" : 'X\(//\)$' \| \
14569          X"$file" : 'X\(/\)' \| \
14570          .     : '\(.\)' 2>/dev/null ||
14571 echo X"$file" |
14572     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14573           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14574           /^X\(\/\/\)$/{ s//\1/; q; }
14575           /^X\(\/\).*/{ s//\1/; q; }
14576           s/.*/./; q'`
14577     { if $as_mkdir_p; then
14578     mkdir -p $dirpart/$fdir
14579   else
14580     as_dir=$dirpart/$fdir
14581     as_dirs=
14582     while test ! -d "$as_dir"; do
14583       as_dirs="$as_dir $as_dirs"
14584       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14586          X"$as_dir" : 'X\(//\)[^/]' \| \
14587          X"$as_dir" : 'X\(//\)$' \| \
14588          X"$as_dir" : 'X\(/\)' \| \
14589          .     : '\(.\)' 2>/dev/null ||
14590 echo X"$as_dir" |
14591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14592           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14593           /^X\(\/\/\)$/{ s//\1/; q; }
14594           /^X\(\/\).*/{ s//\1/; q; }
14595           s/.*/./; q'`
14596     done
14597     test ! -n "$as_dirs" || mkdir $as_dirs
14598   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14599 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14600    { (exit 1); exit 1; }; }; }
14601
14602     # echo "creating $dirpart/$file"
14603     echo '# dummy' > "$dirpart/$file"
14604   done
14605 done
14606  ;;
14607     libtool )
14608
14609     # See if we are running on zsh, and set the options which allow our
14610     # commands through without removal of \ escapes.
14611     if test -n "${ZSH_VERSION+set}" ; then
14612       setopt NO_GLOB_SUBST
14613     fi
14614
14615     cfgfile="${ofile}T"
14616     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14617     $RM "$cfgfile"
14618
14619     cat <<_LT_EOF >> "$cfgfile"
14620 #! $SHELL
14621
14622 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14623 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14624 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14625 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14626 #
14627 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14628 #                 2006, 2007, 2008 Free Software Foundation, Inc.
14629 #   Written by Gordon Matzigkeit, 1996
14630 #
14631 #   This file is part of GNU Libtool.
14632 #
14633 # GNU Libtool is free software; you can redistribute it and/or
14634 # modify it under the terms of the GNU General Public License as
14635 # published by the Free Software Foundation; either version 2 of
14636 # the License, or (at your option) any later version.
14637 #
14638 # As a special exception to the GNU General Public License,
14639 # if you distribute this file as part of a program or library that
14640 # is built using GNU Libtool, you may include this file under the
14641 # same distribution terms that you use for the rest of that program.
14642 #
14643 # GNU Libtool is distributed in the hope that it will be useful,
14644 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14645 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14646 # GNU General Public License for more details.
14647 #
14648 # You should have received a copy of the GNU General Public License
14649 # along with GNU Libtool; see the file COPYING.  If not, a copy
14650 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14651 # obtained by writing to the Free Software Foundation, Inc.,
14652 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14653
14654
14655 # The names of the tagged configurations supported by this script.
14656 available_tags=""
14657
14658 # ### BEGIN LIBTOOL CONFIG
14659
14660 # Whether or not to build shared libraries.
14661 build_libtool_libs=$enable_shared
14662
14663 # Which release of libtool.m4 was used?
14664 macro_version=$macro_version
14665 macro_revision=$macro_revision
14666
14667 # Whether or not to build static libraries.
14668 build_old_libs=$enable_static
14669
14670 # What type of objects to build.
14671 pic_mode=$pic_mode
14672
14673 # Whether or not to optimize for fast installation.
14674 fast_install=$enable_fast_install
14675
14676 # The host system.
14677 host_alias=$host_alias
14678 host=$host
14679 host_os=$host_os
14680
14681 # The build system.
14682 build_alias=$build_alias
14683 build=$build
14684 build_os=$build_os
14685
14686 # A sed program that does not truncate output.
14687 SED=$lt_SED
14688
14689 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14690 Xsed="\$SED -e 1s/^X//"
14691
14692 # A grep program that handles long lines.
14693 GREP=$lt_GREP
14694
14695 # An ERE matcher.
14696 EGREP=$lt_EGREP
14697
14698 # A literal string matcher.
14699 FGREP=$lt_FGREP
14700
14701 # A BSD- or MS-compatible name lister.
14702 NM=$lt_NM
14703
14704 # Whether we need soft or hard links.
14705 LN_S=$lt_LN_S
14706
14707 # What is the maximum length of a command?
14708 max_cmd_len=$max_cmd_len
14709
14710 # Object file suffix (normally "o").
14711 objext=$ac_objext
14712
14713 # Executable file suffix (normally "").
14714 exeext=$exeext
14715
14716 # whether the shell understands "unset".
14717 lt_unset=$lt_unset
14718
14719 # turn spaces into newlines.
14720 SP2NL=$lt_lt_SP2NL
14721
14722 # turn newlines into spaces.
14723 NL2SP=$lt_lt_NL2SP
14724
14725 # How to create reloadable object files.
14726 reload_flag=$lt_reload_flag
14727 reload_cmds=$lt_reload_cmds
14728
14729 # An object symbol dumper.
14730 OBJDUMP=$lt_OBJDUMP
14731
14732 # Method to check whether dependent libraries are shared objects.
14733 deplibs_check_method=$lt_deplibs_check_method
14734
14735 # Command to use when deplibs_check_method == "file_magic".
14736 file_magic_cmd=$lt_file_magic_cmd
14737
14738 # The archiver.
14739 AR=$lt_AR
14740 AR_FLAGS=$lt_AR_FLAGS
14741
14742 # A symbol stripping program.
14743 STRIP=$lt_STRIP
14744
14745 # Commands used to install an old-style archive.
14746 RANLIB=$lt_RANLIB
14747 old_postinstall_cmds=$lt_old_postinstall_cmds
14748 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14749
14750 # A C compiler.
14751 LTCC=$lt_CC
14752
14753 # LTCC compiler flags.
14754 LTCFLAGS=$lt_CFLAGS
14755
14756 # Take the output of nm and produce a listing of raw symbols and C names.
14757 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14758
14759 # Transform the output of nm in a proper C declaration.
14760 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14761
14762 # Transform the output of nm in a C name address pair.
14763 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14764
14765 # Transform the output of nm in a C name address pair when lib prefix is needed.
14766 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14767
14768 # The name of the directory that contains temporary libtool files.
14769 objdir=$objdir
14770
14771 # Shell to use when invoking shell scripts.
14772 SHELL=$lt_SHELL
14773
14774 # An echo program that does not interpret backslashes.
14775 ECHO=$lt_ECHO
14776
14777 # Used to examine libraries when file_magic_cmd begins with "file".
14778 MAGIC_CMD=$MAGIC_CMD
14779
14780 # Must we lock files when doing compilation?
14781 need_locks=$lt_need_locks
14782
14783 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14784 DSYMUTIL=$lt_DSYMUTIL
14785
14786 # Tool to change global to local symbols on Mac OS X.
14787 NMEDIT=$lt_NMEDIT
14788
14789 # Tool to manipulate fat objects and archives on Mac OS X.
14790 LIPO=$lt_LIPO
14791
14792 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14793 OTOOL=$lt_OTOOL
14794
14795 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14796 OTOOL64=$lt_OTOOL64
14797
14798 # Old archive suffix (normally "a").
14799 libext=$libext
14800
14801 # Shared library suffix (normally ".so").
14802 shrext_cmds=$lt_shrext_cmds
14803
14804 # The commands to extract the exported symbol list from a shared archive.
14805 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14806
14807 # Variables whose values should be saved in libtool wrapper scripts and
14808 # restored at link time.
14809 variables_saved_for_relink=$lt_variables_saved_for_relink
14810
14811 # Do we need the "lib" prefix for modules?
14812 need_lib_prefix=$need_lib_prefix
14813
14814 # Do we need a version for libraries?
14815 need_version=$need_version
14816
14817 # Library versioning type.
14818 version_type=$version_type
14819
14820 # Shared library runtime path variable.
14821 runpath_var=$runpath_var
14822
14823 # Shared library path variable.
14824 shlibpath_var=$shlibpath_var
14825
14826 # Is shlibpath searched before the hard-coded library search path?
14827 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14828
14829 # Format of library name prefix.
14830 libname_spec=$lt_libname_spec
14831
14832 # List of archive names.  First name is the real one, the rest are links.
14833 # The last name is the one that the linker finds with -lNAME
14834 library_names_spec=$lt_library_names_spec
14835
14836 # The coded name of the library, if different from the real name.
14837 soname_spec=$lt_soname_spec
14838
14839 # Command to use after installation of a shared archive.
14840 postinstall_cmds=$lt_postinstall_cmds
14841
14842 # Command to use after uninstallation of a shared archive.
14843 postuninstall_cmds=$lt_postuninstall_cmds
14844
14845 # Commands used to finish a libtool library installation in a directory.
14846 finish_cmds=$lt_finish_cmds
14847
14848 # As "finish_cmds", except a single script fragment to be evaled but
14849 # not shown.
14850 finish_eval=$lt_finish_eval
14851
14852 # Whether we should hardcode library paths into libraries.
14853 hardcode_into_libs=$hardcode_into_libs
14854
14855 # Compile-time system search path for libraries.
14856 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14857
14858 # Run-time system search path for libraries.
14859 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14860
14861 # Whether dlopen is supported.
14862 dlopen_support=$enable_dlopen
14863
14864 # Whether dlopen of programs is supported.
14865 dlopen_self=$enable_dlopen_self
14866
14867 # Whether dlopen of statically linked programs is supported.
14868 dlopen_self_static=$enable_dlopen_self_static
14869
14870 # Commands to strip libraries.
14871 old_striplib=$lt_old_striplib
14872 striplib=$lt_striplib
14873
14874
14875 # The linker used to build libraries.
14876 LD=$lt_LD
14877
14878 # Commands used to build an old-style archive.
14879 old_archive_cmds=$lt_old_archive_cmds
14880
14881 # A language specific compiler.
14882 CC=$lt_compiler
14883
14884 # Is the compiler the GNU compiler?
14885 with_gcc=$GCC
14886
14887 # Compiler flag to turn off builtin functions.
14888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14889
14890 # How to pass a linker flag through the compiler.
14891 wl=$lt_lt_prog_compiler_wl
14892
14893 # Additional compiler flags for building library objects.
14894 pic_flag=$lt_lt_prog_compiler_pic
14895
14896 # Compiler flag to prevent dynamic linking.
14897 link_static_flag=$lt_lt_prog_compiler_static
14898
14899 # Does compiler simultaneously support -c and -o options?
14900 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14901
14902 # Whether or not to add -lc for building shared libraries.
14903 build_libtool_need_lc=$archive_cmds_need_lc
14904
14905 # Whether or not to disallow shared libs when runtime libs are static.
14906 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14907
14908 # Compiler flag to allow reflexive dlopens.
14909 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14910
14911 # Compiler flag to generate shared objects directly from archives.
14912 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14913
14914 # Whether the compiler copes with passing no objects directly.
14915 compiler_needs_object=$lt_compiler_needs_object
14916
14917 # Create an old-style archive from a shared archive.
14918 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14919
14920 # Create a temporary old-style archive to link instead of a shared archive.
14921 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14922
14923 # Commands used to build a shared archive.
14924 archive_cmds=$lt_archive_cmds
14925 archive_expsym_cmds=$lt_archive_expsym_cmds
14926
14927 # Commands used to build a loadable module if different from building
14928 # a shared archive.
14929 module_cmds=$lt_module_cmds
14930 module_expsym_cmds=$lt_module_expsym_cmds
14931
14932 # Whether we are building with GNU ld or not.
14933 with_gnu_ld=$lt_with_gnu_ld
14934
14935 # Flag that allows shared libraries with undefined symbols to be built.
14936 allow_undefined_flag=$lt_allow_undefined_flag
14937
14938 # Flag that enforces no undefined symbols.
14939 no_undefined_flag=$lt_no_undefined_flag
14940
14941 # Flag to hardcode \$libdir into a binary during linking.
14942 # This must work even if \$libdir does not exist
14943 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14944
14945 # If ld is used when linking, flag to hardcode \$libdir into a binary
14946 # during linking.  This must work even if \$libdir does not exist.
14947 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14948
14949 # Whether we need a single "-rpath" flag with a separated argument.
14950 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14951
14952 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14953 # DIR into the resulting binary.
14954 hardcode_direct=$hardcode_direct
14955
14956 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14957 # DIR into the resulting binary and the resulting library dependency is
14958 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14959 # library is relocated.
14960 hardcode_direct_absolute=$hardcode_direct_absolute
14961
14962 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14963 # into the resulting binary.
14964 hardcode_minus_L=$hardcode_minus_L
14965
14966 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14967 # into the resulting binary.
14968 hardcode_shlibpath_var=$hardcode_shlibpath_var
14969
14970 # Set to "yes" if building a shared library automatically hardcodes DIR
14971 # into the library and all subsequent libraries and executables linked
14972 # against it.
14973 hardcode_automatic=$hardcode_automatic
14974
14975 # Set to yes if linker adds runtime paths of dependent libraries
14976 # to runtime path list.
14977 inherit_rpath=$inherit_rpath
14978
14979 # Whether libtool must link a program against all its dependency libraries.
14980 link_all_deplibs=$link_all_deplibs
14981
14982 # Fix the shell variable \$srcfile for the compiler.
14983 fix_srcfile_path=$lt_fix_srcfile_path
14984
14985 # Set to "yes" if exported symbols are required.
14986 always_export_symbols=$always_export_symbols
14987
14988 # The commands to list exported symbols.
14989 export_symbols_cmds=$lt_export_symbols_cmds
14990
14991 # Symbols that should not be listed in the preloaded symbols.
14992 exclude_expsyms=$lt_exclude_expsyms
14993
14994 # Symbols that must always be exported.
14995 include_expsyms=$lt_include_expsyms
14996
14997 # Commands necessary for linking programs (against libraries) with templates.
14998 prelink_cmds=$lt_prelink_cmds
14999
15000 # Specify filename containing input files.
15001 file_list_spec=$lt_file_list_spec
15002
15003 # How to hardcode a shared library path into an executable.
15004 hardcode_action=$hardcode_action
15005
15006 # ### END LIBTOOL CONFIG
15007
15008 _LT_EOF
15009
15010   case $host_os in
15011   aix3*)
15012     cat <<\_LT_EOF >> "$cfgfile"
15013 # AIX sometimes has problems with the GCC collect2 program.  For some
15014 # reason, if we set the COLLECT_NAMES environment variable, the problems
15015 # vanish in a puff of smoke.
15016 if test "X${COLLECT_NAMES+set}" != Xset; then
15017   COLLECT_NAMES=
15018   export COLLECT_NAMES
15019 fi
15020 _LT_EOF
15021     ;;
15022   esac
15023
15024
15025 ltmain="$ac_aux_dir/ltmain.sh"
15026
15027
15028   # We use sed instead of cat because bash on DJGPP gets confused if
15029   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15030   # text mode, it properly converts lines to CR/LF.  This bash problem
15031   # is reportedly fixed, but why not run on old versions too?
15032   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15033     || (rm -f "$cfgfile"; exit 1)
15034
15035   case $xsi_shell in
15036   yes)
15037     cat << \_LT_EOF >> "$cfgfile"
15038
15039 # func_dirname file append nondir_replacement
15040 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15041 # otherwise set result to NONDIR_REPLACEMENT.
15042 func_dirname ()
15043 {
15044   case ${1} in
15045     */*) func_dirname_result="${1%/*}${2}" ;;
15046     *  ) func_dirname_result="${3}" ;;
15047   esac
15048 }
15049
15050 # func_basename file
15051 func_basename ()
15052 {
15053   func_basename_result="${1##*/}"
15054 }
15055
15056 # func_dirname_and_basename file append nondir_replacement
15057 # perform func_basename and func_dirname in a single function
15058 # call:
15059 #   dirname:  Compute the dirname of FILE.  If nonempty,
15060 #             add APPEND to the result, otherwise set result
15061 #             to NONDIR_REPLACEMENT.
15062 #             value returned in "$func_dirname_result"
15063 #   basename: Compute filename of FILE.
15064 #             value retuned in "$func_basename_result"
15065 # Implementation must be kept synchronized with func_dirname
15066 # and func_basename. For efficiency, we do not delegate to
15067 # those functions but instead duplicate the functionality here.
15068 func_dirname_and_basename ()
15069 {
15070   case ${1} in
15071     */*) func_dirname_result="${1%/*}${2}" ;;
15072     *  ) func_dirname_result="${3}" ;;
15073   esac
15074   func_basename_result="${1##*/}"
15075 }
15076
15077 # func_stripname prefix suffix name
15078 # strip PREFIX and SUFFIX off of NAME.
15079 # PREFIX and SUFFIX must not contain globbing or regex special
15080 # characters, hashes, percent signs, but SUFFIX may contain a leading
15081 # dot (in which case that matches only a dot).
15082 func_stripname ()
15083 {
15084   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15085   # positional parameters, so assign one to ordinary parameter first.
15086   func_stripname_result=${3}
15087   func_stripname_result=${func_stripname_result#"${1}"}
15088   func_stripname_result=${func_stripname_result%"${2}"}
15089 }
15090
15091 # func_opt_split
15092 func_opt_split ()
15093 {
15094   func_opt_split_opt=${1%%=*}
15095   func_opt_split_arg=${1#*=}
15096 }
15097
15098 # func_lo2o object
15099 func_lo2o ()
15100 {
15101   case ${1} in
15102     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15103     *)    func_lo2o_result=${1} ;;
15104   esac
15105 }
15106
15107 # func_xform libobj-or-source
15108 func_xform ()
15109 {
15110   func_xform_result=${1%.*}.lo
15111 }
15112
15113 # func_arith arithmetic-term...
15114 func_arith ()
15115 {
15116   func_arith_result=$(( $* ))
15117 }
15118
15119 # func_len string
15120 # STRING may not start with a hyphen.
15121 func_len ()
15122 {
15123   func_len_result=${#1}
15124 }
15125
15126 _LT_EOF
15127     ;;
15128   *) # Bourne compatible functions.
15129     cat << \_LT_EOF >> "$cfgfile"
15130
15131 # func_dirname file append nondir_replacement
15132 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15133 # otherwise set result to NONDIR_REPLACEMENT.
15134 func_dirname ()
15135 {
15136   # Extract subdirectory from the argument.
15137   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15138   if test "X$func_dirname_result" = "X${1}"; then
15139     func_dirname_result="${3}"
15140   else
15141     func_dirname_result="$func_dirname_result${2}"
15142   fi
15143 }
15144
15145 # func_basename file
15146 func_basename ()
15147 {
15148   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15149 }
15150
15151
15152 # func_stripname prefix suffix name
15153 # strip PREFIX and SUFFIX off of NAME.
15154 # PREFIX and SUFFIX must not contain globbing or regex special
15155 # characters, hashes, percent signs, but SUFFIX may contain a leading
15156 # dot (in which case that matches only a dot).
15157 # func_strip_suffix prefix name
15158 func_stripname ()
15159 {
15160   case ${2} in
15161     .*) func_stripname_result=`$ECHO "X${3}" \
15162            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15163     *)  func_stripname_result=`$ECHO "X${3}" \
15164            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15165   esac
15166 }
15167
15168 # sed scripts:
15169 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15170 my_sed_long_arg='1s/^-[^=]*=//'
15171
15172 # func_opt_split
15173 func_opt_split ()
15174 {
15175   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15176   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15177 }
15178
15179 # func_lo2o object
15180 func_lo2o ()
15181 {
15182   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15183 }
15184
15185 # func_xform libobj-or-source
15186 func_xform ()
15187 {
15188   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15189 }
15190
15191 # func_arith arithmetic-term...
15192 func_arith ()
15193 {
15194   func_arith_result=`expr "$@"`
15195 }
15196
15197 # func_len string
15198 # STRING may not start with a hyphen.
15199 func_len ()
15200 {
15201   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15202 }
15203
15204 _LT_EOF
15205 esac
15206
15207 case $lt_shell_append in
15208   yes)
15209     cat << \_LT_EOF >> "$cfgfile"
15210
15211 # func_append var value
15212 # Append VALUE to the end of shell variable VAR.
15213 func_append ()
15214 {
15215   eval "$1+=\$2"
15216 }
15217 _LT_EOF
15218     ;;
15219   *)
15220     cat << \_LT_EOF >> "$cfgfile"
15221
15222 # func_append var value
15223 # Append VALUE to the end of shell variable VAR.
15224 func_append ()
15225 {
15226   eval "$1=\$$1\$2"
15227 }
15228
15229 _LT_EOF
15230     ;;
15231   esac
15232
15233
15234   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15235     || (rm -f "$cfgfile"; exit 1)
15236
15237   mv -f "$cfgfile" "$ofile" ||
15238     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15239   chmod +x "$ofile"
15240
15241  ;;
15242     default-1 )
15243     for ac_file in $CONFIG_FILES; do
15244       # Support "outfile[:infile[:infile...]]"
15245       case "$ac_file" in
15246         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15247       esac
15248       # PO directories have a Makefile.in generated from Makefile.in.in.
15249       case "$ac_file" in */Makefile.in)
15250         # Adjust a relative srcdir.
15251         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15252         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15253         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15254         # In autoconf-2.13 it is called $ac_given_srcdir.
15255         # In autoconf-2.50 it is called $srcdir.
15256         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15257         case "$ac_given_srcdir" in
15258           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15259           /*) top_srcdir="$ac_given_srcdir" ;;
15260           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15261         esac
15262         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15263           rm -f "$ac_dir/POTFILES"
15264           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15265           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15266           POMAKEFILEDEPS="POTFILES.in"
15267           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15268           # on $ac_dir but don't depend on user-specified configuration
15269           # parameters.
15270           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15271             # The LINGUAS file contains the set of available languages.
15272             if test -n "$OBSOLETE_ALL_LINGUAS"; then
15273               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15274             fi
15275             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15276             # Hide the ALL_LINGUAS assigment from automake.
15277             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15278             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15279           else
15280             # The set of available languages was given in configure.in.
15281             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15282           fi
15283           case "$ac_given_srcdir" in
15284             .) srcdirpre= ;;
15285             *) srcdirpre='$(srcdir)/' ;;
15286           esac
15287           POFILES=
15288           GMOFILES=
15289           UPDATEPOFILES=
15290           DUMMYPOFILES=
15291           for lang in $ALL_LINGUAS; do
15292             POFILES="$POFILES $srcdirpre$lang.po"
15293             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15294             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15295             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15296           done
15297           # CATALOGS depends on both $ac_dir and the user's LINGUAS
15298           # environment variable.
15299           INST_LINGUAS=
15300           if test -n "$ALL_LINGUAS"; then
15301             for presentlang in $ALL_LINGUAS; do
15302               useit=no
15303               if test "%UNSET%" != "$LINGUAS"; then
15304                 desiredlanguages="$LINGUAS"
15305               else
15306                 desiredlanguages="$ALL_LINGUAS"
15307               fi
15308               for desiredlang in $desiredlanguages; do
15309                 # Use the presentlang catalog if desiredlang is
15310                 #   a. equal to presentlang, or
15311                 #   b. a variant of presentlang (because in this case,
15312                 #      presentlang can be used as a fallback for messages
15313                 #      which are not translated in the desiredlang catalog).
15314                 case "$desiredlang" in
15315                   "$presentlang"*) useit=yes;;
15316                 esac
15317               done
15318               if test $useit = yes; then
15319                 INST_LINGUAS="$INST_LINGUAS $presentlang"
15320               fi
15321             done
15322           fi
15323           CATALOGS=
15324           if test -n "$INST_LINGUAS"; then
15325             for lang in $INST_LINGUAS; do
15326               CATALOGS="$CATALOGS $lang.gmo"
15327             done
15328           fi
15329           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15330           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15331           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15332             if test -f "$f"; then
15333               case "$f" in
15334                 *.orig | *.bak | *~) ;;
15335                 *) cat "$f" >> "$ac_dir/Makefile" ;;
15336               esac
15337             fi
15338           done
15339         fi
15340         ;;
15341       esac
15342     done ;;
15343   esac
15344 done
15345 _ACEOF
15346
15347 cat >>$CONFIG_STATUS <<\_ACEOF
15348
15349 { (exit 0); exit 0; }
15350 _ACEOF
15351 chmod +x $CONFIG_STATUS
15352 ac_clean_files=$ac_clean_files_save
15353
15354
15355 # configure is writing to config.log, and then calls config.status.
15356 # config.status does its own redirection, appending to config.log.
15357 # Unfortunately, on DOS this fails, as config.log is still kept open
15358 # by configure, so config.status won't be able to write to it; its
15359 # output is simply discarded.  So we exec the FD to /dev/null,
15360 # effectively closing config.log, so it can be properly (re)opened and
15361 # appended to by config.status.  When coming back to configure, we
15362 # need to make the FD available again.
15363 if test "$no_create" != yes; then
15364   ac_cs_success=:
15365   ac_config_status_args=
15366   test "$silent" = yes &&
15367     ac_config_status_args="$ac_config_status_args --quiet"
15368   exec 5>/dev/null
15369   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15370   exec 5>>config.log
15371   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15372   # would make configure fail if this is the last instruction.
15373   $ac_cs_success || { (exit 1); exit 1; }
15374 fi
15375