* regenerated files from updating libtool.
[platform/upstream/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 AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP 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 WIN32LDFLAGS WIN32LIBADD archdefs BFD_MACHINES LIBOBJS LTLIBOBJS'
462 ac_subst_files=''
463
464 # Initialize some variables set by options.
465 ac_init_help=
466 ac_init_version=false
467 # The variables have the same names as the options, with
468 # dashes changed to underlines.
469 cache_file=/dev/null
470 exec_prefix=NONE
471 no_create=
472 no_recursion=
473 prefix=NONE
474 program_prefix=NONE
475 program_suffix=NONE
476 program_transform_name=s,x,x,
477 silent=
478 site=
479 srcdir=
480 verbose=
481 x_includes=NONE
482 x_libraries=NONE
483
484 # Installation directory options.
485 # These are left unexpanded so users can "make install exec_prefix=/foo"
486 # and all the variables that are supposed to be based on exec_prefix
487 # by default will actually change.
488 # Use braces instead of parens because sh, perl, etc. also accept them.
489 bindir='${exec_prefix}/bin'
490 sbindir='${exec_prefix}/sbin'
491 libexecdir='${exec_prefix}/libexec'
492 datadir='${prefix}/share'
493 sysconfdir='${prefix}/etc'
494 sharedstatedir='${prefix}/com'
495 localstatedir='${prefix}/var'
496 libdir='${exec_prefix}/lib'
497 includedir='${prefix}/include'
498 oldincludedir='/usr/include'
499 infodir='${prefix}/info'
500 mandir='${prefix}/man'
501
502 ac_prev=
503 for ac_option
504 do
505   # If the previous option needs an argument, assign it.
506   if test -n "$ac_prev"; then
507     eval "$ac_prev=\$ac_option"
508     ac_prev=
509     continue
510   fi
511
512   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
513
514   # Accept the important Cygnus configure options, so we can diagnose typos.
515
516   case $ac_option in
517
518   -bindir | --bindir | --bindi | --bind | --bin | --bi)
519     ac_prev=bindir ;;
520   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
521     bindir=$ac_optarg ;;
522
523   -build | --build | --buil | --bui | --bu)
524     ac_prev=build_alias ;;
525   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
526     build_alias=$ac_optarg ;;
527
528   -cache-file | --cache-file | --cache-fil | --cache-fi \
529   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530     ac_prev=cache_file ;;
531   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
533     cache_file=$ac_optarg ;;
534
535   --config-cache | -C)
536     cache_file=config.cache ;;
537
538   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539     ac_prev=datadir ;;
540   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541   | --da=*)
542     datadir=$ac_optarg ;;
543
544   -disable-* | --disable-*)
545     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
546     # Reject names that are not valid shell variable names.
547     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549    { (exit 1); exit 1; }; }
550     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551     eval "enable_$ac_feature=no" ;;
552
553   -enable-* | --enable-*)
554     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
555     # Reject names that are not valid shell variable names.
556     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558    { (exit 1); exit 1; }; }
559     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560     case $ac_option in
561       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562       *) ac_optarg=yes ;;
563     esac
564     eval "enable_$ac_feature='$ac_optarg'" ;;
565
566   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568   | --exec | --exe | --ex)
569     ac_prev=exec_prefix ;;
570   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572   | --exec=* | --exe=* | --ex=*)
573     exec_prefix=$ac_optarg ;;
574
575   -gas | --gas | --ga | --g)
576     # Obsolete; use --with-gas.
577     with_gas=yes ;;
578
579   -help | --help | --hel | --he | -h)
580     ac_init_help=long ;;
581   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582     ac_init_help=recursive ;;
583   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584     ac_init_help=short ;;
585
586   -host | --host | --hos | --ho)
587     ac_prev=host_alias ;;
588   -host=* | --host=* | --hos=* | --ho=*)
589     host_alias=$ac_optarg ;;
590
591   -includedir | --includedir | --includedi | --included | --include \
592   | --includ | --inclu | --incl | --inc)
593     ac_prev=includedir ;;
594   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595   | --includ=* | --inclu=* | --incl=* | --inc=*)
596     includedir=$ac_optarg ;;
597
598   -infodir | --infodir | --infodi | --infod | --info | --inf)
599     ac_prev=infodir ;;
600   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
601     infodir=$ac_optarg ;;
602
603   -libdir | --libdir | --libdi | --libd)
604     ac_prev=libdir ;;
605   -libdir=* | --libdir=* | --libdi=* | --libd=*)
606     libdir=$ac_optarg ;;
607
608   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609   | --libexe | --libex | --libe)
610     ac_prev=libexecdir ;;
611   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612   | --libexe=* | --libex=* | --libe=*)
613     libexecdir=$ac_optarg ;;
614
615   -localstatedir | --localstatedir | --localstatedi | --localstated \
616   | --localstate | --localstat | --localsta | --localst \
617   | --locals | --local | --loca | --loc | --lo)
618     ac_prev=localstatedir ;;
619   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
620   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
622     localstatedir=$ac_optarg ;;
623
624   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625     ac_prev=mandir ;;
626   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627     mandir=$ac_optarg ;;
628
629   -nfp | --nfp | --nf)
630     # Obsolete; use --without-fp.
631     with_fp=no ;;
632
633   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
634   | --no-cr | --no-c | -n)
635     no_create=yes ;;
636
637   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639     no_recursion=yes ;;
640
641   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643   | --oldin | --oldi | --old | --ol | --o)
644     ac_prev=oldincludedir ;;
645   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
648     oldincludedir=$ac_optarg ;;
649
650   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651     ac_prev=prefix ;;
652   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
653     prefix=$ac_optarg ;;
654
655   -program-prefix | --program-prefix | --program-prefi | --program-pref \
656   | --program-pre | --program-pr | --program-p)
657     ac_prev=program_prefix ;;
658   -program-prefix=* | --program-prefix=* | --program-prefi=* \
659   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
660     program_prefix=$ac_optarg ;;
661
662   -program-suffix | --program-suffix | --program-suffi | --program-suff \
663   | --program-suf | --program-su | --program-s)
664     ac_prev=program_suffix ;;
665   -program-suffix=* | --program-suffix=* | --program-suffi=* \
666   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
667     program_suffix=$ac_optarg ;;
668
669   -program-transform-name | --program-transform-name \
670   | --program-transform-nam | --program-transform-na \
671   | --program-transform-n | --program-transform- \
672   | --program-transform | --program-transfor \
673   | --program-transfo | --program-transf \
674   | --program-trans | --program-tran \
675   | --progr-tra | --program-tr | --program-t)
676     ac_prev=program_transform_name ;;
677   -program-transform-name=* | --program-transform-name=* \
678   | --program-transform-nam=* | --program-transform-na=* \
679   | --program-transform-n=* | --program-transform-=* \
680   | --program-transform=* | --program-transfor=* \
681   | --program-transfo=* | --program-transf=* \
682   | --program-trans=* | --program-tran=* \
683   | --progr-tra=* | --program-tr=* | --program-t=*)
684     program_transform_name=$ac_optarg ;;
685
686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687   | -silent | --silent | --silen | --sile | --sil)
688     silent=yes ;;
689
690   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691     ac_prev=sbindir ;;
692   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693   | --sbi=* | --sb=*)
694     sbindir=$ac_optarg ;;
695
696   -sharedstatedir | --sharedstatedir | --sharedstatedi \
697   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698   | --sharedst | --shareds | --shared | --share | --shar \
699   | --sha | --sh)
700     ac_prev=sharedstatedir ;;
701   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704   | --sha=* | --sh=*)
705     sharedstatedir=$ac_optarg ;;
706
707   -site | --site | --sit)
708     ac_prev=site ;;
709   -site=* | --site=* | --sit=*)
710     site=$ac_optarg ;;
711
712   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713     ac_prev=srcdir ;;
714   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
715     srcdir=$ac_optarg ;;
716
717   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718   | --syscon | --sysco | --sysc | --sys | --sy)
719     ac_prev=sysconfdir ;;
720   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
722     sysconfdir=$ac_optarg ;;
723
724   -target | --target | --targe | --targ | --tar | --ta | --t)
725     ac_prev=target_alias ;;
726   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
727     target_alias=$ac_optarg ;;
728
729   -v | -verbose | --verbose | --verbos | --verbo | --verb)
730     verbose=yes ;;
731
732   -version | --version | --versio | --versi | --vers | -V)
733     ac_init_version=: ;;
734
735   -with-* | --with-*)
736     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
737     # Reject names that are not valid shell variable names.
738     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739       { echo "$as_me: error: invalid package name: $ac_package" >&2
740    { (exit 1); exit 1; }; }
741     ac_package=`echo $ac_package| sed 's/-/_/g'`
742     case $ac_option in
743       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744       *) ac_optarg=yes ;;
745     esac
746     eval "with_$ac_package='$ac_optarg'" ;;
747
748   -without-* | --without-*)
749     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
750     # Reject names that are not valid shell variable names.
751     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752       { echo "$as_me: error: invalid package name: $ac_package" >&2
753    { (exit 1); exit 1; }; }
754     ac_package=`echo $ac_package | sed 's/-/_/g'`
755     eval "with_$ac_package=no" ;;
756
757   --x)
758     # Obsolete; use --with-x.
759     with_x=yes ;;
760
761   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762   | --x-incl | --x-inc | --x-in | --x-i)
763     ac_prev=x_includes ;;
764   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
766     x_includes=$ac_optarg ;;
767
768   -x-libraries | --x-libraries | --x-librarie | --x-librari \
769   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770     ac_prev=x_libraries ;;
771   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
773     x_libraries=$ac_optarg ;;
774
775   -*) { echo "$as_me: error: unrecognized option: $ac_option
776 Try \`$0 --help' for more information." >&2
777    { (exit 1); exit 1; }; }
778     ;;
779
780   *=*)
781     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782     # Reject names that are not valid shell variable names.
783     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785    { (exit 1); exit 1; }; }
786     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787     eval "$ac_envvar='$ac_optarg'"
788     export $ac_envvar ;;
789
790   *)
791     # FIXME: should be removed in autoconf 3.0.
792     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
796     ;;
797
798   esac
799 done
800
801 if test -n "$ac_prev"; then
802   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803   { echo "$as_me: error: missing argument to $ac_option" >&2
804    { (exit 1); exit 1; }; }
805 fi
806
807 # Be sure to have absolute paths.
808 for ac_var in exec_prefix prefix
809 do
810   eval ac_val=$`echo $ac_var`
811   case $ac_val in
812     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814    { (exit 1); exit 1; }; };;
815   esac
816 done
817
818 # Be sure to have absolute paths.
819 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820               localstatedir libdir includedir oldincludedir infodir mandir
821 do
822   eval ac_val=$`echo $ac_var`
823   case $ac_val in
824     [\\/$]* | ?:[\\/]* ) ;;
825     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826    { (exit 1); exit 1; }; };;
827   esac
828 done
829
830 # There might be people who depend on the old broken behavior: `$host'
831 # used to hold the argument of --host etc.
832 # FIXME: To remove some day.
833 build=$build_alias
834 host=$host_alias
835 target=$target_alias
836
837 # FIXME: To remove some day.
838 if test "x$host_alias" != x; then
839   if test "x$build_alias" = x; then
840     cross_compiling=maybe
841     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842     If a cross compiler is detected then cross compile mode will be used." >&2
843   elif test "x$build_alias" != "x$host_alias"; then
844     cross_compiling=yes
845   fi
846 fi
847
848 ac_tool_prefix=
849 test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851 test "$silent" = yes && exec 6>/dev/null
852
853
854 # Find the source files, if location was not specified.
855 if test -z "$srcdir"; then
856   ac_srcdir_defaulted=yes
857   # Try the directory containing this script, then its parent.
858   ac_confdir=`(dirname "$0") 2>/dev/null ||
859 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
860          X"$0" : 'X\(//\)[^/]' \| \
861          X"$0" : 'X\(//\)$' \| \
862          X"$0" : 'X\(/\)' \| \
863          .     : '\(.\)' 2>/dev/null ||
864 echo X"$0" |
865     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867           /^X\(\/\/\)$/{ s//\1/; q; }
868           /^X\(\/\).*/{ s//\1/; q; }
869           s/.*/./; q'`
870   srcdir=$ac_confdir
871   if test ! -r $srcdir/$ac_unique_file; then
872     srcdir=..
873   fi
874 else
875   ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878   if test "$ac_srcdir_defaulted" = yes; then
879     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880    { (exit 1); exit 1; }; }
881   else
882     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883    { (exit 1); exit 1; }; }
884   fi
885 fi
886 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888    { (exit 1); exit 1; }; }
889 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890 ac_env_build_alias_set=${build_alias+set}
891 ac_env_build_alias_value=$build_alias
892 ac_cv_env_build_alias_set=${build_alias+set}
893 ac_cv_env_build_alias_value=$build_alias
894 ac_env_host_alias_set=${host_alias+set}
895 ac_env_host_alias_value=$host_alias
896 ac_cv_env_host_alias_set=${host_alias+set}
897 ac_cv_env_host_alias_value=$host_alias
898 ac_env_target_alias_set=${target_alias+set}
899 ac_env_target_alias_value=$target_alias
900 ac_cv_env_target_alias_set=${target_alias+set}
901 ac_cv_env_target_alias_value=$target_alias
902 ac_env_CC_set=${CC+set}
903 ac_env_CC_value=$CC
904 ac_cv_env_CC_set=${CC+set}
905 ac_cv_env_CC_value=$CC
906 ac_env_CFLAGS_set=${CFLAGS+set}
907 ac_env_CFLAGS_value=$CFLAGS
908 ac_cv_env_CFLAGS_set=${CFLAGS+set}
909 ac_cv_env_CFLAGS_value=$CFLAGS
910 ac_env_LDFLAGS_set=${LDFLAGS+set}
911 ac_env_LDFLAGS_value=$LDFLAGS
912 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
913 ac_cv_env_LDFLAGS_value=$LDFLAGS
914 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
915 ac_env_CPPFLAGS_value=$CPPFLAGS
916 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
918 ac_env_CPP_set=${CPP+set}
919 ac_env_CPP_value=$CPP
920 ac_cv_env_CPP_set=${CPP+set}
921 ac_cv_env_CPP_value=$CPP
922
923 #
924 # Report the --help message.
925 #
926 if test "$ac_init_help" = "long"; then
927   # Omit some internal or obsolete options to make the list less imposing.
928   # This message is too long to be a string in the A/UX 3.1 sh.
929   cat <<_ACEOF
930 \`configure' configures this package to adapt to many kinds of systems.
931
932 Usage: $0 [OPTION]... [VAR=VALUE]...
933
934 To assign environment variables (e.g., CC, CFLAGS...), specify them as
935 VAR=VALUE.  See below for descriptions of some of the useful variables.
936
937 Defaults for the options are specified in brackets.
938
939 Configuration:
940   -h, --help              display this help and exit
941       --help=short        display options specific to this package
942       --help=recursive    display the short help of all the included packages
943   -V, --version           display version information and exit
944   -q, --quiet, --silent   do not print \`checking...' messages
945       --cache-file=FILE   cache test results in FILE [disabled]
946   -C, --config-cache      alias for \`--cache-file=config.cache'
947   -n, --no-create         do not create output files
948       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
949
950 _ACEOF
951
952   cat <<_ACEOF
953 Installation directories:
954   --prefix=PREFIX         install architecture-independent files in PREFIX
955                           [$ac_default_prefix]
956   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
957                           [PREFIX]
958
959 By default, \`make install' will install all the files in
960 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
961 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
962 for instance \`--prefix=\$HOME'.
963
964 For better control, use the options below.
965
966 Fine tuning of the installation directories:
967   --bindir=DIR           user executables [EPREFIX/bin]
968   --sbindir=DIR          system admin executables [EPREFIX/sbin]
969   --libexecdir=DIR       program executables [EPREFIX/libexec]
970   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
971   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
972   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
973   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
974   --libdir=DIR           object code libraries [EPREFIX/lib]
975   --includedir=DIR       C header files [PREFIX/include]
976   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
977   --infodir=DIR          info documentation [PREFIX/info]
978   --mandir=DIR           man documentation [PREFIX/man]
979 _ACEOF
980
981   cat <<\_ACEOF
982
983 Program names:
984   --program-prefix=PREFIX            prepend PREFIX to installed program names
985   --program-suffix=SUFFIX            append SUFFIX to installed program names
986   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
987
988 System types:
989   --build=BUILD     configure for building on BUILD [guessed]
990   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
991   --target=TARGET   configure for building compilers for TARGET [HOST]
992 _ACEOF
993 fi
994
995 if test -n "$ac_init_help"; then
996
997   cat <<\_ACEOF
998
999 Optional Features:
1000   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002   --disable-dependency-tracking  speeds up one-time build
1003   --enable-dependency-tracking   do not reject slow dependency extractors
1004   --enable-shared[=PKGS]
1005                           build shared libraries [default=no]
1006   --enable-static[=PKGS]
1007                           build static libraries [default=yes]
1008   --enable-fast-install[=PKGS]
1009                           optimize for fast installation [default=yes]
1010   --disable-libtool-lock  avoid locking (might break parallel builds)
1011   --enable-targets        alternative target configurations
1012   --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
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         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1422 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1423         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1424 echo "$as_me:   former value:  $ac_old_val" >&2;}
1425         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1426 echo "$as_me:   current value: $ac_new_val" >&2;}
1427         ac_cache_corrupted=:
1428       fi;;
1429   esac
1430   # Pass precious variables to config.status.
1431   if test "$ac_new_set" = set; then
1432     case $ac_new_val in
1433     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1434       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1435     *) ac_arg=$ac_var=$ac_new_val ;;
1436     esac
1437     case " $ac_configure_args " in
1438       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1439       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1440     esac
1441   fi
1442 done
1443 if $ac_cache_corrupted; then
1444   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1445 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1446   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1447 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1448    { (exit 1); exit 1; }; }
1449 fi
1450
1451 ac_ext=c
1452 ac_cpp='$CPP $CPPFLAGS'
1453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477 ac_aux_dir=
1478 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1479   if test -f $ac_dir/install-sh; then
1480     ac_aux_dir=$ac_dir
1481     ac_install_sh="$ac_aux_dir/install-sh -c"
1482     break
1483   elif test -f $ac_dir/install.sh; then
1484     ac_aux_dir=$ac_dir
1485     ac_install_sh="$ac_aux_dir/install.sh -c"
1486     break
1487   elif test -f $ac_dir/shtool; then
1488     ac_aux_dir=$ac_dir
1489     ac_install_sh="$ac_aux_dir/shtool install -c"
1490     break
1491   fi
1492 done
1493 if test -z "$ac_aux_dir"; then
1494   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1495 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1496    { (exit 1); exit 1; }; }
1497 fi
1498 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1499 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1500 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1501
1502 # Make sure we can run config.sub.
1503 $ac_config_sub sun4 >/dev/null 2>&1 ||
1504   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1505 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1506    { (exit 1); exit 1; }; }
1507
1508 echo "$as_me:$LINENO: checking build system type" >&5
1509 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1510 if test "${ac_cv_build+set}" = set; then
1511   echo $ECHO_N "(cached) $ECHO_C" >&6
1512 else
1513   ac_cv_build_alias=$build_alias
1514 test -z "$ac_cv_build_alias" &&
1515   ac_cv_build_alias=`$ac_config_guess`
1516 test -z "$ac_cv_build_alias" &&
1517   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1518 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1519    { (exit 1); exit 1; }; }
1520 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1521   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1522 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1523    { (exit 1); exit 1; }; }
1524
1525 fi
1526 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1527 echo "${ECHO_T}$ac_cv_build" >&6
1528 build=$ac_cv_build
1529 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532
1533
1534 echo "$as_me:$LINENO: checking host system type" >&5
1535 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1536 if test "${ac_cv_host+set}" = set; then
1537   echo $ECHO_N "(cached) $ECHO_C" >&6
1538 else
1539   ac_cv_host_alias=$host_alias
1540 test -z "$ac_cv_host_alias" &&
1541   ac_cv_host_alias=$ac_cv_build_alias
1542 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1543   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1544 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1545    { (exit 1); exit 1; }; }
1546
1547 fi
1548 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1549 echo "${ECHO_T}$ac_cv_host" >&6
1550 host=$ac_cv_host
1551 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1552 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1553 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554
1555
1556 echo "$as_me:$LINENO: checking target system type" >&5
1557 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1558 if test "${ac_cv_target+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   ac_cv_target_alias=$target_alias
1562 test "x$ac_cv_target_alias" = "x" &&
1563   ac_cv_target_alias=$ac_cv_host_alias
1564 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1565   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1566 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1567    { (exit 1); exit 1; }; }
1568
1569 fi
1570 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1571 echo "${ECHO_T}$ac_cv_target" >&6
1572 target=$ac_cv_target
1573 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1574 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1575 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1576
1577
1578 # The aliases save the names the user supplied, while $host etc.
1579 # will get canonicalized.
1580 test -n "$target_alias" &&
1581   test "$program_prefix$program_suffix$program_transform_name" = \
1582     NONENONEs,x,x, &&
1583   program_prefix=${target_alias}-
1584 ac_ext=c
1585 ac_cpp='$CPP $CPPFLAGS'
1586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589 if test -n "$ac_tool_prefix"; then
1590   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1591 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1592 echo "$as_me:$LINENO: checking for $ac_word" >&5
1593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1594 if test "${ac_cv_prog_CC+set}" = set; then
1595   echo $ECHO_N "(cached) $ECHO_C" >&6
1596 else
1597   if test -n "$CC"; then
1598   ac_cv_prog_CC="$CC" # Let the user override the test.
1599 else
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 for as_dir in $PATH
1602 do
1603   IFS=$as_save_IFS
1604   test -z "$as_dir" && as_dir=.
1605   for ac_exec_ext in '' $ac_executable_extensions; do
1606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1609     break 2
1610   fi
1611 done
1612 done
1613
1614 fi
1615 fi
1616 CC=$ac_cv_prog_CC
1617 if test -n "$CC"; then
1618   echo "$as_me:$LINENO: result: $CC" >&5
1619 echo "${ECHO_T}$CC" >&6
1620 else
1621   echo "$as_me:$LINENO: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1623 fi
1624
1625 fi
1626 if test -z "$ac_cv_prog_CC"; then
1627   ac_ct_CC=$CC
1628   # Extract the first word of "gcc", so it can be a program name with args.
1629 set dummy gcc; ac_word=$2
1630 echo "$as_me:$LINENO: checking for $ac_word" >&5
1631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1633   echo $ECHO_N "(cached) $ECHO_C" >&6
1634 else
1635   if test -n "$ac_ct_CC"; then
1636   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1637 else
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 for as_dir in $PATH
1640 do
1641   IFS=$as_save_IFS
1642   test -z "$as_dir" && as_dir=.
1643   for ac_exec_ext in '' $ac_executable_extensions; do
1644   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645     ac_cv_prog_ac_ct_CC="gcc"
1646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1647     break 2
1648   fi
1649 done
1650 done
1651
1652 fi
1653 fi
1654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1655 if test -n "$ac_ct_CC"; then
1656   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1657 echo "${ECHO_T}$ac_ct_CC" >&6
1658 else
1659   echo "$as_me:$LINENO: result: no" >&5
1660 echo "${ECHO_T}no" >&6
1661 fi
1662
1663   CC=$ac_ct_CC
1664 else
1665   CC="$ac_cv_prog_CC"
1666 fi
1667
1668 if test -z "$CC"; then
1669   if test -n "$ac_tool_prefix"; then
1670   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1671 set dummy ${ac_tool_prefix}cc; ac_word=$2
1672 echo "$as_me:$LINENO: checking for $ac_word" >&5
1673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674 if test "${ac_cv_prog_CC+set}" = set; then
1675   echo $ECHO_N "(cached) $ECHO_C" >&6
1676 else
1677   if test -n "$CC"; then
1678   ac_cv_prog_CC="$CC" # Let the user override the test.
1679 else
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 for as_dir in $PATH
1682 do
1683   IFS=$as_save_IFS
1684   test -z "$as_dir" && as_dir=.
1685   for ac_exec_ext in '' $ac_executable_extensions; do
1686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687     ac_cv_prog_CC="${ac_tool_prefix}cc"
1688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689     break 2
1690   fi
1691 done
1692 done
1693
1694 fi
1695 fi
1696 CC=$ac_cv_prog_CC
1697 if test -n "$CC"; then
1698   echo "$as_me:$LINENO: result: $CC" >&5
1699 echo "${ECHO_T}$CC" >&6
1700 else
1701   echo "$as_me:$LINENO: result: no" >&5
1702 echo "${ECHO_T}no" >&6
1703 fi
1704
1705 fi
1706 if test -z "$ac_cv_prog_CC"; then
1707   ac_ct_CC=$CC
1708   # Extract the first word of "cc", so it can be a program name with args.
1709 set dummy cc; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1713   echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715   if test -n "$ac_ct_CC"; then
1716   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1717 else
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   for ac_exec_ext in '' $ac_executable_extensions; do
1724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725     ac_cv_prog_ac_ct_CC="cc"
1726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1727     break 2
1728   fi
1729 done
1730 done
1731
1732 fi
1733 fi
1734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1735 if test -n "$ac_ct_CC"; then
1736   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1737 echo "${ECHO_T}$ac_ct_CC" >&6
1738 else
1739   echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1741 fi
1742
1743   CC=$ac_ct_CC
1744 else
1745   CC="$ac_cv_prog_CC"
1746 fi
1747
1748 fi
1749 if test -z "$CC"; then
1750   # Extract the first word of "cc", so it can be a program name with args.
1751 set dummy cc; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_CC+set}" = set; then
1755   echo $ECHO_N "(cached) $ECHO_C" >&6
1756 else
1757   if test -n "$CC"; then
1758   ac_cv_prog_CC="$CC" # Let the user override the test.
1759 else
1760   ac_prog_rejected=no
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1763 do
1764   IFS=$as_save_IFS
1765   test -z "$as_dir" && as_dir=.
1766   for ac_exec_ext in '' $ac_executable_extensions; do
1767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1769        ac_prog_rejected=yes
1770        continue
1771      fi
1772     ac_cv_prog_CC="cc"
1773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774     break 2
1775   fi
1776 done
1777 done
1778
1779 if test $ac_prog_rejected = yes; then
1780   # We found a bogon in the path, so make sure we never use it.
1781   set dummy $ac_cv_prog_CC
1782   shift
1783   if test $# != 0; then
1784     # We chose a different compiler from the bogus one.
1785     # However, it has the same basename, so the bogon will be chosen
1786     # first if we set CC to just the basename; use the full file name.
1787     shift
1788     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1789   fi
1790 fi
1791 fi
1792 fi
1793 CC=$ac_cv_prog_CC
1794 if test -n "$CC"; then
1795   echo "$as_me:$LINENO: result: $CC" >&5
1796 echo "${ECHO_T}$CC" >&6
1797 else
1798   echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1800 fi
1801
1802 fi
1803 if test -z "$CC"; then
1804   if test -n "$ac_tool_prefix"; then
1805   for ac_prog in cl
1806   do
1807     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1809 echo "$as_me:$LINENO: checking for $ac_word" >&5
1810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811 if test "${ac_cv_prog_CC+set}" = set; then
1812   echo $ECHO_N "(cached) $ECHO_C" >&6
1813 else
1814   if test -n "$CC"; then
1815   ac_cv_prog_CC="$CC" # Let the user override the test.
1816 else
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818 for as_dir in $PATH
1819 do
1820   IFS=$as_save_IFS
1821   test -z "$as_dir" && as_dir=.
1822   for ac_exec_ext in '' $ac_executable_extensions; do
1823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826     break 2
1827   fi
1828 done
1829 done
1830
1831 fi
1832 fi
1833 CC=$ac_cv_prog_CC
1834 if test -n "$CC"; then
1835   echo "$as_me:$LINENO: result: $CC" >&5
1836 echo "${ECHO_T}$CC" >&6
1837 else
1838   echo "$as_me:$LINENO: result: no" >&5
1839 echo "${ECHO_T}no" >&6
1840 fi
1841
1842     test -n "$CC" && break
1843   done
1844 fi
1845 if test -z "$CC"; then
1846   ac_ct_CC=$CC
1847   for ac_prog in cl
1848 do
1849   # Extract the first word of "$ac_prog", so it can be a program name with args.
1850 set dummy $ac_prog; ac_word=$2
1851 echo "$as_me:$LINENO: checking for $ac_word" >&5
1852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1854   echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856   if test -n "$ac_ct_CC"; then
1857   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1858 else
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862   IFS=$as_save_IFS
1863   test -z "$as_dir" && as_dir=.
1864   for ac_exec_ext in '' $ac_executable_extensions; do
1865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866     ac_cv_prog_ac_ct_CC="$ac_prog"
1867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868     break 2
1869   fi
1870 done
1871 done
1872
1873 fi
1874 fi
1875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1876 if test -n "$ac_ct_CC"; then
1877   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1878 echo "${ECHO_T}$ac_ct_CC" >&6
1879 else
1880   echo "$as_me:$LINENO: result: no" >&5
1881 echo "${ECHO_T}no" >&6
1882 fi
1883
1884   test -n "$ac_ct_CC" && break
1885 done
1886
1887   CC=$ac_ct_CC
1888 fi
1889
1890 fi
1891
1892
1893 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1894 See \`config.log' for more details." >&5
1895 echo "$as_me: error: no acceptable C compiler found in \$PATH
1896 See \`config.log' for more details." >&2;}
1897    { (exit 1); exit 1; }; }
1898
1899 # Provide some information about the compiler.
1900 echo "$as_me:$LINENO:" \
1901      "checking for C compiler version" >&5
1902 ac_compiler=`set X $ac_compile; echo $2`
1903 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1904   (eval $ac_compiler --version </dev/null >&5) 2>&5
1905   ac_status=$?
1906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1907   (exit $ac_status); }
1908 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1909   (eval $ac_compiler -v </dev/null >&5) 2>&5
1910   ac_status=$?
1911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1912   (exit $ac_status); }
1913 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1914   (eval $ac_compiler -V </dev/null >&5) 2>&5
1915   ac_status=$?
1916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1917   (exit $ac_status); }
1918
1919 cat >conftest.$ac_ext <<_ACEOF
1920 /* confdefs.h.  */
1921 _ACEOF
1922 cat confdefs.h >>conftest.$ac_ext
1923 cat >>conftest.$ac_ext <<_ACEOF
1924 /* end confdefs.h.  */
1925
1926 int
1927 main ()
1928 {
1929
1930   ;
1931   return 0;
1932 }
1933 _ACEOF
1934 ac_clean_files_save=$ac_clean_files
1935 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1936 # Try to create an executable without -o first, disregard a.out.
1937 # It will help us diagnose broken compilers, and finding out an intuition
1938 # of exeext.
1939 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1940 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1941 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1942 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1943   (eval $ac_link_default) 2>&5
1944   ac_status=$?
1945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946   (exit $ac_status); }; then
1947   # Find the output, starting from the most likely.  This scheme is
1948 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1949 # resort.
1950
1951 # Be careful to initialize this variable, since it used to be cached.
1952 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1953 ac_cv_exeext=
1954 # b.out is created by i960 compilers.
1955 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1956 do
1957   test -f "$ac_file" || continue
1958   case $ac_file in
1959     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1960         ;;
1961     conftest.$ac_ext )
1962         # This is the source file.
1963         ;;
1964     [ab].out )
1965         # We found the default executable, but exeext='' is most
1966         # certainly right.
1967         break;;
1968     *.* )
1969         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1970         # FIXME: I believe we export ac_cv_exeext for Libtool,
1971         # but it would be cool to find out if it's true.  Does anybody
1972         # maintain Libtool? --akim.
1973         export ac_cv_exeext
1974         break;;
1975     * )
1976         break;;
1977   esac
1978 done
1979 else
1980   echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1982
1983 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1984 See \`config.log' for more details." >&5
1985 echo "$as_me: error: C compiler cannot create executables
1986 See \`config.log' for more details." >&2;}
1987    { (exit 77); exit 77; }; }
1988 fi
1989
1990 ac_exeext=$ac_cv_exeext
1991 echo "$as_me:$LINENO: result: $ac_file" >&5
1992 echo "${ECHO_T}$ac_file" >&6
1993
1994 # Check the compiler produces executables we can run.  If not, either
1995 # the compiler is broken, or we cross compile.
1996 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1997 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1998 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1999 # If not cross compiling, check that we can run a simple program.
2000 if test "$cross_compiling" != yes; then
2001   if { ac_try='./$ac_file'
2002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003   (eval $ac_try) 2>&5
2004   ac_status=$?
2005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006   (exit $ac_status); }; }; then
2007     cross_compiling=no
2008   else
2009     if test "$cross_compiling" = maybe; then
2010         cross_compiling=yes
2011     else
2012         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2013 If you meant to cross compile, use \`--host'.
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: cannot run C compiled programs.
2016 If you meant to cross compile, use \`--host'.
2017 See \`config.log' for more details." >&2;}
2018    { (exit 1); exit 1; }; }
2019     fi
2020   fi
2021 fi
2022 echo "$as_me:$LINENO: result: yes" >&5
2023 echo "${ECHO_T}yes" >&6
2024
2025 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2026 ac_clean_files=$ac_clean_files_save
2027 # Check the compiler produces executables we can run.  If not, either
2028 # the compiler is broken, or we cross compile.
2029 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2030 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2031 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2032 echo "${ECHO_T}$cross_compiling" >&6
2033
2034 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2035 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2037   (eval $ac_link) 2>&5
2038   ac_status=$?
2039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040   (exit $ac_status); }; then
2041   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2042 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2043 # work properly (i.e., refer to `conftest.exe'), while it won't with
2044 # `rm'.
2045 for ac_file in conftest.exe conftest conftest.*; do
2046   test -f "$ac_file" || continue
2047   case $ac_file in
2048     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2049     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2050           export ac_cv_exeext
2051           break;;
2052     * ) break;;
2053   esac
2054 done
2055 else
2056   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2057 See \`config.log' for more details." >&5
2058 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2059 See \`config.log' for more details." >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062
2063 rm -f conftest$ac_cv_exeext
2064 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2065 echo "${ECHO_T}$ac_cv_exeext" >&6
2066
2067 rm -f conftest.$ac_ext
2068 EXEEXT=$ac_cv_exeext
2069 ac_exeext=$EXEEXT
2070 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2071 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2072 if test "${ac_cv_objext+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   cat >conftest.$ac_ext <<_ACEOF
2076 /* confdefs.h.  */
2077 _ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h.  */
2081
2082 int
2083 main ()
2084 {
2085
2086   ;
2087   return 0;
2088 }
2089 _ACEOF
2090 rm -f conftest.o conftest.obj
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092   (eval $ac_compile) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; then
2096   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2097   case $ac_file in
2098     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2099     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2100        break;;
2101   esac
2102 done
2103 else
2104   echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2106
2107 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2108 See \`config.log' for more details." >&5
2109 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2110 See \`config.log' for more details." >&2;}
2111    { (exit 1); exit 1; }; }
2112 fi
2113
2114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2115 fi
2116 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2117 echo "${ECHO_T}$ac_cv_objext" >&6
2118 OBJEXT=$ac_cv_objext
2119 ac_objext=$OBJEXT
2120 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2121 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2122 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2123   echo $ECHO_N "(cached) $ECHO_C" >&6
2124 else
2125   cat >conftest.$ac_ext <<_ACEOF
2126 /* confdefs.h.  */
2127 _ACEOF
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h.  */
2131
2132 int
2133 main ()
2134 {
2135 #ifndef __GNUC__
2136        choke me
2137 #endif
2138
2139   ;
2140   return 0;
2141 }
2142 _ACEOF
2143 rm -f conftest.$ac_objext
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145   (eval $ac_compile) 2>conftest.er1
2146   ac_status=$?
2147   grep -v '^ *+' conftest.er1 >conftest.err
2148   rm -f conftest.er1
2149   cat conftest.err >&5
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); } &&
2152          { ac_try='test -z "$ac_c_werror_flag"
2153                          || test ! -s conftest.err'
2154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155   (eval $ac_try) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }; } &&
2159          { ac_try='test -s conftest.$ac_objext'
2160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161   (eval $ac_try) 2>&5
2162   ac_status=$?
2163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164   (exit $ac_status); }; }; then
2165   ac_compiler_gnu=yes
2166 else
2167   echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 ac_compiler_gnu=no
2171 fi
2172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2173 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2174
2175 fi
2176 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2177 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2178 GCC=`test $ac_compiler_gnu = yes && echo yes`
2179 ac_test_CFLAGS=${CFLAGS+set}
2180 ac_save_CFLAGS=$CFLAGS
2181 CFLAGS="-g"
2182 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2183 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2184 if test "${ac_cv_prog_cc_g+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   cat >conftest.$ac_ext <<_ACEOF
2188 /* confdefs.h.  */
2189 _ACEOF
2190 cat confdefs.h >>conftest.$ac_ext
2191 cat >>conftest.$ac_ext <<_ACEOF
2192 /* end confdefs.h.  */
2193
2194 int
2195 main ()
2196 {
2197
2198   ;
2199   return 0;
2200 }
2201 _ACEOF
2202 rm -f conftest.$ac_objext
2203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204   (eval $ac_compile) 2>conftest.er1
2205   ac_status=$?
2206   grep -v '^ *+' conftest.er1 >conftest.err
2207   rm -f conftest.er1
2208   cat conftest.err >&5
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); } &&
2211          { ac_try='test -z "$ac_c_werror_flag"
2212                          || test ! -s conftest.err'
2213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214   (eval $ac_try) 2>&5
2215   ac_status=$?
2216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217   (exit $ac_status); }; } &&
2218          { ac_try='test -s conftest.$ac_objext'
2219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220   (eval $ac_try) 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); }; }; then
2224   ac_cv_prog_cc_g=yes
2225 else
2226   echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2228
2229 ac_cv_prog_cc_g=no
2230 fi
2231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232 fi
2233 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2234 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2235 if test "$ac_test_CFLAGS" = set; then
2236   CFLAGS=$ac_save_CFLAGS
2237 elif test $ac_cv_prog_cc_g = yes; then
2238   if test "$GCC" = yes; then
2239     CFLAGS="-g -O2"
2240   else
2241     CFLAGS="-g"
2242   fi
2243 else
2244   if test "$GCC" = yes; then
2245     CFLAGS="-O2"
2246   else
2247     CFLAGS=
2248   fi
2249 fi
2250 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2251 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2252 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2253   echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255   ac_cv_prog_cc_stdc=no
2256 ac_save_CC=$CC
2257 cat >conftest.$ac_ext <<_ACEOF
2258 /* confdefs.h.  */
2259 _ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h.  */
2263 #include <stdarg.h>
2264 #include <stdio.h>
2265 #include <sys/types.h>
2266 #include <sys/stat.h>
2267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2268 struct buf { int x; };
2269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2270 static char *e (p, i)
2271      char **p;
2272      int i;
2273 {
2274   return p[i];
2275 }
2276 static char *f (char * (*g) (char **, int), char **p, ...)
2277 {
2278   char *s;
2279   va_list v;
2280   va_start (v,p);
2281   s = g (p, va_arg (v,int));
2282   va_end (v);
2283   return s;
2284 }
2285
2286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2287    function prototypes and stuff, but not '\xHH' hex character constants.
2288    These don't provoke an error unfortunately, instead are silently treated
2289    as 'x'.  The following induces an error, until -std1 is added to get
2290    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2291    array size at least.  It's necessary to write '\x00'==0 to get something
2292    that's true only with -std1.  */
2293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2294
2295 int test (int i, double x);
2296 struct s1 {int (*f) (int a);};
2297 struct s2 {int (*f) (double a);};
2298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2299 int argc;
2300 char **argv;
2301 int
2302 main ()
2303 {
2304 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 # Don't try gcc -ansi; that turns off useful extensions and
2310 # breaks some systems' header files.
2311 # AIX                   -qlanglvl=ansi
2312 # Ultrix and OSF/1      -std1
2313 # HP-UX 10.20 and later -Ae
2314 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2315 # SVR4                  -Xc -D__EXTENSIONS__
2316 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2317 do
2318   CC="$ac_save_CC $ac_arg"
2319   rm -f conftest.$ac_objext
2320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2321   (eval $ac_compile) 2>conftest.er1
2322   ac_status=$?
2323   grep -v '^ *+' conftest.er1 >conftest.err
2324   rm -f conftest.er1
2325   cat conftest.err >&5
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); } &&
2328          { ac_try='test -z "$ac_c_werror_flag"
2329                          || test ! -s conftest.err'
2330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331   (eval $ac_try) 2>&5
2332   ac_status=$?
2333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334   (exit $ac_status); }; } &&
2335          { ac_try='test -s conftest.$ac_objext'
2336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2337   (eval $ac_try) 2>&5
2338   ac_status=$?
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); }; }; then
2341   ac_cv_prog_cc_stdc=$ac_arg
2342 break
2343 else
2344   echo "$as_me: failed program was:" >&5
2345 sed 's/^/| /' conftest.$ac_ext >&5
2346
2347 fi
2348 rm -f conftest.err conftest.$ac_objext
2349 done
2350 rm -f conftest.$ac_ext conftest.$ac_objext
2351 CC=$ac_save_CC
2352
2353 fi
2354
2355 case "x$ac_cv_prog_cc_stdc" in
2356   x|xno)
2357     echo "$as_me:$LINENO: result: none needed" >&5
2358 echo "${ECHO_T}none needed" >&6 ;;
2359   *)
2360     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2361 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2362     CC="$CC $ac_cv_prog_cc_stdc" ;;
2363 esac
2364
2365 # Some people use a C++ compiler to compile C.  Since we use `exit',
2366 # in C++ we need to declare it.  In case someone uses the same compiler
2367 # for both compiling C and C++ we need to have the C++ compiler decide
2368 # the declaration of exit, since it's the most demanding environment.
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #ifndef __cplusplus
2371   choke me
2372 #endif
2373 _ACEOF
2374 rm -f conftest.$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376   (eval $ac_compile) 2>conftest.er1
2377   ac_status=$?
2378   grep -v '^ *+' conftest.er1 >conftest.err
2379   rm -f conftest.er1
2380   cat conftest.err >&5
2381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382   (exit $ac_status); } &&
2383          { ac_try='test -z "$ac_c_werror_flag"
2384                          || test ! -s conftest.err'
2385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386   (eval $ac_try) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; } &&
2390          { ac_try='test -s conftest.$ac_objext'
2391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392   (eval $ac_try) 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }; }; then
2396   for ac_declaration in \
2397    '' \
2398    'extern "C" void std::exit (int) throw (); using std::exit;' \
2399    'extern "C" void std::exit (int); using std::exit;' \
2400    'extern "C" void exit (int) throw ();' \
2401    'extern "C" void exit (int);' \
2402    'void exit (int);'
2403 do
2404   cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h.  */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h.  */
2410 $ac_declaration
2411 #include <stdlib.h>
2412 int
2413 main ()
2414 {
2415 exit (42);
2416   ;
2417   return 0;
2418 }
2419 _ACEOF
2420 rm -f conftest.$ac_objext
2421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2422   (eval $ac_compile) 2>conftest.er1
2423   ac_status=$?
2424   grep -v '^ *+' conftest.er1 >conftest.err
2425   rm -f conftest.er1
2426   cat conftest.err >&5
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); } &&
2429          { ac_try='test -z "$ac_c_werror_flag"
2430                          || test ! -s conftest.err'
2431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432   (eval $ac_try) 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }; } &&
2436          { ac_try='test -s conftest.$ac_objext'
2437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438   (eval $ac_try) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }; }; then
2442   :
2443 else
2444   echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2446
2447 continue
2448 fi
2449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450   cat >conftest.$ac_ext <<_ACEOF
2451 /* confdefs.h.  */
2452 _ACEOF
2453 cat confdefs.h >>conftest.$ac_ext
2454 cat >>conftest.$ac_ext <<_ACEOF
2455 /* end confdefs.h.  */
2456 $ac_declaration
2457 int
2458 main ()
2459 {
2460 exit (42);
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467   (eval $ac_compile) 2>conftest.er1
2468   ac_status=$?
2469   grep -v '^ *+' conftest.er1 >conftest.err
2470   rm -f conftest.er1
2471   cat conftest.err >&5
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); } &&
2474          { ac_try='test -z "$ac_c_werror_flag"
2475                          || test ! -s conftest.err'
2476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; } &&
2481          { ac_try='test -s conftest.$ac_objext'
2482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483   (eval $ac_try) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; }; then
2487   break
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 fi
2493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2494 done
2495 rm -f conftest*
2496 if test -n "$ac_declaration"; then
2497   echo '#ifdef __cplusplus' >>confdefs.h
2498   echo $ac_declaration      >>confdefs.h
2499   echo '#endif'             >>confdefs.h
2500 fi
2501
2502 else
2503   echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 fi
2507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508 ac_ext=c
2509 ac_cpp='$CPP $CPPFLAGS'
2510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513
2514
2515 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2516 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2517 if test "${ac_cv_search_strerror+set}" = set; then
2518   echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520   ac_func_search_save_LIBS=$LIBS
2521 ac_cv_search_strerror=no
2522 cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528
2529 /* Override any gcc2 internal prototype to avoid an error.  */
2530 #ifdef __cplusplus
2531 extern "C"
2532 #endif
2533 /* We use char because int might match the return type of a gcc2
2534    builtin and then its argument prototype would still apply.  */
2535 char strerror ();
2536 int
2537 main ()
2538 {
2539 strerror ();
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 rm -f conftest.$ac_objext conftest$ac_exeext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546   (eval $ac_link) 2>conftest.er1
2547   ac_status=$?
2548   grep -v '^ *+' conftest.er1 >conftest.err
2549   rm -f conftest.er1
2550   cat conftest.err >&5
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); } &&
2553          { ac_try='test -z "$ac_c_werror_flag"
2554                          || test ! -s conftest.err'
2555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556   (eval $ac_try) 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest$ac_exeext'
2561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562   (eval $ac_try) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }; }; then
2566   ac_cv_search_strerror="none required"
2567 else
2568   echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571 fi
2572 rm -f conftest.err conftest.$ac_objext \
2573       conftest$ac_exeext conftest.$ac_ext
2574 if test "$ac_cv_search_strerror" = no; then
2575   for ac_lib in cposix; do
2576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
2577     cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h.  */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h.  */
2583
2584 /* Override any gcc2 internal prototype to avoid an error.  */
2585 #ifdef __cplusplus
2586 extern "C"
2587 #endif
2588 /* We use char because int might match the return type of a gcc2
2589    builtin and then its argument prototype would still apply.  */
2590 char strerror ();
2591 int
2592 main ()
2593 {
2594 strerror ();
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.$ac_objext conftest$ac_exeext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2601   (eval $ac_link) 2>conftest.er1
2602   ac_status=$?
2603   grep -v '^ *+' conftest.er1 >conftest.err
2604   rm -f conftest.er1
2605   cat conftest.err >&5
2606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607   (exit $ac_status); } &&
2608          { ac_try='test -z "$ac_c_werror_flag"
2609                          || test ! -s conftest.err'
2610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611   (eval $ac_try) 2>&5
2612   ac_status=$?
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); }; } &&
2615          { ac_try='test -s conftest$ac_exeext'
2616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617   (eval $ac_try) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); }; }; then
2621   ac_cv_search_strerror="-l$ac_lib"
2622 break
2623 else
2624   echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 fi
2628 rm -f conftest.err conftest.$ac_objext \
2629       conftest$ac_exeext conftest.$ac_ext
2630   done
2631 fi
2632 LIBS=$ac_func_search_save_LIBS
2633 fi
2634 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2635 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2636 if test "$ac_cv_search_strerror" != no; then
2637   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2638
2639 fi
2640
2641
2642 # We currently only use the version number for the name of any shared
2643 # library.  For user convenience, we always use the same version
2644 # number that BFD is using.
2645 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[         ]*\([^  ]*\)[   ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
2646
2647 am__api_version="1.9"
2648 # Find a good install program.  We prefer a C program (faster),
2649 # so one script is as good as another.  But avoid the broken or
2650 # incompatible versions:
2651 # SysV /etc/install, /usr/sbin/install
2652 # SunOS /usr/etc/install
2653 # IRIX /sbin/install
2654 # AIX /bin/install
2655 # AmigaOS /C/install, which installs bootblocks on floppy discs
2656 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2657 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2658 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2659 # OS/2's system install, which has a completely different semantic
2660 # ./install, which can be erroneously created by make from ./install.sh.
2661 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2662 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2663 if test -z "$INSTALL"; then
2664 if test "${ac_cv_path_install+set}" = set; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670   IFS=$as_save_IFS
2671   test -z "$as_dir" && as_dir=.
2672   # Account for people who put trailing slashes in PATH elements.
2673 case $as_dir/ in
2674   ./ | .// | /cC/* | \
2675   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2676   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2677   /usr/ucb/* ) ;;
2678   *)
2679     # OSF1 and SCO ODT 3.0 have their own names for install.
2680     # Don't use installbsd from OSF since it installs stuff as root
2681     # by default.
2682     for ac_prog in ginstall scoinst install; do
2683       for ac_exec_ext in '' $ac_executable_extensions; do
2684         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2685           if test $ac_prog = install &&
2686             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2687             # AIX install.  It has an incompatible calling convention.
2688             :
2689           elif test $ac_prog = install &&
2690             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691             # program-specific install script used by HP pwplus--don't use.
2692             :
2693           else
2694             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2695             break 3
2696           fi
2697         fi
2698       done
2699     done
2700     ;;
2701 esac
2702 done
2703
2704
2705 fi
2706   if test "${ac_cv_path_install+set}" = set; then
2707     INSTALL=$ac_cv_path_install
2708   else
2709     # As a last resort, use the slow shell script.  We don't cache a
2710     # path for INSTALL within a source directory, because that will
2711     # break other packages using the cache if that directory is
2712     # removed, or if the path is relative.
2713     INSTALL=$ac_install_sh
2714   fi
2715 fi
2716 echo "$as_me:$LINENO: result: $INSTALL" >&5
2717 echo "${ECHO_T}$INSTALL" >&6
2718
2719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2720 # It thinks the first close brace ends the variable substitution.
2721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722
2723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2724
2725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726
2727 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2728 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2729 # Just in case
2730 sleep 1
2731 echo timestamp > conftest.file
2732 # Do `set' in a subshell so we don't clobber the current shell's
2733 # arguments.  Must try -L first in case configure is actually a
2734 # symlink; some systems play weird games with the mod time of symlinks
2735 # (eg FreeBSD returns the mod time of the symlink's containing
2736 # directory).
2737 if (
2738    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2739    if test "$*" = "X"; then
2740       # -L didn't work.
2741       set X `ls -t $srcdir/configure conftest.file`
2742    fi
2743    rm -f conftest.file
2744    if test "$*" != "X $srcdir/configure conftest.file" \
2745       && test "$*" != "X conftest.file $srcdir/configure"; then
2746
2747       # If neither matched, then we have a broken ls.  This can happen
2748       # if, for instance, CONFIG_SHELL is bash and it inherits a
2749       # broken ls alias from the environment.  This has actually
2750       # happened.  Such a system could not be considered "sane".
2751       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2752 alias in your environment" >&5
2753 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2754 alias in your environment" >&2;}
2755    { (exit 1); exit 1; }; }
2756    fi
2757
2758    test "$2" = conftest.file
2759    )
2760 then
2761    # Ok.
2762    :
2763 else
2764    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2765 Check your system clock" >&5
2766 echo "$as_me: error: newly created file is older than distributed files!
2767 Check your system clock" >&2;}
2768    { (exit 1); exit 1; }; }
2769 fi
2770 echo "$as_me:$LINENO: result: yes" >&5
2771 echo "${ECHO_T}yes" >&6
2772 test "$program_prefix" != NONE &&
2773   program_transform_name="s,^,$program_prefix,;$program_transform_name"
2774 # Use a double $ so make ignores it.
2775 test "$program_suffix" != NONE &&
2776   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2777 # Double any \ or $.  echo might interpret backslashes.
2778 # By default was `s,x,x', remove it if useless.
2779 cat <<\_ACEOF >conftest.sed
2780 s/[\\$]/&&/g;s/;s,x,x,$//
2781 _ACEOF
2782 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2783 rm conftest.sed
2784
2785 # expand $ac_aux_dir to an absolute path
2786 am_aux_dir=`cd $ac_aux_dir && pwd`
2787
2788 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2789 # Use eval to expand $SHELL
2790 if eval "$MISSING --run true"; then
2791   am_missing_run="$MISSING --run "
2792 else
2793   am_missing_run=
2794   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2795 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2796 fi
2797
2798 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2799   # We used to keeping the `.' as first argument, in order to
2800   # allow $(mkdir_p) to be used without argument.  As in
2801   #   $(mkdir_p) $(somedir)
2802   # where $(somedir) is conditionally defined.  However this is wrong
2803   # for two reasons:
2804   #  1. if the package is installed by a user who cannot write `.'
2805   #     make install will fail,
2806   #  2. the above comment should most certainly read
2807   #     $(mkdir_p) $(DESTDIR)$(somedir)
2808   #     so it does not work when $(somedir) is undefined and
2809   #     $(DESTDIR) is not.
2810   #  To support the latter case, we have to write
2811   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2812   #  so the `.' trick is pointless.
2813   mkdir_p='mkdir -p --'
2814 else
2815   # On NextStep and OpenStep, the `mkdir' command does not
2816   # recognize any option.  It will interpret all options as
2817   # directories to create, and then abort because `.' already
2818   # exists.
2819   for d in ./-p ./--version;
2820   do
2821     test -d $d && rmdir $d
2822   done
2823   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2824   if test -f "$ac_aux_dir/mkinstalldirs"; then
2825     mkdir_p='$(mkinstalldirs)'
2826   else
2827     mkdir_p='$(install_sh) -d'
2828   fi
2829 fi
2830
2831 for ac_prog in gawk mawk nawk awk
2832 do
2833   # Extract the first word of "$ac_prog", so it can be a program name with args.
2834 set dummy $ac_prog; ac_word=$2
2835 echo "$as_me:$LINENO: checking for $ac_word" >&5
2836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2837 if test "${ac_cv_prog_AWK+set}" = set; then
2838   echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840   if test -n "$AWK"; then
2841   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848   for ac_exec_ext in '' $ac_executable_extensions; do
2849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2850     ac_cv_prog_AWK="$ac_prog"
2851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852     break 2
2853   fi
2854 done
2855 done
2856
2857 fi
2858 fi
2859 AWK=$ac_cv_prog_AWK
2860 if test -n "$AWK"; then
2861   echo "$as_me:$LINENO: result: $AWK" >&5
2862 echo "${ECHO_T}$AWK" >&6
2863 else
2864   echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6
2866 fi
2867
2868   test -n "$AWK" && break
2869 done
2870
2871 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2872 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2873 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2874 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2875   echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877   cat >conftest.make <<\_ACEOF
2878 all:
2879         @echo 'ac_maketemp="$(MAKE)"'
2880 _ACEOF
2881 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2882 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2883 if test -n "$ac_maketemp"; then
2884   eval ac_cv_prog_make_${ac_make}_set=yes
2885 else
2886   eval ac_cv_prog_make_${ac_make}_set=no
2887 fi
2888 rm -f conftest.make
2889 fi
2890 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2891   echo "$as_me:$LINENO: result: yes" >&5
2892 echo "${ECHO_T}yes" >&6
2893   SET_MAKE=
2894 else
2895   echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6
2897   SET_MAKE="MAKE=${MAKE-make}"
2898 fi
2899
2900 rm -rf .tst 2>/dev/null
2901 mkdir .tst 2>/dev/null
2902 if test -d .tst; then
2903   am__leading_dot=.
2904 else
2905   am__leading_dot=_
2906 fi
2907 rmdir .tst 2>/dev/null
2908
2909 DEPDIR="${am__leading_dot}deps"
2910
2911           ac_config_commands="$ac_config_commands depfiles"
2912
2913
2914 am_make=${MAKE-make}
2915 cat > confinc << 'END'
2916 am__doit:
2917         @echo done
2918 .PHONY: am__doit
2919 END
2920 # If we don't find an include directive, just comment out the code.
2921 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2922 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2923 am__include="#"
2924 am__quote=
2925 _am_result=none
2926 # First try GNU make style include.
2927 echo "include confinc" > confmf
2928 # We grep out `Entering directory' and `Leaving directory'
2929 # messages which can occur if `w' ends up in MAKEFLAGS.
2930 # In particular we don't look at `^make:' because GNU make might
2931 # be invoked under some other name (usually "gmake"), in which
2932 # case it prints its new name instead of `make'.
2933 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2934    am__include=include
2935    am__quote=
2936    _am_result=GNU
2937 fi
2938 # Now try BSD make style include.
2939 if test "$am__include" = "#"; then
2940    echo '.include "confinc"' > confmf
2941    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2942       am__include=.include
2943       am__quote="\""
2944       _am_result=BSD
2945    fi
2946 fi
2947
2948
2949 echo "$as_me:$LINENO: result: $_am_result" >&5
2950 echo "${ECHO_T}$_am_result" >&6
2951 rm -f confinc confmf
2952
2953 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2954 if test "${enable_dependency_tracking+set}" = set; then
2955   enableval="$enable_dependency_tracking"
2956
2957 fi;
2958 if test "x$enable_dependency_tracking" != xno; then
2959   am_depcomp="$ac_aux_dir/depcomp"
2960   AMDEPBACKSLASH='\'
2961 fi
2962
2963
2964 if test "x$enable_dependency_tracking" != xno; then
2965   AMDEP_TRUE=
2966   AMDEP_FALSE='#'
2967 else
2968   AMDEP_TRUE='#'
2969   AMDEP_FALSE=
2970 fi
2971
2972
2973
2974 # test to see if srcdir already configured
2975 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2976    test -f $srcdir/config.status; then
2977   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2978 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2979    { (exit 1); exit 1; }; }
2980 fi
2981
2982 # test whether we have cygpath
2983 if test -z "$CYGPATH_W"; then
2984   if (cygpath --version) >/dev/null 2>/dev/null; then
2985     CYGPATH_W='cygpath -w'
2986   else
2987     CYGPATH_W=echo
2988   fi
2989 fi
2990
2991
2992 # Define the identity of the package.
2993  PACKAGE=opcodes
2994  VERSION=${BFD_VERSION}
2995
2996
2997 cat >>confdefs.h <<_ACEOF
2998 #define PACKAGE "$PACKAGE"
2999 _ACEOF
3000
3001
3002 cat >>confdefs.h <<_ACEOF
3003 #define VERSION "$VERSION"
3004 _ACEOF
3005
3006 # Some tools Automake needs.
3007
3008 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3009
3010
3011 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3012
3013
3014 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3015
3016
3017 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3018
3019
3020 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3021
3022 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3023
3024 # Installed binaries are usually stripped using `strip' when the user
3025 # run `make install-strip'.  However `strip' might not be the right
3026 # tool to use in cross-compilation environments, therefore Automake
3027 # will honor the `STRIP' environment variable to overrule this program.
3028 if test "$cross_compiling" != no; then
3029   if test -n "$ac_tool_prefix"; then
3030   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3031 set dummy ${ac_tool_prefix}strip; ac_word=$2
3032 echo "$as_me:$LINENO: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034 if test "${ac_cv_prog_STRIP+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   if test -n "$STRIP"; then
3038   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043   IFS=$as_save_IFS
3044   test -z "$as_dir" && as_dir=.
3045   for ac_exec_ext in '' $ac_executable_extensions; do
3046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049     break 2
3050   fi
3051 done
3052 done
3053
3054 fi
3055 fi
3056 STRIP=$ac_cv_prog_STRIP
3057 if test -n "$STRIP"; then
3058   echo "$as_me:$LINENO: result: $STRIP" >&5
3059 echo "${ECHO_T}$STRIP" >&6
3060 else
3061   echo "$as_me:$LINENO: result: no" >&5
3062 echo "${ECHO_T}no" >&6
3063 fi
3064
3065 fi
3066 if test -z "$ac_cv_prog_STRIP"; then
3067   ac_ct_STRIP=$STRIP
3068   # Extract the first word of "strip", so it can be a program name with args.
3069 set dummy strip; ac_word=$2
3070 echo "$as_me:$LINENO: checking for $ac_word" >&5
3071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3072 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   if test -n "$ac_ct_STRIP"; then
3076   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081   IFS=$as_save_IFS
3082   test -z "$as_dir" && as_dir=.
3083   for ac_exec_ext in '' $ac_executable_extensions; do
3084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3085     ac_cv_prog_ac_ct_STRIP="strip"
3086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3087     break 2
3088   fi
3089 done
3090 done
3091
3092   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3093 fi
3094 fi
3095 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3096 if test -n "$ac_ct_STRIP"; then
3097   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3098 echo "${ECHO_T}$ac_ct_STRIP" >&6
3099 else
3100   echo "$as_me:$LINENO: result: no" >&5
3101 echo "${ECHO_T}no" >&6
3102 fi
3103
3104   STRIP=$ac_ct_STRIP
3105 else
3106   STRIP="$ac_cv_prog_STRIP"
3107 fi
3108
3109 fi
3110 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3111
3112 # We need awk for the "check" target.  The system "awk" is bad on
3113 # some platforms.
3114 # Always define AMTAR for backward compatibility.
3115
3116 AMTAR=${AMTAR-"${am_missing_run}tar"}
3117
3118 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3119
3120
3121
3122
3123 depcc="$CC"   am_compiler_list=
3124
3125 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3126 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3127 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3128   echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3131   # We make a subdir and do the tests there.  Otherwise we can end up
3132   # making bogus files that we don't know about and never remove.  For
3133   # instance it was reported that on HP-UX the gcc test will end up
3134   # making a dummy file named `D' -- because `-MD' means `put the output
3135   # in D'.
3136   mkdir conftest.dir
3137   # Copy depcomp to subdir because otherwise we won't find it if we're
3138   # using a relative directory.
3139   cp "$am_depcomp" conftest.dir
3140   cd conftest.dir
3141   # We will build objects and dependencies in a subdirectory because
3142   # it helps to detect inapplicable dependency modes.  For instance
3143   # both Tru64's cc and ICC support -MD to output dependencies as a
3144   # side effect of compilation, but ICC will put the dependencies in
3145   # the current directory while Tru64 will put them in the object
3146   # directory.
3147   mkdir sub
3148
3149   am_cv_CC_dependencies_compiler_type=none
3150   if test "$am_compiler_list" = ""; then
3151      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3152   fi
3153   for depmode in $am_compiler_list; do
3154     # Setup a source with many dependencies, because some compilers
3155     # like to wrap large dependency lists on column 80 (with \), and
3156     # we should not choose a depcomp mode which is confused by this.
3157     #
3158     # We need to recreate these files for each test, as the compiler may
3159     # overwrite some of them when testing with obscure command lines.
3160     # This happens at least with the AIX C compiler.
3161     : > sub/conftest.c
3162     for i in 1 2 3 4 5 6; do
3163       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3164       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3165       # Solaris 8's {/usr,}/bin/sh.
3166       touch sub/conftst$i.h
3167     done
3168     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3169
3170     case $depmode in
3171     nosideeffect)
3172       # after this tag, mechanisms are not by side-effect, so they'll
3173       # only be used when explicitly requested
3174       if test "x$enable_dependency_tracking" = xyes; then
3175         continue
3176       else
3177         break
3178       fi
3179       ;;
3180     none) break ;;
3181     esac
3182     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3183     # mode.  It turns out that the SunPro C++ compiler does not properly
3184     # handle `-M -o', and we need to detect this.
3185     if depmode=$depmode \
3186        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3187        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3188        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3189          >/dev/null 2>conftest.err &&
3190        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3191        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3192        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3193       # icc doesn't choke on unknown options, it will just issue warnings
3194       # or remarks (even with -Werror).  So we grep stderr for any message
3195       # that says an option was ignored or not supported.
3196       # When given -MP, icc 7.0 and 7.1 complain thusly:
3197       #   icc: Command line warning: ignoring option '-M'; no argument required
3198       # The diagnosis changed in icc 8.0:
3199       #   icc: Command line remark: option '-MP' not supported
3200       if (grep 'ignoring option' conftest.err ||
3201           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3202         am_cv_CC_dependencies_compiler_type=$depmode
3203         break
3204       fi
3205     fi
3206   done
3207
3208   cd ..
3209   rm -rf conftest.dir
3210 else
3211   am_cv_CC_dependencies_compiler_type=none
3212 fi
3213
3214 fi
3215 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3216 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3217 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3218
3219
3220
3221 if
3222   test "x$enable_dependency_tracking" != xno \
3223   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3224   am__fastdepCC_TRUE=
3225   am__fastdepCC_FALSE='#'
3226 else
3227   am__fastdepCC_TRUE='#'
3228   am__fastdepCC_FALSE=
3229 fi
3230
3231
3232
3233
3234 if test -n "$ac_tool_prefix"; then
3235   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}ar; ac_word=$2
3237 echo "$as_me:$LINENO: checking for $ac_word" >&5
3238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3239 if test "${ac_cv_prog_AR+set}" = set; then
3240   echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242   if test -n "$AR"; then
3243   ac_cv_prog_AR="$AR" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3247 do
3248   IFS=$as_save_IFS
3249   test -z "$as_dir" && as_dir=.
3250   for ac_exec_ext in '' $ac_executable_extensions; do
3251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252     ac_cv_prog_AR="${ac_tool_prefix}ar"
3253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254     break 2
3255   fi
3256 done
3257 done
3258
3259 fi
3260 fi
3261 AR=$ac_cv_prog_AR
3262 if test -n "$AR"; then
3263   echo "$as_me:$LINENO: result: $AR" >&5
3264 echo "${ECHO_T}$AR" >&6
3265 else
3266   echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6
3268 fi
3269
3270 fi
3271 if test -z "$ac_cv_prog_AR"; then
3272   ac_ct_AR=$AR
3273   # Extract the first word of "ar", so it can be a program name with args.
3274 set dummy ar; ac_word=$2
3275 echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3277 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280   if test -n "$ac_ct_AR"; then
3281   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286   IFS=$as_save_IFS
3287   test -z "$as_dir" && as_dir=.
3288   for ac_exec_ext in '' $ac_executable_extensions; do
3289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290     ac_cv_prog_ac_ct_AR="ar"
3291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292     break 2
3293   fi
3294 done
3295 done
3296
3297 fi
3298 fi
3299 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3300 if test -n "$ac_ct_AR"; then
3301   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3302 echo "${ECHO_T}$ac_ct_AR" >&6
3303 else
3304   echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3306 fi
3307
3308   AR=$ac_ct_AR
3309 else
3310   AR="$ac_cv_prog_AR"
3311 fi
3312
3313 if test -n "$ac_tool_prefix"; then
3314   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3315 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
3319   echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321   if test -n "$RANLIB"; then
3322   ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
3341 if test -n "$RANLIB"; then
3342   echo "$as_me:$LINENO: result: $RANLIB" >&5
3343 echo "${ECHO_T}$RANLIB" >&6
3344 else
3345   echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3347 fi
3348
3349 fi
3350 if test -z "$ac_cv_prog_RANLIB"; then
3351   ac_ct_RANLIB=$RANLIB
3352   # Extract the first word of "ranlib", so it can be a program name with args.
3353 set dummy ranlib; ac_word=$2
3354 echo "$as_me:$LINENO: checking for $ac_word" >&5
3355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3356 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3357   echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359   if test -n "$ac_ct_RANLIB"; then
3360   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365   IFS=$as_save_IFS
3366   test -z "$as_dir" && as_dir=.
3367   for ac_exec_ext in '' $ac_executable_extensions; do
3368   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369     ac_cv_prog_ac_ct_RANLIB="ranlib"
3370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371     break 2
3372   fi
3373 done
3374 done
3375
3376   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3377 fi
3378 fi
3379 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3380 if test -n "$ac_ct_RANLIB"; then
3381   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3382 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3383 else
3384   echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3386 fi
3387
3388   RANLIB=$ac_ct_RANLIB
3389 else
3390   RANLIB="$ac_cv_prog_RANLIB"
3391 fi
3392
3393
3394 # Check whether --enable-shared or --disable-shared was given.
3395 if test "${enable_shared+set}" = set; then
3396   enableval="$enable_shared"
3397   p=${PACKAGE-default}
3398     case $enableval in
3399     yes) enable_shared=yes ;;
3400     no) enable_shared=no ;;
3401     *)
3402       enable_shared=no
3403       # Look at the argument we got.  We use all the common list separators.
3404       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3405       for pkg in $enableval; do
3406         IFS="$lt_save_ifs"
3407         if test "X$pkg" = "X$p"; then
3408           enable_shared=yes
3409         fi
3410       done
3411       IFS="$lt_save_ifs"
3412       ;;
3413     esac
3414 else
3415   enable_shared=no
3416 fi;
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428 macro_version='2.1a'
3429 macro_revision='1.2435'
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442 ltmain="$ac_aux_dir/ltmain.sh"
3443
3444 # Set options
3445
3446 enable_dlopen=no
3447
3448
3449 enable_win32_dll=no
3450
3451
3452
3453 # Check whether --enable-static or --disable-static was given.
3454 if test "${enable_static+set}" = set; then
3455   enableval="$enable_static"
3456   p=${PACKAGE-default}
3457     case $enableval in
3458     yes) enable_static=yes ;;
3459     no) enable_static=no ;;
3460     *)
3461      enable_static=no
3462       # Look at the argument we got.  We use all the common list separators.
3463       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3464       for pkg in $enableval; do
3465         IFS="$lt_save_ifs"
3466         if test "X$pkg" = "X$p"; then
3467           enable_static=yes
3468         fi
3469       done
3470       IFS="$lt_save_ifs"
3471       ;;
3472     esac
3473 else
3474   enable_static=yes
3475 fi;
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485 # Check whether --with-pic or --without-pic was given.
3486 if test "${with_pic+set}" = set; then
3487   withval="$with_pic"
3488   pic_mode="$withval"
3489 else
3490   pic_mode=default
3491 fi;
3492
3493 test -z "$pic_mode" && pic_mode=default
3494
3495
3496
3497
3498
3499
3500
3501 # Check whether --enable-fast-install or --disable-fast-install was given.
3502 if test "${enable_fast_install+set}" = set; then
3503   enableval="$enable_fast_install"
3504   p=${PACKAGE-default}
3505     case $enableval in
3506     yes) enable_fast_install=yes ;;
3507     no) enable_fast_install=no ;;
3508     *)
3509       enable_fast_install=no
3510       # Look at the argument we got.  We use all the common list separators.
3511       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3512       for pkg in $enableval; do
3513         IFS="$lt_save_ifs"
3514         if test "X$pkg" = "X$p"; then
3515           enable_fast_install=yes
3516         fi
3517       done
3518       IFS="$lt_save_ifs"
3519       ;;
3520     esac
3521 else
3522   enable_fast_install=yes
3523 fi;
3524
3525
3526
3527
3528
3529
3530
3531
3532 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3533 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3534 if test "${lt_cv_path_SED+set}" = set; then
3535   echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537   # Loop through the user's path and test for sed and gsed.
3538 # Then use that list of sed's as ones to test for truncation.
3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 for as_dir in $PATH
3541 do
3542   IFS=$as_save_IFS
3543   test -z "$as_dir" && as_dir=.
3544   for lt_ac_prog in sed gsed; do
3545     for ac_exec_ext in '' $ac_executable_extensions; do
3546       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3547         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3548       fi
3549     done
3550   done
3551 done
3552 IFS=$as_save_IFS
3553 lt_ac_max=0
3554 lt_ac_count=0
3555 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3556 # along with /bin/sed that truncates output.
3557 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3558   test ! -f $lt_ac_sed && continue
3559   cat /dev/null > conftest.in
3560   lt_ac_count=0
3561   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3562   # Check for GNU sed and select it if it is found.
3563   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3564     lt_cv_path_SED=$lt_ac_sed
3565     break
3566   fi
3567   while true; do
3568     cat conftest.in conftest.in >conftest.tmp
3569     mv conftest.tmp conftest.in
3570     cp conftest.in conftest.nl
3571     echo >>conftest.nl
3572     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3573     cmp -s conftest.out conftest.nl || break
3574     # 10000 chars as input seems more than enough
3575     test $lt_ac_count -gt 10 && break
3576     lt_ac_count=`expr $lt_ac_count + 1`
3577     if test $lt_ac_count -gt $lt_ac_max; then
3578       lt_ac_max=$lt_ac_count
3579       lt_cv_path_SED=$lt_ac_sed
3580     fi
3581   done
3582 done
3583
3584 fi
3585
3586 SED=$lt_cv_path_SED
3587
3588 echo "$as_me:$LINENO: result: $SED" >&5
3589 echo "${ECHO_T}$SED" >&6
3590
3591 test -z "$SED" && SED=sed
3592 Xsed="$SED -e 1s/^X//"
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604 echo "$as_me:$LINENO: checking for egrep" >&5
3605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3606 if test "${ac_cv_prog_egrep+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3610     then ac_cv_prog_egrep='grep -E'
3611     else ac_cv_prog_egrep='egrep'
3612     fi
3613 fi
3614 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3615 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3616  EGREP=$ac_cv_prog_egrep
3617
3618
3619 echo "$as_me:$LINENO: checking for fgrep" >&5
3620 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3621 if test "${ac_cv_prog_fgrep+set}" = set; then
3622   echo $ECHO_N "(cached) $ECHO_C" >&6
3623 else
3624   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3625     then ac_cv_prog_fgrep='grep -F'
3626     else ac_cv_prog_fgrep='fgrep'
3627     fi
3628 fi
3629 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3630 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3631  FGREP=$ac_cv_prog_fgrep
3632
3633
3634 test -z "$GREP" && GREP=grep
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3655 if test "${with_gnu_ld+set}" = set; then
3656   withval="$with_gnu_ld"
3657   test "$withval" = no || with_gnu_ld=yes
3658 else
3659   with_gnu_ld=no
3660 fi;
3661 ac_prog=ld
3662 if test "$GCC" = yes; then
3663   # Check if gcc -print-prog-name=ld gives a path.
3664   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3665 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3666   case $host in
3667   *-*-mingw*)
3668     # gcc leaves a trailing carriage return which upsets mingw
3669     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3670   *)
3671     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3672   esac
3673   case $ac_prog in
3674     # Accept absolute paths.
3675     [\\/]* | ?:[\\/]*)
3676       re_direlt='/[^/][^/]*/\.\./'
3677       # Canonicalize the pathname of ld
3678       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3679       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3680         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3681       done
3682       test -z "$LD" && LD="$ac_prog"
3683       ;;
3684   "")
3685     # If it fails, then pretend we aren't using GCC.
3686     ac_prog=ld
3687     ;;
3688   *)
3689     # If it is relative, then search for the first ld in PATH.
3690     with_gnu_ld=unknown
3691     ;;
3692   esac
3693 elif test "$with_gnu_ld" = yes; then
3694   echo "$as_me:$LINENO: checking for GNU ld" >&5
3695 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3696 else
3697   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3698 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3699 fi
3700 if test "${lt_cv_path_LD+set}" = set; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   if test -z "$LD"; then
3704   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3705   for ac_dir in $PATH; do
3706     IFS="$lt_save_ifs"
3707     test -z "$ac_dir" && ac_dir=.
3708     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3709       lt_cv_path_LD="$ac_dir/$ac_prog"
3710       # Check to see if the program is GNU ld.  I'd rather use --version,
3711       # but apparently some variants of GNU ld only accept -v.
3712       # Break only if it was the GNU/non-GNU ld that we prefer.
3713       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3714       *GNU* | *'with BFD'*)
3715         test "$with_gnu_ld" != no && break
3716         ;;
3717       *)
3718         test "$with_gnu_ld" != yes && break
3719         ;;
3720       esac
3721     fi
3722   done
3723   IFS="$lt_save_ifs"
3724 else
3725   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3726 fi
3727 fi
3728
3729 LD="$lt_cv_path_LD"
3730 if test -n "$LD"; then
3731   echo "$as_me:$LINENO: result: $LD" >&5
3732 echo "${ECHO_T}$LD" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3738 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3739    { (exit 1); exit 1; }; }
3740 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3741 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3742 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3746 case `$LD -v 2>&1 </dev/null` in
3747 *GNU* | *'with BFD'*)
3748   lt_cv_prog_gnu_ld=yes
3749   ;;
3750 *)
3751   lt_cv_prog_gnu_ld=no
3752   ;;
3753 esac
3754 fi
3755 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3756 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3757 with_gnu_ld=$lt_cv_prog_gnu_ld
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3769 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3770 if test "${lt_cv_path_NM+set}" = set; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   if test -n "$NM"; then
3774   # Let the user override the test.
3775   lt_cv_path_NM="$NM"
3776 else
3777   lt_nm_to_check="${ac_tool_prefix}nm"
3778   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3779     lt_nm_to_check="$lt_nm_to_check nm"
3780   fi
3781   for lt_tmp_nm in $lt_nm_to_check; do
3782     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3783     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3784       IFS="$lt_save_ifs"
3785       test -z "$ac_dir" && ac_dir=.
3786       tmp_nm="$ac_dir/$lt_tmp_nm"
3787       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3788         # Check to see if the nm accepts a BSD-compat flag.
3789         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3790         #   nm: unknown option "B" ignored
3791         # Tru64's nm complains that /dev/null is an invalid object file
3792         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3793         */dev/null* | *'Invalid file or object type'*)
3794           lt_cv_path_NM="$tmp_nm -B"
3795           break
3796           ;;
3797         *)
3798           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3799           */dev/null*)
3800             lt_cv_path_NM="$tmp_nm -p"
3801             break
3802             ;;
3803           *)
3804             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3805             continue # so that we can try to find one that supports BSD flags
3806             ;;
3807           esac
3808           ;;
3809         esac
3810       fi
3811     done
3812     IFS="$lt_save_ifs"
3813   done
3814   : ${lt_cv_path_NM=no}
3815 fi
3816 fi
3817 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3818 echo "${ECHO_T}$lt_cv_path_NM" >&6
3819 if test "$lt_cv_path_NM" != "no"; then
3820   NM="$lt_cv_path_NM"
3821 else
3822   # Didn't find any BSD compatible name lister, look for dumpbin.
3823   if test -n "$ac_tool_prefix"; then
3824   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3825   do
3826     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3828 echo "$as_me:$LINENO: checking for $ac_word" >&5
3829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3830 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3831   echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833   if test -n "$DUMPBIN"; then
3834   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3835 else
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3838 do
3839   IFS=$as_save_IFS
3840   test -z "$as_dir" && as_dir=.
3841   for ac_exec_ext in '' $ac_executable_extensions; do
3842   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845     break 2
3846   fi
3847 done
3848 done
3849
3850 fi
3851 fi
3852 DUMPBIN=$ac_cv_prog_DUMPBIN
3853 if test -n "$DUMPBIN"; then
3854   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3855 echo "${ECHO_T}$DUMPBIN" >&6
3856 else
3857   echo "$as_me:$LINENO: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3859 fi
3860
3861     test -n "$DUMPBIN" && break
3862   done
3863 fi
3864 if test -z "$DUMPBIN"; then
3865   ac_ct_DUMPBIN=$DUMPBIN
3866   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3867 do
3868   # Extract the first word of "$ac_prog", so it can be a program name with args.
3869 set dummy $ac_prog; ac_word=$2
3870 echo "$as_me:$LINENO: checking for $ac_word" >&5
3871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3872 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3873   echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875   if test -n "$ac_ct_DUMPBIN"; then
3876   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3877 else
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 for as_dir in $PATH
3880 do
3881   IFS=$as_save_IFS
3882   test -z "$as_dir" && as_dir=.
3883   for ac_exec_ext in '' $ac_executable_extensions; do
3884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3885     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3887     break 2
3888   fi
3889 done
3890 done
3891
3892 fi
3893 fi
3894 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3895 if test -n "$ac_ct_DUMPBIN"; then
3896   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3897 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3898 else
3899   echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3901 fi
3902
3903   test -n "$ac_ct_DUMPBIN" && break
3904 done
3905 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3906
3907   DUMPBIN=$ac_ct_DUMPBIN
3908 fi
3909
3910
3911   if test "$DUMPBIN" != ":"; then
3912     NM="$DUMPBIN"
3913   fi
3914 fi
3915 test -z "$NM" && NM=nm
3916
3917
3918
3919
3920
3921
3922 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3923 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3924 if test "${lt_cv_nm_interface+set}" = set; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927   lt_cv_nm_interface="BSD nm"
3928   echo "int some_variable = 0;" > conftest.$ac_ext
3929   (eval echo "\"\$as_me:3929: $ac_compile\"" >&5)
3930   (eval "$ac_compile" 2>conftest.err)
3931   cat conftest.err >&5
3932   (eval echo "\"\$as_me:3932: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3933   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3934   cat conftest.err >&5
3935   (eval echo "\"\$as_me:3935: output\"" >&5)
3936   cat conftest.out >&5
3937   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3938     lt_cv_nm_interface="MS dumpbin"
3939   fi
3940   rm -f conftest*
3941 fi
3942 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3943 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3944
3945 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3946 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3947 LN_S=$as_ln_s
3948 if test "$LN_S" = "ln -s"; then
3949   echo "$as_me:$LINENO: result: yes" >&5
3950 echo "${ECHO_T}yes" >&6
3951 else
3952   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3953 echo "${ECHO_T}no, using $LN_S" >&6
3954 fi
3955
3956 # find the maximum length of command line arguments
3957 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3958 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3959 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3960   echo $ECHO_N "(cached) $ECHO_C" >&6
3961 else
3962     i=0
3963   teststring="ABCD"
3964
3965   case $build_os in
3966   msdosdjgpp*)
3967     # On DJGPP, this test can blow up pretty badly due to problems in libc
3968     # (any single argument exceeding 2000 bytes causes a buffer overrun
3969     # during glob expansion).  Even if it were fixed, the result of this
3970     # check would be larger than it should be.
3971     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3972     ;;
3973
3974   gnu*)
3975     # Under GNU Hurd, this test is not required because there is
3976     # no limit to the length of command line arguments.
3977     # Libtool will interpret -1 as no limit whatsoever
3978     lt_cv_sys_max_cmd_len=-1;
3979     ;;
3980
3981   cygwin* | mingw*)
3982     # On Win9x/ME, this test blows up -- it succeeds, but takes
3983     # about 5 minutes as the teststring grows exponentially.
3984     # Worse, since 9x/ME are not pre-emptively multitasking,
3985     # you end up with a "frozen" computer, even though with patience
3986     # the test eventually succeeds (with a max line length of 256k).
3987     # Instead, let's just punt: use the minimum linelength reported by
3988     # all of the supported platforms: 8192 (on NT/2K/XP).
3989     lt_cv_sys_max_cmd_len=8192;
3990     ;;
3991
3992   amigaos*)
3993     # On AmigaOS with pdksh, this test takes hours, literally.
3994     # So we just punt and use a minimum line length of 8192.
3995     lt_cv_sys_max_cmd_len=8192;
3996     ;;
3997
3998   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3999     # This has been around since 386BSD, at least.  Likely further.
4000     if test -x /sbin/sysctl; then
4001       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4002     elif test -x /usr/sbin/sysctl; then
4003       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4004     else
4005       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4006     fi
4007     # And add a safety zone
4008     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4009     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4010     ;;
4011
4012   interix*)
4013     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4014     lt_cv_sys_max_cmd_len=196608
4015     ;;
4016
4017   osf*)
4018     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4019     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4020     # nice to cause kernel panics so lets avoid the loop below.
4021     # First set a reasonable default.
4022     lt_cv_sys_max_cmd_len=16384
4023     #
4024     if test -x /sbin/sysconfig; then
4025       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4026         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4027       esac
4028     fi
4029     ;;
4030   sco3.2v5*)
4031     lt_cv_sys_max_cmd_len=102400
4032     ;;
4033   sysv5* | sco5v6* | sysv4.2uw2*)
4034     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4035     if test -n "$kargmax"; then
4036       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4037     else
4038       lt_cv_sys_max_cmd_len=32768
4039     fi
4040     ;;
4041   *)
4042     # Make teststring a little bigger before we do anything with it.
4043     # a 1K string should be a reasonable start.
4044     for i in 1 2 3 4 5 6 7 8 ; do
4045       teststring=$teststring$teststring
4046     done
4047     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4048     # If test is not a shell built-in, we'll probably end up computing a
4049     # maximum length that is only half of the actual maximum length, but
4050     # we can't tell.
4051     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4052                = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4053             test $i != 17 # 1/2 MB should be enough
4054     do
4055       i=`expr $i + 1`
4056       teststring=$teststring$teststring
4057     done
4058     # Only check the string length outside the loop.
4059     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4060     teststring=
4061     # Add a significant safety factor because C++ compilers can tack on massive
4062     # amounts of additional arguments before passing them to the linker.
4063     # It appears as though 1/2 is a usable value.
4064     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4065     ;;
4066   esac
4067
4068 fi
4069
4070 if test -n $lt_cv_sys_max_cmd_len ; then
4071   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4072 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4073 else
4074   echo "$as_me:$LINENO: result: none" >&5
4075 echo "${ECHO_T}none" >&6
4076 fi
4077 max_cmd_len=$lt_cv_sys_max_cmd_len
4078
4079
4080
4081
4082
4083
4084
4085 : ${CP="cp -f"}
4086 : ${MV="mv -f"}
4087 : ${RM="rm -f"}
4088
4089 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4090 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4091 # Try some XSI features
4092 xsi_shell=no
4093 ( _lt_dummy="a/b/c"
4094   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4095       = c,a/b,, ) >/dev/null 2>&1 \
4096   && xsi_shell=yes
4097 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4098 echo "${ECHO_T}$xsi_shell" >&6
4099
4100
4101 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4102 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4103 lt_shell_append=no
4104 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4105     >/dev/null 2>&1 \
4106   && lt_shell_append=yes
4107 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4108 echo "${ECHO_T}$lt_shell_append" >&6
4109
4110
4111 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4112   lt_unset=unset
4113 else
4114   lt_unset=false
4115 fi
4116
4117
4118
4119
4120
4121 # test EBCDIC or ASCII
4122 case `echo X|tr X '\101'` in
4123  A) # ASCII based system
4124     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4125   lt_SP2NL='tr \040 \012'
4126   lt_NL2SP='tr \015\012 \040\040'
4127   ;;
4128  *) # EBCDIC based system
4129   lt_SP2NL='tr \100 \n'
4130   lt_NL2SP='tr \r\n \100\100'
4131   ;;
4132 esac
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4143 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4144 if test "${lt_cv_ld_reload_flag+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   lt_cv_ld_reload_flag='-r'
4148 fi
4149 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4150 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4151 reload_flag=$lt_cv_ld_reload_flag
4152 case $reload_flag in
4153 "" | " "*) ;;
4154 *) reload_flag=" $reload_flag" ;;
4155 esac
4156 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4157 case $host_os in
4158   darwin*)
4159     if test "$GCC" = yes; then
4160       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4161     else
4162       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4163     fi
4164     ;;
4165 esac
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4177 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4178 if test "${lt_cv_deplibs_check_method+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   lt_cv_file_magic_cmd='$MAGIC_CMD'
4182 lt_cv_file_magic_test_file=
4183 lt_cv_deplibs_check_method='unknown'
4184 # Need to set the preceding variable on all platforms that support
4185 # interlibrary dependencies.
4186 # 'none' -- dependencies not supported.
4187 # `unknown' -- same as none, but documents that we really don't know.
4188 # 'pass_all' -- all dependencies passed with no checks.
4189 # 'test_compile' -- check by making test program.
4190 # 'file_magic [[regex]]' -- check by looking for files in library path
4191 # which responds to the $file_magic_cmd with a given extended regex.
4192 # If you have `file' or equivalent on your system and you're not sure
4193 # whether `pass_all' will *always* work, you probably want this one.
4194
4195 case $host_os in
4196 aix4* | aix5*)
4197   lt_cv_deplibs_check_method=pass_all
4198   ;;
4199
4200 beos*)
4201   lt_cv_deplibs_check_method=pass_all
4202   ;;
4203
4204 bsdi[45]*)
4205   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4206   lt_cv_file_magic_cmd='/usr/bin/file -L'
4207   lt_cv_file_magic_test_file=/shlib/libc.so
4208   ;;
4209
4210 cygwin*)
4211   # func_win32_libid is a shell function defined in ltmain.sh
4212   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4213   lt_cv_file_magic_cmd='func_win32_libid'
4214   ;;
4215
4216 mingw* | pw32*)
4217   # Base MSYS/MinGW do not provide the 'file' command needed by
4218   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4219   # unless we find 'file', for example because we are cross-compiling.
4220   if ( file / ) >/dev/null 2>&1; then
4221     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4222     lt_cv_file_magic_cmd='func_win32_libid'
4223   else
4224     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4225     lt_cv_file_magic_cmd='$OBJDUMP -f'
4226   fi
4227   ;;
4228
4229 darwin* | rhapsody*)
4230   lt_cv_deplibs_check_method=pass_all
4231   ;;
4232
4233 freebsd* | dragonfly*)
4234   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4235     case $host_cpu in
4236     i*86 )
4237       # Not sure whether the presence of OpenBSD here was a mistake.
4238       # Let's accept both of them until this is cleared up.
4239       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4240       lt_cv_file_magic_cmd=/usr/bin/file
4241       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4242       ;;
4243     esac
4244   else
4245     lt_cv_deplibs_check_method=pass_all
4246   fi
4247   ;;
4248
4249 gnu*)
4250   lt_cv_deplibs_check_method=pass_all
4251   ;;
4252
4253 hpux10.20* | hpux11*)
4254   lt_cv_file_magic_cmd=/usr/bin/file
4255   case $host_cpu in
4256   ia64*)
4257     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4258     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4259     ;;
4260   hppa*64*)
4261     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]'
4262     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4263     ;;
4264   *)
4265     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4266     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4267     ;;
4268   esac
4269   ;;
4270
4271 interix[3-9]*)
4272   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4273   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4274   ;;
4275
4276 irix5* | irix6* | nonstopux*)
4277   case $LD in
4278   *-32|*"-32 ") libmagic=32-bit;;
4279   *-n32|*"-n32 ") libmagic=N32;;
4280   *-64|*"-64 ") libmagic=64-bit;;
4281   *) libmagic=never-match;;
4282   esac
4283   lt_cv_deplibs_check_method=pass_all
4284   ;;
4285
4286 # This must be Linux ELF.
4287 linux* | k*bsd*-gnu)
4288   lt_cv_deplibs_check_method=pass_all
4289   ;;
4290
4291 netbsd*)
4292   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4293     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4294   else
4295     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4296   fi
4297   ;;
4298
4299 newos6*)
4300   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4301   lt_cv_file_magic_cmd=/usr/bin/file
4302   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4303   ;;
4304
4305 *nto* | *qnx*)
4306   lt_cv_deplibs_check_method=pass_all
4307   ;;
4308
4309 openbsd*)
4310   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4311     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4312   else
4313     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4314   fi
4315   ;;
4316
4317 osf3* | osf4* | osf5*)
4318   lt_cv_deplibs_check_method=pass_all
4319   ;;
4320
4321 rdos*)
4322   lt_cv_deplibs_check_method=pass_all
4323   ;;
4324
4325 solaris*)
4326   lt_cv_deplibs_check_method=pass_all
4327   ;;
4328
4329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4330   lt_cv_deplibs_check_method=pass_all
4331   ;;
4332
4333 sysv4 | sysv4.3*)
4334   case $host_vendor in
4335   motorola)
4336     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]'
4337     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4338     ;;
4339   ncr)
4340     lt_cv_deplibs_check_method=pass_all
4341     ;;
4342   sequent)
4343     lt_cv_file_magic_cmd='/bin/file'
4344     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4345     ;;
4346   sni)
4347     lt_cv_file_magic_cmd='/bin/file'
4348     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4349     lt_cv_file_magic_test_file=/lib/libc.so
4350     ;;
4351   siemens)
4352     lt_cv_deplibs_check_method=pass_all
4353     ;;
4354   pc)
4355     lt_cv_deplibs_check_method=pass_all
4356     ;;
4357   esac
4358   ;;
4359
4360 tpf*)
4361   lt_cv_deplibs_check_method=pass_all
4362   ;;
4363 esac
4364
4365 fi
4366 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4367 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4368 file_magic_cmd=$lt_cv_file_magic_cmd
4369 deplibs_check_method=$lt_cv_deplibs_check_method
4370 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383 if test -n "$ac_tool_prefix"; then
4384   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4385 set dummy ${ac_tool_prefix}ar; ac_word=$2
4386 echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4388 if test "${ac_cv_prog_AR+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   if test -n "$AR"; then
4392   ac_cv_prog_AR="$AR" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397   IFS=$as_save_IFS
4398   test -z "$as_dir" && as_dir=.
4399   for ac_exec_ext in '' $ac_executable_extensions; do
4400   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401     ac_cv_prog_AR="${ac_tool_prefix}ar"
4402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403     break 2
4404   fi
4405 done
4406 done
4407
4408 fi
4409 fi
4410 AR=$ac_cv_prog_AR
4411 if test -n "$AR"; then
4412   echo "$as_me:$LINENO: result: $AR" >&5
4413 echo "${ECHO_T}$AR" >&6
4414 else
4415   echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6
4417 fi
4418
4419 fi
4420 if test -z "$ac_cv_prog_AR"; then
4421   ac_ct_AR=$AR
4422   # Extract the first word of "ar", so it can be a program name with args.
4423 set dummy ar; ac_word=$2
4424 echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   if test -n "$ac_ct_AR"; then
4430   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437   for ac_exec_ext in '' $ac_executable_extensions; do
4438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439     ac_cv_prog_ac_ct_AR="ar"
4440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441     break 2
4442   fi
4443 done
4444 done
4445
4446   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4447 fi
4448 fi
4449 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4450 if test -n "$ac_ct_AR"; then
4451   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4452 echo "${ECHO_T}$ac_ct_AR" >&6
4453 else
4454   echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4456 fi
4457
4458   AR=$ac_ct_AR
4459 else
4460   AR="$ac_cv_prog_AR"
4461 fi
4462
4463 test -z "$AR" && AR=ar
4464 test -z "$AR_FLAGS" && AR_FLAGS=cru
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476 if test -n "$ac_tool_prefix"; then
4477   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4478 set dummy ${ac_tool_prefix}strip; ac_word=$2
4479 echo "$as_me:$LINENO: checking for $ac_word" >&5
4480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4481 if test "${ac_cv_prog_STRIP+set}" = set; then
4482   echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484   if test -n "$STRIP"; then
4485   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4486 else
4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 for as_dir in $PATH
4489 do
4490   IFS=$as_save_IFS
4491   test -z "$as_dir" && as_dir=.
4492   for ac_exec_ext in '' $ac_executable_extensions; do
4493   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496     break 2
4497   fi
4498 done
4499 done
4500
4501 fi
4502 fi
4503 STRIP=$ac_cv_prog_STRIP
4504 if test -n "$STRIP"; then
4505   echo "$as_me:$LINENO: result: $STRIP" >&5
4506 echo "${ECHO_T}$STRIP" >&6
4507 else
4508   echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4510 fi
4511
4512 fi
4513 if test -z "$ac_cv_prog_STRIP"; then
4514   ac_ct_STRIP=$STRIP
4515   # Extract the first word of "strip", so it can be a program name with args.
4516 set dummy strip; ac_word=$2
4517 echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4519 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522   if test -n "$ac_ct_STRIP"; then
4523   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530   for ac_exec_ext in '' $ac_executable_extensions; do
4531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532     ac_cv_prog_ac_ct_STRIP="strip"
4533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534     break 2
4535   fi
4536 done
4537 done
4538
4539   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4540 fi
4541 fi
4542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4543 if test -n "$ac_ct_STRIP"; then
4544   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4545 echo "${ECHO_T}$ac_ct_STRIP" >&6
4546 else
4547   echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4549 fi
4550
4551   STRIP=$ac_ct_STRIP
4552 else
4553   STRIP="$ac_cv_prog_STRIP"
4554 fi
4555
4556 test -z "$STRIP" && STRIP=:
4557
4558
4559
4560
4561
4562
4563 if test -n "$ac_tool_prefix"; then
4564   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4565 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4566 echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4568 if test "${ac_cv_prog_RANLIB+set}" = set; then
4569   echo $ECHO_N "(cached) $ECHO_C" >&6
4570 else
4571   if test -n "$RANLIB"; then
4572   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4573 else
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577   IFS=$as_save_IFS
4578   test -z "$as_dir" && as_dir=.
4579   for ac_exec_ext in '' $ac_executable_extensions; do
4580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583     break 2
4584   fi
4585 done
4586 done
4587
4588 fi
4589 fi
4590 RANLIB=$ac_cv_prog_RANLIB
4591 if test -n "$RANLIB"; then
4592   echo "$as_me:$LINENO: result: $RANLIB" >&5
4593 echo "${ECHO_T}$RANLIB" >&6
4594 else
4595   echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6
4597 fi
4598
4599 fi
4600 if test -z "$ac_cv_prog_RANLIB"; then
4601   ac_ct_RANLIB=$RANLIB
4602   # Extract the first word of "ranlib", so it can be a program name with args.
4603 set dummy ranlib; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609   if test -n "$ac_ct_RANLIB"; then
4610   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617   for ac_exec_ext in '' $ac_executable_extensions; do
4618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619     ac_cv_prog_ac_ct_RANLIB="ranlib"
4620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621     break 2
4622   fi
4623 done
4624 done
4625
4626   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4627 fi
4628 fi
4629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4630 if test -n "$ac_ct_RANLIB"; then
4631   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4632 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4633 else
4634   echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4636 fi
4637
4638   RANLIB=$ac_ct_RANLIB
4639 else
4640   RANLIB="$ac_cv_prog_RANLIB"
4641 fi
4642
4643 test -z "$RANLIB" && RANLIB=:
4644
4645
4646
4647
4648
4649
4650 # Determine commands to create old-style static archives.
4651 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4652 old_postinstall_cmds='chmod 644 $oldlib'
4653 old_postuninstall_cmds=
4654
4655 if test -n "$RANLIB"; then
4656   case $host_os in
4657   openbsd*)
4658     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4659     ;;
4660   *)
4661     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4662     ;;
4663   esac
4664   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4665 fi
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700 # If no C compiler was specified, use CC.
4701 LTCC=${LTCC-"$CC"}
4702
4703 # If no C compiler flags were specified, use CFLAGS.
4704 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4705
4706 # Allow CC to be a program name with arguments.
4707 compiler=$CC
4708
4709
4710 # Check for command to grab the raw symbol name followed by C symbol from nm.
4711 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4712 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4713 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4714   echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716
4717 # These are sane defaults that work on at least a few old systems.
4718 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4719
4720 # Character class describing NM global symbol codes.
4721 symcode='[BCDEGRST]'
4722
4723 # Regexp to match symbols that can be accessed directly from C.
4724 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4725
4726 # Define system-specific variables.
4727 case $host_os in
4728 aix*)
4729   symcode='[BCDT]'
4730   ;;
4731 cygwin* | mingw* | pw32*)
4732   symcode='[ABCDGISTW]'
4733   ;;
4734 hpux*)
4735   if test "$host_cpu" = ia64; then
4736     symcode='[ABCDEGRST]'
4737   fi
4738   ;;
4739 irix* | nonstopux*)
4740   symcode='[BCDEGRST]'
4741   ;;
4742 osf*)
4743   symcode='[BCDEGQRST]'
4744   ;;
4745 solaris*)
4746   symcode='[BDRT]'
4747   ;;
4748 sco3.2v5*)
4749   symcode='[DT]'
4750   ;;
4751 sysv4.2uw2*)
4752   symcode='[DT]'
4753   ;;
4754 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4755   symcode='[ABDT]'
4756   ;;
4757 sysv4)
4758   symcode='[DFNSTU]'
4759   ;;
4760 esac
4761
4762 # If we're using GNU nm, then use its standard symbol codes.
4763 case `$NM -V 2>&1` in
4764 *GNU* | *'with BFD'*)
4765   symcode='[ABCDGIRSTW]' ;;
4766 esac
4767
4768 # Transform an extracted symbol line into a proper C declaration.
4769 # Some systems (esp. on ia64) link data and code symbols differently,
4770 # so use this general approach.
4771 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4772
4773 # Transform an extracted symbol line into symbol name and symbol address
4774 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4775
4776 # Handle CRLF in mingw tool chain
4777 opt_cr=
4778 case $build_os in
4779 mingw*)
4780   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4781   ;;
4782 esac
4783
4784 # Try without a prefix underscore, then with it.
4785 for ac_symprfx in "" "_"; do
4786
4787   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4788   symxfrm="\\1 $ac_symprfx\\2 \\2"
4789
4790   # Write the raw and C identifiers.
4791   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4792     # Fake it for dumpbin and say T for any non-static function
4793     # and D for any global variable.
4794     # Also find C++ and __fastcall symbols from MSVC++,
4795     # which start with @ or ?.
4796     lt_cv_sys_global_symbol_pipe="$AWK '"\
4797 "     {last_section=section; section=\$ 3};"\
4798 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4799 "     \$ 0!~/External *\|/{next};"\
4800 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4801 "     {if(hide[section]) next};"\
4802 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4803 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4804 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4805 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4806 "     ' prfx=^$ac_symprfx"
4807   else
4808     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4809   fi
4810
4811   # Check to see that the pipe works correctly.
4812   pipe_works=no
4813
4814   rm -f conftest*
4815   cat > conftest.$ac_ext <<_LT_EOF
4816 #ifdef __cplusplus
4817 extern "C" {
4818 #endif
4819 char nm_test_var;
4820 void nm_test_func(void);
4821 void nm_test_func(void){}
4822 #ifdef __cplusplus
4823 }
4824 #endif
4825 int main(){nm_test_var='a';nm_test_func();return(0);}
4826 _LT_EOF
4827
4828   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4829   (eval $ac_compile) 2>&5
4830   ac_status=$?
4831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832   (exit $ac_status); }; then
4833     # Now try to grab the symbols.
4834     nlist=conftest.nm
4835     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4836   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4837   ac_status=$?
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); } && test -s "$nlist"; then
4840       # Try sorting and uniquifying the output.
4841       if sort "$nlist" | uniq > "$nlist"T; then
4842         mv -f "$nlist"T "$nlist"
4843       else
4844         rm -f "$nlist"T
4845       fi
4846
4847       # Make sure that we snagged all the symbols we need.
4848       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4849         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4850           cat <<_LT_EOF > conftest.$ac_ext
4851 #ifdef __cplusplus
4852 extern "C" {
4853 #endif
4854
4855 _LT_EOF
4856           # Now generate the symbol file.
4857           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4858
4859           cat <<_LT_EOF >> conftest.$ac_ext
4860
4861 /* The mapping between symbol names and symbols.  */
4862 const struct {
4863   const char *name;
4864   void       *address;
4865 }
4866 lt__PROGRAM__LTX_preloaded_symbols[] =
4867 {
4868   { "@PROGRAM@", (void *) 0 },
4869 _LT_EOF
4870           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4871           cat <<\_LT_EOF >> conftest.$ac_ext
4872   {0, (void *) 0}
4873 };
4874
4875 /* This works around a problem in FreeBSD linker */
4876 #ifdef FREEBSD_WORKAROUND
4877 static const void *lt_preloaded_setup() {
4878   return lt__PROGRAM__LTX_preloaded_symbols;
4879 }
4880 #endif
4881
4882 #ifdef __cplusplus
4883 }
4884 #endif
4885 _LT_EOF
4886           # Now try linking the two files.
4887           mv conftest.$ac_objext conftstm.$ac_objext
4888           lt_save_LIBS="$LIBS"
4889           lt_save_CFLAGS="$CFLAGS"
4890           LIBS="conftstm.$ac_objext"
4891           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4892           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4893   (eval $ac_link) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); } && test -s conftest${ac_exeext}; then
4897             pipe_works=yes
4898           fi
4899           LIBS="$lt_save_LIBS"
4900           CFLAGS="$lt_save_CFLAGS"
4901         else
4902           echo "cannot find nm_test_func in $nlist" >&5
4903         fi
4904       else
4905         echo "cannot find nm_test_var in $nlist" >&5
4906       fi
4907     else
4908       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4909     fi
4910   else
4911     echo "$progname: failed program was:" >&5
4912     cat conftest.$ac_ext >&5
4913   fi
4914   rm -f conftest* conftst*
4915
4916   # Do not use the global_symbol_pipe unless it works.
4917   if test "$pipe_works" = yes; then
4918     break
4919   else
4920     lt_cv_sys_global_symbol_pipe=
4921   fi
4922 done
4923
4924 fi
4925
4926 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4927   lt_cv_sys_global_symbol_to_cdecl=
4928 fi
4929 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4930   echo "$as_me:$LINENO: result: failed" >&5
4931 echo "${ECHO_T}failed" >&6
4932 else
4933   echo "$as_me:$LINENO: result: ok" >&5
4934 echo "${ECHO_T}ok" >&6
4935 fi
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4954 if test "${enable_libtool_lock+set}" = set; then
4955   enableval="$enable_libtool_lock"
4956
4957 fi;
4958 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4959
4960 # Some flags need to be propagated to the compiler or linker for good
4961 # libtool support.
4962 case $host in
4963 ia64-*-hpux*)
4964   # Find out which ABI we are using.
4965   echo 'int i;' > conftest.$ac_ext
4966   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967   (eval $ac_compile) 2>&5
4968   ac_status=$?
4969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970   (exit $ac_status); }; then
4971     case `/usr/bin/file conftest.$ac_objext` in
4972       *ELF-32*)
4973         HPUX_IA64_MODE="32"
4974         ;;
4975       *ELF-64*)
4976         HPUX_IA64_MODE="64"
4977         ;;
4978     esac
4979   fi
4980   rm -rf conftest*
4981   ;;
4982 *-*-irix6*)
4983   # Find out which ABI we are using.
4984   echo '#line 4984 "configure"' > conftest.$ac_ext
4985   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986   (eval $ac_compile) 2>&5
4987   ac_status=$?
4988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989   (exit $ac_status); }; then
4990     if test "$lt_cv_prog_gnu_ld" = yes; then
4991       case `/usr/bin/file conftest.$ac_objext` in
4992         *32-bit*)
4993           LD="${LD-ld} -melf32bsmip"
4994           ;;
4995         *N32*)
4996           LD="${LD-ld} -melf32bmipn32"
4997           ;;
4998         *64-bit*)
4999           LD="${LD-ld} -melf64bmip"
5000         ;;
5001       esac
5002     else
5003       case `/usr/bin/file conftest.$ac_objext` in
5004         *32-bit*)
5005           LD="${LD-ld} -32"
5006           ;;
5007         *N32*)
5008           LD="${LD-ld} -n32"
5009           ;;
5010         *64-bit*)
5011           LD="${LD-ld} -64"
5012           ;;
5013       esac
5014     fi
5015   fi
5016   rm -rf conftest*
5017   ;;
5018
5019 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5020 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5021   # Find out which ABI we are using.
5022   echo 'int i;' > conftest.$ac_ext
5023   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024   (eval $ac_compile) 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; then
5028     case `/usr/bin/file conftest.o` in
5029       *32-bit*)
5030         case $host in
5031           x86_64-*kfreebsd*-gnu)
5032             LD="${LD-ld} -m elf_i386_fbsd"
5033             ;;
5034           x86_64-*linux*)
5035             LD="${LD-ld} -m elf_i386"
5036             ;;
5037           ppc64-*linux*|powerpc64-*linux*)
5038             LD="${LD-ld} -m elf32ppclinux"
5039             ;;
5040           s390x-*linux*)
5041             LD="${LD-ld} -m elf_s390"
5042             ;;
5043           sparc64-*linux*)
5044             LD="${LD-ld} -m elf32_sparc"
5045             ;;
5046         esac
5047         ;;
5048       *64-bit*)
5049         case $host in
5050           x86_64-*kfreebsd*-gnu)
5051             LD="${LD-ld} -m elf_x86_64_fbsd"
5052             ;;
5053           x86_64-*linux*)
5054             LD="${LD-ld} -m elf_x86_64"
5055             ;;
5056           ppc*-*linux*|powerpc*-*linux*)
5057             LD="${LD-ld} -m elf64ppc"
5058             ;;
5059           s390*-*linux*|s390*-*tpf*)
5060             LD="${LD-ld} -m elf64_s390"
5061             ;;
5062           sparc*-*linux*)
5063             LD="${LD-ld} -m elf64_sparc"
5064             ;;
5065         esac
5066         ;;
5067     esac
5068   fi
5069   rm -rf conftest*
5070   ;;
5071
5072 *-*-sco3.2v5*)
5073   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5074   SAVE_CFLAGS="$CFLAGS"
5075   CFLAGS="$CFLAGS -belf"
5076   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5077 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5078 if test "${lt_cv_cc_needs_belf+set}" = set; then
5079   echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081   ac_ext=c
5082 ac_cpp='$CPP $CPPFLAGS'
5083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086
5087      cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h.  */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h.  */
5093
5094 int
5095 main ()
5096 {
5097
5098   ;
5099   return 0;
5100 }
5101 _ACEOF
5102 rm -f conftest.$ac_objext conftest$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104   (eval $ac_link) 2>conftest.er1
5105   ac_status=$?
5106   grep -v '^ *+' conftest.er1 >conftest.err
5107   rm -f conftest.er1
5108   cat conftest.err >&5
5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110   (exit $ac_status); } &&
5111          { ac_try='test -z "$ac_c_werror_flag"
5112                          || test ! -s conftest.err'
5113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114   (eval $ac_try) 2>&5
5115   ac_status=$?
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); }; } &&
5118          { ac_try='test -s conftest$ac_exeext'
5119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120   (eval $ac_try) 2>&5
5121   ac_status=$?
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); }; }; then
5124   lt_cv_cc_needs_belf=yes
5125 else
5126   echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 lt_cv_cc_needs_belf=no
5130 fi
5131 rm -f conftest.err conftest.$ac_objext \
5132       conftest$ac_exeext conftest.$ac_ext
5133      ac_ext=c
5134 ac_cpp='$CPP $CPPFLAGS'
5135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138
5139 fi
5140 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5141 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5142   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5143     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5144     CFLAGS="$SAVE_CFLAGS"
5145   fi
5146   ;;
5147 sparc*-*solaris*)
5148   # Find out which ABI we are using.
5149   echo 'int i;' > conftest.$ac_ext
5150   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5151   (eval $ac_compile) 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }; then
5155     case `/usr/bin/file conftest.o` in
5156     *64-bit*)
5157       case $lt_cv_prog_gnu_ld in
5158       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5159       *)    LD="${LD-ld} -64" ;;
5160       esac
5161       ;;
5162     esac
5163   fi
5164   rm -rf conftest*
5165   ;;
5166 esac
5167
5168 need_locks="$enable_libtool_lock"
5169
5170 ac_ext=c
5171 ac_cpp='$CPP $CPPFLAGS'
5172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5176 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5177 # On Suns, sometimes $CPP names a directory.
5178 if test -n "$CPP" && test -d "$CPP"; then
5179   CPP=
5180 fi
5181 if test -z "$CPP"; then
5182   if test "${ac_cv_prog_CPP+set}" = set; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185       # Double quotes because CPP needs to be expanded
5186     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5187     do
5188       ac_preproc_ok=false
5189 for ac_c_preproc_warn_flag in '' yes
5190 do
5191   # Use a header file that comes with gcc, so configuring glibc
5192   # with a fresh cross-compiler works.
5193   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194   # <limits.h> exists even on freestanding compilers.
5195   # On the NeXT, cc -E runs the code through the compiler's parser,
5196   # not just through cpp. "Syntax error" is here to catch this case.
5197   cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h.  */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h.  */
5203 #ifdef __STDC__
5204 # include <limits.h>
5205 #else
5206 # include <assert.h>
5207 #endif
5208                      Syntax error
5209 _ACEOF
5210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5211   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5212   ac_status=$?
5213   grep -v '^ *+' conftest.er1 >conftest.err
5214   rm -f conftest.er1
5215   cat conftest.err >&5
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); } >/dev/null; then
5218   if test -s conftest.err; then
5219     ac_cpp_err=$ac_c_preproc_warn_flag
5220     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5221   else
5222     ac_cpp_err=
5223   fi
5224 else
5225   ac_cpp_err=yes
5226 fi
5227 if test -z "$ac_cpp_err"; then
5228   :
5229 else
5230   echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5232
5233   # Broken: fails on valid input.
5234 continue
5235 fi
5236 rm -f conftest.err conftest.$ac_ext
5237
5238   # OK, works on sane cases.  Now check whether non-existent headers
5239   # can be detected and how.
5240   cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h.  */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h.  */
5246 #include <ac_nonexistent.h>
5247 _ACEOF
5248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5250   ac_status=$?
5251   grep -v '^ *+' conftest.er1 >conftest.err
5252   rm -f conftest.er1
5253   cat conftest.err >&5
5254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255   (exit $ac_status); } >/dev/null; then
5256   if test -s conftest.err; then
5257     ac_cpp_err=$ac_c_preproc_warn_flag
5258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5259   else
5260     ac_cpp_err=
5261   fi
5262 else
5263   ac_cpp_err=yes
5264 fi
5265 if test -z "$ac_cpp_err"; then
5266   # Broken: success on invalid input.
5267 continue
5268 else
5269   echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272   # Passes both tests.
5273 ac_preproc_ok=:
5274 break
5275 fi
5276 rm -f conftest.err conftest.$ac_ext
5277
5278 done
5279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5280 rm -f conftest.err conftest.$ac_ext
5281 if $ac_preproc_ok; then
5282   break
5283 fi
5284
5285     done
5286     ac_cv_prog_CPP=$CPP
5287
5288 fi
5289   CPP=$ac_cv_prog_CPP
5290 else
5291   ac_cv_prog_CPP=$CPP
5292 fi
5293 echo "$as_me:$LINENO: result: $CPP" >&5
5294 echo "${ECHO_T}$CPP" >&6
5295 ac_preproc_ok=false
5296 for ac_c_preproc_warn_flag in '' yes
5297 do
5298   # Use a header file that comes with gcc, so configuring glibc
5299   # with a fresh cross-compiler works.
5300   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5301   # <limits.h> exists even on freestanding compilers.
5302   # On the NeXT, cc -E runs the code through the compiler's parser,
5303   # not just through cpp. "Syntax error" is here to catch this case.
5304   cat >conftest.$ac_ext <<_ACEOF
5305 /* confdefs.h.  */
5306 _ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h.  */
5310 #ifdef __STDC__
5311 # include <limits.h>
5312 #else
5313 # include <assert.h>
5314 #endif
5315                      Syntax error
5316 _ACEOF
5317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5319   ac_status=$?
5320   grep -v '^ *+' conftest.er1 >conftest.err
5321   rm -f conftest.er1
5322   cat conftest.err >&5
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); } >/dev/null; then
5325   if test -s conftest.err; then
5326     ac_cpp_err=$ac_c_preproc_warn_flag
5327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5328   else
5329     ac_cpp_err=
5330   fi
5331 else
5332   ac_cpp_err=yes
5333 fi
5334 if test -z "$ac_cpp_err"; then
5335   :
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340   # Broken: fails on valid input.
5341 continue
5342 fi
5343 rm -f conftest.err conftest.$ac_ext
5344
5345   # OK, works on sane cases.  Now check whether non-existent headers
5346   # can be detected and how.
5347   cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h.  */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h.  */
5353 #include <ac_nonexistent.h>
5354 _ACEOF
5355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5356   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5357   ac_status=$?
5358   grep -v '^ *+' conftest.er1 >conftest.err
5359   rm -f conftest.er1
5360   cat conftest.err >&5
5361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362   (exit $ac_status); } >/dev/null; then
5363   if test -s conftest.err; then
5364     ac_cpp_err=$ac_c_preproc_warn_flag
5365     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5366   else
5367     ac_cpp_err=
5368   fi
5369 else
5370   ac_cpp_err=yes
5371 fi
5372 if test -z "$ac_cpp_err"; then
5373   # Broken: success on invalid input.
5374 continue
5375 else
5376   echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5378
5379   # Passes both tests.
5380 ac_preproc_ok=:
5381 break
5382 fi
5383 rm -f conftest.err conftest.$ac_ext
5384
5385 done
5386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5387 rm -f conftest.err conftest.$ac_ext
5388 if $ac_preproc_ok; then
5389   :
5390 else
5391   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5392 See \`config.log' for more details." >&5
5393 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5394 See \`config.log' for more details." >&2;}
5395    { (exit 1); exit 1; }; }
5396 fi
5397
5398 ac_ext=c
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403
5404
5405 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5406 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5407 if test "${ac_cv_header_stdc+set}" = set; then
5408   echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410   cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h.  */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h.  */
5416 #include <stdlib.h>
5417 #include <stdarg.h>
5418 #include <string.h>
5419 #include <float.h>
5420
5421 int
5422 main ()
5423 {
5424
5425   ;
5426   return 0;
5427 }
5428 _ACEOF
5429 rm -f conftest.$ac_objext
5430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5431   (eval $ac_compile) 2>conftest.er1
5432   ac_status=$?
5433   grep -v '^ *+' conftest.er1 >conftest.err
5434   rm -f conftest.er1
5435   cat conftest.err >&5
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); } &&
5438          { ac_try='test -z "$ac_c_werror_flag"
5439                          || test ! -s conftest.err'
5440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5441   (eval $ac_try) 2>&5
5442   ac_status=$?
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); }; } &&
5445          { ac_try='test -s conftest.$ac_objext'
5446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5447   (eval $ac_try) 2>&5
5448   ac_status=$?
5449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); }; }; then
5451   ac_cv_header_stdc=yes
5452 else
5453   echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456 ac_cv_header_stdc=no
5457 fi
5458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5459
5460 if test $ac_cv_header_stdc = yes; then
5461   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5462   cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h.  */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h.  */
5468 #include <string.h>
5469
5470 _ACEOF
5471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5472   $EGREP "memchr" >/dev/null 2>&1; then
5473   :
5474 else
5475   ac_cv_header_stdc=no
5476 fi
5477 rm -f conftest*
5478
5479 fi
5480
5481 if test $ac_cv_header_stdc = yes; then
5482   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5483   cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h.  */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h.  */
5489 #include <stdlib.h>
5490
5491 _ACEOF
5492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5493   $EGREP "free" >/dev/null 2>&1; then
5494   :
5495 else
5496   ac_cv_header_stdc=no
5497 fi
5498 rm -f conftest*
5499
5500 fi
5501
5502 if test $ac_cv_header_stdc = yes; then
5503   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5504   if test "$cross_compiling" = yes; then
5505   :
5506 else
5507   cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h.  */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h.  */
5513 #include <ctype.h>
5514 #if ((' ' & 0x0FF) == 0x020)
5515 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5516 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5517 #else
5518 # define ISLOWER(c) \
5519                    (('a' <= (c) && (c) <= 'i') \
5520                      || ('j' <= (c) && (c) <= 'r') \
5521                      || ('s' <= (c) && (c) <= 'z'))
5522 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5523 #endif
5524
5525 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5526 int
5527 main ()
5528 {
5529   int i;
5530   for (i = 0; i < 256; i++)
5531     if (XOR (islower (i), ISLOWER (i))
5532         || toupper (i) != TOUPPER (i))
5533       exit(2);
5534   exit (0);
5535 }
5536 _ACEOF
5537 rm -f conftest$ac_exeext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539   (eval $ac_link) 2>&5
5540   ac_status=$?
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544   (eval $ac_try) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); }; }; then
5548   :
5549 else
5550   echo "$as_me: program exited with status $ac_status" >&5
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 ( exit $ac_status )
5555 ac_cv_header_stdc=no
5556 fi
5557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5558 fi
5559 fi
5560 fi
5561 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5562 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5563 if test $ac_cv_header_stdc = yes; then
5564
5565 cat >>confdefs.h <<\_ACEOF
5566 #define STDC_HEADERS 1
5567 _ACEOF
5568
5569 fi
5570
5571 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5582                   inttypes.h stdint.h unistd.h
5583 do
5584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5585 echo "$as_me:$LINENO: checking for $ac_header" >&5
5586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590   cat >conftest.$ac_ext <<_ACEOF
5591 /* confdefs.h.  */
5592 _ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h.  */
5596 $ac_includes_default
5597
5598 #include <$ac_header>
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602   (eval $ac_compile) 2>conftest.er1
5603   ac_status=$?
5604   grep -v '^ *+' conftest.er1 >conftest.err
5605   rm -f conftest.er1
5606   cat conftest.err >&5
5607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608   (exit $ac_status); } &&
5609          { ac_try='test -z "$ac_c_werror_flag"
5610                          || test ! -s conftest.err'
5611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612   (eval $ac_try) 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }; } &&
5616          { ac_try='test -s conftest.$ac_objext'
5617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618   (eval $ac_try) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); }; }; then
5622   eval "$as_ac_Header=yes"
5623 else
5624   echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 eval "$as_ac_Header=no"
5628 fi
5629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5630 fi
5631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5634   cat >>confdefs.h <<_ACEOF
5635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5636 _ACEOF
5637
5638 fi
5639
5640 done
5641
5642
5643
5644 for ac_header in dlfcn.h
5645 do
5646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5647 echo "$as_me:$LINENO: checking for $ac_header" >&5
5648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5650   echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652   cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658 $ac_includes_default
5659
5660 #include <$ac_header>
5661 _ACEOF
5662 rm -f conftest.$ac_objext
5663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5664   (eval $ac_compile) 2>conftest.er1
5665   ac_status=$?
5666   grep -v '^ *+' conftest.er1 >conftest.err
5667   rm -f conftest.er1
5668   cat conftest.err >&5
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } &&
5671          { ac_try='test -z "$ac_c_werror_flag"
5672                          || test ! -s conftest.err'
5673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674   (eval $ac_try) 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); }; } &&
5678          { ac_try='test -s conftest.$ac_objext'
5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680   (eval $ac_try) 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }; }; then
5684   eval "$as_ac_Header=yes"
5685 else
5686   echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689 eval "$as_ac_Header=no"
5690 fi
5691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5692 fi
5693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5696   cat >>confdefs.h <<_ACEOF
5697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5698 _ACEOF
5699
5700 fi
5701
5702 done
5703
5704
5705
5706 # This can be used to rebuild libtool when needed
5707 LIBTOOL_DEPS="$ltmain"
5708
5709 # Always use our own libtool.
5710 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736 test -z "$LN_S" && LN_S="ln -s"
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751 if test -n "${ZSH_VERSION+set}" ; then
5752    setopt NO_GLOB_SUBST
5753 fi
5754
5755 echo "$as_me:$LINENO: checking for objdir" >&5
5756 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5757 if test "${lt_cv_objdir+set}" = set; then
5758   echo $ECHO_N "(cached) $ECHO_C" >&6
5759 else
5760   rm -f .libs 2>/dev/null
5761 mkdir .libs 2>/dev/null
5762 if test -d .libs; then
5763   lt_cv_objdir=.libs
5764 else
5765   # MS-DOS does not allow filenames that begin with a dot.
5766   lt_cv_objdir=_libs
5767 fi
5768 rmdir .libs 2>/dev/null
5769 fi
5770 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5771 echo "${ECHO_T}$lt_cv_objdir" >&6
5772 objdir=$lt_cv_objdir
5773
5774
5775
5776
5777
5778 cat >>confdefs.h <<_ACEOF
5779 #define LT_OBJDIR "$lt_cv_objdir/"
5780 _ACEOF
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798 case $host_os in
5799 aix3*)
5800   # AIX sometimes has problems with the GCC collect2 program.  For some
5801   # reason, if we set the COLLECT_NAMES environment variable, the problems
5802   # vanish in a puff of smoke.
5803   if test "X${COLLECT_NAMES+set}" != Xset; then
5804     COLLECT_NAMES=
5805     export COLLECT_NAMES
5806   fi
5807   ;;
5808 esac
5809
5810 # Sed substitution that helps us do robust quoting.  It backslashifies
5811 # metacharacters that are still active within double-quoted strings.
5812 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5813
5814 # Same as above, but do not quote variable references.
5815 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5816
5817 # Sed substitution to delay expansion of an escaped shell variable in a
5818 # double_quote_subst'ed string.
5819 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5820
5821 # Sed substitution to delay expansion of an escaped single quote.
5822 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5823
5824 # Sed substitution to avoid accidental globbing in evaled expressions
5825 no_glob_subst='s/\*/\\\*/g'
5826
5827 # Global variables:
5828 ofile=libtool
5829 can_build_shared=yes
5830
5831 # All known linkers require a `.a' archive for static linking (except MSVC,
5832 # which needs '.lib').
5833 libext=a
5834
5835 with_gnu_ld="$lt_cv_prog_gnu_ld"
5836
5837 old_CC="$CC"
5838 old_CFLAGS="$CFLAGS"
5839
5840 # Set sane defaults for various variables
5841 test -z "$CC" && CC=cc
5842 test -z "$LTCC" && LTCC=$CC
5843 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5844 test -z "$LD" && LD=ld
5845 test -z "$ac_objext" && ac_objext=o
5846
5847 for cc_temp in $compiler""; do
5848   case $cc_temp in
5849     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5850     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5851     \-*) ;;
5852     *) break;;
5853   esac
5854 done
5855 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5856
5857
5858 # Only perform the check for file, if the check method requires it
5859 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5860 case $deplibs_check_method in
5861 file_magic*)
5862   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5863     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5864 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5865 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   case $MAGIC_CMD in
5869 [\\/*] |  ?:[\\/]*)
5870   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5871   ;;
5872 *)
5873   lt_save_MAGIC_CMD="$MAGIC_CMD"
5874   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5875   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5876   for ac_dir in $ac_dummy; do
5877     IFS="$lt_save_ifs"
5878     test -z "$ac_dir" && ac_dir=.
5879     if test -f $ac_dir/${ac_tool_prefix}file; then
5880       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5881       if test -n "$file_magic_test_file"; then
5882         case $deplibs_check_method in
5883         "file_magic "*)
5884           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5885           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5886           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5887             $EGREP "$file_magic_regex" > /dev/null; then
5888             :
5889           else
5890             cat <<_LT_EOF 1>&2
5891
5892 *** Warning: the command libtool uses to detect shared libraries,
5893 *** $file_magic_cmd, produces output that libtool cannot recognize.
5894 *** The result is that libtool may fail to recognize shared libraries
5895 *** as such.  This will affect the creation of libtool libraries that
5896 *** depend on shared libraries, but programs linked with such libtool
5897 *** libraries will work regardless of this problem.  Nevertheless, you
5898 *** may want to report the problem to your system manager and/or to
5899 *** bug-libtool@gnu.org
5900
5901 _LT_EOF
5902           fi ;;
5903         esac
5904       fi
5905       break
5906     fi
5907   done
5908   IFS="$lt_save_ifs"
5909   MAGIC_CMD="$lt_save_MAGIC_CMD"
5910   ;;
5911 esac
5912 fi
5913
5914 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5915 if test -n "$MAGIC_CMD"; then
5916   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5917 echo "${ECHO_T}$MAGIC_CMD" >&6
5918 else
5919   echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5921 fi
5922
5923
5924
5925
5926
5927 if test -z "$lt_cv_path_MAGIC_CMD"; then
5928   if test -n "$ac_tool_prefix"; then
5929     echo "$as_me:$LINENO: checking for file" >&5
5930 echo $ECHO_N "checking for file... $ECHO_C" >&6
5931 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   case $MAGIC_CMD in
5935 [\\/*] |  ?:[\\/]*)
5936   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5937   ;;
5938 *)
5939   lt_save_MAGIC_CMD="$MAGIC_CMD"
5940   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5941   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5942   for ac_dir in $ac_dummy; do
5943     IFS="$lt_save_ifs"
5944     test -z "$ac_dir" && ac_dir=.
5945     if test -f $ac_dir/file; then
5946       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5947       if test -n "$file_magic_test_file"; then
5948         case $deplibs_check_method in
5949         "file_magic "*)
5950           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5951           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5952           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5953             $EGREP "$file_magic_regex" > /dev/null; then
5954             :
5955           else
5956             cat <<_LT_EOF 1>&2
5957
5958 *** Warning: the command libtool uses to detect shared libraries,
5959 *** $file_magic_cmd, produces output that libtool cannot recognize.
5960 *** The result is that libtool may fail to recognize shared libraries
5961 *** as such.  This will affect the creation of libtool libraries that
5962 *** depend on shared libraries, but programs linked with such libtool
5963 *** libraries will work regardless of this problem.  Nevertheless, you
5964 *** may want to report the problem to your system manager and/or to
5965 *** bug-libtool@gnu.org
5966
5967 _LT_EOF
5968           fi ;;
5969         esac
5970       fi
5971       break
5972     fi
5973   done
5974   IFS="$lt_save_ifs"
5975   MAGIC_CMD="$lt_save_MAGIC_CMD"
5976   ;;
5977 esac
5978 fi
5979
5980 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5981 if test -n "$MAGIC_CMD"; then
5982   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5983 echo "${ECHO_T}$MAGIC_CMD" >&6
5984 else
5985   echo "$as_me:$LINENO: result: no" >&5
5986 echo "${ECHO_T}no" >&6
5987 fi
5988
5989
5990   else
5991     MAGIC_CMD=:
5992   fi
5993 fi
5994
5995   fi
5996   ;;
5997 esac
5998
5999 # Use C for the default configuration in the libtool script
6000
6001 lt_save_CC="$CC"
6002 ac_ext=c
6003 ac_cpp='$CPP $CPPFLAGS'
6004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007
6008
6009 # Source file extension for C test sources.
6010 ac_ext=c
6011
6012 # Object file extension for compiled C test sources.
6013 objext=o
6014 objext=$objext
6015
6016 # Code to be used in simple compile tests
6017 lt_simple_compile_test_code="int some_variable = 0;"
6018
6019 # Code to be used in simple link tests
6020 lt_simple_link_test_code='int main(){return(0);}'
6021
6022
6023
6024
6025
6026
6027
6028 # If no C compiler was specified, use CC.
6029 LTCC=${LTCC-"$CC"}
6030
6031 # If no C compiler flags were specified, use CFLAGS.
6032 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6033
6034 # Allow CC to be a program name with arguments.
6035 compiler=$CC
6036
6037 # Save the default compiler, since it gets overwritten when the other
6038 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6039 compiler_DEFAULT=$CC
6040
6041 # save warnings/boilerplate of simple test code
6042 ac_outfile=conftest.$ac_objext
6043 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6044 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6045 _lt_compiler_boilerplate=`cat conftest.err`
6046 $RM conftest*
6047
6048 ac_outfile=conftest.$ac_objext
6049 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6050 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6051 _lt_linker_boilerplate=`cat conftest.err`
6052 $RM conftest*
6053
6054
6055 ## CAVEAT EMPTOR:
6056 ## There is no encapsulation within the following macros, do not change
6057 ## the running order or otherwise move them around unless you know exactly
6058 ## what you are doing...
6059 if test -n "$compiler"; then
6060
6061 lt_prog_compiler_no_builtin_flag=
6062
6063 if test "$GCC" = yes; then
6064   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6065
6066   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6067 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6068 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   lt_cv_prog_compiler_rtti_exceptions=no
6072    ac_outfile=conftest.$ac_objext
6073    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6074    lt_compiler_flag="-fno-rtti -fno-exceptions"
6075    # Insert the option either (1) after the last *FLAGS variable, or
6076    # (2) before a word containing "conftest.", or (3) at the end.
6077    # Note that $ac_compile itself does not contain backslashes and begins
6078    # with a dollar sign (not a hyphen), so the echo should work correctly.
6079    # The option is referenced via a variable to avoid confusing sed.
6080    lt_compile=`echo "$ac_compile" | $SED \
6081    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6082    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6083    -e 's:$: $lt_compiler_flag:'`
6084    (eval echo "\"\$as_me:6084: $lt_compile\"" >&5)
6085    (eval "$lt_compile" 2>conftest.err)
6086    ac_status=$?
6087    cat conftest.err >&5
6088    echo "$as_me:6088: \$? = $ac_status" >&5
6089    if (exit $ac_status) && test -s "$ac_outfile"; then
6090      # The compiler can only warn and ignore the option if not recognized
6091      # So say no if there are warnings other than the usual output.
6092      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6093      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6094      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6095        lt_cv_prog_compiler_rtti_exceptions=yes
6096      fi
6097    fi
6098    $RM conftest*
6099
6100 fi
6101 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6102 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6103
6104 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6105     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6106 else
6107     :
6108 fi
6109
6110 fi
6111
6112
6113
6114
6115
6116
6117   lt_prog_compiler_wl=
6118 lt_prog_compiler_pic=
6119 lt_prog_compiler_static=
6120
6121 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6122 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6123
6124   if test "$GCC" = yes; then
6125     lt_prog_compiler_wl='-Wl,'
6126     lt_prog_compiler_static='-static'
6127
6128     case $host_os in
6129       aix*)
6130       # All AIX code is PIC.
6131       if test "$host_cpu" = ia64; then
6132         # AIX 5 now supports IA64 processor
6133         lt_prog_compiler_static='-Bstatic'
6134       fi
6135       ;;
6136
6137     amigaos*)
6138       if test "$host_cpu" = m68k; then
6139         # FIXME: we need at least 68020 code to build shared libraries, but
6140         # adding the `-m68020' flag to GCC prevents building anything better,
6141         # like `-m68040'.
6142         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6143       fi
6144       ;;
6145
6146     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6147       # PIC is the default for these OSes.
6148       ;;
6149
6150     mingw* | cygwin* | pw32* | os2*)
6151       # This hack is so that the source file can tell whether it is being
6152       # built for inclusion in a dll (and should export symbols for example).
6153       # Although the cygwin gcc ignores -fPIC, still need this for old-style
6154       # (--disable-auto-import) libraries
6155       lt_prog_compiler_pic='-DDLL_EXPORT'
6156       ;;
6157
6158     darwin* | rhapsody*)
6159       # PIC is the default on this platform
6160       # Common symbols not allowed in MH_DYLIB files
6161       lt_prog_compiler_pic='-fno-common'
6162       ;;
6163
6164     hpux*)
6165       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6166       # not for PA HP-UX.
6167       case $host_cpu in
6168       hppa*64*|ia64*)
6169         # +Z the default
6170         ;;
6171       *)
6172         lt_prog_compiler_pic='-fPIC'
6173         ;;
6174       esac
6175       ;;
6176
6177     interix[3-9]*)
6178       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6179       # Instead, we relocate shared libraries at runtime.
6180       ;;
6181
6182     msdosdjgpp*)
6183       # Just because we use GCC doesn't mean we suddenly get shared libraries
6184       # on systems that don't support them.
6185       lt_prog_compiler_can_build_shared=no
6186       enable_shared=no
6187       ;;
6188
6189     *nto* | *qnx*)
6190       # QNX uses GNU C++, but need to define -shared option too, otherwise
6191       # it will coredump.
6192       lt_prog_compiler_pic='-fPIC -shared'
6193       ;;
6194
6195     sysv4*MP*)
6196       if test -d /usr/nec; then
6197         lt_prog_compiler_pic=-Kconform_pic
6198       fi
6199       ;;
6200
6201     *)
6202       lt_prog_compiler_pic='-fPIC'
6203       ;;
6204     esac
6205   else
6206     # PORTME Check for flag to pass linker flags through the system compiler.
6207     case $host_os in
6208     aix*)
6209       lt_prog_compiler_wl='-Wl,'
6210       if test "$host_cpu" = ia64; then
6211         # AIX 5 now supports IA64 processor
6212         lt_prog_compiler_static='-Bstatic'
6213       else
6214         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6215       fi
6216       ;;
6217     darwin*)
6218       # PIC is the default on this platform
6219       # Common symbols not allowed in MH_DYLIB files
6220       case $cc_basename in
6221       xlc*)
6222         lt_prog_compiler_pic='-qnocommon'
6223         lt_prog_compiler_wl='-Wl,'
6224         ;;
6225       esac
6226       ;;
6227
6228     mingw* | cygwin* | pw32* | os2*)
6229       # This hack is so that the source file can tell whether it is being
6230       # built for inclusion in a dll (and should export symbols for example).
6231       lt_prog_compiler_pic='-DDLL_EXPORT'
6232       ;;
6233
6234     hpux9* | hpux10* | hpux11*)
6235       lt_prog_compiler_wl='-Wl,'
6236       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6237       # not for PA HP-UX.
6238       case $host_cpu in
6239       hppa*64*|ia64*)
6240         # +Z the default
6241         ;;
6242       *)
6243         lt_prog_compiler_pic='+Z'
6244         ;;
6245       esac
6246       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6247       lt_prog_compiler_static='${wl}-a ${wl}archive'
6248       ;;
6249
6250     irix5* | irix6* | nonstopux*)
6251       lt_prog_compiler_wl='-Wl,'
6252       # PIC (with -KPIC) is the default.
6253       lt_prog_compiler_static='-non_shared'
6254       ;;
6255
6256     linux* | k*bsd*-gnu)
6257       case $cc_basename in
6258       icc* | ecc*)
6259         lt_prog_compiler_wl='-Wl,'
6260         lt_prog_compiler_pic='-KPIC'
6261         lt_prog_compiler_static='-static'
6262         ;;
6263       pgcc* | pgf77* | pgf90* | pgf95*)
6264         # Portland Group compilers (*not* the Pentium gcc compiler,
6265         # which looks to be a dead project)
6266         lt_prog_compiler_wl='-Wl,'
6267         lt_prog_compiler_pic='-fpic'
6268         lt_prog_compiler_static='-Bstatic'
6269         ;;
6270       ccc*)
6271         lt_prog_compiler_wl='-Wl,'
6272         # All Alpha code is PIC.
6273         lt_prog_compiler_static='-non_shared'
6274         ;;
6275       *)
6276         case `$CC -V 2>&1 | sed 5q` in
6277         *Sun\ C*)
6278           # Sun C 5.9
6279           lt_prog_compiler_pic='-KPIC'
6280           lt_prog_compiler_static='-Bstatic'
6281           lt_prog_compiler_wl='-Wl,'
6282           ;;
6283         *Sun\ F*)
6284           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6285           lt_prog_compiler_pic='-KPIC'
6286           lt_prog_compiler_static='-Bstatic'
6287           lt_prog_compiler_wl=''
6288           ;;
6289         esac
6290         ;;
6291       esac
6292       ;;
6293
6294     newsos6)
6295       lt_prog_compiler_pic='-KPIC'
6296       lt_prog_compiler_static='-Bstatic'
6297       ;;
6298
6299     *nto* | *qnx*)
6300       # QNX uses GNU C++, but need to define -shared option too, otherwise
6301       # it will coredump.
6302       lt_prog_compiler_pic='-fPIC -shared'
6303       ;;
6304
6305     osf3* | osf4* | osf5*)
6306       lt_prog_compiler_wl='-Wl,'
6307       # All OSF/1 code is PIC.
6308       lt_prog_compiler_static='-non_shared'
6309       ;;
6310
6311     rdos*)
6312       lt_prog_compiler_static='-non_shared'
6313       ;;
6314
6315     solaris*)
6316       lt_prog_compiler_pic='-KPIC'
6317       lt_prog_compiler_static='-Bstatic'
6318       case $cc_basename in
6319       f77* | f90* | f95*)
6320         lt_prog_compiler_wl='-Qoption ld ';;
6321       *)
6322         lt_prog_compiler_wl='-Wl,';;
6323       esac
6324       ;;
6325
6326     sunos4*)
6327       lt_prog_compiler_wl='-Qoption ld '
6328       lt_prog_compiler_pic='-PIC'
6329       lt_prog_compiler_static='-Bstatic'
6330       ;;
6331
6332     sysv4 | sysv4.2uw2* | sysv4.3*)
6333       lt_prog_compiler_wl='-Wl,'
6334       lt_prog_compiler_pic='-KPIC'
6335       lt_prog_compiler_static='-Bstatic'
6336       ;;
6337
6338     sysv4*MP*)
6339       if test -d /usr/nec ;then
6340         lt_prog_compiler_pic='-Kconform_pic'
6341         lt_prog_compiler_static='-Bstatic'
6342       fi
6343       ;;
6344
6345     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6346       lt_prog_compiler_wl='-Wl,'
6347       lt_prog_compiler_pic='-KPIC'
6348       lt_prog_compiler_static='-Bstatic'
6349       ;;
6350
6351     unicos*)
6352       lt_prog_compiler_wl='-Wl,'
6353       lt_prog_compiler_can_build_shared=no
6354       ;;
6355
6356     uts4*)
6357       lt_prog_compiler_pic='-pic'
6358       lt_prog_compiler_static='-Bstatic'
6359       ;;
6360
6361     *)
6362       lt_prog_compiler_can_build_shared=no
6363       ;;
6364     esac
6365   fi
6366
6367 case $host_os in
6368   # For platforms which do not support PIC, -DPIC is meaningless:
6369   *djgpp*)
6370     lt_prog_compiler_pic=
6371     ;;
6372   *)
6373     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6374     ;;
6375 esac
6376 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6377 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6378
6379
6380
6381
6382
6383
6384 #
6385 # Check to make sure the PIC flag actually works.
6386 #
6387 if test -n "$lt_prog_compiler_pic"; then
6388   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6389 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6390 if test "${lt_prog_compiler_pic_works+set}" = set; then
6391   echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393   lt_prog_compiler_pic_works=no
6394    ac_outfile=conftest.$ac_objext
6395    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6396    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6397    # Insert the option either (1) after the last *FLAGS variable, or
6398    # (2) before a word containing "conftest.", or (3) at the end.
6399    # Note that $ac_compile itself does not contain backslashes and begins
6400    # with a dollar sign (not a hyphen), so the echo should work correctly.
6401    # The option is referenced via a variable to avoid confusing sed.
6402    lt_compile=`echo "$ac_compile" | $SED \
6403    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6404    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6405    -e 's:$: $lt_compiler_flag:'`
6406    (eval echo "\"\$as_me:6406: $lt_compile\"" >&5)
6407    (eval "$lt_compile" 2>conftest.err)
6408    ac_status=$?
6409    cat conftest.err >&5
6410    echo "$as_me:6410: \$? = $ac_status" >&5
6411    if (exit $ac_status) && test -s "$ac_outfile"; then
6412      # The compiler can only warn and ignore the option if not recognized
6413      # So say no if there are warnings other than the usual output.
6414      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6415      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6416      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6417        lt_prog_compiler_pic_works=yes
6418      fi
6419    fi
6420    $RM conftest*
6421
6422 fi
6423 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6424 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6425
6426 if test x"$lt_prog_compiler_pic_works" = xyes; then
6427     case $lt_prog_compiler_pic in
6428      "" | " "*) ;;
6429      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6430      esac
6431 else
6432     lt_prog_compiler_pic=
6433      lt_prog_compiler_can_build_shared=no
6434 fi
6435
6436 fi
6437
6438
6439
6440
6441
6442
6443 #
6444 # Check to make sure the static flag actually works.
6445 #
6446 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6447 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6448 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6449 if test "${lt_prog_compiler_static_works+set}" = set; then
6450   echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452   lt_prog_compiler_static_works=no
6453    save_LDFLAGS="$LDFLAGS"
6454    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6455    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6456    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6457      # The linker can only warn and ignore the option if not recognized
6458      # So say no if there are warnings
6459      if test -s conftest.err; then
6460        # Append any errors to the config.log.
6461        cat conftest.err 1>&5
6462        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6463        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6464        if diff conftest.exp conftest.er2 >/dev/null; then
6465          lt_prog_compiler_static_works=yes
6466        fi
6467      else
6468        lt_prog_compiler_static_works=yes
6469      fi
6470    fi
6471    $RM conftest*
6472    LDFLAGS="$save_LDFLAGS"
6473
6474 fi
6475 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6476 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6477
6478 if test x"$lt_prog_compiler_static_works" = xyes; then
6479     :
6480 else
6481     lt_prog_compiler_static=
6482 fi
6483
6484
6485
6486
6487
6488
6489
6490   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6491 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6492 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   lt_cv_prog_compiler_c_o=no
6496    $RM -r conftest 2>/dev/null
6497    mkdir conftest
6498    cd conftest
6499    mkdir out
6500    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6501
6502    lt_compiler_flag="-o out/conftest2.$ac_objext"
6503    # Insert the option either (1) after the last *FLAGS variable, or
6504    # (2) before a word containing "conftest.", or (3) at the end.
6505    # Note that $ac_compile itself does not contain backslashes and begins
6506    # with a dollar sign (not a hyphen), so the echo should work correctly.
6507    lt_compile=`echo "$ac_compile" | $SED \
6508    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6509    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6510    -e 's:$: $lt_compiler_flag:'`
6511    (eval echo "\"\$as_me:6511: $lt_compile\"" >&5)
6512    (eval "$lt_compile" 2>out/conftest.err)
6513    ac_status=$?
6514    cat out/conftest.err >&5
6515    echo "$as_me:6515: \$? = $ac_status" >&5
6516    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6517    then
6518      # The compiler can only warn and ignore the option if not recognized
6519      # So say no if there are warnings
6520      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6521      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6522      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6523        lt_cv_prog_compiler_c_o=yes
6524      fi
6525    fi
6526    chmod u+w . 2>&5
6527    $RM conftest*
6528    # SGI C++ compiler will create directory out/ii_files/ for
6529    # template instantiation
6530    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6531    $RM out/* && rmdir out
6532    cd ..
6533    $RM -r conftest
6534    $RM conftest*
6535
6536 fi
6537 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6538 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6539
6540
6541
6542
6543
6544
6545   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6546 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6547 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6548   echo $ECHO_N "(cached) $ECHO_C" >&6
6549 else
6550   lt_cv_prog_compiler_c_o=no
6551    $RM -r conftest 2>/dev/null
6552    mkdir conftest
6553    cd conftest
6554    mkdir out
6555    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6556
6557    lt_compiler_flag="-o out/conftest2.$ac_objext"
6558    # Insert the option either (1) after the last *FLAGS variable, or
6559    # (2) before a word containing "conftest.", or (3) at the end.
6560    # Note that $ac_compile itself does not contain backslashes and begins
6561    # with a dollar sign (not a hyphen), so the echo should work correctly.
6562    lt_compile=`echo "$ac_compile" | $SED \
6563    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6564    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6565    -e 's:$: $lt_compiler_flag:'`
6566    (eval echo "\"\$as_me:6566: $lt_compile\"" >&5)
6567    (eval "$lt_compile" 2>out/conftest.err)
6568    ac_status=$?
6569    cat out/conftest.err >&5
6570    echo "$as_me:6570: \$? = $ac_status" >&5
6571    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6572    then
6573      # The compiler can only warn and ignore the option if not recognized
6574      # So say no if there are warnings
6575      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6576      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6577      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6578        lt_cv_prog_compiler_c_o=yes
6579      fi
6580    fi
6581    chmod u+w . 2>&5
6582    $RM conftest*
6583    # SGI C++ compiler will create directory out/ii_files/ for
6584    # template instantiation
6585    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6586    $RM out/* && rmdir out
6587    cd ..
6588    $RM -r conftest
6589    $RM conftest*
6590
6591 fi
6592 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6593 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6594
6595
6596
6597
6598 hard_links="nottested"
6599 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6600   # do not overwrite the value of need_locks provided by the user
6601   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6602 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6603   hard_links=yes
6604   $RM conftest*
6605   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6606   touch conftest.a
6607   ln conftest.a conftest.b 2>&5 || hard_links=no
6608   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6609   echo "$as_me:$LINENO: result: $hard_links" >&5
6610 echo "${ECHO_T}$hard_links" >&6
6611   if test "$hard_links" = no; then
6612     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6613 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6614     need_locks=warn
6615   fi
6616 else
6617   need_locks=no
6618 fi
6619
6620
6621
6622
6623
6624
6625   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6626 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6627
6628   runpath_var=
6629   allow_undefined_flag=
6630   always_export_symbols=no
6631   archive_cmds=
6632   archive_expsym_cmds=
6633   compiler_needs_object=no
6634   enable_shared_with_static_runtimes=no
6635   export_dynamic_flag_spec=
6636   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6637   hardcode_automatic=no
6638   hardcode_direct=no
6639   hardcode_direct_absolute=no
6640   hardcode_libdir_flag_spec=
6641   hardcode_libdir_flag_spec_ld=
6642   hardcode_libdir_separator=
6643   hardcode_minus_L=no
6644   hardcode_shlibpath_var=unsupported
6645   inherit_rpath=no
6646   link_all_deplibs=unknown
6647   module_cmds=
6648   module_expsym_cmds=
6649   old_archive_from_new_cmds=
6650   old_archive_from_expsyms_cmds=
6651   thread_safe_flag_spec=
6652   whole_archive_flag_spec=
6653   # include_expsyms should be a list of space-separated symbols to be *always*
6654   # included in the symbol list
6655   include_expsyms=
6656   # exclude_expsyms can be an extended regexp of symbols to exclude
6657   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6658   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6659   # as well as any symbol that contains `d'.
6660   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6661   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6662   # platforms (ab)use it in PIC code, but their linkers get confused if
6663   # the symbol is explicitly referenced.  Since portable code cannot
6664   # rely on this symbol name, it's probably fine to never include it in
6665   # preloaded symbol tables.
6666   extract_expsyms_cmds=
6667
6668   case $host_os in
6669   cygwin* | mingw* | pw32*)
6670     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6671     # When not using gcc, we currently assume that we are using
6672     # Microsoft Visual C++.
6673     if test "$GCC" != yes; then
6674       with_gnu_ld=no
6675     fi
6676     ;;
6677   interix*)
6678     # we just hope/assume this is gcc and not c89 (= MSVC++)
6679     with_gnu_ld=yes
6680     ;;
6681   openbsd*)
6682     with_gnu_ld=no
6683     ;;
6684   esac
6685
6686   ld_shlibs=yes
6687   if test "$with_gnu_ld" = yes; then
6688     # If archive_cmds runs LD, not CC, wlarc should be empty
6689     wlarc='${wl}'
6690
6691     # Set some defaults for GNU ld with shared library support. These
6692     # are reset later if shared libraries are not supported. Putting them
6693     # here allows them to be overridden if necessary.
6694     runpath_var=LD_RUN_PATH
6695     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6696     export_dynamic_flag_spec='${wl}--export-dynamic'
6697     # ancient GNU ld didn't support --whole-archive et. al.
6698     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6699       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6700     else
6701       whole_archive_flag_spec=
6702     fi
6703     supports_anon_versioning=no
6704     case `$LD -v 2>&1` in
6705       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6706       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6707       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6708       *\ 2.11.*) ;; # other 2.11 versions
6709       *) supports_anon_versioning=yes ;;
6710     esac
6711
6712     # See if GNU ld supports shared libraries.
6713     case $host_os in
6714     aix3* | aix4* | aix5*)
6715       # On AIX/PPC, the GNU linker is very broken
6716       if test "$host_cpu" != ia64; then
6717         ld_shlibs=no
6718         cat <<_LT_EOF 1>&2
6719
6720 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6721 *** to be unable to reliably create shared libraries on AIX.
6722 *** Therefore, libtool is disabling shared libraries support.  If you
6723 *** really care for shared libraries, you may want to modify your PATH
6724 *** so that a non-GNU linker is found, and then restart.
6725
6726 _LT_EOF
6727       fi
6728       ;;
6729
6730     amigaos*)
6731       if test "$host_cpu" = m68k; then
6732         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)'
6733         hardcode_libdir_flag_spec='-L$libdir'
6734         hardcode_minus_L=yes
6735       fi
6736
6737       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6738       # that the semantics of dynamic libraries on AmigaOS, at least up
6739       # to version 4, is to share data among multiple programs linked
6740       # with the same dynamic library.  Since this doesn't match the
6741       # behavior of shared libraries on other platforms, we can't use
6742       # them.
6743       ld_shlibs=no
6744       ;;
6745
6746     beos*)
6747       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6748         allow_undefined_flag=unsupported
6749         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6750         # support --undefined.  This deserves some investigation.  FIXME
6751         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6752       else
6753         ld_shlibs=no
6754       fi
6755       ;;
6756
6757     cygwin* | mingw* | pw32*)
6758       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6759       # as there is no search path for DLLs.
6760       hardcode_libdir_flag_spec='-L$libdir'
6761       allow_undefined_flag=unsupported
6762       always_export_symbols=no
6763       enable_shared_with_static_runtimes=yes
6764       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6765
6766       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6767         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6768         # If the export-symbols file already is a .def file (1st line
6769         # is EXPORTS), use it as is; otherwise, prepend...
6770         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6771           cp $export_symbols $output_objdir/$soname.def;
6772         else
6773           echo EXPORTS > $output_objdir/$soname.def;
6774           cat $export_symbols >> $output_objdir/$soname.def;
6775         fi~
6776         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6777       else
6778         ld_shlibs=no
6779       fi
6780       ;;
6781
6782     interix[3-9]*)
6783       hardcode_direct=no
6784       hardcode_shlibpath_var=no
6785       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6786       export_dynamic_flag_spec='${wl}-E'
6787       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6788       # Instead, shared libraries are loaded at an image base (0x10000000 by
6789       # default) and relocated if they conflict, which is a slow very memory
6790       # consuming and fragmenting process.  To avoid this, we pick a random,
6791       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6792       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6793       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6794       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'
6795       ;;
6796
6797     gnu* | linux* | tpf* | k*bsd*-gnu)
6798       tmp_diet=no
6799       if test "$host_os" = linux-dietlibc; then
6800         case $cc_basename in
6801           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
6802         esac
6803       fi
6804       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6805          && test "$tmp_diet" = no
6806       then
6807         tmp_addflag=
6808         case $cc_basename,$host_cpu in
6809         pgcc*)                          # Portland Group C compiler
6810           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'
6811           tmp_addflag=' $pic_flag'
6812           ;;
6813         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6814           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'
6815           tmp_addflag=' $pic_flag -Mnomain' ;;
6816         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6817           tmp_addflag=' -i_dynamic' ;;
6818         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6819           tmp_addflag=' -i_dynamic -nofor_main' ;;
6820         ifc* | ifort*)                  # Intel Fortran compiler
6821           tmp_addflag=' -nofor_main' ;;
6822         esac
6823         case `$CC -V 2>&1 | sed 5q` in
6824         *Sun\ C*)                       # Sun C 5.9
6825           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'
6826           compiler_needs_object=yes
6827           tmp_sharedflag='-G' ;;
6828         *Sun\ F*)                       # Sun Fortran 8.3
6829           tmp_sharedflag='-G' ;;
6830         *)
6831           tmp_sharedflag='-shared' ;;
6832         esac
6833         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6834
6835         if test "x$supports_anon_versioning" = xyes; then
6836           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6837             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6838             echo "local: *; };" >> $output_objdir/$libname.ver~
6839             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6840         fi
6841       else
6842         ld_shlibs=no
6843       fi
6844       ;;
6845
6846     netbsd*)
6847       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6848         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6849         wlarc=
6850       else
6851         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6852         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6853       fi
6854       ;;
6855
6856     solaris*)
6857       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6858         ld_shlibs=no
6859         cat <<_LT_EOF 1>&2
6860
6861 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6862 *** create shared libraries on Solaris systems.  Therefore, libtool
6863 *** is disabling shared libraries support.  We urge you to upgrade GNU
6864 *** binutils to release 2.9.1 or newer.  Another option is to modify
6865 *** your PATH or compiler configuration so that the native linker is
6866 *** used, and then restart.
6867
6868 _LT_EOF
6869       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6870         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6871         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6872       else
6873         ld_shlibs=no
6874       fi
6875       ;;
6876
6877     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6878       case `$LD -v 2>&1` in
6879         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6880         ld_shlibs=no
6881         cat <<_LT_EOF 1>&2
6882
6883 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6884 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6885 *** is disabling shared libraries support.  We urge you to upgrade GNU
6886 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6887 *** your PATH or compiler configuration so that the native linker is
6888 *** used, and then restart.
6889
6890 _LT_EOF
6891         ;;
6892         *)
6893           # For security reasons, it is highly recommended that you always
6894           # use absolute paths for naming shared libraries, and exclude the
6895           # DT_RUNPATH tag from executables and libraries.  But doing so
6896           # requires that you compile everything twice, which is a pain.
6897           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6898             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6899             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6900             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6901           else
6902             ld_shlibs=no
6903           fi
6904         ;;
6905       esac
6906       ;;
6907
6908     sunos4*)
6909       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6910       wlarc=
6911       hardcode_direct=yes
6912       hardcode_shlibpath_var=no
6913       ;;
6914
6915     *)
6916       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6917         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6918         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6919       else
6920         ld_shlibs=no
6921       fi
6922       ;;
6923     esac
6924
6925     if test "$ld_shlibs" = no; then
6926       runpath_var=
6927       hardcode_libdir_flag_spec=
6928       export_dynamic_flag_spec=
6929       whole_archive_flag_spec=
6930     fi
6931   else
6932     # PORTME fill in a description of your system's linker (not GNU ld)
6933     case $host_os in
6934     aix3*)
6935       allow_undefined_flag=unsupported
6936       always_export_symbols=yes
6937       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'
6938       # Note: this linker hardcodes the directories in LIBPATH if there
6939       # are no directories specified by -L.
6940       hardcode_minus_L=yes
6941       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6942         # Neither direct hardcoding nor static linking is supported with a
6943         # broken collect2.
6944         hardcode_direct=unsupported
6945       fi
6946       ;;
6947
6948     aix4* | aix5*)
6949       if test "$host_cpu" = ia64; then
6950         # On IA64, the linker does run time linking by default, so we don't
6951         # have to do anything special.
6952         aix_use_runtimelinking=no
6953         exp_sym_flag='-Bexport'
6954         no_entry_flag=""
6955       else
6956         # If we're using GNU nm, then we don't want the "-C" option.
6957         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6958         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6959           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'
6960         else
6961           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'
6962         fi
6963         aix_use_runtimelinking=no
6964
6965         # Test if we are trying to use run time linking or normal
6966         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6967         # need to do runtime linking.
6968         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6969           for ld_flag in $LDFLAGS; do
6970           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6971             aix_use_runtimelinking=yes
6972             break
6973           fi
6974           done
6975           ;;
6976         esac
6977
6978         exp_sym_flag='-bexport'
6979         no_entry_flag='-bnoentry'
6980       fi
6981
6982       # When large executables or shared objects are built, AIX ld can
6983       # have problems creating the table of contents.  If linking a library
6984       # or program results in "error TOC overflow" add -mminimal-toc to
6985       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6986       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6987
6988       archive_cmds=''
6989       hardcode_direct=yes
6990       hardcode_direct_absolute=yes
6991       hardcode_libdir_separator=':'
6992       link_all_deplibs=yes
6993       file_list_spec='${wl}-f,'
6994
6995       if test "$GCC" = yes; then
6996         case $host_os in aix4.[012]|aix4.[012].*)
6997         # We only want to do this on AIX 4.2 and lower, the check
6998         # below for broken collect2 doesn't work under 4.3+
6999           collect2name=`${CC} -print-prog-name=collect2`
7000           if test -f "$collect2name" &&
7001            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7002           then
7003           # We have reworked collect2
7004           :
7005           else
7006           # We have old collect2
7007           hardcode_direct=unsupported
7008           # It fails to find uninstalled libraries when the uninstalled
7009           # path is not listed in the libpath.  Setting hardcode_minus_L
7010           # to unsupported forces relinking
7011           hardcode_minus_L=yes
7012           hardcode_libdir_flag_spec='-L$libdir'
7013           hardcode_libdir_separator=
7014           fi
7015           ;;
7016         esac
7017         shared_flag='-shared'
7018         if test "$aix_use_runtimelinking" = yes; then
7019           shared_flag="$shared_flag "'${wl}-G'
7020         fi
7021       else
7022         # not using gcc
7023         if test "$host_cpu" = ia64; then
7024         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7025         # chokes on -Wl,-G. The following line is correct:
7026           shared_flag='-G'
7027         else
7028           if test "$aix_use_runtimelinking" = yes; then
7029             shared_flag='${wl}-G'
7030           else
7031             shared_flag='${wl}-bM:SRE'
7032           fi
7033         fi
7034       fi
7035
7036       # It seems that -bexpall does not export symbols beginning with
7037       # underscore (_), so it is better to generate a list of symbols to export.
7038       always_export_symbols=yes
7039       if test "$aix_use_runtimelinking" = yes; then
7040         # Warning - without using the other runtime loading flags (-brtl),
7041         # -berok will link without error, but may produce a broken library.
7042         allow_undefined_flag='-berok'
7043         # Determine the default libpath from the value encoded in an
7044         # empty executable.
7045         cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h.  */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h.  */
7051
7052 int
7053 main ()
7054 {
7055
7056   ;
7057   return 0;
7058 }
7059 _ACEOF
7060 rm -f conftest.$ac_objext conftest$ac_exeext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062   (eval $ac_link) 2>conftest.er1
7063   ac_status=$?
7064   grep -v '^ *+' conftest.er1 >conftest.err
7065   rm -f conftest.er1
7066   cat conftest.err >&5
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } &&
7069          { ac_try='test -z "$ac_c_werror_flag"
7070                          || test ! -s conftest.err'
7071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072   (eval $ac_try) 2>&5
7073   ac_status=$?
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); }; } &&
7076          { ac_try='test -s conftest$ac_exeext'
7077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078   (eval $ac_try) 2>&5
7079   ac_status=$?
7080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); }; }; then
7082
7083 lt_aix_libpath_sed='
7084     /Import File Strings/,/^$/ {
7085         /^0/ {
7086             s/^0  *\(.*\)$/\1/
7087             p
7088         }
7089     }'
7090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7091 # Check for a 64-bit object if we didn't find anything.
7092 if test -z "$aix_libpath"; then
7093   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7094 fi
7095 else
7096   echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7098
7099 fi
7100 rm -f conftest.err conftest.$ac_objext \
7101       conftest$ac_exeext conftest.$ac_ext
7102 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7103
7104         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7105         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"
7106       else
7107         if test "$host_cpu" = ia64; then
7108           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7109           allow_undefined_flag="-z nodefs"
7110           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"
7111         else
7112          # Determine the default libpath from the value encoded in an
7113          # empty executable.
7114          cat >conftest.$ac_ext <<_ACEOF
7115 /* confdefs.h.  */
7116 _ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h.  */
7120
7121 int
7122 main ()
7123 {
7124
7125   ;
7126   return 0;
7127 }
7128 _ACEOF
7129 rm -f conftest.$ac_objext conftest$ac_exeext
7130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7131   (eval $ac_link) 2>conftest.er1
7132   ac_status=$?
7133   grep -v '^ *+' conftest.er1 >conftest.err
7134   rm -f conftest.er1
7135   cat conftest.err >&5
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); } &&
7138          { ac_try='test -z "$ac_c_werror_flag"
7139                          || test ! -s conftest.err'
7140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141   (eval $ac_try) 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); }; } &&
7145          { ac_try='test -s conftest$ac_exeext'
7146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147   (eval $ac_try) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); }; }; then
7151
7152 lt_aix_libpath_sed='
7153     /Import File Strings/,/^$/ {
7154         /^0/ {
7155             s/^0  *\(.*\)$/\1/
7156             p
7157         }
7158     }'
7159 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7160 # Check for a 64-bit object if we didn't find anything.
7161 if test -z "$aix_libpath"; then
7162   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7163 fi
7164 else
7165   echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7167
7168 fi
7169 rm -f conftest.err conftest.$ac_objext \
7170       conftest$ac_exeext conftest.$ac_ext
7171 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7172
7173          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7174           # Warning - without using the other run time loading flags,
7175           # -berok will link without error, but may produce a broken library.
7176           no_undefined_flag=' ${wl}-bernotok'
7177           allow_undefined_flag=' ${wl}-berok'
7178           # Exported symbols can be pulled into shared objects from archives
7179           whole_archive_flag_spec='$convenience'
7180           archive_cmds_need_lc=yes
7181           # This is similar to how AIX traditionally builds its shared libraries.
7182           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'
7183         fi
7184       fi
7185       ;;
7186
7187     amigaos*)
7188       if test "$host_cpu" = m68k; then
7189         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)'
7190         hardcode_libdir_flag_spec='-L$libdir'
7191         hardcode_minus_L=yes
7192       fi
7193       # see comment about different semantics on the GNU ld section
7194       ld_shlibs=no
7195       ;;
7196
7197     bsdi[45]*)
7198       export_dynamic_flag_spec=-rdynamic
7199       ;;
7200
7201     cygwin* | mingw* | pw32*)
7202       # When not using gcc, we currently assume that we are using
7203       # Microsoft Visual C++.
7204       # hardcode_libdir_flag_spec is actually meaningless, as there is
7205       # no search path for DLLs.
7206       hardcode_libdir_flag_spec=' '
7207       allow_undefined_flag=unsupported
7208       # Tell ltmain to make .lib files, not .a files.
7209       libext=lib
7210       # Tell ltmain to make .dll files, not .so files.
7211       shrext_cmds=".dll"
7212       # FIXME: Setting linknames here is a bad hack.
7213       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7214       # The linker will automatically build a .lib file if we build a DLL.
7215       old_archive_from_new_cmds='true'
7216       # FIXME: Should let the user specify the lib program.
7217       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7218       fix_srcfile_path='`cygpath -w "$srcfile"`'
7219       enable_shared_with_static_runtimes=yes
7220       ;;
7221
7222     darwin* | rhapsody*)
7223       case $host_os in
7224       rhapsody* | darwin1.[012])
7225         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7226         ;;
7227       *) # Darwin 1.3 on
7228         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7229         10.[012])
7230           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7231           ;;
7232         10.*)
7233           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7234           ;;
7235         esac
7236         ;;
7237       esac
7238       archive_cmds_need_lc=no
7239       hardcode_direct=no
7240       hardcode_automatic=yes
7241       hardcode_shlibpath_var=unsupported
7242       whole_archive_flag_spec=''
7243       link_all_deplibs=yes
7244       if test "$GCC" = yes ; then
7245         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7246   echo $ECHO_N "(cached) $ECHO_C" >&6
7247 else
7248   lt_cv_apple_cc_single_mod=no
7249         if test -z "${LT_MULTI_MODULE}"; then
7250           # By default we will add the -single_module flag. You can override
7251           # by either setting the environment variable LT_MULTI_MODULE
7252           # non-empty at configure time, or by adding -multi-module to the
7253           # link flags.
7254           echo "int foo(void){return 1;}" > conftest.c
7255           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7256               -dynamiclib ${wl}-single_module conftest.c
7257           if test -f libconftest.dylib; then
7258               lt_cv_apple_cc_single_mod=yes
7259               rm libconftest.dylib
7260           fi
7261           rm conftest.$ac_ext
7262         fi
7263 fi
7264
7265         output_verbose_link_cmd=echo
7266         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7267           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7268           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7269         else
7270           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7271           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7272         fi
7273         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7274         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7275       else
7276         case $cc_basename in
7277         xlc*)
7278           output_verbose_link_cmd=echo
7279           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7280           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7281           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7282           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7283           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7284           ;;
7285         *)
7286           ld_shlibs=no
7287           ;;
7288         esac
7289       fi
7290       ;;
7291
7292     dgux*)
7293       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7294       hardcode_libdir_flag_spec='-L$libdir'
7295       hardcode_shlibpath_var=no
7296       ;;
7297
7298     freebsd1*)
7299       ld_shlibs=no
7300       ;;
7301
7302     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7303     # support.  Future versions do this automatically, but an explicit c++rt0.o
7304     # does not break anything, and helps significantly (at the cost of a little
7305     # extra space).
7306     freebsd2.2*)
7307       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7308       hardcode_libdir_flag_spec='-R$libdir'
7309       hardcode_direct=yes
7310       hardcode_shlibpath_var=no
7311       ;;
7312
7313     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7314     freebsd2*)
7315       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7316       hardcode_direct=yes
7317       hardcode_minus_L=yes
7318       hardcode_shlibpath_var=no
7319       ;;
7320
7321     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7322     freebsd* | dragonfly*)
7323       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7324       hardcode_libdir_flag_spec='-R$libdir'
7325       hardcode_direct=yes
7326       hardcode_shlibpath_var=no
7327       ;;
7328
7329     hpux9*)
7330       if test "$GCC" = yes; then
7331         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'
7332       else
7333         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'
7334       fi
7335       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7336       hardcode_libdir_separator=:
7337       hardcode_direct=yes
7338
7339       # hardcode_minus_L: Not really in the search PATH,
7340       # but as the default location of the library.
7341       hardcode_minus_L=yes
7342       export_dynamic_flag_spec='${wl}-E'
7343       ;;
7344
7345     hpux10*)
7346       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7347         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7348       else
7349         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7350       fi
7351       if test "$with_gnu_ld" = no; then
7352         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7353         hardcode_libdir_flag_spec_ld='+b $libdir'
7354         hardcode_libdir_separator=:
7355         hardcode_direct=yes
7356         hardcode_direct_absolute=yes
7357         export_dynamic_flag_spec='${wl}-E'
7358         # hardcode_minus_L: Not really in the search PATH,
7359         # but as the default location of the library.
7360         hardcode_minus_L=yes
7361       fi
7362       ;;
7363
7364     hpux11*)
7365       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7366         case $host_cpu in
7367         hppa*64*)
7368           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7369           ;;
7370         ia64*)
7371           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7372           ;;
7373         *)
7374           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7375           ;;
7376         esac
7377       else
7378         case $host_cpu in
7379         hppa*64*)
7380           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7381           ;;
7382         ia64*)
7383           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7384           ;;
7385         *)
7386           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7387           ;;
7388         esac
7389       fi
7390       if test "$with_gnu_ld" = no; then
7391         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7392         hardcode_libdir_separator=:
7393
7394         case $host_cpu in
7395         hppa*64*|ia64*)
7396           hardcode_direct=no
7397           hardcode_shlibpath_var=no
7398           ;;
7399         *)
7400           hardcode_direct=yes
7401           hardcode_direct_absolute=yes
7402           export_dynamic_flag_spec='${wl}-E'
7403
7404           # hardcode_minus_L: Not really in the search PATH,
7405           # but as the default location of the library.
7406           hardcode_minus_L=yes
7407           ;;
7408         esac
7409       fi
7410       ;;
7411
7412     irix5* | irix6* | nonstopux*)
7413       if test "$GCC" = yes; then
7414         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'
7415         # Try to use the -exported_symbol ld option, if it does not
7416         # work, assume that -exports_file does not work either and
7417         # implicitly export all symbols.
7418         save_LDFLAGS="$LDFLAGS"
7419         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7420         cat >conftest.$ac_ext <<_ACEOF
7421 int foo(void) {}
7422 _ACEOF
7423 rm -f conftest.$ac_objext conftest$ac_exeext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7425   (eval $ac_link) 2>conftest.er1
7426   ac_status=$?
7427   grep -v '^ *+' conftest.er1 >conftest.err
7428   rm -f conftest.er1
7429   cat conftest.err >&5
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); } &&
7432          { ac_try='test -z "$ac_c_werror_flag"
7433                          || test ! -s conftest.err'
7434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435   (eval $ac_try) 2>&5
7436   ac_status=$?
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); }; } &&
7439          { ac_try='test -s conftest$ac_exeext'
7440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441   (eval $ac_try) 2>&5
7442   ac_status=$?
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); }; }; then
7445   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'
7446
7447 else
7448   echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7450
7451 fi
7452 rm -f conftest.err conftest.$ac_objext \
7453       conftest$ac_exeext conftest.$ac_ext
7454         LDFLAGS="$save_LDFLAGS"
7455       else
7456         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'
7457         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'
7458       fi
7459       archive_cmds_need_lc='no'
7460       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7461       hardcode_libdir_separator=:
7462       inherit_rpath=yes
7463       link_all_deplibs=yes
7464       ;;
7465
7466     netbsd*)
7467       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7468         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7469       else
7470         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7471       fi
7472       hardcode_libdir_flag_spec='-R$libdir'
7473       hardcode_direct=yes
7474       hardcode_shlibpath_var=no
7475       ;;
7476
7477     newsos6)
7478       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7479       hardcode_direct=yes
7480       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7481       hardcode_libdir_separator=:
7482       hardcode_shlibpath_var=no
7483       ;;
7484
7485     *nto* | *qnx*)
7486       ;;
7487
7488     openbsd*)
7489       hardcode_direct=yes
7490       hardcode_shlibpath_var=no
7491       hardcode_direct_absolute=yes
7492       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7493         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7494         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7495         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7496         export_dynamic_flag_spec='${wl}-E'
7497       else
7498         case $host_os in
7499         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7500           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7501           hardcode_libdir_flag_spec='-R$libdir'
7502           ;;
7503         *)
7504           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7505           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7506           ;;
7507         esac
7508       fi
7509       ;;
7510
7511     os2*)
7512       hardcode_libdir_flag_spec='-L$libdir'
7513       hardcode_minus_L=yes
7514       allow_undefined_flag=unsupported
7515       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'
7516       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7517       ;;
7518
7519     osf3*)
7520       if test "$GCC" = yes; then
7521         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7522         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'
7523       else
7524         allow_undefined_flag=' -expect_unresolved \*'
7525         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'
7526       fi
7527       archive_cmds_need_lc='no'
7528       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7529       hardcode_libdir_separator=:
7530       ;;
7531
7532     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7533       if test "$GCC" = yes; then
7534         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7535         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'
7536         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7537       else
7538         allow_undefined_flag=' -expect_unresolved \*'
7539         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'
7540         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~
7541         $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'
7542
7543         # Both c and cxx compiler support -rpath directly
7544         hardcode_libdir_flag_spec='-rpath $libdir'
7545       fi
7546       archive_cmds_need_lc='no'
7547       hardcode_libdir_separator=:
7548       ;;
7549
7550     solaris*)
7551       no_undefined_flag=' -z defs'
7552       if test "$GCC" = yes; then
7553         wlarc='${wl}'
7554         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7555         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7556           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7557       else
7558         case `$CC -V 2>&1` in
7559         *"Compilers 5.0"*)
7560           wlarc=''
7561           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7562           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7563           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7564           ;;
7565         *)
7566           wlarc='${wl}'
7567           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7568           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7569           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7570           ;;
7571         esac
7572       fi
7573       hardcode_libdir_flag_spec='-R$libdir'
7574       hardcode_shlibpath_var=no
7575       case $host_os in
7576       solaris2.[0-5] | solaris2.[0-5].*) ;;
7577       *)
7578         # The compiler driver will combine and reorder linker options,
7579         # but understands `-z linker_flag'.  GCC discards it without `$wl',
7580         # but is careful enough not to reorder.
7581         # Supported since Solaris 2.6 (maybe 2.5.1?)
7582         if test "$GCC" = yes; then
7583           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7584         else
7585           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7586         fi
7587         ;;
7588       esac
7589       link_all_deplibs=yes
7590       ;;
7591
7592     sunos4*)
7593       if test "x$host_vendor" = xsequent; then
7594         # Use $CC to link under sequent, because it throws in some extra .o
7595         # files that make .init and .fini sections work.
7596         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7597       else
7598         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7599       fi
7600       hardcode_libdir_flag_spec='-L$libdir'
7601       hardcode_direct=yes
7602       hardcode_minus_L=yes
7603       hardcode_shlibpath_var=no
7604       ;;
7605
7606     sysv4)
7607       case $host_vendor in
7608         sni)
7609           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7610           hardcode_direct=yes # is this really true???
7611         ;;
7612         siemens)
7613           ## LD is ld it makes a PLAMLIB
7614           ## CC just makes a GrossModule.
7615           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7616           reload_cmds='$CC -r -o $output$reload_objs'
7617           hardcode_direct=no
7618         ;;
7619         motorola)
7620           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7621           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7622         ;;
7623       esac
7624       runpath_var='LD_RUN_PATH'
7625       hardcode_shlibpath_var=no
7626       ;;
7627
7628     sysv4.3*)
7629       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7630       hardcode_shlibpath_var=no
7631       export_dynamic_flag_spec='-Bexport'
7632       ;;
7633
7634     sysv4*MP*)
7635       if test -d /usr/nec; then
7636         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7637         hardcode_shlibpath_var=no
7638         runpath_var=LD_RUN_PATH
7639         hardcode_runpath_var=yes
7640         ld_shlibs=yes
7641       fi
7642       ;;
7643
7644     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7645       no_undefined_flag='${wl}-z,text'
7646       archive_cmds_need_lc=no
7647       hardcode_shlibpath_var=no
7648       runpath_var='LD_RUN_PATH'
7649
7650       if test "$GCC" = yes; then
7651         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7652         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7653       else
7654         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7655         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7656       fi
7657       ;;
7658
7659     sysv5* | sco3.2v5* | sco5v6*)
7660       # Note: We can NOT use -z defs as we might desire, because we do not
7661       # link with -lc, and that would cause any symbols used from libc to
7662       # always be unresolved, which means just about no library would
7663       # ever link correctly.  If we're not using GNU ld we use -z text
7664       # though, which does catch some bad symbols but isn't as heavy-handed
7665       # as -z defs.
7666       no_undefined_flag='${wl}-z,text'
7667       allow_undefined_flag='${wl}-z,nodefs'
7668       archive_cmds_need_lc=no
7669       hardcode_shlibpath_var=no
7670       hardcode_libdir_flag_spec='${wl}-R,$libdir'
7671       hardcode_libdir_separator=':'
7672       link_all_deplibs=yes
7673       export_dynamic_flag_spec='${wl}-Bexport'
7674       runpath_var='LD_RUN_PATH'
7675
7676       if test "$GCC" = yes; then
7677         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7678         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7679       else
7680         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7681         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7682       fi
7683       ;;
7684
7685     uts4*)
7686       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7687       hardcode_libdir_flag_spec='-L$libdir'
7688       hardcode_shlibpath_var=no
7689       ;;
7690
7691     *)
7692       ld_shlibs=no
7693       ;;
7694     esac
7695
7696     if test x$host_vendor = xsni; then
7697       case $host in
7698       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7699         export_dynamic_flag_spec='${wl}-Blargedynsym'
7700         ;;
7701       esac
7702     fi
7703   fi
7704
7705 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7706 echo "${ECHO_T}$ld_shlibs" >&6
7707 test "$ld_shlibs" = no && can_build_shared=no
7708
7709 with_gnu_ld=$with_gnu_ld
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725 #
7726 # Do we need to explicitly link libc?
7727 #
7728 case "x$archive_cmds_need_lc" in
7729 x|xyes)
7730   # Assume -lc should be added
7731   archive_cmds_need_lc=yes
7732
7733   if test "$enable_shared" = yes && test "$GCC" = yes; then
7734     case $archive_cmds in
7735     *'~'*)
7736       # FIXME: we may have to deal with multi-command sequences.
7737       ;;
7738     '$CC '*)
7739       # Test whether the compiler implicitly links with -lc since on some
7740       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7741       # to ld, don't add -lc before -lgcc.
7742       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7743 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7744       $RM conftest*
7745       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7746
7747       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7748   (eval $ac_compile) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); } 2>conftest.err; then
7752         soname=conftest
7753         lib=conftest
7754         libobjs=conftest.$ac_objext
7755         deplibs=
7756         wl=$lt_prog_compiler_wl
7757         pic_flag=$lt_prog_compiler_pic
7758         compiler_flags=-v
7759         linker_flags=-v
7760         verstring=
7761         output_objdir=.
7762         libname=conftest
7763         lt_save_allow_undefined_flag=$allow_undefined_flag
7764         allow_undefined_flag=
7765         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7766   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7767   ac_status=$?
7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769   (exit $ac_status); }
7770         then
7771           archive_cmds_need_lc=no
7772         else
7773           archive_cmds_need_lc=yes
7774         fi
7775         allow_undefined_flag=$lt_save_allow_undefined_flag
7776       else
7777         cat conftest.err 1>&5
7778       fi
7779       $RM conftest*
7780       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7781 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7782       ;;
7783     esac
7784   fi
7785   ;;
7786 esac
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7945 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7946 withGCC=$GCC
7947 if test "$withGCC" = yes; then
7948   case $host_os in
7949     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7950     *) lt_awk_arg="/^libraries:/" ;;
7951   esac
7952   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7953   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7954     # if the path contains ";" then we assume it to be the separator
7955     # otherwise default to the standard path separator (i.e. ":") - it is
7956     # assumed that no part of a normal pathname contains ";" but that should
7957     # okay in the real world where ";" in dirpaths is itself problematic.
7958     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7959   else
7960     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7961   fi
7962   # Ok, now we have the path, separated by spaces, we can step through it
7963   # and add multilib dir if necessary.
7964   lt_tmp_lt_search_path_spec=
7965   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7966   for lt_sys_path in $lt_search_path_spec; do
7967     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7968       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7969     else
7970       test -d "$lt_sys_path" && \
7971         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7972     fi
7973   done
7974   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7975 BEGIN {RS=" "; FS="/|\n";} {
7976   lt_foo="";
7977   lt_count=0;
7978   for (lt_i = NF; lt_i > 0; lt_i--) {
7979     if ($lt_i != "" && $lt_i != ".") {
7980       if ($lt_i == "..") {
7981         lt_count++;
7982       } else {
7983         if (lt_count == 0) {
7984           lt_foo="/" $lt_i lt_foo;
7985         } else {
7986           lt_count--;
7987         }
7988       }
7989     }
7990   }
7991   if (lt_foo != "") { lt_freq[lt_foo]++; }
7992   if (lt_freq[lt_foo] == 1) { print lt_foo; }
7993 }'`
7994   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7995 else
7996   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7997 fi
7998 library_names_spec=
7999 libname_spec='lib$name'
8000 soname_spec=
8001 shrext_cmds=".so"
8002 postinstall_cmds=
8003 postuninstall_cmds=
8004 finish_cmds=
8005 finish_eval=
8006 shlibpath_var=
8007 shlibpath_overrides_runpath=unknown
8008 version_type=none
8009 dynamic_linker="$host_os ld.so"
8010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8011 need_lib_prefix=unknown
8012 hardcode_into_libs=no
8013
8014 # when you set need_version to no, make sure it does not cause -set_version
8015 # flags to be left without arguments
8016 need_version=unknown
8017
8018 case $host_os in
8019 aix3*)
8020   version_type=linux
8021   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8022   shlibpath_var=LIBPATH
8023
8024   # AIX 3 has no versioning support, so we append a major version to the name.
8025   soname_spec='${libname}${release}${shared_ext}$major'
8026   ;;
8027
8028 aix4* | aix5*)
8029   version_type=linux
8030   need_lib_prefix=no
8031   need_version=no
8032   hardcode_into_libs=yes
8033   if test "$host_cpu" = ia64; then
8034     # AIX 5 supports IA64
8035     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8036     shlibpath_var=LD_LIBRARY_PATH
8037   else
8038     # With GCC up to 2.95.x, collect2 would create an import file
8039     # for dependence libraries.  The import file would start with
8040     # the line `#! .'.  This would cause the generated library to
8041     # depend on `.', always an invalid library.  This was fixed in
8042     # development snapshots of GCC prior to 3.0.
8043     case $host_os in
8044       aix4 | aix4.[01] | aix4.[01].*)
8045       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8046            echo ' yes '
8047            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8048         :
8049       else
8050         can_build_shared=no
8051       fi
8052       ;;
8053     esac
8054     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8055     # soname into executable. Probably we can add versioning support to
8056     # collect2, so additional links can be useful in future.
8057     if test "$aix_use_runtimelinking" = yes; then
8058       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8059       # instead of lib<name>.a to let people know that these are not
8060       # typical AIX shared libraries.
8061       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8062     else
8063       # We preserve .a as extension for shared libraries through AIX4.2
8064       # and later when we are not doing run time linking.
8065       library_names_spec='${libname}${release}.a $libname.a'
8066       soname_spec='${libname}${release}${shared_ext}$major'
8067     fi
8068     shlibpath_var=LIBPATH
8069   fi
8070   ;;
8071
8072 amigaos*)
8073   if test "$host_cpu" = m68k; then
8074     library_names_spec='$libname.ixlibrary $libname.a'
8075     # Create ${libname}_ixlibrary.a entries in /sys/libs.
8076     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'
8077   else
8078     dynamic_linker=no
8079   fi
8080   ;;
8081
8082 beos*)
8083   library_names_spec='${libname}${shared_ext}'
8084   dynamic_linker="$host_os ld.so"
8085   shlibpath_var=LIBRARY_PATH
8086   ;;
8087
8088 bsdi[45]*)
8089   version_type=linux
8090   need_version=no
8091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8092   soname_spec='${libname}${release}${shared_ext}$major'
8093   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8094   shlibpath_var=LD_LIBRARY_PATH
8095   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8096   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8097   # the default ld.so.conf also contains /usr/contrib/lib and
8098   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8099   # libtool to hard-code these into programs
8100   ;;
8101
8102 cygwin* | mingw* | pw32*)
8103   version_type=windows
8104   shrext_cmds=".dll"
8105   need_version=no
8106   need_lib_prefix=no
8107
8108   case $withGCC,$host_os in
8109   yes,cygwin* | yes,mingw* | yes,pw32*)
8110     library_names_spec='$libname.dll.a'
8111     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8112     postinstall_cmds='base_file=`basename \${file}`~
8113       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8114       dldir=$destdir/`dirname \$dlpath`~
8115       test -d \$dldir || mkdir -p \$dldir~
8116       $install_prog $dir/$dlname \$dldir/$dlname~
8117       chmod a+x \$dldir/$dlname~
8118       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8119         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8120       fi'
8121     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8122       dlpath=$dir/\$dldll~
8123        $RM \$dlpath'
8124     shlibpath_overrides_runpath=yes
8125
8126     case $host_os in
8127     cygwin*)
8128       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8129       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8130       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8131       ;;
8132     mingw*)
8133       # MinGW DLLs use traditional 'lib' prefix
8134       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8135       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8136       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8137         # It is most probably a Windows format PATH printed by
8138         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8139         # path with ; separators, and with drive letters. We can handle the
8140         # drive letters (cygwin fileutils understands them), so leave them,
8141         # especially as we might pass files found there to a mingw objdump,
8142         # which wouldn't understand a cygwinified path. Ahh.
8143         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8144       else
8145         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8146       fi
8147       ;;
8148     pw32*)
8149       # pw32 DLLs use 'pw' prefix rather than 'lib'
8150       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8151       ;;
8152     esac
8153     ;;
8154
8155   *)
8156     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8157     ;;
8158   esac
8159   dynamic_linker='Win32 ld.exe'
8160   # FIXME: first we should search . and the directory the executable is in
8161   shlibpath_var=PATH
8162   ;;
8163
8164 darwin* | rhapsody*)
8165   dynamic_linker="$host_os dyld"
8166   version_type=darwin
8167   need_lib_prefix=no
8168   need_version=no
8169   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8170   soname_spec='${libname}${release}${major}$shared_ext'
8171   shlibpath_overrides_runpath=yes
8172   shlibpath_var=DYLD_LIBRARY_PATH
8173   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8174
8175   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8176   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8177   ;;
8178
8179 dgux*)
8180   version_type=linux
8181   need_lib_prefix=no
8182   need_version=no
8183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8184   soname_spec='${libname}${release}${shared_ext}$major'
8185   shlibpath_var=LD_LIBRARY_PATH
8186   ;;
8187
8188 freebsd1*)
8189   dynamic_linker=no
8190   ;;
8191
8192 freebsd* | dragonfly*)
8193   # DragonFly does not have aout.  When/if they implement a new
8194   # versioning mechanism, adjust this.
8195   if test -x /usr/bin/objformat; then
8196     objformat=`/usr/bin/objformat`
8197   else
8198     case $host_os in
8199     freebsd[123]*) objformat=aout ;;
8200     *) objformat=elf ;;
8201     esac
8202   fi
8203   version_type=freebsd-$objformat
8204   case $version_type in
8205     freebsd-elf*)
8206       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8207       need_version=no
8208       need_lib_prefix=no
8209       ;;
8210     freebsd-*)
8211       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8212       need_version=yes
8213       ;;
8214   esac
8215   shlibpath_var=LD_LIBRARY_PATH
8216   case $host_os in
8217   freebsd2*)
8218     shlibpath_overrides_runpath=yes
8219     ;;
8220   freebsd3.[01]* | freebsdelf3.[01]*)
8221     shlibpath_overrides_runpath=yes
8222     hardcode_into_libs=yes
8223     ;;
8224   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8225   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8226     shlibpath_overrides_runpath=no
8227     hardcode_into_libs=yes
8228     ;;
8229   *) # from 4.6 on, and DragonFly
8230     shlibpath_overrides_runpath=yes
8231     hardcode_into_libs=yes
8232     ;;
8233   esac
8234   ;;
8235
8236 gnu*)
8237   version_type=linux
8238   need_lib_prefix=no
8239   need_version=no
8240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8241   soname_spec='${libname}${release}${shared_ext}$major'
8242   shlibpath_var=LD_LIBRARY_PATH
8243   hardcode_into_libs=yes
8244   ;;
8245
8246 hpux9* | hpux10* | hpux11*)
8247   # Give a soname corresponding to the major version so that dld.sl refuses to
8248   # link against other versions.
8249   version_type=sunos
8250   need_lib_prefix=no
8251   need_version=no
8252   case $host_cpu in
8253   ia64*)
8254     shrext_cmds='.so'
8255     hardcode_into_libs=yes
8256     dynamic_linker="$host_os dld.so"
8257     shlibpath_var=LD_LIBRARY_PATH
8258     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8260     soname_spec='${libname}${release}${shared_ext}$major'
8261     if test "X$HPUX_IA64_MODE" = X32; then
8262       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8263     else
8264       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8265     fi
8266     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8267     ;;
8268   hppa*64*)
8269     shrext_cmds='.sl'
8270     hardcode_into_libs=yes
8271     dynamic_linker="$host_os dld.sl"
8272     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8273     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8274     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8275     soname_spec='${libname}${release}${shared_ext}$major'
8276     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8277     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8278     ;;
8279   *)
8280     shrext_cmds='.sl'
8281     dynamic_linker="$host_os dld.sl"
8282     shlibpath_var=SHLIB_PATH
8283     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8284     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8285     soname_spec='${libname}${release}${shared_ext}$major'
8286     ;;
8287   esac
8288   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8289   postinstall_cmds='chmod 555 $lib'
8290   ;;
8291
8292 interix[3-9]*)
8293   version_type=linux
8294   need_lib_prefix=no
8295   need_version=no
8296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8297   soname_spec='${libname}${release}${shared_ext}$major'
8298   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8299   shlibpath_var=LD_LIBRARY_PATH
8300   shlibpath_overrides_runpath=no
8301   hardcode_into_libs=yes
8302   ;;
8303
8304 irix5* | irix6* | nonstopux*)
8305   case $host_os in
8306     nonstopux*) version_type=nonstopux ;;
8307     *)
8308         if test "$lt_cv_prog_gnu_ld" = yes; then
8309                 version_type=linux
8310         else
8311                 version_type=irix
8312         fi ;;
8313   esac
8314   need_lib_prefix=no
8315   need_version=no
8316   soname_spec='${libname}${release}${shared_ext}$major'
8317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8318   case $host_os in
8319   irix5* | nonstopux*)
8320     libsuff= shlibsuff=
8321     ;;
8322   *)
8323     case $LD in # libtool.m4 will add one of these switches to LD
8324     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8325       libsuff= shlibsuff= libmagic=32-bit;;
8326     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8327       libsuff=32 shlibsuff=N32 libmagic=N32;;
8328     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8329       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8330     *) libsuff= shlibsuff= libmagic=never-match;;
8331     esac
8332     ;;
8333   esac
8334   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8335   shlibpath_overrides_runpath=no
8336   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8337   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8338   hardcode_into_libs=yes
8339   ;;
8340
8341 # No shared lib support for Linux oldld, aout, or coff.
8342 linux*oldld* | linux*aout* | linux*coff*)
8343   dynamic_linker=no
8344   ;;
8345
8346 # This must be Linux ELF.
8347 linux* | k*bsd*-gnu)
8348   version_type=linux
8349   need_lib_prefix=no
8350   need_version=no
8351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8352   soname_spec='${libname}${release}${shared_ext}$major'
8353   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8354   shlibpath_var=LD_LIBRARY_PATH
8355   shlibpath_overrides_runpath=no
8356   # Some binutils ld are patched to set DT_RUNPATH
8357   save_LDFLAGS=$LDFLAGS
8358   save_libdir=$libdir
8359   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8360        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8361   cat >conftest.$ac_ext <<_ACEOF
8362 /* confdefs.h.  */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h.  */
8367
8368 int
8369 main ()
8370 {
8371
8372   ;
8373   return 0;
8374 }
8375 _ACEOF
8376 rm -f conftest.$ac_objext conftest$ac_exeext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8378   (eval $ac_link) 2>conftest.er1
8379   ac_status=$?
8380   grep -v '^ *+' conftest.er1 >conftest.err
8381   rm -f conftest.er1
8382   cat conftest.err >&5
8383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384   (exit $ac_status); } &&
8385          { ac_try='test -z "$ac_c_werror_flag"
8386                          || test ! -s conftest.err'
8387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388   (eval $ac_try) 2>&5
8389   ac_status=$?
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); }; } &&
8392          { ac_try='test -s conftest$ac_exeext'
8393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394   (eval $ac_try) 2>&5
8395   ac_status=$?
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); }; }; then
8398   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8399   shlibpath_overrides_runpath=yes
8400 fi
8401
8402 else
8403   echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406 fi
8407 rm -f conftest.err conftest.$ac_objext \
8408       conftest$ac_exeext conftest.$ac_ext
8409   LDFLAGS=$save_LDFLAGS
8410   libdir=$save_libdir
8411
8412   # This implies no fast_install, which is unacceptable.
8413   # Some rework will be needed to allow for fast_install
8414   # before this can be enabled.
8415   hardcode_into_libs=yes
8416
8417   # Append ld.so.conf contents to the search path
8418   if test -f /etc/ld.so.conf; then
8419     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8420     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8421   fi
8422
8423   # We used to test for /lib/ld.so.1 and disable shared libraries on
8424   # powerpc, because MkLinux only supported shared libraries with the
8425   # GNU dynamic linker.  Since this was broken with cross compilers,
8426   # most powerpc-linux boxes support dynamic linking these days and
8427   # people can always --disable-shared, the test was removed, and we
8428   # assume the GNU/Linux dynamic linker is in use.
8429   dynamic_linker='GNU/Linux ld.so'
8430   ;;
8431
8432 netbsd*)
8433   version_type=sunos
8434   need_lib_prefix=no
8435   need_version=no
8436   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8438     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8439     dynamic_linker='NetBSD (a.out) ld.so'
8440   else
8441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8442     soname_spec='${libname}${release}${shared_ext}$major'
8443     dynamic_linker='NetBSD ld.elf_so'
8444   fi
8445   shlibpath_var=LD_LIBRARY_PATH
8446   shlibpath_overrides_runpath=yes
8447   hardcode_into_libs=yes
8448   ;;
8449
8450 newsos6)
8451   version_type=linux
8452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8453   shlibpath_var=LD_LIBRARY_PATH
8454   shlibpath_overrides_runpath=yes
8455   ;;
8456
8457 *nto* | *qnx*)
8458   version_type=qnx
8459   need_lib_prefix=no
8460   need_version=no
8461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8462   soname_spec='${libname}${release}${shared_ext}$major'
8463   shlibpath_var=LD_LIBRARY_PATH
8464   shlibpath_overrides_runpath=no
8465   hardcode_into_libs=yes
8466   dynamic_linker='ldqnx.so'
8467   ;;
8468
8469 openbsd*)
8470   version_type=sunos
8471   sys_lib_dlsearch_path_spec="/usr/lib"
8472   need_lib_prefix=no
8473   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8474   case $host_os in
8475     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8476     *)                          need_version=no  ;;
8477   esac
8478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8479   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8480   shlibpath_var=LD_LIBRARY_PATH
8481   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8482     case $host_os in
8483       openbsd2.[89] | openbsd2.[89].*)
8484         shlibpath_overrides_runpath=no
8485         ;;
8486       *)
8487         shlibpath_overrides_runpath=yes
8488         ;;
8489       esac
8490   else
8491     shlibpath_overrides_runpath=yes
8492   fi
8493   ;;
8494
8495 os2*)
8496   libname_spec='$name'
8497   shrext_cmds=".dll"
8498   need_lib_prefix=no
8499   library_names_spec='$libname${shared_ext} $libname.a'
8500   dynamic_linker='OS/2 ld.exe'
8501   shlibpath_var=LIBPATH
8502   ;;
8503
8504 osf3* | osf4* | osf5*)
8505   version_type=osf
8506   need_lib_prefix=no
8507   need_version=no
8508   soname_spec='${libname}${release}${shared_ext}$major'
8509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8510   shlibpath_var=LD_LIBRARY_PATH
8511   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8512   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8513   ;;
8514
8515 rdos*)
8516   dynamic_linker=no
8517   ;;
8518
8519 solaris*)
8520   version_type=linux
8521   need_lib_prefix=no
8522   need_version=no
8523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8524   soname_spec='${libname}${release}${shared_ext}$major'
8525   shlibpath_var=LD_LIBRARY_PATH
8526   shlibpath_overrides_runpath=yes
8527   hardcode_into_libs=yes
8528   # ldd complains unless libraries are executable
8529   postinstall_cmds='chmod +x $lib'
8530   ;;
8531
8532 sunos4*)
8533   version_type=sunos
8534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8535   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8536   shlibpath_var=LD_LIBRARY_PATH
8537   shlibpath_overrides_runpath=yes
8538   if test "$with_gnu_ld" = yes; then
8539     need_lib_prefix=no
8540   fi
8541   need_version=yes
8542   ;;
8543
8544 sysv4 | sysv4.3*)
8545   version_type=linux
8546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8547   soname_spec='${libname}${release}${shared_ext}$major'
8548   shlibpath_var=LD_LIBRARY_PATH
8549   case $host_vendor in
8550     sni)
8551       shlibpath_overrides_runpath=no
8552       need_lib_prefix=no
8553       runpath_var=LD_RUN_PATH
8554       ;;
8555     siemens)
8556       need_lib_prefix=no
8557       ;;
8558     motorola)
8559       need_lib_prefix=no
8560       need_version=no
8561       shlibpath_overrides_runpath=no
8562       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8563       ;;
8564   esac
8565   ;;
8566
8567 sysv4*MP*)
8568   if test -d /usr/nec ;then
8569     version_type=linux
8570     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8571     soname_spec='$libname${shared_ext}.$major'
8572     shlibpath_var=LD_LIBRARY_PATH
8573   fi
8574   ;;
8575
8576 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8577   version_type=freebsd-elf
8578   need_lib_prefix=no
8579   need_version=no
8580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8581   soname_spec='${libname}${release}${shared_ext}$major'
8582   shlibpath_var=LD_LIBRARY_PATH
8583   shlibpath_overrides_runpath=yes
8584   hardcode_into_libs=yes
8585   if test "$with_gnu_ld" = yes; then
8586     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8587   else
8588     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8589     case $host_os in
8590       sco3.2v5*)
8591         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8592         ;;
8593     esac
8594   fi
8595   sys_lib_dlsearch_path_spec='/usr/lib'
8596   ;;
8597
8598 tpf*)
8599   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
8600   version_type=linux
8601   need_lib_prefix=no
8602   need_version=no
8603   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604   shlibpath_var=LD_LIBRARY_PATH
8605   shlibpath_overrides_runpath=no
8606   hardcode_into_libs=yes
8607   ;;
8608
8609 uts4*)
8610   version_type=linux
8611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8612   soname_spec='${libname}${release}${shared_ext}$major'
8613   shlibpath_var=LD_LIBRARY_PATH
8614   ;;
8615
8616 *)
8617   dynamic_linker=no
8618   ;;
8619 esac
8620 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8621 echo "${ECHO_T}$dynamic_linker" >&6
8622 test "$dynamic_linker" = no && can_build_shared=no
8623
8624 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8625 if test "$GCC" = yes; then
8626   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8627 fi
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8716 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8717 hardcode_action=
8718 if test -n "$hardcode_libdir_flag_spec" ||
8719    test -n "$runpath_var" ||
8720    test "X$hardcode_automatic" = "Xyes" ; then
8721
8722   # We can hardcode non-existent directories.
8723   if test "$hardcode_direct" != no &&
8724      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8725      # have to relink, otherwise we might link with an installed library
8726      # when we should be linking with a yet-to-be-installed one
8727      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8728      test "$hardcode_minus_L" != no; then
8729     # Linking always hardcodes the temporary library directory.
8730     hardcode_action=relink
8731   else
8732     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8733     hardcode_action=immediate
8734   fi
8735 else
8736   # We cannot hardcode anything, or else we can only hardcode existing
8737   # directories.
8738   hardcode_action=unsupported
8739 fi
8740 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8741 echo "${ECHO_T}$hardcode_action" >&6
8742
8743 if test "$hardcode_action" = relink ||
8744    test "$inherit_rpath" = yes; then
8745   # Fast installation is not supported
8746   enable_fast_install=no
8747 elif test "$shlibpath_overrides_runpath" = yes ||
8748      test "$enable_shared" = no; then
8749   # Fast installation is not necessary
8750   enable_fast_install=needless
8751 fi
8752
8753
8754
8755
8756
8757
8758   if test "x$enable_dlopen" != xyes; then
8759   enable_dlopen=unknown
8760   enable_dlopen_self=unknown
8761   enable_dlopen_self_static=unknown
8762 else
8763   lt_cv_dlopen=no
8764   lt_cv_dlopen_libs=
8765
8766   case $host_os in
8767   beos*)
8768     lt_cv_dlopen="load_add_on"
8769     lt_cv_dlopen_libs=
8770     lt_cv_dlopen_self=yes
8771     ;;
8772
8773   mingw* | pw32*)
8774     lt_cv_dlopen="LoadLibrary"
8775     lt_cv_dlopen_libs=
8776     ;;
8777
8778   cygwin*)
8779     lt_cv_dlopen="dlopen"
8780     lt_cv_dlopen_libs=
8781     ;;
8782
8783   darwin*)
8784   # if libdl is installed we need to link against it
8785     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8786 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8787 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8788   echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790   ac_check_lib_save_LIBS=$LIBS
8791 LIBS="-ldl  $LIBS"
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h.  */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h.  */
8798
8799 /* Override any gcc2 internal prototype to avoid an error.  */
8800 #ifdef __cplusplus
8801 extern "C"
8802 #endif
8803 /* We use char because int might match the return type of a gcc2
8804    builtin and then its argument prototype would still apply.  */
8805 char dlopen ();
8806 int
8807 main ()
8808 {
8809 dlopen ();
8810   ;
8811   return 0;
8812 }
8813 _ACEOF
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816   (eval $ac_link) 2>conftest.er1
8817   ac_status=$?
8818   grep -v '^ *+' conftest.er1 >conftest.err
8819   rm -f conftest.er1
8820   cat conftest.err >&5
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); } &&
8823          { ac_try='test -z "$ac_c_werror_flag"
8824                          || test ! -s conftest.err'
8825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826   (eval $ac_try) 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; } &&
8830          { ac_try='test -s conftest$ac_exeext'
8831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832   (eval $ac_try) 2>&5
8833   ac_status=$?
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); }; }; then
8836   ac_cv_lib_dl_dlopen=yes
8837 else
8838   echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8840
8841 ac_cv_lib_dl_dlopen=no
8842 fi
8843 rm -f conftest.err conftest.$ac_objext \
8844       conftest$ac_exeext conftest.$ac_ext
8845 LIBS=$ac_check_lib_save_LIBS
8846 fi
8847 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8848 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8849 if test $ac_cv_lib_dl_dlopen = yes; then
8850   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8851 else
8852
8853     lt_cv_dlopen="dyld"
8854     lt_cv_dlopen_libs=
8855     lt_cv_dlopen_self=yes
8856
8857 fi
8858
8859     ;;
8860
8861   *)
8862     echo "$as_me:$LINENO: checking for shl_load" >&5
8863 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8864 if test "${ac_cv_func_shl_load+set}" = set; then
8865   echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867   cat >conftest.$ac_ext <<_ACEOF
8868 /* confdefs.h.  */
8869 _ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h.  */
8873 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8875 #define shl_load innocuous_shl_load
8876
8877 /* System header to define __stub macros and hopefully few prototypes,
8878     which can conflict with char shl_load (); below.
8879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8880     <limits.h> exists even on freestanding compilers.  */
8881
8882 #ifdef __STDC__
8883 # include <limits.h>
8884 #else
8885 # include <assert.h>
8886 #endif
8887
8888 #undef shl_load
8889
8890 /* Override any gcc2 internal prototype to avoid an error.  */
8891 #ifdef __cplusplus
8892 extern "C"
8893 {
8894 #endif
8895 /* We use char because int might match the return type of a gcc2
8896    builtin and then its argument prototype would still apply.  */
8897 char shl_load ();
8898 /* The GNU C library defines this for functions which it implements
8899     to always fail with ENOSYS.  Some functions are actually named
8900     something starting with __ and the normal name is an alias.  */
8901 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8902 choke me
8903 #else
8904 char (*f) () = shl_load;
8905 #endif
8906 #ifdef __cplusplus
8907 }
8908 #endif
8909
8910 int
8911 main ()
8912 {
8913 return f != shl_load;
8914   ;
8915   return 0;
8916 }
8917 _ACEOF
8918 rm -f conftest.$ac_objext conftest$ac_exeext
8919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8920   (eval $ac_link) 2>conftest.er1
8921   ac_status=$?
8922   grep -v '^ *+' conftest.er1 >conftest.err
8923   rm -f conftest.er1
8924   cat conftest.err >&5
8925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); } &&
8927          { ac_try='test -z "$ac_c_werror_flag"
8928                          || test ! -s conftest.err'
8929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930   (eval $ac_try) 2>&5
8931   ac_status=$?
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   (exit $ac_status); }; } &&
8934          { ac_try='test -s conftest$ac_exeext'
8935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936   (eval $ac_try) 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); }; }; then
8940   ac_cv_func_shl_load=yes
8941 else
8942   echo "$as_me: failed program was:" >&5
8943 sed 's/^/| /' conftest.$ac_ext >&5
8944
8945 ac_cv_func_shl_load=no
8946 fi
8947 rm -f conftest.err conftest.$ac_objext \
8948       conftest$ac_exeext conftest.$ac_ext
8949 fi
8950 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8951 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8952 if test $ac_cv_func_shl_load = yes; then
8953   lt_cv_dlopen="shl_load"
8954 else
8955   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8956 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8957 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8958   echo $ECHO_N "(cached) $ECHO_C" >&6
8959 else
8960   ac_check_lib_save_LIBS=$LIBS
8961 LIBS="-ldld  $LIBS"
8962 cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h.  */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h.  */
8968
8969 /* Override any gcc2 internal prototype to avoid an error.  */
8970 #ifdef __cplusplus
8971 extern "C"
8972 #endif
8973 /* We use char because int might match the return type of a gcc2
8974    builtin and then its argument prototype would still apply.  */
8975 char shl_load ();
8976 int
8977 main ()
8978 {
8979 shl_load ();
8980   ;
8981   return 0;
8982 }
8983 _ACEOF
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986   (eval $ac_link) 2>conftest.er1
8987   ac_status=$?
8988   grep -v '^ *+' conftest.er1 >conftest.err
8989   rm -f conftest.er1
8990   cat conftest.err >&5
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); } &&
8993          { ac_try='test -z "$ac_c_werror_flag"
8994                          || test ! -s conftest.err'
8995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996   (eval $ac_try) 2>&5
8997   ac_status=$?
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); }; } &&
9000          { ac_try='test -s conftest$ac_exeext'
9001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002   (eval $ac_try) 2>&5
9003   ac_status=$?
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); }; }; then
9006   ac_cv_lib_dld_shl_load=yes
9007 else
9008   echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011 ac_cv_lib_dld_shl_load=no
9012 fi
9013 rm -f conftest.err conftest.$ac_objext \
9014       conftest$ac_exeext conftest.$ac_ext
9015 LIBS=$ac_check_lib_save_LIBS
9016 fi
9017 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9018 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9019 if test $ac_cv_lib_dld_shl_load = yes; then
9020   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9021 else
9022   echo "$as_me:$LINENO: checking for dlopen" >&5
9023 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9024 if test "${ac_cv_func_dlopen+set}" = set; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9035 #define dlopen innocuous_dlopen
9036
9037 /* System header to define __stub macros and hopefully few prototypes,
9038     which can conflict with char dlopen (); below.
9039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9040     <limits.h> exists even on freestanding compilers.  */
9041
9042 #ifdef __STDC__
9043 # include <limits.h>
9044 #else
9045 # include <assert.h>
9046 #endif
9047
9048 #undef dlopen
9049
9050 /* Override any gcc2 internal prototype to avoid an error.  */
9051 #ifdef __cplusplus
9052 extern "C"
9053 {
9054 #endif
9055 /* We use char because int might match the return type of a gcc2
9056    builtin and then its argument prototype would still apply.  */
9057 char dlopen ();
9058 /* The GNU C library defines this for functions which it implements
9059     to always fail with ENOSYS.  Some functions are actually named
9060     something starting with __ and the normal name is an alias.  */
9061 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9062 choke me
9063 #else
9064 char (*f) () = dlopen;
9065 #endif
9066 #ifdef __cplusplus
9067 }
9068 #endif
9069
9070 int
9071 main ()
9072 {
9073 return f != dlopen;
9074   ;
9075   return 0;
9076 }
9077 _ACEOF
9078 rm -f conftest.$ac_objext conftest$ac_exeext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9080   (eval $ac_link) 2>conftest.er1
9081   ac_status=$?
9082   grep -v '^ *+' conftest.er1 >conftest.err
9083   rm -f conftest.er1
9084   cat conftest.err >&5
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); } &&
9087          { ac_try='test -z "$ac_c_werror_flag"
9088                          || test ! -s conftest.err'
9089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090   (eval $ac_try) 2>&5
9091   ac_status=$?
9092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093   (exit $ac_status); }; } &&
9094          { ac_try='test -s conftest$ac_exeext'
9095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096   (eval $ac_try) 2>&5
9097   ac_status=$?
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); }; }; then
9100   ac_cv_func_dlopen=yes
9101 else
9102   echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9104
9105 ac_cv_func_dlopen=no
9106 fi
9107 rm -f conftest.err conftest.$ac_objext \
9108       conftest$ac_exeext conftest.$ac_ext
9109 fi
9110 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9111 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9112 if test $ac_cv_func_dlopen = yes; then
9113   lt_cv_dlopen="dlopen"
9114 else
9115   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9116 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9117 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9118   echo $ECHO_N "(cached) $ECHO_C" >&6
9119 else
9120   ac_check_lib_save_LIBS=$LIBS
9121 LIBS="-ldl  $LIBS"
9122 cat >conftest.$ac_ext <<_ACEOF
9123 /* confdefs.h.  */
9124 _ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h.  */
9128
9129 /* Override any gcc2 internal prototype to avoid an error.  */
9130 #ifdef __cplusplus
9131 extern "C"
9132 #endif
9133 /* We use char because int might match the return type of a gcc2
9134    builtin and then its argument prototype would still apply.  */
9135 char dlopen ();
9136 int
9137 main ()
9138 {
9139 dlopen ();
9140   ;
9141   return 0;
9142 }
9143 _ACEOF
9144 rm -f conftest.$ac_objext conftest$ac_exeext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9146   (eval $ac_link) 2>conftest.er1
9147   ac_status=$?
9148   grep -v '^ *+' conftest.er1 >conftest.err
9149   rm -f conftest.er1
9150   cat conftest.err >&5
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); } &&
9153          { ac_try='test -z "$ac_c_werror_flag"
9154                          || test ! -s conftest.err'
9155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156   (eval $ac_try) 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; } &&
9160          { ac_try='test -s conftest$ac_exeext'
9161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162   (eval $ac_try) 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; }; then
9166   ac_cv_lib_dl_dlopen=yes
9167 else
9168   echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171 ac_cv_lib_dl_dlopen=no
9172 fi
9173 rm -f conftest.err conftest.$ac_objext \
9174       conftest$ac_exeext conftest.$ac_ext
9175 LIBS=$ac_check_lib_save_LIBS
9176 fi
9177 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9178 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9179 if test $ac_cv_lib_dl_dlopen = yes; then
9180   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9181 else
9182   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9183 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9184 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9185   echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187   ac_check_lib_save_LIBS=$LIBS
9188 LIBS="-lsvld  $LIBS"
9189 cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h.  */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h.  */
9195
9196 /* Override any gcc2 internal prototype to avoid an error.  */
9197 #ifdef __cplusplus
9198 extern "C"
9199 #endif
9200 /* We use char because int might match the return type of a gcc2
9201    builtin and then its argument prototype would still apply.  */
9202 char dlopen ();
9203 int
9204 main ()
9205 {
9206 dlopen ();
9207   ;
9208   return 0;
9209 }
9210 _ACEOF
9211 rm -f conftest.$ac_objext conftest$ac_exeext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9213   (eval $ac_link) 2>conftest.er1
9214   ac_status=$?
9215   grep -v '^ *+' conftest.er1 >conftest.err
9216   rm -f conftest.er1
9217   cat conftest.err >&5
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } &&
9220          { ac_try='test -z "$ac_c_werror_flag"
9221                          || test ! -s conftest.err'
9222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223   (eval $ac_try) 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); }; } &&
9227          { ac_try='test -s conftest$ac_exeext'
9228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229   (eval $ac_try) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }; }; then
9233   ac_cv_lib_svld_dlopen=yes
9234 else
9235   echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 ac_cv_lib_svld_dlopen=no
9239 fi
9240 rm -f conftest.err conftest.$ac_objext \
9241       conftest$ac_exeext conftest.$ac_ext
9242 LIBS=$ac_check_lib_save_LIBS
9243 fi
9244 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9245 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9246 if test $ac_cv_lib_svld_dlopen = yes; then
9247   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9248 else
9249   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9250 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9251 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9252   echo $ECHO_N "(cached) $ECHO_C" >&6
9253 else
9254   ac_check_lib_save_LIBS=$LIBS
9255 LIBS="-ldld  $LIBS"
9256 cat >conftest.$ac_ext <<_ACEOF
9257 /* confdefs.h.  */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h.  */
9262
9263 /* Override any gcc2 internal prototype to avoid an error.  */
9264 #ifdef __cplusplus
9265 extern "C"
9266 #endif
9267 /* We use char because int might match the return type of a gcc2
9268    builtin and then its argument prototype would still apply.  */
9269 char dld_link ();
9270 int
9271 main ()
9272 {
9273 dld_link ();
9274   ;
9275   return 0;
9276 }
9277 _ACEOF
9278 rm -f conftest.$ac_objext conftest$ac_exeext
9279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280   (eval $ac_link) 2>conftest.er1
9281   ac_status=$?
9282   grep -v '^ *+' conftest.er1 >conftest.err
9283   rm -f conftest.er1
9284   cat conftest.err >&5
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); } &&
9287          { ac_try='test -z "$ac_c_werror_flag"
9288                          || test ! -s conftest.err'
9289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290   (eval $ac_try) 2>&5
9291   ac_status=$?
9292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293   (exit $ac_status); }; } &&
9294          { ac_try='test -s conftest$ac_exeext'
9295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296   (eval $ac_try) 2>&5
9297   ac_status=$?
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); }; }; then
9300   ac_cv_lib_dld_dld_link=yes
9301 else
9302   echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9304
9305 ac_cv_lib_dld_dld_link=no
9306 fi
9307 rm -f conftest.err conftest.$ac_objext \
9308       conftest$ac_exeext conftest.$ac_ext
9309 LIBS=$ac_check_lib_save_LIBS
9310 fi
9311 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9312 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9313 if test $ac_cv_lib_dld_dld_link = yes; then
9314   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9315 fi
9316
9317
9318 fi
9319
9320
9321 fi
9322
9323
9324 fi
9325
9326
9327 fi
9328
9329
9330 fi
9331
9332     ;;
9333   esac
9334
9335   if test "x$lt_cv_dlopen" != xno; then
9336     enable_dlopen=yes
9337   else
9338     enable_dlopen=no
9339   fi
9340
9341   case $lt_cv_dlopen in
9342   dlopen)
9343     save_CPPFLAGS="$CPPFLAGS"
9344     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9345
9346     save_LDFLAGS="$LDFLAGS"
9347     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9348
9349     save_LIBS="$LIBS"
9350     LIBS="$lt_cv_dlopen_libs $LIBS"
9351
9352     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9353 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9354 if test "${lt_cv_dlopen_self+set}" = set; then
9355   echo $ECHO_N "(cached) $ECHO_C" >&6
9356 else
9357           if test "$cross_compiling" = yes; then :
9358   lt_cv_dlopen_self=cross
9359 else
9360   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9361   lt_status=$lt_dlunknown
9362   cat > conftest.$ac_ext <<_LT_EOF
9363 #line 9363 "configure"
9364 #include "confdefs.h"
9365
9366 #if HAVE_DLFCN_H
9367 #include <dlfcn.h>
9368 #endif
9369
9370 #include <stdio.h>
9371
9372 #ifdef RTLD_GLOBAL
9373 #  define LT_DLGLOBAL           RTLD_GLOBAL
9374 #else
9375 #  ifdef DL_GLOBAL
9376 #    define LT_DLGLOBAL         DL_GLOBAL
9377 #  else
9378 #    define LT_DLGLOBAL         0
9379 #  endif
9380 #endif
9381
9382 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9383    find out it does not work in some platform. */
9384 #ifndef LT_DLLAZY_OR_NOW
9385 #  ifdef RTLD_LAZY
9386 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9387 #  else
9388 #    ifdef DL_LAZY
9389 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9390 #    else
9391 #      ifdef RTLD_NOW
9392 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9393 #      else
9394 #        ifdef DL_NOW
9395 #          define LT_DLLAZY_OR_NOW      DL_NOW
9396 #        else
9397 #          define LT_DLLAZY_OR_NOW      0
9398 #        endif
9399 #      endif
9400 #    endif
9401 #  endif
9402 #endif
9403
9404 #ifdef __cplusplus
9405 extern "C" void exit (int);
9406 #endif
9407
9408 void fnord() { int i=42;}
9409 int main ()
9410 {
9411   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9412   int status = $lt_dlunknown;
9413
9414   if (self)
9415     {
9416       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9417       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9418       /* dlclose (self); */
9419     }
9420   else
9421     puts (dlerror ());
9422
9423     exit (status);
9424 }
9425 _LT_EOF
9426   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427   (eval $ac_link) 2>&5
9428   ac_status=$?
9429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9431     (./conftest; exit; ) >&5 2>/dev/null
9432     lt_status=$?
9433     case x$lt_status in
9434       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9435       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9436       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9437     esac
9438   else :
9439     # compilation failed
9440     lt_cv_dlopen_self=no
9441   fi
9442 fi
9443 rm -fr conftest*
9444
9445
9446 fi
9447 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9448 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9449
9450     if test "x$lt_cv_dlopen_self" = xyes; then
9451       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9452       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9453 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9454 if test "${lt_cv_dlopen_self_static+set}" = set; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457           if test "$cross_compiling" = yes; then :
9458   lt_cv_dlopen_self_static=cross
9459 else
9460   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9461   lt_status=$lt_dlunknown
9462   cat > conftest.$ac_ext <<_LT_EOF
9463 #line 9463 "configure"
9464 #include "confdefs.h"
9465
9466 #if HAVE_DLFCN_H
9467 #include <dlfcn.h>
9468 #endif
9469
9470 #include <stdio.h>
9471
9472 #ifdef RTLD_GLOBAL
9473 #  define LT_DLGLOBAL           RTLD_GLOBAL
9474 #else
9475 #  ifdef DL_GLOBAL
9476 #    define LT_DLGLOBAL         DL_GLOBAL
9477 #  else
9478 #    define LT_DLGLOBAL         0
9479 #  endif
9480 #endif
9481
9482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9483    find out it does not work in some platform. */
9484 #ifndef LT_DLLAZY_OR_NOW
9485 #  ifdef RTLD_LAZY
9486 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9487 #  else
9488 #    ifdef DL_LAZY
9489 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9490 #    else
9491 #      ifdef RTLD_NOW
9492 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9493 #      else
9494 #        ifdef DL_NOW
9495 #          define LT_DLLAZY_OR_NOW      DL_NOW
9496 #        else
9497 #          define LT_DLLAZY_OR_NOW      0
9498 #        endif
9499 #      endif
9500 #    endif
9501 #  endif
9502 #endif
9503
9504 #ifdef __cplusplus
9505 extern "C" void exit (int);
9506 #endif
9507
9508 void fnord() { int i=42;}
9509 int main ()
9510 {
9511   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9512   int status = $lt_dlunknown;
9513
9514   if (self)
9515     {
9516       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9517       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9518       /* dlclose (self); */
9519     }
9520   else
9521     puts (dlerror ());
9522
9523     exit (status);
9524 }
9525 _LT_EOF
9526   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9527   (eval $ac_link) 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9531     (./conftest; exit; ) >&5 2>/dev/null
9532     lt_status=$?
9533     case x$lt_status in
9534       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9535       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9536       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9537     esac
9538   else :
9539     # compilation failed
9540     lt_cv_dlopen_self_static=no
9541   fi
9542 fi
9543 rm -fr conftest*
9544
9545
9546 fi
9547 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9548 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9549     fi
9550
9551     CPPFLAGS="$save_CPPFLAGS"
9552     LDFLAGS="$save_LDFLAGS"
9553     LIBS="$save_LIBS"
9554     ;;
9555   esac
9556
9557   case $lt_cv_dlopen_self in
9558   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9559   *) enable_dlopen_self=unknown ;;
9560   esac
9561
9562   case $lt_cv_dlopen_self_static in
9563   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9564   *) enable_dlopen_self_static=unknown ;;
9565   esac
9566 fi
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584 striplib=
9585 old_striplib=
9586 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9587 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9588 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9589   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9590   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9591   echo "$as_me:$LINENO: result: yes" >&5
9592 echo "${ECHO_T}yes" >&6
9593 else
9594 # FIXME - insert some real tests, host_os isn't really good enough
9595   case $host_os in
9596   darwin*)
9597     if test -n "$STRIP" ; then
9598       striplib="$STRIP -x"
9599       old_striplib="$STRIP -S"
9600       echo "$as_me:$LINENO: result: yes" >&5
9601 echo "${ECHO_T}yes" >&6
9602     else
9603       echo "$as_me:$LINENO: result: no" >&5
9604 echo "${ECHO_T}no" >&6
9605     fi
9606     ;;
9607   *)
9608     echo "$as_me:$LINENO: result: no" >&5
9609 echo "${ECHO_T}no" >&6
9610     ;;
9611   esac
9612 fi
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625   # Report which library types will actually be built
9626   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9627 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9628   echo "$as_me:$LINENO: result: $can_build_shared" >&5
9629 echo "${ECHO_T}$can_build_shared" >&6
9630
9631   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9632 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9633   test "$can_build_shared" = "no" && enable_shared=no
9634
9635   # On AIX, shared libraries and static libraries use the same namespace, and
9636   # are all built from PIC.
9637   case $host_os in
9638   aix3*)
9639     test "$enable_shared" = yes && enable_static=no
9640     if test -n "$RANLIB"; then
9641       archive_cmds="$archive_cmds~\$RANLIB \$lib"
9642       postinstall_cmds='$RANLIB $lib'
9643     fi
9644     ;;
9645
9646   aix4* | aix5*)
9647     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9648       test "$enable_shared" = yes && enable_static=no
9649     fi
9650     ;;
9651   esac
9652   echo "$as_me:$LINENO: result: $enable_shared" >&5
9653 echo "${ECHO_T}$enable_shared" >&6
9654
9655   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9656 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9657   # Make sure either enable_shared or enable_static is yes.
9658   test "$enable_shared" = yes || enable_static=yes
9659   echo "$as_me:$LINENO: result: $enable_static" >&5
9660 echo "${ECHO_T}$enable_static" >&6
9661
9662
9663
9664
9665 fi
9666 ac_ext=c
9667 ac_cpp='$CPP $CPPFLAGS'
9668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9671
9672 CC="$lt_save_CC"
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686                   ac_config_commands="$ac_config_commands libtool"
9687
9688
9689
9690
9691 # Only expand once:
9692
9693
9694
9695 # Check whether --enable-targets or --disable-targets was given.
9696 if test "${enable_targets+set}" = set; then
9697   enableval="$enable_targets"
9698   case "${enableval}" in
9699   yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
9700 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
9701    { (exit 1); exit 1; }; }
9702             ;;
9703   no)       enable_targets= ;;
9704   *)        enable_targets=$enableval ;;
9705 esac
9706 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
9707 if test "${enable_commonbfdlib+set}" = set; then
9708   enableval="$enable_commonbfdlib"
9709   case "${enableval}" in
9710   yes) commonbfdlib=true ;;
9711   no)  commonbfdlib=false ;;
9712   *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for opcodes commonbfdlib option" >&5
9713 echo "$as_me: error: bad value ${enableval} for opcodes commonbfdlib option" >&2;}
9714    { (exit 1); exit 1; }; } ;;
9715 esac
9716 fi;
9717
9718 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9719
9720 # Check whether --enable-werror or --disable-werror was given.
9721 if test "${enable_werror+set}" = set; then
9722   enableval="$enable_werror"
9723   case "${enableval}" in
9724      yes | y) ERROR_ON_WARNING="yes" ;;
9725      no | n)  ERROR_ON_WARNING="no" ;;
9726      *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
9727 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
9728    { (exit 1); exit 1; }; } ;;
9729    esac
9730 fi;
9731
9732 # Enable -Werror by default when using gcc
9733 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9734     ERROR_ON_WARNING=yes
9735 fi
9736
9737 NO_WERROR=
9738 if test "${ERROR_ON_WARNING}" = yes ; then
9739     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
9740     NO_WERROR="-Wno-error"
9741 fi
9742
9743 if test "${GCC}" = yes ; then
9744   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
9745 fi
9746
9747 # Check whether --enable-build-warnings or --disable-build-warnings was given.
9748 if test "${enable_build_warnings+set}" = set; then
9749   enableval="$enable_build_warnings"
9750   case "${enableval}" in
9751   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
9752   no)   if test "${GCC}" = yes ; then
9753           WARN_CFLAGS="-w"
9754         fi;;
9755   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
9756         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
9757   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
9758         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
9759   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9760 esac
9761 fi;
9762
9763 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
9764   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9765 fi
9766
9767
9768
9769
9770
9771           ac_config_headers="$ac_config_headers config.h:config.in"
9772
9773
9774 if test -z "$target" ; then
9775     { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
9776 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
9777    { (exit 1); exit 1; }; }
9778 fi
9779
9780 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9781 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9782     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9783 if test "${enable_maintainer_mode+set}" = set; then
9784   enableval="$enable_maintainer_mode"
9785   USE_MAINTAINER_MODE=$enableval
9786 else
9787   USE_MAINTAINER_MODE=no
9788 fi;
9789   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9790 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9791
9792
9793 if test $USE_MAINTAINER_MODE = yes; then
9794   MAINTAINER_MODE_TRUE=
9795   MAINTAINER_MODE_FALSE='#'
9796 else
9797   MAINTAINER_MODE_TRUE='#'
9798   MAINTAINER_MODE_FALSE=
9799 fi
9800
9801   MAINT=$MAINTAINER_MODE_TRUE
9802
9803
9804  case ${build_alias} in
9805   "") build_noncanonical=${build} ;;
9806   *) build_noncanonical=${build_alias} ;;
9807 esac
9808
9809  case ${host_alias} in
9810   "") host_noncanonical=${build_noncanonical} ;;
9811   *) host_noncanonical=${host_alias} ;;
9812 esac
9813
9814  case ${target_alias} in
9815   "") target_noncanonical=${host_noncanonical} ;;
9816   *) target_noncanonical=${target_alias} ;;
9817 esac
9818
9819 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
9820 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
9821   # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
9822 if test "${enable_install_libbfd+set}" = set; then
9823   enableval="$enable_install_libbfd"
9824   install_libbfd_p=$enableval
9825 else
9826   if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
9827         install_libbfd_p=yes
9828       else
9829         install_libbfd_p=no
9830       fi
9831 fi;
9832   echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
9833 echo "${ECHO_T}$install_libbfd_p" >&6
9834
9835
9836 if test $install_libbfd_p = yes; then
9837   INSTALL_LIBBFD_TRUE=
9838   INSTALL_LIBBFD_FALSE='#'
9839 else
9840   INSTALL_LIBBFD_TRUE='#'
9841   INSTALL_LIBBFD_FALSE=
9842 fi
9843
9844   # Need _noncanonical variables for this.
9845
9846
9847
9848
9849   # libbfd.a is a host library containing target dependent code
9850   bfdlibdir='$(libdir)'
9851   bfdincludedir='$(includedir)'
9852   if test "${host}" != "${target}"; then
9853     bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
9854     bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
9855   fi
9856
9857
9858
9859
9860
9861
9862 # host-specific stuff:
9863
9864 ac_ext=c
9865 ac_cpp='$CPP $CPPFLAGS'
9866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9869 if test -n "$ac_tool_prefix"; then
9870   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9871 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9872 echo "$as_me:$LINENO: checking for $ac_word" >&5
9873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9874 if test "${ac_cv_prog_CC+set}" = set; then
9875   echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877   if test -n "$CC"; then
9878   ac_cv_prog_CC="$CC" # Let the user override the test.
9879 else
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 for as_dir in $PATH
9882 do
9883   IFS=$as_save_IFS
9884   test -z "$as_dir" && as_dir=.
9885   for ac_exec_ext in '' $ac_executable_extensions; do
9886   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9887     ac_cv_prog_CC="${ac_tool_prefix}gcc"
9888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9889     break 2
9890   fi
9891 done
9892 done
9893
9894 fi
9895 fi
9896 CC=$ac_cv_prog_CC
9897 if test -n "$CC"; then
9898   echo "$as_me:$LINENO: result: $CC" >&5
9899 echo "${ECHO_T}$CC" >&6
9900 else
9901   echo "$as_me:$LINENO: result: no" >&5
9902 echo "${ECHO_T}no" >&6
9903 fi
9904
9905 fi
9906 if test -z "$ac_cv_prog_CC"; then
9907   ac_ct_CC=$CC
9908   # Extract the first word of "gcc", so it can be a program name with args.
9909 set dummy gcc; ac_word=$2
9910 echo "$as_me:$LINENO: checking for $ac_word" >&5
9911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9913   echo $ECHO_N "(cached) $ECHO_C" >&6
9914 else
9915   if test -n "$ac_ct_CC"; then
9916   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9917 else
9918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919 for as_dir in $PATH
9920 do
9921   IFS=$as_save_IFS
9922   test -z "$as_dir" && as_dir=.
9923   for ac_exec_ext in '' $ac_executable_extensions; do
9924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9925     ac_cv_prog_ac_ct_CC="gcc"
9926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9927     break 2
9928   fi
9929 done
9930 done
9931
9932 fi
9933 fi
9934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9935 if test -n "$ac_ct_CC"; then
9936   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9937 echo "${ECHO_T}$ac_ct_CC" >&6
9938 else
9939   echo "$as_me:$LINENO: result: no" >&5
9940 echo "${ECHO_T}no" >&6
9941 fi
9942
9943   CC=$ac_ct_CC
9944 else
9945   CC="$ac_cv_prog_CC"
9946 fi
9947
9948 if test -z "$CC"; then
9949   if test -n "$ac_tool_prefix"; then
9950   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9951 set dummy ${ac_tool_prefix}cc; ac_word=$2
9952 echo "$as_me:$LINENO: checking for $ac_word" >&5
9953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9954 if test "${ac_cv_prog_CC+set}" = set; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957   if test -n "$CC"; then
9958   ac_cv_prog_CC="$CC" # Let the user override the test.
9959 else
9960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961 for as_dir in $PATH
9962 do
9963   IFS=$as_save_IFS
9964   test -z "$as_dir" && as_dir=.
9965   for ac_exec_ext in '' $ac_executable_extensions; do
9966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9967     ac_cv_prog_CC="${ac_tool_prefix}cc"
9968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9969     break 2
9970   fi
9971 done
9972 done
9973
9974 fi
9975 fi
9976 CC=$ac_cv_prog_CC
9977 if test -n "$CC"; then
9978   echo "$as_me:$LINENO: result: $CC" >&5
9979 echo "${ECHO_T}$CC" >&6
9980 else
9981   echo "$as_me:$LINENO: result: no" >&5
9982 echo "${ECHO_T}no" >&6
9983 fi
9984
9985 fi
9986 if test -z "$ac_cv_prog_CC"; then
9987   ac_ct_CC=$CC
9988   # Extract the first word of "cc", so it can be a program name with args.
9989 set dummy cc; ac_word=$2
9990 echo "$as_me:$LINENO: checking for $ac_word" >&5
9991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9992 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9993   echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995   if test -n "$ac_ct_CC"; then
9996   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9997 else
9998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999 for as_dir in $PATH
10000 do
10001   IFS=$as_save_IFS
10002   test -z "$as_dir" && as_dir=.
10003   for ac_exec_ext in '' $ac_executable_extensions; do
10004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10005     ac_cv_prog_ac_ct_CC="cc"
10006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10007     break 2
10008   fi
10009 done
10010 done
10011
10012 fi
10013 fi
10014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10015 if test -n "$ac_ct_CC"; then
10016   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10017 echo "${ECHO_T}$ac_ct_CC" >&6
10018 else
10019   echo "$as_me:$LINENO: result: no" >&5
10020 echo "${ECHO_T}no" >&6
10021 fi
10022
10023   CC=$ac_ct_CC
10024 else
10025   CC="$ac_cv_prog_CC"
10026 fi
10027
10028 fi
10029 if test -z "$CC"; then
10030   # Extract the first word of "cc", so it can be a program name with args.
10031 set dummy cc; ac_word=$2
10032 echo "$as_me:$LINENO: checking for $ac_word" >&5
10033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10034 if test "${ac_cv_prog_CC+set}" = set; then
10035   echo $ECHO_N "(cached) $ECHO_C" >&6
10036 else
10037   if test -n "$CC"; then
10038   ac_cv_prog_CC="$CC" # Let the user override the test.
10039 else
10040   ac_prog_rejected=no
10041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042 for as_dir in $PATH
10043 do
10044   IFS=$as_save_IFS
10045   test -z "$as_dir" && as_dir=.
10046   for ac_exec_ext in '' $ac_executable_extensions; do
10047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10048     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10049        ac_prog_rejected=yes
10050        continue
10051      fi
10052     ac_cv_prog_CC="cc"
10053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10054     break 2
10055   fi
10056 done
10057 done
10058
10059 if test $ac_prog_rejected = yes; then
10060   # We found a bogon in the path, so make sure we never use it.
10061   set dummy $ac_cv_prog_CC
10062   shift
10063   if test $# != 0; then
10064     # We chose a different compiler from the bogus one.
10065     # However, it has the same basename, so the bogon will be chosen
10066     # first if we set CC to just the basename; use the full file name.
10067     shift
10068     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10069   fi
10070 fi
10071 fi
10072 fi
10073 CC=$ac_cv_prog_CC
10074 if test -n "$CC"; then
10075   echo "$as_me:$LINENO: result: $CC" >&5
10076 echo "${ECHO_T}$CC" >&6
10077 else
10078   echo "$as_me:$LINENO: result: no" >&5
10079 echo "${ECHO_T}no" >&6
10080 fi
10081
10082 fi
10083 if test -z "$CC"; then
10084   if test -n "$ac_tool_prefix"; then
10085   for ac_prog in cl
10086   do
10087     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10089 echo "$as_me:$LINENO: checking for $ac_word" >&5
10090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10091 if test "${ac_cv_prog_CC+set}" = set; then
10092   echo $ECHO_N "(cached) $ECHO_C" >&6
10093 else
10094   if test -n "$CC"; then
10095   ac_cv_prog_CC="$CC" # Let the user override the test.
10096 else
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10099 do
10100   IFS=$as_save_IFS
10101   test -z "$as_dir" && as_dir=.
10102   for ac_exec_ext in '' $ac_executable_extensions; do
10103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10106     break 2
10107   fi
10108 done
10109 done
10110
10111 fi
10112 fi
10113 CC=$ac_cv_prog_CC
10114 if test -n "$CC"; then
10115   echo "$as_me:$LINENO: result: $CC" >&5
10116 echo "${ECHO_T}$CC" >&6
10117 else
10118   echo "$as_me:$LINENO: result: no" >&5
10119 echo "${ECHO_T}no" >&6
10120 fi
10121
10122     test -n "$CC" && break
10123   done
10124 fi
10125 if test -z "$CC"; then
10126   ac_ct_CC=$CC
10127   for ac_prog in cl
10128 do
10129   # Extract the first word of "$ac_prog", so it can be a program name with args.
10130 set dummy $ac_prog; ac_word=$2
10131 echo "$as_me:$LINENO: checking for $ac_word" >&5
10132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10133 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10134   echo $ECHO_N "(cached) $ECHO_C" >&6
10135 else
10136   if test -n "$ac_ct_CC"; then
10137   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10138 else
10139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140 for as_dir in $PATH
10141 do
10142   IFS=$as_save_IFS
10143   test -z "$as_dir" && as_dir=.
10144   for ac_exec_ext in '' $ac_executable_extensions; do
10145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10146     ac_cv_prog_ac_ct_CC="$ac_prog"
10147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10148     break 2
10149   fi
10150 done
10151 done
10152
10153 fi
10154 fi
10155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10156 if test -n "$ac_ct_CC"; then
10157   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10158 echo "${ECHO_T}$ac_ct_CC" >&6
10159 else
10160   echo "$as_me:$LINENO: result: no" >&5
10161 echo "${ECHO_T}no" >&6
10162 fi
10163
10164   test -n "$ac_ct_CC" && break
10165 done
10166
10167   CC=$ac_ct_CC
10168 fi
10169
10170 fi
10171
10172
10173 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10174 See \`config.log' for more details." >&5
10175 echo "$as_me: error: no acceptable C compiler found in \$PATH
10176 See \`config.log' for more details." >&2;}
10177    { (exit 1); exit 1; }; }
10178
10179 # Provide some information about the compiler.
10180 echo "$as_me:$LINENO:" \
10181      "checking for C compiler version" >&5
10182 ac_compiler=`set X $ac_compile; echo $2`
10183 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10184   (eval $ac_compiler --version </dev/null >&5) 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); }
10188 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10189   (eval $ac_compiler -v </dev/null >&5) 2>&5
10190   ac_status=$?
10191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192   (exit $ac_status); }
10193 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10194   (eval $ac_compiler -V </dev/null >&5) 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); }
10198
10199 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10200 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10201 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10202   echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204   cat >conftest.$ac_ext <<_ACEOF
10205 /* confdefs.h.  */
10206 _ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h.  */
10210
10211 int
10212 main ()
10213 {
10214 #ifndef __GNUC__
10215        choke me
10216 #endif
10217
10218   ;
10219   return 0;
10220 }
10221 _ACEOF
10222 rm -f conftest.$ac_objext
10223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10224   (eval $ac_compile) 2>conftest.er1
10225   ac_status=$?
10226   grep -v '^ *+' conftest.er1 >conftest.err
10227   rm -f conftest.er1
10228   cat conftest.err >&5
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); } &&
10231          { ac_try='test -z "$ac_c_werror_flag"
10232                          || test ! -s conftest.err'
10233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234   (eval $ac_try) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); }; } &&
10238          { ac_try='test -s conftest.$ac_objext'
10239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240   (eval $ac_try) 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); }; }; then
10244   ac_compiler_gnu=yes
10245 else
10246   echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249 ac_compiler_gnu=no
10250 fi
10251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10253
10254 fi
10255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10257 GCC=`test $ac_compiler_gnu = yes && echo yes`
10258 ac_test_CFLAGS=${CFLAGS+set}
10259 ac_save_CFLAGS=$CFLAGS
10260 CFLAGS="-g"
10261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10263 if test "${ac_cv_prog_cc_g+set}" = set; then
10264   echo $ECHO_N "(cached) $ECHO_C" >&6
10265 else
10266   cat >conftest.$ac_ext <<_ACEOF
10267 /* confdefs.h.  */
10268 _ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h.  */
10272
10273 int
10274 main ()
10275 {
10276
10277   ;
10278   return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283   (eval $ac_compile) 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -z "$ac_c_werror_flag"
10291                          || test ! -s conftest.err'
10292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293   (eval $ac_try) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); }; } &&
10297          { ac_try='test -s conftest.$ac_objext'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   ac_cv_prog_cc_g=yes
10304 else
10305   echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308 ac_cv_prog_cc_g=no
10309 fi
10310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10311 fi
10312 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10313 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10314 if test "$ac_test_CFLAGS" = set; then
10315   CFLAGS=$ac_save_CFLAGS
10316 elif test $ac_cv_prog_cc_g = yes; then
10317   if test "$GCC" = yes; then
10318     CFLAGS="-g -O2"
10319   else
10320     CFLAGS="-g"
10321   fi
10322 else
10323   if test "$GCC" = yes; then
10324     CFLAGS="-O2"
10325   else
10326     CFLAGS=
10327   fi
10328 fi
10329 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10330 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10331 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10332   echo $ECHO_N "(cached) $ECHO_C" >&6
10333 else
10334   ac_cv_prog_cc_stdc=no
10335 ac_save_CC=$CC
10336 cat >conftest.$ac_ext <<_ACEOF
10337 /* confdefs.h.  */
10338 _ACEOF
10339 cat confdefs.h >>conftest.$ac_ext
10340 cat >>conftest.$ac_ext <<_ACEOF
10341 /* end confdefs.h.  */
10342 #include <stdarg.h>
10343 #include <stdio.h>
10344 #include <sys/types.h>
10345 #include <sys/stat.h>
10346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10347 struct buf { int x; };
10348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10349 static char *e (p, i)
10350      char **p;
10351      int i;
10352 {
10353   return p[i];
10354 }
10355 static char *f (char * (*g) (char **, int), char **p, ...)
10356 {
10357   char *s;
10358   va_list v;
10359   va_start (v,p);
10360   s = g (p, va_arg (v,int));
10361   va_end (v);
10362   return s;
10363 }
10364
10365 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
10366    function prototypes and stuff, but not '\xHH' hex character constants.
10367    These don't provoke an error unfortunately, instead are silently treated
10368    as 'x'.  The following induces an error, until -std1 is added to get
10369    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
10370    array size at least.  It's necessary to write '\x00'==0 to get something
10371    that's true only with -std1.  */
10372 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10373
10374 int test (int i, double x);
10375 struct s1 {int (*f) (int a);};
10376 struct s2 {int (*f) (double a);};
10377 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10378 int argc;
10379 char **argv;
10380 int
10381 main ()
10382 {
10383 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10384   ;
10385   return 0;
10386 }
10387 _ACEOF
10388 # Don't try gcc -ansi; that turns off useful extensions and
10389 # breaks some systems' header files.
10390 # AIX                   -qlanglvl=ansi
10391 # Ultrix and OSF/1      -std1
10392 # HP-UX 10.20 and later -Ae
10393 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10394 # SVR4                  -Xc -D__EXTENSIONS__
10395 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10396 do
10397   CC="$ac_save_CC $ac_arg"
10398   rm -f conftest.$ac_objext
10399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400   (eval $ac_compile) 2>conftest.er1
10401   ac_status=$?
10402   grep -v '^ *+' conftest.er1 >conftest.err
10403   rm -f conftest.er1
10404   cat conftest.err >&5
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); } &&
10407          { ac_try='test -z "$ac_c_werror_flag"
10408                          || test ! -s conftest.err'
10409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410   (eval $ac_try) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); }; } &&
10414          { ac_try='test -s conftest.$ac_objext'
10415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416   (eval $ac_try) 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); }; }; then
10420   ac_cv_prog_cc_stdc=$ac_arg
10421 break
10422 else
10423   echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10425
10426 fi
10427 rm -f conftest.err conftest.$ac_objext
10428 done
10429 rm -f conftest.$ac_ext conftest.$ac_objext
10430 CC=$ac_save_CC
10431
10432 fi
10433
10434 case "x$ac_cv_prog_cc_stdc" in
10435   x|xno)
10436     echo "$as_me:$LINENO: result: none needed" >&5
10437 echo "${ECHO_T}none needed" >&6 ;;
10438   *)
10439     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10440 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10441     CC="$CC $ac_cv_prog_cc_stdc" ;;
10442 esac
10443
10444 # Some people use a C++ compiler to compile C.  Since we use `exit',
10445 # in C++ we need to declare it.  In case someone uses the same compiler
10446 # for both compiling C and C++ we need to have the C++ compiler decide
10447 # the declaration of exit, since it's the most demanding environment.
10448 cat >conftest.$ac_ext <<_ACEOF
10449 #ifndef __cplusplus
10450   choke me
10451 #endif
10452 _ACEOF
10453 rm -f conftest.$ac_objext
10454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10455   (eval $ac_compile) 2>conftest.er1
10456   ac_status=$?
10457   grep -v '^ *+' conftest.er1 >conftest.err
10458   rm -f conftest.er1
10459   cat conftest.err >&5
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } &&
10462          { ac_try='test -z "$ac_c_werror_flag"
10463                          || test ! -s conftest.err'
10464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465   (eval $ac_try) 2>&5
10466   ac_status=$?
10467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468   (exit $ac_status); }; } &&
10469          { ac_try='test -s conftest.$ac_objext'
10470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471   (eval $ac_try) 2>&5
10472   ac_status=$?
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); }; }; then
10475   for ac_declaration in \
10476    '' \
10477    'extern "C" void std::exit (int) throw (); using std::exit;' \
10478    'extern "C" void std::exit (int); using std::exit;' \
10479    'extern "C" void exit (int) throw ();' \
10480    'extern "C" void exit (int);' \
10481    'void exit (int);'
10482 do
10483   cat >conftest.$ac_ext <<_ACEOF
10484 /* confdefs.h.  */
10485 _ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h.  */
10489 $ac_declaration
10490 #include <stdlib.h>
10491 int
10492 main ()
10493 {
10494 exit (42);
10495   ;
10496   return 0;
10497 }
10498 _ACEOF
10499 rm -f conftest.$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501   (eval $ac_compile) 2>conftest.er1
10502   ac_status=$?
10503   grep -v '^ *+' conftest.er1 >conftest.err
10504   rm -f conftest.er1
10505   cat conftest.err >&5
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); } &&
10508          { ac_try='test -z "$ac_c_werror_flag"
10509                          || test ! -s conftest.err'
10510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511   (eval $ac_try) 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; } &&
10515          { ac_try='test -s conftest.$ac_objext'
10516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517   (eval $ac_try) 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); }; }; then
10521   :
10522 else
10523   echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 continue
10527 fi
10528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10529   cat >conftest.$ac_ext <<_ACEOF
10530 /* confdefs.h.  */
10531 _ACEOF
10532 cat confdefs.h >>conftest.$ac_ext
10533 cat >>conftest.$ac_ext <<_ACEOF
10534 /* end confdefs.h.  */
10535 $ac_declaration
10536 int
10537 main ()
10538 {
10539 exit (42);
10540   ;
10541   return 0;
10542 }
10543 _ACEOF
10544 rm -f conftest.$ac_objext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546   (eval $ac_compile) 2>conftest.er1
10547   ac_status=$?
10548   grep -v '^ *+' conftest.er1 >conftest.err
10549   rm -f conftest.er1
10550   cat conftest.err >&5
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); } &&
10553          { ac_try='test -z "$ac_c_werror_flag"
10554                          || test ! -s conftest.err'
10555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556   (eval $ac_try) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; } &&
10560          { ac_try='test -s conftest.$ac_objext'
10561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562   (eval $ac_try) 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); }; }; then
10566   break
10567 else
10568   echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10570
10571 fi
10572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10573 done
10574 rm -f conftest*
10575 if test -n "$ac_declaration"; then
10576   echo '#ifdef __cplusplus' >>confdefs.h
10577   echo $ac_declaration      >>confdefs.h
10578   echo '#endif'             >>confdefs.h
10579 fi
10580
10581 else
10582   echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10584
10585 fi
10586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10587 ac_ext=c
10588 ac_cpp='$CPP $CPPFLAGS'
10589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10592
10593
10594 ALL_LINGUAS="fr sv tr es da de id pt_BR ro nl fi vi ga zh_CN"
10595 # If we haven't got the data from the intl directory,
10596 # assume NLS is disabled.
10597 USE_NLS=no
10598 LIBINTL=
10599 LIBINTL_DEP=
10600 INCINTL=
10601 XGETTEXT=
10602 GMSGFMT=
10603 POSUB=
10604
10605 if test -f  ../intl/config.intl; then
10606   .  ../intl/config.intl
10607 fi
10608 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10609 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10610 if test x"$USE_NLS" != xyes; then
10611   echo "$as_me:$LINENO: result: no" >&5
10612 echo "${ECHO_T}no" >&6
10613 else
10614   echo "$as_me:$LINENO: result: yes" >&5
10615 echo "${ECHO_T}yes" >&6
10616
10617 cat >>confdefs.h <<\_ACEOF
10618 #define ENABLE_NLS 1
10619 _ACEOF
10620
10621
10622   echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10623 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
10624   # Look for .po and .gmo files in the source directory.
10625   CATALOGS=
10626   XLINGUAS=
10627   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10628     # If there aren't any .gmo files the shell will give us the
10629     # literal string "../path/to/srcdir/po/*.gmo" which has to be
10630     # weeded out.
10631     case "$cat" in *\**)
10632       continue;;
10633     esac
10634     # The quadruple backslash is collapsed to a double backslash
10635     # by the backticks, then collapsed again by the double quotes,
10636     # leaving us with one backslash in the sed expression (right
10637     # before the dot that mustn't act as a wildcard).
10638     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10639     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10640     # The user is allowed to set LINGUAS to a list of languages to
10641     # install catalogs for.  If it's empty that means "all of them."
10642     if test "x$LINGUAS" = x; then
10643       CATALOGS="$CATALOGS $cat"
10644       XLINGUAS="$XLINGUAS $lang"
10645     else
10646       case "$LINGUAS" in *$lang*)
10647         CATALOGS="$CATALOGS $cat"
10648         XLINGUAS="$XLINGUAS $lang"
10649         ;;
10650       esac
10651     fi
10652   done
10653   LINGUAS="$XLINGUAS"
10654   echo "$as_me:$LINENO: result: $LINGUAS" >&5
10655 echo "${ECHO_T}$LINGUAS" >&6
10656
10657
10658     DATADIRNAME=share
10659
10660   INSTOBJEXT=.mo
10661
10662   GENCAT=gencat
10663
10664   CATOBJEXT=.gmo
10665
10666 fi
10667
10668         MKINSTALLDIRS=
10669   if test -n "$ac_aux_dir"; then
10670     case "$ac_aux_dir" in
10671       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
10672       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
10673     esac
10674   fi
10675   if test -z "$MKINSTALLDIRS"; then
10676     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10677   fi
10678
10679
10680
10681   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10682 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
10683     # Check whether --enable-nls or --disable-nls was given.
10684 if test "${enable_nls+set}" = set; then
10685   enableval="$enable_nls"
10686   USE_NLS=$enableval
10687 else
10688   USE_NLS=yes
10689 fi;
10690   echo "$as_me:$LINENO: result: $USE_NLS" >&5
10691 echo "${ECHO_T}$USE_NLS" >&6
10692
10693
10694
10695
10696
10697
10698 # Prepare PATH_SEPARATOR.
10699 # The user is always right.
10700 if test "${PATH_SEPARATOR+set}" != set; then
10701   echo "#! /bin/sh" >conf$$.sh
10702   echo  "exit 0"   >>conf$$.sh
10703   chmod +x conf$$.sh
10704   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10705     PATH_SEPARATOR=';'
10706   else
10707     PATH_SEPARATOR=:
10708   fi
10709   rm -f conf$$.sh
10710 fi
10711
10712 # Find out how to test for executable files. Don't use a zero-byte file,
10713 # as systems may use methods other than mode bits to determine executability.
10714 cat >conf$$.file <<_ASEOF
10715 #! /bin/sh
10716 exit 0
10717 _ASEOF
10718 chmod +x conf$$.file
10719 if test -x conf$$.file >/dev/null 2>&1; then
10720   ac_executable_p="test -x"
10721 else
10722   ac_executable_p="test -f"
10723 fi
10724 rm -f conf$$.file
10725
10726 # Extract the first word of "msgfmt", so it can be a program name with args.
10727 set dummy msgfmt; ac_word=$2
10728 echo "$as_me:$LINENO: checking for $ac_word" >&5
10729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10730 if test "${ac_cv_path_MSGFMT+set}" = set; then
10731   echo $ECHO_N "(cached) $ECHO_C" >&6
10732 else
10733   case "$MSGFMT" in
10734   [\\/]* | ?:[\\/]*)
10735     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10736     ;;
10737   *)
10738     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10739     for ac_dir in $PATH; do
10740       IFS="$ac_save_IFS"
10741       test -z "$ac_dir" && ac_dir=.
10742       for ac_exec_ext in '' $ac_executable_extensions; do
10743         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10744           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
10745      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10746             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10747             break 2
10748           fi
10749         fi
10750       done
10751     done
10752     IFS="$ac_save_IFS"
10753   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10754     ;;
10755 esac
10756 fi
10757 MSGFMT="$ac_cv_path_MSGFMT"
10758 if test "$MSGFMT" != ":"; then
10759   echo "$as_me:$LINENO: result: $MSGFMT" >&5
10760 echo "${ECHO_T}$MSGFMT" >&6
10761 else
10762   echo "$as_me:$LINENO: result: no" >&5
10763 echo "${ECHO_T}no" >&6
10764 fi
10765
10766   # Extract the first word of "gmsgfmt", so it can be a program name with args.
10767 set dummy gmsgfmt; ac_word=$2
10768 echo "$as_me:$LINENO: checking for $ac_word" >&5
10769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10770 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10771   echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773   case $GMSGFMT in
10774   [\\/]* | ?:[\\/]*)
10775   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10776   ;;
10777   *)
10778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10780 do
10781   IFS=$as_save_IFS
10782   test -z "$as_dir" && as_dir=.
10783   for ac_exec_ext in '' $ac_executable_extensions; do
10784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10785     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10787     break 2
10788   fi
10789 done
10790 done
10791
10792   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10793   ;;
10794 esac
10795 fi
10796 GMSGFMT=$ac_cv_path_GMSGFMT
10797
10798 if test -n "$GMSGFMT"; then
10799   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10800 echo "${ECHO_T}$GMSGFMT" >&6
10801 else
10802   echo "$as_me:$LINENO: result: no" >&5
10803 echo "${ECHO_T}no" >&6
10804 fi
10805
10806
10807
10808 # Prepare PATH_SEPARATOR.
10809 # The user is always right.
10810 if test "${PATH_SEPARATOR+set}" != set; then
10811   echo "#! /bin/sh" >conf$$.sh
10812   echo  "exit 0"   >>conf$$.sh
10813   chmod +x conf$$.sh
10814   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10815     PATH_SEPARATOR=';'
10816   else
10817     PATH_SEPARATOR=:
10818   fi
10819   rm -f conf$$.sh
10820 fi
10821
10822 # Find out how to test for executable files. Don't use a zero-byte file,
10823 # as systems may use methods other than mode bits to determine executability.
10824 cat >conf$$.file <<_ASEOF
10825 #! /bin/sh
10826 exit 0
10827 _ASEOF
10828 chmod +x conf$$.file
10829 if test -x conf$$.file >/dev/null 2>&1; then
10830   ac_executable_p="test -x"
10831 else
10832   ac_executable_p="test -f"
10833 fi
10834 rm -f conf$$.file
10835
10836 # Extract the first word of "xgettext", so it can be a program name with args.
10837 set dummy xgettext; ac_word=$2
10838 echo "$as_me:$LINENO: checking for $ac_word" >&5
10839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10840 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10841   echo $ECHO_N "(cached) $ECHO_C" >&6
10842 else
10843   case "$XGETTEXT" in
10844   [\\/]* | ?:[\\/]*)
10845     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10846     ;;
10847   *)
10848     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10849     for ac_dir in $PATH; do
10850       IFS="$ac_save_IFS"
10851       test -z "$ac_dir" && ac_dir=.
10852       for ac_exec_ext in '' $ac_executable_extensions; do
10853         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10854           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10855      (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
10856             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10857             break 2
10858           fi
10859         fi
10860       done
10861     done
10862     IFS="$ac_save_IFS"
10863   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10864     ;;
10865 esac
10866 fi
10867 XGETTEXT="$ac_cv_path_XGETTEXT"
10868 if test "$XGETTEXT" != ":"; then
10869   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10870 echo "${ECHO_T}$XGETTEXT" >&6
10871 else
10872   echo "$as_me:$LINENO: result: no" >&5
10873 echo "${ECHO_T}no" >&6
10874 fi
10875
10876     rm -f messages.po
10877
10878
10879 # Prepare PATH_SEPARATOR.
10880 # The user is always right.
10881 if test "${PATH_SEPARATOR+set}" != set; then
10882   echo "#! /bin/sh" >conf$$.sh
10883   echo  "exit 0"   >>conf$$.sh
10884   chmod +x conf$$.sh
10885   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10886     PATH_SEPARATOR=';'
10887   else
10888     PATH_SEPARATOR=:
10889   fi
10890   rm -f conf$$.sh
10891 fi
10892
10893 # Find out how to test for executable files. Don't use a zero-byte file,
10894 # as systems may use methods other than mode bits to determine executability.
10895 cat >conf$$.file <<_ASEOF
10896 #! /bin/sh
10897 exit 0
10898 _ASEOF
10899 chmod +x conf$$.file
10900 if test -x conf$$.file >/dev/null 2>&1; then
10901   ac_executable_p="test -x"
10902 else
10903   ac_executable_p="test -f"
10904 fi
10905 rm -f conf$$.file
10906
10907 # Extract the first word of "msgmerge", so it can be a program name with args.
10908 set dummy msgmerge; ac_word=$2
10909 echo "$as_me:$LINENO: checking for $ac_word" >&5
10910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10911 if test "${ac_cv_path_MSGMERGE+set}" = set; then
10912   echo $ECHO_N "(cached) $ECHO_C" >&6
10913 else
10914   case "$MSGMERGE" in
10915   [\\/]* | ?:[\\/]*)
10916     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10917     ;;
10918   *)
10919     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10920     for ac_dir in $PATH; do
10921       IFS="$ac_save_IFS"
10922       test -z "$ac_dir" && ac_dir=.
10923       for ac_exec_ext in '' $ac_executable_extensions; do
10924         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10925           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
10926             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10927             break 2
10928           fi
10929         fi
10930       done
10931     done
10932     IFS="$ac_save_IFS"
10933   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10934     ;;
10935 esac
10936 fi
10937 MSGMERGE="$ac_cv_path_MSGMERGE"
10938 if test "$MSGMERGE" != ":"; then
10939   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
10940 echo "${ECHO_T}$MSGMERGE" >&6
10941 else
10942   echo "$as_me:$LINENO: result: no" >&5
10943 echo "${ECHO_T}no" >&6
10944 fi
10945
10946
10947       if test "$GMSGFMT" != ":"; then
10948             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
10949        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10950       : ;
10951     else
10952       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
10953       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
10954 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
10955       GMSGFMT=":"
10956     fi
10957   fi
10958
10959       if test "$XGETTEXT" != ":"; then
10960             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
10961        (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
10962       : ;
10963     else
10964       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10965 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
10966       XGETTEXT=":"
10967     fi
10968         rm -f messages.po
10969   fi
10970
10971             ac_config_commands="$ac_config_commands default-1"
10972
10973
10974
10975 . ${srcdir}/../bfd/configure.host
10976
10977 # Put a plausible default for CC_FOR_BUILD in Makefile.
10978 if test -z "$CC_FOR_BUILD"; then
10979   if test "x$cross_compiling" = "xno"; then
10980     CC_FOR_BUILD='$(CC)'
10981   else
10982     CC_FOR_BUILD=gcc
10983   fi
10984 fi
10985
10986 # Also set EXEEXT_FOR_BUILD.
10987 if test "x$cross_compiling" = "xno"; then
10988   EXEEXT_FOR_BUILD='$(EXEEXT)'
10989 else
10990   echo "$as_me:$LINENO: checking for build system executable suffix" >&5
10991 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
10992 if test "${bfd_cv_build_exeext+set}" = set; then
10993   echo $ECHO_N "(cached) $ECHO_C" >&6
10994 else
10995   rm -f conftest*
10996      echo 'int main () { return 0; }' > conftest.c
10997      bfd_cv_build_exeext=
10998      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
10999      for file in conftest.*; do
11000        case $file in
11001        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
11002        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
11003        esac
11004      done
11005      rm -f conftest*
11006      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
11007 fi
11008 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
11009 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
11010   EXEEXT_FOR_BUILD=""
11011   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
11012 fi
11013
11014
11015
11016 # Find a good install program.  We prefer a C program (faster),
11017 # so one script is as good as another.  But avoid the broken or
11018 # incompatible versions:
11019 # SysV /etc/install, /usr/sbin/install
11020 # SunOS /usr/etc/install
11021 # IRIX /sbin/install
11022 # AIX /bin/install
11023 # AmigaOS /C/install, which installs bootblocks on floppy discs
11024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11027 # OS/2's system install, which has a completely different semantic
11028 # ./install, which can be erroneously created by make from ./install.sh.
11029 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11030 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11031 if test -z "$INSTALL"; then
11032 if test "${ac_cv_path_install+set}" = set; then
11033   echo $ECHO_N "(cached) $ECHO_C" >&6
11034 else
11035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11037 do
11038   IFS=$as_save_IFS
11039   test -z "$as_dir" && as_dir=.
11040   # Account for people who put trailing slashes in PATH elements.
11041 case $as_dir/ in
11042   ./ | .// | /cC/* | \
11043   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11044   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11045   /usr/ucb/* ) ;;
11046   *)
11047     # OSF1 and SCO ODT 3.0 have their own names for install.
11048     # Don't use installbsd from OSF since it installs stuff as root
11049     # by default.
11050     for ac_prog in ginstall scoinst install; do
11051       for ac_exec_ext in '' $ac_executable_extensions; do
11052         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11053           if test $ac_prog = install &&
11054             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11055             # AIX install.  It has an incompatible calling convention.
11056             :
11057           elif test $ac_prog = install &&
11058             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11059             # program-specific install script used by HP pwplus--don't use.
11060             :
11061           else
11062             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11063             break 3
11064           fi
11065         fi
11066       done
11067     done
11068     ;;
11069 esac
11070 done
11071
11072
11073 fi
11074   if test "${ac_cv_path_install+set}" = set; then
11075     INSTALL=$ac_cv_path_install
11076   else
11077     # As a last resort, use the slow shell script.  We don't cache a
11078     # path for INSTALL within a source directory, because that will
11079     # break other packages using the cache if that directory is
11080     # removed, or if the path is relative.
11081     INSTALL=$ac_install_sh
11082   fi
11083 fi
11084 echo "$as_me:$LINENO: result: $INSTALL" >&5
11085 echo "${ECHO_T}$INSTALL" >&6
11086
11087 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11088 # It thinks the first close brace ends the variable substitution.
11089 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11090
11091 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11092
11093 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11094
11095
11096
11097
11098
11099 for ac_header in string.h strings.h stdlib.h
11100 do
11101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11103   echo "$as_me:$LINENO: checking for $ac_header" >&5
11104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11106   echo $ECHO_N "(cached) $ECHO_C" >&6
11107 fi
11108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11110 else
11111   # Is the header compilable?
11112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11114 cat >conftest.$ac_ext <<_ACEOF
11115 /* confdefs.h.  */
11116 _ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h.  */
11120 $ac_includes_default
11121 #include <$ac_header>
11122 _ACEOF
11123 rm -f conftest.$ac_objext
11124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11125   (eval $ac_compile) 2>conftest.er1
11126   ac_status=$?
11127   grep -v '^ *+' conftest.er1 >conftest.err
11128   rm -f conftest.er1
11129   cat conftest.err >&5
11130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131   (exit $ac_status); } &&
11132          { ac_try='test -z "$ac_c_werror_flag"
11133                          || test ! -s conftest.err'
11134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135   (eval $ac_try) 2>&5
11136   ac_status=$?
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); }; } &&
11139          { ac_try='test -s conftest.$ac_objext'
11140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141   (eval $ac_try) 2>&5
11142   ac_status=$?
11143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144   (exit $ac_status); }; }; then
11145   ac_header_compiler=yes
11146 else
11147   echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11149
11150 ac_header_compiler=no
11151 fi
11152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11154 echo "${ECHO_T}$ac_header_compiler" >&6
11155
11156 # Is the header present?
11157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11159 cat >conftest.$ac_ext <<_ACEOF
11160 /* confdefs.h.  */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h.  */
11165 #include <$ac_header>
11166 _ACEOF
11167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11169   ac_status=$?
11170   grep -v '^ *+' conftest.er1 >conftest.err
11171   rm -f conftest.er1
11172   cat conftest.err >&5
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); } >/dev/null; then
11175   if test -s conftest.err; then
11176     ac_cpp_err=$ac_c_preproc_warn_flag
11177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11178   else
11179     ac_cpp_err=
11180   fi
11181 else
11182   ac_cpp_err=yes
11183 fi
11184 if test -z "$ac_cpp_err"; then
11185   ac_header_preproc=yes
11186 else
11187   echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11189
11190   ac_header_preproc=no
11191 fi
11192 rm -f conftest.err conftest.$ac_ext
11193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11194 echo "${ECHO_T}$ac_header_preproc" >&6
11195
11196 # So?  What about this header?
11197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11198   yes:no: )
11199     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11201     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11203     ac_header_preproc=yes
11204     ;;
11205   no:yes:* )
11206     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11208     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11209 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11210     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11212     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11213 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11214     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11216     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11218     (
11219       cat <<\_ASBOX
11220 ## ------------------------------------------ ##
11221 ## Report this to the AC_PACKAGE_NAME lists.  ##
11222 ## ------------------------------------------ ##
11223 _ASBOX
11224     ) |
11225       sed "s/^/$as_me: WARNING:     /" >&2
11226     ;;
11227 esac
11228 echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233   eval "$as_ac_Header=\$ac_header_preproc"
11234 fi
11235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11237
11238 fi
11239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240   cat >>confdefs.h <<_ACEOF
11241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11242 _ACEOF
11243
11244 fi
11245
11246 done
11247
11248
11249 echo "$as_me:$LINENO: checking whether basename is declared" >&5
11250 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
11251 if test "${ac_cv_have_decl_basename+set}" = set; then
11252   echo $ECHO_N "(cached) $ECHO_C" >&6
11253 else
11254   cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h.  */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h.  */
11260 $ac_includes_default
11261 int
11262 main ()
11263 {
11264 #ifndef basename
11265   char *p = (char *) basename;
11266 #endif
11267
11268   ;
11269   return 0;
11270 }
11271 _ACEOF
11272 rm -f conftest.$ac_objext
11273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11274   (eval $ac_compile) 2>conftest.er1
11275   ac_status=$?
11276   grep -v '^ *+' conftest.er1 >conftest.err
11277   rm -f conftest.er1
11278   cat conftest.err >&5
11279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280   (exit $ac_status); } &&
11281          { ac_try='test -z "$ac_c_werror_flag"
11282                          || test ! -s conftest.err'
11283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11284   (eval $ac_try) 2>&5
11285   ac_status=$?
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); }; } &&
11288          { ac_try='test -s conftest.$ac_objext'
11289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11290   (eval $ac_try) 2>&5
11291   ac_status=$?
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); }; }; then
11294   ac_cv_have_decl_basename=yes
11295 else
11296   echo "$as_me: failed program was:" >&5
11297 sed 's/^/| /' conftest.$ac_ext >&5
11298
11299 ac_cv_have_decl_basename=no
11300 fi
11301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11302 fi
11303 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
11304 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
11305 if test $ac_cv_have_decl_basename = yes; then
11306
11307 cat >>confdefs.h <<_ACEOF
11308 #define HAVE_DECL_BASENAME 1
11309 _ACEOF
11310
11311
11312 else
11313   cat >>confdefs.h <<_ACEOF
11314 #define HAVE_DECL_BASENAME 0
11315 _ACEOF
11316
11317
11318 fi
11319
11320
11321
11322 cgen_maint=no
11323 cgendir='$(srcdir)/../cgen'
11324
11325 # Check whether --enable-cgen-maint or --disable-cgen-maint was given.
11326 if test "${enable_cgen_maint+set}" = set; then
11327   enableval="$enable_cgen_maint"
11328   case "${enableval}" in
11329   yes)  cgen_maint=yes ;;
11330   no)   cgen_maint=no ;;
11331   *)
11332         # argument is cgen install directory (not implemented yet).
11333         # Having a `share' directory might be more appropriate for the .scm,
11334         # .cpu, etc. files.
11335         cgen_maint=yes
11336         cgendir=${cgen_maint}/lib/cgen
11337         ;;
11338 esac
11339 fi;
11340
11341 if test x${cgen_maint} = xyes; then
11342   CGEN_MAINT_TRUE=
11343   CGEN_MAINT_FALSE='#'
11344 else
11345   CGEN_MAINT_TRUE='#'
11346   CGEN_MAINT_FALSE=
11347 fi
11348
11349
11350
11351 using_cgen=no
11352
11353 # Horrible hacks to build DLLs on Windows.
11354 WIN32LDFLAGS=
11355 WIN32LIBADD=
11356 case "${host}" in
11357 *-*-cygwin*)
11358   if test "$enable_shared" = "yes"; then
11359     WIN32LDFLAGS="-no-undefined"
11360     WIN32LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin"
11361   fi
11362   ;;
11363 esac
11364
11365
11366
11367 # target-specific stuff:
11368
11369 # Canonicalize the secondary target names.
11370 if test -n "$enable_targets" ; then
11371     for targ in `echo $enable_targets | sed 's/,/ /g'`
11372     do
11373         result=`$ac_config_sub $targ 2>/dev/null`
11374         if test -n "$result" ; then
11375             canon_targets="$canon_targets $result"
11376         else
11377             # Allow targets that config.sub doesn't recognize, like "all".
11378             canon_targets="$canon_targets $targ"
11379         fi
11380     done
11381 fi
11382
11383 all_targets=false
11384 selarchs=
11385 for targ in $target $canon_targets
11386 do
11387     if test "x$targ" = "xall" ; then
11388         all_targets=true
11389     else
11390         . $srcdir/../bfd/config.bfd
11391         selarchs="$selarchs $targ_archs"
11392     fi
11393 done
11394
11395 # Utility var, documents generic cgen support files.
11396
11397 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo"
11398
11399 # We don't do any links based on the target system, just makefile config.
11400
11401 if test x${all_targets} = xfalse ; then
11402
11403     # Target architecture .o files.
11404     ta=
11405
11406     for arch in $selarchs
11407     do
11408         ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g`
11409         archdefs="$archdefs -DARCH_$ad"
11410         case "$arch" in
11411         bfd_alpha_arch)         ta="$ta alpha-dis.lo alpha-opc.lo" ;;
11412         bfd_arc_arch)           ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;;
11413         bfd_arm_arch)           ta="$ta arm-dis.lo" ;;
11414         bfd_avr_arch)           ta="$ta avr-dis.lo" ;;
11415         bfd_bfin_arch)          ta="$ta bfin-dis.lo" ;;
11416         bfd_cris_arch)          ta="$ta cris-dis.lo cris-opc.lo cgen-bitset.lo" ;;
11417         bfd_crx_arch)           ta="$ta crx-dis.lo crx-opc.lo" ;;
11418         bfd_d10v_arch)          ta="$ta d10v-dis.lo d10v-opc.lo" ;;
11419         bfd_d30v_arch)          ta="$ta d30v-dis.lo d30v-opc.lo" ;;
11420         bfd_dlx_arch)           ta="$ta dlx-dis.lo" ;;
11421         bfd_fr30_arch)          ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;;
11422         bfd_frv_arch)           ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;;
11423         bfd_h8300_arch)         ta="$ta h8300-dis.lo" ;;
11424         bfd_h8500_arch)         ta="$ta h8500-dis.lo" ;;
11425         bfd_hppa_arch)          ta="$ta hppa-dis.lo" ;;
11426         bfd_i370_arch)          ta="$ta i370-dis.lo i370-opc.lo" ;;
11427         bfd_i386_arch)          ta="$ta i386-dis.lo i386-opc.lo" ;;
11428         bfd_i860_arch)          ta="$ta i860-dis.lo" ;;
11429         bfd_i960_arch)          ta="$ta i960-dis.lo" ;;
11430         bfd_ia64_arch)          ta="$ta ia64-dis.lo ia64-opc.lo" ;;
11431         bfd_ip2k_arch)          ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;;
11432         bfd_iq2000_arch)        ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;;
11433         bfd_m32c_arch)          ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;;
11434         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 ;;
11435         bfd_m68hc11_arch)       ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11436         bfd_m68hc12_arch)       ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;;
11437         bfd_m68k_arch)          ta="$ta m68k-dis.lo m68k-opc.lo" ;;
11438         bfd_m88k_arch)          ta="$ta m88k-dis.lo" ;;
11439         bfd_maxq_arch)          ta="$ta maxq-dis.lo" ;;
11440         bfd_mcore_arch)         ta="$ta mcore-dis.lo" ;;
11441         bfd_mep_arch)           ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;;
11442         bfd_mips_arch)          ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo" ;;
11443         bfd_mmix_arch)          ta="$ta mmix-dis.lo mmix-opc.lo" ;;
11444         bfd_mn10200_arch)       ta="$ta m10200-dis.lo m10200-opc.lo" ;;
11445         bfd_mn10300_arch)       ta="$ta m10300-dis.lo m10300-opc.lo" ;;
11446         bfd_mt_arch)            ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;;
11447         bfd_msp430_arch)        ta="$ta msp430-dis.lo" ;;
11448         bfd_ns32k_arch)         ta="$ta ns32k-dis.lo" ;;
11449         bfd_openrisc_arch)      ta="$ta openrisc-asm.lo openrisc-desc.lo openrisc-dis.lo openrisc-ibld.lo openrisc-opc.lo" using_cgen=yes ;;
11450         bfd_or32_arch)          ta="$ta or32-dis.lo or32-opc.lo" using_cgen=yes ;;
11451         bfd_pdp11_arch)         ta="$ta pdp11-dis.lo pdp11-opc.lo" ;;
11452         bfd_pj_arch)            ta="$ta pj-dis.lo pj-opc.lo" ;;
11453         bfd_powerpc_arch)       ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11454         bfd_powerpc_64_arch)    ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11455         bfd_pyramid_arch)       ;;
11456         bfd_romp_arch)          ;;
11457         bfd_rs6000_arch)        ta="$ta ppc-dis.lo ppc-opc.lo" ;;
11458         bfd_s390_arch)          ta="$ta s390-dis.lo s390-opc.lo" ;;
11459         bfd_score_arch)         ta="$ta score-dis.lo" ;;
11460         bfd_sh_arch)
11461           # We can't decide what we want just from the CPU family.
11462           # We want SH5 support unless a specific version of sh is
11463           # specified, as in sh3-elf, sh3b-linux-gnu, etc.
11464           # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
11465           for t in $target $canon_targets; do
11466             case $t in
11467               all |  sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
11468               sh-*-linux* | shl-*-linux*)
11469                                 ta="$ta sh64-dis.lo sh64-opc.lo"
11470                                 archdefs="$archdefs -DINCLUDE_SHMEDIA"
11471                                 break;;
11472             esac;
11473           done
11474                                 ta="$ta sh-dis.lo cgen-bitset.lo" ;;
11475         bfd_sparc_arch)         ta="$ta sparc-dis.lo sparc-opc.lo" ;;
11476         bfd_spu_arch)           ta="$ta spu-dis.lo spu-opc.lo" ;;
11477         bfd_tahoe_arch)         ;;
11478         bfd_tic30_arch)         ta="$ta tic30-dis.lo" ;;
11479         bfd_tic4x_arch)         ta="$ta tic4x-dis.lo" ;;
11480         bfd_tic54x_arch)        ta="$ta tic54x-dis.lo tic54x-opc.lo" ;;
11481         bfd_tic80_arch)         ta="$ta tic80-dis.lo tic80-opc.lo" ;;
11482         bfd_v850_arch)          ta="$ta v850-opc.lo v850-dis.lo" ;;
11483         bfd_v850e_arch)         ta="$ta v850-opc.lo v850-dis.lo" ;;
11484         bfd_v850ea_arch)        ta="$ta v850-opc.lo v850-dis.lo" ;;
11485         bfd_vax_arch)           ta="$ta vax-dis.lo" ;;
11486         bfd_w65_arch)           ta="$ta w65-dis.lo" ;;
11487         bfd_we32k_arch)         ;;
11488         bfd_xc16x_arch)         ta="$ta xc16x-asm.lo xc16x-desc.lo xc16x-dis.lo xc16x-ibld.lo xc16x-opc.lo" using_cgen=yes ;;
11489         bfd_xstormy16_arch)     ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;;
11490         bfd_xtensa_arch)        ta="$ta xtensa-dis.lo" ;;
11491         bfd_z80_arch)           ta="$ta z80-dis.lo" ;;
11492         bfd_z8k_arch)           ta="$ta z8k-dis.lo" ;;
11493
11494         "")                     ;;
11495         *)              { { echo "$as_me:$LINENO: error: *** unknown target architecture $arch" >&5
11496 echo "$as_me: error: *** unknown target architecture $arch" >&2;}
11497    { (exit 1); exit 1; }; } ;;
11498         esac
11499     done
11500
11501     if test $using_cgen = yes ; then
11502         ta="$ta $cgen_files"
11503     fi
11504
11505     # Weed out duplicate .o files.
11506     f=""
11507     for i in $ta ; do
11508         case " $f " in
11509         *" $i "*) ;;
11510         *) f="$f $i" ;;
11511         esac
11512     done
11513     ta="$f"
11514
11515     # And duplicate -D flags.
11516     f=""
11517     for i in $archdefs ; do
11518         case " $f " in
11519         *" $i "*) ;;
11520         *) f="$f $i" ;;
11521         esac
11522     done
11523     archdefs="$f"
11524
11525     BFD_MACHINES="$ta"
11526
11527 else    # all_targets is true
11528     archdefs=-DARCH_all
11529     BFD_MACHINES='$(ALL_MACHINES)'
11530 fi
11531
11532
11533
11534
11535                     ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
11536
11537 cat >confcache <<\_ACEOF
11538 # This file is a shell script that caches the results of configure
11539 # tests run on this system so they can be shared between configure
11540 # scripts and configure runs, see configure's option --config-cache.
11541 # It is not useful on other systems.  If it contains results you don't
11542 # want to keep, you may remove or edit it.
11543 #
11544 # config.status only pays attention to the cache file if you give it
11545 # the --recheck option to rerun configure.
11546 #
11547 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11548 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11549 # following values.
11550
11551 _ACEOF
11552
11553 # The following way of writing the cache mishandles newlines in values,
11554 # but we know of no workaround that is simple, portable, and efficient.
11555 # So, don't put newlines in cache variables' values.
11556 # Ultrix sh set writes to stderr and can't be redirected directly,
11557 # and sets the high bit in the cache file unless we assign to the vars.
11558 {
11559   (set) 2>&1 |
11560     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11561     *ac_space=\ *)
11562       # `set' does not quote correctly, so add quotes (double-quote
11563       # substitution turns \\\\ into \\, and sed turns \\ into \).
11564       sed -n \
11565         "s/'/'\\\\''/g;
11566           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11567       ;;
11568     *)
11569       # `set' quotes correctly as required by POSIX, so do not add quotes.
11570       sed -n \
11571         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11572       ;;
11573     esac;
11574 } |
11575   sed '
11576      t clear
11577      : clear
11578      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11579      t end
11580      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11581      : end' >>confcache
11582 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11583   if test -w $cache_file; then
11584     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11585     cat confcache >$cache_file
11586   else
11587     echo "not updating unwritable cache $cache_file"
11588   fi
11589 fi
11590 rm -f confcache
11591
11592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11593 # Let make expand exec_prefix.
11594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11595
11596 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11597 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11598 # trailing colons and then remove the whole line if VPATH becomes empty
11599 # (actually we leave an empty line to preserve line numbers).
11600 if test "x$srcdir" = x.; then
11601   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11602 s/:*\$(srcdir):*/:/;
11603 s/:*\${srcdir}:*/:/;
11604 s/:*@srcdir@:*/:/;
11605 s/^\([^=]*=[     ]*\):*/\1/;
11606 s/:*$//;
11607 s/^[^=]*=[       ]*$//;
11608 }'
11609 fi
11610
11611 DEFS=-DHAVE_CONFIG_H
11612
11613 ac_libobjs=
11614 ac_ltlibobjs=
11615 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11616   # 1. Remove the extension, and $U if already installed.
11617   ac_i=`echo "$ac_i" |
11618          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11619   # 2. Add them.
11620   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11621   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11622 done
11623 LIBOBJS=$ac_libobjs
11624
11625 LTLIBOBJS=$ac_ltlibobjs
11626
11627
11628 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11629   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11630 Usually this means the macro was only invoked conditionally." >&5
11631 echo "$as_me: error: conditional \"AMDEP\" was never defined.
11632 Usually this means the macro was only invoked conditionally." >&2;}
11633    { (exit 1); exit 1; }; }
11634 fi
11635 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11636   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11637 Usually this means the macro was only invoked conditionally." >&5
11638 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11639 Usually this means the macro was only invoked conditionally." >&2;}
11640    { (exit 1); exit 1; }; }
11641 fi
11642 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11643   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11644 Usually this means the macro was only invoked conditionally." >&5
11645 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11646 Usually this means the macro was only invoked conditionally." >&2;}
11647    { (exit 1); exit 1; }; }
11648 fi
11649 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
11650   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
11651 Usually this means the macro was only invoked conditionally." >&5
11652 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
11653 Usually this means the macro was only invoked conditionally." >&2;}
11654    { (exit 1); exit 1; }; }
11655 fi
11656 if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then
11657   { { echo "$as_me:$LINENO: error: conditional \"CGEN_MAINT\" was never defined.
11658 Usually this means the macro was only invoked conditionally." >&5
11659 echo "$as_me: error: conditional \"CGEN_MAINT\" was never defined.
11660 Usually this means the macro was only invoked conditionally." >&2;}
11661    { (exit 1); exit 1; }; }
11662 fi
11663
11664 : ${CONFIG_STATUS=./config.status}
11665 ac_clean_files_save=$ac_clean_files
11666 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11667 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11668 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11669 cat >$CONFIG_STATUS <<_ACEOF
11670 #! $SHELL
11671 # Generated by $as_me.
11672 # Run this file to recreate the current configuration.
11673 # Compiler output produced by configure, useful for debugging
11674 # configure, is in config.log if it exists.
11675
11676 debug=false
11677 ac_cs_recheck=false
11678 ac_cs_silent=false
11679 SHELL=\${CONFIG_SHELL-$SHELL}
11680 _ACEOF
11681
11682 cat >>$CONFIG_STATUS <<\_ACEOF
11683 ## --------------------- ##
11684 ## M4sh Initialization.  ##
11685 ## --------------------- ##
11686
11687 # Be Bourne compatible
11688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11689   emulate sh
11690   NULLCMD=:
11691   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11692   # is contrary to our usage.  Disable this feature.
11693   alias -g '${1+"$@"}'='"$@"'
11694 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11695   set -o posix
11696 fi
11697 DUALCASE=1; export DUALCASE # for MKS sh
11698
11699 # Support unset when possible.
11700 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11701   as_unset=unset
11702 else
11703   as_unset=false
11704 fi
11705
11706
11707 # Work around bugs in pre-3.0 UWIN ksh.
11708 $as_unset ENV MAIL MAILPATH
11709 PS1='$ '
11710 PS2='> '
11711 PS4='+ '
11712
11713 # NLS nuisances.
11714 for as_var in \
11715   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11716   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11717   LC_TELEPHONE LC_TIME
11718 do
11719   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11720     eval $as_var=C; export $as_var
11721   else
11722     $as_unset $as_var
11723   fi
11724 done
11725
11726 # Required to use basename.
11727 if expr a : '\(a\)' >/dev/null 2>&1; then
11728   as_expr=expr
11729 else
11730   as_expr=false
11731 fi
11732
11733 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11734   as_basename=basename
11735 else
11736   as_basename=false
11737 fi
11738
11739
11740 # Name of the executable.
11741 as_me=`$as_basename "$0" ||
11742 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11743          X"$0" : 'X\(//\)$' \| \
11744          X"$0" : 'X\(/\)$' \| \
11745          .     : '\(.\)' 2>/dev/null ||
11746 echo X/"$0" |
11747     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11748           /^X\/\(\/\/\)$/{ s//\1/; q; }
11749           /^X\/\(\/\).*/{ s//\1/; q; }
11750           s/.*/./; q'`
11751
11752
11753 # PATH needs CR, and LINENO needs CR and PATH.
11754 # Avoid depending upon Character Ranges.
11755 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11756 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11757 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11758 as_cr_digits='0123456789'
11759 as_cr_alnum=$as_cr_Letters$as_cr_digits
11760
11761 # The user is always right.
11762 if test "${PATH_SEPARATOR+set}" != set; then
11763   echo "#! /bin/sh" >conf$$.sh
11764   echo  "exit 0"   >>conf$$.sh
11765   chmod +x conf$$.sh
11766   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11767     PATH_SEPARATOR=';'
11768   else
11769     PATH_SEPARATOR=:
11770   fi
11771   rm -f conf$$.sh
11772 fi
11773
11774
11775   as_lineno_1=$LINENO
11776   as_lineno_2=$LINENO
11777   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11778   test "x$as_lineno_1" != "x$as_lineno_2" &&
11779   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11780   # Find who we are.  Look in the path if we contain no path at all
11781   # relative or not.
11782   case $0 in
11783     *[\\/]* ) as_myself=$0 ;;
11784     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11786 do
11787   IFS=$as_save_IFS
11788   test -z "$as_dir" && as_dir=.
11789   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11790 done
11791
11792        ;;
11793   esac
11794   # We did not find ourselves, most probably we were run as `sh COMMAND'
11795   # in which case we are not to be found in the path.
11796   if test "x$as_myself" = x; then
11797     as_myself=$0
11798   fi
11799   if test ! -f "$as_myself"; then
11800     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11801 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11802    { (exit 1); exit 1; }; }
11803   fi
11804   case $CONFIG_SHELL in
11805   '')
11806     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11808 do
11809   IFS=$as_save_IFS
11810   test -z "$as_dir" && as_dir=.
11811   for as_base in sh bash ksh sh5; do
11812          case $as_dir in
11813          /*)
11814            if ("$as_dir/$as_base" -c '
11815   as_lineno_1=$LINENO
11816   as_lineno_2=$LINENO
11817   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11818   test "x$as_lineno_1" != "x$as_lineno_2" &&
11819   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11820              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11821              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11822              CONFIG_SHELL=$as_dir/$as_base
11823              export CONFIG_SHELL
11824              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11825            fi;;
11826          esac
11827        done
11828 done
11829 ;;
11830   esac
11831
11832   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11833   # uniformly replaced by the line number.  The first 'sed' inserts a
11834   # line-number line before each line; the second 'sed' does the real
11835   # work.  The second script uses 'N' to pair each line-number line
11836   # with the numbered line, and appends trailing '-' during
11837   # substitution so that $LINENO is not a special case at line end.
11838   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11839   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11840   sed '=' <$as_myself |
11841     sed '
11842       N
11843       s,$,-,
11844       : loop
11845       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11846       t loop
11847       s,-$,,
11848       s,^['$as_cr_digits']*\n,,
11849     ' >$as_me.lineno &&
11850   chmod +x $as_me.lineno ||
11851     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11852 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11853    { (exit 1); exit 1; }; }
11854
11855   # Don't try to exec as it changes $[0], causing all sort of problems
11856   # (the dirname of $[0] is not the place where we might find the
11857   # original and so on.  Autoconf is especially sensible to this).
11858   . ./$as_me.lineno
11859   # Exit status is that of the last command.
11860   exit
11861 }
11862
11863
11864 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11865   *c*,-n*) ECHO_N= ECHO_C='
11866 ' ECHO_T='      ' ;;
11867   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11868   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11869 esac
11870
11871 if expr a : '\(a\)' >/dev/null 2>&1; then
11872   as_expr=expr
11873 else
11874   as_expr=false
11875 fi
11876
11877 rm -f conf$$ conf$$.exe conf$$.file
11878 echo >conf$$.file
11879 if ln -s conf$$.file conf$$ 2>/dev/null; then
11880   # We could just check for DJGPP; but this test a) works b) is more generic
11881   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11882   if test -f conf$$.exe; then
11883     # Don't use ln at all; we don't have any links
11884     as_ln_s='cp -p'
11885   else
11886     as_ln_s='ln -s'
11887   fi
11888 elif ln conf$$.file conf$$ 2>/dev/null; then
11889   as_ln_s=ln
11890 else
11891   as_ln_s='cp -p'
11892 fi
11893 rm -f conf$$ conf$$.exe conf$$.file
11894
11895 if mkdir -p . 2>/dev/null; then
11896   as_mkdir_p=:
11897 else
11898   test -d ./-p && rmdir ./-p
11899   as_mkdir_p=false
11900 fi
11901
11902 as_executable_p="test -f"
11903
11904 # Sed expression to map a string onto a valid CPP name.
11905 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11906
11907 # Sed expression to map a string onto a valid variable name.
11908 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11909
11910
11911 # IFS
11912 # We need space, tab and new line, in precisely that order.
11913 as_nl='
11914 '
11915 IFS="   $as_nl"
11916
11917 # CDPATH.
11918 $as_unset CDPATH
11919
11920 exec 6>&1
11921
11922 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11923 # report actual input values of CONFIG_FILES etc. instead of their
11924 # values after options handling.  Logging --version etc. is OK.
11925 exec 5>>config.log
11926 {
11927   echo
11928   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11929 ## Running $as_me. ##
11930 _ASBOX
11931 } >&5
11932 cat >&5 <<_CSEOF
11933
11934 This file was extended by $as_me, which was
11935 generated by GNU Autoconf 2.59.  Invocation command line was
11936
11937   CONFIG_FILES    = $CONFIG_FILES
11938   CONFIG_HEADERS  = $CONFIG_HEADERS
11939   CONFIG_LINKS    = $CONFIG_LINKS
11940   CONFIG_COMMANDS = $CONFIG_COMMANDS
11941   $ $0 $@
11942
11943 _CSEOF
11944 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11945 echo >&5
11946 _ACEOF
11947
11948 # Files that config.status was made for.
11949 if test -n "$ac_config_files"; then
11950   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11951 fi
11952
11953 if test -n "$ac_config_headers"; then
11954   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11955 fi
11956
11957 if test -n "$ac_config_links"; then
11958   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11959 fi
11960
11961 if test -n "$ac_config_commands"; then
11962   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11963 fi
11964
11965 cat >>$CONFIG_STATUS <<\_ACEOF
11966
11967 ac_cs_usage="\
11968 \`$as_me' instantiates files from templates according to the
11969 current configuration.
11970
11971 Usage: $0 [OPTIONS] [FILE]...
11972
11973   -h, --help       print this help, then exit
11974   -V, --version    print version number, then exit
11975   -q, --quiet      do not print progress messages
11976   -d, --debug      don't remove temporary files
11977       --recheck    update $as_me by reconfiguring in the same conditions
11978   --file=FILE[:TEMPLATE]
11979                    instantiate the configuration file FILE
11980   --header=FILE[:TEMPLATE]
11981                    instantiate the configuration header FILE
11982
11983 Configuration files:
11984 $config_files
11985
11986 Configuration headers:
11987 $config_headers
11988
11989 Configuration commands:
11990 $config_commands
11991
11992 Report bugs to <bug-autoconf@gnu.org>."
11993 _ACEOF
11994
11995 cat >>$CONFIG_STATUS <<_ACEOF
11996 ac_cs_version="\\
11997 config.status
11998 configured by $0, generated by GNU Autoconf 2.59,
11999   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12000
12001 Copyright (C) 2003 Free Software Foundation, Inc.
12002 This config.status script is free software; the Free Software Foundation
12003 gives unlimited permission to copy, distribute and modify it."
12004 srcdir=$srcdir
12005 INSTALL="$INSTALL"
12006 _ACEOF
12007
12008 cat >>$CONFIG_STATUS <<\_ACEOF
12009 # If no file are specified by the user, then we need to provide default
12010 # value.  By we need to know if files were specified by the user.
12011 ac_need_defaults=:
12012 while test $# != 0
12013 do
12014   case $1 in
12015   --*=*)
12016     ac_option=`expr "x$1" : 'x\([^=]*\)='`
12017     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12018     ac_shift=:
12019     ;;
12020   -*)
12021     ac_option=$1
12022     ac_optarg=$2
12023     ac_shift=shift
12024     ;;
12025   *) # This is not an option, so the user has probably given explicit
12026      # arguments.
12027      ac_option=$1
12028      ac_need_defaults=false;;
12029   esac
12030
12031   case $ac_option in
12032   # Handling of the options.
12033 _ACEOF
12034 cat >>$CONFIG_STATUS <<\_ACEOF
12035   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12036     ac_cs_recheck=: ;;
12037   --version | --vers* | -V )
12038     echo "$ac_cs_version"; exit 0 ;;
12039   --he | --h)
12040     # Conflict between --help and --header
12041     { { echo "$as_me:$LINENO: error: ambiguous option: $1
12042 Try \`$0 --help' for more information." >&5
12043 echo "$as_me: error: ambiguous option: $1
12044 Try \`$0 --help' for more information." >&2;}
12045    { (exit 1); exit 1; }; };;
12046   --help | --hel | -h )
12047     echo "$ac_cs_usage"; exit 0 ;;
12048   --debug | --d* | -d )
12049     debug=: ;;
12050   --file | --fil | --fi | --f )
12051     $ac_shift
12052     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12053     ac_need_defaults=false;;
12054   --header | --heade | --head | --hea )
12055     $ac_shift
12056     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12057     ac_need_defaults=false;;
12058   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12059   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12060     ac_cs_silent=: ;;
12061
12062   # This is an error.
12063   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
12064 Try \`$0 --help' for more information." >&5
12065 echo "$as_me: error: unrecognized option: $1
12066 Try \`$0 --help' for more information." >&2;}
12067    { (exit 1); exit 1; }; } ;;
12068
12069   *) ac_config_targets="$ac_config_targets $1" ;;
12070
12071   esac
12072   shift
12073 done
12074
12075 ac_configure_extra_args=
12076
12077 if $ac_cs_silent; then
12078   exec 6>/dev/null
12079   ac_configure_extra_args="$ac_configure_extra_args --silent"
12080 fi
12081
12082 _ACEOF
12083 cat >>$CONFIG_STATUS <<_ACEOF
12084 if \$ac_cs_recheck; then
12085   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12086   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12087 fi
12088
12089 _ACEOF
12090
12091 cat >>$CONFIG_STATUS <<_ACEOF
12092 #
12093 # INIT-COMMANDS section.
12094 #
12095
12096 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12097
12098
12099 # The HP-UX ksh and POSIX shell print the target directory to stdout
12100 # if CDPATH is set.
12101 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12102
12103 sed_quote_subst='$sed_quote_subst'
12104 double_quote_subst='$double_quote_subst'
12105 delay_variable_subst='$delay_variable_subst'
12106 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12107 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12108 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12109 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12110 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12111 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12112 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12113 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12114 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12115 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12116 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12117 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12118 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12119 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12120 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12121 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12122 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12123 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12124 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12125 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12126 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12127 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12128 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12129 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12130 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12131 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12132 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12133 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12134 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12135 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12136 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12137 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12138 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12139 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12140 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12141 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12142 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12143 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12144 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12145 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12146 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12147 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12148 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12149 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"`'
12150 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12151 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12152 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12153 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12154 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12155 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12156 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12157 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12158 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12159 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12160 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12161 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12162 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12163 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12164 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12165 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12166 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12167 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12168 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12169 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12170 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12171 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12172 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12173 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12174 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12175 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12176 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12177 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12178 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12179 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12180 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12181 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12182 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12183 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12184 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12185 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12186 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12187 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12188 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12189 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12190 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12191 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12192 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12193 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12194 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12195 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12196 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12197 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12198 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12199 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12200 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12201 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12202 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12203 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12204 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12205 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12206 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12207 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12208 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12209 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12210 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12211 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12212 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12213 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12214 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12215 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12216 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12217
12218 LTCC='$LTCC'
12219 LTCFLAGS='$LTCFLAGS'
12220 compiler='$compiler_DEFAULT'
12221
12222 # Quote evaled strings.
12223 for var in SED \
12224 GREP \
12225 EGREP \
12226 FGREP \
12227 LD \
12228 NM \
12229 LN_S \
12230 lt_SP2NL \
12231 lt_NL2SP \
12232 reload_flag \
12233 deplibs_check_method \
12234 file_magic_cmd \
12235 AR \
12236 AR_FLAGS \
12237 STRIP \
12238 RANLIB \
12239 CC \
12240 CFLAGS \
12241 compiler \
12242 lt_cv_sys_global_symbol_pipe \
12243 lt_cv_sys_global_symbol_to_cdecl \
12244 lt_cv_sys_global_symbol_to_c_name_address \
12245 SHELL \
12246 ECHO \
12247 lt_prog_compiler_no_builtin_flag \
12248 lt_prog_compiler_wl \
12249 lt_prog_compiler_pic \
12250 lt_prog_compiler_static \
12251 lt_cv_prog_compiler_c_o \
12252 need_locks \
12253 shrext_cmds \
12254 export_dynamic_flag_spec \
12255 whole_archive_flag_spec \
12256 compiler_needs_object \
12257 with_gnu_ld \
12258 allow_undefined_flag \
12259 no_undefined_flag \
12260 hardcode_libdir_flag_spec \
12261 hardcode_libdir_flag_spec_ld \
12262 hardcode_libdir_separator \
12263 fix_srcfile_path \
12264 exclude_expsyms \
12265 include_expsyms \
12266 file_list_spec \
12267 variables_saved_for_relink \
12268 libname_spec \
12269 library_names_spec \
12270 soname_spec \
12271 finish_eval \
12272 old_striplib \
12273 striplib; do
12274     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12275     *[\\\\\\\`\\"\\\$]*)
12276       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12277       ;;
12278     *)
12279       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12280       ;;
12281     esac
12282 done
12283
12284 # Double-quote double-evaled strings.
12285 for var in reload_cmds \
12286 old_postinstall_cmds \
12287 old_postuninstall_cmds \
12288 old_archive_cmds \
12289 extract_expsyms_cmds \
12290 old_archive_from_new_cmds \
12291 old_archive_from_expsyms_cmds \
12292 archive_cmds \
12293 archive_expsym_cmds \
12294 module_cmds \
12295 module_expsym_cmds \
12296 export_symbols_cmds \
12297 prelink_cmds \
12298 postinstall_cmds \
12299 postuninstall_cmds \
12300 finish_cmds \
12301 sys_lib_search_path_spec \
12302 sys_lib_dlsearch_path_spec; do
12303     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12304     *[\\\\\\\`\\"\\\$]*)
12305       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12306       ;;
12307     *)
12308       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12309       ;;
12310     esac
12311 done
12312
12313 # Fix-up fallback echo if it was mangled by the above quoting rules.
12314 case \$lt_ECHO in
12315 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12316   ;;
12317 esac
12318
12319 ac_aux_dir='$ac_aux_dir'
12320 xsi_shell='$xsi_shell'
12321 lt_shell_append='$lt_shell_append'
12322
12323 # See if we are running on zsh, and set the options which allow our
12324 # commands through without removal of \ escapes INIT.
12325 if test -n "\${ZSH_VERSION+set}" ; then
12326    setopt NO_GLOB_SUBST
12327 fi
12328
12329
12330     PACKAGE='$PACKAGE'
12331     VERSION='$VERSION'
12332     TIMESTAMP='$TIMESTAMP'
12333     RM='$RM'
12334     ofile='$ofile'
12335
12336
12337
12338 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12339     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
12340     # from automake.
12341     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12342     # Capture the value of LINGUAS because we need it to compute CATALOGS.
12343     LINGUAS="${LINGUAS-%UNSET%}"
12344
12345
12346 _ACEOF
12347
12348
12349
12350 cat >>$CONFIG_STATUS <<\_ACEOF
12351 for ac_config_target in $ac_config_targets
12352 do
12353   case "$ac_config_target" in
12354   # Handling of arguments.
12355   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12356   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
12357   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12358   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12359   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12360   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12361   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12362 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12363    { (exit 1); exit 1; }; };;
12364   esac
12365 done
12366
12367 # If the user did not use the arguments to specify the items to instantiate,
12368 # then the envvar interface is used.  Set only those that are not.
12369 # We use the long form for the default assignment because of an extremely
12370 # bizarre bug on SunOS 4.1.3.
12371 if $ac_need_defaults; then
12372   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12373   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12374   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12375 fi
12376
12377 # Have a temporary directory for convenience.  Make it in the build tree
12378 # simply because there is no reason to put it here, and in addition,
12379 # creating and moving files from /tmp can sometimes cause problems.
12380 # Create a temporary directory, and hook for its removal unless debugging.
12381 $debug ||
12382 {
12383   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12384   trap '{ (exit 1); exit 1; }' 1 2 13 15
12385 }
12386
12387 # Create a (secure) tmp directory for tmp files.
12388
12389 {
12390   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12391   test -n "$tmp" && test -d "$tmp"
12392 }  ||
12393 {
12394   tmp=./confstat$$-$RANDOM
12395   (umask 077 && mkdir $tmp)
12396 } ||
12397 {
12398    echo "$me: cannot create a temporary directory in ." >&2
12399    { (exit 1); exit 1; }
12400 }
12401
12402 _ACEOF
12403
12404 cat >>$CONFIG_STATUS <<_ACEOF
12405
12406 #
12407 # CONFIG_FILES section.
12408 #
12409
12410 # No need to generate the scripts if there are no CONFIG_FILES.
12411 # This happens for instance when ./config.status config.h
12412 if test -n "\$CONFIG_FILES"; then
12413   # Protect against being on the right side of a sed subst in config.status.
12414   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12415    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12416 s,@SHELL@,$SHELL,;t t
12417 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12418 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12419 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12420 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12421 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12422 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12423 s,@exec_prefix@,$exec_prefix,;t t
12424 s,@prefix@,$prefix,;t t
12425 s,@program_transform_name@,$program_transform_name,;t t
12426 s,@bindir@,$bindir,;t t
12427 s,@sbindir@,$sbindir,;t t
12428 s,@libexecdir@,$libexecdir,;t t
12429 s,@datadir@,$datadir,;t t
12430 s,@sysconfdir@,$sysconfdir,;t t
12431 s,@sharedstatedir@,$sharedstatedir,;t t
12432 s,@localstatedir@,$localstatedir,;t t
12433 s,@libdir@,$libdir,;t t
12434 s,@includedir@,$includedir,;t t
12435 s,@oldincludedir@,$oldincludedir,;t t
12436 s,@infodir@,$infodir,;t t
12437 s,@mandir@,$mandir,;t t
12438 s,@build_alias@,$build_alias,;t t
12439 s,@host_alias@,$host_alias,;t t
12440 s,@target_alias@,$target_alias,;t t
12441 s,@DEFS@,$DEFS,;t t
12442 s,@ECHO_C@,$ECHO_C,;t t
12443 s,@ECHO_N@,$ECHO_N,;t t
12444 s,@ECHO_T@,$ECHO_T,;t t
12445 s,@LIBS@,$LIBS,;t t
12446 s,@build@,$build,;t t
12447 s,@build_cpu@,$build_cpu,;t t
12448 s,@build_vendor@,$build_vendor,;t t
12449 s,@build_os@,$build_os,;t t
12450 s,@host@,$host,;t t
12451 s,@host_cpu@,$host_cpu,;t t
12452 s,@host_vendor@,$host_vendor,;t t
12453 s,@host_os@,$host_os,;t t
12454 s,@target@,$target,;t t
12455 s,@target_cpu@,$target_cpu,;t t
12456 s,@target_vendor@,$target_vendor,;t t
12457 s,@target_os@,$target_os,;t t
12458 s,@CC@,$CC,;t t
12459 s,@CFLAGS@,$CFLAGS,;t t
12460 s,@LDFLAGS@,$LDFLAGS,;t t
12461 s,@CPPFLAGS@,$CPPFLAGS,;t t
12462 s,@ac_ct_CC@,$ac_ct_CC,;t t
12463 s,@EXEEXT@,$EXEEXT,;t t
12464 s,@OBJEXT@,$OBJEXT,;t t
12465 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12466 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12467 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12468 s,@CYGPATH_W@,$CYGPATH_W,;t t
12469 s,@PACKAGE@,$PACKAGE,;t t
12470 s,@VERSION@,$VERSION,;t t
12471 s,@ACLOCAL@,$ACLOCAL,;t t
12472 s,@AUTOCONF@,$AUTOCONF,;t t
12473 s,@AUTOMAKE@,$AUTOMAKE,;t t
12474 s,@AUTOHEADER@,$AUTOHEADER,;t t
12475 s,@MAKEINFO@,$MAKEINFO,;t t
12476 s,@install_sh@,$install_sh,;t t
12477 s,@STRIP@,$STRIP,;t t
12478 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12479 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12480 s,@mkdir_p@,$mkdir_p,;t t
12481 s,@AWK@,$AWK,;t t
12482 s,@SET_MAKE@,$SET_MAKE,;t t
12483 s,@am__leading_dot@,$am__leading_dot,;t t
12484 s,@AMTAR@,$AMTAR,;t t
12485 s,@am__tar@,$am__tar,;t t
12486 s,@am__untar@,$am__untar,;t t
12487 s,@DEPDIR@,$DEPDIR,;t t
12488 s,@am__include@,$am__include,;t t
12489 s,@am__quote@,$am__quote,;t t
12490 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12491 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12492 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12493 s,@CCDEPMODE@,$CCDEPMODE,;t t
12494 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
12495 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
12496 s,@AR@,$AR,;t t
12497 s,@ac_ct_AR@,$ac_ct_AR,;t t
12498 s,@RANLIB@,$RANLIB,;t t
12499 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12500 s,@LIBTOOL@,$LIBTOOL,;t t
12501 s,@SED@,$SED,;t t
12502 s,@EGREP@,$EGREP,;t t
12503 s,@FGREP@,$FGREP,;t t
12504 s,@GREP@,$GREP,;t t
12505 s,@LD@,$LD,;t t
12506 s,@DUMPBIN@,$DUMPBIN,;t t
12507 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
12508 s,@NM@,$NM,;t t
12509 s,@LN_S@,$LN_S,;t t
12510 s,@lt_ECHO@,$lt_ECHO,;t t
12511 s,@CPP@,$CPP,;t t
12512 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
12513 s,@NO_WERROR@,$NO_WERROR,;t t
12514 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
12515 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
12516 s,@MAINT@,$MAINT,;t t
12517 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
12518 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
12519 s,@host_noncanonical@,$host_noncanonical,;t t
12520 s,@target_noncanonical@,$target_noncanonical,;t t
12521 s,@bfdlibdir@,$bfdlibdir,;t t
12522 s,@bfdincludedir@,$bfdincludedir,;t t
12523 s,@USE_NLS@,$USE_NLS,;t t
12524 s,@LIBINTL@,$LIBINTL,;t t
12525 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
12526 s,@INCINTL@,$INCINTL,;t t
12527 s,@XGETTEXT@,$XGETTEXT,;t t
12528 s,@GMSGFMT@,$GMSGFMT,;t t
12529 s,@POSUB@,$POSUB,;t t
12530 s,@CATALOGS@,$CATALOGS,;t t
12531 s,@DATADIRNAME@,$DATADIRNAME,;t t
12532 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12533 s,@GENCAT@,$GENCAT,;t t
12534 s,@CATOBJEXT@,$CATOBJEXT,;t t
12535 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12536 s,@MSGFMT@,$MSGFMT,;t t
12537 s,@MSGMERGE@,$MSGMERGE,;t t
12538 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
12539 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
12540 s,@HDEFINES@,$HDEFINES,;t t
12541 s,@CGEN_MAINT_TRUE@,$CGEN_MAINT_TRUE,;t t
12542 s,@CGEN_MAINT_FALSE@,$CGEN_MAINT_FALSE,;t t
12543 s,@cgendir@,$cgendir,;t t
12544 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
12545 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
12546 s,@archdefs@,$archdefs,;t t
12547 s,@BFD_MACHINES@,$BFD_MACHINES,;t t
12548 s,@LIBOBJS@,$LIBOBJS,;t t
12549 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12550 CEOF
12551
12552 _ACEOF
12553
12554   cat >>$CONFIG_STATUS <<\_ACEOF
12555   # Split the substitutions into bite-sized pieces for seds with
12556   # small command number limits, like on Digital OSF/1 and HP-UX.
12557   ac_max_sed_lines=48
12558   ac_sed_frag=1 # Number of current file.
12559   ac_beg=1 # First line for current file.
12560   ac_end=$ac_max_sed_lines # Line after last line for current file.
12561   ac_more_lines=:
12562   ac_sed_cmds=
12563   while $ac_more_lines; do
12564     if test $ac_beg -gt 1; then
12565       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12566     else
12567       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12568     fi
12569     if test ! -s $tmp/subs.frag; then
12570       ac_more_lines=false
12571     else
12572       # The purpose of the label and of the branching condition is to
12573       # speed up the sed processing (if there are no `@' at all, there
12574       # is no need to browse any of the substitutions).
12575       # These are the two extra sed commands mentioned above.
12576       (echo ':t
12577   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12578       if test -z "$ac_sed_cmds"; then
12579         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12580       else
12581         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12582       fi
12583       ac_sed_frag=`expr $ac_sed_frag + 1`
12584       ac_beg=$ac_end
12585       ac_end=`expr $ac_end + $ac_max_sed_lines`
12586     fi
12587   done
12588   if test -z "$ac_sed_cmds"; then
12589     ac_sed_cmds=cat
12590   fi
12591 fi # test -n "$CONFIG_FILES"
12592
12593 _ACEOF
12594 cat >>$CONFIG_STATUS <<\_ACEOF
12595 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12596   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12597   case $ac_file in
12598   - | *:- | *:-:* ) # input from stdin
12599         cat >$tmp/stdin
12600         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12601         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12602   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12603         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12604   * )   ac_file_in=$ac_file.in ;;
12605   esac
12606
12607   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12608   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12610          X"$ac_file" : 'X\(//\)[^/]' \| \
12611          X"$ac_file" : 'X\(//\)$' \| \
12612          X"$ac_file" : 'X\(/\)' \| \
12613          .     : '\(.\)' 2>/dev/null ||
12614 echo X"$ac_file" |
12615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12616           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12617           /^X\(\/\/\)$/{ s//\1/; q; }
12618           /^X\(\/\).*/{ s//\1/; q; }
12619           s/.*/./; q'`
12620   { if $as_mkdir_p; then
12621     mkdir -p "$ac_dir"
12622   else
12623     as_dir="$ac_dir"
12624     as_dirs=
12625     while test ! -d "$as_dir"; do
12626       as_dirs="$as_dir $as_dirs"
12627       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12629          X"$as_dir" : 'X\(//\)[^/]' \| \
12630          X"$as_dir" : 'X\(//\)$' \| \
12631          X"$as_dir" : 'X\(/\)' \| \
12632          .     : '\(.\)' 2>/dev/null ||
12633 echo X"$as_dir" |
12634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12635           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12636           /^X\(\/\/\)$/{ s//\1/; q; }
12637           /^X\(\/\).*/{ s//\1/; q; }
12638           s/.*/./; q'`
12639     done
12640     test ! -n "$as_dirs" || mkdir $as_dirs
12641   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12642 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12643    { (exit 1); exit 1; }; }; }
12644
12645   ac_builddir=.
12646
12647 if test "$ac_dir" != .; then
12648   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12649   # A "../" for each directory in $ac_dir_suffix.
12650   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12651 else
12652   ac_dir_suffix= ac_top_builddir=
12653 fi
12654
12655 case $srcdir in
12656   .)  # No --srcdir option.  We are building in place.
12657     ac_srcdir=.
12658     if test -z "$ac_top_builddir"; then
12659        ac_top_srcdir=.
12660     else
12661        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12662     fi ;;
12663   [\\/]* | ?:[\\/]* )  # Absolute path.
12664     ac_srcdir=$srcdir$ac_dir_suffix;
12665     ac_top_srcdir=$srcdir ;;
12666   *) # Relative path.
12667     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12668     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12669 esac
12670
12671 # Do not use `cd foo && pwd` to compute absolute paths, because
12672 # the directories may not exist.
12673 case `pwd` in
12674 .) ac_abs_builddir="$ac_dir";;
12675 *)
12676   case "$ac_dir" in
12677   .) ac_abs_builddir=`pwd`;;
12678   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12679   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12680   esac;;
12681 esac
12682 case $ac_abs_builddir in
12683 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12684 *)
12685   case ${ac_top_builddir}. in
12686   .) ac_abs_top_builddir=$ac_abs_builddir;;
12687   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12688   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12689   esac;;
12690 esac
12691 case $ac_abs_builddir in
12692 .) ac_abs_srcdir=$ac_srcdir;;
12693 *)
12694   case $ac_srcdir in
12695   .) ac_abs_srcdir=$ac_abs_builddir;;
12696   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12697   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12698   esac;;
12699 esac
12700 case $ac_abs_builddir in
12701 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12702 *)
12703   case $ac_top_srcdir in
12704   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12705   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12706   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12707   esac;;
12708 esac
12709
12710
12711   case $INSTALL in
12712   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12713   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12714   esac
12715
12716   if test x"$ac_file" != x-; then
12717     { echo "$as_me:$LINENO: creating $ac_file" >&5
12718 echo "$as_me: creating $ac_file" >&6;}
12719     rm -f "$ac_file"
12720   fi
12721   # Let's still pretend it is `configure' which instantiates (i.e., don't
12722   # use $as_me), people would be surprised to read:
12723   #    /* config.h.  Generated by config.status.  */
12724   if test x"$ac_file" = x-; then
12725     configure_input=
12726   else
12727     configure_input="$ac_file.  "
12728   fi
12729   configure_input=$configure_input"Generated from `echo $ac_file_in |
12730                                      sed 's,.*/,,'` by configure."
12731
12732   # First look for the input files in the build tree, otherwise in the
12733   # src tree.
12734   ac_file_inputs=`IFS=:
12735     for f in $ac_file_in; do
12736       case $f in
12737       -) echo $tmp/stdin ;;
12738       [\\/$]*)
12739          # Absolute (can't be DOS-style, as IFS=:)
12740          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12741 echo "$as_me: error: cannot find input file: $f" >&2;}
12742    { (exit 1); exit 1; }; }
12743          echo "$f";;
12744       *) # Relative
12745          if test -f "$f"; then
12746            # Build tree
12747            echo "$f"
12748          elif test -f "$srcdir/$f"; then
12749            # Source tree
12750            echo "$srcdir/$f"
12751          else
12752            # /dev/null tree
12753            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12754 echo "$as_me: error: cannot find input file: $f" >&2;}
12755    { (exit 1); exit 1; }; }
12756          fi;;
12757       esac
12758     done` || { (exit 1); exit 1; }
12759 _ACEOF
12760 cat >>$CONFIG_STATUS <<_ACEOF
12761   sed "$ac_vpsub
12762 $extrasub
12763 _ACEOF
12764 cat >>$CONFIG_STATUS <<\_ACEOF
12765 :t
12766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12767 s,@configure_input@,$configure_input,;t t
12768 s,@srcdir@,$ac_srcdir,;t t
12769 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12770 s,@top_srcdir@,$ac_top_srcdir,;t t
12771 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12772 s,@builddir@,$ac_builddir,;t t
12773 s,@abs_builddir@,$ac_abs_builddir,;t t
12774 s,@top_builddir@,$ac_top_builddir,;t t
12775 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12776 s,@INSTALL@,$ac_INSTALL,;t t
12777 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12778   rm -f $tmp/stdin
12779   if test x"$ac_file" != x-; then
12780     mv $tmp/out $ac_file
12781   else
12782     cat $tmp/out
12783     rm -f $tmp/out
12784   fi
12785
12786 done
12787 _ACEOF
12788 cat >>$CONFIG_STATUS <<\_ACEOF
12789
12790 #
12791 # CONFIG_HEADER section.
12792 #
12793
12794 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12795 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12796 #
12797 # ac_d sets the value in "#define NAME VALUE" lines.
12798 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
12799 ac_dB='[         ].*$,\1#\2'
12800 ac_dC=' '
12801 ac_dD=',;t'
12802 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12803 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
12804 ac_uB='$,\1#\2define\3'
12805 ac_uC=' '
12806 ac_uD=',;t'
12807
12808 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12809   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12810   case $ac_file in
12811   - | *:- | *:-:* ) # input from stdin
12812         cat >$tmp/stdin
12813         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12814         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12815   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12816         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12817   * )   ac_file_in=$ac_file.in ;;
12818   esac
12819
12820   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12821 echo "$as_me: creating $ac_file" >&6;}
12822
12823   # First look for the input files in the build tree, otherwise in the
12824   # src tree.
12825   ac_file_inputs=`IFS=:
12826     for f in $ac_file_in; do
12827       case $f in
12828       -) echo $tmp/stdin ;;
12829       [\\/$]*)
12830          # Absolute (can't be DOS-style, as IFS=:)
12831          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12832 echo "$as_me: error: cannot find input file: $f" >&2;}
12833    { (exit 1); exit 1; }; }
12834          # Do quote $f, to prevent DOS paths from being IFS'd.
12835          echo "$f";;
12836       *) # Relative
12837          if test -f "$f"; then
12838            # Build tree
12839            echo "$f"
12840          elif test -f "$srcdir/$f"; then
12841            # Source tree
12842            echo "$srcdir/$f"
12843          else
12844            # /dev/null tree
12845            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12846 echo "$as_me: error: cannot find input file: $f" >&2;}
12847    { (exit 1); exit 1; }; }
12848          fi;;
12849       esac
12850     done` || { (exit 1); exit 1; }
12851   # Remove the trailing spaces.
12852   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
12853
12854 _ACEOF
12855
12856 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12857 # `conftest.undefs', that substitutes the proper values into
12858 # config.h.in to produce config.h.  The first handles `#define'
12859 # templates, and the second `#undef' templates.
12860 # And first: Protect against being on the right side of a sed subst in
12861 # config.status.  Protect against being in an unquoted here document
12862 # in config.status.
12863 rm -f conftest.defines conftest.undefs
12864 # Using a here document instead of a string reduces the quoting nightmare.
12865 # Putting comments in sed scripts is not portable.
12866 #
12867 # `end' is used to avoid that the second main sed command (meant for
12868 # 0-ary CPP macros) applies to n-ary macro definitions.
12869 # See the Autoconf documentation for `clear'.
12870 cat >confdef2sed.sed <<\_ACEOF
12871 s/[\\&,]/\\&/g
12872 s,[\\$`],\\&,g
12873 t clear
12874 : clear
12875 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12876 t end
12877 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12878 : end
12879 _ACEOF
12880 # If some macros were called several times there might be several times
12881 # the same #defines, which is useless.  Nevertheless, we may not want to
12882 # sort them, since we want the *last* AC-DEFINE to be honored.
12883 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12884 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12885 rm -f confdef2sed.sed
12886
12887 # This sed command replaces #undef with comments.  This is necessary, for
12888 # example, in the case of _POSIX_SOURCE, which is predefined and required
12889 # on some systems where configure will not decide to define it.
12890 cat >>conftest.undefs <<\_ACEOF
12891 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12892 _ACEOF
12893
12894 # Break up conftest.defines because some shells have a limit on the size
12895 # of here documents, and old seds have small limits too (100 cmds).
12896 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12897 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12898 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12899 echo '  :' >>$CONFIG_STATUS
12900 rm -f conftest.tail
12901 while grep . conftest.defines >/dev/null
12902 do
12903   # Write a limited-size here document to $tmp/defines.sed.
12904   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12905   # Speed up: don't consider the non `#define' lines.
12906   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
12907   # Work around the forget-to-reset-the-flag bug.
12908   echo 't clr' >>$CONFIG_STATUS
12909   echo ': clr' >>$CONFIG_STATUS
12910   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12911   echo 'CEOF
12912   sed -f $tmp/defines.sed $tmp/in >$tmp/out
12913   rm -f $tmp/in
12914   mv $tmp/out $tmp/in
12915 ' >>$CONFIG_STATUS
12916   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12917   rm -f conftest.defines
12918   mv conftest.tail conftest.defines
12919 done
12920 rm -f conftest.defines
12921 echo '  fi # grep' >>$CONFIG_STATUS
12922 echo >>$CONFIG_STATUS
12923
12924 # Break up conftest.undefs because some shells have a limit on the size
12925 # of here documents, and old seds have small limits too (100 cmds).
12926 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12927 rm -f conftest.tail
12928 while grep . conftest.undefs >/dev/null
12929 do
12930   # Write a limited-size here document to $tmp/undefs.sed.
12931   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12932   # Speed up: don't consider the non `#undef'
12933   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
12934   # Work around the forget-to-reset-the-flag bug.
12935   echo 't clr' >>$CONFIG_STATUS
12936   echo ': clr' >>$CONFIG_STATUS
12937   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12938   echo 'CEOF
12939   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12940   rm -f $tmp/in
12941   mv $tmp/out $tmp/in
12942 ' >>$CONFIG_STATUS
12943   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12944   rm -f conftest.undefs
12945   mv conftest.tail conftest.undefs
12946 done
12947 rm -f conftest.undefs
12948
12949 cat >>$CONFIG_STATUS <<\_ACEOF
12950   # Let's still pretend it is `configure' which instantiates (i.e., don't
12951   # use $as_me), people would be surprised to read:
12952   #    /* config.h.  Generated by config.status.  */
12953   if test x"$ac_file" = x-; then
12954     echo "/* Generated by configure.  */" >$tmp/config.h
12955   else
12956     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12957   fi
12958   cat $tmp/in >>$tmp/config.h
12959   rm -f $tmp/in
12960   if test x"$ac_file" != x-; then
12961     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12962       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12963 echo "$as_me: $ac_file is unchanged" >&6;}
12964     else
12965       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12967          X"$ac_file" : 'X\(//\)[^/]' \| \
12968          X"$ac_file" : 'X\(//\)$' \| \
12969          X"$ac_file" : 'X\(/\)' \| \
12970          .     : '\(.\)' 2>/dev/null ||
12971 echo X"$ac_file" |
12972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12973           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12974           /^X\(\/\/\)$/{ s//\1/; q; }
12975           /^X\(\/\).*/{ s//\1/; q; }
12976           s/.*/./; q'`
12977       { if $as_mkdir_p; then
12978     mkdir -p "$ac_dir"
12979   else
12980     as_dir="$ac_dir"
12981     as_dirs=
12982     while test ! -d "$as_dir"; do
12983       as_dirs="$as_dir $as_dirs"
12984       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12986          X"$as_dir" : 'X\(//\)[^/]' \| \
12987          X"$as_dir" : 'X\(//\)$' \| \
12988          X"$as_dir" : 'X\(/\)' \| \
12989          .     : '\(.\)' 2>/dev/null ||
12990 echo X"$as_dir" |
12991     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12992           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12993           /^X\(\/\/\)$/{ s//\1/; q; }
12994           /^X\(\/\).*/{ s//\1/; q; }
12995           s/.*/./; q'`
12996     done
12997     test ! -n "$as_dirs" || mkdir $as_dirs
12998   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12999 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13000    { (exit 1); exit 1; }; }; }
13001
13002       rm -f $ac_file
13003       mv $tmp/config.h $ac_file
13004     fi
13005   else
13006     cat $tmp/config.h
13007     rm -f $tmp/config.h
13008   fi
13009 # Compute $ac_file's index in $config_headers.
13010 _am_stamp_count=1
13011 for _am_header in $config_headers :; do
13012   case $_am_header in
13013     $ac_file | $ac_file:* )
13014       break ;;
13015     * )
13016       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13017   esac
13018 done
13019 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13020 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13021          X$ac_file : 'X\(//\)[^/]' \| \
13022          X$ac_file : 'X\(//\)$' \| \
13023          X$ac_file : 'X\(/\)' \| \
13024          .     : '\(.\)' 2>/dev/null ||
13025 echo X$ac_file |
13026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13027           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13028           /^X\(\/\/\)$/{ s//\1/; q; }
13029           /^X\(\/\).*/{ s//\1/; q; }
13030           s/.*/./; q'`/stamp-h$_am_stamp_count
13031 done
13032 _ACEOF
13033 cat >>$CONFIG_STATUS <<\_ACEOF
13034
13035 #
13036 # CONFIG_COMMANDS section.
13037 #
13038 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13039   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13040   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13041   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13042 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13043          X"$ac_dest" : 'X\(//\)[^/]' \| \
13044          X"$ac_dest" : 'X\(//\)$' \| \
13045          X"$ac_dest" : 'X\(/\)' \| \
13046          .     : '\(.\)' 2>/dev/null ||
13047 echo X"$ac_dest" |
13048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13049           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13050           /^X\(\/\/\)$/{ s//\1/; q; }
13051           /^X\(\/\).*/{ s//\1/; q; }
13052           s/.*/./; q'`
13053   { if $as_mkdir_p; then
13054     mkdir -p "$ac_dir"
13055   else
13056     as_dir="$ac_dir"
13057     as_dirs=
13058     while test ! -d "$as_dir"; do
13059       as_dirs="$as_dir $as_dirs"
13060       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13061 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13062          X"$as_dir" : 'X\(//\)[^/]' \| \
13063          X"$as_dir" : 'X\(//\)$' \| \
13064          X"$as_dir" : 'X\(/\)' \| \
13065          .     : '\(.\)' 2>/dev/null ||
13066 echo X"$as_dir" |
13067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13068           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13069           /^X\(\/\/\)$/{ s//\1/; q; }
13070           /^X\(\/\).*/{ s//\1/; q; }
13071           s/.*/./; q'`
13072     done
13073     test ! -n "$as_dirs" || mkdir $as_dirs
13074   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13075 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13076    { (exit 1); exit 1; }; }; }
13077
13078   ac_builddir=.
13079
13080 if test "$ac_dir" != .; then
13081   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13082   # A "../" for each directory in $ac_dir_suffix.
13083   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13084 else
13085   ac_dir_suffix= ac_top_builddir=
13086 fi
13087
13088 case $srcdir in
13089   .)  # No --srcdir option.  We are building in place.
13090     ac_srcdir=.
13091     if test -z "$ac_top_builddir"; then
13092        ac_top_srcdir=.
13093     else
13094        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13095     fi ;;
13096   [\\/]* | ?:[\\/]* )  # Absolute path.
13097     ac_srcdir=$srcdir$ac_dir_suffix;
13098     ac_top_srcdir=$srcdir ;;
13099   *) # Relative path.
13100     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13101     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13102 esac
13103
13104 # Do not use `cd foo && pwd` to compute absolute paths, because
13105 # the directories may not exist.
13106 case `pwd` in
13107 .) ac_abs_builddir="$ac_dir";;
13108 *)
13109   case "$ac_dir" in
13110   .) ac_abs_builddir=`pwd`;;
13111   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13112   *) ac_abs_builddir=`pwd`/"$ac_dir";;
13113   esac;;
13114 esac
13115 case $ac_abs_builddir in
13116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13117 *)
13118   case ${ac_top_builddir}. in
13119   .) ac_abs_top_builddir=$ac_abs_builddir;;
13120   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13121   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13122   esac;;
13123 esac
13124 case $ac_abs_builddir in
13125 .) ac_abs_srcdir=$ac_srcdir;;
13126 *)
13127   case $ac_srcdir in
13128   .) ac_abs_srcdir=$ac_abs_builddir;;
13129   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13130   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13131   esac;;
13132 esac
13133 case $ac_abs_builddir in
13134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13135 *)
13136   case $ac_top_srcdir in
13137   .) ac_abs_top_srcdir=$ac_abs_builddir;;
13138   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13139   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13140   esac;;
13141 esac
13142
13143
13144   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13145 echo "$as_me: executing $ac_dest commands" >&6;}
13146   case $ac_dest in
13147     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13148   # Strip MF so we end up with the name of the file.
13149   mf=`echo "$mf" | sed -e 's/:.*$//'`
13150   # Check whether this is an Automake generated Makefile or not.
13151   # We used to match only the files named `Makefile.in', but
13152   # some people rename them; so instead we look at the file content.
13153   # Grep'ing the first line is not enough: some people post-process
13154   # each Makefile.in and add a new line on top of each file to say so.
13155   # So let's grep whole file.
13156   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13157     dirpart=`(dirname "$mf") 2>/dev/null ||
13158 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13159          X"$mf" : 'X\(//\)[^/]' \| \
13160          X"$mf" : 'X\(//\)$' \| \
13161          X"$mf" : 'X\(/\)' \| \
13162          .     : '\(.\)' 2>/dev/null ||
13163 echo X"$mf" |
13164     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13165           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13166           /^X\(\/\/\)$/{ s//\1/; q; }
13167           /^X\(\/\).*/{ s//\1/; q; }
13168           s/.*/./; q'`
13169   else
13170     continue
13171   fi
13172   # Extract the definition of DEPDIR, am__include, and am__quote
13173   # from the Makefile without running `make'.
13174   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13175   test -z "$DEPDIR" && continue
13176   am__include=`sed -n 's/^am__include = //p' < "$mf"`
13177   test -z "am__include" && continue
13178   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13179   # When using ansi2knr, U may be empty or an underscore; expand it
13180   U=`sed -n 's/^U = //p' < "$mf"`
13181   # Find all dependency output files, they are included files with
13182   # $(DEPDIR) in their names.  We invoke sed twice because it is the
13183   # simplest approach to changing $(DEPDIR) to its actual value in the
13184   # expansion.
13185   for file in `sed -n "
13186     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13187        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13188     # Make sure the directory exists.
13189     test -f "$dirpart/$file" && continue
13190     fdir=`(dirname "$file") 2>/dev/null ||
13191 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13192          X"$file" : 'X\(//\)[^/]' \| \
13193          X"$file" : 'X\(//\)$' \| \
13194          X"$file" : 'X\(/\)' \| \
13195          .     : '\(.\)' 2>/dev/null ||
13196 echo X"$file" |
13197     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13198           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13199           /^X\(\/\/\)$/{ s//\1/; q; }
13200           /^X\(\/\).*/{ s//\1/; q; }
13201           s/.*/./; q'`
13202     { if $as_mkdir_p; then
13203     mkdir -p $dirpart/$fdir
13204   else
13205     as_dir=$dirpart/$fdir
13206     as_dirs=
13207     while test ! -d "$as_dir"; do
13208       as_dirs="$as_dir $as_dirs"
13209       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13211          X"$as_dir" : 'X\(//\)[^/]' \| \
13212          X"$as_dir" : 'X\(//\)$' \| \
13213          X"$as_dir" : 'X\(/\)' \| \
13214          .     : '\(.\)' 2>/dev/null ||
13215 echo X"$as_dir" |
13216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13217           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13218           /^X\(\/\/\)$/{ s//\1/; q; }
13219           /^X\(\/\).*/{ s//\1/; q; }
13220           s/.*/./; q'`
13221     done
13222     test ! -n "$as_dirs" || mkdir $as_dirs
13223   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13224 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13225    { (exit 1); exit 1; }; }; }
13226
13227     # echo "creating $dirpart/$file"
13228     echo '# dummy' > "$dirpart/$file"
13229   done
13230 done
13231  ;;
13232     libtool )
13233
13234     # See if we are running on zsh, and set the options which allow our
13235     # commands through without removal of \ escapes.
13236     if test -n "${ZSH_VERSION+set}" ; then
13237       setopt NO_GLOB_SUBST
13238     fi
13239
13240     cfgfile="${ofile}T"
13241     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13242     $RM "$cfgfile"
13243
13244     cat <<_LT_EOF >> "$cfgfile"
13245 #! $SHELL
13246
13247 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13248 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
13249 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13250 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13251 #
13252 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13253 # 2006, 2007 Free Software Foundation, Inc.
13254 #
13255 # This file is part of GNU Libtool:
13256 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13257 #
13258 # This program is free software; you can redistribute it and/or modify
13259 # it under the terms of the GNU General Public License as published by
13260 # the Free Software Foundation; either version 2 of the License, or
13261 # (at your option) any later version.
13262 #
13263 # This program is distributed in the hope that it will be useful, but
13264 # WITHOUT ANY WARRANTY; without even the implied warranty of
13265 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13266 # General Public License for more details.
13267 #
13268 # You should have received a copy of the GNU General Public License
13269 # along with this program; if not, a copy can be downloaded from
13270 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
13271 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
13272 # MA 02110-1301, USA.
13273 #
13274 # As a special exception to the GNU General Public License, if you
13275 # distribute this file as part of a program that contains a
13276 # configuration script generated by Autoconf, you may include it under
13277 # the same distribution terms that you use for the rest of that program.
13278
13279
13280 # The names of the tagged configurations supported by this script.
13281 available_tags=""
13282
13283 # ### BEGIN LIBTOOL CONFIG
13284
13285 # Whether or not to build shared libraries.
13286 build_libtool_libs=$enable_shared
13287
13288 # Which release of libtool.m4 was used?
13289 macro_version=$macro_version
13290 macro_revision=$macro_revision
13291
13292 # Whether or not to build static libraries.
13293 build_old_libs=$enable_static
13294
13295 # What type of objects to build.
13296 pic_mode=$pic_mode
13297
13298 # Whether or not to optimize for fast installation.
13299 fast_install=$enable_fast_install
13300
13301 # The host system.
13302 host_alias=$host_alias
13303 host=$host
13304 host_os=$host_os
13305
13306 # The build system.
13307 build_alias=$build_alias
13308 build=$build
13309 build_os=$build_os
13310
13311 # A sed program that does not truncate output.
13312 SED=$lt_SED
13313
13314 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13315 Xsed="\$SED -e 1s/^X//"
13316
13317 # A grep program that handles long lines.
13318 GREP=$lt_GREP
13319
13320 # An ERE matcher.
13321 EGREP=$lt_EGREP
13322
13323 # A literal string matcher.
13324 FGREP=$lt_FGREP
13325
13326 # A BSD- or MS-compatible name lister.
13327 NM=$lt_NM
13328
13329 # Whether we need soft or hard links.
13330 LN_S=$lt_LN_S
13331
13332 # What is the maximum length of a command?
13333 max_cmd_len=$max_cmd_len
13334
13335 # Object file suffix (normally "o").
13336 objext=$ac_objext
13337
13338 # Executable file suffix (normally "").
13339 exeext=$exeext
13340
13341 # whether the shell understands "unset".
13342 lt_unset=$lt_unset
13343
13344 # turn spaces into newlines.
13345 SP2NL=$lt_lt_SP2NL
13346
13347 # turn newlines into spaces.
13348 NL2SP=$lt_lt_NL2SP
13349
13350 # How to create reloadable object files.
13351 reload_flag=$lt_reload_flag
13352 reload_cmds=$lt_reload_cmds
13353
13354 # Method to check whether dependent libraries are shared objects.
13355 deplibs_check_method=$lt_deplibs_check_method
13356
13357 # Command to use when deplibs_check_method == "file_magic".
13358 file_magic_cmd=$lt_file_magic_cmd
13359
13360 # The archiver.
13361 AR=$lt_AR
13362 AR_FLAGS=$lt_AR_FLAGS
13363
13364 # A symbol stripping program.
13365 STRIP=$lt_STRIP
13366
13367 # Commands used to install an old-style archive.
13368 RANLIB=$lt_RANLIB
13369 old_postinstall_cmds=$lt_old_postinstall_cmds
13370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13371
13372 # A C compiler.
13373 LTCC=$lt_CC
13374
13375 # LTCC compiler flags.
13376 LTCFLAGS=$lt_CFLAGS
13377
13378 # Take the output of nm and produce a listing of raw symbols and C names.
13379 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13380
13381 # Transform the output of nm in a proper C declaration.
13382 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13383
13384 # Transform the output of nm in a C name address pair.
13385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13386
13387 # The name of the directory that contains temporary libtool files.
13388 objdir=$objdir
13389
13390 # Shell to use when invoking shell scripts.
13391 SHELL=$lt_SHELL
13392
13393 # An echo program that does not interpret backslashes.
13394 ECHO=$lt_ECHO
13395
13396 # Used to examine libraries when file_magic_cmd begins with "file".
13397 MAGIC_CMD=$MAGIC_CMD
13398
13399 # Must we lock files when doing compilation?
13400 need_locks=$lt_need_locks
13401
13402 # Old archive suffix (normally "a").
13403 libext=$libext
13404
13405 # Shared library suffix (normally ".so").
13406 shrext_cmds=$lt_shrext_cmds
13407
13408 # The commands to extract the exported symbol list from a shared archive.
13409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13410
13411 # Variables whose values should be saved in libtool wrapper scripts and
13412 # restored at link time.
13413 variables_saved_for_relink=$lt_variables_saved_for_relink
13414
13415 # Do we need the "lib" prefix for modules?
13416 need_lib_prefix=$need_lib_prefix
13417
13418 # Do we need a version for libraries?
13419 need_version=$need_version
13420
13421 # Library versioning type.
13422 version_type=$version_type
13423
13424 # Shared library runtime path variable.
13425 runpath_var=$runpath_var
13426
13427 # Shared library path variable.
13428 shlibpath_var=$shlibpath_var
13429
13430 # Is shlibpath searched before the hard-coded library search path?
13431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13432
13433 # Format of library name prefix.
13434 libname_spec=$lt_libname_spec
13435
13436 # List of archive names.  First name is the real one, the rest are links.
13437 # The last name is the one that the linker finds with -lNAME
13438 library_names_spec=$lt_library_names_spec
13439
13440 # The coded name of the library, if different from the real name.
13441 soname_spec=$lt_soname_spec
13442
13443 # Command to use after installation of a shared archive.
13444 postinstall_cmds=$lt_postinstall_cmds
13445
13446 # Command to use after uninstallation of a shared archive.
13447 postuninstall_cmds=$lt_postuninstall_cmds
13448
13449 # Commands used to finish a libtool library installation in a directory.
13450 finish_cmds=$lt_finish_cmds
13451
13452 # As "finish_cmds", except a single script fragment to be evaled but
13453 # not shown.
13454 finish_eval=$lt_finish_eval
13455
13456 # Whether we should hardcode library paths into libraries.
13457 hardcode_into_libs=$hardcode_into_libs
13458
13459 # Compile-time system search path for libraries.
13460 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13461
13462 # Run-time system search path for libraries.
13463 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13464
13465 # Whether dlopen is supported.
13466 dlopen_support=$enable_dlopen
13467
13468 # Whether dlopen of programs is supported.
13469 dlopen_self=$enable_dlopen_self
13470
13471 # Whether dlopen of statically linked programs is supported.
13472 dlopen_self_static=$enable_dlopen_self_static
13473
13474 # Commands to strip libraries.
13475 old_striplib=$lt_old_striplib
13476 striplib=$lt_striplib
13477
13478
13479 # The linker used to build libraries.
13480 LD=$lt_LD
13481
13482 # Commands used to build an old-style archive.
13483 old_archive_cmds=$lt_old_archive_cmds
13484
13485 # A language specific compiler.
13486 CC=$lt_compiler
13487
13488 # Is the compiler the GNU compiler?
13489 with_gcc=$GCC
13490
13491 # Compiler flag to turn off builtin functions.
13492 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13493
13494 # How to pass a linker flag through the compiler.
13495 wl=$lt_lt_prog_compiler_wl
13496
13497 # Additional compiler flags for building library objects.
13498 pic_flag=$lt_lt_prog_compiler_pic
13499
13500 # Compiler flag to prevent dynamic linking.
13501 link_static_flag=$lt_lt_prog_compiler_static
13502
13503 # Does compiler simultaneously support -c and -o options?
13504 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13505
13506 # Whether or not to add -lc for building shared libraries.
13507 build_libtool_need_lc=$archive_cmds_need_lc
13508
13509 # Whether or not to disallow shared libs when runtime libs are static.
13510 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13511
13512 # Compiler flag to allow reflexive dlopens.
13513 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13514
13515 # Compiler flag to generate shared objects directly from archives.
13516 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13517
13518 # Whether the compiler copes with passing no objects directly.
13519 compiler_needs_object=$lt_compiler_needs_object
13520
13521 # Create an old-style archive from a shared archive.
13522 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13523
13524 # Create a temporary old-style archive to link instead of a shared archive.
13525 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13526
13527 # Commands used to build a shared archive.
13528 archive_cmds=$lt_archive_cmds
13529 archive_expsym_cmds=$lt_archive_expsym_cmds
13530
13531 # Commands used to build a loadable module if different from building
13532 # a shared archive.
13533 module_cmds=$lt_module_cmds
13534 module_expsym_cmds=$lt_module_expsym_cmds
13535
13536 # Whether we are building with GNU ld or not.
13537 with_gnu_ld=$lt_with_gnu_ld
13538
13539 # Flag that allows shared libraries with undefined symbols to be built.
13540 allow_undefined_flag=$lt_allow_undefined_flag
13541
13542 # Flag that enforces no undefined symbols.
13543 no_undefined_flag=$lt_no_undefined_flag
13544
13545 # Flag to hardcode \$libdir into a binary during linking.
13546 # This must work even if \$libdir does not exist
13547 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13548
13549 # If ld is used when linking, flag to hardcode \$libdir into a binary
13550 # during linking.  This must work even if \$libdir does not exist.
13551 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13552
13553 # Whether we need a single "-rpath" flag with a separated argument.
13554 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13555
13556 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13557 # DIR into the resulting binary.
13558 hardcode_direct=$hardcode_direct
13559
13560 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13561 # DIR into the resulting binary and the resulting library dependency is
13562 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13563 # library is relocated.
13564 hardcode_direct_absolute=$hardcode_direct_absolute
13565
13566 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13567 # into the resulting binary.
13568 hardcode_minus_L=$hardcode_minus_L
13569
13570 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13571 # into the resulting binary.
13572 hardcode_shlibpath_var=$hardcode_shlibpath_var
13573
13574 # Set to "yes" if building a shared library automatically hardcodes DIR
13575 # into the library and all subsequent libraries and executables linked
13576 # against it.
13577 hardcode_automatic=$hardcode_automatic
13578
13579 # Set to yes if linker adds runtime paths of dependent libraries
13580 # to runtime path list.
13581 inherit_rpath=$inherit_rpath
13582
13583 # Whether libtool must link a program against all its dependency libraries.
13584 link_all_deplibs=$link_all_deplibs
13585
13586 # Fix the shell variable \$srcfile for the compiler.
13587 fix_srcfile_path=$lt_fix_srcfile_path
13588
13589 # Set to "yes" if exported symbols are required.
13590 always_export_symbols=$always_export_symbols
13591
13592 # The commands to list exported symbols.
13593 export_symbols_cmds=$lt_export_symbols_cmds
13594
13595 # Symbols that should not be listed in the preloaded symbols.
13596 exclude_expsyms=$lt_exclude_expsyms
13597
13598 # Symbols that must always be exported.
13599 include_expsyms=$lt_include_expsyms
13600
13601 # Commands necessary for linking programs (against libraries) with templates.
13602 prelink_cmds=$lt_prelink_cmds
13603
13604 # Specify filename containing input files.
13605 file_list_spec=$lt_file_list_spec
13606
13607 # How to hardcode a shared library path into an executable.
13608 hardcode_action=$hardcode_action
13609
13610 # ### END LIBTOOL CONFIG
13611
13612 _LT_EOF
13613
13614   case $host_os in
13615   aix3*)
13616     cat <<\_LT_EOF >> "$cfgfile"
13617 # AIX sometimes has problems with the GCC collect2 program.  For some
13618 # reason, if we set the COLLECT_NAMES environment variable, the problems
13619 # vanish in a puff of smoke.
13620 if test "X${COLLECT_NAMES+set}" != Xset; then
13621   COLLECT_NAMES=
13622   export COLLECT_NAMES
13623 fi
13624 _LT_EOF
13625     ;;
13626   esac
13627
13628
13629 ltmain="$ac_aux_dir/ltmain.sh"
13630
13631
13632   # We use sed instead of cat because bash on DJGPP gets confused if
13633   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13634   # text mode, it properly converts lines to CR/LF.  This bash problem
13635   # is reportedly fixed, but why not run on old versions too?
13636   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13637     || (rm -f "$cfgfile"; exit 1)
13638
13639   case $xsi_shell in
13640   yes)
13641     cat << \_LT_EOF >> "$cfgfile"
13642 # func_dirname file append nondir_replacement
13643 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13644 # otherwise set result to NONDIR_REPLACEMENT.
13645 func_dirname ()
13646 {
13647   case ${1} in
13648     */*) func_dirname_result="${1%/*}${2}" ;;
13649     *  ) func_dirname_result="${3}" ;;
13650   esac
13651 }
13652
13653 # func_basename file
13654 func_basename ()
13655 {
13656   func_basename_result="${1##*/}"
13657 }
13658
13659 # func_stripname prefix suffix name
13660 # strip PREFIX and SUFFIX off of NAME.
13661 # PREFIX and SUFFIX must not contain globbing or regex special
13662 # characters, hashes, percent signs, but SUFFIX may contain a leading
13663 # dot (in which case that matches only a dot).
13664 func_stripname ()
13665 {
13666   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13667   # positional parameters, so assign one to ordinary parameter first.
13668   func_stripname_result=${3}
13669   func_stripname_result=${func_stripname_result#"${1}"}
13670   func_stripname_result=${func_stripname_result%"${2}"}
13671 }
13672
13673 # func_opt_split
13674 func_opt_split ()
13675 {
13676   func_opt_split_opt=${1%%=*}
13677   func_opt_split_arg=${1#*=}
13678 }
13679
13680 # func_lo2o object
13681 func_lo2o ()
13682 {
13683   case ${1} in
13684     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13685     *)    func_lo2o_result=${1} ;;
13686   esac
13687 }
13688 _LT_EOF
13689     ;;
13690   *) # Bourne compatible functions.
13691     cat << \_LT_EOF >> "$cfgfile"
13692 # func_dirname file append nondir_replacement
13693 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13694 # otherwise set result to NONDIR_REPLACEMENT.
13695 func_dirname ()
13696 {
13697   # Extract subdirectory from the argument.
13698   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13699   if test "X$func_dirname_result" = "X${1}"; then
13700     func_dirname_result="${3}"
13701   else
13702     func_dirname_result="$func_dirname_result${2}"
13703   fi
13704 }
13705
13706 # func_basename file
13707 func_basename ()
13708 {
13709   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13710 }
13711
13712 # func_stripname prefix suffix name
13713 # strip PREFIX and SUFFIX off of NAME.
13714 # PREFIX and SUFFIX must not contain globbing or regex special
13715 # characters, hashes, percent signs, but SUFFIX may contain a leading
13716 # dot (in which case that matches only a dot).
13717 # func_strip_suffix prefix name
13718 func_stripname ()
13719 {
13720   case ${2} in
13721     .*) func_stripname_result=`$ECHO "X${3}" \
13722            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13723     *)  func_stripname_result=`$ECHO "X${3}" \
13724            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13725   esac
13726 }
13727
13728 # sed scripts:
13729 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13730 my_sed_long_arg='1s/^-[^=]*=//'
13731
13732 # func_opt_split
13733 func_opt_split ()
13734 {
13735   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13736   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13737 }
13738
13739 # func_lo2o object
13740 func_lo2o ()
13741 {
13742   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13743 }
13744 _LT_EOF
13745 esac
13746
13747 case $lt_shell_append in
13748   yes)
13749     cat << \_LT_EOF >> "$cfgfile"
13750
13751 # func_append var value
13752 # Append VALUE to the end of shell variable VAR.
13753 func_append ()
13754 {
13755   eval "$1+=\$2"
13756 }
13757 _LT_EOF
13758     ;;
13759   *)
13760     cat << \_LT_EOF >> "$cfgfile"
13761
13762 # func_append var value
13763 # Append VALUE to the end of shell variable VAR.
13764 func_append ()
13765 {
13766   eval "$1=\$$1\$2"
13767 }
13768 _LT_EOF
13769     ;;
13770   esac
13771
13772
13773   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13774     || (rm -f "$cfgfile"; exit 1)
13775
13776   mv -f "$cfgfile" "$ofile" ||
13777     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13778   chmod +x "$ofile"
13779
13780  ;;
13781     default-1 )
13782     for ac_file in $CONFIG_FILES; do
13783       # Support "outfile[:infile[:infile...]]"
13784       case "$ac_file" in
13785         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13786       esac
13787       # PO directories have a Makefile.in generated from Makefile.in.in.
13788       case "$ac_file" in */Makefile.in)
13789         # Adjust a relative srcdir.
13790         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13791         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13792         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13793         # In autoconf-2.13 it is called $ac_given_srcdir.
13794         # In autoconf-2.50 it is called $srcdir.
13795         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13796         case "$ac_given_srcdir" in
13797           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13798           /*) top_srcdir="$ac_given_srcdir" ;;
13799           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
13800         esac
13801         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13802           rm -f "$ac_dir/POTFILES"
13803           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13804           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13805           POMAKEFILEDEPS="POTFILES.in"
13806           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
13807           # on $ac_dir but don't depend on user-specified configuration
13808           # parameters.
13809           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13810             # The LINGUAS file contains the set of available languages.
13811             if test -n "$OBSOLETE_ALL_LINGUAS"; then
13812               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13813             fi
13814             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13815             # Hide the ALL_LINGUAS assigment from automake.
13816             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13817             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13818           else
13819             # The set of available languages was given in configure.in.
13820             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13821           fi
13822           case "$ac_given_srcdir" in
13823             .) srcdirpre= ;;
13824             *) srcdirpre='$(srcdir)/' ;;
13825           esac
13826           POFILES=
13827           GMOFILES=
13828           UPDATEPOFILES=
13829           DUMMYPOFILES=
13830           for lang in $ALL_LINGUAS; do
13831             POFILES="$POFILES $srcdirpre$lang.po"
13832             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13833             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13834             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13835           done
13836           # CATALOGS depends on both $ac_dir and the user's LINGUAS
13837           # environment variable.
13838           INST_LINGUAS=
13839           if test -n "$ALL_LINGUAS"; then
13840             for presentlang in $ALL_LINGUAS; do
13841               useit=no
13842               if test "%UNSET%" != "$LINGUAS"; then
13843                 desiredlanguages="$LINGUAS"
13844               else
13845                 desiredlanguages="$ALL_LINGUAS"
13846               fi
13847               for desiredlang in $desiredlanguages; do
13848                 # Use the presentlang catalog if desiredlang is
13849                 #   a. equal to presentlang, or
13850                 #   b. a variant of presentlang (because in this case,
13851                 #      presentlang can be used as a fallback for messages
13852                 #      which are not translated in the desiredlang catalog).
13853                 case "$desiredlang" in
13854                   "$presentlang"*) useit=yes;;
13855                 esac
13856               done
13857               if test $useit = yes; then
13858                 INST_LINGUAS="$INST_LINGUAS $presentlang"
13859               fi
13860             done
13861           fi
13862           CATALOGS=
13863           if test -n "$INST_LINGUAS"; then
13864             for lang in $INST_LINGUAS; do
13865               CATALOGS="$CATALOGS $lang.gmo"
13866             done
13867           fi
13868           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13869           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"
13870           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13871             if test -f "$f"; then
13872               case "$f" in
13873                 *.orig | *.bak | *~) ;;
13874                 *) cat "$f" >> "$ac_dir/Makefile" ;;
13875               esac
13876             fi
13877           done
13878         fi
13879         ;;
13880       esac
13881     done ;;
13882   esac
13883 done
13884 _ACEOF
13885
13886 cat >>$CONFIG_STATUS <<\_ACEOF
13887
13888 { (exit 0); exit 0; }
13889 _ACEOF
13890 chmod +x $CONFIG_STATUS
13891 ac_clean_files=$ac_clean_files_save
13892
13893
13894 # configure is writing to config.log, and then calls config.status.
13895 # config.status does its own redirection, appending to config.log.
13896 # Unfortunately, on DOS this fails, as config.log is still kept open
13897 # by configure, so config.status won't be able to write to it; its
13898 # output is simply discarded.  So we exec the FD to /dev/null,
13899 # effectively closing config.log, so it can be properly (re)opened and
13900 # appended to by config.status.  When coming back to configure, we
13901 # need to make the FD available again.
13902 if test "$no_create" != yes; then
13903   ac_cs_success=:
13904   ac_config_status_args=
13905   test "$silent" = yes &&
13906     ac_config_status_args="$ac_config_status_args --quiet"
13907   exec 5>/dev/null
13908   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13909   exec 5>>config.log
13910   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13911   # would make configure fail if this is the last instruction.
13912   $ac_cs_success || { (exit 1); exit 1; }
13913 fi
13914