OSDN Git Service

include/elf/
[pf3gnuchains/sourceware.git] / rda / 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="README"
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_subdirs_all="$ac_subdirs_all unix"
462 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO CPP WARN_CFLAGS WERROR_CFLAGS subdirs targ_subdirs LIBOBJS LTLIBOBJS'
463 ac_subst_files=''
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506   # If the previous option needs an argument, assign it.
507   if test -n "$ac_prev"; then
508     eval "$ac_prev=\$ac_option"
509     ac_prev=
510     continue
511   fi
512
513   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515   # Accept the important Cygnus configure options, so we can diagnose typos.
516
517   case $ac_option in
518
519   -bindir | --bindir | --bindi | --bind | --bin | --bi)
520     ac_prev=bindir ;;
521   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522     bindir=$ac_optarg ;;
523
524   -build | --build | --buil | --bui | --bu)
525     ac_prev=build_alias ;;
526   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527     build_alias=$ac_optarg ;;
528
529   -cache-file | --cache-file | --cache-fil | --cache-fi \
530   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531     ac_prev=cache_file ;;
532   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534     cache_file=$ac_optarg ;;
535
536   --config-cache | -C)
537     cache_file=config.cache ;;
538
539   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540     ac_prev=datadir ;;
541   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542   | --da=*)
543     datadir=$ac_optarg ;;
544
545   -disable-* | --disable-*)
546     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547     # Reject names that are not valid shell variable names.
548     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550    { (exit 1); exit 1; }; }
551     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552     eval "enable_$ac_feature=no" ;;
553
554   -enable-* | --enable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     case $ac_option in
562       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563       *) ac_optarg=yes ;;
564     esac
565     eval "enable_$ac_feature='$ac_optarg'" ;;
566
567   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569   | --exec | --exe | --ex)
570     ac_prev=exec_prefix ;;
571   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573   | --exec=* | --exe=* | --ex=*)
574     exec_prefix=$ac_optarg ;;
575
576   -gas | --gas | --ga | --g)
577     # Obsolete; use --with-gas.
578     with_gas=yes ;;
579
580   -help | --help | --hel | --he | -h)
581     ac_init_help=long ;;
582   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583     ac_init_help=recursive ;;
584   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585     ac_init_help=short ;;
586
587   -host | --host | --hos | --ho)
588     ac_prev=host_alias ;;
589   -host=* | --host=* | --hos=* | --ho=*)
590     host_alias=$ac_optarg ;;
591
592   -includedir | --includedir | --includedi | --included | --include \
593   | --includ | --inclu | --incl | --inc)
594     ac_prev=includedir ;;
595   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596   | --includ=* | --inclu=* | --incl=* | --inc=*)
597     includedir=$ac_optarg ;;
598
599   -infodir | --infodir | --infodi | --infod | --info | --inf)
600     ac_prev=infodir ;;
601   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602     infodir=$ac_optarg ;;
603
604   -libdir | --libdir | --libdi | --libd)
605     ac_prev=libdir ;;
606   -libdir=* | --libdir=* | --libdi=* | --libd=*)
607     libdir=$ac_optarg ;;
608
609   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610   | --libexe | --libex | --libe)
611     ac_prev=libexecdir ;;
612   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613   | --libexe=* | --libex=* | --libe=*)
614     libexecdir=$ac_optarg ;;
615
616   -localstatedir | --localstatedir | --localstatedi | --localstated \
617   | --localstate | --localstat | --localsta | --localst \
618   | --locals | --local | --loca | --loc | --lo)
619     ac_prev=localstatedir ;;
620   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623     localstatedir=$ac_optarg ;;
624
625   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626     ac_prev=mandir ;;
627   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628     mandir=$ac_optarg ;;
629
630   -nfp | --nfp | --nf)
631     # Obsolete; use --without-fp.
632     with_fp=no ;;
633
634   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635   | --no-cr | --no-c | -n)
636     no_create=yes ;;
637
638   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640     no_recursion=yes ;;
641
642   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644   | --oldin | --oldi | --old | --ol | --o)
645     ac_prev=oldincludedir ;;
646   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649     oldincludedir=$ac_optarg ;;
650
651   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652     ac_prev=prefix ;;
653   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654     prefix=$ac_optarg ;;
655
656   -program-prefix | --program-prefix | --program-prefi | --program-pref \
657   | --program-pre | --program-pr | --program-p)
658     ac_prev=program_prefix ;;
659   -program-prefix=* | --program-prefix=* | --program-prefi=* \
660   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661     program_prefix=$ac_optarg ;;
662
663   -program-suffix | --program-suffix | --program-suffi | --program-suff \
664   | --program-suf | --program-su | --program-s)
665     ac_prev=program_suffix ;;
666   -program-suffix=* | --program-suffix=* | --program-suffi=* \
667   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668     program_suffix=$ac_optarg ;;
669
670   -program-transform-name | --program-transform-name \
671   | --program-transform-nam | --program-transform-na \
672   | --program-transform-n | --program-transform- \
673   | --program-transform | --program-transfor \
674   | --program-transfo | --program-transf \
675   | --program-trans | --program-tran \
676   | --progr-tra | --program-tr | --program-t)
677     ac_prev=program_transform_name ;;
678   -program-transform-name=* | --program-transform-name=* \
679   | --program-transform-nam=* | --program-transform-na=* \
680   | --program-transform-n=* | --program-transform-=* \
681   | --program-transform=* | --program-transfor=* \
682   | --program-transfo=* | --program-transf=* \
683   | --program-trans=* | --program-tran=* \
684   | --progr-tra=* | --program-tr=* | --program-t=*)
685     program_transform_name=$ac_optarg ;;
686
687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688   | -silent | --silent | --silen | --sile | --sil)
689     silent=yes ;;
690
691   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692     ac_prev=sbindir ;;
693   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694   | --sbi=* | --sb=*)
695     sbindir=$ac_optarg ;;
696
697   -sharedstatedir | --sharedstatedir | --sharedstatedi \
698   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699   | --sharedst | --shareds | --shared | --share | --shar \
700   | --sha | --sh)
701     ac_prev=sharedstatedir ;;
702   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705   | --sha=* | --sh=*)
706     sharedstatedir=$ac_optarg ;;
707
708   -site | --site | --sit)
709     ac_prev=site ;;
710   -site=* | --site=* | --sit=*)
711     site=$ac_optarg ;;
712
713   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714     ac_prev=srcdir ;;
715   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716     srcdir=$ac_optarg ;;
717
718   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719   | --syscon | --sysco | --sysc | --sys | --sy)
720     ac_prev=sysconfdir ;;
721   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723     sysconfdir=$ac_optarg ;;
724
725   -target | --target | --targe | --targ | --tar | --ta | --t)
726     ac_prev=target_alias ;;
727   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728     target_alias=$ac_optarg ;;
729
730   -v | -verbose | --verbose | --verbos | --verbo | --verb)
731     verbose=yes ;;
732
733   -version | --version | --versio | --versi | --vers | -V)
734     ac_init_version=: ;;
735
736   -with-* | --with-*)
737     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738     # Reject names that are not valid shell variable names.
739     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740       { echo "$as_me: error: invalid package name: $ac_package" >&2
741    { (exit 1); exit 1; }; }
742     ac_package=`echo $ac_package| sed 's/-/_/g'`
743     case $ac_option in
744       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745       *) ac_optarg=yes ;;
746     esac
747     eval "with_$ac_package='$ac_optarg'" ;;
748
749   -without-* | --without-*)
750     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751     # Reject names that are not valid shell variable names.
752     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753       { echo "$as_me: error: invalid package name: $ac_package" >&2
754    { (exit 1); exit 1; }; }
755     ac_package=`echo $ac_package | sed 's/-/_/g'`
756     eval "with_$ac_package=no" ;;
757
758   --x)
759     # Obsolete; use --with-x.
760     with_x=yes ;;
761
762   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763   | --x-incl | --x-inc | --x-in | --x-i)
764     ac_prev=x_includes ;;
765   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767     x_includes=$ac_optarg ;;
768
769   -x-libraries | --x-libraries | --x-librarie | --x-librari \
770   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771     ac_prev=x_libraries ;;
772   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774     x_libraries=$ac_optarg ;;
775
776   -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778    { (exit 1); exit 1; }; }
779     ;;
780
781   *=*)
782     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786    { (exit 1); exit 1; }; }
787     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788     eval "$ac_envvar='$ac_optarg'"
789     export $ac_envvar ;;
790
791   *)
792     # FIXME: should be removed in autoconf 3.0.
793     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797     ;;
798
799   esac
800 done
801
802 if test -n "$ac_prev"; then
803   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804   { echo "$as_me: error: missing argument to $ac_option" >&2
805    { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811   eval ac_val=$`echo $ac_var`
812   case $ac_val in
813     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815    { (exit 1); exit 1; }; };;
816   esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821               localstatedir libdir includedir oldincludedir infodir mandir
822 do
823   eval ac_val=$`echo $ac_var`
824   case $ac_val in
825     [\\/$]* | ?:[\\/]* ) ;;
826     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827    { (exit 1); exit 1; }; };;
828   esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840   if test "x$build_alias" = x; then
841     cross_compiling=maybe
842     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843     If a cross compiler is detected then cross compile mode will be used." >&2
844   elif test "x$build_alias" != "x$host_alias"; then
845     cross_compiling=yes
846   fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857   ac_srcdir_defaulted=yes
858   # Try the directory containing this script, then its parent.
859   ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861          X"$0" : 'X\(//\)[^/]' \| \
862          X"$0" : 'X\(//\)$' \| \
863          X"$0" : 'X\(/\)' \| \
864          .     : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868           /^X\(\/\/\)$/{ s//\1/; q; }
869           /^X\(\/\).*/{ s//\1/; q; }
870           s/.*/./; q'`
871   srcdir=$ac_confdir
872   if test ! -r $srcdir/$ac_unique_file; then
873     srcdir=..
874   fi
875 else
876   ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879   if test "$ac_srcdir_defaulted" = yes; then
880     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881    { (exit 1); exit 1; }; }
882   else
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884    { (exit 1); exit 1; }; }
885   fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889    { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CC_set=${CC+set}
904 ac_env_CC_value=$CC
905 ac_cv_env_CC_set=${CC+set}
906 ac_cv_env_CC_value=$CC
907 ac_env_CFLAGS_set=${CFLAGS+set}
908 ac_env_CFLAGS_value=$CFLAGS
909 ac_cv_env_CFLAGS_set=${CFLAGS+set}
910 ac_cv_env_CFLAGS_value=$CFLAGS
911 ac_env_LDFLAGS_set=${LDFLAGS+set}
912 ac_env_LDFLAGS_value=$LDFLAGS
913 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_cv_env_LDFLAGS_value=$LDFLAGS
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
919 ac_env_CPP_set=${CPP+set}
920 ac_env_CPP_value=$CPP
921 ac_cv_env_CPP_set=${CPP+set}
922 ac_cv_env_CPP_value=$CPP
923
924 #
925 # Report the --help message.
926 #
927 if test "$ac_init_help" = "long"; then
928   # Omit some internal or obsolete options to make the list less imposing.
929   # This message is too long to be a string in the A/UX 3.1 sh.
930   cat <<_ACEOF
931 \`configure' configures this package to adapt to many kinds of systems.
932
933 Usage: $0 [OPTION]... [VAR=VALUE]...
934
935 To assign environment variables (e.g., CC, CFLAGS...), specify them as
936 VAR=VALUE.  See below for descriptions of some of the useful variables.
937
938 Defaults for the options are specified in brackets.
939
940 Configuration:
941   -h, --help              display this help and exit
942       --help=short        display options specific to this package
943       --help=recursive    display the short help of all the included packages
944   -V, --version           display version information and exit
945   -q, --quiet, --silent   do not print \`checking...' messages
946       --cache-file=FILE   cache test results in FILE [disabled]
947   -C, --config-cache      alias for \`--cache-file=config.cache'
948   -n, --no-create         do not create output files
949       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
950
951 _ACEOF
952
953   cat <<_ACEOF
954 Installation directories:
955   --prefix=PREFIX         install architecture-independent files in PREFIX
956                           [$ac_default_prefix]
957   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
958                           [PREFIX]
959
960 By default, \`make install' will install all the files in
961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
963 for instance \`--prefix=\$HOME'.
964
965 For better control, use the options below.
966
967 Fine tuning of the installation directories:
968   --bindir=DIR           user executables [EPREFIX/bin]
969   --sbindir=DIR          system admin executables [EPREFIX/sbin]
970   --libexecdir=DIR       program executables [EPREFIX/libexec]
971   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
972   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
973   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
974   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
975   --libdir=DIR           object code libraries [EPREFIX/lib]
976   --includedir=DIR       C header files [PREFIX/include]
977   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
978   --infodir=DIR          info documentation [PREFIX/info]
979   --mandir=DIR           man documentation [PREFIX/man]
980 _ACEOF
981
982   cat <<\_ACEOF
983
984 Program names:
985   --program-prefix=PREFIX            prepend PREFIX to installed program names
986   --program-suffix=SUFFIX            append SUFFIX to installed program names
987   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
988
989 System types:
990   --build=BUILD     configure for building on BUILD [guessed]
991   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
992   --target=TARGET   configure for building compilers for TARGET [HOST]
993 _ACEOF
994 fi
995
996 if test -n "$ac_init_help"; then
997
998   cat <<\_ACEOF
999
1000 Optional Features:
1001   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1002   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1003   --enable-maintainer-mode  enable make rules and dependencies not useful
1004                           (and sometimes confusing) to the casual installer
1005   --enable-shared[=PKGS]
1006                           build shared libraries [default=yes]
1007   --enable-static[=PKGS]
1008                           build static libraries [default=yes]
1009   --enable-fast-install[=PKGS]
1010                           optimize for fast installation [default=yes]
1011   --disable-dependency-tracking  speeds up one-time build
1012   --enable-dependency-tracking   do not reject slow dependency extractors
1013   --disable-libtool-lock  avoid locking (might break parallel builds)
1014   --enable-build-warnings Enable build-time compiler warnings if gcc is used
1015   --enable-rda-build-warnings Enable RDA specific build-time compiler warnings if gcc is used
1016
1017 Optional Packages:
1018   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1019   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1020   --with-pic              try to use only PIC/non-PIC objects [default=use
1021                           both]
1022   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1023
1024 Some influential environment variables:
1025   CC          C compiler command
1026   CFLAGS      C compiler flags
1027   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1028               nonstandard directory <lib dir>
1029   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1030               headers in a nonstandard directory <include dir>
1031   CPP         C preprocessor
1032
1033 Use these variables to override the choices made by `configure' or to help
1034 it to find libraries and programs with nonstandard names/locations.
1035
1036 _ACEOF
1037 fi
1038
1039 if test "$ac_init_help" = "recursive"; then
1040   # If there are subdirs, report their specific --help.
1041   ac_popdir=`pwd`
1042   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1043     test -d $ac_dir || continue
1044     ac_builddir=.
1045
1046 if test "$ac_dir" != .; then
1047   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1048   # A "../" for each directory in $ac_dir_suffix.
1049   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1050 else
1051   ac_dir_suffix= ac_top_builddir=
1052 fi
1053
1054 case $srcdir in
1055   .)  # No --srcdir option.  We are building in place.
1056     ac_srcdir=.
1057     if test -z "$ac_top_builddir"; then
1058        ac_top_srcdir=.
1059     else
1060        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1061     fi ;;
1062   [\\/]* | ?:[\\/]* )  # Absolute path.
1063     ac_srcdir=$srcdir$ac_dir_suffix;
1064     ac_top_srcdir=$srcdir ;;
1065   *) # Relative path.
1066     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1067     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1068 esac
1069
1070 # Do not use `cd foo && pwd` to compute absolute paths, because
1071 # the directories may not exist.
1072 case `pwd` in
1073 .) ac_abs_builddir="$ac_dir";;
1074 *)
1075   case "$ac_dir" in
1076   .) ac_abs_builddir=`pwd`;;
1077   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1078   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1079   esac;;
1080 esac
1081 case $ac_abs_builddir in
1082 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1083 *)
1084   case ${ac_top_builddir}. in
1085   .) ac_abs_top_builddir=$ac_abs_builddir;;
1086   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1087   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1088   esac;;
1089 esac
1090 case $ac_abs_builddir in
1091 .) ac_abs_srcdir=$ac_srcdir;;
1092 *)
1093   case $ac_srcdir in
1094   .) ac_abs_srcdir=$ac_abs_builddir;;
1095   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1096   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1097   esac;;
1098 esac
1099 case $ac_abs_builddir in
1100 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1101 *)
1102   case $ac_top_srcdir in
1103   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1104   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1105   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1106   esac;;
1107 esac
1108
1109     cd $ac_dir
1110     # Check for guested configure; otherwise get Cygnus style configure.
1111     if test -f $ac_srcdir/configure.gnu; then
1112       echo
1113       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1114     elif test -f $ac_srcdir/configure; then
1115       echo
1116       $SHELL $ac_srcdir/configure  --help=recursive
1117     elif test -f $ac_srcdir/configure.ac ||
1118            test -f $ac_srcdir/configure.in; then
1119       echo
1120       $ac_configure --help
1121     else
1122       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1123     fi
1124     cd $ac_popdir
1125   done
1126 fi
1127
1128 test -n "$ac_init_help" && exit 0
1129 if $ac_init_version; then
1130   cat <<\_ACEOF
1131
1132 Copyright (C) 2003 Free Software Foundation, Inc.
1133 This configure script is free software; the Free Software Foundation
1134 gives unlimited permission to copy, distribute and modify it.
1135 _ACEOF
1136   exit 0
1137 fi
1138 exec 5>config.log
1139 cat >&5 <<_ACEOF
1140 This file contains any messages produced by compilers while
1141 running configure, to aid debugging if configure makes a mistake.
1142
1143 It was created by $as_me, which was
1144 generated by GNU Autoconf 2.59.  Invocation command line was
1145
1146   $ $0 $@
1147
1148 _ACEOF
1149 {
1150 cat <<_ASUNAME
1151 ## --------- ##
1152 ## Platform. ##
1153 ## --------- ##
1154
1155 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1156 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1157 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1158 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1159 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1160
1161 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1162 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1163
1164 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1165 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1166 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1167 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1168 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1169 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1170 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1171
1172 _ASUNAME
1173
1174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1175 for as_dir in $PATH
1176 do
1177   IFS=$as_save_IFS
1178   test -z "$as_dir" && as_dir=.
1179   echo "PATH: $as_dir"
1180 done
1181
1182 } >&5
1183
1184 cat >&5 <<_ACEOF
1185
1186
1187 ## ----------- ##
1188 ## Core tests. ##
1189 ## ----------- ##
1190
1191 _ACEOF
1192
1193
1194 # Keep a trace of the command line.
1195 # Strip out --no-create and --no-recursion so they do not pile up.
1196 # Strip out --silent because we don't want to record it for future runs.
1197 # Also quote any args containing shell meta-characters.
1198 # Make two passes to allow for proper duplicate-argument suppression.
1199 ac_configure_args=
1200 ac_configure_args0=
1201 ac_configure_args1=
1202 ac_sep=
1203 ac_must_keep_next=false
1204 for ac_pass in 1 2
1205 do
1206   for ac_arg
1207   do
1208     case $ac_arg in
1209     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1210     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211     | -silent | --silent | --silen | --sile | --sil)
1212       continue ;;
1213     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1214       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1215     esac
1216     case $ac_pass in
1217     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1218     2)
1219       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1220       if test $ac_must_keep_next = true; then
1221         ac_must_keep_next=false # Got value, back to normal.
1222       else
1223         case $ac_arg in
1224           *=* | --config-cache | -C | -disable-* | --disable-* \
1225           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1226           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1227           | -with-* | --with-* | -without-* | --without-* | --x)
1228             case "$ac_configure_args0 " in
1229               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1230             esac
1231             ;;
1232           -* ) ac_must_keep_next=true ;;
1233         esac
1234       fi
1235       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1236       # Get rid of the leading space.
1237       ac_sep=" "
1238       ;;
1239     esac
1240   done
1241 done
1242 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1243 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1244
1245 # When interrupted or exit'd, cleanup temporary files, and complete
1246 # config.log.  We remove comments because anyway the quotes in there
1247 # would cause problems or look ugly.
1248 # WARNING: Be sure not to use single quotes in there, as some shells,
1249 # such as our DU 5.0 friend, will then `close' the trap.
1250 trap 'exit_status=$?
1251   # Save into config.log some information that might help in debugging.
1252   {
1253     echo
1254
1255     cat <<\_ASBOX
1256 ## ---------------- ##
1257 ## Cache variables. ##
1258 ## ---------------- ##
1259 _ASBOX
1260     echo
1261     # The following way of writing the cache mishandles newlines in values,
1262 {
1263   (set) 2>&1 |
1264     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1265     *ac_space=\ *)
1266       sed -n \
1267         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1268           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1269       ;;
1270     *)
1271       sed -n \
1272         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1273       ;;
1274     esac;
1275 }
1276     echo
1277
1278     cat <<\_ASBOX
1279 ## ----------------- ##
1280 ## Output variables. ##
1281 ## ----------------- ##
1282 _ASBOX
1283     echo
1284     for ac_var in $ac_subst_vars
1285     do
1286       eval ac_val=$`echo $ac_var`
1287       echo "$ac_var='"'"'$ac_val'"'"'"
1288     done | sort
1289     echo
1290
1291     if test -n "$ac_subst_files"; then
1292       cat <<\_ASBOX
1293 ## ------------- ##
1294 ## Output files. ##
1295 ## ------------- ##
1296 _ASBOX
1297       echo
1298       for ac_var in $ac_subst_files
1299       do
1300         eval ac_val=$`echo $ac_var`
1301         echo "$ac_var='"'"'$ac_val'"'"'"
1302       done | sort
1303       echo
1304     fi
1305
1306     if test -s confdefs.h; then
1307       cat <<\_ASBOX
1308 ## ----------- ##
1309 ## confdefs.h. ##
1310 ## ----------- ##
1311 _ASBOX
1312       echo
1313       sed "/^$/d" confdefs.h | sort
1314       echo
1315     fi
1316     test "$ac_signal" != 0 &&
1317       echo "$as_me: caught signal $ac_signal"
1318     echo "$as_me: exit $exit_status"
1319   } >&5
1320   rm -f core *.core &&
1321   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1322     exit $exit_status
1323      ' 0
1324 for ac_signal in 1 2 13 15; do
1325   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1326 done
1327 ac_signal=0
1328
1329 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1330 rm -rf conftest* confdefs.h
1331 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1332 echo >confdefs.h
1333
1334 # Predefined preprocessor variables.
1335
1336 cat >>confdefs.h <<_ACEOF
1337 #define PACKAGE_NAME "$PACKAGE_NAME"
1338 _ACEOF
1339
1340
1341 cat >>confdefs.h <<_ACEOF
1342 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1343 _ACEOF
1344
1345
1346 cat >>confdefs.h <<_ACEOF
1347 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1348 _ACEOF
1349
1350
1351 cat >>confdefs.h <<_ACEOF
1352 #define PACKAGE_STRING "$PACKAGE_STRING"
1353 _ACEOF
1354
1355
1356 cat >>confdefs.h <<_ACEOF
1357 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1358 _ACEOF
1359
1360
1361 # Let the site file select an alternate cache file if it wants to.
1362 # Prefer explicitly selected file to automatically selected ones.
1363 if test -z "$CONFIG_SITE"; then
1364   if test "x$prefix" != xNONE; then
1365     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1366   else
1367     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1368   fi
1369 fi
1370 for ac_site_file in $CONFIG_SITE; do
1371   if test -r "$ac_site_file"; then
1372     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1373 echo "$as_me: loading site script $ac_site_file" >&6;}
1374     sed 's/^/| /' "$ac_site_file" >&5
1375     . "$ac_site_file"
1376   fi
1377 done
1378
1379 if test -r "$cache_file"; then
1380   # Some versions of bash will fail to source /dev/null (special
1381   # files actually), so we avoid doing that.
1382   if test -f "$cache_file"; then
1383     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1384 echo "$as_me: loading cache $cache_file" >&6;}
1385     case $cache_file in
1386       [\\/]* | ?:[\\/]* ) . $cache_file;;
1387       *)                      . ./$cache_file;;
1388     esac
1389   fi
1390 else
1391   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1392 echo "$as_me: creating cache $cache_file" >&6;}
1393   >$cache_file
1394 fi
1395
1396 # Check that the precious variables saved in the cache have kept the same
1397 # value.
1398 ac_cache_corrupted=false
1399 for ac_var in `(set) 2>&1 |
1400                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1401   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1402   eval ac_new_set=\$ac_env_${ac_var}_set
1403   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1404   eval ac_new_val="\$ac_env_${ac_var}_value"
1405   case $ac_old_set,$ac_new_set in
1406     set,)
1407       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1408 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1409       ac_cache_corrupted=: ;;
1410     ,set)
1411       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1412 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1413       ac_cache_corrupted=: ;;
1414     ,);;
1415     *)
1416       if test "x$ac_old_val" != "x$ac_new_val"; then
1417         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1418 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1419         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1420 echo "$as_me:   former value:  $ac_old_val" >&2;}
1421         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1422 echo "$as_me:   current value: $ac_new_val" >&2;}
1423         ac_cache_corrupted=:
1424       fi;;
1425   esac
1426   # Pass precious variables to config.status.
1427   if test "$ac_new_set" = set; then
1428     case $ac_new_val in
1429     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1430       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1431     *) ac_arg=$ac_var=$ac_new_val ;;
1432     esac
1433     case " $ac_configure_args " in
1434       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1435       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1436     esac
1437   fi
1438 done
1439 if $ac_cache_corrupted; then
1440   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1441 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1442   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1443 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1444    { (exit 1); exit 1; }; }
1445 fi
1446
1447 ac_ext=c
1448 ac_cpp='$CPP $CPPFLAGS'
1449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471 ac_aux_dir=
1472 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1473   if test -f $ac_dir/install-sh; then
1474     ac_aux_dir=$ac_dir
1475     ac_install_sh="$ac_aux_dir/install-sh -c"
1476     break
1477   elif test -f $ac_dir/install.sh; then
1478     ac_aux_dir=$ac_dir
1479     ac_install_sh="$ac_aux_dir/install.sh -c"
1480     break
1481   elif test -f $ac_dir/shtool; then
1482     ac_aux_dir=$ac_dir
1483     ac_install_sh="$ac_aux_dir/shtool install -c"
1484     break
1485   fi
1486 done
1487 if test -z "$ac_aux_dir"; then
1488   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1489 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1490    { (exit 1); exit 1; }; }
1491 fi
1492 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1493 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1494 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1495
1496 # Make sure we can run config.sub.
1497 $ac_config_sub sun4 >/dev/null 2>&1 ||
1498   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1499 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1500    { (exit 1); exit 1; }; }
1501
1502 echo "$as_me:$LINENO: checking build system type" >&5
1503 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1504 if test "${ac_cv_build+set}" = set; then
1505   echo $ECHO_N "(cached) $ECHO_C" >&6
1506 else
1507   ac_cv_build_alias=$build_alias
1508 test -z "$ac_cv_build_alias" &&
1509   ac_cv_build_alias=`$ac_config_guess`
1510 test -z "$ac_cv_build_alias" &&
1511   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1512 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1513    { (exit 1); exit 1; }; }
1514 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1515   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1517    { (exit 1); exit 1; }; }
1518
1519 fi
1520 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1521 echo "${ECHO_T}$ac_cv_build" >&6
1522 build=$ac_cv_build
1523 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526
1527
1528 echo "$as_me:$LINENO: checking host system type" >&5
1529 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1530 if test "${ac_cv_host+set}" = set; then
1531   echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533   ac_cv_host_alias=$host_alias
1534 test -z "$ac_cv_host_alias" &&
1535   ac_cv_host_alias=$ac_cv_build_alias
1536 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1537   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1539    { (exit 1); exit 1; }; }
1540
1541 fi
1542 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1543 echo "${ECHO_T}$ac_cv_host" >&6
1544 host=$ac_cv_host
1545 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550 echo "$as_me:$LINENO: checking target system type" >&5
1551 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1552 if test "${ac_cv_target+set}" = set; then
1553   echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555   ac_cv_target_alias=$target_alias
1556 test "x$ac_cv_target_alias" = "x" &&
1557   ac_cv_target_alias=$ac_cv_host_alias
1558 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1559   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1561    { (exit 1); exit 1; }; }
1562
1563 fi
1564 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1565 echo "${ECHO_T}$ac_cv_target" >&6
1566 target=$ac_cv_target
1567 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572 # The aliases save the names the user supplied, while $host etc.
1573 # will get canonicalized.
1574 test -n "$target_alias" &&
1575   test "$program_prefix$program_suffix$program_transform_name" = \
1576     NONENONEs,x,x, &&
1577   program_prefix=${target_alias}-
1578 am__api_version="1.9"
1579 # Find a good install program.  We prefer a C program (faster),
1580 # so one script is as good as another.  But avoid the broken or
1581 # incompatible versions:
1582 # SysV /etc/install, /usr/sbin/install
1583 # SunOS /usr/etc/install
1584 # IRIX /sbin/install
1585 # AIX /bin/install
1586 # AmigaOS /C/install, which installs bootblocks on floppy discs
1587 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1588 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1589 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1590 # OS/2's system install, which has a completely different semantic
1591 # ./install, which can be erroneously created by make from ./install.sh.
1592 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1593 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1594 if test -z "$INSTALL"; then
1595 if test "${ac_cv_path_install+set}" = set; then
1596   echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 for as_dir in $PATH
1600 do
1601   IFS=$as_save_IFS
1602   test -z "$as_dir" && as_dir=.
1603   # Account for people who put trailing slashes in PATH elements.
1604 case $as_dir/ in
1605   ./ | .// | /cC/* | \
1606   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1607   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1608   /usr/ucb/* ) ;;
1609   *)
1610     # OSF1 and SCO ODT 3.0 have their own names for install.
1611     # Don't use installbsd from OSF since it installs stuff as root
1612     # by default.
1613     for ac_prog in ginstall scoinst install; do
1614       for ac_exec_ext in '' $ac_executable_extensions; do
1615         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1616           if test $ac_prog = install &&
1617             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1618             # AIX install.  It has an incompatible calling convention.
1619             :
1620           elif test $ac_prog = install &&
1621             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1622             # program-specific install script used by HP pwplus--don't use.
1623             :
1624           else
1625             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1626             break 3
1627           fi
1628         fi
1629       done
1630     done
1631     ;;
1632 esac
1633 done
1634
1635
1636 fi
1637   if test "${ac_cv_path_install+set}" = set; then
1638     INSTALL=$ac_cv_path_install
1639   else
1640     # As a last resort, use the slow shell script.  We don't cache a
1641     # path for INSTALL within a source directory, because that will
1642     # break other packages using the cache if that directory is
1643     # removed, or if the path is relative.
1644     INSTALL=$ac_install_sh
1645   fi
1646 fi
1647 echo "$as_me:$LINENO: result: $INSTALL" >&5
1648 echo "${ECHO_T}$INSTALL" >&6
1649
1650 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1651 # It thinks the first close brace ends the variable substitution.
1652 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1653
1654 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1655
1656 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1657
1658 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1659 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1660 # Just in case
1661 sleep 1
1662 echo timestamp > conftest.file
1663 # Do `set' in a subshell so we don't clobber the current shell's
1664 # arguments.  Must try -L first in case configure is actually a
1665 # symlink; some systems play weird games with the mod time of symlinks
1666 # (eg FreeBSD returns the mod time of the symlink's containing
1667 # directory).
1668 if (
1669    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1670    if test "$*" = "X"; then
1671       # -L didn't work.
1672       set X `ls -t $srcdir/configure conftest.file`
1673    fi
1674    rm -f conftest.file
1675    if test "$*" != "X $srcdir/configure conftest.file" \
1676       && test "$*" != "X conftest.file $srcdir/configure"; then
1677
1678       # If neither matched, then we have a broken ls.  This can happen
1679       # if, for instance, CONFIG_SHELL is bash and it inherits a
1680       # broken ls alias from the environment.  This has actually
1681       # happened.  Such a system could not be considered "sane".
1682       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1683 alias in your environment" >&5
1684 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1685 alias in your environment" >&2;}
1686    { (exit 1); exit 1; }; }
1687    fi
1688
1689    test "$2" = conftest.file
1690    )
1691 then
1692    # Ok.
1693    :
1694 else
1695    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1696 Check your system clock" >&5
1697 echo "$as_me: error: newly created file is older than distributed files!
1698 Check your system clock" >&2;}
1699    { (exit 1); exit 1; }; }
1700 fi
1701 echo "$as_me:$LINENO: result: yes" >&5
1702 echo "${ECHO_T}yes" >&6
1703 test "$program_prefix" != NONE &&
1704   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1705 # Use a double $ so make ignores it.
1706 test "$program_suffix" != NONE &&
1707   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1708 # Double any \ or $.  echo might interpret backslashes.
1709 # By default was `s,x,x', remove it if useless.
1710 cat <<\_ACEOF >conftest.sed
1711 s/[\\$]/&&/g;s/;s,x,x,$//
1712 _ACEOF
1713 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1714 rm conftest.sed
1715
1716 # expand $ac_aux_dir to an absolute path
1717 am_aux_dir=`cd $ac_aux_dir && pwd`
1718
1719 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1720 # Use eval to expand $SHELL
1721 if eval "$MISSING --run true"; then
1722   am_missing_run="$MISSING --run "
1723 else
1724   am_missing_run=
1725   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1726 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1727 fi
1728
1729 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1730   # We used to keeping the `.' as first argument, in order to
1731   # allow $(mkdir_p) to be used without argument.  As in
1732   #   $(mkdir_p) $(somedir)
1733   # where $(somedir) is conditionally defined.  However this is wrong
1734   # for two reasons:
1735   #  1. if the package is installed by a user who cannot write `.'
1736   #     make install will fail,
1737   #  2. the above comment should most certainly read
1738   #     $(mkdir_p) $(DESTDIR)$(somedir)
1739   #     so it does not work when $(somedir) is undefined and
1740   #     $(DESTDIR) is not.
1741   #  To support the latter case, we have to write
1742   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1743   #  so the `.' trick is pointless.
1744   mkdir_p='mkdir -p --'
1745 else
1746   # On NextStep and OpenStep, the `mkdir' command does not
1747   # recognize any option.  It will interpret all options as
1748   # directories to create, and then abort because `.' already
1749   # exists.
1750   for d in ./-p ./--version;
1751   do
1752     test -d $d && rmdir $d
1753   done
1754   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1755   if test -f "$ac_aux_dir/mkinstalldirs"; then
1756     mkdir_p='$(mkinstalldirs)'
1757   else
1758     mkdir_p='$(install_sh) -d'
1759   fi
1760 fi
1761
1762 for ac_prog in gawk mawk nawk awk
1763 do
1764   # Extract the first word of "$ac_prog", so it can be a program name with args.
1765 set dummy $ac_prog; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_AWK+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   if test -n "$AWK"; then
1772   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777   IFS=$as_save_IFS
1778   test -z "$as_dir" && as_dir=.
1779   for ac_exec_ext in '' $ac_executable_extensions; do
1780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781     ac_cv_prog_AWK="$ac_prog"
1782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783     break 2
1784   fi
1785 done
1786 done
1787
1788 fi
1789 fi
1790 AWK=$ac_cv_prog_AWK
1791 if test -n "$AWK"; then
1792   echo "$as_me:$LINENO: result: $AWK" >&5
1793 echo "${ECHO_T}$AWK" >&6
1794 else
1795   echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1797 fi
1798
1799   test -n "$AWK" && break
1800 done
1801
1802 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1803 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1804 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1805 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1806   echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808   cat >conftest.make <<\_ACEOF
1809 all:
1810         @echo 'ac_maketemp="$(MAKE)"'
1811 _ACEOF
1812 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1813 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1814 if test -n "$ac_maketemp"; then
1815   eval ac_cv_prog_make_${ac_make}_set=yes
1816 else
1817   eval ac_cv_prog_make_${ac_make}_set=no
1818 fi
1819 rm -f conftest.make
1820 fi
1821 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1822   echo "$as_me:$LINENO: result: yes" >&5
1823 echo "${ECHO_T}yes" >&6
1824   SET_MAKE=
1825 else
1826   echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1828   SET_MAKE="MAKE=${MAKE-make}"
1829 fi
1830
1831 rm -rf .tst 2>/dev/null
1832 mkdir .tst 2>/dev/null
1833 if test -d .tst; then
1834   am__leading_dot=.
1835 else
1836   am__leading_dot=_
1837 fi
1838 rmdir .tst 2>/dev/null
1839
1840 # test to see if srcdir already configured
1841 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1842    test -f $srcdir/config.status; then
1843   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1844 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1845    { (exit 1); exit 1; }; }
1846 fi
1847
1848 # test whether we have cygpath
1849 if test -z "$CYGPATH_W"; then
1850   if (cygpath --version) >/dev/null 2>/dev/null; then
1851     CYGPATH_W='cygpath -w'
1852   else
1853     CYGPATH_W=echo
1854   fi
1855 fi
1856
1857
1858 # Define the identity of the package.
1859  PACKAGE=rda
1860  VERSION=0.1
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE "$PACKAGE"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define VERSION "$VERSION"
1870 _ACEOF
1871
1872 # Some tools Automake needs.
1873
1874 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1875
1876
1877 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1878
1879
1880 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1881
1882
1883 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1884
1885
1886 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1887
1888 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1889
1890 # Installed binaries are usually stripped using `strip' when the user
1891 # run `make install-strip'.  However `strip' might not be the right
1892 # tool to use in cross-compilation environments, therefore Automake
1893 # will honor the `STRIP' environment variable to overrule this program.
1894 if test "$cross_compiling" != no; then
1895   if test -n "$ac_tool_prefix"; then
1896   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1897 set dummy ${ac_tool_prefix}strip; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_STRIP+set}" = set; then
1901   echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903   if test -n "$STRIP"; then
1904   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909   IFS=$as_save_IFS
1910   test -z "$as_dir" && as_dir=.
1911   for ac_exec_ext in '' $ac_executable_extensions; do
1912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915     break 2
1916   fi
1917 done
1918 done
1919
1920 fi
1921 fi
1922 STRIP=$ac_cv_prog_STRIP
1923 if test -n "$STRIP"; then
1924   echo "$as_me:$LINENO: result: $STRIP" >&5
1925 echo "${ECHO_T}$STRIP" >&6
1926 else
1927   echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 fi
1930
1931 fi
1932 if test -z "$ac_cv_prog_STRIP"; then
1933   ac_ct_STRIP=$STRIP
1934   # Extract the first word of "strip", so it can be a program name with args.
1935 set dummy strip; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941   if test -n "$ac_ct_STRIP"; then
1942   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947   IFS=$as_save_IFS
1948   test -z "$as_dir" && as_dir=.
1949   for ac_exec_ext in '' $ac_executable_extensions; do
1950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951     ac_cv_prog_ac_ct_STRIP="strip"
1952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953     break 2
1954   fi
1955 done
1956 done
1957
1958   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1959 fi
1960 fi
1961 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1962 if test -n "$ac_ct_STRIP"; then
1963   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1964 echo "${ECHO_T}$ac_ct_STRIP" >&6
1965 else
1966   echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1968 fi
1969
1970   STRIP=$ac_ct_STRIP
1971 else
1972   STRIP="$ac_cv_prog_STRIP"
1973 fi
1974
1975 fi
1976 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1977
1978 # We need awk for the "check" target.  The system "awk" is bad on
1979 # some platforms.
1980 # Always define AMTAR for backward compatibility.
1981
1982 AMTAR=${AMTAR-"${am_missing_run}tar"}
1983
1984 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1985
1986
1987
1988
1989
1990           ac_config_headers="$ac_config_headers config.h:config.in"
1991
1992
1993 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1994 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1995     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1996 if test "${enable_maintainer_mode+set}" = set; then
1997   enableval="$enable_maintainer_mode"
1998   USE_MAINTAINER_MODE=$enableval
1999 else
2000   USE_MAINTAINER_MODE=no
2001 fi;
2002   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2003 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2004
2005
2006 if test $USE_MAINTAINER_MODE = yes; then
2007   MAINTAINER_MODE_TRUE=
2008   MAINTAINER_MODE_FALSE='#'
2009 else
2010   MAINTAINER_MODE_TRUE='#'
2011   MAINTAINER_MODE_FALSE=
2012 fi
2013
2014   MAINT=$MAINTAINER_MODE_TRUE
2015
2016
2017
2018
2019 macro_version='2.1a'
2020 macro_revision='1.2435'
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033 ltmain="$ac_aux_dir/ltmain.sh"
2034
2035 # Set options
2036
2037 enable_dlopen=no
2038
2039
2040 enable_win32_dll=no
2041
2042
2043 # Check whether --enable-shared or --disable-shared was given.
2044 if test "${enable_shared+set}" = set; then
2045   enableval="$enable_shared"
2046   p=${PACKAGE-default}
2047     case $enableval in
2048     yes) enable_shared=yes ;;
2049     no) enable_shared=no ;;
2050     *)
2051       enable_shared=no
2052       # Look at the argument we got.  We use all the common list separators.
2053       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2054       for pkg in $enableval; do
2055         IFS="$lt_save_ifs"
2056         if test "X$pkg" = "X$p"; then
2057           enable_shared=yes
2058         fi
2059       done
2060       IFS="$lt_save_ifs"
2061       ;;
2062     esac
2063 else
2064   enable_shared=yes
2065 fi;
2066
2067
2068
2069
2070
2071
2072
2073
2074 # Check whether --enable-static or --disable-static was given.
2075 if test "${enable_static+set}" = set; then
2076   enableval="$enable_static"
2077   p=${PACKAGE-default}
2078     case $enableval in
2079     yes) enable_static=yes ;;
2080     no) enable_static=no ;;
2081     *)
2082      enable_static=no
2083       # Look at the argument we got.  We use all the common list separators.
2084       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2085       for pkg in $enableval; do
2086         IFS="$lt_save_ifs"
2087         if test "X$pkg" = "X$p"; then
2088           enable_static=yes
2089         fi
2090       done
2091       IFS="$lt_save_ifs"
2092       ;;
2093     esac
2094 else
2095   enable_static=yes
2096 fi;
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106 # Check whether --with-pic or --without-pic was given.
2107 if test "${with_pic+set}" = set; then
2108   withval="$with_pic"
2109   pic_mode="$withval"
2110 else
2111   pic_mode=default
2112 fi;
2113
2114 test -z "$pic_mode" && pic_mode=default
2115
2116
2117
2118
2119
2120
2121
2122 # Check whether --enable-fast-install or --disable-fast-install was given.
2123 if test "${enable_fast_install+set}" = set; then
2124   enableval="$enable_fast_install"
2125   p=${PACKAGE-default}
2126     case $enableval in
2127     yes) enable_fast_install=yes ;;
2128     no) enable_fast_install=no ;;
2129     *)
2130       enable_fast_install=no
2131       # Look at the argument we got.  We use all the common list separators.
2132       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2133       for pkg in $enableval; do
2134         IFS="$lt_save_ifs"
2135         if test "X$pkg" = "X$p"; then
2136           enable_fast_install=yes
2137         fi
2138       done
2139       IFS="$lt_save_ifs"
2140       ;;
2141     esac
2142 else
2143   enable_fast_install=yes
2144 fi;
2145
2146
2147
2148
2149
2150
2151
2152
2153 DEPDIR="${am__leading_dot}deps"
2154
2155           ac_config_commands="$ac_config_commands depfiles"
2156
2157
2158 am_make=${MAKE-make}
2159 cat > confinc << 'END'
2160 am__doit:
2161         @echo done
2162 .PHONY: am__doit
2163 END
2164 # If we don't find an include directive, just comment out the code.
2165 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2166 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2167 am__include="#"
2168 am__quote=
2169 _am_result=none
2170 # First try GNU make style include.
2171 echo "include confinc" > confmf
2172 # We grep out `Entering directory' and `Leaving directory'
2173 # messages which can occur if `w' ends up in MAKEFLAGS.
2174 # In particular we don't look at `^make:' because GNU make might
2175 # be invoked under some other name (usually "gmake"), in which
2176 # case it prints its new name instead of `make'.
2177 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2178    am__include=include
2179    am__quote=
2180    _am_result=GNU
2181 fi
2182 # Now try BSD make style include.
2183 if test "$am__include" = "#"; then
2184    echo '.include "confinc"' > confmf
2185    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2186       am__include=.include
2187       am__quote="\""
2188       _am_result=BSD
2189    fi
2190 fi
2191
2192
2193 echo "$as_me:$LINENO: result: $_am_result" >&5
2194 echo "${ECHO_T}$_am_result" >&6
2195 rm -f confinc confmf
2196
2197 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2198 if test "${enable_dependency_tracking+set}" = set; then
2199   enableval="$enable_dependency_tracking"
2200
2201 fi;
2202 if test "x$enable_dependency_tracking" != xno; then
2203   am_depcomp="$ac_aux_dir/depcomp"
2204   AMDEPBACKSLASH='\'
2205 fi
2206
2207
2208 if test "x$enable_dependency_tracking" != xno; then
2209   AMDEP_TRUE=
2210   AMDEP_FALSE='#'
2211 else
2212   AMDEP_TRUE='#'
2213   AMDEP_FALSE=
2214 fi
2215
2216
2217
2218 ac_ext=c
2219 ac_cpp='$CPP $CPPFLAGS'
2220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2223 if test -n "$ac_tool_prefix"; then
2224   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2225 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_CC+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test -n "$CC"; then
2232   ac_cv_prog_CC="$CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237   IFS=$as_save_IFS
2238   test -z "$as_dir" && as_dir=.
2239   for ac_exec_ext in '' $ac_executable_extensions; do
2240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243     break 2
2244   fi
2245 done
2246 done
2247
2248 fi
2249 fi
2250 CC=$ac_cv_prog_CC
2251 if test -n "$CC"; then
2252   echo "$as_me:$LINENO: result: $CC" >&5
2253 echo "${ECHO_T}$CC" >&6
2254 else
2255   echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2257 fi
2258
2259 fi
2260 if test -z "$ac_cv_prog_CC"; then
2261   ac_ct_CC=$CC
2262   # Extract the first word of "gcc", so it can be a program name with args.
2263 set dummy gcc; ac_word=$2
2264 echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2267   echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269   if test -n "$ac_ct_CC"; then
2270   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2271 else
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2274 do
2275   IFS=$as_save_IFS
2276   test -z "$as_dir" && as_dir=.
2277   for ac_exec_ext in '' $ac_executable_extensions; do
2278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279     ac_cv_prog_ac_ct_CC="gcc"
2280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281     break 2
2282   fi
2283 done
2284 done
2285
2286 fi
2287 fi
2288 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2289 if test -n "$ac_ct_CC"; then
2290   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2291 echo "${ECHO_T}$ac_ct_CC" >&6
2292 else
2293   echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6
2295 fi
2296
2297   CC=$ac_ct_CC
2298 else
2299   CC="$ac_cv_prog_CC"
2300 fi
2301
2302 if test -z "$CC"; then
2303   if test -n "$ac_tool_prefix"; then
2304   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2305 set dummy ${ac_tool_prefix}cc; ac_word=$2
2306 echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2308 if test "${ac_cv_prog_CC+set}" = set; then
2309   echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311   if test -n "$CC"; then
2312   ac_cv_prog_CC="$CC" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2316 do
2317   IFS=$as_save_IFS
2318   test -z "$as_dir" && as_dir=.
2319   for ac_exec_ext in '' $ac_executable_extensions; do
2320   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2321     ac_cv_prog_CC="${ac_tool_prefix}cc"
2322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323     break 2
2324   fi
2325 done
2326 done
2327
2328 fi
2329 fi
2330 CC=$ac_cv_prog_CC
2331 if test -n "$CC"; then
2332   echo "$as_me:$LINENO: result: $CC" >&5
2333 echo "${ECHO_T}$CC" >&6
2334 else
2335   echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6
2337 fi
2338
2339 fi
2340 if test -z "$ac_cv_prog_CC"; then
2341   ac_ct_CC=$CC
2342   # Extract the first word of "cc", so it can be a program name with args.
2343 set dummy cc; ac_word=$2
2344 echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2346 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2347   echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349   if test -n "$ac_ct_CC"; then
2350   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2354 do
2355   IFS=$as_save_IFS
2356   test -z "$as_dir" && as_dir=.
2357   for ac_exec_ext in '' $ac_executable_extensions; do
2358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2359     ac_cv_prog_ac_ct_CC="cc"
2360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361     break 2
2362   fi
2363 done
2364 done
2365
2366 fi
2367 fi
2368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2369 if test -n "$ac_ct_CC"; then
2370   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2371 echo "${ECHO_T}$ac_ct_CC" >&6
2372 else
2373   echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6
2375 fi
2376
2377   CC=$ac_ct_CC
2378 else
2379   CC="$ac_cv_prog_CC"
2380 fi
2381
2382 fi
2383 if test -z "$CC"; then
2384   # Extract the first word of "cc", so it can be a program name with args.
2385 set dummy cc; ac_word=$2
2386 echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2388 if test "${ac_cv_prog_CC+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   if test -n "$CC"; then
2392   ac_cv_prog_CC="$CC" # Let the user override the test.
2393 else
2394   ac_prog_rejected=no
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2397 do
2398   IFS=$as_save_IFS
2399   test -z "$as_dir" && as_dir=.
2400   for ac_exec_ext in '' $ac_executable_extensions; do
2401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2402     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2403        ac_prog_rejected=yes
2404        continue
2405      fi
2406     ac_cv_prog_CC="cc"
2407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408     break 2
2409   fi
2410 done
2411 done
2412
2413 if test $ac_prog_rejected = yes; then
2414   # We found a bogon in the path, so make sure we never use it.
2415   set dummy $ac_cv_prog_CC
2416   shift
2417   if test $# != 0; then
2418     # We chose a different compiler from the bogus one.
2419     # However, it has the same basename, so the bogon will be chosen
2420     # first if we set CC to just the basename; use the full file name.
2421     shift
2422     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2423   fi
2424 fi
2425 fi
2426 fi
2427 CC=$ac_cv_prog_CC
2428 if test -n "$CC"; then
2429   echo "$as_me:$LINENO: result: $CC" >&5
2430 echo "${ECHO_T}$CC" >&6
2431 else
2432   echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6
2434 fi
2435
2436 fi
2437 if test -z "$CC"; then
2438   if test -n "$ac_tool_prefix"; then
2439   for ac_prog in cl
2440   do
2441     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2443 echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445 if test "${ac_cv_prog_CC+set}" = set; then
2446   echo $ECHO_N "(cached) $ECHO_C" >&6
2447 else
2448   if test -n "$CC"; then
2449   ac_cv_prog_CC="$CC" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2453 do
2454   IFS=$as_save_IFS
2455   test -z "$as_dir" && as_dir=.
2456   for ac_exec_ext in '' $ac_executable_extensions; do
2457   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460     break 2
2461   fi
2462 done
2463 done
2464
2465 fi
2466 fi
2467 CC=$ac_cv_prog_CC
2468 if test -n "$CC"; then
2469   echo "$as_me:$LINENO: result: $CC" >&5
2470 echo "${ECHO_T}$CC" >&6
2471 else
2472   echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6
2474 fi
2475
2476     test -n "$CC" && break
2477   done
2478 fi
2479 if test -z "$CC"; then
2480   ac_ct_CC=$CC
2481   for ac_prog in cl
2482 do
2483   # Extract the first word of "$ac_prog", so it can be a program name with args.
2484 set dummy $ac_prog; ac_word=$2
2485 echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2488   echo $ECHO_N "(cached) $ECHO_C" >&6
2489 else
2490   if test -n "$ac_ct_CC"; then
2491   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498   for ac_exec_ext in '' $ac_executable_extensions; do
2499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2500     ac_cv_prog_ac_ct_CC="$ac_prog"
2501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505 done
2506
2507 fi
2508 fi
2509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510 if test -n "$ac_ct_CC"; then
2511   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2512 echo "${ECHO_T}$ac_ct_CC" >&6
2513 else
2514   echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6
2516 fi
2517
2518   test -n "$ac_ct_CC" && break
2519 done
2520
2521   CC=$ac_ct_CC
2522 fi
2523
2524 fi
2525
2526
2527 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: no acceptable C compiler found in \$PATH
2530 See \`config.log' for more details." >&2;}
2531    { (exit 1); exit 1; }; }
2532
2533 # Provide some information about the compiler.
2534 echo "$as_me:$LINENO:" \
2535      "checking for C compiler version" >&5
2536 ac_compiler=`set X $ac_compile; echo $2`
2537 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2538   (eval $ac_compiler --version </dev/null >&5) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }
2542 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2543   (eval $ac_compiler -v </dev/null >&5) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }
2547 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2548   (eval $ac_compiler -V </dev/null >&5) 2>&5
2549   ac_status=$?
2550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }
2552
2553 cat >conftest.$ac_ext <<_ACEOF
2554 /* confdefs.h.  */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h.  */
2559
2560 int
2561 main ()
2562 {
2563
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 ac_clean_files_save=$ac_clean_files
2569 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2570 # Try to create an executable without -o first, disregard a.out.
2571 # It will help us diagnose broken compilers, and finding out an intuition
2572 # of exeext.
2573 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2574 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2575 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2576 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2577   (eval $ac_link_default) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; then
2581   # Find the output, starting from the most likely.  This scheme is
2582 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2583 # resort.
2584
2585 # Be careful to initialize this variable, since it used to be cached.
2586 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2587 ac_cv_exeext=
2588 # b.out is created by i960 compilers.
2589 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2590 do
2591   test -f "$ac_file" || continue
2592   case $ac_file in
2593     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2594         ;;
2595     conftest.$ac_ext )
2596         # This is the source file.
2597         ;;
2598     [ab].out )
2599         # We found the default executable, but exeext='' is most
2600         # certainly right.
2601         break;;
2602     *.* )
2603         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2604         # FIXME: I believe we export ac_cv_exeext for Libtool,
2605         # but it would be cool to find out if it's true.  Does anybody
2606         # maintain Libtool? --akim.
2607         export ac_cv_exeext
2608         break;;
2609     * )
2610         break;;
2611   esac
2612 done
2613 else
2614   echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2616
2617 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2618 See \`config.log' for more details." >&5
2619 echo "$as_me: error: C compiler cannot create executables
2620 See \`config.log' for more details." >&2;}
2621    { (exit 77); exit 77; }; }
2622 fi
2623
2624 ac_exeext=$ac_cv_exeext
2625 echo "$as_me:$LINENO: result: $ac_file" >&5
2626 echo "${ECHO_T}$ac_file" >&6
2627
2628 # Check the compiler produces executables we can run.  If not, either
2629 # the compiler is broken, or we cross compile.
2630 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2631 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2632 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2633 # If not cross compiling, check that we can run a simple program.
2634 if test "$cross_compiling" != yes; then
2635   if { ac_try='./$ac_file'
2636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637   (eval $ac_try) 2>&5
2638   ac_status=$?
2639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640   (exit $ac_status); }; }; then
2641     cross_compiling=no
2642   else
2643     if test "$cross_compiling" = maybe; then
2644         cross_compiling=yes
2645     else
2646         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2647 If you meant to cross compile, use \`--host'.
2648 See \`config.log' for more details." >&5
2649 echo "$as_me: error: cannot run C compiled programs.
2650 If you meant to cross compile, use \`--host'.
2651 See \`config.log' for more details." >&2;}
2652    { (exit 1); exit 1; }; }
2653     fi
2654   fi
2655 fi
2656 echo "$as_me:$LINENO: result: yes" >&5
2657 echo "${ECHO_T}yes" >&6
2658
2659 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2660 ac_clean_files=$ac_clean_files_save
2661 # Check the compiler produces executables we can run.  If not, either
2662 # the compiler is broken, or we cross compile.
2663 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2664 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2665 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2666 echo "${ECHO_T}$cross_compiling" >&6
2667
2668 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2669 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2671   (eval $ac_link) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; then
2675   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2676 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2677 # work properly (i.e., refer to `conftest.exe'), while it won't with
2678 # `rm'.
2679 for ac_file in conftest.exe conftest conftest.*; do
2680   test -f "$ac_file" || continue
2681   case $ac_file in
2682     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2683     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2684           export ac_cv_exeext
2685           break;;
2686     * ) break;;
2687   esac
2688 done
2689 else
2690   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2691 See \`config.log' for more details." >&5
2692 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2693 See \`config.log' for more details." >&2;}
2694    { (exit 1); exit 1; }; }
2695 fi
2696
2697 rm -f conftest$ac_cv_exeext
2698 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2699 echo "${ECHO_T}$ac_cv_exeext" >&6
2700
2701 rm -f conftest.$ac_ext
2702 EXEEXT=$ac_cv_exeext
2703 ac_exeext=$EXEEXT
2704 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2705 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2706 if test "${ac_cv_objext+set}" = set; then
2707   echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709   cat >conftest.$ac_ext <<_ACEOF
2710 /* confdefs.h.  */
2711 _ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h.  */
2715
2716 int
2717 main ()
2718 {
2719
2720   ;
2721   return 0;
2722 }
2723 _ACEOF
2724 rm -f conftest.o conftest.obj
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726   (eval $ac_compile) 2>&5
2727   ac_status=$?
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); }; then
2730   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2731   case $ac_file in
2732     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2733     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2734        break;;
2735   esac
2736 done
2737 else
2738   echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2742 See \`config.log' for more details." >&5
2743 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2744 See \`config.log' for more details." >&2;}
2745    { (exit 1); exit 1; }; }
2746 fi
2747
2748 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2749 fi
2750 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2751 echo "${ECHO_T}$ac_cv_objext" >&6
2752 OBJEXT=$ac_cv_objext
2753 ac_objext=$OBJEXT
2754 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2755 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2756 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h.  */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h.  */
2765
2766 int
2767 main ()
2768 {
2769 #ifndef __GNUC__
2770        choke me
2771 #endif
2772
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779   (eval $ac_compile) 2>conftest.er1
2780   ac_status=$?
2781   grep -v '^ *+' conftest.er1 >conftest.err
2782   rm -f conftest.er1
2783   cat conftest.err >&5
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); } &&
2786          { ac_try='test -z "$ac_c_werror_flag"
2787                          || test ! -s conftest.err'
2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789   (eval $ac_try) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; } &&
2793          { ac_try='test -s conftest.$ac_objext'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; }; then
2799   ac_compiler_gnu=yes
2800 else
2801   echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804 ac_compiler_gnu=no
2805 fi
2806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2808
2809 fi
2810 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2811 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2812 GCC=`test $ac_compiler_gnu = yes && echo yes`
2813 ac_test_CFLAGS=${CFLAGS+set}
2814 ac_save_CFLAGS=$CFLAGS
2815 CFLAGS="-g"
2816 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2817 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2818 if test "${ac_cv_prog_cc_g+set}" = set; then
2819   echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821   cat >conftest.$ac_ext <<_ACEOF
2822 /* confdefs.h.  */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h.  */
2827
2828 int
2829 main ()
2830 {
2831
2832   ;
2833   return 0;
2834 }
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838   (eval $ac_compile) 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } &&
2845          { ac_try='test -z "$ac_c_werror_flag"
2846                          || test ! -s conftest.err'
2847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848   (eval $ac_try) 2>&5
2849   ac_status=$?
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); }; } &&
2852          { ac_try='test -s conftest.$ac_objext'
2853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; }; then
2858   ac_cv_prog_cc_g=yes
2859 else
2860   echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 ac_cv_prog_cc_g=no
2864 fi
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 fi
2867 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2868 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2869 if test "$ac_test_CFLAGS" = set; then
2870   CFLAGS=$ac_save_CFLAGS
2871 elif test $ac_cv_prog_cc_g = yes; then
2872   if test "$GCC" = yes; then
2873     CFLAGS="-g -O2"
2874   else
2875     CFLAGS="-g"
2876   fi
2877 else
2878   if test "$GCC" = yes; then
2879     CFLAGS="-O2"
2880   else
2881     CFLAGS=
2882   fi
2883 fi
2884 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2885 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2886 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889   ac_cv_prog_cc_stdc=no
2890 ac_save_CC=$CC
2891 cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h.  */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h.  */
2897 #include <stdarg.h>
2898 #include <stdio.h>
2899 #include <sys/types.h>
2900 #include <sys/stat.h>
2901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2902 struct buf { int x; };
2903 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2904 static char *e (p, i)
2905      char **p;
2906      int i;
2907 {
2908   return p[i];
2909 }
2910 static char *f (char * (*g) (char **, int), char **p, ...)
2911 {
2912   char *s;
2913   va_list v;
2914   va_start (v,p);
2915   s = g (p, va_arg (v,int));
2916   va_end (v);
2917   return s;
2918 }
2919
2920 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2921    function prototypes and stuff, but not '\xHH' hex character constants.
2922    These don't provoke an error unfortunately, instead are silently treated
2923    as 'x'.  The following induces an error, until -std1 is added to get
2924    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2925    array size at least.  It's necessary to write '\x00'==0 to get something
2926    that's true only with -std1.  */
2927 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2928
2929 int test (int i, double x);
2930 struct s1 {int (*f) (int a);};
2931 struct s2 {int (*f) (double a);};
2932 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2933 int argc;
2934 char **argv;
2935 int
2936 main ()
2937 {
2938 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 # Don't try gcc -ansi; that turns off useful extensions and
2944 # breaks some systems' header files.
2945 # AIX                   -qlanglvl=ansi
2946 # Ultrix and OSF/1      -std1
2947 # HP-UX 10.20 and later -Ae
2948 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2949 # SVR4                  -Xc -D__EXTENSIONS__
2950 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2951 do
2952   CC="$ac_save_CC $ac_arg"
2953   rm -f conftest.$ac_objext
2954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2955   (eval $ac_compile) 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } &&
2962          { ac_try='test -z "$ac_c_werror_flag"
2963                          || test ! -s conftest.err'
2964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965   (eval $ac_try) 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; } &&
2969          { ac_try='test -s conftest.$ac_objext'
2970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971   (eval $ac_try) 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); }; }; then
2975   ac_cv_prog_cc_stdc=$ac_arg
2976 break
2977 else
2978   echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2980
2981 fi
2982 rm -f conftest.err conftest.$ac_objext
2983 done
2984 rm -f conftest.$ac_ext conftest.$ac_objext
2985 CC=$ac_save_CC
2986
2987 fi
2988
2989 case "x$ac_cv_prog_cc_stdc" in
2990   x|xno)
2991     echo "$as_me:$LINENO: result: none needed" >&5
2992 echo "${ECHO_T}none needed" >&6 ;;
2993   *)
2994     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2995 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2996     CC="$CC $ac_cv_prog_cc_stdc" ;;
2997 esac
2998
2999 # Some people use a C++ compiler to compile C.  Since we use `exit',
3000 # in C++ we need to declare it.  In case someone uses the same compiler
3001 # for both compiling C and C++ we need to have the C++ compiler decide
3002 # the declaration of exit, since it's the most demanding environment.
3003 cat >conftest.$ac_ext <<_ACEOF
3004 #ifndef __cplusplus
3005   choke me
3006 #endif
3007 _ACEOF
3008 rm -f conftest.$ac_objext
3009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010   (eval $ac_compile) 2>conftest.er1
3011   ac_status=$?
3012   grep -v '^ *+' conftest.er1 >conftest.err
3013   rm -f conftest.er1
3014   cat conftest.err >&5
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); } &&
3017          { ac_try='test -z "$ac_c_werror_flag"
3018                          || test ! -s conftest.err'
3019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020   (eval $ac_try) 2>&5
3021   ac_status=$?
3022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023   (exit $ac_status); }; } &&
3024          { ac_try='test -s conftest.$ac_objext'
3025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026   (eval $ac_try) 2>&5
3027   ac_status=$?
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); }; }; then
3030   for ac_declaration in \
3031    '' \
3032    'extern "C" void std::exit (int) throw (); using std::exit;' \
3033    'extern "C" void std::exit (int); using std::exit;' \
3034    'extern "C" void exit (int) throw ();' \
3035    'extern "C" void exit (int);' \
3036    'void exit (int);'
3037 do
3038   cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h.  */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h.  */
3044 $ac_declaration
3045 #include <stdlib.h>
3046 int
3047 main ()
3048 {
3049 exit (42);
3050   ;
3051   return 0;
3052 }
3053 _ACEOF
3054 rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056   (eval $ac_compile) 2>conftest.er1
3057   ac_status=$?
3058   grep -v '^ *+' conftest.er1 >conftest.err
3059   rm -f conftest.er1
3060   cat conftest.err >&5
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); } &&
3063          { ac_try='test -z "$ac_c_werror_flag"
3064                          || test ! -s conftest.err'
3065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066   (eval $ac_try) 2>&5
3067   ac_status=$?
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); }; } &&
3070          { ac_try='test -s conftest.$ac_objext'
3071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3072   (eval $ac_try) 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }; }; then
3076   :
3077 else
3078   echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 continue
3082 fi
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3084   cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090 $ac_declaration
3091 int
3092 main ()
3093 {
3094 exit (42);
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101   (eval $ac_compile) 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } &&
3108          { ac_try='test -z "$ac_c_werror_flag"
3109                          || test ! -s conftest.err'
3110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111   (eval $ac_try) 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; } &&
3115          { ac_try='test -s conftest.$ac_objext'
3116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117   (eval $ac_try) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; }; then
3121   break
3122 else
3123   echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 fi
3127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3128 done
3129 rm -f conftest*
3130 if test -n "$ac_declaration"; then
3131   echo '#ifdef __cplusplus' >>confdefs.h
3132   echo $ac_declaration      >>confdefs.h
3133   echo '#endif'             >>confdefs.h
3134 fi
3135
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 fi
3141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3142 ac_ext=c
3143 ac_cpp='$CPP $CPPFLAGS'
3144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3147
3148 depcc="$CC"   am_compiler_list=
3149
3150 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3151 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3152 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3153   echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3156   # We make a subdir and do the tests there.  Otherwise we can end up
3157   # making bogus files that we don't know about and never remove.  For
3158   # instance it was reported that on HP-UX the gcc test will end up
3159   # making a dummy file named `D' -- because `-MD' means `put the output
3160   # in D'.
3161   mkdir conftest.dir
3162   # Copy depcomp to subdir because otherwise we won't find it if we're
3163   # using a relative directory.
3164   cp "$am_depcomp" conftest.dir
3165   cd conftest.dir
3166   # We will build objects and dependencies in a subdirectory because
3167   # it helps to detect inapplicable dependency modes.  For instance
3168   # both Tru64's cc and ICC support -MD to output dependencies as a
3169   # side effect of compilation, but ICC will put the dependencies in
3170   # the current directory while Tru64 will put them in the object
3171   # directory.
3172   mkdir sub
3173
3174   am_cv_CC_dependencies_compiler_type=none
3175   if test "$am_compiler_list" = ""; then
3176      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3177   fi
3178   for depmode in $am_compiler_list; do
3179     # Setup a source with many dependencies, because some compilers
3180     # like to wrap large dependency lists on column 80 (with \), and
3181     # we should not choose a depcomp mode which is confused by this.
3182     #
3183     # We need to recreate these files for each test, as the compiler may
3184     # overwrite some of them when testing with obscure command lines.
3185     # This happens at least with the AIX C compiler.
3186     : > sub/conftest.c
3187     for i in 1 2 3 4 5 6; do
3188       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3189       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3190       # Solaris 8's {/usr,}/bin/sh.
3191       touch sub/conftst$i.h
3192     done
3193     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3194
3195     case $depmode in
3196     nosideeffect)
3197       # after this tag, mechanisms are not by side-effect, so they'll
3198       # only be used when explicitly requested
3199       if test "x$enable_dependency_tracking" = xyes; then
3200         continue
3201       else
3202         break
3203       fi
3204       ;;
3205     none) break ;;
3206     esac
3207     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3208     # mode.  It turns out that the SunPro C++ compiler does not properly
3209     # handle `-M -o', and we need to detect this.
3210     if depmode=$depmode \
3211        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3212        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3213        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3214          >/dev/null 2>conftest.err &&
3215        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3216        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3217        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3218       # icc doesn't choke on unknown options, it will just issue warnings
3219       # or remarks (even with -Werror).  So we grep stderr for any message
3220       # that says an option was ignored or not supported.
3221       # When given -MP, icc 7.0 and 7.1 complain thusly:
3222       #   icc: Command line warning: ignoring option '-M'; no argument required
3223       # The diagnosis changed in icc 8.0:
3224       #   icc: Command line remark: option '-MP' not supported
3225       if (grep 'ignoring option' conftest.err ||
3226           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3227         am_cv_CC_dependencies_compiler_type=$depmode
3228         break
3229       fi
3230     fi
3231   done
3232
3233   cd ..
3234   rm -rf conftest.dir
3235 else
3236   am_cv_CC_dependencies_compiler_type=none
3237 fi
3238
3239 fi
3240 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3241 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3242 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3243
3244
3245
3246 if
3247   test "x$enable_dependency_tracking" != xno \
3248   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3249   am__fastdepCC_TRUE=
3250   am__fastdepCC_FALSE='#'
3251 else
3252   am__fastdepCC_TRUE='#'
3253   am__fastdepCC_FALSE=
3254 fi
3255
3256
3257 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3258 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3259 if test "${lt_cv_path_SED+set}" = set; then
3260   echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262   # Loop through the user's path and test for sed and gsed.
3263 # Then use that list of sed's as ones to test for truncation.
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267   IFS=$as_save_IFS
3268   test -z "$as_dir" && as_dir=.
3269   for lt_ac_prog in sed gsed; do
3270     for ac_exec_ext in '' $ac_executable_extensions; do
3271       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3272         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3273       fi
3274     done
3275   done
3276 done
3277 IFS=$as_save_IFS
3278 lt_ac_max=0
3279 lt_ac_count=0
3280 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3281 # along with /bin/sed that truncates output.
3282 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3283   test ! -f $lt_ac_sed && continue
3284   cat /dev/null > conftest.in
3285   lt_ac_count=0
3286   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3287   # Check for GNU sed and select it if it is found.
3288   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3289     lt_cv_path_SED=$lt_ac_sed
3290     break
3291   fi
3292   while true; do
3293     cat conftest.in conftest.in >conftest.tmp
3294     mv conftest.tmp conftest.in
3295     cp conftest.in conftest.nl
3296     echo >>conftest.nl
3297     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3298     cmp -s conftest.out conftest.nl || break
3299     # 10000 chars as input seems more than enough
3300     test $lt_ac_count -gt 10 && break
3301     lt_ac_count=`expr $lt_ac_count + 1`
3302     if test $lt_ac_count -gt $lt_ac_max; then
3303       lt_ac_max=$lt_ac_count
3304       lt_cv_path_SED=$lt_ac_sed
3305     fi
3306   done
3307 done
3308
3309 fi
3310
3311 SED=$lt_cv_path_SED
3312
3313 echo "$as_me:$LINENO: result: $SED" >&5
3314 echo "${ECHO_T}$SED" >&6
3315
3316 test -z "$SED" && SED=sed
3317 Xsed="$SED -e 1s/^X//"
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329 echo "$as_me:$LINENO: checking for egrep" >&5
3330 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3331 if test "${ac_cv_prog_egrep+set}" = set; then
3332   echo $ECHO_N "(cached) $ECHO_C" >&6
3333 else
3334   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3335     then ac_cv_prog_egrep='grep -E'
3336     else ac_cv_prog_egrep='egrep'
3337     fi
3338 fi
3339 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3340 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3341  EGREP=$ac_cv_prog_egrep
3342
3343
3344 echo "$as_me:$LINENO: checking for fgrep" >&5
3345 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3346 if test "${ac_cv_prog_fgrep+set}" = set; then
3347   echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3350     then ac_cv_prog_fgrep='grep -F'
3351     else ac_cv_prog_fgrep='fgrep'
3352     fi
3353 fi
3354 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3355 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3356  FGREP=$ac_cv_prog_fgrep
3357
3358
3359 test -z "$GREP" && GREP=grep
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3380 if test "${with_gnu_ld+set}" = set; then
3381   withval="$with_gnu_ld"
3382   test "$withval" = no || with_gnu_ld=yes
3383 else
3384   with_gnu_ld=no
3385 fi;
3386 ac_prog=ld
3387 if test "$GCC" = yes; then
3388   # Check if gcc -print-prog-name=ld gives a path.
3389   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3390 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3391   case $host in
3392   *-*-mingw*)
3393     # gcc leaves a trailing carriage return which upsets mingw
3394     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3395   *)
3396     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3397   esac
3398   case $ac_prog in
3399     # Accept absolute paths.
3400     [\\/]* | ?:[\\/]*)
3401       re_direlt='/[^/][^/]*/\.\./'
3402       # Canonicalize the pathname of ld
3403       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3404       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3405         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3406       done
3407       test -z "$LD" && LD="$ac_prog"
3408       ;;
3409   "")
3410     # If it fails, then pretend we aren't using GCC.
3411     ac_prog=ld
3412     ;;
3413   *)
3414     # If it is relative, then search for the first ld in PATH.
3415     with_gnu_ld=unknown
3416     ;;
3417   esac
3418 elif test "$with_gnu_ld" = yes; then
3419   echo "$as_me:$LINENO: checking for GNU ld" >&5
3420 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3421 else
3422   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3423 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3424 fi
3425 if test "${lt_cv_path_LD+set}" = set; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   if test -z "$LD"; then
3429   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3430   for ac_dir in $PATH; do
3431     IFS="$lt_save_ifs"
3432     test -z "$ac_dir" && ac_dir=.
3433     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3434       lt_cv_path_LD="$ac_dir/$ac_prog"
3435       # Check to see if the program is GNU ld.  I'd rather use --version,
3436       # but apparently some variants of GNU ld only accept -v.
3437       # Break only if it was the GNU/non-GNU ld that we prefer.
3438       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3439       *GNU* | *'with BFD'*)
3440         test "$with_gnu_ld" != no && break
3441         ;;
3442       *)
3443         test "$with_gnu_ld" != yes && break
3444         ;;
3445       esac
3446     fi
3447   done
3448   IFS="$lt_save_ifs"
3449 else
3450   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3451 fi
3452 fi
3453
3454 LD="$lt_cv_path_LD"
3455 if test -n "$LD"; then
3456   echo "$as_me:$LINENO: result: $LD" >&5
3457 echo "${ECHO_T}$LD" >&6
3458 else
3459   echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3461 fi
3462 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3463 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3464    { (exit 1); exit 1; }; }
3465 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3466 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3467 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3471 case `$LD -v 2>&1 </dev/null` in
3472 *GNU* | *'with BFD'*)
3473   lt_cv_prog_gnu_ld=yes
3474   ;;
3475 *)
3476   lt_cv_prog_gnu_ld=no
3477   ;;
3478 esac
3479 fi
3480 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3481 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3482 with_gnu_ld=$lt_cv_prog_gnu_ld
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3494 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3495 if test "${lt_cv_path_NM+set}" = set; then
3496   echo $ECHO_N "(cached) $ECHO_C" >&6
3497 else
3498   if test -n "$NM"; then
3499   # Let the user override the test.
3500   lt_cv_path_NM="$NM"
3501 else
3502   lt_nm_to_check="${ac_tool_prefix}nm"
3503   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3504     lt_nm_to_check="$lt_nm_to_check nm"
3505   fi
3506   for lt_tmp_nm in $lt_nm_to_check; do
3507     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3508     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3509       IFS="$lt_save_ifs"
3510       test -z "$ac_dir" && ac_dir=.
3511       tmp_nm="$ac_dir/$lt_tmp_nm"
3512       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3513         # Check to see if the nm accepts a BSD-compat flag.
3514         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3515         #   nm: unknown option "B" ignored
3516         # Tru64's nm complains that /dev/null is an invalid object file
3517         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3518         */dev/null* | *'Invalid file or object type'*)
3519           lt_cv_path_NM="$tmp_nm -B"
3520           break
3521           ;;
3522         *)
3523           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3524           */dev/null*)
3525             lt_cv_path_NM="$tmp_nm -p"
3526             break
3527             ;;
3528           *)
3529             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3530             continue # so that we can try to find one that supports BSD flags
3531             ;;
3532           esac
3533           ;;
3534         esac
3535       fi
3536     done
3537     IFS="$lt_save_ifs"
3538   done
3539   : ${lt_cv_path_NM=no}
3540 fi
3541 fi
3542 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3543 echo "${ECHO_T}$lt_cv_path_NM" >&6
3544 if test "$lt_cv_path_NM" != "no"; then
3545   NM="$lt_cv_path_NM"
3546 else
3547   # Didn't find any BSD compatible name lister, look for dumpbin.
3548   if test -n "$ac_tool_prefix"; then
3549   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3550   do
3551     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3553 echo "$as_me:$LINENO: checking for $ac_word" >&5
3554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3555 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3556   echo $ECHO_N "(cached) $ECHO_C" >&6
3557 else
3558   if test -n "$DUMPBIN"; then
3559   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566   for ac_exec_ext in '' $ac_executable_extensions; do
3567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573 done
3574
3575 fi
3576 fi
3577 DUMPBIN=$ac_cv_prog_DUMPBIN
3578 if test -n "$DUMPBIN"; then
3579   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3580 echo "${ECHO_T}$DUMPBIN" >&6
3581 else
3582   echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3584 fi
3585
3586     test -n "$DUMPBIN" && break
3587   done
3588 fi
3589 if test -z "$DUMPBIN"; then
3590   ac_ct_DUMPBIN=$DUMPBIN
3591   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3592 do
3593   # Extract the first word of "$ac_prog", so it can be a program name with args.
3594 set dummy $ac_prog; ac_word=$2
3595 echo "$as_me:$LINENO: checking for $ac_word" >&5
3596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3597 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3598   echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600   if test -n "$ac_ct_DUMPBIN"; then
3601   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3602 else
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3605 do
3606   IFS=$as_save_IFS
3607   test -z "$as_dir" && as_dir=.
3608   for ac_exec_ext in '' $ac_executable_extensions; do
3609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3610     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3612     break 2
3613   fi
3614 done
3615 done
3616
3617 fi
3618 fi
3619 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3620 if test -n "$ac_ct_DUMPBIN"; then
3621   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3622 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3623 else
3624   echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3626 fi
3627
3628   test -n "$ac_ct_DUMPBIN" && break
3629 done
3630 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3631
3632   DUMPBIN=$ac_ct_DUMPBIN
3633 fi
3634
3635
3636   if test "$DUMPBIN" != ":"; then
3637     NM="$DUMPBIN"
3638   fi
3639 fi
3640 test -z "$NM" && NM=nm
3641
3642
3643
3644
3645
3646
3647 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3648 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3649 if test "${lt_cv_nm_interface+set}" = set; then
3650   echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652   lt_cv_nm_interface="BSD nm"
3653   echo "int some_variable = 0;" > conftest.$ac_ext
3654   (eval echo "\"\$as_me:3654: $ac_compile\"" >&5)
3655   (eval "$ac_compile" 2>conftest.err)
3656   cat conftest.err >&5
3657   (eval echo "\"\$as_me:3657: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3658   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3659   cat conftest.err >&5
3660   (eval echo "\"\$as_me:3660: output\"" >&5)
3661   cat conftest.out >&5
3662   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3663     lt_cv_nm_interface="MS dumpbin"
3664   fi
3665   rm -f conftest*
3666 fi
3667 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3668 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3669
3670 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3671 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3672 LN_S=$as_ln_s
3673 if test "$LN_S" = "ln -s"; then
3674   echo "$as_me:$LINENO: result: yes" >&5
3675 echo "${ECHO_T}yes" >&6
3676 else
3677   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3678 echo "${ECHO_T}no, using $LN_S" >&6
3679 fi
3680
3681 # find the maximum length of command line arguments
3682 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3683 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3684 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687     i=0
3688   teststring="ABCD"
3689
3690   case $build_os in
3691   msdosdjgpp*)
3692     # On DJGPP, this test can blow up pretty badly due to problems in libc
3693     # (any single argument exceeding 2000 bytes causes a buffer overrun
3694     # during glob expansion).  Even if it were fixed, the result of this
3695     # check would be larger than it should be.
3696     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3697     ;;
3698
3699   gnu*)
3700     # Under GNU Hurd, this test is not required because there is
3701     # no limit to the length of command line arguments.
3702     # Libtool will interpret -1 as no limit whatsoever
3703     lt_cv_sys_max_cmd_len=-1;
3704     ;;
3705
3706   cygwin* | mingw*)
3707     # On Win9x/ME, this test blows up -- it succeeds, but takes
3708     # about 5 minutes as the teststring grows exponentially.
3709     # Worse, since 9x/ME are not pre-emptively multitasking,
3710     # you end up with a "frozen" computer, even though with patience
3711     # the test eventually succeeds (with a max line length of 256k).
3712     # Instead, let's just punt: use the minimum linelength reported by
3713     # all of the supported platforms: 8192 (on NT/2K/XP).
3714     lt_cv_sys_max_cmd_len=8192;
3715     ;;
3716
3717   amigaos*)
3718     # On AmigaOS with pdksh, this test takes hours, literally.
3719     # So we just punt and use a minimum line length of 8192.
3720     lt_cv_sys_max_cmd_len=8192;
3721     ;;
3722
3723   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3724     # This has been around since 386BSD, at least.  Likely further.
3725     if test -x /sbin/sysctl; then
3726       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3727     elif test -x /usr/sbin/sysctl; then
3728       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3729     else
3730       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3731     fi
3732     # And add a safety zone
3733     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3734     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3735     ;;
3736
3737   interix*)
3738     # We know the value 262144 and hardcode it with a safety zone (like BSD)
3739     lt_cv_sys_max_cmd_len=196608
3740     ;;
3741
3742   osf*)
3743     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3744     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3745     # nice to cause kernel panics so lets avoid the loop below.
3746     # First set a reasonable default.
3747     lt_cv_sys_max_cmd_len=16384
3748     #
3749     if test -x /sbin/sysconfig; then
3750       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3751         *1*) lt_cv_sys_max_cmd_len=-1 ;;
3752       esac
3753     fi
3754     ;;
3755   sco3.2v5*)
3756     lt_cv_sys_max_cmd_len=102400
3757     ;;
3758   sysv5* | sco5v6* | sysv4.2uw2*)
3759     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3760     if test -n "$kargmax"; then
3761       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3762     else
3763       lt_cv_sys_max_cmd_len=32768
3764     fi
3765     ;;
3766   *)
3767     # Make teststring a little bigger before we do anything with it.
3768     # a 1K string should be a reasonable start.
3769     for i in 1 2 3 4 5 6 7 8 ; do
3770       teststring=$teststring$teststring
3771     done
3772     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3773     # If test is not a shell built-in, we'll probably end up computing a
3774     # maximum length that is only half of the actual maximum length, but
3775     # we can't tell.
3776     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3777                = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3778             test $i != 17 # 1/2 MB should be enough
3779     do
3780       i=`expr $i + 1`
3781       teststring=$teststring$teststring
3782     done
3783     # Only check the string length outside the loop.
3784     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3785     teststring=
3786     # Add a significant safety factor because C++ compilers can tack on massive
3787     # amounts of additional arguments before passing them to the linker.
3788     # It appears as though 1/2 is a usable value.
3789     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3790     ;;
3791   esac
3792
3793 fi
3794
3795 if test -n $lt_cv_sys_max_cmd_len ; then
3796   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3797 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3798 else
3799   echo "$as_me:$LINENO: result: none" >&5
3800 echo "${ECHO_T}none" >&6
3801 fi
3802 max_cmd_len=$lt_cv_sys_max_cmd_len
3803
3804
3805
3806
3807
3808
3809
3810 : ${CP="cp -f"}
3811 : ${MV="mv -f"}
3812 : ${RM="rm -f"}
3813
3814 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3815 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3816 # Try some XSI features
3817 xsi_shell=no
3818 ( _lt_dummy="a/b/c"
3819   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3820       = c,a/b,, ) >/dev/null 2>&1 \
3821   && xsi_shell=yes
3822 echo "$as_me:$LINENO: result: $xsi_shell" >&5
3823 echo "${ECHO_T}$xsi_shell" >&6
3824
3825
3826 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3827 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
3828 lt_shell_append=no
3829 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3830     >/dev/null 2>&1 \
3831   && lt_shell_append=yes
3832 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3833 echo "${ECHO_T}$lt_shell_append" >&6
3834
3835
3836 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3837   lt_unset=unset
3838 else
3839   lt_unset=false
3840 fi
3841
3842
3843
3844
3845
3846 # test EBCDIC or ASCII
3847 case `echo X|tr X '\101'` in
3848  A) # ASCII based system
3849     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3850   lt_SP2NL='tr \040 \012'
3851   lt_NL2SP='tr \015\012 \040\040'
3852   ;;
3853  *) # EBCDIC based system
3854   lt_SP2NL='tr \100 \n'
3855   lt_NL2SP='tr \r\n \100\100'
3856   ;;
3857 esac
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3868 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3869 if test "${lt_cv_ld_reload_flag+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   lt_cv_ld_reload_flag='-r'
3873 fi
3874 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3875 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3876 reload_flag=$lt_cv_ld_reload_flag
3877 case $reload_flag in
3878 "" | " "*) ;;
3879 *) reload_flag=" $reload_flag" ;;
3880 esac
3881 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3882 case $host_os in
3883   darwin*)
3884     if test "$GCC" = yes; then
3885       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3886     else
3887       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3888     fi
3889     ;;
3890 esac
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
3902 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
3903 if test "${lt_cv_deplibs_check_method+set}" = set; then
3904   echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906   lt_cv_file_magic_cmd='$MAGIC_CMD'
3907 lt_cv_file_magic_test_file=
3908 lt_cv_deplibs_check_method='unknown'
3909 # Need to set the preceding variable on all platforms that support
3910 # interlibrary dependencies.
3911 # 'none' -- dependencies not supported.
3912 # `unknown' -- same as none, but documents that we really don't know.
3913 # 'pass_all' -- all dependencies passed with no checks.
3914 # 'test_compile' -- check by making test program.
3915 # 'file_magic [[regex]]' -- check by looking for files in library path
3916 # which responds to the $file_magic_cmd with a given extended regex.
3917 # If you have `file' or equivalent on your system and you're not sure
3918 # whether `pass_all' will *always* work, you probably want this one.
3919
3920 case $host_os in
3921 aix4* | aix5*)
3922   lt_cv_deplibs_check_method=pass_all
3923   ;;
3924
3925 beos*)
3926   lt_cv_deplibs_check_method=pass_all
3927   ;;
3928
3929 bsdi[45]*)
3930   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3931   lt_cv_file_magic_cmd='/usr/bin/file -L'
3932   lt_cv_file_magic_test_file=/shlib/libc.so
3933   ;;
3934
3935 cygwin*)
3936   # func_win32_libid is a shell function defined in ltmain.sh
3937   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3938   lt_cv_file_magic_cmd='func_win32_libid'
3939   ;;
3940
3941 mingw* | pw32*)
3942   # Base MSYS/MinGW do not provide the 'file' command needed by
3943   # func_win32_libid shell function, so use a weaker test based on 'objdump',
3944   # unless we find 'file', for example because we are cross-compiling.
3945   if ( file / ) >/dev/null 2>&1; then
3946     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3947     lt_cv_file_magic_cmd='func_win32_libid'
3948   else
3949     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3950     lt_cv_file_magic_cmd='$OBJDUMP -f'
3951   fi
3952   ;;
3953
3954 darwin* | rhapsody*)
3955   lt_cv_deplibs_check_method=pass_all
3956   ;;
3957
3958 freebsd* | dragonfly*)
3959   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3960     case $host_cpu in
3961     i*86 )
3962       # Not sure whether the presence of OpenBSD here was a mistake.
3963       # Let's accept both of them until this is cleared up.
3964       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3965       lt_cv_file_magic_cmd=/usr/bin/file
3966       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3967       ;;
3968     esac
3969   else
3970     lt_cv_deplibs_check_method=pass_all
3971   fi
3972   ;;
3973
3974 gnu*)
3975   lt_cv_deplibs_check_method=pass_all
3976   ;;
3977
3978 hpux10.20* | hpux11*)
3979   lt_cv_file_magic_cmd=/usr/bin/file
3980   case $host_cpu in
3981   ia64*)
3982     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3983     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3984     ;;
3985   hppa*64*)
3986     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]'
3987     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3988     ;;
3989   *)
3990     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3991     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3992     ;;
3993   esac
3994   ;;
3995
3996 interix[3-9]*)
3997   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3998   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3999   ;;
4000
4001 irix5* | irix6* | nonstopux*)
4002   case $LD in
4003   *-32|*"-32 ") libmagic=32-bit;;
4004   *-n32|*"-n32 ") libmagic=N32;;
4005   *-64|*"-64 ") libmagic=64-bit;;
4006   *) libmagic=never-match;;
4007   esac
4008   lt_cv_deplibs_check_method=pass_all
4009   ;;
4010
4011 # This must be Linux ELF.
4012 linux* | k*bsd*-gnu)
4013   lt_cv_deplibs_check_method=pass_all
4014   ;;
4015
4016 netbsd*)
4017   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4018     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4019   else
4020     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4021   fi
4022   ;;
4023
4024 newos6*)
4025   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4026   lt_cv_file_magic_cmd=/usr/bin/file
4027   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4028   ;;
4029
4030 *nto* | *qnx*)
4031   lt_cv_deplibs_check_method=pass_all
4032   ;;
4033
4034 openbsd*)
4035   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4036     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4037   else
4038     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4039   fi
4040   ;;
4041
4042 osf3* | osf4* | osf5*)
4043   lt_cv_deplibs_check_method=pass_all
4044   ;;
4045
4046 rdos*)
4047   lt_cv_deplibs_check_method=pass_all
4048   ;;
4049
4050 solaris*)
4051   lt_cv_deplibs_check_method=pass_all
4052   ;;
4053
4054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4055   lt_cv_deplibs_check_method=pass_all
4056   ;;
4057
4058 sysv4 | sysv4.3*)
4059   case $host_vendor in
4060   motorola)
4061     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]'
4062     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4063     ;;
4064   ncr)
4065     lt_cv_deplibs_check_method=pass_all
4066     ;;
4067   sequent)
4068     lt_cv_file_magic_cmd='/bin/file'
4069     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4070     ;;
4071   sni)
4072     lt_cv_file_magic_cmd='/bin/file'
4073     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4074     lt_cv_file_magic_test_file=/lib/libc.so
4075     ;;
4076   siemens)
4077     lt_cv_deplibs_check_method=pass_all
4078     ;;
4079   pc)
4080     lt_cv_deplibs_check_method=pass_all
4081     ;;
4082   esac
4083   ;;
4084
4085 tpf*)
4086   lt_cv_deplibs_check_method=pass_all
4087   ;;
4088 esac
4089
4090 fi
4091 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4092 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4093 file_magic_cmd=$lt_cv_file_magic_cmd
4094 deplibs_check_method=$lt_cv_deplibs_check_method
4095 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108 if test -n "$ac_tool_prefix"; then
4109   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4110 set dummy ${ac_tool_prefix}ar; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_prog_AR+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   if test -n "$AR"; then
4117   ac_cv_prog_AR="$AR" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122   IFS=$as_save_IFS
4123   test -z "$as_dir" && as_dir=.
4124   for ac_exec_ext in '' $ac_executable_extensions; do
4125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126     ac_cv_prog_AR="${ac_tool_prefix}ar"
4127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128     break 2
4129   fi
4130 done
4131 done
4132
4133 fi
4134 fi
4135 AR=$ac_cv_prog_AR
4136 if test -n "$AR"; then
4137   echo "$as_me:$LINENO: result: $AR" >&5
4138 echo "${ECHO_T}$AR" >&6
4139 else
4140   echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6
4142 fi
4143
4144 fi
4145 if test -z "$ac_cv_prog_AR"; then
4146   ac_ct_AR=$AR
4147   # Extract the first word of "ar", so it can be a program name with args.
4148 set dummy ar; ac_word=$2
4149 echo "$as_me:$LINENO: checking for $ac_word" >&5
4150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4151 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4152   echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154   if test -n "$ac_ct_AR"; then
4155   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4156 else
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 for as_dir in $PATH
4159 do
4160   IFS=$as_save_IFS
4161   test -z "$as_dir" && as_dir=.
4162   for ac_exec_ext in '' $ac_executable_extensions; do
4163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164     ac_cv_prog_ac_ct_AR="ar"
4165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166     break 2
4167   fi
4168 done
4169 done
4170
4171   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4172 fi
4173 fi
4174 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4175 if test -n "$ac_ct_AR"; then
4176   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4177 echo "${ECHO_T}$ac_ct_AR" >&6
4178 else
4179   echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4181 fi
4182
4183   AR=$ac_ct_AR
4184 else
4185   AR="$ac_cv_prog_AR"
4186 fi
4187
4188 test -z "$AR" && AR=ar
4189 test -z "$AR_FLAGS" && AR_FLAGS=cru
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201 if test -n "$ac_tool_prefix"; then
4202   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}strip; ac_word=$2
4204 echo "$as_me:$LINENO: checking for $ac_word" >&5
4205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206 if test "${ac_cv_prog_STRIP+set}" = set; then
4207   echo $ECHO_N "(cached) $ECHO_C" >&6
4208 else
4209   if test -n "$STRIP"; then
4210   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4214 do
4215   IFS=$as_save_IFS
4216   test -z "$as_dir" && as_dir=.
4217   for ac_exec_ext in '' $ac_executable_extensions; do
4218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221     break 2
4222   fi
4223 done
4224 done
4225
4226 fi
4227 fi
4228 STRIP=$ac_cv_prog_STRIP
4229 if test -n "$STRIP"; then
4230   echo "$as_me:$LINENO: result: $STRIP" >&5
4231 echo "${ECHO_T}$STRIP" >&6
4232 else
4233   echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4235 fi
4236
4237 fi
4238 if test -z "$ac_cv_prog_STRIP"; then
4239   ac_ct_STRIP=$STRIP
4240   # Extract the first word of "strip", so it can be a program name with args.
4241 set dummy strip; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   if test -n "$ac_ct_STRIP"; then
4248   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255   for ac_exec_ext in '' $ac_executable_extensions; do
4256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257     ac_cv_prog_ac_ct_STRIP="strip"
4258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259     break 2
4260   fi
4261 done
4262 done
4263
4264   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4265 fi
4266 fi
4267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4268 if test -n "$ac_ct_STRIP"; then
4269   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4270 echo "${ECHO_T}$ac_ct_STRIP" >&6
4271 else
4272   echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6
4274 fi
4275
4276   STRIP=$ac_ct_STRIP
4277 else
4278   STRIP="$ac_cv_prog_STRIP"
4279 fi
4280
4281 test -z "$STRIP" && STRIP=:
4282
4283
4284
4285
4286
4287
4288 if test -n "$ac_tool_prefix"; then
4289   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4290 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4291 echo "$as_me:$LINENO: checking for $ac_word" >&5
4292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4293 if test "${ac_cv_prog_RANLIB+set}" = set; then
4294   echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296   if test -n "$RANLIB"; then
4297   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4298 else
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302   IFS=$as_save_IFS
4303   test -z "$as_dir" && as_dir=.
4304   for ac_exec_ext in '' $ac_executable_extensions; do
4305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308     break 2
4309   fi
4310 done
4311 done
4312
4313 fi
4314 fi
4315 RANLIB=$ac_cv_prog_RANLIB
4316 if test -n "$RANLIB"; then
4317   echo "$as_me:$LINENO: result: $RANLIB" >&5
4318 echo "${ECHO_T}$RANLIB" >&6
4319 else
4320   echo "$as_me:$LINENO: result: no" >&5
4321 echo "${ECHO_T}no" >&6
4322 fi
4323
4324 fi
4325 if test -z "$ac_cv_prog_RANLIB"; then
4326   ac_ct_RANLIB=$RANLIB
4327   # Extract the first word of "ranlib", so it can be a program name with args.
4328 set dummy ranlib; ac_word=$2
4329 echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4331 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   if test -n "$ac_ct_RANLIB"; then
4335   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4336 else
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340   IFS=$as_save_IFS
4341   test -z "$as_dir" && as_dir=.
4342   for ac_exec_ext in '' $ac_executable_extensions; do
4343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4344     ac_cv_prog_ac_ct_RANLIB="ranlib"
4345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4346     break 2
4347   fi
4348 done
4349 done
4350
4351   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4352 fi
4353 fi
4354 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4355 if test -n "$ac_ct_RANLIB"; then
4356   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4357 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4358 else
4359   echo "$as_me:$LINENO: result: no" >&5
4360 echo "${ECHO_T}no" >&6
4361 fi
4362
4363   RANLIB=$ac_ct_RANLIB
4364 else
4365   RANLIB="$ac_cv_prog_RANLIB"
4366 fi
4367
4368 test -z "$RANLIB" && RANLIB=:
4369
4370
4371
4372
4373
4374
4375 # Determine commands to create old-style static archives.
4376 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4377 old_postinstall_cmds='chmod 644 $oldlib'
4378 old_postuninstall_cmds=
4379
4380 if test -n "$RANLIB"; then
4381   case $host_os in
4382   openbsd*)
4383     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4384     ;;
4385   *)
4386     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4387     ;;
4388   esac
4389   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4390 fi
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425 # If no C compiler was specified, use CC.
4426 LTCC=${LTCC-"$CC"}
4427
4428 # If no C compiler flags were specified, use CFLAGS.
4429 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4430
4431 # Allow CC to be a program name with arguments.
4432 compiler=$CC
4433
4434
4435 # Check for command to grab the raw symbol name followed by C symbol from nm.
4436 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4437 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4438 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441
4442 # These are sane defaults that work on at least a few old systems.
4443 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4444
4445 # Character class describing NM global symbol codes.
4446 symcode='[BCDEGRST]'
4447
4448 # Regexp to match symbols that can be accessed directly from C.
4449 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4450
4451 # Define system-specific variables.
4452 case $host_os in
4453 aix*)
4454   symcode='[BCDT]'
4455   ;;
4456 cygwin* | mingw* | pw32*)
4457   symcode='[ABCDGISTW]'
4458   ;;
4459 hpux*)
4460   if test "$host_cpu" = ia64; then
4461     symcode='[ABCDEGRST]'
4462   fi
4463   ;;
4464 irix* | nonstopux*)
4465   symcode='[BCDEGRST]'
4466   ;;
4467 osf*)
4468   symcode='[BCDEGQRST]'
4469   ;;
4470 solaris*)
4471   symcode='[BDRT]'
4472   ;;
4473 sco3.2v5*)
4474   symcode='[DT]'
4475   ;;
4476 sysv4.2uw2*)
4477   symcode='[DT]'
4478   ;;
4479 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4480   symcode='[ABDT]'
4481   ;;
4482 sysv4)
4483   symcode='[DFNSTU]'
4484   ;;
4485 esac
4486
4487 # If we're using GNU nm, then use its standard symbol codes.
4488 case `$NM -V 2>&1` in
4489 *GNU* | *'with BFD'*)
4490   symcode='[ABCDGIRSTW]' ;;
4491 esac
4492
4493 # Transform an extracted symbol line into a proper C declaration.
4494 # Some systems (esp. on ia64) link data and code symbols differently,
4495 # so use this general approach.
4496 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4497
4498 # Transform an extracted symbol line into symbol name and symbol address
4499 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
4500
4501 # Handle CRLF in mingw tool chain
4502 opt_cr=
4503 case $build_os in
4504 mingw*)
4505   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4506   ;;
4507 esac
4508
4509 # Try without a prefix underscore, then with it.
4510 for ac_symprfx in "" "_"; do
4511
4512   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4513   symxfrm="\\1 $ac_symprfx\\2 \\2"
4514
4515   # Write the raw and C identifiers.
4516   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4517     # Fake it for dumpbin and say T for any non-static function
4518     # and D for any global variable.
4519     # Also find C++ and __fastcall symbols from MSVC++,
4520     # which start with @ or ?.
4521     lt_cv_sys_global_symbol_pipe="$AWK '"\
4522 "     {last_section=section; section=\$ 3};"\
4523 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4524 "     \$ 0!~/External *\|/{next};"\
4525 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4526 "     {if(hide[section]) next};"\
4527 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4528 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4529 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4530 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4531 "     ' prfx=^$ac_symprfx"
4532   else
4533     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4534   fi
4535
4536   # Check to see that the pipe works correctly.
4537   pipe_works=no
4538
4539   rm -f conftest*
4540   cat > conftest.$ac_ext <<_LT_EOF
4541 #ifdef __cplusplus
4542 extern "C" {
4543 #endif
4544 char nm_test_var;
4545 void nm_test_func(void);
4546 void nm_test_func(void){}
4547 #ifdef __cplusplus
4548 }
4549 #endif
4550 int main(){nm_test_var='a';nm_test_func();return(0);}
4551 _LT_EOF
4552
4553   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4554   (eval $ac_compile) 2>&5
4555   ac_status=$?
4556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557   (exit $ac_status); }; then
4558     # Now try to grab the symbols.
4559     nlist=conftest.nm
4560     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4561   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4562   ac_status=$?
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); } && test -s "$nlist"; then
4565       # Try sorting and uniquifying the output.
4566       if sort "$nlist" | uniq > "$nlist"T; then
4567         mv -f "$nlist"T "$nlist"
4568       else
4569         rm -f "$nlist"T
4570       fi
4571
4572       # Make sure that we snagged all the symbols we need.
4573       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4574         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4575           cat <<_LT_EOF > conftest.$ac_ext
4576 #ifdef __cplusplus
4577 extern "C" {
4578 #endif
4579
4580 _LT_EOF
4581           # Now generate the symbol file.
4582           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4583
4584           cat <<_LT_EOF >> conftest.$ac_ext
4585
4586 /* The mapping between symbol names and symbols.  */
4587 const struct {
4588   const char *name;
4589   void       *address;
4590 }
4591 lt__PROGRAM__LTX_preloaded_symbols[] =
4592 {
4593   { "@PROGRAM@", (void *) 0 },
4594 _LT_EOF
4595           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4596           cat <<\_LT_EOF >> conftest.$ac_ext
4597   {0, (void *) 0}
4598 };
4599
4600 /* This works around a problem in FreeBSD linker */
4601 #ifdef FREEBSD_WORKAROUND
4602 static const void *lt_preloaded_setup() {
4603   return lt__PROGRAM__LTX_preloaded_symbols;
4604 }
4605 #endif
4606
4607 #ifdef __cplusplus
4608 }
4609 #endif
4610 _LT_EOF
4611           # Now try linking the two files.
4612           mv conftest.$ac_objext conftstm.$ac_objext
4613           lt_save_LIBS="$LIBS"
4614           lt_save_CFLAGS="$CFLAGS"
4615           LIBS="conftstm.$ac_objext"
4616           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4617           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618   (eval $ac_link) 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); } && test -s conftest${ac_exeext}; then
4622             pipe_works=yes
4623           fi
4624           LIBS="$lt_save_LIBS"
4625           CFLAGS="$lt_save_CFLAGS"
4626         else
4627           echo "cannot find nm_test_func in $nlist" >&5
4628         fi
4629       else
4630         echo "cannot find nm_test_var in $nlist" >&5
4631       fi
4632     else
4633       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4634     fi
4635   else
4636     echo "$progname: failed program was:" >&5
4637     cat conftest.$ac_ext >&5
4638   fi
4639   rm -f conftest* conftst*
4640
4641   # Do not use the global_symbol_pipe unless it works.
4642   if test "$pipe_works" = yes; then
4643     break
4644   else
4645     lt_cv_sys_global_symbol_pipe=
4646   fi
4647 done
4648
4649 fi
4650
4651 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4652   lt_cv_sys_global_symbol_to_cdecl=
4653 fi
4654 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4655   echo "$as_me:$LINENO: result: failed" >&5
4656 echo "${ECHO_T}failed" >&6
4657 else
4658   echo "$as_me:$LINENO: result: ok" >&5
4659 echo "${ECHO_T}ok" >&6
4660 fi
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4680 if test "${enable_libtool_lock+set}" = set; then
4681   enableval="$enable_libtool_lock"
4682
4683 fi;
4684 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4685
4686 # Some flags need to be propagated to the compiler or linker for good
4687 # libtool support.
4688 case $host in
4689 ia64-*-hpux*)
4690   # Find out which ABI we are using.
4691   echo 'int i;' > conftest.$ac_ext
4692   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4693   (eval $ac_compile) 2>&5
4694   ac_status=$?
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); }; then
4697     case `/usr/bin/file conftest.$ac_objext` in
4698       *ELF-32*)
4699         HPUX_IA64_MODE="32"
4700         ;;
4701       *ELF-64*)
4702         HPUX_IA64_MODE="64"
4703         ;;
4704     esac
4705   fi
4706   rm -rf conftest*
4707   ;;
4708 *-*-irix6*)
4709   # Find out which ABI we are using.
4710   echo '#line 4710 "configure"' > conftest.$ac_ext
4711   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4712   (eval $ac_compile) 2>&5
4713   ac_status=$?
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); }; then
4716     if test "$lt_cv_prog_gnu_ld" = yes; then
4717       case `/usr/bin/file conftest.$ac_objext` in
4718         *32-bit*)
4719           LD="${LD-ld} -melf32bsmip"
4720           ;;
4721         *N32*)
4722           LD="${LD-ld} -melf32bmipn32"
4723           ;;
4724         *64-bit*)
4725           LD="${LD-ld} -melf64bmip"
4726         ;;
4727       esac
4728     else
4729       case `/usr/bin/file conftest.$ac_objext` in
4730         *32-bit*)
4731           LD="${LD-ld} -32"
4732           ;;
4733         *N32*)
4734           LD="${LD-ld} -n32"
4735           ;;
4736         *64-bit*)
4737           LD="${LD-ld} -64"
4738           ;;
4739       esac
4740     fi
4741   fi
4742   rm -rf conftest*
4743   ;;
4744
4745 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4746 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4747   # Find out which ABI we are using.
4748   echo 'int i;' > conftest.$ac_ext
4749   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750   (eval $ac_compile) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); }; then
4754     case `/usr/bin/file conftest.o` in
4755       *32-bit*)
4756         case $host in
4757           x86_64-*kfreebsd*-gnu)
4758             LD="${LD-ld} -m elf_i386_fbsd"
4759             ;;
4760           x86_64-*linux*)
4761             LD="${LD-ld} -m elf_i386"
4762             ;;
4763           ppc64-*linux*|powerpc64-*linux*)
4764             LD="${LD-ld} -m elf32ppclinux"
4765             ;;
4766           s390x-*linux*)
4767             LD="${LD-ld} -m elf_s390"
4768             ;;
4769           sparc64-*linux*)
4770             LD="${LD-ld} -m elf32_sparc"
4771             ;;
4772         esac
4773         ;;
4774       *64-bit*)
4775         case $host in
4776           x86_64-*kfreebsd*-gnu)
4777             LD="${LD-ld} -m elf_x86_64_fbsd"
4778             ;;
4779           x86_64-*linux*)
4780             LD="${LD-ld} -m elf_x86_64"
4781             ;;
4782           ppc*-*linux*|powerpc*-*linux*)
4783             LD="${LD-ld} -m elf64ppc"
4784             ;;
4785           s390*-*linux*|s390*-*tpf*)
4786             LD="${LD-ld} -m elf64_s390"
4787             ;;
4788           sparc*-*linux*)
4789             LD="${LD-ld} -m elf64_sparc"
4790             ;;
4791         esac
4792         ;;
4793     esac
4794   fi
4795   rm -rf conftest*
4796   ;;
4797
4798 *-*-sco3.2v5*)
4799   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4800   SAVE_CFLAGS="$CFLAGS"
4801   CFLAGS="$CFLAGS -belf"
4802   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4803 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4804 if test "${lt_cv_cc_needs_belf+set}" = set; then
4805   echo $ECHO_N "(cached) $ECHO_C" >&6
4806 else
4807   ac_ext=c
4808 ac_cpp='$CPP $CPPFLAGS'
4809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4812
4813      cat >conftest.$ac_ext <<_ACEOF
4814 /* confdefs.h.  */
4815 _ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h.  */
4819
4820 int
4821 main ()
4822 {
4823
4824   ;
4825   return 0;
4826 }
4827 _ACEOF
4828 rm -f conftest.$ac_objext conftest$ac_exeext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4830   (eval $ac_link) 2>conftest.er1
4831   ac_status=$?
4832   grep -v '^ *+' conftest.er1 >conftest.err
4833   rm -f conftest.er1
4834   cat conftest.err >&5
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); } &&
4837          { ac_try='test -z "$ac_c_werror_flag"
4838                          || test ! -s conftest.err'
4839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4840   (eval $ac_try) 2>&5
4841   ac_status=$?
4842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843   (exit $ac_status); }; } &&
4844          { ac_try='test -s conftest$ac_exeext'
4845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846   (eval $ac_try) 2>&5
4847   ac_status=$?
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); }; }; then
4850   lt_cv_cc_needs_belf=yes
4851 else
4852   echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4854
4855 lt_cv_cc_needs_belf=no
4856 fi
4857 rm -f conftest.err conftest.$ac_objext \
4858       conftest$ac_exeext conftest.$ac_ext
4859      ac_ext=c
4860 ac_cpp='$CPP $CPPFLAGS'
4861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864
4865 fi
4866 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4867 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4868   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4869     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4870     CFLAGS="$SAVE_CFLAGS"
4871   fi
4872   ;;
4873 sparc*-*solaris*)
4874   # Find out which ABI we are using.
4875   echo 'int i;' > conftest.$ac_ext
4876   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877   (eval $ac_compile) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; then
4881     case `/usr/bin/file conftest.o` in
4882     *64-bit*)
4883       case $lt_cv_prog_gnu_ld in
4884       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4885       *)    LD="${LD-ld} -64" ;;
4886       esac
4887       ;;
4888     esac
4889   fi
4890   rm -rf conftest*
4891   ;;
4892 esac
4893
4894 need_locks="$enable_libtool_lock"
4895
4896 ac_ext=c
4897 ac_cpp='$CPP $CPPFLAGS'
4898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4903 # On Suns, sometimes $CPP names a directory.
4904 if test -n "$CPP" && test -d "$CPP"; then
4905   CPP=
4906 fi
4907 if test -z "$CPP"; then
4908   if test "${ac_cv_prog_CPP+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911       # Double quotes because CPP needs to be expanded
4912     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4913     do
4914       ac_preproc_ok=false
4915 for ac_c_preproc_warn_flag in '' yes
4916 do
4917   # Use a header file that comes with gcc, so configuring glibc
4918   # with a fresh cross-compiler works.
4919   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4920   # <limits.h> exists even on freestanding compilers.
4921   # On the NeXT, cc -E runs the code through the compiler's parser,
4922   # not just through cpp. "Syntax error" is here to catch this case.
4923   cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h.  */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h.  */
4929 #ifdef __STDC__
4930 # include <limits.h>
4931 #else
4932 # include <assert.h>
4933 #endif
4934                      Syntax error
4935 _ACEOF
4936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4938   ac_status=$?
4939   grep -v '^ *+' conftest.er1 >conftest.err
4940   rm -f conftest.er1
4941   cat conftest.err >&5
4942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943   (exit $ac_status); } >/dev/null; then
4944   if test -s conftest.err; then
4945     ac_cpp_err=$ac_c_preproc_warn_flag
4946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4947   else
4948     ac_cpp_err=
4949   fi
4950 else
4951   ac_cpp_err=yes
4952 fi
4953 if test -z "$ac_cpp_err"; then
4954   :
4955 else
4956   echo "$as_me: failed program was:" >&5
4957 sed 's/^/| /' conftest.$ac_ext >&5
4958
4959   # Broken: fails on valid input.
4960 continue
4961 fi
4962 rm -f conftest.err conftest.$ac_ext
4963
4964   # OK, works on sane cases.  Now check whether non-existent headers
4965   # can be detected and how.
4966   cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h.  */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h.  */
4972 #include <ac_nonexistent.h>
4973 _ACEOF
4974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4976   ac_status=$?
4977   grep -v '^ *+' conftest.er1 >conftest.err
4978   rm -f conftest.er1
4979   cat conftest.err >&5
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } >/dev/null; then
4982   if test -s conftest.err; then
4983     ac_cpp_err=$ac_c_preproc_warn_flag
4984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4985   else
4986     ac_cpp_err=
4987   fi
4988 else
4989   ac_cpp_err=yes
4990 fi
4991 if test -z "$ac_cpp_err"; then
4992   # Broken: success on invalid input.
4993 continue
4994 else
4995   echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998   # Passes both tests.
4999 ac_preproc_ok=:
5000 break
5001 fi
5002 rm -f conftest.err conftest.$ac_ext
5003
5004 done
5005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5006 rm -f conftest.err conftest.$ac_ext
5007 if $ac_preproc_ok; then
5008   break
5009 fi
5010
5011     done
5012     ac_cv_prog_CPP=$CPP
5013
5014 fi
5015   CPP=$ac_cv_prog_CPP
5016 else
5017   ac_cv_prog_CPP=$CPP
5018 fi
5019 echo "$as_me:$LINENO: result: $CPP" >&5
5020 echo "${ECHO_T}$CPP" >&6
5021 ac_preproc_ok=false
5022 for ac_c_preproc_warn_flag in '' yes
5023 do
5024   # Use a header file that comes with gcc, so configuring glibc
5025   # with a fresh cross-compiler works.
5026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027   # <limits.h> exists even on freestanding compilers.
5028   # On the NeXT, cc -E runs the code through the compiler's parser,
5029   # not just through cpp. "Syntax error" is here to catch this case.
5030   cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036 #ifdef __STDC__
5037 # include <limits.h>
5038 #else
5039 # include <assert.h>
5040 #endif
5041                      Syntax error
5042 _ACEOF
5043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5045   ac_status=$?
5046   grep -v '^ *+' conftest.er1 >conftest.err
5047   rm -f conftest.er1
5048   cat conftest.err >&5
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); } >/dev/null; then
5051   if test -s conftest.err; then
5052     ac_cpp_err=$ac_c_preproc_warn_flag
5053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5054   else
5055     ac_cpp_err=
5056   fi
5057 else
5058   ac_cpp_err=yes
5059 fi
5060 if test -z "$ac_cpp_err"; then
5061   :
5062 else
5063   echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066   # Broken: fails on valid input.
5067 continue
5068 fi
5069 rm -f conftest.err conftest.$ac_ext
5070
5071   # OK, works on sane cases.  Now check whether non-existent headers
5072   # can be detected and how.
5073   cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h.  */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h.  */
5079 #include <ac_nonexistent.h>
5080 _ACEOF
5081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083   ac_status=$?
5084   grep -v '^ *+' conftest.er1 >conftest.err
5085   rm -f conftest.er1
5086   cat conftest.err >&5
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); } >/dev/null; then
5089   if test -s conftest.err; then
5090     ac_cpp_err=$ac_c_preproc_warn_flag
5091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5092   else
5093     ac_cpp_err=
5094   fi
5095 else
5096   ac_cpp_err=yes
5097 fi
5098 if test -z "$ac_cpp_err"; then
5099   # Broken: success on invalid input.
5100 continue
5101 else
5102   echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105   # Passes both tests.
5106 ac_preproc_ok=:
5107 break
5108 fi
5109 rm -f conftest.err conftest.$ac_ext
5110
5111 done
5112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113 rm -f conftest.err conftest.$ac_ext
5114 if $ac_preproc_ok; then
5115   :
5116 else
5117   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5118 See \`config.log' for more details." >&5
5119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5120 See \`config.log' for more details." >&2;}
5121    { (exit 1); exit 1; }; }
5122 fi
5123
5124 ac_ext=c
5125 ac_cpp='$CPP $CPPFLAGS'
5126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5129
5130
5131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5133 if test "${ac_cv_header_stdc+set}" = set; then
5134   echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136   cat >conftest.$ac_ext <<_ACEOF
5137 /* confdefs.h.  */
5138 _ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h.  */
5142 #include <stdlib.h>
5143 #include <stdarg.h>
5144 #include <string.h>
5145 #include <float.h>
5146
5147 int
5148 main ()
5149 {
5150
5151   ;
5152   return 0;
5153 }
5154 _ACEOF
5155 rm -f conftest.$ac_objext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157   (eval $ac_compile) 2>conftest.er1
5158   ac_status=$?
5159   grep -v '^ *+' conftest.er1 >conftest.err
5160   rm -f conftest.er1
5161   cat conftest.err >&5
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); } &&
5164          { ac_try='test -z "$ac_c_werror_flag"
5165                          || test ! -s conftest.err'
5166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5167   (eval $ac_try) 2>&5
5168   ac_status=$?
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); }; } &&
5171          { ac_try='test -s conftest.$ac_objext'
5172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173   (eval $ac_try) 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }; }; then
5177   ac_cv_header_stdc=yes
5178 else
5179   echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5181
5182 ac_cv_header_stdc=no
5183 fi
5184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5185
5186 if test $ac_cv_header_stdc = yes; then
5187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5188   cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h.  */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h.  */
5194 #include <string.h>
5195
5196 _ACEOF
5197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5198   $EGREP "memchr" >/dev/null 2>&1; then
5199   :
5200 else
5201   ac_cv_header_stdc=no
5202 fi
5203 rm -f conftest*
5204
5205 fi
5206
5207 if test $ac_cv_header_stdc = yes; then
5208   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5209   cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h.  */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h.  */
5215 #include <stdlib.h>
5216
5217 _ACEOF
5218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5219   $EGREP "free" >/dev/null 2>&1; then
5220   :
5221 else
5222   ac_cv_header_stdc=no
5223 fi
5224 rm -f conftest*
5225
5226 fi
5227
5228 if test $ac_cv_header_stdc = yes; then
5229   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5230   if test "$cross_compiling" = yes; then
5231   :
5232 else
5233   cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h.  */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h.  */
5239 #include <ctype.h>
5240 #if ((' ' & 0x0FF) == 0x020)
5241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5243 #else
5244 # define ISLOWER(c) \
5245                    (('a' <= (c) && (c) <= 'i') \
5246                      || ('j' <= (c) && (c) <= 'r') \
5247                      || ('s' <= (c) && (c) <= 'z'))
5248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5249 #endif
5250
5251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5252 int
5253 main ()
5254 {
5255   int i;
5256   for (i = 0; i < 256; i++)
5257     if (XOR (islower (i), ISLOWER (i))
5258         || toupper (i) != TOUPPER (i))
5259       exit(2);
5260   exit (0);
5261 }
5262 _ACEOF
5263 rm -f conftest$ac_exeext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265   (eval $ac_link) 2>&5
5266   ac_status=$?
5267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270   (eval $ac_try) 2>&5
5271   ac_status=$?
5272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273   (exit $ac_status); }; }; then
5274   :
5275 else
5276   echo "$as_me: program exited with status $ac_status" >&5
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 ( exit $ac_status )
5281 ac_cv_header_stdc=no
5282 fi
5283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5284 fi
5285 fi
5286 fi
5287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5289 if test $ac_cv_header_stdc = yes; then
5290
5291 cat >>confdefs.h <<\_ACEOF
5292 #define STDC_HEADERS 1
5293 _ACEOF
5294
5295 fi
5296
5297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5308                   inttypes.h stdint.h unistd.h
5309 do
5310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h.  */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h.  */
5322 $ac_includes_default
5323
5324 #include <$ac_header>
5325 _ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328   (eval $ac_compile) 2>conftest.er1
5329   ac_status=$?
5330   grep -v '^ *+' conftest.er1 >conftest.err
5331   rm -f conftest.er1
5332   cat conftest.err >&5
5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334   (exit $ac_status); } &&
5335          { ac_try='test -z "$ac_c_werror_flag"
5336                          || test ! -s conftest.err'
5337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338   (eval $ac_try) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); }; } &&
5342          { ac_try='test -s conftest.$ac_objext'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; }; then
5348   eval "$as_ac_Header=yes"
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 eval "$as_ac_Header=no"
5354 fi
5355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356 fi
5357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5360   cat >>confdefs.h <<_ACEOF
5361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5362 _ACEOF
5363
5364 fi
5365
5366 done
5367
5368
5369
5370 for ac_header in dlfcn.h
5371 do
5372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373 echo "$as_me:$LINENO: checking for $ac_header" >&5
5374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5376   echo $ECHO_N "(cached) $ECHO_C" >&6
5377 else
5378   cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h.  */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h.  */
5384 $ac_includes_default
5385
5386 #include <$ac_header>
5387 _ACEOF
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390   (eval $ac_compile) 2>conftest.er1
5391   ac_status=$?
5392   grep -v '^ *+' conftest.er1 >conftest.err
5393   rm -f conftest.er1
5394   cat conftest.err >&5
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); } &&
5397          { ac_try='test -z "$ac_c_werror_flag"
5398                          || test ! -s conftest.err'
5399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400   (eval $ac_try) 2>&5
5401   ac_status=$?
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); }; } &&
5404          { ac_try='test -s conftest.$ac_objext'
5405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406   (eval $ac_try) 2>&5
5407   ac_status=$?
5408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409   (exit $ac_status); }; }; then
5410   eval "$as_ac_Header=yes"
5411 else
5412   echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 eval "$as_ac_Header=no"
5416 fi
5417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5418 fi
5419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5422   cat >>confdefs.h <<_ACEOF
5423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5424 _ACEOF
5425
5426 fi
5427
5428 done
5429
5430
5431
5432 # This can be used to rebuild libtool when needed
5433 LIBTOOL_DEPS="$ltmain"
5434
5435 # Always use our own libtool.
5436 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462 test -z "$LN_S" && LN_S="ln -s"
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477 if test -n "${ZSH_VERSION+set}" ; then
5478    setopt NO_GLOB_SUBST
5479 fi
5480
5481 echo "$as_me:$LINENO: checking for objdir" >&5
5482 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5483 if test "${lt_cv_objdir+set}" = set; then
5484   echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486   rm -f .libs 2>/dev/null
5487 mkdir .libs 2>/dev/null
5488 if test -d .libs; then
5489   lt_cv_objdir=.libs
5490 else
5491   # MS-DOS does not allow filenames that begin with a dot.
5492   lt_cv_objdir=_libs
5493 fi
5494 rmdir .libs 2>/dev/null
5495 fi
5496 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5497 echo "${ECHO_T}$lt_cv_objdir" >&6
5498 objdir=$lt_cv_objdir
5499
5500
5501
5502
5503
5504 cat >>confdefs.h <<_ACEOF
5505 #define LT_OBJDIR "$lt_cv_objdir/"
5506 _ACEOF
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524 case $host_os in
5525 aix3*)
5526   # AIX sometimes has problems with the GCC collect2 program.  For some
5527   # reason, if we set the COLLECT_NAMES environment variable, the problems
5528   # vanish in a puff of smoke.
5529   if test "X${COLLECT_NAMES+set}" != Xset; then
5530     COLLECT_NAMES=
5531     export COLLECT_NAMES
5532   fi
5533   ;;
5534 esac
5535
5536 # Sed substitution that helps us do robust quoting.  It backslashifies
5537 # metacharacters that are still active within double-quoted strings.
5538 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5539
5540 # Same as above, but do not quote variable references.
5541 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5542
5543 # Sed substitution to delay expansion of an escaped shell variable in a
5544 # double_quote_subst'ed string.
5545 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5546
5547 # Sed substitution to delay expansion of an escaped single quote.
5548 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5549
5550 # Sed substitution to avoid accidental globbing in evaled expressions
5551 no_glob_subst='s/\*/\\\*/g'
5552
5553 # Global variables:
5554 ofile=libtool
5555 can_build_shared=yes
5556
5557 # All known linkers require a `.a' archive for static linking (except MSVC,
5558 # which needs '.lib').
5559 libext=a
5560
5561 with_gnu_ld="$lt_cv_prog_gnu_ld"
5562
5563 old_CC="$CC"
5564 old_CFLAGS="$CFLAGS"
5565
5566 # Set sane defaults for various variables
5567 test -z "$CC" && CC=cc
5568 test -z "$LTCC" && LTCC=$CC
5569 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5570 test -z "$LD" && LD=ld
5571 test -z "$ac_objext" && ac_objext=o
5572
5573 for cc_temp in $compiler""; do
5574   case $cc_temp in
5575     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5576     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5577     \-*) ;;
5578     *) break;;
5579   esac
5580 done
5581 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5582
5583
5584 # Only perform the check for file, if the check method requires it
5585 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5586 case $deplibs_check_method in
5587 file_magic*)
5588   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5589     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5590 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5591 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5592   echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594   case $MAGIC_CMD in
5595 [\\/*] |  ?:[\\/]*)
5596   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5597   ;;
5598 *)
5599   lt_save_MAGIC_CMD="$MAGIC_CMD"
5600   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5601   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5602   for ac_dir in $ac_dummy; do
5603     IFS="$lt_save_ifs"
5604     test -z "$ac_dir" && ac_dir=.
5605     if test -f $ac_dir/${ac_tool_prefix}file; then
5606       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5607       if test -n "$file_magic_test_file"; then
5608         case $deplibs_check_method in
5609         "file_magic "*)
5610           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5611           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5612           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5613             $EGREP "$file_magic_regex" > /dev/null; then
5614             :
5615           else
5616             cat <<_LT_EOF 1>&2
5617
5618 *** Warning: the command libtool uses to detect shared libraries,
5619 *** $file_magic_cmd, produces output that libtool cannot recognize.
5620 *** The result is that libtool may fail to recognize shared libraries
5621 *** as such.  This will affect the creation of libtool libraries that
5622 *** depend on shared libraries, but programs linked with such libtool
5623 *** libraries will work regardless of this problem.  Nevertheless, you
5624 *** may want to report the problem to your system manager and/or to
5625 *** bug-libtool@gnu.org
5626
5627 _LT_EOF
5628           fi ;;
5629         esac
5630       fi
5631       break
5632     fi
5633   done
5634   IFS="$lt_save_ifs"
5635   MAGIC_CMD="$lt_save_MAGIC_CMD"
5636   ;;
5637 esac
5638 fi
5639
5640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5641 if test -n "$MAGIC_CMD"; then
5642   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5643 echo "${ECHO_T}$MAGIC_CMD" >&6
5644 else
5645   echo "$as_me:$LINENO: result: no" >&5
5646 echo "${ECHO_T}no" >&6
5647 fi
5648
5649
5650
5651
5652
5653 if test -z "$lt_cv_path_MAGIC_CMD"; then
5654   if test -n "$ac_tool_prefix"; then
5655     echo "$as_me:$LINENO: checking for file" >&5
5656 echo $ECHO_N "checking for file... $ECHO_C" >&6
5657 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660   case $MAGIC_CMD in
5661 [\\/*] |  ?:[\\/]*)
5662   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5663   ;;
5664 *)
5665   lt_save_MAGIC_CMD="$MAGIC_CMD"
5666   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5667   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5668   for ac_dir in $ac_dummy; do
5669     IFS="$lt_save_ifs"
5670     test -z "$ac_dir" && ac_dir=.
5671     if test -f $ac_dir/file; then
5672       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5673       if test -n "$file_magic_test_file"; then
5674         case $deplibs_check_method in
5675         "file_magic "*)
5676           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5677           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5678           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5679             $EGREP "$file_magic_regex" > /dev/null; then
5680             :
5681           else
5682             cat <<_LT_EOF 1>&2
5683
5684 *** Warning: the command libtool uses to detect shared libraries,
5685 *** $file_magic_cmd, produces output that libtool cannot recognize.
5686 *** The result is that libtool may fail to recognize shared libraries
5687 *** as such.  This will affect the creation of libtool libraries that
5688 *** depend on shared libraries, but programs linked with such libtool
5689 *** libraries will work regardless of this problem.  Nevertheless, you
5690 *** may want to report the problem to your system manager and/or to
5691 *** bug-libtool@gnu.org
5692
5693 _LT_EOF
5694           fi ;;
5695         esac
5696       fi
5697       break
5698     fi
5699   done
5700   IFS="$lt_save_ifs"
5701   MAGIC_CMD="$lt_save_MAGIC_CMD"
5702   ;;
5703 esac
5704 fi
5705
5706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5707 if test -n "$MAGIC_CMD"; then
5708   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5709 echo "${ECHO_T}$MAGIC_CMD" >&6
5710 else
5711   echo "$as_me:$LINENO: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5713 fi
5714
5715
5716   else
5717     MAGIC_CMD=:
5718   fi
5719 fi
5720
5721   fi
5722   ;;
5723 esac
5724
5725 # Use C for the default configuration in the libtool script
5726
5727 lt_save_CC="$CC"
5728 ac_ext=c
5729 ac_cpp='$CPP $CPPFLAGS'
5730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733
5734
5735 # Source file extension for C test sources.
5736 ac_ext=c
5737
5738 # Object file extension for compiled C test sources.
5739 objext=o
5740 objext=$objext
5741
5742 # Code to be used in simple compile tests
5743 lt_simple_compile_test_code="int some_variable = 0;"
5744
5745 # Code to be used in simple link tests
5746 lt_simple_link_test_code='int main(){return(0);}'
5747
5748
5749
5750
5751
5752
5753
5754 # If no C compiler was specified, use CC.
5755 LTCC=${LTCC-"$CC"}
5756
5757 # If no C compiler flags were specified, use CFLAGS.
5758 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5759
5760 # Allow CC to be a program name with arguments.
5761 compiler=$CC
5762
5763 # Save the default compiler, since it gets overwritten when the other
5764 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5765 compiler_DEFAULT=$CC
5766
5767 # save warnings/boilerplate of simple test code
5768 ac_outfile=conftest.$ac_objext
5769 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5770 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5771 _lt_compiler_boilerplate=`cat conftest.err`
5772 $RM conftest*
5773
5774 ac_outfile=conftest.$ac_objext
5775 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5776 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5777 _lt_linker_boilerplate=`cat conftest.err`
5778 $RM conftest*
5779
5780
5781 ## CAVEAT EMPTOR:
5782 ## There is no encapsulation within the following macros, do not change
5783 ## the running order or otherwise move them around unless you know exactly
5784 ## what you are doing...
5785 if test -n "$compiler"; then
5786
5787 lt_prog_compiler_no_builtin_flag=
5788
5789 if test "$GCC" = yes; then
5790   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5791
5792   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5793 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5794 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5795   echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797   lt_cv_prog_compiler_rtti_exceptions=no
5798    ac_outfile=conftest.$ac_objext
5799    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5800    lt_compiler_flag="-fno-rtti -fno-exceptions"
5801    # Insert the option either (1) after the last *FLAGS variable, or
5802    # (2) before a word containing "conftest.", or (3) at the end.
5803    # Note that $ac_compile itself does not contain backslashes and begins
5804    # with a dollar sign (not a hyphen), so the echo should work correctly.
5805    # The option is referenced via a variable to avoid confusing sed.
5806    lt_compile=`echo "$ac_compile" | $SED \
5807    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5808    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5809    -e 's:$: $lt_compiler_flag:'`
5810    (eval echo "\"\$as_me:5810: $lt_compile\"" >&5)
5811    (eval "$lt_compile" 2>conftest.err)
5812    ac_status=$?
5813    cat conftest.err >&5
5814    echo "$as_me:5814: \$? = $ac_status" >&5
5815    if (exit $ac_status) && test -s "$ac_outfile"; then
5816      # The compiler can only warn and ignore the option if not recognized
5817      # So say no if there are warnings other than the usual output.
5818      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5819      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5820      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5821        lt_cv_prog_compiler_rtti_exceptions=yes
5822      fi
5823    fi
5824    $RM conftest*
5825
5826 fi
5827 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5828 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5829
5830 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5831     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5832 else
5833     :
5834 fi
5835
5836 fi
5837
5838
5839
5840
5841
5842
5843   lt_prog_compiler_wl=
5844 lt_prog_compiler_pic=
5845 lt_prog_compiler_static=
5846
5847 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5848 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5849
5850   if test "$GCC" = yes; then
5851     lt_prog_compiler_wl='-Wl,'
5852     lt_prog_compiler_static='-static'
5853
5854     case $host_os in
5855       aix*)
5856       # All AIX code is PIC.
5857       if test "$host_cpu" = ia64; then
5858         # AIX 5 now supports IA64 processor
5859         lt_prog_compiler_static='-Bstatic'
5860       fi
5861       ;;
5862
5863     amigaos*)
5864       if test "$host_cpu" = m68k; then
5865         # FIXME: we need at least 68020 code to build shared libraries, but
5866         # adding the `-m68020' flag to GCC prevents building anything better,
5867         # like `-m68040'.
5868         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5869       fi
5870       ;;
5871
5872     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5873       # PIC is the default for these OSes.
5874       ;;
5875
5876     mingw* | cygwin* | pw32* | os2*)
5877       # This hack is so that the source file can tell whether it is being
5878       # built for inclusion in a dll (and should export symbols for example).
5879       # Although the cygwin gcc ignores -fPIC, still need this for old-style
5880       # (--disable-auto-import) libraries
5881       lt_prog_compiler_pic='-DDLL_EXPORT'
5882       ;;
5883
5884     darwin* | rhapsody*)
5885       # PIC is the default on this platform
5886       # Common symbols not allowed in MH_DYLIB files
5887       lt_prog_compiler_pic='-fno-common'
5888       ;;
5889
5890     hpux*)
5891       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5892       # not for PA HP-UX.
5893       case $host_cpu in
5894       hppa*64*|ia64*)
5895         # +Z the default
5896         ;;
5897       *)
5898         lt_prog_compiler_pic='-fPIC'
5899         ;;
5900       esac
5901       ;;
5902
5903     interix[3-9]*)
5904       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5905       # Instead, we relocate shared libraries at runtime.
5906       ;;
5907
5908     msdosdjgpp*)
5909       # Just because we use GCC doesn't mean we suddenly get shared libraries
5910       # on systems that don't support them.
5911       lt_prog_compiler_can_build_shared=no
5912       enable_shared=no
5913       ;;
5914
5915     *nto* | *qnx*)
5916       # QNX uses GNU C++, but need to define -shared option too, otherwise
5917       # it will coredump.
5918       lt_prog_compiler_pic='-fPIC -shared'
5919       ;;
5920
5921     sysv4*MP*)
5922       if test -d /usr/nec; then
5923         lt_prog_compiler_pic=-Kconform_pic
5924       fi
5925       ;;
5926
5927     *)
5928       lt_prog_compiler_pic='-fPIC'
5929       ;;
5930     esac
5931   else
5932     # PORTME Check for flag to pass linker flags through the system compiler.
5933     case $host_os in
5934     aix*)
5935       lt_prog_compiler_wl='-Wl,'
5936       if test "$host_cpu" = ia64; then
5937         # AIX 5 now supports IA64 processor
5938         lt_prog_compiler_static='-Bstatic'
5939       else
5940         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5941       fi
5942       ;;
5943     darwin*)
5944       # PIC is the default on this platform
5945       # Common symbols not allowed in MH_DYLIB files
5946       case $cc_basename in
5947       xlc*)
5948         lt_prog_compiler_pic='-qnocommon'
5949         lt_prog_compiler_wl='-Wl,'
5950         ;;
5951       esac
5952       ;;
5953
5954     mingw* | cygwin* | pw32* | os2*)
5955       # This hack is so that the source file can tell whether it is being
5956       # built for inclusion in a dll (and should export symbols for example).
5957       lt_prog_compiler_pic='-DDLL_EXPORT'
5958       ;;
5959
5960     hpux9* | hpux10* | hpux11*)
5961       lt_prog_compiler_wl='-Wl,'
5962       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5963       # not for PA HP-UX.
5964       case $host_cpu in
5965       hppa*64*|ia64*)
5966         # +Z the default
5967         ;;
5968       *)
5969         lt_prog_compiler_pic='+Z'
5970         ;;
5971       esac
5972       # Is there a better lt_prog_compiler_static that works with the bundled CC?
5973       lt_prog_compiler_static='${wl}-a ${wl}archive'
5974       ;;
5975
5976     irix5* | irix6* | nonstopux*)
5977       lt_prog_compiler_wl='-Wl,'
5978       # PIC (with -KPIC) is the default.
5979       lt_prog_compiler_static='-non_shared'
5980       ;;
5981
5982     linux* | k*bsd*-gnu)
5983       case $cc_basename in
5984       icc* | ecc*)
5985         lt_prog_compiler_wl='-Wl,'
5986         lt_prog_compiler_pic='-KPIC'
5987         lt_prog_compiler_static='-static'
5988         ;;
5989       pgcc* | pgf77* | pgf90* | pgf95*)
5990         # Portland Group compilers (*not* the Pentium gcc compiler,
5991         # which looks to be a dead project)
5992         lt_prog_compiler_wl='-Wl,'
5993         lt_prog_compiler_pic='-fpic'
5994         lt_prog_compiler_static='-Bstatic'
5995         ;;
5996       ccc*)
5997         lt_prog_compiler_wl='-Wl,'
5998         # All Alpha code is PIC.
5999         lt_prog_compiler_static='-non_shared'
6000         ;;
6001       *)
6002         case `$CC -V 2>&1 | sed 5q` in
6003         *Sun\ C*)
6004           # Sun C 5.9
6005           lt_prog_compiler_pic='-KPIC'
6006           lt_prog_compiler_static='-Bstatic'
6007           lt_prog_compiler_wl='-Wl,'
6008           ;;
6009         *Sun\ F*)
6010           # Sun Fortran 8.3 passes all unrecognized flags to the linker
6011           lt_prog_compiler_pic='-KPIC'
6012           lt_prog_compiler_static='-Bstatic'
6013           lt_prog_compiler_wl=''
6014           ;;
6015         esac
6016         ;;
6017       esac
6018       ;;
6019
6020     newsos6)
6021       lt_prog_compiler_pic='-KPIC'
6022       lt_prog_compiler_static='-Bstatic'
6023       ;;
6024
6025     *nto* | *qnx*)
6026       # QNX uses GNU C++, but need to define -shared option too, otherwise
6027       # it will coredump.
6028       lt_prog_compiler_pic='-fPIC -shared'
6029       ;;
6030
6031     osf3* | osf4* | osf5*)
6032       lt_prog_compiler_wl='-Wl,'
6033       # All OSF/1 code is PIC.
6034       lt_prog_compiler_static='-non_shared'
6035       ;;
6036
6037     rdos*)
6038       lt_prog_compiler_static='-non_shared'
6039       ;;
6040
6041     solaris*)
6042       lt_prog_compiler_pic='-KPIC'
6043       lt_prog_compiler_static='-Bstatic'
6044       case $cc_basename in
6045       f77* | f90* | f95*)
6046         lt_prog_compiler_wl='-Qoption ld ';;
6047       *)
6048         lt_prog_compiler_wl='-Wl,';;
6049       esac
6050       ;;
6051
6052     sunos4*)
6053       lt_prog_compiler_wl='-Qoption ld '
6054       lt_prog_compiler_pic='-PIC'
6055       lt_prog_compiler_static='-Bstatic'
6056       ;;
6057
6058     sysv4 | sysv4.2uw2* | sysv4.3*)
6059       lt_prog_compiler_wl='-Wl,'
6060       lt_prog_compiler_pic='-KPIC'
6061       lt_prog_compiler_static='-Bstatic'
6062       ;;
6063
6064     sysv4*MP*)
6065       if test -d /usr/nec ;then
6066         lt_prog_compiler_pic='-Kconform_pic'
6067         lt_prog_compiler_static='-Bstatic'
6068       fi
6069       ;;
6070
6071     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6072       lt_prog_compiler_wl='-Wl,'
6073       lt_prog_compiler_pic='-KPIC'
6074       lt_prog_compiler_static='-Bstatic'
6075       ;;
6076
6077     unicos*)
6078       lt_prog_compiler_wl='-Wl,'
6079       lt_prog_compiler_can_build_shared=no
6080       ;;
6081
6082     uts4*)
6083       lt_prog_compiler_pic='-pic'
6084       lt_prog_compiler_static='-Bstatic'
6085       ;;
6086
6087     *)
6088       lt_prog_compiler_can_build_shared=no
6089       ;;
6090     esac
6091   fi
6092
6093 case $host_os in
6094   # For platforms which do not support PIC, -DPIC is meaningless:
6095   *djgpp*)
6096     lt_prog_compiler_pic=
6097     ;;
6098   *)
6099     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6100     ;;
6101 esac
6102 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6103 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6104
6105
6106
6107
6108
6109
6110 #
6111 # Check to make sure the PIC flag actually works.
6112 #
6113 if test -n "$lt_prog_compiler_pic"; then
6114   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6115 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6116 if test "${lt_prog_compiler_pic_works+set}" = set; then
6117   echo $ECHO_N "(cached) $ECHO_C" >&6
6118 else
6119   lt_prog_compiler_pic_works=no
6120    ac_outfile=conftest.$ac_objext
6121    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6122    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6123    # Insert the option either (1) after the last *FLAGS variable, or
6124    # (2) before a word containing "conftest.", or (3) at the end.
6125    # Note that $ac_compile itself does not contain backslashes and begins
6126    # with a dollar sign (not a hyphen), so the echo should work correctly.
6127    # The option is referenced via a variable to avoid confusing sed.
6128    lt_compile=`echo "$ac_compile" | $SED \
6129    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6130    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6131    -e 's:$: $lt_compiler_flag:'`
6132    (eval echo "\"\$as_me:6132: $lt_compile\"" >&5)
6133    (eval "$lt_compile" 2>conftest.err)
6134    ac_status=$?
6135    cat conftest.err >&5
6136    echo "$as_me:6136: \$? = $ac_status" >&5
6137    if (exit $ac_status) && test -s "$ac_outfile"; then
6138      # The compiler can only warn and ignore the option if not recognized
6139      # So say no if there are warnings other than the usual output.
6140      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6141      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6142      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6143        lt_prog_compiler_pic_works=yes
6144      fi
6145    fi
6146    $RM conftest*
6147
6148 fi
6149 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6150 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6151
6152 if test x"$lt_prog_compiler_pic_works" = xyes; then
6153     case $lt_prog_compiler_pic in
6154      "" | " "*) ;;
6155      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6156      esac
6157 else
6158     lt_prog_compiler_pic=
6159      lt_prog_compiler_can_build_shared=no
6160 fi
6161
6162 fi
6163
6164
6165
6166
6167
6168
6169 #
6170 # Check to make sure the static flag actually works.
6171 #
6172 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6173 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6174 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6175 if test "${lt_prog_compiler_static_works+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178   lt_prog_compiler_static_works=no
6179    save_LDFLAGS="$LDFLAGS"
6180    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6181    echo "$lt_simple_link_test_code" > conftest.$ac_ext
6182    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6183      # The linker can only warn and ignore the option if not recognized
6184      # So say no if there are warnings
6185      if test -s conftest.err; then
6186        # Append any errors to the config.log.
6187        cat conftest.err 1>&5
6188        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6189        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6190        if diff conftest.exp conftest.er2 >/dev/null; then
6191          lt_prog_compiler_static_works=yes
6192        fi
6193      else
6194        lt_prog_compiler_static_works=yes
6195      fi
6196    fi
6197    $RM conftest*
6198    LDFLAGS="$save_LDFLAGS"
6199
6200 fi
6201 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6202 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6203
6204 if test x"$lt_prog_compiler_static_works" = xyes; then
6205     :
6206 else
6207     lt_prog_compiler_static=
6208 fi
6209
6210
6211
6212
6213
6214
6215
6216   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6217 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6218 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6219   echo $ECHO_N "(cached) $ECHO_C" >&6
6220 else
6221   lt_cv_prog_compiler_c_o=no
6222    $RM -r conftest 2>/dev/null
6223    mkdir conftest
6224    cd conftest
6225    mkdir out
6226    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6227
6228    lt_compiler_flag="-o out/conftest2.$ac_objext"
6229    # Insert the option either (1) after the last *FLAGS variable, or
6230    # (2) before a word containing "conftest.", or (3) at the end.
6231    # Note that $ac_compile itself does not contain backslashes and begins
6232    # with a dollar sign (not a hyphen), so the echo should work correctly.
6233    lt_compile=`echo "$ac_compile" | $SED \
6234    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6235    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6236    -e 's:$: $lt_compiler_flag:'`
6237    (eval echo "\"\$as_me:6237: $lt_compile\"" >&5)
6238    (eval "$lt_compile" 2>out/conftest.err)
6239    ac_status=$?
6240    cat out/conftest.err >&5
6241    echo "$as_me:6241: \$? = $ac_status" >&5
6242    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6243    then
6244      # The compiler can only warn and ignore the option if not recognized
6245      # So say no if there are warnings
6246      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6247      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6248      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6249        lt_cv_prog_compiler_c_o=yes
6250      fi
6251    fi
6252    chmod u+w . 2>&5
6253    $RM conftest*
6254    # SGI C++ compiler will create directory out/ii_files/ for
6255    # template instantiation
6256    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6257    $RM out/* && rmdir out
6258    cd ..
6259    $RM -r conftest
6260    $RM conftest*
6261
6262 fi
6263 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6264 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6265
6266
6267
6268
6269
6270
6271   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6272 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6273 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6274   echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276   lt_cv_prog_compiler_c_o=no
6277    $RM -r conftest 2>/dev/null
6278    mkdir conftest
6279    cd conftest
6280    mkdir out
6281    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6282
6283    lt_compiler_flag="-o out/conftest2.$ac_objext"
6284    # Insert the option either (1) after the last *FLAGS variable, or
6285    # (2) before a word containing "conftest.", or (3) at the end.
6286    # Note that $ac_compile itself does not contain backslashes and begins
6287    # with a dollar sign (not a hyphen), so the echo should work correctly.
6288    lt_compile=`echo "$ac_compile" | $SED \
6289    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6290    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6291    -e 's:$: $lt_compiler_flag:'`
6292    (eval echo "\"\$as_me:6292: $lt_compile\"" >&5)
6293    (eval "$lt_compile" 2>out/conftest.err)
6294    ac_status=$?
6295    cat out/conftest.err >&5
6296    echo "$as_me:6296: \$? = $ac_status" >&5
6297    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6298    then
6299      # The compiler can only warn and ignore the option if not recognized
6300      # So say no if there are warnings
6301      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6302      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6303      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6304        lt_cv_prog_compiler_c_o=yes
6305      fi
6306    fi
6307    chmod u+w . 2>&5
6308    $RM conftest*
6309    # SGI C++ compiler will create directory out/ii_files/ for
6310    # template instantiation
6311    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6312    $RM out/* && rmdir out
6313    cd ..
6314    $RM -r conftest
6315    $RM conftest*
6316
6317 fi
6318 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6319 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6320
6321
6322
6323
6324 hard_links="nottested"
6325 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6326   # do not overwrite the value of need_locks provided by the user
6327   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6328 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6329   hard_links=yes
6330   $RM conftest*
6331   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6332   touch conftest.a
6333   ln conftest.a conftest.b 2>&5 || hard_links=no
6334   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6335   echo "$as_me:$LINENO: result: $hard_links" >&5
6336 echo "${ECHO_T}$hard_links" >&6
6337   if test "$hard_links" = no; then
6338     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6339 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6340     need_locks=warn
6341   fi
6342 else
6343   need_locks=no
6344 fi
6345
6346
6347
6348
6349
6350
6351   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6352 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6353
6354   runpath_var=
6355   allow_undefined_flag=
6356   always_export_symbols=no
6357   archive_cmds=
6358   archive_expsym_cmds=
6359   compiler_needs_object=no
6360   enable_shared_with_static_runtimes=no
6361   export_dynamic_flag_spec=
6362   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6363   hardcode_automatic=no
6364   hardcode_direct=no
6365   hardcode_direct_absolute=no
6366   hardcode_libdir_flag_spec=
6367   hardcode_libdir_flag_spec_ld=
6368   hardcode_libdir_separator=
6369   hardcode_minus_L=no
6370   hardcode_shlibpath_var=unsupported
6371   inherit_rpath=no
6372   link_all_deplibs=unknown
6373   module_cmds=
6374   module_expsym_cmds=
6375   old_archive_from_new_cmds=
6376   old_archive_from_expsyms_cmds=
6377   thread_safe_flag_spec=
6378   whole_archive_flag_spec=
6379   # include_expsyms should be a list of space-separated symbols to be *always*
6380   # included in the symbol list
6381   include_expsyms=
6382   # exclude_expsyms can be an extended regexp of symbols to exclude
6383   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6384   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6385   # as well as any symbol that contains `d'.
6386   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6387   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6388   # platforms (ab)use it in PIC code, but their linkers get confused if
6389   # the symbol is explicitly referenced.  Since portable code cannot
6390   # rely on this symbol name, it's probably fine to never include it in
6391   # preloaded symbol tables.
6392   extract_expsyms_cmds=
6393
6394   case $host_os in
6395   cygwin* | mingw* | pw32*)
6396     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6397     # When not using gcc, we currently assume that we are using
6398     # Microsoft Visual C++.
6399     if test "$GCC" != yes; then
6400       with_gnu_ld=no
6401     fi
6402     ;;
6403   interix*)
6404     # we just hope/assume this is gcc and not c89 (= MSVC++)
6405     with_gnu_ld=yes
6406     ;;
6407   openbsd*)
6408     with_gnu_ld=no
6409     ;;
6410   esac
6411
6412   ld_shlibs=yes
6413   if test "$with_gnu_ld" = yes; then
6414     # If archive_cmds runs LD, not CC, wlarc should be empty
6415     wlarc='${wl}'
6416
6417     # Set some defaults for GNU ld with shared library support. These
6418     # are reset later if shared libraries are not supported. Putting them
6419     # here allows them to be overridden if necessary.
6420     runpath_var=LD_RUN_PATH
6421     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6422     export_dynamic_flag_spec='${wl}--export-dynamic'
6423     # ancient GNU ld didn't support --whole-archive et. al.
6424     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6425       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6426     else
6427       whole_archive_flag_spec=
6428     fi
6429     supports_anon_versioning=no
6430     case `$LD -v 2>&1` in
6431       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6432       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6433       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6434       *\ 2.11.*) ;; # other 2.11 versions
6435       *) supports_anon_versioning=yes ;;
6436     esac
6437
6438     # See if GNU ld supports shared libraries.
6439     case $host_os in
6440     aix3* | aix4* | aix5*)
6441       # On AIX/PPC, the GNU linker is very broken
6442       if test "$host_cpu" != ia64; then
6443         ld_shlibs=no
6444         cat <<_LT_EOF 1>&2
6445
6446 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6447 *** to be unable to reliably create shared libraries on AIX.
6448 *** Therefore, libtool is disabling shared libraries support.  If you
6449 *** really care for shared libraries, you may want to modify your PATH
6450 *** so that a non-GNU linker is found, and then restart.
6451
6452 _LT_EOF
6453       fi
6454       ;;
6455
6456     amigaos*)
6457       if test "$host_cpu" = m68k; then
6458         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)'
6459         hardcode_libdir_flag_spec='-L$libdir'
6460         hardcode_minus_L=yes
6461       fi
6462
6463       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6464       # that the semantics of dynamic libraries on AmigaOS, at least up
6465       # to version 4, is to share data among multiple programs linked
6466       # with the same dynamic library.  Since this doesn't match the
6467       # behavior of shared libraries on other platforms, we can't use
6468       # them.
6469       ld_shlibs=no
6470       ;;
6471
6472     beos*)
6473       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6474         allow_undefined_flag=unsupported
6475         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6476         # support --undefined.  This deserves some investigation.  FIXME
6477         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6478       else
6479         ld_shlibs=no
6480       fi
6481       ;;
6482
6483     cygwin* | mingw* | pw32*)
6484       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6485       # as there is no search path for DLLs.
6486       hardcode_libdir_flag_spec='-L$libdir'
6487       allow_undefined_flag=unsupported
6488       always_export_symbols=no
6489       enable_shared_with_static_runtimes=yes
6490       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6491
6492       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6493         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6494         # If the export-symbols file already is a .def file (1st line
6495         # is EXPORTS), use it as is; otherwise, prepend...
6496         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6497           cp $export_symbols $output_objdir/$soname.def;
6498         else
6499           echo EXPORTS > $output_objdir/$soname.def;
6500           cat $export_symbols >> $output_objdir/$soname.def;
6501         fi~
6502         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6503       else
6504         ld_shlibs=no
6505       fi
6506       ;;
6507
6508     interix[3-9]*)
6509       hardcode_direct=no
6510       hardcode_shlibpath_var=no
6511       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6512       export_dynamic_flag_spec='${wl}-E'
6513       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6514       # Instead, shared libraries are loaded at an image base (0x10000000 by
6515       # default) and relocated if they conflict, which is a slow very memory
6516       # consuming and fragmenting process.  To avoid this, we pick a random,
6517       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6518       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6519       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6520       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'
6521       ;;
6522
6523     gnu* | linux* | tpf* | k*bsd*-gnu)
6524       tmp_diet=no
6525       if test "$host_os" = linux-dietlibc; then
6526         case $cc_basename in
6527           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
6528         esac
6529       fi
6530       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6531          && test "$tmp_diet" = no
6532       then
6533         tmp_addflag=
6534         case $cc_basename,$host_cpu in
6535         pgcc*)                          # Portland Group C compiler
6536           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'
6537           tmp_addflag=' $pic_flag'
6538           ;;
6539         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6540           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'
6541           tmp_addflag=' $pic_flag -Mnomain' ;;
6542         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
6543           tmp_addflag=' -i_dynamic' ;;
6544         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6545           tmp_addflag=' -i_dynamic -nofor_main' ;;
6546         ifc* | ifort*)                  # Intel Fortran compiler
6547           tmp_addflag=' -nofor_main' ;;
6548         esac
6549         case `$CC -V 2>&1 | sed 5q` in
6550         *Sun\ C*)                       # Sun C 5.9
6551           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'
6552           compiler_needs_object=yes
6553           tmp_sharedflag='-G' ;;
6554         *Sun\ F*)                       # Sun Fortran 8.3
6555           tmp_sharedflag='-G' ;;
6556         *)
6557           tmp_sharedflag='-shared' ;;
6558         esac
6559         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6560
6561         if test "x$supports_anon_versioning" = xyes; then
6562           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6563             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6564             echo "local: *; };" >> $output_objdir/$libname.ver~
6565             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6566         fi
6567       else
6568         ld_shlibs=no
6569       fi
6570       ;;
6571
6572     netbsd*)
6573       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6574         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6575         wlarc=
6576       else
6577         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6578         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6579       fi
6580       ;;
6581
6582     solaris*)
6583       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6584         ld_shlibs=no
6585         cat <<_LT_EOF 1>&2
6586
6587 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6588 *** create shared libraries on Solaris systems.  Therefore, libtool
6589 *** is disabling shared libraries support.  We urge you to upgrade GNU
6590 *** binutils to release 2.9.1 or newer.  Another option is to modify
6591 *** your PATH or compiler configuration so that the native linker is
6592 *** used, and then restart.
6593
6594 _LT_EOF
6595       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6596         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6597         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6598       else
6599         ld_shlibs=no
6600       fi
6601       ;;
6602
6603     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6604       case `$LD -v 2>&1` in
6605         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6606         ld_shlibs=no
6607         cat <<_LT_EOF 1>&2
6608
6609 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6610 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6611 *** is disabling shared libraries support.  We urge you to upgrade GNU
6612 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6613 *** your PATH or compiler configuration so that the native linker is
6614 *** used, and then restart.
6615
6616 _LT_EOF
6617         ;;
6618         *)
6619           # For security reasons, it is highly recommended that you always
6620           # use absolute paths for naming shared libraries, and exclude the
6621           # DT_RUNPATH tag from executables and libraries.  But doing so
6622           # requires that you compile everything twice, which is a pain.
6623           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6624             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6625             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6626             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6627           else
6628             ld_shlibs=no
6629           fi
6630         ;;
6631       esac
6632       ;;
6633
6634     sunos4*)
6635       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6636       wlarc=
6637       hardcode_direct=yes
6638       hardcode_shlibpath_var=no
6639       ;;
6640
6641     *)
6642       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6643         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6644         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6645       else
6646         ld_shlibs=no
6647       fi
6648       ;;
6649     esac
6650
6651     if test "$ld_shlibs" = no; then
6652       runpath_var=
6653       hardcode_libdir_flag_spec=
6654       export_dynamic_flag_spec=
6655       whole_archive_flag_spec=
6656     fi
6657   else
6658     # PORTME fill in a description of your system's linker (not GNU ld)
6659     case $host_os in
6660     aix3*)
6661       allow_undefined_flag=unsupported
6662       always_export_symbols=yes
6663       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'
6664       # Note: this linker hardcodes the directories in LIBPATH if there
6665       # are no directories specified by -L.
6666       hardcode_minus_L=yes
6667       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6668         # Neither direct hardcoding nor static linking is supported with a
6669         # broken collect2.
6670         hardcode_direct=unsupported
6671       fi
6672       ;;
6673
6674     aix4* | aix5*)
6675       if test "$host_cpu" = ia64; then
6676         # On IA64, the linker does run time linking by default, so we don't
6677         # have to do anything special.
6678         aix_use_runtimelinking=no
6679         exp_sym_flag='-Bexport'
6680         no_entry_flag=""
6681       else
6682         # If we're using GNU nm, then we don't want the "-C" option.
6683         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6684         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6685           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'
6686         else
6687           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'
6688         fi
6689         aix_use_runtimelinking=no
6690
6691         # Test if we are trying to use run time linking or normal
6692         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6693         # need to do runtime linking.
6694         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6695           for ld_flag in $LDFLAGS; do
6696           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6697             aix_use_runtimelinking=yes
6698             break
6699           fi
6700           done
6701           ;;
6702         esac
6703
6704         exp_sym_flag='-bexport'
6705         no_entry_flag='-bnoentry'
6706       fi
6707
6708       # When large executables or shared objects are built, AIX ld can
6709       # have problems creating the table of contents.  If linking a library
6710       # or program results in "error TOC overflow" add -mminimal-toc to
6711       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6712       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6713
6714       archive_cmds=''
6715       hardcode_direct=yes
6716       hardcode_direct_absolute=yes
6717       hardcode_libdir_separator=':'
6718       link_all_deplibs=yes
6719       file_list_spec='${wl}-f,'
6720
6721       if test "$GCC" = yes; then
6722         case $host_os in aix4.[012]|aix4.[012].*)
6723         # We only want to do this on AIX 4.2 and lower, the check
6724         # below for broken collect2 doesn't work under 4.3+
6725           collect2name=`${CC} -print-prog-name=collect2`
6726           if test -f "$collect2name" &&
6727            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6728           then
6729           # We have reworked collect2
6730           :
6731           else
6732           # We have old collect2
6733           hardcode_direct=unsupported
6734           # It fails to find uninstalled libraries when the uninstalled
6735           # path is not listed in the libpath.  Setting hardcode_minus_L
6736           # to unsupported forces relinking
6737           hardcode_minus_L=yes
6738           hardcode_libdir_flag_spec='-L$libdir'
6739           hardcode_libdir_separator=
6740           fi
6741           ;;
6742         esac
6743         shared_flag='-shared'
6744         if test "$aix_use_runtimelinking" = yes; then
6745           shared_flag="$shared_flag "'${wl}-G'
6746         fi
6747       else
6748         # not using gcc
6749         if test "$host_cpu" = ia64; then
6750         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6751         # chokes on -Wl,-G. The following line is correct:
6752           shared_flag='-G'
6753         else
6754           if test "$aix_use_runtimelinking" = yes; then
6755             shared_flag='${wl}-G'
6756           else
6757             shared_flag='${wl}-bM:SRE'
6758           fi
6759         fi
6760       fi
6761
6762       # It seems that -bexpall does not export symbols beginning with
6763       # underscore (_), so it is better to generate a list of symbols to export.
6764       always_export_symbols=yes
6765       if test "$aix_use_runtimelinking" = yes; then
6766         # Warning - without using the other runtime loading flags (-brtl),
6767         # -berok will link without error, but may produce a broken library.
6768         allow_undefined_flag='-berok'
6769         # Determine the default libpath from the value encoded in an
6770         # empty executable.
6771         cat >conftest.$ac_ext <<_ACEOF
6772 /* confdefs.h.  */
6773 _ACEOF
6774 cat confdefs.h >>conftest.$ac_ext
6775 cat >>conftest.$ac_ext <<_ACEOF
6776 /* end confdefs.h.  */
6777
6778 int
6779 main ()
6780 {
6781
6782   ;
6783   return 0;
6784 }
6785 _ACEOF
6786 rm -f conftest.$ac_objext conftest$ac_exeext
6787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6788   (eval $ac_link) 2>conftest.er1
6789   ac_status=$?
6790   grep -v '^ *+' conftest.er1 >conftest.err
6791   rm -f conftest.er1
6792   cat conftest.err >&5
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); } &&
6795          { ac_try='test -z "$ac_c_werror_flag"
6796                          || test ! -s conftest.err'
6797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798   (eval $ac_try) 2>&5
6799   ac_status=$?
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); }; } &&
6802          { ac_try='test -s conftest$ac_exeext'
6803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6804   (eval $ac_try) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); }; }; then
6808
6809 lt_aix_libpath_sed='
6810     /Import File Strings/,/^$/ {
6811         /^0/ {
6812             s/^0  *\(.*\)$/\1/
6813             p
6814         }
6815     }'
6816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6817 # Check for a 64-bit object if we didn't find anything.
6818 if test -z "$aix_libpath"; then
6819   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6820 fi
6821 else
6822   echo "$as_me: failed program was:" >&5
6823 sed 's/^/| /' conftest.$ac_ext >&5
6824
6825 fi
6826 rm -f conftest.err conftest.$ac_objext \
6827       conftest$ac_exeext conftest.$ac_ext
6828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6829
6830         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6831         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"
6832       else
6833         if test "$host_cpu" = ia64; then
6834           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6835           allow_undefined_flag="-z nodefs"
6836           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"
6837         else
6838          # Determine the default libpath from the value encoded in an
6839          # empty executable.
6840          cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h.  */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h.  */
6846
6847 int
6848 main ()
6849 {
6850
6851   ;
6852   return 0;
6853 }
6854 _ACEOF
6855 rm -f conftest.$ac_objext conftest$ac_exeext
6856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6857   (eval $ac_link) 2>conftest.er1
6858   ac_status=$?
6859   grep -v '^ *+' conftest.er1 >conftest.err
6860   rm -f conftest.er1
6861   cat conftest.err >&5
6862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863   (exit $ac_status); } &&
6864          { ac_try='test -z "$ac_c_werror_flag"
6865                          || test ! -s conftest.err'
6866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6867   (eval $ac_try) 2>&5
6868   ac_status=$?
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); }; } &&
6871          { ac_try='test -s conftest$ac_exeext'
6872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6873   (eval $ac_try) 2>&5
6874   ac_status=$?
6875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876   (exit $ac_status); }; }; then
6877
6878 lt_aix_libpath_sed='
6879     /Import File Strings/,/^$/ {
6880         /^0/ {
6881             s/^0  *\(.*\)$/\1/
6882             p
6883         }
6884     }'
6885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6886 # Check for a 64-bit object if we didn't find anything.
6887 if test -z "$aix_libpath"; then
6888   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6889 fi
6890 else
6891   echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6893
6894 fi
6895 rm -f conftest.err conftest.$ac_objext \
6896       conftest$ac_exeext conftest.$ac_ext
6897 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6898
6899          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6900           # Warning - without using the other run time loading flags,
6901           # -berok will link without error, but may produce a broken library.
6902           no_undefined_flag=' ${wl}-bernotok'
6903           allow_undefined_flag=' ${wl}-berok'
6904           # Exported symbols can be pulled into shared objects from archives
6905           whole_archive_flag_spec='$convenience'
6906           archive_cmds_need_lc=yes
6907           # This is similar to how AIX traditionally builds its shared libraries.
6908           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'
6909         fi
6910       fi
6911       ;;
6912
6913     amigaos*)
6914       if test "$host_cpu" = m68k; then
6915         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)'
6916         hardcode_libdir_flag_spec='-L$libdir'
6917         hardcode_minus_L=yes
6918       fi
6919       # see comment about different semantics on the GNU ld section
6920       ld_shlibs=no
6921       ;;
6922
6923     bsdi[45]*)
6924       export_dynamic_flag_spec=-rdynamic
6925       ;;
6926
6927     cygwin* | mingw* | pw32*)
6928       # When not using gcc, we currently assume that we are using
6929       # Microsoft Visual C++.
6930       # hardcode_libdir_flag_spec is actually meaningless, as there is
6931       # no search path for DLLs.
6932       hardcode_libdir_flag_spec=' '
6933       allow_undefined_flag=unsupported
6934       # Tell ltmain to make .lib files, not .a files.
6935       libext=lib
6936       # Tell ltmain to make .dll files, not .so files.
6937       shrext_cmds=".dll"
6938       # FIXME: Setting linknames here is a bad hack.
6939       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6940       # The linker will automatically build a .lib file if we build a DLL.
6941       old_archive_from_new_cmds='true'
6942       # FIXME: Should let the user specify the lib program.
6943       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
6944       fix_srcfile_path='`cygpath -w "$srcfile"`'
6945       enable_shared_with_static_runtimes=yes
6946       ;;
6947
6948     darwin* | rhapsody*)
6949       case $host_os in
6950       rhapsody* | darwin1.[012])
6951         allow_undefined_flag='${wl}-undefined ${wl}suppress'
6952         ;;
6953       *) # Darwin 1.3 on
6954         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
6955         10.[012])
6956           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6957           ;;
6958         10.*)
6959           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6960           ;;
6961         esac
6962         ;;
6963       esac
6964       archive_cmds_need_lc=no
6965       hardcode_direct=no
6966       hardcode_automatic=yes
6967       hardcode_shlibpath_var=unsupported
6968       whole_archive_flag_spec=''
6969       link_all_deplibs=yes
6970       if test "$GCC" = yes ; then
6971         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6972   echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974   lt_cv_apple_cc_single_mod=no
6975         if test -z "${LT_MULTI_MODULE}"; then
6976           # By default we will add the -single_module flag. You can override
6977           # by either setting the environment variable LT_MULTI_MODULE
6978           # non-empty at configure time, or by adding -multi-module to the
6979           # link flags.
6980           echo "int foo(void){return 1;}" > conftest.c
6981           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6982               -dynamiclib ${wl}-single_module conftest.c
6983           if test -f libconftest.dylib; then
6984               lt_cv_apple_cc_single_mod=yes
6985               rm libconftest.dylib
6986           fi
6987           rm conftest.$ac_ext
6988         fi
6989 fi
6990
6991         output_verbose_link_cmd=echo
6992         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
6993           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6994           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}'
6995         else
6996           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6997           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}'
6998         fi
6999         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7000         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}'
7001       else
7002         case $cc_basename in
7003         xlc*)
7004           output_verbose_link_cmd=echo
7005           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7006           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7007           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7008           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}'
7009           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}'
7010           ;;
7011         *)
7012           ld_shlibs=no
7013           ;;
7014         esac
7015       fi
7016       ;;
7017
7018     dgux*)
7019       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7020       hardcode_libdir_flag_spec='-L$libdir'
7021       hardcode_shlibpath_var=no
7022       ;;
7023
7024     freebsd1*)
7025       ld_shlibs=no
7026       ;;
7027
7028     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7029     # support.  Future versions do this automatically, but an explicit c++rt0.o
7030     # does not break anything, and helps significantly (at the cost of a little
7031     # extra space).
7032     freebsd2.2*)
7033       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7034       hardcode_libdir_flag_spec='-R$libdir'
7035       hardcode_direct=yes
7036       hardcode_shlibpath_var=no
7037       ;;
7038
7039     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7040     freebsd2*)
7041       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7042       hardcode_direct=yes
7043       hardcode_minus_L=yes
7044       hardcode_shlibpath_var=no
7045       ;;
7046
7047     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7048     freebsd* | dragonfly*)
7049       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7050       hardcode_libdir_flag_spec='-R$libdir'
7051       hardcode_direct=yes
7052       hardcode_shlibpath_var=no
7053       ;;
7054
7055     hpux9*)
7056       if test "$GCC" = yes; then
7057         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'
7058       else
7059         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'
7060       fi
7061       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7062       hardcode_libdir_separator=:
7063       hardcode_direct=yes
7064
7065       # hardcode_minus_L: Not really in the search PATH,
7066       # but as the default location of the library.
7067       hardcode_minus_L=yes
7068       export_dynamic_flag_spec='${wl}-E'
7069       ;;
7070
7071     hpux10*)
7072       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7073         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7074       else
7075         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7076       fi
7077       if test "$with_gnu_ld" = no; then
7078         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7079         hardcode_libdir_flag_spec_ld='+b $libdir'
7080         hardcode_libdir_separator=:
7081         hardcode_direct=yes
7082         hardcode_direct_absolute=yes
7083         export_dynamic_flag_spec='${wl}-E'
7084         # hardcode_minus_L: Not really in the search PATH,
7085         # but as the default location of the library.
7086         hardcode_minus_L=yes
7087       fi
7088       ;;
7089
7090     hpux11*)
7091       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7092         case $host_cpu in
7093         hppa*64*)
7094           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7095           ;;
7096         ia64*)
7097           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7098           ;;
7099         *)
7100           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7101           ;;
7102         esac
7103       else
7104         case $host_cpu in
7105         hppa*64*)
7106           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7107           ;;
7108         ia64*)
7109           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7110           ;;
7111         *)
7112           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7113           ;;
7114         esac
7115       fi
7116       if test "$with_gnu_ld" = no; then
7117         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7118         hardcode_libdir_separator=:
7119
7120         case $host_cpu in
7121         hppa*64*|ia64*)
7122           hardcode_direct=no
7123           hardcode_shlibpath_var=no
7124           ;;
7125         *)
7126           hardcode_direct=yes
7127           hardcode_direct_absolute=yes
7128           export_dynamic_flag_spec='${wl}-E'
7129
7130           # hardcode_minus_L: Not really in the search PATH,
7131           # but as the default location of the library.
7132           hardcode_minus_L=yes
7133           ;;
7134         esac
7135       fi
7136       ;;
7137
7138     irix5* | irix6* | nonstopux*)
7139       if test "$GCC" = yes; then
7140         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'
7141         # Try to use the -exported_symbol ld option, if it does not
7142         # work, assume that -exports_file does not work either and
7143         # implicitly export all symbols.
7144         save_LDFLAGS="$LDFLAGS"
7145         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7146         cat >conftest.$ac_ext <<_ACEOF
7147 int foo(void) {}
7148 _ACEOF
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151   (eval $ac_link) 2>conftest.er1
7152   ac_status=$?
7153   grep -v '^ *+' conftest.er1 >conftest.err
7154   rm -f conftest.er1
7155   cat conftest.err >&5
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); } &&
7158          { ac_try='test -z "$ac_c_werror_flag"
7159                          || test ! -s conftest.err'
7160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161   (eval $ac_try) 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); }; } &&
7165          { ac_try='test -s conftest$ac_exeext'
7166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167   (eval $ac_try) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); }; }; then
7171   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'
7172
7173 else
7174   echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7176
7177 fi
7178 rm -f conftest.err conftest.$ac_objext \
7179       conftest$ac_exeext conftest.$ac_ext
7180         LDFLAGS="$save_LDFLAGS"
7181       else
7182         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'
7183         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'
7184       fi
7185       archive_cmds_need_lc='no'
7186       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7187       hardcode_libdir_separator=:
7188       inherit_rpath=yes
7189       link_all_deplibs=yes
7190       ;;
7191
7192     netbsd*)
7193       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7194         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7195       else
7196         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7197       fi
7198       hardcode_libdir_flag_spec='-R$libdir'
7199       hardcode_direct=yes
7200       hardcode_shlibpath_var=no
7201       ;;
7202
7203     newsos6)
7204       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7205       hardcode_direct=yes
7206       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7207       hardcode_libdir_separator=:
7208       hardcode_shlibpath_var=no
7209       ;;
7210
7211     *nto* | *qnx*)
7212       ;;
7213
7214     openbsd*)
7215       hardcode_direct=yes
7216       hardcode_shlibpath_var=no
7217       hardcode_direct_absolute=yes
7218       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7219         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7220         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7221         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7222         export_dynamic_flag_spec='${wl}-E'
7223       else
7224         case $host_os in
7225         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7226           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7227           hardcode_libdir_flag_spec='-R$libdir'
7228           ;;
7229         *)
7230           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7231           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7232           ;;
7233         esac
7234       fi
7235       ;;
7236
7237     os2*)
7238       hardcode_libdir_flag_spec='-L$libdir'
7239       hardcode_minus_L=yes
7240       allow_undefined_flag=unsupported
7241       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'
7242       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7243       ;;
7244
7245     osf3*)
7246       if test "$GCC" = yes; then
7247         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7248         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'
7249       else
7250         allow_undefined_flag=' -expect_unresolved \*'
7251         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'
7252       fi
7253       archive_cmds_need_lc='no'
7254       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7255       hardcode_libdir_separator=:
7256       ;;
7257
7258     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7259       if test "$GCC" = yes; then
7260         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7261         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'
7262         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7263       else
7264         allow_undefined_flag=' -expect_unresolved \*'
7265         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'
7266         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~
7267         $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'
7268
7269         # Both c and cxx compiler support -rpath directly
7270         hardcode_libdir_flag_spec='-rpath $libdir'
7271       fi
7272       archive_cmds_need_lc='no'
7273       hardcode_libdir_separator=:
7274       ;;
7275
7276     solaris*)
7277       no_undefined_flag=' -z defs'
7278       if test "$GCC" = yes; then
7279         wlarc='${wl}'
7280         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7281         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7282           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7283       else
7284         case `$CC -V 2>&1` in
7285         *"Compilers 5.0"*)
7286           wlarc=''
7287           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7288           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7289           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7290           ;;
7291         *)
7292           wlarc='${wl}'
7293           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7294           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7295           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7296           ;;
7297         esac
7298       fi
7299       hardcode_libdir_flag_spec='-R$libdir'
7300       hardcode_shlibpath_var=no
7301       case $host_os in
7302       solaris2.[0-5] | solaris2.[0-5].*) ;;
7303       *)
7304         # The compiler driver will combine and reorder linker options,
7305         # but understands `-z linker_flag'.  GCC discards it without `$wl',
7306         # but is careful enough not to reorder.
7307         # Supported since Solaris 2.6 (maybe 2.5.1?)
7308         if test "$GCC" = yes; then
7309           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7310         else
7311           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7312         fi
7313         ;;
7314       esac
7315       link_all_deplibs=yes
7316       ;;
7317
7318     sunos4*)
7319       if test "x$host_vendor" = xsequent; then
7320         # Use $CC to link under sequent, because it throws in some extra .o
7321         # files that make .init and .fini sections work.
7322         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7323       else
7324         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7325       fi
7326       hardcode_libdir_flag_spec='-L$libdir'
7327       hardcode_direct=yes
7328       hardcode_minus_L=yes
7329       hardcode_shlibpath_var=no
7330       ;;
7331
7332     sysv4)
7333       case $host_vendor in
7334         sni)
7335           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7336           hardcode_direct=yes # is this really true???
7337         ;;
7338         siemens)
7339           ## LD is ld it makes a PLAMLIB
7340           ## CC just makes a GrossModule.
7341           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7342           reload_cmds='$CC -r -o $output$reload_objs'
7343           hardcode_direct=no
7344         ;;
7345         motorola)
7346           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7347           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7348         ;;
7349       esac
7350       runpath_var='LD_RUN_PATH'
7351       hardcode_shlibpath_var=no
7352       ;;
7353
7354     sysv4.3*)
7355       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7356       hardcode_shlibpath_var=no
7357       export_dynamic_flag_spec='-Bexport'
7358       ;;
7359
7360     sysv4*MP*)
7361       if test -d /usr/nec; then
7362         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7363         hardcode_shlibpath_var=no
7364         runpath_var=LD_RUN_PATH
7365         hardcode_runpath_var=yes
7366         ld_shlibs=yes
7367       fi
7368       ;;
7369
7370     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7371       no_undefined_flag='${wl}-z,text'
7372       archive_cmds_need_lc=no
7373       hardcode_shlibpath_var=no
7374       runpath_var='LD_RUN_PATH'
7375
7376       if test "$GCC" = yes; then
7377         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7378         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7379       else
7380         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7381         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7382       fi
7383       ;;
7384
7385     sysv5* | sco3.2v5* | sco5v6*)
7386       # Note: We can NOT use -z defs as we might desire, because we do not
7387       # link with -lc, and that would cause any symbols used from libc to
7388       # always be unresolved, which means just about no library would
7389       # ever link correctly.  If we're not using GNU ld we use -z text
7390       # though, which does catch some bad symbols but isn't as heavy-handed
7391       # as -z defs.
7392       no_undefined_flag='${wl}-z,text'
7393       allow_undefined_flag='${wl}-z,nodefs'
7394       archive_cmds_need_lc=no
7395       hardcode_shlibpath_var=no
7396       hardcode_libdir_flag_spec='${wl}-R,$libdir'
7397       hardcode_libdir_separator=':'
7398       link_all_deplibs=yes
7399       export_dynamic_flag_spec='${wl}-Bexport'
7400       runpath_var='LD_RUN_PATH'
7401
7402       if test "$GCC" = yes; then
7403         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7404         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7405       else
7406         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7407         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7408       fi
7409       ;;
7410
7411     uts4*)
7412       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7413       hardcode_libdir_flag_spec='-L$libdir'
7414       hardcode_shlibpath_var=no
7415       ;;
7416
7417     *)
7418       ld_shlibs=no
7419       ;;
7420     esac
7421
7422     if test x$host_vendor = xsni; then
7423       case $host in
7424       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7425         export_dynamic_flag_spec='${wl}-Blargedynsym'
7426         ;;
7427       esac
7428     fi
7429   fi
7430
7431 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7432 echo "${ECHO_T}$ld_shlibs" >&6
7433 test "$ld_shlibs" = no && can_build_shared=no
7434
7435 with_gnu_ld=$with_gnu_ld
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451 #
7452 # Do we need to explicitly link libc?
7453 #
7454 case "x$archive_cmds_need_lc" in
7455 x|xyes)
7456   # Assume -lc should be added
7457   archive_cmds_need_lc=yes
7458
7459   if test "$enable_shared" = yes && test "$GCC" = yes; then
7460     case $archive_cmds in
7461     *'~'*)
7462       # FIXME: we may have to deal with multi-command sequences.
7463       ;;
7464     '$CC '*)
7465       # Test whether the compiler implicitly links with -lc since on some
7466       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7467       # to ld, don't add -lc before -lgcc.
7468       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7469 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7470       $RM conftest*
7471       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7472
7473       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474   (eval $ac_compile) 2>&5
7475   ac_status=$?
7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); } 2>conftest.err; then
7478         soname=conftest
7479         lib=conftest
7480         libobjs=conftest.$ac_objext
7481         deplibs=
7482         wl=$lt_prog_compiler_wl
7483         pic_flag=$lt_prog_compiler_pic
7484         compiler_flags=-v
7485         linker_flags=-v
7486         verstring=
7487         output_objdir=.
7488         libname=conftest
7489         lt_save_allow_undefined_flag=$allow_undefined_flag
7490         allow_undefined_flag=
7491         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7492   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7493   ac_status=$?
7494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495   (exit $ac_status); }
7496         then
7497           archive_cmds_need_lc=no
7498         else
7499           archive_cmds_need_lc=yes
7500         fi
7501         allow_undefined_flag=$lt_save_allow_undefined_flag
7502       else
7503         cat conftest.err 1>&5
7504       fi
7505       $RM conftest*
7506       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7507 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7508       ;;
7509     esac
7510   fi
7511   ;;
7512 esac
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7671 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7672 withGCC=$GCC
7673 if test "$withGCC" = yes; then
7674   case $host_os in
7675     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7676     *) lt_awk_arg="/^libraries:/" ;;
7677   esac
7678   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7679   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7680     # if the path contains ";" then we assume it to be the separator
7681     # otherwise default to the standard path separator (i.e. ":") - it is
7682     # assumed that no part of a normal pathname contains ";" but that should
7683     # okay in the real world where ";" in dirpaths is itself problematic.
7684     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7685   else
7686     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7687   fi
7688   # Ok, now we have the path, separated by spaces, we can step through it
7689   # and add multilib dir if necessary.
7690   lt_tmp_lt_search_path_spec=
7691   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7692   for lt_sys_path in $lt_search_path_spec; do
7693     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7694       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7695     else
7696       test -d "$lt_sys_path" && \
7697         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7698     fi
7699   done
7700   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7701 BEGIN {RS=" "; FS="/|\n";} {
7702   lt_foo="";
7703   lt_count=0;
7704   for (lt_i = NF; lt_i > 0; lt_i--) {
7705     if ($lt_i != "" && $lt_i != ".") {
7706       if ($lt_i == "..") {
7707         lt_count++;
7708       } else {
7709         if (lt_count == 0) {
7710           lt_foo="/" $lt_i lt_foo;
7711         } else {
7712           lt_count--;
7713         }
7714       }
7715     }
7716   }
7717   if (lt_foo != "") { lt_freq[lt_foo]++; }
7718   if (lt_freq[lt_foo] == 1) { print lt_foo; }
7719 }'`
7720   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7721 else
7722   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7723 fi
7724 library_names_spec=
7725 libname_spec='lib$name'
7726 soname_spec=
7727 shrext_cmds=".so"
7728 postinstall_cmds=
7729 postuninstall_cmds=
7730 finish_cmds=
7731 finish_eval=
7732 shlibpath_var=
7733 shlibpath_overrides_runpath=unknown
7734 version_type=none
7735 dynamic_linker="$host_os ld.so"
7736 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7737 need_lib_prefix=unknown
7738 hardcode_into_libs=no
7739
7740 # when you set need_version to no, make sure it does not cause -set_version
7741 # flags to be left without arguments
7742 need_version=unknown
7743
7744 case $host_os in
7745 aix3*)
7746   version_type=linux
7747   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7748   shlibpath_var=LIBPATH
7749
7750   # AIX 3 has no versioning support, so we append a major version to the name.
7751   soname_spec='${libname}${release}${shared_ext}$major'
7752   ;;
7753
7754 aix4* | aix5*)
7755   version_type=linux
7756   need_lib_prefix=no
7757   need_version=no
7758   hardcode_into_libs=yes
7759   if test "$host_cpu" = ia64; then
7760     # AIX 5 supports IA64
7761     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7762     shlibpath_var=LD_LIBRARY_PATH
7763   else
7764     # With GCC up to 2.95.x, collect2 would create an import file
7765     # for dependence libraries.  The import file would start with
7766     # the line `#! .'.  This would cause the generated library to
7767     # depend on `.', always an invalid library.  This was fixed in
7768     # development snapshots of GCC prior to 3.0.
7769     case $host_os in
7770       aix4 | aix4.[01] | aix4.[01].*)
7771       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7772            echo ' yes '
7773            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7774         :
7775       else
7776         can_build_shared=no
7777       fi
7778       ;;
7779     esac
7780     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7781     # soname into executable. Probably we can add versioning support to
7782     # collect2, so additional links can be useful in future.
7783     if test "$aix_use_runtimelinking" = yes; then
7784       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7785       # instead of lib<name>.a to let people know that these are not
7786       # typical AIX shared libraries.
7787       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7788     else
7789       # We preserve .a as extension for shared libraries through AIX4.2
7790       # and later when we are not doing run time linking.
7791       library_names_spec='${libname}${release}.a $libname.a'
7792       soname_spec='${libname}${release}${shared_ext}$major'
7793     fi
7794     shlibpath_var=LIBPATH
7795   fi
7796   ;;
7797
7798 amigaos*)
7799   if test "$host_cpu" = m68k; then
7800     library_names_spec='$libname.ixlibrary $libname.a'
7801     # Create ${libname}_ixlibrary.a entries in /sys/libs.
7802     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'
7803   else
7804     dynamic_linker=no
7805   fi
7806   ;;
7807
7808 beos*)
7809   library_names_spec='${libname}${shared_ext}'
7810   dynamic_linker="$host_os ld.so"
7811   shlibpath_var=LIBRARY_PATH
7812   ;;
7813
7814 bsdi[45]*)
7815   version_type=linux
7816   need_version=no
7817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7818   soname_spec='${libname}${release}${shared_ext}$major'
7819   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7820   shlibpath_var=LD_LIBRARY_PATH
7821   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7822   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7823   # the default ld.so.conf also contains /usr/contrib/lib and
7824   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7825   # libtool to hard-code these into programs
7826   ;;
7827
7828 cygwin* | mingw* | pw32*)
7829   version_type=windows
7830   shrext_cmds=".dll"
7831   need_version=no
7832   need_lib_prefix=no
7833
7834   case $withGCC,$host_os in
7835   yes,cygwin* | yes,mingw* | yes,pw32*)
7836     library_names_spec='$libname.dll.a'
7837     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7838     postinstall_cmds='base_file=`basename \${file}`~
7839       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
7840       dldir=$destdir/`dirname \$dlpath`~
7841       test -d \$dldir || mkdir -p \$dldir~
7842       $install_prog $dir/$dlname \$dldir/$dlname~
7843       chmod a+x \$dldir/$dlname~
7844       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
7845         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
7846       fi'
7847     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7848       dlpath=$dir/\$dldll~
7849        $RM \$dlpath'
7850     shlibpath_overrides_runpath=yes
7851
7852     case $host_os in
7853     cygwin*)
7854       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7855       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7856       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7857       ;;
7858     mingw*)
7859       # MinGW DLLs use traditional 'lib' prefix
7860       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7861       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7862       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
7863         # It is most probably a Windows format PATH printed by
7864         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7865         # path with ; separators, and with drive letters. We can handle the
7866         # drive letters (cygwin fileutils understands them), so leave them,
7867         # especially as we might pass files found there to a mingw objdump,
7868         # which wouldn't understand a cygwinified path. Ahh.
7869         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7870       else
7871         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7872       fi
7873       ;;
7874     pw32*)
7875       # pw32 DLLs use 'pw' prefix rather than 'lib'
7876       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7877       ;;
7878     esac
7879     ;;
7880
7881   *)
7882     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7883     ;;
7884   esac
7885   dynamic_linker='Win32 ld.exe'
7886   # FIXME: first we should search . and the directory the executable is in
7887   shlibpath_var=PATH
7888   ;;
7889
7890 darwin* | rhapsody*)
7891   dynamic_linker="$host_os dyld"
7892   version_type=darwin
7893   need_lib_prefix=no
7894   need_version=no
7895   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7896   soname_spec='${libname}${release}${major}$shared_ext'
7897   shlibpath_overrides_runpath=yes
7898   shlibpath_var=DYLD_LIBRARY_PATH
7899   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7900
7901   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
7902   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7903   ;;
7904
7905 dgux*)
7906   version_type=linux
7907   need_lib_prefix=no
7908   need_version=no
7909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7910   soname_spec='${libname}${release}${shared_ext}$major'
7911   shlibpath_var=LD_LIBRARY_PATH
7912   ;;
7913
7914 freebsd1*)
7915   dynamic_linker=no
7916   ;;
7917
7918 freebsd* | dragonfly*)
7919   # DragonFly does not have aout.  When/if they implement a new
7920   # versioning mechanism, adjust this.
7921   if test -x /usr/bin/objformat; then
7922     objformat=`/usr/bin/objformat`
7923   else
7924     case $host_os in
7925     freebsd[123]*) objformat=aout ;;
7926     *) objformat=elf ;;
7927     esac
7928   fi
7929   version_type=freebsd-$objformat
7930   case $version_type in
7931     freebsd-elf*)
7932       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7933       need_version=no
7934       need_lib_prefix=no
7935       ;;
7936     freebsd-*)
7937       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7938       need_version=yes
7939       ;;
7940   esac
7941   shlibpath_var=LD_LIBRARY_PATH
7942   case $host_os in
7943   freebsd2*)
7944     shlibpath_overrides_runpath=yes
7945     ;;
7946   freebsd3.[01]* | freebsdelf3.[01]*)
7947     shlibpath_overrides_runpath=yes
7948     hardcode_into_libs=yes
7949     ;;
7950   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7951   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7952     shlibpath_overrides_runpath=no
7953     hardcode_into_libs=yes
7954     ;;
7955   *) # from 4.6 on, and DragonFly
7956     shlibpath_overrides_runpath=yes
7957     hardcode_into_libs=yes
7958     ;;
7959   esac
7960   ;;
7961
7962 gnu*)
7963   version_type=linux
7964   need_lib_prefix=no
7965   need_version=no
7966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7967   soname_spec='${libname}${release}${shared_ext}$major'
7968   shlibpath_var=LD_LIBRARY_PATH
7969   hardcode_into_libs=yes
7970   ;;
7971
7972 hpux9* | hpux10* | hpux11*)
7973   # Give a soname corresponding to the major version so that dld.sl refuses to
7974   # link against other versions.
7975   version_type=sunos
7976   need_lib_prefix=no
7977   need_version=no
7978   case $host_cpu in
7979   ia64*)
7980     shrext_cmds='.so'
7981     hardcode_into_libs=yes
7982     dynamic_linker="$host_os dld.so"
7983     shlibpath_var=LD_LIBRARY_PATH
7984     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7986     soname_spec='${libname}${release}${shared_ext}$major'
7987     if test "X$HPUX_IA64_MODE" = X32; then
7988       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7989     else
7990       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7991     fi
7992     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7993     ;;
7994   hppa*64*)
7995     shrext_cmds='.sl'
7996     hardcode_into_libs=yes
7997     dynamic_linker="$host_os dld.sl"
7998     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7999     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8000     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8001     soname_spec='${libname}${release}${shared_ext}$major'
8002     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8003     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8004     ;;
8005   *)
8006     shrext_cmds='.sl'
8007     dynamic_linker="$host_os dld.sl"
8008     shlibpath_var=SHLIB_PATH
8009     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011     soname_spec='${libname}${release}${shared_ext}$major'
8012     ;;
8013   esac
8014   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8015   postinstall_cmds='chmod 555 $lib'
8016   ;;
8017
8018 interix[3-9]*)
8019   version_type=linux
8020   need_lib_prefix=no
8021   need_version=no
8022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8023   soname_spec='${libname}${release}${shared_ext}$major'
8024   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8025   shlibpath_var=LD_LIBRARY_PATH
8026   shlibpath_overrides_runpath=no
8027   hardcode_into_libs=yes
8028   ;;
8029
8030 irix5* | irix6* | nonstopux*)
8031   case $host_os in
8032     nonstopux*) version_type=nonstopux ;;
8033     *)
8034         if test "$lt_cv_prog_gnu_ld" = yes; then
8035                 version_type=linux
8036         else
8037                 version_type=irix
8038         fi ;;
8039   esac
8040   need_lib_prefix=no
8041   need_version=no
8042   soname_spec='${libname}${release}${shared_ext}$major'
8043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8044   case $host_os in
8045   irix5* | nonstopux*)
8046     libsuff= shlibsuff=
8047     ;;
8048   *)
8049     case $LD in # libtool.m4 will add one of these switches to LD
8050     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8051       libsuff= shlibsuff= libmagic=32-bit;;
8052     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8053       libsuff=32 shlibsuff=N32 libmagic=N32;;
8054     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8055       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8056     *) libsuff= shlibsuff= libmagic=never-match;;
8057     esac
8058     ;;
8059   esac
8060   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8061   shlibpath_overrides_runpath=no
8062   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8063   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8064   hardcode_into_libs=yes
8065   ;;
8066
8067 # No shared lib support for Linux oldld, aout, or coff.
8068 linux*oldld* | linux*aout* | linux*coff*)
8069   dynamic_linker=no
8070   ;;
8071
8072 # This must be Linux ELF.
8073 linux* | k*bsd*-gnu)
8074   version_type=linux
8075   need_lib_prefix=no
8076   need_version=no
8077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8078   soname_spec='${libname}${release}${shared_ext}$major'
8079   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8080   shlibpath_var=LD_LIBRARY_PATH
8081   shlibpath_overrides_runpath=no
8082   # Some binutils ld are patched to set DT_RUNPATH
8083   save_LDFLAGS=$LDFLAGS
8084   save_libdir=$libdir
8085   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8086        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8087   cat >conftest.$ac_ext <<_ACEOF
8088 /* confdefs.h.  */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h.  */
8093
8094 int
8095 main ()
8096 {
8097
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104   (eval $ac_link) 2>conftest.er1
8105   ac_status=$?
8106   grep -v '^ *+' conftest.er1 >conftest.err
8107   rm -f conftest.er1
8108   cat conftest.err >&5
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -z "$ac_c_werror_flag"
8112                          || test ! -s conftest.err'
8113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114   (eval $ac_try) 2>&5
8115   ac_status=$?
8116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117   (exit $ac_status); }; } &&
8118          { ac_try='test -s conftest$ac_exeext'
8119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120   (eval $ac_try) 2>&5
8121   ac_status=$?
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); }; }; then
8124   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8125   shlibpath_overrides_runpath=yes
8126 fi
8127
8128 else
8129   echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8131
8132 fi
8133 rm -f conftest.err conftest.$ac_objext \
8134       conftest$ac_exeext conftest.$ac_ext
8135   LDFLAGS=$save_LDFLAGS
8136   libdir=$save_libdir
8137
8138   # This implies no fast_install, which is unacceptable.
8139   # Some rework will be needed to allow for fast_install
8140   # before this can be enabled.
8141   hardcode_into_libs=yes
8142
8143   # Append ld.so.conf contents to the search path
8144   if test -f /etc/ld.so.conf; then
8145     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' ' '`
8146     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8147   fi
8148
8149   # We used to test for /lib/ld.so.1 and disable shared libraries on
8150   # powerpc, because MkLinux only supported shared libraries with the
8151   # GNU dynamic linker.  Since this was broken with cross compilers,
8152   # most powerpc-linux boxes support dynamic linking these days and
8153   # people can always --disable-shared, the test was removed, and we
8154   # assume the GNU/Linux dynamic linker is in use.
8155   dynamic_linker='GNU/Linux ld.so'
8156   ;;
8157
8158 netbsd*)
8159   version_type=sunos
8160   need_lib_prefix=no
8161   need_version=no
8162   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8163     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8164     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8165     dynamic_linker='NetBSD (a.out) ld.so'
8166   else
8167     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8168     soname_spec='${libname}${release}${shared_ext}$major'
8169     dynamic_linker='NetBSD ld.elf_so'
8170   fi
8171   shlibpath_var=LD_LIBRARY_PATH
8172   shlibpath_overrides_runpath=yes
8173   hardcode_into_libs=yes
8174   ;;
8175
8176 newsos6)
8177   version_type=linux
8178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8179   shlibpath_var=LD_LIBRARY_PATH
8180   shlibpath_overrides_runpath=yes
8181   ;;
8182
8183 *nto* | *qnx*)
8184   version_type=qnx
8185   need_lib_prefix=no
8186   need_version=no
8187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8188   soname_spec='${libname}${release}${shared_ext}$major'
8189   shlibpath_var=LD_LIBRARY_PATH
8190   shlibpath_overrides_runpath=no
8191   hardcode_into_libs=yes
8192   dynamic_linker='ldqnx.so'
8193   ;;
8194
8195 openbsd*)
8196   version_type=sunos
8197   sys_lib_dlsearch_path_spec="/usr/lib"
8198   need_lib_prefix=no
8199   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8200   case $host_os in
8201     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
8202     *)                          need_version=no  ;;
8203   esac
8204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8205   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8206   shlibpath_var=LD_LIBRARY_PATH
8207   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8208     case $host_os in
8209       openbsd2.[89] | openbsd2.[89].*)
8210         shlibpath_overrides_runpath=no
8211         ;;
8212       *)
8213         shlibpath_overrides_runpath=yes
8214         ;;
8215       esac
8216   else
8217     shlibpath_overrides_runpath=yes
8218   fi
8219   ;;
8220
8221 os2*)
8222   libname_spec='$name'
8223   shrext_cmds=".dll"
8224   need_lib_prefix=no
8225   library_names_spec='$libname${shared_ext} $libname.a'
8226   dynamic_linker='OS/2 ld.exe'
8227   shlibpath_var=LIBPATH
8228   ;;
8229
8230 osf3* | osf4* | osf5*)
8231   version_type=osf
8232   need_lib_prefix=no
8233   need_version=no
8234   soname_spec='${libname}${release}${shared_ext}$major'
8235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8236   shlibpath_var=LD_LIBRARY_PATH
8237   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8238   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8239   ;;
8240
8241 rdos*)
8242   dynamic_linker=no
8243   ;;
8244
8245 solaris*)
8246   version_type=linux
8247   need_lib_prefix=no
8248   need_version=no
8249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8250   soname_spec='${libname}${release}${shared_ext}$major'
8251   shlibpath_var=LD_LIBRARY_PATH
8252   shlibpath_overrides_runpath=yes
8253   hardcode_into_libs=yes
8254   # ldd complains unless libraries are executable
8255   postinstall_cmds='chmod +x $lib'
8256   ;;
8257
8258 sunos4*)
8259   version_type=sunos
8260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8261   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8262   shlibpath_var=LD_LIBRARY_PATH
8263   shlibpath_overrides_runpath=yes
8264   if test "$with_gnu_ld" = yes; then
8265     need_lib_prefix=no
8266   fi
8267   need_version=yes
8268   ;;
8269
8270 sysv4 | sysv4.3*)
8271   version_type=linux
8272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8273   soname_spec='${libname}${release}${shared_ext}$major'
8274   shlibpath_var=LD_LIBRARY_PATH
8275   case $host_vendor in
8276     sni)
8277       shlibpath_overrides_runpath=no
8278       need_lib_prefix=no
8279       runpath_var=LD_RUN_PATH
8280       ;;
8281     siemens)
8282       need_lib_prefix=no
8283       ;;
8284     motorola)
8285       need_lib_prefix=no
8286       need_version=no
8287       shlibpath_overrides_runpath=no
8288       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8289       ;;
8290   esac
8291   ;;
8292
8293 sysv4*MP*)
8294   if test -d /usr/nec ;then
8295     version_type=linux
8296     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8297     soname_spec='$libname${shared_ext}.$major'
8298     shlibpath_var=LD_LIBRARY_PATH
8299   fi
8300   ;;
8301
8302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8303   version_type=freebsd-elf
8304   need_lib_prefix=no
8305   need_version=no
8306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8307   soname_spec='${libname}${release}${shared_ext}$major'
8308   shlibpath_var=LD_LIBRARY_PATH
8309   shlibpath_overrides_runpath=yes
8310   hardcode_into_libs=yes
8311   if test "$with_gnu_ld" = yes; then
8312     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8313   else
8314     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8315     case $host_os in
8316       sco3.2v5*)
8317         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8318         ;;
8319     esac
8320   fi
8321   sys_lib_dlsearch_path_spec='/usr/lib'
8322   ;;
8323
8324 tpf*)
8325   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
8326   version_type=linux
8327   need_lib_prefix=no
8328   need_version=no
8329   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8330   shlibpath_var=LD_LIBRARY_PATH
8331   shlibpath_overrides_runpath=no
8332   hardcode_into_libs=yes
8333   ;;
8334
8335 uts4*)
8336   version_type=linux
8337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8338   soname_spec='${libname}${release}${shared_ext}$major'
8339   shlibpath_var=LD_LIBRARY_PATH
8340   ;;
8341
8342 *)
8343   dynamic_linker=no
8344   ;;
8345 esac
8346 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8347 echo "${ECHO_T}$dynamic_linker" >&6
8348 test "$dynamic_linker" = no && can_build_shared=no
8349
8350 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8351 if test "$GCC" = yes; then
8352   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8353 fi
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8442 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8443 hardcode_action=
8444 if test -n "$hardcode_libdir_flag_spec" ||
8445    test -n "$runpath_var" ||
8446    test "X$hardcode_automatic" = "Xyes" ; then
8447
8448   # We can hardcode non-existent directories.
8449   if test "$hardcode_direct" != no &&
8450      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8451      # have to relink, otherwise we might link with an installed library
8452      # when we should be linking with a yet-to-be-installed one
8453      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8454      test "$hardcode_minus_L" != no; then
8455     # Linking always hardcodes the temporary library directory.
8456     hardcode_action=relink
8457   else
8458     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8459     hardcode_action=immediate
8460   fi
8461 else
8462   # We cannot hardcode anything, or else we can only hardcode existing
8463   # directories.
8464   hardcode_action=unsupported
8465 fi
8466 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8467 echo "${ECHO_T}$hardcode_action" >&6
8468
8469 if test "$hardcode_action" = relink ||
8470    test "$inherit_rpath" = yes; then
8471   # Fast installation is not supported
8472   enable_fast_install=no
8473 elif test "$shlibpath_overrides_runpath" = yes ||
8474      test "$enable_shared" = no; then
8475   # Fast installation is not necessary
8476   enable_fast_install=needless
8477 fi
8478
8479
8480
8481
8482
8483
8484   if test "x$enable_dlopen" != xyes; then
8485   enable_dlopen=unknown
8486   enable_dlopen_self=unknown
8487   enable_dlopen_self_static=unknown
8488 else
8489   lt_cv_dlopen=no
8490   lt_cv_dlopen_libs=
8491
8492   case $host_os in
8493   beos*)
8494     lt_cv_dlopen="load_add_on"
8495     lt_cv_dlopen_libs=
8496     lt_cv_dlopen_self=yes
8497     ;;
8498
8499   mingw* | pw32*)
8500     lt_cv_dlopen="LoadLibrary"
8501     lt_cv_dlopen_libs=
8502     ;;
8503
8504   cygwin*)
8505     lt_cv_dlopen="dlopen"
8506     lt_cv_dlopen_libs=
8507     ;;
8508
8509   darwin*)
8510   # if libdl is installed we need to link against it
8511     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8512 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8513 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8514   echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516   ac_check_lib_save_LIBS=$LIBS
8517 LIBS="-ldl  $LIBS"
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h.  */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h.  */
8524
8525 /* Override any gcc2 internal prototype to avoid an error.  */
8526 #ifdef __cplusplus
8527 extern "C"
8528 #endif
8529 /* We use char because int might match the return type of a gcc2
8530    builtin and then its argument prototype would still apply.  */
8531 char dlopen ();
8532 int
8533 main ()
8534 {
8535 dlopen ();
8536   ;
8537   return 0;
8538 }
8539 _ACEOF
8540 rm -f conftest.$ac_objext conftest$ac_exeext
8541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8542   (eval $ac_link) 2>conftest.er1
8543   ac_status=$?
8544   grep -v '^ *+' conftest.er1 >conftest.err
8545   rm -f conftest.er1
8546   cat conftest.err >&5
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); } &&
8549          { ac_try='test -z "$ac_c_werror_flag"
8550                          || test ! -s conftest.err'
8551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552   (eval $ac_try) 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }; } &&
8556          { ac_try='test -s conftest$ac_exeext'
8557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558   (eval $ac_try) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); }; }; then
8562   ac_cv_lib_dl_dlopen=yes
8563 else
8564   echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8566
8567 ac_cv_lib_dl_dlopen=no
8568 fi
8569 rm -f conftest.err conftest.$ac_objext \
8570       conftest$ac_exeext conftest.$ac_ext
8571 LIBS=$ac_check_lib_save_LIBS
8572 fi
8573 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8574 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8575 if test $ac_cv_lib_dl_dlopen = yes; then
8576   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8577 else
8578
8579     lt_cv_dlopen="dyld"
8580     lt_cv_dlopen_libs=
8581     lt_cv_dlopen_self=yes
8582
8583 fi
8584
8585     ;;
8586
8587   *)
8588     echo "$as_me:$LINENO: checking for shl_load" >&5
8589 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8590 if test "${ac_cv_func_shl_load+set}" = set; then
8591   echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593   cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h.  */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h.  */
8599 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8601 #define shl_load innocuous_shl_load
8602
8603 /* System header to define __stub macros and hopefully few prototypes,
8604     which can conflict with char shl_load (); below.
8605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8606     <limits.h> exists even on freestanding compilers.  */
8607
8608 #ifdef __STDC__
8609 # include <limits.h>
8610 #else
8611 # include <assert.h>
8612 #endif
8613
8614 #undef shl_load
8615
8616 /* Override any gcc2 internal prototype to avoid an error.  */
8617 #ifdef __cplusplus
8618 extern "C"
8619 {
8620 #endif
8621 /* We use char because int might match the return type of a gcc2
8622    builtin and then its argument prototype would still apply.  */
8623 char shl_load ();
8624 /* The GNU C library defines this for functions which it implements
8625     to always fail with ENOSYS.  Some functions are actually named
8626     something starting with __ and the normal name is an alias.  */
8627 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8628 choke me
8629 #else
8630 char (*f) () = shl_load;
8631 #endif
8632 #ifdef __cplusplus
8633 }
8634 #endif
8635
8636 int
8637 main ()
8638 {
8639 return f != shl_load;
8640   ;
8641   return 0;
8642 }
8643 _ACEOF
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646   (eval $ac_link) 2>conftest.er1
8647   ac_status=$?
8648   grep -v '^ *+' conftest.er1 >conftest.err
8649   rm -f conftest.er1
8650   cat conftest.err >&5
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } &&
8653          { ac_try='test -z "$ac_c_werror_flag"
8654                          || test ! -s conftest.err'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; } &&
8660          { ac_try='test -s conftest$ac_exeext'
8661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662   (eval $ac_try) 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); }; }; then
8666   ac_cv_func_shl_load=yes
8667 else
8668   echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8670
8671 ac_cv_func_shl_load=no
8672 fi
8673 rm -f conftest.err conftest.$ac_objext \
8674       conftest$ac_exeext conftest.$ac_ext
8675 fi
8676 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8677 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8678 if test $ac_cv_func_shl_load = yes; then
8679   lt_cv_dlopen="shl_load"
8680 else
8681   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8682 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8683 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8684   echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686   ac_check_lib_save_LIBS=$LIBS
8687 LIBS="-ldld  $LIBS"
8688 cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h.  */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h.  */
8694
8695 /* Override any gcc2 internal prototype to avoid an error.  */
8696 #ifdef __cplusplus
8697 extern "C"
8698 #endif
8699 /* We use char because int might match the return type of a gcc2
8700    builtin and then its argument prototype would still apply.  */
8701 char shl_load ();
8702 int
8703 main ()
8704 {
8705 shl_load ();
8706   ;
8707   return 0;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712   (eval $ac_link) 2>conftest.er1
8713   ac_status=$?
8714   grep -v '^ *+' conftest.er1 >conftest.err
8715   rm -f conftest.er1
8716   cat conftest.err >&5
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); } &&
8719          { ac_try='test -z "$ac_c_werror_flag"
8720                          || test ! -s conftest.err'
8721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722   (eval $ac_try) 2>&5
8723   ac_status=$?
8724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); }; } &&
8726          { ac_try='test -s conftest$ac_exeext'
8727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728   (eval $ac_try) 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); }; }; then
8732   ac_cv_lib_dld_shl_load=yes
8733 else
8734   echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8736
8737 ac_cv_lib_dld_shl_load=no
8738 fi
8739 rm -f conftest.err conftest.$ac_objext \
8740       conftest$ac_exeext conftest.$ac_ext
8741 LIBS=$ac_check_lib_save_LIBS
8742 fi
8743 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8744 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8745 if test $ac_cv_lib_dld_shl_load = yes; then
8746   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8747 else
8748   echo "$as_me:$LINENO: checking for dlopen" >&5
8749 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8750 if test "${ac_cv_func_dlopen+set}" = set; then
8751   echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753   cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h.  */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h.  */
8759 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8761 #define dlopen innocuous_dlopen
8762
8763 /* System header to define __stub macros and hopefully few prototypes,
8764     which can conflict with char dlopen (); below.
8765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8766     <limits.h> exists even on freestanding compilers.  */
8767
8768 #ifdef __STDC__
8769 # include <limits.h>
8770 #else
8771 # include <assert.h>
8772 #endif
8773
8774 #undef dlopen
8775
8776 /* Override any gcc2 internal prototype to avoid an error.  */
8777 #ifdef __cplusplus
8778 extern "C"
8779 {
8780 #endif
8781 /* We use char because int might match the return type of a gcc2
8782    builtin and then its argument prototype would still apply.  */
8783 char dlopen ();
8784 /* The GNU C library defines this for functions which it implements
8785     to always fail with ENOSYS.  Some functions are actually named
8786     something starting with __ and the normal name is an alias.  */
8787 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8788 choke me
8789 #else
8790 char (*f) () = dlopen;
8791 #endif
8792 #ifdef __cplusplus
8793 }
8794 #endif
8795
8796 int
8797 main ()
8798 {
8799 return f != dlopen;
8800   ;
8801   return 0;
8802 }
8803 _ACEOF
8804 rm -f conftest.$ac_objext conftest$ac_exeext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806   (eval $ac_link) 2>conftest.er1
8807   ac_status=$?
8808   grep -v '^ *+' conftest.er1 >conftest.err
8809   rm -f conftest.er1
8810   cat conftest.err >&5
8811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812   (exit $ac_status); } &&
8813          { ac_try='test -z "$ac_c_werror_flag"
8814                          || test ! -s conftest.err'
8815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816   (eval $ac_try) 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); }; } &&
8820          { ac_try='test -s conftest$ac_exeext'
8821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822   (eval $ac_try) 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); }; }; then
8826   ac_cv_func_dlopen=yes
8827 else
8828   echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831 ac_cv_func_dlopen=no
8832 fi
8833 rm -f conftest.err conftest.$ac_objext \
8834       conftest$ac_exeext conftest.$ac_ext
8835 fi
8836 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8837 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8838 if test $ac_cv_func_dlopen = yes; then
8839   lt_cv_dlopen="dlopen"
8840 else
8841   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8842 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8843 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8844   echo $ECHO_N "(cached) $ECHO_C" >&6
8845 else
8846   ac_check_lib_save_LIBS=$LIBS
8847 LIBS="-ldl  $LIBS"
8848 cat >conftest.$ac_ext <<_ACEOF
8849 /* confdefs.h.  */
8850 _ACEOF
8851 cat confdefs.h >>conftest.$ac_ext
8852 cat >>conftest.$ac_ext <<_ACEOF
8853 /* end confdefs.h.  */
8854
8855 /* Override any gcc2 internal prototype to avoid an error.  */
8856 #ifdef __cplusplus
8857 extern "C"
8858 #endif
8859 /* We use char because int might match the return type of a gcc2
8860    builtin and then its argument prototype would still apply.  */
8861 char dlopen ();
8862 int
8863 main ()
8864 {
8865 dlopen ();
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 rm -f conftest.$ac_objext conftest$ac_exeext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872   (eval $ac_link) 2>conftest.er1
8873   ac_status=$?
8874   grep -v '^ *+' conftest.er1 >conftest.err
8875   rm -f conftest.er1
8876   cat conftest.err >&5
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); } &&
8879          { ac_try='test -z "$ac_c_werror_flag"
8880                          || test ! -s conftest.err'
8881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882   (eval $ac_try) 2>&5
8883   ac_status=$?
8884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); }; } &&
8886          { ac_try='test -s conftest$ac_exeext'
8887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888   (eval $ac_try) 2>&5
8889   ac_status=$?
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); }; }; then
8892   ac_cv_lib_dl_dlopen=yes
8893 else
8894   echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897 ac_cv_lib_dl_dlopen=no
8898 fi
8899 rm -f conftest.err conftest.$ac_objext \
8900       conftest$ac_exeext conftest.$ac_ext
8901 LIBS=$ac_check_lib_save_LIBS
8902 fi
8903 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8904 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8905 if test $ac_cv_lib_dl_dlopen = yes; then
8906   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8907 else
8908   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8909 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8910 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8911   echo $ECHO_N "(cached) $ECHO_C" >&6
8912 else
8913   ac_check_lib_save_LIBS=$LIBS
8914 LIBS="-lsvld  $LIBS"
8915 cat >conftest.$ac_ext <<_ACEOF
8916 /* confdefs.h.  */
8917 _ACEOF
8918 cat confdefs.h >>conftest.$ac_ext
8919 cat >>conftest.$ac_ext <<_ACEOF
8920 /* end confdefs.h.  */
8921
8922 /* Override any gcc2 internal prototype to avoid an error.  */
8923 #ifdef __cplusplus
8924 extern "C"
8925 #endif
8926 /* We use char because int might match the return type of a gcc2
8927    builtin and then its argument prototype would still apply.  */
8928 char dlopen ();
8929 int
8930 main ()
8931 {
8932 dlopen ();
8933   ;
8934   return 0;
8935 }
8936 _ACEOF
8937 rm -f conftest.$ac_objext conftest$ac_exeext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939   (eval $ac_link) 2>conftest.er1
8940   ac_status=$?
8941   grep -v '^ *+' conftest.er1 >conftest.err
8942   rm -f conftest.er1
8943   cat conftest.err >&5
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); } &&
8946          { ac_try='test -z "$ac_c_werror_flag"
8947                          || test ! -s conftest.err'
8948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949   (eval $ac_try) 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); }; } &&
8953          { ac_try='test -s conftest$ac_exeext'
8954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8955   (eval $ac_try) 2>&5
8956   ac_status=$?
8957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958   (exit $ac_status); }; }; then
8959   ac_cv_lib_svld_dlopen=yes
8960 else
8961   echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.$ac_ext >&5
8963
8964 ac_cv_lib_svld_dlopen=no
8965 fi
8966 rm -f conftest.err conftest.$ac_objext \
8967       conftest$ac_exeext conftest.$ac_ext
8968 LIBS=$ac_check_lib_save_LIBS
8969 fi
8970 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8971 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8972 if test $ac_cv_lib_svld_dlopen = yes; then
8973   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8974 else
8975   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8976 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8977 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8978   echo $ECHO_N "(cached) $ECHO_C" >&6
8979 else
8980   ac_check_lib_save_LIBS=$LIBS
8981 LIBS="-ldld  $LIBS"
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988
8989 /* Override any gcc2 internal prototype to avoid an error.  */
8990 #ifdef __cplusplus
8991 extern "C"
8992 #endif
8993 /* We use char because int might match the return type of a gcc2
8994    builtin and then its argument prototype would still apply.  */
8995 char dld_link ();
8996 int
8997 main ()
8998 {
8999 dld_link ();
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 rm -f conftest.$ac_objext conftest$ac_exeext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006   (eval $ac_link) 2>conftest.er1
9007   ac_status=$?
9008   grep -v '^ *+' conftest.er1 >conftest.err
9009   rm -f conftest.er1
9010   cat conftest.err >&5
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); } &&
9013          { ac_try='test -z "$ac_c_werror_flag"
9014                          || test ! -s conftest.err'
9015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016   (eval $ac_try) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); }; } &&
9020          { ac_try='test -s conftest$ac_exeext'
9021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022   (eval $ac_try) 2>&5
9023   ac_status=$?
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); }; }; then
9026   ac_cv_lib_dld_dld_link=yes
9027 else
9028   echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031 ac_cv_lib_dld_dld_link=no
9032 fi
9033 rm -f conftest.err conftest.$ac_objext \
9034       conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9036 fi
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9038 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9039 if test $ac_cv_lib_dld_dld_link = yes; then
9040   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9041 fi
9042
9043
9044 fi
9045
9046
9047 fi
9048
9049
9050 fi
9051
9052
9053 fi
9054
9055
9056 fi
9057
9058     ;;
9059   esac
9060
9061   if test "x$lt_cv_dlopen" != xno; then
9062     enable_dlopen=yes
9063   else
9064     enable_dlopen=no
9065   fi
9066
9067   case $lt_cv_dlopen in
9068   dlopen)
9069     save_CPPFLAGS="$CPPFLAGS"
9070     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9071
9072     save_LDFLAGS="$LDFLAGS"
9073     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9074
9075     save_LIBS="$LIBS"
9076     LIBS="$lt_cv_dlopen_libs $LIBS"
9077
9078     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9079 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9080 if test "${lt_cv_dlopen_self+set}" = set; then
9081   echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083           if test "$cross_compiling" = yes; then :
9084   lt_cv_dlopen_self=cross
9085 else
9086   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9087   lt_status=$lt_dlunknown
9088   cat > conftest.$ac_ext <<_LT_EOF
9089 #line 9089 "configure"
9090 #include "confdefs.h"
9091
9092 #if HAVE_DLFCN_H
9093 #include <dlfcn.h>
9094 #endif
9095
9096 #include <stdio.h>
9097
9098 #ifdef RTLD_GLOBAL
9099 #  define LT_DLGLOBAL           RTLD_GLOBAL
9100 #else
9101 #  ifdef DL_GLOBAL
9102 #    define LT_DLGLOBAL         DL_GLOBAL
9103 #  else
9104 #    define LT_DLGLOBAL         0
9105 #  endif
9106 #endif
9107
9108 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9109    find out it does not work in some platform. */
9110 #ifndef LT_DLLAZY_OR_NOW
9111 #  ifdef RTLD_LAZY
9112 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9113 #  else
9114 #    ifdef DL_LAZY
9115 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9116 #    else
9117 #      ifdef RTLD_NOW
9118 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9119 #      else
9120 #        ifdef DL_NOW
9121 #          define LT_DLLAZY_OR_NOW      DL_NOW
9122 #        else
9123 #          define LT_DLLAZY_OR_NOW      0
9124 #        endif
9125 #      endif
9126 #    endif
9127 #  endif
9128 #endif
9129
9130 #ifdef __cplusplus
9131 extern "C" void exit (int);
9132 #endif
9133
9134 void fnord() { int i=42;}
9135 int main ()
9136 {
9137   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9138   int status = $lt_dlunknown;
9139
9140   if (self)
9141     {
9142       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9143       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9144       /* dlclose (self); */
9145     }
9146   else
9147     puts (dlerror ());
9148
9149     exit (status);
9150 }
9151 _LT_EOF
9152   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9153   (eval $ac_link) 2>&5
9154   ac_status=$?
9155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9157     (./conftest; exit; ) >&5 2>/dev/null
9158     lt_status=$?
9159     case x$lt_status in
9160       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9161       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9162       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9163     esac
9164   else :
9165     # compilation failed
9166     lt_cv_dlopen_self=no
9167   fi
9168 fi
9169 rm -fr conftest*
9170
9171
9172 fi
9173 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9174 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9175
9176     if test "x$lt_cv_dlopen_self" = xyes; then
9177       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9178       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9179 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9180 if test "${lt_cv_dlopen_self_static+set}" = set; then
9181   echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183           if test "$cross_compiling" = yes; then :
9184   lt_cv_dlopen_self_static=cross
9185 else
9186   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9187   lt_status=$lt_dlunknown
9188   cat > conftest.$ac_ext <<_LT_EOF
9189 #line 9189 "configure"
9190 #include "confdefs.h"
9191
9192 #if HAVE_DLFCN_H
9193 #include <dlfcn.h>
9194 #endif
9195
9196 #include <stdio.h>
9197
9198 #ifdef RTLD_GLOBAL
9199 #  define LT_DLGLOBAL           RTLD_GLOBAL
9200 #else
9201 #  ifdef DL_GLOBAL
9202 #    define LT_DLGLOBAL         DL_GLOBAL
9203 #  else
9204 #    define LT_DLGLOBAL         0
9205 #  endif
9206 #endif
9207
9208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9209    find out it does not work in some platform. */
9210 #ifndef LT_DLLAZY_OR_NOW
9211 #  ifdef RTLD_LAZY
9212 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9213 #  else
9214 #    ifdef DL_LAZY
9215 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9216 #    else
9217 #      ifdef RTLD_NOW
9218 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9219 #      else
9220 #        ifdef DL_NOW
9221 #          define LT_DLLAZY_OR_NOW      DL_NOW
9222 #        else
9223 #          define LT_DLLAZY_OR_NOW      0
9224 #        endif
9225 #      endif
9226 #    endif
9227 #  endif
9228 #endif
9229
9230 #ifdef __cplusplus
9231 extern "C" void exit (int);
9232 #endif
9233
9234 void fnord() { int i=42;}
9235 int main ()
9236 {
9237   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9238   int status = $lt_dlunknown;
9239
9240   if (self)
9241     {
9242       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9243       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9244       /* dlclose (self); */
9245     }
9246   else
9247     puts (dlerror ());
9248
9249     exit (status);
9250 }
9251 _LT_EOF
9252   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253   (eval $ac_link) 2>&5
9254   ac_status=$?
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9257     (./conftest; exit; ) >&5 2>/dev/null
9258     lt_status=$?
9259     case x$lt_status in
9260       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9261       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9262       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9263     esac
9264   else :
9265     # compilation failed
9266     lt_cv_dlopen_self_static=no
9267   fi
9268 fi
9269 rm -fr conftest*
9270
9271
9272 fi
9273 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9274 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9275     fi
9276
9277     CPPFLAGS="$save_CPPFLAGS"
9278     LDFLAGS="$save_LDFLAGS"
9279     LIBS="$save_LIBS"
9280     ;;
9281   esac
9282
9283   case $lt_cv_dlopen_self in
9284   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9285   *) enable_dlopen_self=unknown ;;
9286   esac
9287
9288   case $lt_cv_dlopen_self_static in
9289   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9290   *) enable_dlopen_self_static=unknown ;;
9291   esac
9292 fi
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310 striplib=
9311 old_striplib=
9312 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9313 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9314 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9315   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9316   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9317   echo "$as_me:$LINENO: result: yes" >&5
9318 echo "${ECHO_T}yes" >&6
9319 else
9320 # FIXME - insert some real tests, host_os isn't really good enough
9321   case $host_os in
9322   darwin*)
9323     if test -n "$STRIP" ; then
9324       striplib="$STRIP -x"
9325       old_striplib="$STRIP -S"
9326       echo "$as_me:$LINENO: result: yes" >&5
9327 echo "${ECHO_T}yes" >&6
9328     else
9329       echo "$as_me:$LINENO: result: no" >&5
9330 echo "${ECHO_T}no" >&6
9331     fi
9332     ;;
9333   *)
9334     echo "$as_me:$LINENO: result: no" >&5
9335 echo "${ECHO_T}no" >&6
9336     ;;
9337   esac
9338 fi
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351   # Report which library types will actually be built
9352   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9353 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9354   echo "$as_me:$LINENO: result: $can_build_shared" >&5
9355 echo "${ECHO_T}$can_build_shared" >&6
9356
9357   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9358 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9359   test "$can_build_shared" = "no" && enable_shared=no
9360
9361   # On AIX, shared libraries and static libraries use the same namespace, and
9362   # are all built from PIC.
9363   case $host_os in
9364   aix3*)
9365     test "$enable_shared" = yes && enable_static=no
9366     if test -n "$RANLIB"; then
9367       archive_cmds="$archive_cmds~\$RANLIB \$lib"
9368       postinstall_cmds='$RANLIB $lib'
9369     fi
9370     ;;
9371
9372   aix4* | aix5*)
9373     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9374       test "$enable_shared" = yes && enable_static=no
9375     fi
9376     ;;
9377   esac
9378   echo "$as_me:$LINENO: result: $enable_shared" >&5
9379 echo "${ECHO_T}$enable_shared" >&6
9380
9381   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9382 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9383   # Make sure either enable_shared or enable_static is yes.
9384   test "$enable_shared" = yes || enable_static=yes
9385   echo "$as_me:$LINENO: result: $enable_static" >&5
9386 echo "${ECHO_T}$enable_static" >&6
9387
9388
9389
9390
9391 fi
9392 ac_ext=c
9393 ac_cpp='$CPP $CPPFLAGS'
9394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9397
9398 CC="$lt_save_CC"
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412                   ac_config_commands="$ac_config_commands libtool"
9413
9414
9415
9416
9417 # Only expand once:
9418
9419
9420
9421 ac_ext=c
9422 ac_cpp='$CPP $CPPFLAGS'
9423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9426
9427
9428
9429 for ac_header in sys/time.h
9430 do
9431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9433   echo "$as_me:$LINENO: checking for $ac_header" >&5
9434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 fi
9438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9440 else
9441   # Is the header compilable?
9442 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9444 cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450 $ac_includes_default
9451 #include <$ac_header>
9452 _ACEOF
9453 rm -f conftest.$ac_objext
9454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9455   (eval $ac_compile) 2>conftest.er1
9456   ac_status=$?
9457   grep -v '^ *+' conftest.er1 >conftest.err
9458   rm -f conftest.er1
9459   cat conftest.err >&5
9460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461   (exit $ac_status); } &&
9462          { ac_try='test -z "$ac_c_werror_flag"
9463                          || test ! -s conftest.err'
9464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465   (eval $ac_try) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; } &&
9469          { ac_try='test -s conftest.$ac_objext'
9470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9471   (eval $ac_try) 2>&5
9472   ac_status=$?
9473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474   (exit $ac_status); }; }; then
9475   ac_header_compiler=yes
9476 else
9477   echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9479
9480 ac_header_compiler=no
9481 fi
9482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9483 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9484 echo "${ECHO_T}$ac_header_compiler" >&6
9485
9486 # Is the header present?
9487 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9489 cat >conftest.$ac_ext <<_ACEOF
9490 /* confdefs.h.  */
9491 _ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h.  */
9495 #include <$ac_header>
9496 _ACEOF
9497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9498   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9499   ac_status=$?
9500   grep -v '^ *+' conftest.er1 >conftest.err
9501   rm -f conftest.er1
9502   cat conftest.err >&5
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); } >/dev/null; then
9505   if test -s conftest.err; then
9506     ac_cpp_err=$ac_c_preproc_warn_flag
9507     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9508   else
9509     ac_cpp_err=
9510   fi
9511 else
9512   ac_cpp_err=yes
9513 fi
9514 if test -z "$ac_cpp_err"; then
9515   ac_header_preproc=yes
9516 else
9517   echo "$as_me: failed program was:" >&5
9518 sed 's/^/| /' conftest.$ac_ext >&5
9519
9520   ac_header_preproc=no
9521 fi
9522 rm -f conftest.err conftest.$ac_ext
9523 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9524 echo "${ECHO_T}$ac_header_preproc" >&6
9525
9526 # So?  What about this header?
9527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9528   yes:no: )
9529     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9533     ac_header_preproc=yes
9534     ;;
9535   no:yes:* )
9536     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9538     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9539 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9540     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9542     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9543 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9546     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9548     (
9549       cat <<\_ASBOX
9550 ## ------------------------------------------ ##
9551 ## Report this to the AC_PACKAGE_NAME lists.  ##
9552 ## ------------------------------------------ ##
9553 _ASBOX
9554     ) |
9555       sed "s/^/$as_me: WARNING:     /" >&2
9556     ;;
9557 esac
9558 echo "$as_me:$LINENO: checking for $ac_header" >&5
9559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9561   echo $ECHO_N "(cached) $ECHO_C" >&6
9562 else
9563   eval "$as_ac_Header=\$ac_header_preproc"
9564 fi
9565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9567
9568 fi
9569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9570   cat >>confdefs.h <<_ACEOF
9571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9572 _ACEOF
9573
9574 fi
9575
9576 done
9577
9578 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9579 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9580 if test "${ac_cv_header_time+set}" = set; then
9581   echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583   cat >conftest.$ac_ext <<_ACEOF
9584 /* confdefs.h.  */
9585 _ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h.  */
9589 #include <sys/types.h>
9590 #include <sys/time.h>
9591 #include <time.h>
9592
9593 int
9594 main ()
9595 {
9596 if ((struct tm *) 0)
9597 return 0;
9598   ;
9599   return 0;
9600 }
9601 _ACEOF
9602 rm -f conftest.$ac_objext
9603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9604   (eval $ac_compile) 2>conftest.er1
9605   ac_status=$?
9606   grep -v '^ *+' conftest.er1 >conftest.err
9607   rm -f conftest.er1
9608   cat conftest.err >&5
9609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610   (exit $ac_status); } &&
9611          { ac_try='test -z "$ac_c_werror_flag"
9612                          || test ! -s conftest.err'
9613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614   (eval $ac_try) 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); }; } &&
9618          { ac_try='test -s conftest.$ac_objext'
9619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620   (eval $ac_try) 2>&5
9621   ac_status=$?
9622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623   (exit $ac_status); }; }; then
9624   ac_cv_header_time=yes
9625 else
9626   echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_cv_header_time=no
9630 fi
9631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9632 fi
9633 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9634 echo "${ECHO_T}$ac_cv_header_time" >&6
9635 if test $ac_cv_header_time = yes; then
9636
9637 cat >>confdefs.h <<\_ACEOF
9638 #define TIME_WITH_SYS_TIME 1
9639 _ACEOF
9640
9641 fi
9642
9643
9644 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9645 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9646 if test "${ac_cv_c_bigendian+set}" = set; then
9647   echo $ECHO_N "(cached) $ECHO_C" >&6
9648 else
9649   # See if sys/param.h defines the BYTE_ORDER macro.
9650 cat >conftest.$ac_ext <<_ACEOF
9651 /* confdefs.h.  */
9652 _ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h.  */
9656 #include <sys/types.h>
9657 #include <sys/param.h>
9658
9659 int
9660 main ()
9661 {
9662 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9663  bogus endian macros
9664 #endif
9665
9666   ;
9667   return 0;
9668 }
9669 _ACEOF
9670 rm -f conftest.$ac_objext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9672   (eval $ac_compile) 2>conftest.er1
9673   ac_status=$?
9674   grep -v '^ *+' conftest.er1 >conftest.err
9675   rm -f conftest.er1
9676   cat conftest.err >&5
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); } &&
9679          { ac_try='test -z "$ac_c_werror_flag"
9680                          || test ! -s conftest.err'
9681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9682   (eval $ac_try) 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); }; } &&
9686          { ac_try='test -s conftest.$ac_objext'
9687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688   (eval $ac_try) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); }; }; then
9692   # It does; now see whether it defined to BIG_ENDIAN or not.
9693 cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h.  */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h.  */
9699 #include <sys/types.h>
9700 #include <sys/param.h>
9701
9702 int
9703 main ()
9704 {
9705 #if BYTE_ORDER != BIG_ENDIAN
9706  not big endian
9707 #endif
9708
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 rm -f conftest.$ac_objext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9715   (eval $ac_compile) 2>conftest.er1
9716   ac_status=$?
9717   grep -v '^ *+' conftest.er1 >conftest.err
9718   rm -f conftest.er1
9719   cat conftest.err >&5
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); } &&
9722          { ac_try='test -z "$ac_c_werror_flag"
9723                          || test ! -s conftest.err'
9724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725   (eval $ac_try) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); }; } &&
9729          { ac_try='test -s conftest.$ac_objext'
9730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731   (eval $ac_try) 2>&5
9732   ac_status=$?
9733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734   (exit $ac_status); }; }; then
9735   ac_cv_c_bigendian=yes
9736 else
9737   echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 ac_cv_c_bigendian=no
9741 fi
9742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9743 else
9744   echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9746
9747 # It does not; compile a test program.
9748 if test "$cross_compiling" = yes; then
9749   # try to guess the endianness by grepping values into an object file
9750   ac_cv_c_bigendian=unknown
9751   cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9758 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9759 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9760 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9761 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9762 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9763 int
9764 main ()
9765 {
9766  _ascii (); _ebcdic ();
9767   ;
9768   return 0;
9769 }
9770 _ACEOF
9771 rm -f conftest.$ac_objext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9773   (eval $ac_compile) 2>conftest.er1
9774   ac_status=$?
9775   grep -v '^ *+' conftest.er1 >conftest.err
9776   rm -f conftest.er1
9777   cat conftest.err >&5
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); } &&
9780          { ac_try='test -z "$ac_c_werror_flag"
9781                          || test ! -s conftest.err'
9782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783   (eval $ac_try) 2>&5
9784   ac_status=$?
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); }; } &&
9787          { ac_try='test -s conftest.$ac_objext'
9788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789   (eval $ac_try) 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); }; }; then
9793   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9794   ac_cv_c_bigendian=yes
9795 fi
9796 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9797   if test "$ac_cv_c_bigendian" = unknown; then
9798     ac_cv_c_bigendian=no
9799   else
9800     # finding both strings is unlikely to happen, but who knows?
9801     ac_cv_c_bigendian=unknown
9802   fi
9803 fi
9804 else
9805   echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9807
9808 fi
9809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9810 else
9811   cat >conftest.$ac_ext <<_ACEOF
9812 /* confdefs.h.  */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h.  */
9817 int
9818 main ()
9819 {
9820   /* Are we little or big endian?  From Harbison&Steele.  */
9821   union
9822   {
9823     long l;
9824     char c[sizeof (long)];
9825   } u;
9826   u.l = 1;
9827   exit (u.c[sizeof (long) - 1] == 1);
9828 }
9829 _ACEOF
9830 rm -f conftest$ac_exeext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9832   (eval $ac_link) 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837   (eval $ac_try) 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; }; then
9841   ac_cv_c_bigendian=no
9842 else
9843   echo "$as_me: program exited with status $ac_status" >&5
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ( exit $ac_status )
9848 ac_cv_c_bigendian=yes
9849 fi
9850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9851 fi
9852 fi
9853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9854 fi
9855 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9856 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9857 case $ac_cv_c_bigendian in
9858   yes)
9859
9860 cat >>confdefs.h <<\_ACEOF
9861 #define WORDS_BIGENDIAN 1
9862 _ACEOF
9863  ;;
9864   no)
9865      ;;
9866   *)
9867     { { echo "$as_me:$LINENO: error: unknown endianness
9868 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9869 echo "$as_me: error: unknown endianness
9870 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9871    { (exit 1); exit 1; }; } ;;
9872 esac
9873
9874
9875
9876 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9877 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9878 if test "${ac_cv_lib_socket_connect+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881   ac_check_lib_save_LIBS=$LIBS
9882 LIBS="-lsocket  $LIBS"
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h.  */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h.  */
9889
9890 /* Override any gcc2 internal prototype to avoid an error.  */
9891 #ifdef __cplusplus
9892 extern "C"
9893 #endif
9894 /* We use char because int might match the return type of a gcc2
9895    builtin and then its argument prototype would still apply.  */
9896 char connect ();
9897 int
9898 main ()
9899 {
9900 connect ();
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907   (eval $ac_link) 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_c_werror_flag"
9915                          || test ! -s conftest.err'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; } &&
9921          { ac_try='test -s conftest$ac_exeext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_cv_lib_socket_connect=yes
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 ac_cv_lib_socket_connect=no
9933 fi
9934 rm -f conftest.err conftest.$ac_objext \
9935       conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9937 fi
9938 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9939 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9940 if test $ac_cv_lib_socket_connect = yes; then
9941   cat >>confdefs.h <<_ACEOF
9942 #define HAVE_LIBSOCKET 1
9943 _ACEOF
9944
9945   LIBS="-lsocket $LIBS"
9946
9947 fi
9948
9949
9950 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9951 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9952 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9953   echo $ECHO_N "(cached) $ECHO_C" >&6
9954 else
9955   ac_check_lib_save_LIBS=$LIBS
9956 LIBS="-lnsl  $LIBS"
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h.  */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h.  */
9963
9964 /* Override any gcc2 internal prototype to avoid an error.  */
9965 #ifdef __cplusplus
9966 extern "C"
9967 #endif
9968 /* We use char because int might match the return type of a gcc2
9969    builtin and then its argument prototype would still apply.  */
9970 char gethostbyname ();
9971 int
9972 main ()
9973 {
9974 gethostbyname ();
9975   ;
9976   return 0;
9977 }
9978 _ACEOF
9979 rm -f conftest.$ac_objext conftest$ac_exeext
9980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9981   (eval $ac_link) 2>conftest.er1
9982   ac_status=$?
9983   grep -v '^ *+' conftest.er1 >conftest.err
9984   rm -f conftest.er1
9985   cat conftest.err >&5
9986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987   (exit $ac_status); } &&
9988          { ac_try='test -z "$ac_c_werror_flag"
9989                          || test ! -s conftest.err'
9990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991   (eval $ac_try) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); }; } &&
9995          { ac_try='test -s conftest$ac_exeext'
9996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9997   (eval $ac_try) 2>&5
9998   ac_status=$?
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); }; }; then
10001   ac_cv_lib_nsl_gethostbyname=yes
10002 else
10003   echo "$as_me: failed program was:" >&5
10004 sed 's/^/| /' conftest.$ac_ext >&5
10005
10006 ac_cv_lib_nsl_gethostbyname=no
10007 fi
10008 rm -f conftest.err conftest.$ac_objext \
10009       conftest$ac_exeext conftest.$ac_ext
10010 LIBS=$ac_check_lib_save_LIBS
10011 fi
10012 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10013 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10014 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10015   cat >>confdefs.h <<_ACEOF
10016 #define HAVE_LIBNSL 1
10017 _ACEOF
10018
10019   LIBS="-lnsl $LIBS"
10020
10021 fi
10022
10023
10024 echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
10025 echo $ECHO_N "checking for gethostbyname in -lresolv... $ECHO_C" >&6
10026 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
10027   echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029   ac_check_lib_save_LIBS=$LIBS
10030 LIBS="-lresolv  $LIBS"
10031 cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h.  */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h.  */
10037
10038 /* Override any gcc2 internal prototype to avoid an error.  */
10039 #ifdef __cplusplus
10040 extern "C"
10041 #endif
10042 /* We use char because int might match the return type of a gcc2
10043    builtin and then its argument prototype would still apply.  */
10044 char gethostbyname ();
10045 int
10046 main ()
10047 {
10048 gethostbyname ();
10049   ;
10050   return 0;
10051 }
10052 _ACEOF
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10055   (eval $ac_link) 2>conftest.er1
10056   ac_status=$?
10057   grep -v '^ *+' conftest.er1 >conftest.err
10058   rm -f conftest.er1
10059   cat conftest.err >&5
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); } &&
10062          { ac_try='test -z "$ac_c_werror_flag"
10063                          || test ! -s conftest.err'
10064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065   (eval $ac_try) 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); }; } &&
10069          { ac_try='test -s conftest$ac_exeext'
10070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071   (eval $ac_try) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }; }; then
10075   ac_cv_lib_resolv_gethostbyname=yes
10076 else
10077   echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10079
10080 ac_cv_lib_resolv_gethostbyname=no
10081 fi
10082 rm -f conftest.err conftest.$ac_objext \
10083       conftest$ac_exeext conftest.$ac_ext
10084 LIBS=$ac_check_lib_save_LIBS
10085 fi
10086 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
10087 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname" >&6
10088 if test $ac_cv_lib_resolv_gethostbyname = yes; then
10089   cat >>confdefs.h <<_ACEOF
10090 #define HAVE_LIBRESOLV 1
10091 _ACEOF
10092
10093   LIBS="-lresolv $LIBS"
10094
10095 fi
10096
10097
10098
10099
10100
10101 for ac_header in sys/socket.h netinet/in.h netinet/tcp.h arpa/inet.h
10102 do
10103 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10105   echo "$as_me:$LINENO: checking for $ac_header" >&5
10106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10108   echo $ECHO_N "(cached) $ECHO_C" >&6
10109 fi
10110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10112 else
10113   # Is the header compilable?
10114 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10115 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h.  */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h.  */
10122 $ac_includes_default
10123 #include <$ac_header>
10124 _ACEOF
10125 rm -f conftest.$ac_objext
10126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10127   (eval $ac_compile) 2>conftest.er1
10128   ac_status=$?
10129   grep -v '^ *+' conftest.er1 >conftest.err
10130   rm -f conftest.er1
10131   cat conftest.err >&5
10132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133   (exit $ac_status); } &&
10134          { ac_try='test -z "$ac_c_werror_flag"
10135                          || test ! -s conftest.err'
10136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137   (eval $ac_try) 2>&5
10138   ac_status=$?
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); }; } &&
10141          { ac_try='test -s conftest.$ac_objext'
10142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143   (eval $ac_try) 2>&5
10144   ac_status=$?
10145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146   (exit $ac_status); }; }; then
10147   ac_header_compiler=yes
10148 else
10149   echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10151
10152 ac_header_compiler=no
10153 fi
10154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10155 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10156 echo "${ECHO_T}$ac_header_compiler" >&6
10157
10158 # Is the header present?
10159 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10161 cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h.  */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h.  */
10167 #include <$ac_header>
10168 _ACEOF
10169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10171   ac_status=$?
10172   grep -v '^ *+' conftest.er1 >conftest.err
10173   rm -f conftest.er1
10174   cat conftest.err >&5
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } >/dev/null; then
10177   if test -s conftest.err; then
10178     ac_cpp_err=$ac_c_preproc_warn_flag
10179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10180   else
10181     ac_cpp_err=
10182   fi
10183 else
10184   ac_cpp_err=yes
10185 fi
10186 if test -z "$ac_cpp_err"; then
10187   ac_header_preproc=yes
10188 else
10189   echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10191
10192   ac_header_preproc=no
10193 fi
10194 rm -f conftest.err conftest.$ac_ext
10195 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10196 echo "${ECHO_T}$ac_header_preproc" >&6
10197
10198 # So?  What about this header?
10199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10200   yes:no: )
10201     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10205     ac_header_preproc=yes
10206     ;;
10207   no:yes:* )
10208     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10210     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10211 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10212     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10214     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10215 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10218     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10220     (
10221       cat <<\_ASBOX
10222 ## ------------------------------------------ ##
10223 ## Report this to the AC_PACKAGE_NAME lists.  ##
10224 ## ------------------------------------------ ##
10225 _ASBOX
10226     ) |
10227       sed "s/^/$as_me: WARNING:     /" >&2
10228     ;;
10229 esac
10230 echo "$as_me:$LINENO: checking for $ac_header" >&5
10231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10233   echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235   eval "$as_ac_Header=\$ac_header_preproc"
10236 fi
10237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10239
10240 fi
10241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10242   cat >>confdefs.h <<_ACEOF
10243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10244 _ACEOF
10245
10246 fi
10247
10248 done
10249
10250
10251 # NOTE: Don't add -Wall or -Wunused, they both include
10252 # -Wunused-parameter which reports bogus warnings.
10253 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
10254 -Wformat -Wparentheses -Wpointer-arith"
10255 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
10256 # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
10257 # -Wchar-subscripts -Wuninitialized -Wtraditional -Wshadow -Wcast-qual
10258 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
10259 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
10260 # -Woverloaded-virtual -Winline -Werror"
10261 # Check whether --enable-build-warnings or --disable-build-warnings was given.
10262 if test "${enable_build_warnings+set}" = set; then
10263   enableval="$enable_build_warnings"
10264   case "${enableval}" in
10265   yes)  ;;
10266   no)   build_warnings="-w";;
10267   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10268         build_warnings="${build_warnings} ${t}";;
10269   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10270         build_warnings="${t} ${build_warnings}";;
10271   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10272 esac
10273 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10274   echo "Setting compiler warning flags = $build_warnings" 6>&1
10275 fi
10276 fi; # Check whether --enable-rda-build-warnings or --disable-rda-build-warnings was given.
10277 if test "${enable_rda_build_warnings+set}" = set; then
10278   enableval="$enable_rda_build_warnings"
10279   case "${enableval}" in
10280   yes)  ;;
10281   no)   build_warnings="-w";;
10282   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10283         build_warnings="${build_warnings} ${t}";;
10284   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
10285         build_warnings="${t} ${build_warnings}";;
10286   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
10287 esac
10288 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
10289   echo "Setting LIBREMOTE specific compiler warning flags = $build_warnings" 6>&1
10290 fi
10291 fi; WARN_CFLAGS=""
10292 WERROR_CFLAGS=""
10293 if test "x${build_warnings}" != x -a "x$GCC" = xyes
10294 then
10295     echo "$as_me:$LINENO: checking compiler warning flags" >&5
10296 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
10297     # Separate out the -Werror flag as some files just cannot be
10298     # compiled with it enabled.
10299     for w in ${build_warnings}; do
10300         case $w in
10301         -Werr*) WERROR_CFLAGS=-Werror ;;
10302         *) # Check that GCC accepts it
10303             if $CC $w 2>&1 | grep 'unrecognized option' > /dev/null; then
10304                 :
10305             else
10306                 WARN_CFLAGS="${WARN_CFLAGS} $w"
10307             fi
10308         esac
10309     done
10310     echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
10311 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
10312 fi
10313
10314
10315
10316 # Add target dependent subdirectories here
10317 targ_subdirs=
10318 case "$target" in
10319    *linux*)
10320       targ_subdirs="$targ_subdirs unix"
10321
10322
10323 subdirs="$subdirs unix"
10324
10325    ;;
10326 esac
10327
10328
10329
10330 ZW_GNU_GETTEXT_SISTER_DIR
10331
10332                                         ac_config_files="$ac_config_files Makefile lib/Makefile samples/Makefile qe/Makefile"
10333 cat >confcache <<\_ACEOF
10334 # This file is a shell script that caches the results of configure
10335 # tests run on this system so they can be shared between configure
10336 # scripts and configure runs, see configure's option --config-cache.
10337 # It is not useful on other systems.  If it contains results you don't
10338 # want to keep, you may remove or edit it.
10339 #
10340 # config.status only pays attention to the cache file if you give it
10341 # the --recheck option to rerun configure.
10342 #
10343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10345 # following values.
10346
10347 _ACEOF
10348
10349 # The following way of writing the cache mishandles newlines in values,
10350 # but we know of no workaround that is simple, portable, and efficient.
10351 # So, don't put newlines in cache variables' values.
10352 # Ultrix sh set writes to stderr and can't be redirected directly,
10353 # and sets the high bit in the cache file unless we assign to the vars.
10354 {
10355   (set) 2>&1 |
10356     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10357     *ac_space=\ *)
10358       # `set' does not quote correctly, so add quotes (double-quote
10359       # substitution turns \\\\ into \\, and sed turns \\ into \).
10360       sed -n \
10361         "s/'/'\\\\''/g;
10362           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10363       ;;
10364     *)
10365       # `set' quotes correctly as required by POSIX, so do not add quotes.
10366       sed -n \
10367         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10368       ;;
10369     esac;
10370 } |
10371   sed '
10372      t clear
10373      : clear
10374      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10375      t end
10376      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10377      : end' >>confcache
10378 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10379   if test -w $cache_file; then
10380     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10381     cat confcache >$cache_file
10382   else
10383     echo "not updating unwritable cache $cache_file"
10384   fi
10385 fi
10386 rm -f confcache
10387
10388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10389 # Let make expand exec_prefix.
10390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10391
10392 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10393 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10394 # trailing colons and then remove the whole line if VPATH becomes empty
10395 # (actually we leave an empty line to preserve line numbers).
10396 if test "x$srcdir" = x.; then
10397   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10398 s/:*\$(srcdir):*/:/;
10399 s/:*\${srcdir}:*/:/;
10400 s/:*@srcdir@:*/:/;
10401 s/^\([^=]*=[     ]*\):*/\1/;
10402 s/:*$//;
10403 s/^[^=]*=[       ]*$//;
10404 }'
10405 fi
10406
10407 DEFS=-DHAVE_CONFIG_H
10408
10409 ac_libobjs=
10410 ac_ltlibobjs=
10411 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10412   # 1. Remove the extension, and $U if already installed.
10413   ac_i=`echo "$ac_i" |
10414          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10415   # 2. Add them.
10416   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10417   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10418 done
10419 LIBOBJS=$ac_libobjs
10420
10421 LTLIBOBJS=$ac_ltlibobjs
10422
10423
10424 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10425   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
10426 Usually this means the macro was only invoked conditionally." >&5
10427 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
10428 Usually this means the macro was only invoked conditionally." >&2;}
10429    { (exit 1); exit 1; }; }
10430 fi
10431 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10432   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10433 Usually this means the macro was only invoked conditionally." >&5
10434 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10435 Usually this means the macro was only invoked conditionally." >&2;}
10436    { (exit 1); exit 1; }; }
10437 fi
10438 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10439   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10440 Usually this means the macro was only invoked conditionally." >&5
10441 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10442 Usually this means the macro was only invoked conditionally." >&2;}
10443    { (exit 1); exit 1; }; }
10444 fi
10445
10446 : ${CONFIG_STATUS=./config.status}
10447 ac_clean_files_save=$ac_clean_files
10448 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10449 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10450 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10451 cat >$CONFIG_STATUS <<_ACEOF
10452 #! $SHELL
10453 # Generated by $as_me.
10454 # Run this file to recreate the current configuration.
10455 # Compiler output produced by configure, useful for debugging
10456 # configure, is in config.log if it exists.
10457
10458 debug=false
10459 ac_cs_recheck=false
10460 ac_cs_silent=false
10461 SHELL=\${CONFIG_SHELL-$SHELL}
10462 _ACEOF
10463
10464 cat >>$CONFIG_STATUS <<\_ACEOF
10465 ## --------------------- ##
10466 ## M4sh Initialization.  ##
10467 ## --------------------- ##
10468
10469 # Be Bourne compatible
10470 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10471   emulate sh
10472   NULLCMD=:
10473   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10474   # is contrary to our usage.  Disable this feature.
10475   alias -g '${1+"$@"}'='"$@"'
10476 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10477   set -o posix
10478 fi
10479 DUALCASE=1; export DUALCASE # for MKS sh
10480
10481 # Support unset when possible.
10482 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10483   as_unset=unset
10484 else
10485   as_unset=false
10486 fi
10487
10488
10489 # Work around bugs in pre-3.0 UWIN ksh.
10490 $as_unset ENV MAIL MAILPATH
10491 PS1='$ '
10492 PS2='> '
10493 PS4='+ '
10494
10495 # NLS nuisances.
10496 for as_var in \
10497   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10498   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10499   LC_TELEPHONE LC_TIME
10500 do
10501   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10502     eval $as_var=C; export $as_var
10503   else
10504     $as_unset $as_var
10505   fi
10506 done
10507
10508 # Required to use basename.
10509 if expr a : '\(a\)' >/dev/null 2>&1; then
10510   as_expr=expr
10511 else
10512   as_expr=false
10513 fi
10514
10515 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10516   as_basename=basename
10517 else
10518   as_basename=false
10519 fi
10520
10521
10522 # Name of the executable.
10523 as_me=`$as_basename "$0" ||
10524 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10525          X"$0" : 'X\(//\)$' \| \
10526          X"$0" : 'X\(/\)$' \| \
10527          .     : '\(.\)' 2>/dev/null ||
10528 echo X/"$0" |
10529     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10530           /^X\/\(\/\/\)$/{ s//\1/; q; }
10531           /^X\/\(\/\).*/{ s//\1/; q; }
10532           s/.*/./; q'`
10533
10534
10535 # PATH needs CR, and LINENO needs CR and PATH.
10536 # Avoid depending upon Character Ranges.
10537 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10538 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10539 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10540 as_cr_digits='0123456789'
10541 as_cr_alnum=$as_cr_Letters$as_cr_digits
10542
10543 # The user is always right.
10544 if test "${PATH_SEPARATOR+set}" != set; then
10545   echo "#! /bin/sh" >conf$$.sh
10546   echo  "exit 0"   >>conf$$.sh
10547   chmod +x conf$$.sh
10548   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10549     PATH_SEPARATOR=';'
10550   else
10551     PATH_SEPARATOR=:
10552   fi
10553   rm -f conf$$.sh
10554 fi
10555
10556
10557   as_lineno_1=$LINENO
10558   as_lineno_2=$LINENO
10559   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10560   test "x$as_lineno_1" != "x$as_lineno_2" &&
10561   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10562   # Find who we are.  Look in the path if we contain no path at all
10563   # relative or not.
10564   case $0 in
10565     *[\\/]* ) as_myself=$0 ;;
10566     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567 for as_dir in $PATH
10568 do
10569   IFS=$as_save_IFS
10570   test -z "$as_dir" && as_dir=.
10571   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10572 done
10573
10574        ;;
10575   esac
10576   # We did not find ourselves, most probably we were run as `sh COMMAND'
10577   # in which case we are not to be found in the path.
10578   if test "x$as_myself" = x; then
10579     as_myself=$0
10580   fi
10581   if test ! -f "$as_myself"; then
10582     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10583 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10584    { (exit 1); exit 1; }; }
10585   fi
10586   case $CONFIG_SHELL in
10587   '')
10588     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10590 do
10591   IFS=$as_save_IFS
10592   test -z "$as_dir" && as_dir=.
10593   for as_base in sh bash ksh sh5; do
10594          case $as_dir in
10595          /*)
10596            if ("$as_dir/$as_base" -c '
10597   as_lineno_1=$LINENO
10598   as_lineno_2=$LINENO
10599   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10600   test "x$as_lineno_1" != "x$as_lineno_2" &&
10601   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10602              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10603              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10604              CONFIG_SHELL=$as_dir/$as_base
10605              export CONFIG_SHELL
10606              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10607            fi;;
10608          esac
10609        done
10610 done
10611 ;;
10612   esac
10613
10614   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10615   # uniformly replaced by the line number.  The first 'sed' inserts a
10616   # line-number line before each line; the second 'sed' does the real
10617   # work.  The second script uses 'N' to pair each line-number line
10618   # with the numbered line, and appends trailing '-' during
10619   # substitution so that $LINENO is not a special case at line end.
10620   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10621   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10622   sed '=' <$as_myself |
10623     sed '
10624       N
10625       s,$,-,
10626       : loop
10627       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10628       t loop
10629       s,-$,,
10630       s,^['$as_cr_digits']*\n,,
10631     ' >$as_me.lineno &&
10632   chmod +x $as_me.lineno ||
10633     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10634 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10635    { (exit 1); exit 1; }; }
10636
10637   # Don't try to exec as it changes $[0], causing all sort of problems
10638   # (the dirname of $[0] is not the place where we might find the
10639   # original and so on.  Autoconf is especially sensible to this).
10640   . ./$as_me.lineno
10641   # Exit status is that of the last command.
10642   exit
10643 }
10644
10645
10646 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10647   *c*,-n*) ECHO_N= ECHO_C='
10648 ' ECHO_T='      ' ;;
10649   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10650   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10651 esac
10652
10653 if expr a : '\(a\)' >/dev/null 2>&1; then
10654   as_expr=expr
10655 else
10656   as_expr=false
10657 fi
10658
10659 rm -f conf$$ conf$$.exe conf$$.file
10660 echo >conf$$.file
10661 if ln -s conf$$.file conf$$ 2>/dev/null; then
10662   # We could just check for DJGPP; but this test a) works b) is more generic
10663   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10664   if test -f conf$$.exe; then
10665     # Don't use ln at all; we don't have any links
10666     as_ln_s='cp -p'
10667   else
10668     as_ln_s='ln -s'
10669   fi
10670 elif ln conf$$.file conf$$ 2>/dev/null; then
10671   as_ln_s=ln
10672 else
10673   as_ln_s='cp -p'
10674 fi
10675 rm -f conf$$ conf$$.exe conf$$.file
10676
10677 if mkdir -p . 2>/dev/null; then
10678   as_mkdir_p=:
10679 else
10680   test -d ./-p && rmdir ./-p
10681   as_mkdir_p=false
10682 fi
10683
10684 as_executable_p="test -f"
10685
10686 # Sed expression to map a string onto a valid CPP name.
10687 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10688
10689 # Sed expression to map a string onto a valid variable name.
10690 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10691
10692
10693 # IFS
10694 # We need space, tab and new line, in precisely that order.
10695 as_nl='
10696 '
10697 IFS="   $as_nl"
10698
10699 # CDPATH.
10700 $as_unset CDPATH
10701
10702 exec 6>&1
10703
10704 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10705 # report actual input values of CONFIG_FILES etc. instead of their
10706 # values after options handling.  Logging --version etc. is OK.
10707 exec 5>>config.log
10708 {
10709   echo
10710   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10711 ## Running $as_me. ##
10712 _ASBOX
10713 } >&5
10714 cat >&5 <<_CSEOF
10715
10716 This file was extended by $as_me, which was
10717 generated by GNU Autoconf 2.59.  Invocation command line was
10718
10719   CONFIG_FILES    = $CONFIG_FILES
10720   CONFIG_HEADERS  = $CONFIG_HEADERS
10721   CONFIG_LINKS    = $CONFIG_LINKS
10722   CONFIG_COMMANDS = $CONFIG_COMMANDS
10723   $ $0 $@
10724
10725 _CSEOF
10726 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10727 echo >&5
10728 _ACEOF
10729
10730 # Files that config.status was made for.
10731 if test -n "$ac_config_files"; then
10732   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10733 fi
10734
10735 if test -n "$ac_config_headers"; then
10736   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10737 fi
10738
10739 if test -n "$ac_config_links"; then
10740   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10741 fi
10742
10743 if test -n "$ac_config_commands"; then
10744   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10745 fi
10746
10747 cat >>$CONFIG_STATUS <<\_ACEOF
10748
10749 ac_cs_usage="\
10750 \`$as_me' instantiates files from templates according to the
10751 current configuration.
10752
10753 Usage: $0 [OPTIONS] [FILE]...
10754
10755   -h, --help       print this help, then exit
10756   -V, --version    print version number, then exit
10757   -q, --quiet      do not print progress messages
10758   -d, --debug      don't remove temporary files
10759       --recheck    update $as_me by reconfiguring in the same conditions
10760   --file=FILE[:TEMPLATE]
10761                    instantiate the configuration file FILE
10762   --header=FILE[:TEMPLATE]
10763                    instantiate the configuration header FILE
10764
10765 Configuration files:
10766 $config_files
10767
10768 Configuration headers:
10769 $config_headers
10770
10771 Configuration commands:
10772 $config_commands
10773
10774 Report bugs to <bug-autoconf@gnu.org>."
10775 _ACEOF
10776
10777 cat >>$CONFIG_STATUS <<_ACEOF
10778 ac_cs_version="\\
10779 config.status
10780 configured by $0, generated by GNU Autoconf 2.59,
10781   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10782
10783 Copyright (C) 2003 Free Software Foundation, Inc.
10784 This config.status script is free software; the Free Software Foundation
10785 gives unlimited permission to copy, distribute and modify it."
10786 srcdir=$srcdir
10787 INSTALL="$INSTALL"
10788 _ACEOF
10789
10790 cat >>$CONFIG_STATUS <<\_ACEOF
10791 # If no file are specified by the user, then we need to provide default
10792 # value.  By we need to know if files were specified by the user.
10793 ac_need_defaults=:
10794 while test $# != 0
10795 do
10796   case $1 in
10797   --*=*)
10798     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10799     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10800     ac_shift=:
10801     ;;
10802   -*)
10803     ac_option=$1
10804     ac_optarg=$2
10805     ac_shift=shift
10806     ;;
10807   *) # This is not an option, so the user has probably given explicit
10808      # arguments.
10809      ac_option=$1
10810      ac_need_defaults=false;;
10811   esac
10812
10813   case $ac_option in
10814   # Handling of the options.
10815 _ACEOF
10816 cat >>$CONFIG_STATUS <<\_ACEOF
10817   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10818     ac_cs_recheck=: ;;
10819   --version | --vers* | -V )
10820     echo "$ac_cs_version"; exit 0 ;;
10821   --he | --h)
10822     # Conflict between --help and --header
10823     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10824 Try \`$0 --help' for more information." >&5
10825 echo "$as_me: error: ambiguous option: $1
10826 Try \`$0 --help' for more information." >&2;}
10827    { (exit 1); exit 1; }; };;
10828   --help | --hel | -h )
10829     echo "$ac_cs_usage"; exit 0 ;;
10830   --debug | --d* | -d )
10831     debug=: ;;
10832   --file | --fil | --fi | --f )
10833     $ac_shift
10834     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10835     ac_need_defaults=false;;
10836   --header | --heade | --head | --hea )
10837     $ac_shift
10838     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10839     ac_need_defaults=false;;
10840   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10841   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10842     ac_cs_silent=: ;;
10843
10844   # This is an error.
10845   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10846 Try \`$0 --help' for more information." >&5
10847 echo "$as_me: error: unrecognized option: $1
10848 Try \`$0 --help' for more information." >&2;}
10849    { (exit 1); exit 1; }; } ;;
10850
10851   *) ac_config_targets="$ac_config_targets $1" ;;
10852
10853   esac
10854   shift
10855 done
10856
10857 ac_configure_extra_args=
10858
10859 if $ac_cs_silent; then
10860   exec 6>/dev/null
10861   ac_configure_extra_args="$ac_configure_extra_args --silent"
10862 fi
10863
10864 _ACEOF
10865 cat >>$CONFIG_STATUS <<_ACEOF
10866 if \$ac_cs_recheck; then
10867   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10868   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10869 fi
10870
10871 _ACEOF
10872
10873 cat >>$CONFIG_STATUS <<_ACEOF
10874 #
10875 # INIT-COMMANDS section.
10876 #
10877
10878 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10879
10880
10881 # The HP-UX ksh and POSIX shell print the target directory to stdout
10882 # if CDPATH is set.
10883 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10884
10885 sed_quote_subst='$sed_quote_subst'
10886 double_quote_subst='$double_quote_subst'
10887 delay_variable_subst='$delay_variable_subst'
10888 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
10889 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
10890 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
10891 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
10892 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
10893 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
10894 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
10895 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
10896 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
10897 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
10898 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
10899 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
10900 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
10901 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
10902 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
10903 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
10904 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
10905 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
10906 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
10907 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
10908 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
10909 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
10910 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
10911 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
10912 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
10913 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
10914 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
10915 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10916 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
10917 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
10918 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
10919 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
10920 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
10921 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
10922 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10923 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10924 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10925 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
10926 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
10927 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
10928 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
10929 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
10930 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
10931 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"`'
10932 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
10933 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
10934 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
10935 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
10936 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
10937 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
10938 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
10939 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
10940 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
10941 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
10942 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
10943 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10944 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10945 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
10946 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
10947 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10948 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10949 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
10950 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10951 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10952 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10953 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10954 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10955 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10956 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
10957 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
10958 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
10959 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
10960 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
10961 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
10962 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
10963 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
10964 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
10965 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10966 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
10967 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
10968 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
10969 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
10970 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
10971 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10972 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
10973 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
10974 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10975 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
10976 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
10977 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
10978 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
10979 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
10980 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10981 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
10982 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
10983 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
10984 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
10985 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
10986 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10987 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10988 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
10989 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
10990 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
10991 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
10992 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
10993 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
10994 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
10995 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
10996 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
10997 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
10998 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
10999
11000 LTCC='$LTCC'
11001 LTCFLAGS='$LTCFLAGS'
11002 compiler='$compiler_DEFAULT'
11003
11004 # Quote evaled strings.
11005 for var in SED \
11006 GREP \
11007 EGREP \
11008 FGREP \
11009 LD \
11010 NM \
11011 LN_S \
11012 lt_SP2NL \
11013 lt_NL2SP \
11014 reload_flag \
11015 deplibs_check_method \
11016 file_magic_cmd \
11017 AR \
11018 AR_FLAGS \
11019 STRIP \
11020 RANLIB \
11021 CC \
11022 CFLAGS \
11023 compiler \
11024 lt_cv_sys_global_symbol_pipe \
11025 lt_cv_sys_global_symbol_to_cdecl \
11026 lt_cv_sys_global_symbol_to_c_name_address \
11027 SHELL \
11028 ECHO \
11029 lt_prog_compiler_no_builtin_flag \
11030 lt_prog_compiler_wl \
11031 lt_prog_compiler_pic \
11032 lt_prog_compiler_static \
11033 lt_cv_prog_compiler_c_o \
11034 need_locks \
11035 shrext_cmds \
11036 export_dynamic_flag_spec \
11037 whole_archive_flag_spec \
11038 compiler_needs_object \
11039 with_gnu_ld \
11040 allow_undefined_flag \
11041 no_undefined_flag \
11042 hardcode_libdir_flag_spec \
11043 hardcode_libdir_flag_spec_ld \
11044 hardcode_libdir_separator \
11045 fix_srcfile_path \
11046 exclude_expsyms \
11047 include_expsyms \
11048 file_list_spec \
11049 variables_saved_for_relink \
11050 libname_spec \
11051 library_names_spec \
11052 soname_spec \
11053 finish_eval \
11054 old_striplib \
11055 striplib; do
11056     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11057     *[\\\\\\\`\\"\\\$]*)
11058       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11059       ;;
11060     *)
11061       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11062       ;;
11063     esac
11064 done
11065
11066 # Double-quote double-evaled strings.
11067 for var in reload_cmds \
11068 old_postinstall_cmds \
11069 old_postuninstall_cmds \
11070 old_archive_cmds \
11071 extract_expsyms_cmds \
11072 old_archive_from_new_cmds \
11073 old_archive_from_expsyms_cmds \
11074 archive_cmds \
11075 archive_expsym_cmds \
11076 module_cmds \
11077 module_expsym_cmds \
11078 export_symbols_cmds \
11079 prelink_cmds \
11080 postinstall_cmds \
11081 postuninstall_cmds \
11082 finish_cmds \
11083 sys_lib_search_path_spec \
11084 sys_lib_dlsearch_path_spec; do
11085     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11086     *[\\\\\\\`\\"\\\$]*)
11087       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11088       ;;
11089     *)
11090       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11091       ;;
11092     esac
11093 done
11094
11095 # Fix-up fallback echo if it was mangled by the above quoting rules.
11096 case \$lt_ECHO in
11097 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11098   ;;
11099 esac
11100
11101 ac_aux_dir='$ac_aux_dir'
11102 xsi_shell='$xsi_shell'
11103 lt_shell_append='$lt_shell_append'
11104
11105 # See if we are running on zsh, and set the options which allow our
11106 # commands through without removal of \ escapes INIT.
11107 if test -n "\${ZSH_VERSION+set}" ; then
11108    setopt NO_GLOB_SUBST
11109 fi
11110
11111
11112     PACKAGE='$PACKAGE'
11113     VERSION='$VERSION'
11114     TIMESTAMP='$TIMESTAMP'
11115     RM='$RM'
11116     ofile='$ofile'
11117
11118
11119
11120
11121 _ACEOF
11122
11123
11124
11125 cat >>$CONFIG_STATUS <<\_ACEOF
11126 for ac_config_target in $ac_config_targets
11127 do
11128   case "$ac_config_target" in
11129   # Handling of arguments.
11130   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11131   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11132   "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
11133   "qe/Makefile" ) CONFIG_FILES="$CONFIG_FILES qe/Makefile" ;;
11134   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11135   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11136   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
11137   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11138 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11139    { (exit 1); exit 1; }; };;
11140   esac
11141 done
11142
11143 # If the user did not use the arguments to specify the items to instantiate,
11144 # then the envvar interface is used.  Set only those that are not.
11145 # We use the long form for the default assignment because of an extremely
11146 # bizarre bug on SunOS 4.1.3.
11147 if $ac_need_defaults; then
11148   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11149   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11150   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11151 fi
11152
11153 # Have a temporary directory for convenience.  Make it in the build tree
11154 # simply because there is no reason to put it here, and in addition,
11155 # creating and moving files from /tmp can sometimes cause problems.
11156 # Create a temporary directory, and hook for its removal unless debugging.
11157 $debug ||
11158 {
11159   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11160   trap '{ (exit 1); exit 1; }' 1 2 13 15
11161 }
11162
11163 # Create a (secure) tmp directory for tmp files.
11164
11165 {
11166   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11167   test -n "$tmp" && test -d "$tmp"
11168 }  ||
11169 {
11170   tmp=./confstat$$-$RANDOM
11171   (umask 077 && mkdir $tmp)
11172 } ||
11173 {
11174    echo "$me: cannot create a temporary directory in ." >&2
11175    { (exit 1); exit 1; }
11176 }
11177
11178 _ACEOF
11179
11180 cat >>$CONFIG_STATUS <<_ACEOF
11181
11182 #
11183 # CONFIG_FILES section.
11184 #
11185
11186 # No need to generate the scripts if there are no CONFIG_FILES.
11187 # This happens for instance when ./config.status config.h
11188 if test -n "\$CONFIG_FILES"; then
11189   # Protect against being on the right side of a sed subst in config.status.
11190   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11191    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11192 s,@SHELL@,$SHELL,;t t
11193 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11194 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11195 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11196 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11197 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11198 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11199 s,@exec_prefix@,$exec_prefix,;t t
11200 s,@prefix@,$prefix,;t t
11201 s,@program_transform_name@,$program_transform_name,;t t
11202 s,@bindir@,$bindir,;t t
11203 s,@sbindir@,$sbindir,;t t
11204 s,@libexecdir@,$libexecdir,;t t
11205 s,@datadir@,$datadir,;t t
11206 s,@sysconfdir@,$sysconfdir,;t t
11207 s,@sharedstatedir@,$sharedstatedir,;t t
11208 s,@localstatedir@,$localstatedir,;t t
11209 s,@libdir@,$libdir,;t t
11210 s,@includedir@,$includedir,;t t
11211 s,@oldincludedir@,$oldincludedir,;t t
11212 s,@infodir@,$infodir,;t t
11213 s,@mandir@,$mandir,;t t
11214 s,@build_alias@,$build_alias,;t t
11215 s,@host_alias@,$host_alias,;t t
11216 s,@target_alias@,$target_alias,;t t
11217 s,@DEFS@,$DEFS,;t t
11218 s,@ECHO_C@,$ECHO_C,;t t
11219 s,@ECHO_N@,$ECHO_N,;t t
11220 s,@ECHO_T@,$ECHO_T,;t t
11221 s,@LIBS@,$LIBS,;t t
11222 s,@build@,$build,;t t
11223 s,@build_cpu@,$build_cpu,;t t
11224 s,@build_vendor@,$build_vendor,;t t
11225 s,@build_os@,$build_os,;t t
11226 s,@host@,$host,;t t
11227 s,@host_cpu@,$host_cpu,;t t
11228 s,@host_vendor@,$host_vendor,;t t
11229 s,@host_os@,$host_os,;t t
11230 s,@target@,$target,;t t
11231 s,@target_cpu@,$target_cpu,;t t
11232 s,@target_vendor@,$target_vendor,;t t
11233 s,@target_os@,$target_os,;t t
11234 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11235 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11236 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11237 s,@CYGPATH_W@,$CYGPATH_W,;t t
11238 s,@PACKAGE@,$PACKAGE,;t t
11239 s,@VERSION@,$VERSION,;t t
11240 s,@ACLOCAL@,$ACLOCAL,;t t
11241 s,@AUTOCONF@,$AUTOCONF,;t t
11242 s,@AUTOMAKE@,$AUTOMAKE,;t t
11243 s,@AUTOHEADER@,$AUTOHEADER,;t t
11244 s,@MAKEINFO@,$MAKEINFO,;t t
11245 s,@install_sh@,$install_sh,;t t
11246 s,@STRIP@,$STRIP,;t t
11247 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11248 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11249 s,@mkdir_p@,$mkdir_p,;t t
11250 s,@AWK@,$AWK,;t t
11251 s,@SET_MAKE@,$SET_MAKE,;t t
11252 s,@am__leading_dot@,$am__leading_dot,;t t
11253 s,@AMTAR@,$AMTAR,;t t
11254 s,@am__tar@,$am__tar,;t t
11255 s,@am__untar@,$am__untar,;t t
11256 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
11257 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
11258 s,@MAINT@,$MAINT,;t t
11259 s,@LIBTOOL@,$LIBTOOL,;t t
11260 s,@CC@,$CC,;t t
11261 s,@CFLAGS@,$CFLAGS,;t t
11262 s,@LDFLAGS@,$LDFLAGS,;t t
11263 s,@CPPFLAGS@,$CPPFLAGS,;t t
11264 s,@ac_ct_CC@,$ac_ct_CC,;t t
11265 s,@EXEEXT@,$EXEEXT,;t t
11266 s,@OBJEXT@,$OBJEXT,;t t
11267 s,@DEPDIR@,$DEPDIR,;t t
11268 s,@am__include@,$am__include,;t t
11269 s,@am__quote@,$am__quote,;t t
11270 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11271 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11272 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11273 s,@CCDEPMODE@,$CCDEPMODE,;t t
11274 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11275 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11276 s,@SED@,$SED,;t t
11277 s,@EGREP@,$EGREP,;t t
11278 s,@FGREP@,$FGREP,;t t
11279 s,@GREP@,$GREP,;t t
11280 s,@LD@,$LD,;t t
11281 s,@DUMPBIN@,$DUMPBIN,;t t
11282 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
11283 s,@NM@,$NM,;t t
11284 s,@LN_S@,$LN_S,;t t
11285 s,@AR@,$AR,;t t
11286 s,@ac_ct_AR@,$ac_ct_AR,;t t
11287 s,@RANLIB@,$RANLIB,;t t
11288 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11289 s,@lt_ECHO@,$lt_ECHO,;t t
11290 s,@CPP@,$CPP,;t t
11291 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
11292 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
11293 s,@subdirs@,$subdirs,;t t
11294 s,@targ_subdirs@,$targ_subdirs,;t t
11295 s,@LIBOBJS@,$LIBOBJS,;t t
11296 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11297 CEOF
11298
11299 _ACEOF
11300
11301   cat >>$CONFIG_STATUS <<\_ACEOF
11302   # Split the substitutions into bite-sized pieces for seds with
11303   # small command number limits, like on Digital OSF/1 and HP-UX.
11304   ac_max_sed_lines=48
11305   ac_sed_frag=1 # Number of current file.
11306   ac_beg=1 # First line for current file.
11307   ac_end=$ac_max_sed_lines # Line after last line for current file.
11308   ac_more_lines=:
11309   ac_sed_cmds=
11310   while $ac_more_lines; do
11311     if test $ac_beg -gt 1; then
11312       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11313     else
11314       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11315     fi
11316     if test ! -s $tmp/subs.frag; then
11317       ac_more_lines=false
11318     else
11319       # The purpose of the label and of the branching condition is to
11320       # speed up the sed processing (if there are no `@' at all, there
11321       # is no need to browse any of the substitutions).
11322       # These are the two extra sed commands mentioned above.
11323       (echo ':t
11324   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11325       if test -z "$ac_sed_cmds"; then
11326         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11327       else
11328         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11329       fi
11330       ac_sed_frag=`expr $ac_sed_frag + 1`
11331       ac_beg=$ac_end
11332       ac_end=`expr $ac_end + $ac_max_sed_lines`
11333     fi
11334   done
11335   if test -z "$ac_sed_cmds"; then
11336     ac_sed_cmds=cat
11337   fi
11338 fi # test -n "$CONFIG_FILES"
11339
11340 _ACEOF
11341 cat >>$CONFIG_STATUS <<\_ACEOF
11342 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11343   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11344   case $ac_file in
11345   - | *:- | *:-:* ) # input from stdin
11346         cat >$tmp/stdin
11347         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11348         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11349   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11350         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11351   * )   ac_file_in=$ac_file.in ;;
11352   esac
11353
11354   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11355   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11356 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11357          X"$ac_file" : 'X\(//\)[^/]' \| \
11358          X"$ac_file" : 'X\(//\)$' \| \
11359          X"$ac_file" : 'X\(/\)' \| \
11360          .     : '\(.\)' 2>/dev/null ||
11361 echo X"$ac_file" |
11362     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11363           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11364           /^X\(\/\/\)$/{ s//\1/; q; }
11365           /^X\(\/\).*/{ s//\1/; q; }
11366           s/.*/./; q'`
11367   { if $as_mkdir_p; then
11368     mkdir -p "$ac_dir"
11369   else
11370     as_dir="$ac_dir"
11371     as_dirs=
11372     while test ! -d "$as_dir"; do
11373       as_dirs="$as_dir $as_dirs"
11374       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11376          X"$as_dir" : 'X\(//\)[^/]' \| \
11377          X"$as_dir" : 'X\(//\)$' \| \
11378          X"$as_dir" : 'X\(/\)' \| \
11379          .     : '\(.\)' 2>/dev/null ||
11380 echo X"$as_dir" |
11381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11382           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11383           /^X\(\/\/\)$/{ s//\1/; q; }
11384           /^X\(\/\).*/{ s//\1/; q; }
11385           s/.*/./; q'`
11386     done
11387     test ! -n "$as_dirs" || mkdir $as_dirs
11388   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11389 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11390    { (exit 1); exit 1; }; }; }
11391
11392   ac_builddir=.
11393
11394 if test "$ac_dir" != .; then
11395   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11396   # A "../" for each directory in $ac_dir_suffix.
11397   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11398 else
11399   ac_dir_suffix= ac_top_builddir=
11400 fi
11401
11402 case $srcdir in
11403   .)  # No --srcdir option.  We are building in place.
11404     ac_srcdir=.
11405     if test -z "$ac_top_builddir"; then
11406        ac_top_srcdir=.
11407     else
11408        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11409     fi ;;
11410   [\\/]* | ?:[\\/]* )  # Absolute path.
11411     ac_srcdir=$srcdir$ac_dir_suffix;
11412     ac_top_srcdir=$srcdir ;;
11413   *) # Relative path.
11414     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11415     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11416 esac
11417
11418 # Do not use `cd foo && pwd` to compute absolute paths, because
11419 # the directories may not exist.
11420 case `pwd` in
11421 .) ac_abs_builddir="$ac_dir";;
11422 *)
11423   case "$ac_dir" in
11424   .) ac_abs_builddir=`pwd`;;
11425   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11426   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11427   esac;;
11428 esac
11429 case $ac_abs_builddir in
11430 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11431 *)
11432   case ${ac_top_builddir}. in
11433   .) ac_abs_top_builddir=$ac_abs_builddir;;
11434   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11435   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11436   esac;;
11437 esac
11438 case $ac_abs_builddir in
11439 .) ac_abs_srcdir=$ac_srcdir;;
11440 *)
11441   case $ac_srcdir in
11442   .) ac_abs_srcdir=$ac_abs_builddir;;
11443   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11444   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11445   esac;;
11446 esac
11447 case $ac_abs_builddir in
11448 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11449 *)
11450   case $ac_top_srcdir in
11451   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11452   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11453   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11454   esac;;
11455 esac
11456
11457
11458   case $INSTALL in
11459   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11460   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11461   esac
11462
11463   if test x"$ac_file" != x-; then
11464     { echo "$as_me:$LINENO: creating $ac_file" >&5
11465 echo "$as_me: creating $ac_file" >&6;}
11466     rm -f "$ac_file"
11467   fi
11468   # Let's still pretend it is `configure' which instantiates (i.e., don't
11469   # use $as_me), people would be surprised to read:
11470   #    /* config.h.  Generated by config.status.  */
11471   if test x"$ac_file" = x-; then
11472     configure_input=
11473   else
11474     configure_input="$ac_file.  "
11475   fi
11476   configure_input=$configure_input"Generated from `echo $ac_file_in |
11477                                      sed 's,.*/,,'` by configure."
11478
11479   # First look for the input files in the build tree, otherwise in the
11480   # src tree.
11481   ac_file_inputs=`IFS=:
11482     for f in $ac_file_in; do
11483       case $f in
11484       -) echo $tmp/stdin ;;
11485       [\\/$]*)
11486          # Absolute (can't be DOS-style, as IFS=:)
11487          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11488 echo "$as_me: error: cannot find input file: $f" >&2;}
11489    { (exit 1); exit 1; }; }
11490          echo "$f";;
11491       *) # Relative
11492          if test -f "$f"; then
11493            # Build tree
11494            echo "$f"
11495          elif test -f "$srcdir/$f"; then
11496            # Source tree
11497            echo "$srcdir/$f"
11498          else
11499            # /dev/null tree
11500            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11501 echo "$as_me: error: cannot find input file: $f" >&2;}
11502    { (exit 1); exit 1; }; }
11503          fi;;
11504       esac
11505     done` || { (exit 1); exit 1; }
11506 _ACEOF
11507 cat >>$CONFIG_STATUS <<_ACEOF
11508   sed "$ac_vpsub
11509 $extrasub
11510 _ACEOF
11511 cat >>$CONFIG_STATUS <<\_ACEOF
11512 :t
11513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11514 s,@configure_input@,$configure_input,;t t
11515 s,@srcdir@,$ac_srcdir,;t t
11516 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11517 s,@top_srcdir@,$ac_top_srcdir,;t t
11518 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11519 s,@builddir@,$ac_builddir,;t t
11520 s,@abs_builddir@,$ac_abs_builddir,;t t
11521 s,@top_builddir@,$ac_top_builddir,;t t
11522 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11523 s,@INSTALL@,$ac_INSTALL,;t t
11524 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11525   rm -f $tmp/stdin
11526   if test x"$ac_file" != x-; then
11527     mv $tmp/out $ac_file
11528   else
11529     cat $tmp/out
11530     rm -f $tmp/out
11531   fi
11532
11533 done
11534 _ACEOF
11535 cat >>$CONFIG_STATUS <<\_ACEOF
11536
11537 #
11538 # CONFIG_HEADER section.
11539 #
11540
11541 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11542 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11543 #
11544 # ac_d sets the value in "#define NAME VALUE" lines.
11545 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
11546 ac_dB='[         ].*$,\1#\2'
11547 ac_dC=' '
11548 ac_dD=',;t'
11549 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11550 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
11551 ac_uB='$,\1#\2define\3'
11552 ac_uC=' '
11553 ac_uD=',;t'
11554
11555 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11556   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11557   case $ac_file in
11558   - | *:- | *:-:* ) # input from stdin
11559         cat >$tmp/stdin
11560         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11561         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11562   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11563         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11564   * )   ac_file_in=$ac_file.in ;;
11565   esac
11566
11567   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11568 echo "$as_me: creating $ac_file" >&6;}
11569
11570   # First look for the input files in the build tree, otherwise in the
11571   # src tree.
11572   ac_file_inputs=`IFS=:
11573     for f in $ac_file_in; do
11574       case $f in
11575       -) echo $tmp/stdin ;;
11576       [\\/$]*)
11577          # Absolute (can't be DOS-style, as IFS=:)
11578          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11579 echo "$as_me: error: cannot find input file: $f" >&2;}
11580    { (exit 1); exit 1; }; }
11581          # Do quote $f, to prevent DOS paths from being IFS'd.
11582          echo "$f";;
11583       *) # Relative
11584          if test -f "$f"; then
11585            # Build tree
11586            echo "$f"
11587          elif test -f "$srcdir/$f"; then
11588            # Source tree
11589            echo "$srcdir/$f"
11590          else
11591            # /dev/null tree
11592            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11593 echo "$as_me: error: cannot find input file: $f" >&2;}
11594    { (exit 1); exit 1; }; }
11595          fi;;
11596       esac
11597     done` || { (exit 1); exit 1; }
11598   # Remove the trailing spaces.
11599   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
11600
11601 _ACEOF
11602
11603 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11604 # `conftest.undefs', that substitutes the proper values into
11605 # config.h.in to produce config.h.  The first handles `#define'
11606 # templates, and the second `#undef' templates.
11607 # And first: Protect against being on the right side of a sed subst in
11608 # config.status.  Protect against being in an unquoted here document
11609 # in config.status.
11610 rm -f conftest.defines conftest.undefs
11611 # Using a here document instead of a string reduces the quoting nightmare.
11612 # Putting comments in sed scripts is not portable.
11613 #
11614 # `end' is used to avoid that the second main sed command (meant for
11615 # 0-ary CPP macros) applies to n-ary macro definitions.
11616 # See the Autoconf documentation for `clear'.
11617 cat >confdef2sed.sed <<\_ACEOF
11618 s/[\\&,]/\\&/g
11619 s,[\\$`],\\&,g
11620 t clear
11621 : clear
11622 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11623 t end
11624 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11625 : end
11626 _ACEOF
11627 # If some macros were called several times there might be several times
11628 # the same #defines, which is useless.  Nevertheless, we may not want to
11629 # sort them, since we want the *last* AC-DEFINE to be honored.
11630 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11631 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11632 rm -f confdef2sed.sed
11633
11634 # This sed command replaces #undef with comments.  This is necessary, for
11635 # example, in the case of _POSIX_SOURCE, which is predefined and required
11636 # on some systems where configure will not decide to define it.
11637 cat >>conftest.undefs <<\_ACEOF
11638 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11639 _ACEOF
11640
11641 # Break up conftest.defines because some shells have a limit on the size
11642 # of here documents, and old seds have small limits too (100 cmds).
11643 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11644 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11645 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11646 echo '  :' >>$CONFIG_STATUS
11647 rm -f conftest.tail
11648 while grep . conftest.defines >/dev/null
11649 do
11650   # Write a limited-size here document to $tmp/defines.sed.
11651   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11652   # Speed up: don't consider the non `#define' lines.
11653   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
11654   # Work around the forget-to-reset-the-flag bug.
11655   echo 't clr' >>$CONFIG_STATUS
11656   echo ': clr' >>$CONFIG_STATUS
11657   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11658   echo 'CEOF
11659   sed -f $tmp/defines.sed $tmp/in >$tmp/out
11660   rm -f $tmp/in
11661   mv $tmp/out $tmp/in
11662 ' >>$CONFIG_STATUS
11663   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11664   rm -f conftest.defines
11665   mv conftest.tail conftest.defines
11666 done
11667 rm -f conftest.defines
11668 echo '  fi # grep' >>$CONFIG_STATUS
11669 echo >>$CONFIG_STATUS
11670
11671 # Break up conftest.undefs because some shells have a limit on the size
11672 # of here documents, and old seds have small limits too (100 cmds).
11673 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
11674 rm -f conftest.tail
11675 while grep . conftest.undefs >/dev/null
11676 do
11677   # Write a limited-size here document to $tmp/undefs.sed.
11678   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11679   # Speed up: don't consider the non `#undef'
11680   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
11681   # Work around the forget-to-reset-the-flag bug.
11682   echo 't clr' >>$CONFIG_STATUS
11683   echo ': clr' >>$CONFIG_STATUS
11684   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
11685   echo 'CEOF
11686   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
11687   rm -f $tmp/in
11688   mv $tmp/out $tmp/in
11689 ' >>$CONFIG_STATUS
11690   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
11691   rm -f conftest.undefs
11692   mv conftest.tail conftest.undefs
11693 done
11694 rm -f conftest.undefs
11695
11696 cat >>$CONFIG_STATUS <<\_ACEOF
11697   # Let's still pretend it is `configure' which instantiates (i.e., don't
11698   # use $as_me), people would be surprised to read:
11699   #    /* config.h.  Generated by config.status.  */
11700   if test x"$ac_file" = x-; then
11701     echo "/* Generated by configure.  */" >$tmp/config.h
11702   else
11703     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
11704   fi
11705   cat $tmp/in >>$tmp/config.h
11706   rm -f $tmp/in
11707   if test x"$ac_file" != x-; then
11708     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
11709       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11710 echo "$as_me: $ac_file is unchanged" >&6;}
11711     else
11712       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11713 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11714          X"$ac_file" : 'X\(//\)[^/]' \| \
11715          X"$ac_file" : 'X\(//\)$' \| \
11716          X"$ac_file" : 'X\(/\)' \| \
11717          .     : '\(.\)' 2>/dev/null ||
11718 echo X"$ac_file" |
11719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11721           /^X\(\/\/\)$/{ s//\1/; q; }
11722           /^X\(\/\).*/{ s//\1/; q; }
11723           s/.*/./; q'`
11724       { if $as_mkdir_p; then
11725     mkdir -p "$ac_dir"
11726   else
11727     as_dir="$ac_dir"
11728     as_dirs=
11729     while test ! -d "$as_dir"; do
11730       as_dirs="$as_dir $as_dirs"
11731       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11733          X"$as_dir" : 'X\(//\)[^/]' \| \
11734          X"$as_dir" : 'X\(//\)$' \| \
11735          X"$as_dir" : 'X\(/\)' \| \
11736          .     : '\(.\)' 2>/dev/null ||
11737 echo X"$as_dir" |
11738     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11739           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11740           /^X\(\/\/\)$/{ s//\1/; q; }
11741           /^X\(\/\).*/{ s//\1/; q; }
11742           s/.*/./; q'`
11743     done
11744     test ! -n "$as_dirs" || mkdir $as_dirs
11745   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11746 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11747    { (exit 1); exit 1; }; }; }
11748
11749       rm -f $ac_file
11750       mv $tmp/config.h $ac_file
11751     fi
11752   else
11753     cat $tmp/config.h
11754     rm -f $tmp/config.h
11755   fi
11756 # Compute $ac_file's index in $config_headers.
11757 _am_stamp_count=1
11758 for _am_header in $config_headers :; do
11759   case $_am_header in
11760     $ac_file | $ac_file:* )
11761       break ;;
11762     * )
11763       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11764   esac
11765 done
11766 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
11767 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11768          X$ac_file : 'X\(//\)[^/]' \| \
11769          X$ac_file : 'X\(//\)$' \| \
11770          X$ac_file : 'X\(/\)' \| \
11771          .     : '\(.\)' 2>/dev/null ||
11772 echo X$ac_file |
11773     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11774           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11775           /^X\(\/\/\)$/{ s//\1/; q; }
11776           /^X\(\/\).*/{ s//\1/; q; }
11777           s/.*/./; q'`/stamp-h$_am_stamp_count
11778 done
11779 _ACEOF
11780 cat >>$CONFIG_STATUS <<\_ACEOF
11781
11782 #
11783 # CONFIG_COMMANDS section.
11784 #
11785 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11786   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11787   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11788   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11789 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11790          X"$ac_dest" : 'X\(//\)[^/]' \| \
11791          X"$ac_dest" : 'X\(//\)$' \| \
11792          X"$ac_dest" : 'X\(/\)' \| \
11793          .     : '\(.\)' 2>/dev/null ||
11794 echo X"$ac_dest" |
11795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11796           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11797           /^X\(\/\/\)$/{ s//\1/; q; }
11798           /^X\(\/\).*/{ s//\1/; q; }
11799           s/.*/./; q'`
11800   { if $as_mkdir_p; then
11801     mkdir -p "$ac_dir"
11802   else
11803     as_dir="$ac_dir"
11804     as_dirs=
11805     while test ! -d "$as_dir"; do
11806       as_dirs="$as_dir $as_dirs"
11807       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11808 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11809          X"$as_dir" : 'X\(//\)[^/]' \| \
11810          X"$as_dir" : 'X\(//\)$' \| \
11811          X"$as_dir" : 'X\(/\)' \| \
11812          .     : '\(.\)' 2>/dev/null ||
11813 echo X"$as_dir" |
11814     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11815           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11816           /^X\(\/\/\)$/{ s//\1/; q; }
11817           /^X\(\/\).*/{ s//\1/; q; }
11818           s/.*/./; q'`
11819     done
11820     test ! -n "$as_dirs" || mkdir $as_dirs
11821   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11822 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11823    { (exit 1); exit 1; }; }; }
11824
11825   ac_builddir=.
11826
11827 if test "$ac_dir" != .; then
11828   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11829   # A "../" for each directory in $ac_dir_suffix.
11830   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11831 else
11832   ac_dir_suffix= ac_top_builddir=
11833 fi
11834
11835 case $srcdir in
11836   .)  # No --srcdir option.  We are building in place.
11837     ac_srcdir=.
11838     if test -z "$ac_top_builddir"; then
11839        ac_top_srcdir=.
11840     else
11841        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11842     fi ;;
11843   [\\/]* | ?:[\\/]* )  # Absolute path.
11844     ac_srcdir=$srcdir$ac_dir_suffix;
11845     ac_top_srcdir=$srcdir ;;
11846   *) # Relative path.
11847     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11848     ac_top_srcdir=$ac_top_builddir$srcdir ;;
11849 esac
11850
11851 # Do not use `cd foo && pwd` to compute absolute paths, because
11852 # the directories may not exist.
11853 case `pwd` in
11854 .) ac_abs_builddir="$ac_dir";;
11855 *)
11856   case "$ac_dir" in
11857   .) ac_abs_builddir=`pwd`;;
11858   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11859   *) ac_abs_builddir=`pwd`/"$ac_dir";;
11860   esac;;
11861 esac
11862 case $ac_abs_builddir in
11863 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11864 *)
11865   case ${ac_top_builddir}. in
11866   .) ac_abs_top_builddir=$ac_abs_builddir;;
11867   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11868   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11869   esac;;
11870 esac
11871 case $ac_abs_builddir in
11872 .) ac_abs_srcdir=$ac_srcdir;;
11873 *)
11874   case $ac_srcdir in
11875   .) ac_abs_srcdir=$ac_abs_builddir;;
11876   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11877   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11878   esac;;
11879 esac
11880 case $ac_abs_builddir in
11881 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11882 *)
11883   case $ac_top_srcdir in
11884   .) ac_abs_top_srcdir=$ac_abs_builddir;;
11885   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11886   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11887   esac;;
11888 esac
11889
11890
11891   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11892 echo "$as_me: executing $ac_dest commands" >&6;}
11893   case $ac_dest in
11894     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11895   # Strip MF so we end up with the name of the file.
11896   mf=`echo "$mf" | sed -e 's/:.*$//'`
11897   # Check whether this is an Automake generated Makefile or not.
11898   # We used to match only the files named `Makefile.in', but
11899   # some people rename them; so instead we look at the file content.
11900   # Grep'ing the first line is not enough: some people post-process
11901   # each Makefile.in and add a new line on top of each file to say so.
11902   # So let's grep whole file.
11903   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
11904     dirpart=`(dirname "$mf") 2>/dev/null ||
11905 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11906          X"$mf" : 'X\(//\)[^/]' \| \
11907          X"$mf" : 'X\(//\)$' \| \
11908          X"$mf" : 'X\(/\)' \| \
11909          .     : '\(.\)' 2>/dev/null ||
11910 echo X"$mf" |
11911     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11912           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11913           /^X\(\/\/\)$/{ s//\1/; q; }
11914           /^X\(\/\).*/{ s//\1/; q; }
11915           s/.*/./; q'`
11916   else
11917     continue
11918   fi
11919   # Extract the definition of DEPDIR, am__include, and am__quote
11920   # from the Makefile without running `make'.
11921   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11922   test -z "$DEPDIR" && continue
11923   am__include=`sed -n 's/^am__include = //p' < "$mf"`
11924   test -z "am__include" && continue
11925   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11926   # When using ansi2knr, U may be empty or an underscore; expand it
11927   U=`sed -n 's/^U = //p' < "$mf"`
11928   # Find all dependency output files, they are included files with
11929   # $(DEPDIR) in their names.  We invoke sed twice because it is the
11930   # simplest approach to changing $(DEPDIR) to its actual value in the
11931   # expansion.
11932   for file in `sed -n "
11933     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11934        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11935     # Make sure the directory exists.
11936     test -f "$dirpart/$file" && continue
11937     fdir=`(dirname "$file") 2>/dev/null ||
11938 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11939          X"$file" : 'X\(//\)[^/]' \| \
11940          X"$file" : 'X\(//\)$' \| \
11941          X"$file" : 'X\(/\)' \| \
11942          .     : '\(.\)' 2>/dev/null ||
11943 echo X"$file" |
11944     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11945           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11946           /^X\(\/\/\)$/{ s//\1/; q; }
11947           /^X\(\/\).*/{ s//\1/; q; }
11948           s/.*/./; q'`
11949     { if $as_mkdir_p; then
11950     mkdir -p $dirpart/$fdir
11951   else
11952     as_dir=$dirpart/$fdir
11953     as_dirs=
11954     while test ! -d "$as_dir"; do
11955       as_dirs="$as_dir $as_dirs"
11956       as_dir=`(dirname "$as_dir") 2>/dev/null ||
11957 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11958          X"$as_dir" : 'X\(//\)[^/]' \| \
11959          X"$as_dir" : 'X\(//\)$' \| \
11960          X"$as_dir" : 'X\(/\)' \| \
11961          .     : '\(.\)' 2>/dev/null ||
11962 echo X"$as_dir" |
11963     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11964           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11965           /^X\(\/\/\)$/{ s//\1/; q; }
11966           /^X\(\/\).*/{ s//\1/; q; }
11967           s/.*/./; q'`
11968     done
11969     test ! -n "$as_dirs" || mkdir $as_dirs
11970   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
11971 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
11972    { (exit 1); exit 1; }; }; }
11973
11974     # echo "creating $dirpart/$file"
11975     echo '# dummy' > "$dirpart/$file"
11976   done
11977 done
11978  ;;
11979     libtool )
11980
11981     # See if we are running on zsh, and set the options which allow our
11982     # commands through without removal of \ escapes.
11983     if test -n "${ZSH_VERSION+set}" ; then
11984       setopt NO_GLOB_SUBST
11985     fi
11986
11987     cfgfile="${ofile}T"
11988     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
11989     $RM "$cfgfile"
11990
11991     cat <<_LT_EOF >> "$cfgfile"
11992 #! $SHELL
11993
11994 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11995 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
11996 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11997 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11998 #
11999 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12000 # 2006, 2007 Free Software Foundation, Inc.
12001 #
12002 # This file is part of GNU Libtool:
12003 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12004 #
12005 # This program is free software; you can redistribute it and/or modify
12006 # it under the terms of the GNU General Public License as published by
12007 # the Free Software Foundation; either version 2 of the License, or
12008 # (at your option) any later version.
12009 #
12010 # This program is distributed in the hope that it will be useful, but
12011 # WITHOUT ANY WARRANTY; without even the implied warranty of
12012 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12013 # General Public License for more details.
12014 #
12015 # You should have received a copy of the GNU General Public License
12016 # along with this program; if not, a copy can be downloaded from
12017 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
12018 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
12019 # MA 02110-1301, USA.
12020 #
12021 # As a special exception to the GNU General Public License, if you
12022 # distribute this file as part of a program that contains a
12023 # configuration script generated by Autoconf, you may include it under
12024 # the same distribution terms that you use for the rest of that program.
12025
12026
12027 # The names of the tagged configurations supported by this script.
12028 available_tags=""
12029
12030 # ### BEGIN LIBTOOL CONFIG
12031
12032 # Which release of libtool.m4 was used?
12033 macro_version=$macro_version
12034 macro_revision=$macro_revision
12035
12036 # Whether or not to build shared libraries.
12037 build_libtool_libs=$enable_shared
12038
12039 # Whether or not to build static libraries.
12040 build_old_libs=$enable_static
12041
12042 # What type of objects to build.
12043 pic_mode=$pic_mode
12044
12045 # Whether or not to optimize for fast installation.
12046 fast_install=$enable_fast_install
12047
12048 # The host system.
12049 host_alias=$host_alias
12050 host=$host
12051 host_os=$host_os
12052
12053 # The build system.
12054 build_alias=$build_alias
12055 build=$build
12056 build_os=$build_os
12057
12058 # A sed program that does not truncate output.
12059 SED=$lt_SED
12060
12061 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12062 Xsed="\$SED -e 1s/^X//"
12063
12064 # A grep program that handles long lines.
12065 GREP=$lt_GREP
12066
12067 # An ERE matcher.
12068 EGREP=$lt_EGREP
12069
12070 # A literal string matcher.
12071 FGREP=$lt_FGREP
12072
12073 # A BSD- or MS-compatible name lister.
12074 NM=$lt_NM
12075
12076 # Whether we need soft or hard links.
12077 LN_S=$lt_LN_S
12078
12079 # What is the maximum length of a command?
12080 max_cmd_len=$max_cmd_len
12081
12082 # Object file suffix (normally "o").
12083 objext=$ac_objext
12084
12085 # Executable file suffix (normally "").
12086 exeext=$exeext
12087
12088 # whether the shell understands "unset".
12089 lt_unset=$lt_unset
12090
12091 # turn spaces into newlines.
12092 SP2NL=$lt_lt_SP2NL
12093
12094 # turn newlines into spaces.
12095 NL2SP=$lt_lt_NL2SP
12096
12097 # How to create reloadable object files.
12098 reload_flag=$lt_reload_flag
12099 reload_cmds=$lt_reload_cmds
12100
12101 # Method to check whether dependent libraries are shared objects.
12102 deplibs_check_method=$lt_deplibs_check_method
12103
12104 # Command to use when deplibs_check_method == "file_magic".
12105 file_magic_cmd=$lt_file_magic_cmd
12106
12107 # The archiver.
12108 AR=$lt_AR
12109 AR_FLAGS=$lt_AR_FLAGS
12110
12111 # A symbol stripping program.
12112 STRIP=$lt_STRIP
12113
12114 # Commands used to install an old-style archive.
12115 RANLIB=$lt_RANLIB
12116 old_postinstall_cmds=$lt_old_postinstall_cmds
12117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12118
12119 # A C compiler.
12120 LTCC=$lt_CC
12121
12122 # LTCC compiler flags.
12123 LTCFLAGS=$lt_CFLAGS
12124
12125 # Take the output of nm and produce a listing of raw symbols and C names.
12126 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12127
12128 # Transform the output of nm in a proper C declaration.
12129 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12130
12131 # Transform the output of nm in a C name address pair.
12132 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12133
12134 # The name of the directory that contains temporary libtool files.
12135 objdir=$objdir
12136
12137 # Shell to use when invoking shell scripts.
12138 SHELL=$lt_SHELL
12139
12140 # An echo program that does not interpret backslashes.
12141 ECHO=$lt_ECHO
12142
12143 # Used to examine libraries when file_magic_cmd begins with "file".
12144 MAGIC_CMD=$MAGIC_CMD
12145
12146 # Must we lock files when doing compilation?
12147 need_locks=$lt_need_locks
12148
12149 # Old archive suffix (normally "a").
12150 libext=$libext
12151
12152 # Shared library suffix (normally ".so").
12153 shrext_cmds=$lt_shrext_cmds
12154
12155 # The commands to extract the exported symbol list from a shared archive.
12156 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12157
12158 # Variables whose values should be saved in libtool wrapper scripts and
12159 # restored at link time.
12160 variables_saved_for_relink=$lt_variables_saved_for_relink
12161
12162 # Do we need the "lib" prefix for modules?
12163 need_lib_prefix=$need_lib_prefix
12164
12165 # Do we need a version for libraries?
12166 need_version=$need_version
12167
12168 # Library versioning type.
12169 version_type=$version_type
12170
12171 # Shared library runtime path variable.
12172 runpath_var=$runpath_var
12173
12174 # Shared library path variable.
12175 shlibpath_var=$shlibpath_var
12176
12177 # Is shlibpath searched before the hard-coded library search path?
12178 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12179
12180 # Format of library name prefix.
12181 libname_spec=$lt_libname_spec
12182
12183 # List of archive names.  First name is the real one, the rest are links.
12184 # The last name is the one that the linker finds with -lNAME
12185 library_names_spec=$lt_library_names_spec
12186
12187 # The coded name of the library, if different from the real name.
12188 soname_spec=$lt_soname_spec
12189
12190 # Command to use after installation of a shared archive.
12191 postinstall_cmds=$lt_postinstall_cmds
12192
12193 # Command to use after uninstallation of a shared archive.
12194 postuninstall_cmds=$lt_postuninstall_cmds
12195
12196 # Commands used to finish a libtool library installation in a directory.
12197 finish_cmds=$lt_finish_cmds
12198
12199 # As "finish_cmds", except a single script fragment to be evaled but
12200 # not shown.
12201 finish_eval=$lt_finish_eval
12202
12203 # Whether we should hardcode library paths into libraries.
12204 hardcode_into_libs=$hardcode_into_libs
12205
12206 # Compile-time system search path for libraries.
12207 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12208
12209 # Run-time system search path for libraries.
12210 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12211
12212 # Whether dlopen is supported.
12213 dlopen_support=$enable_dlopen
12214
12215 # Whether dlopen of programs is supported.
12216 dlopen_self=$enable_dlopen_self
12217
12218 # Whether dlopen of statically linked programs is supported.
12219 dlopen_self_static=$enable_dlopen_self_static
12220
12221 # Commands to strip libraries.
12222 old_striplib=$lt_old_striplib
12223 striplib=$lt_striplib
12224
12225
12226 # The linker used to build libraries.
12227 LD=$lt_LD
12228
12229 # Commands used to build an old-style archive.
12230 old_archive_cmds=$lt_old_archive_cmds
12231
12232 # A language specific compiler.
12233 CC=$lt_compiler
12234
12235 # Is the compiler the GNU compiler?
12236 with_gcc=$GCC
12237
12238 # Compiler flag to turn off builtin functions.
12239 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12240
12241 # How to pass a linker flag through the compiler.
12242 wl=$lt_lt_prog_compiler_wl
12243
12244 # Additional compiler flags for building library objects.
12245 pic_flag=$lt_lt_prog_compiler_pic
12246
12247 # Compiler flag to prevent dynamic linking.
12248 link_static_flag=$lt_lt_prog_compiler_static
12249
12250 # Does compiler simultaneously support -c and -o options?
12251 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12252
12253 # Whether or not to add -lc for building shared libraries.
12254 build_libtool_need_lc=$archive_cmds_need_lc
12255
12256 # Whether or not to disallow shared libs when runtime libs are static.
12257 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12258
12259 # Compiler flag to allow reflexive dlopens.
12260 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12261
12262 # Compiler flag to generate shared objects directly from archives.
12263 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12264
12265 # Whether the compiler copes with passing no objects directly.
12266 compiler_needs_object=$lt_compiler_needs_object
12267
12268 # Create an old-style archive from a shared archive.
12269 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12270
12271 # Create a temporary old-style archive to link instead of a shared archive.
12272 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12273
12274 # Commands used to build a shared archive.
12275 archive_cmds=$lt_archive_cmds
12276 archive_expsym_cmds=$lt_archive_expsym_cmds
12277
12278 # Commands used to build a loadable module if different from building
12279 # a shared archive.
12280 module_cmds=$lt_module_cmds
12281 module_expsym_cmds=$lt_module_expsym_cmds
12282
12283 # Whether we are building with GNU ld or not.
12284 with_gnu_ld=$lt_with_gnu_ld
12285
12286 # Flag that allows shared libraries with undefined symbols to be built.
12287 allow_undefined_flag=$lt_allow_undefined_flag
12288
12289 # Flag that enforces no undefined symbols.
12290 no_undefined_flag=$lt_no_undefined_flag
12291
12292 # Flag to hardcode \$libdir into a binary during linking.
12293 # This must work even if \$libdir does not exist
12294 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12295
12296 # If ld is used when linking, flag to hardcode \$libdir into a binary
12297 # during linking.  This must work even if \$libdir does not exist.
12298 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12299
12300 # Whether we need a single "-rpath" flag with a separated argument.
12301 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12302
12303 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12304 # DIR into the resulting binary.
12305 hardcode_direct=$hardcode_direct
12306
12307 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12308 # DIR into the resulting binary and the resulting library dependency is
12309 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12310 # library is relocated.
12311 hardcode_direct_absolute=$hardcode_direct_absolute
12312
12313 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12314 # into the resulting binary.
12315 hardcode_minus_L=$hardcode_minus_L
12316
12317 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12318 # into the resulting binary.
12319 hardcode_shlibpath_var=$hardcode_shlibpath_var
12320
12321 # Set to "yes" if building a shared library automatically hardcodes DIR
12322 # into the library and all subsequent libraries and executables linked
12323 # against it.
12324 hardcode_automatic=$hardcode_automatic
12325
12326 # Set to yes if linker adds runtime paths of dependent libraries
12327 # to runtime path list.
12328 inherit_rpath=$inherit_rpath
12329
12330 # Whether libtool must link a program against all its dependency libraries.
12331 link_all_deplibs=$link_all_deplibs
12332
12333 # Fix the shell variable \$srcfile for the compiler.
12334 fix_srcfile_path=$lt_fix_srcfile_path
12335
12336 # Set to "yes" if exported symbols are required.
12337 always_export_symbols=$always_export_symbols
12338
12339 # The commands to list exported symbols.
12340 export_symbols_cmds=$lt_export_symbols_cmds
12341
12342 # Symbols that should not be listed in the preloaded symbols.
12343 exclude_expsyms=$lt_exclude_expsyms
12344
12345 # Symbols that must always be exported.
12346 include_expsyms=$lt_include_expsyms
12347
12348 # Commands necessary for linking programs (against libraries) with templates.
12349 prelink_cmds=$lt_prelink_cmds
12350
12351 # Specify filename containing input files.
12352 file_list_spec=$lt_file_list_spec
12353
12354 # How to hardcode a shared library path into an executable.
12355 hardcode_action=$hardcode_action
12356
12357 # ### END LIBTOOL CONFIG
12358
12359 _LT_EOF
12360
12361   case $host_os in
12362   aix3*)
12363     cat <<\_LT_EOF >> "$cfgfile"
12364 # AIX sometimes has problems with the GCC collect2 program.  For some
12365 # reason, if we set the COLLECT_NAMES environment variable, the problems
12366 # vanish in a puff of smoke.
12367 if test "X${COLLECT_NAMES+set}" != Xset; then
12368   COLLECT_NAMES=
12369   export COLLECT_NAMES
12370 fi
12371 _LT_EOF
12372     ;;
12373   esac
12374
12375
12376 ltmain="$ac_aux_dir/ltmain.sh"
12377
12378
12379   # We use sed instead of cat because bash on DJGPP gets confused if
12380   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12381   # text mode, it properly converts lines to CR/LF.  This bash problem
12382   # is reportedly fixed, but why not run on old versions too?
12383   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12384     || (rm -f "$cfgfile"; exit 1)
12385
12386   case $xsi_shell in
12387   yes)
12388     cat << \_LT_EOF >> "$cfgfile"
12389 # func_dirname file append nondir_replacement
12390 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12391 # otherwise set result to NONDIR_REPLACEMENT.
12392 func_dirname ()
12393 {
12394   case ${1} in
12395     */*) func_dirname_result="${1%/*}${2}" ;;
12396     *  ) func_dirname_result="${3}" ;;
12397   esac
12398 }
12399
12400 # func_basename file
12401 func_basename ()
12402 {
12403   func_basename_result="${1##*/}"
12404 }
12405
12406 # func_stripname prefix suffix name
12407 # strip PREFIX and SUFFIX off of NAME.
12408 # PREFIX and SUFFIX must not contain globbing or regex special
12409 # characters, hashes, percent signs, but SUFFIX may contain a leading
12410 # dot (in which case that matches only a dot).
12411 func_stripname ()
12412 {
12413   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12414   # positional parameters, so assign one to ordinary parameter first.
12415   func_stripname_result=${3}
12416   func_stripname_result=${func_stripname_result#"${1}"}
12417   func_stripname_result=${func_stripname_result%"${2}"}
12418 }
12419
12420 # func_opt_split
12421 func_opt_split ()
12422 {
12423   func_opt_split_opt=${1%%=*}
12424   func_opt_split_arg=${1#*=}
12425 }
12426
12427 # func_lo2o object
12428 func_lo2o ()
12429 {
12430   case ${1} in
12431     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12432     *)    func_lo2o_result=${1} ;;
12433   esac
12434 }
12435 _LT_EOF
12436     ;;
12437   *) # Bourne compatible functions.
12438     cat << \_LT_EOF >> "$cfgfile"
12439 # func_dirname file append nondir_replacement
12440 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12441 # otherwise set result to NONDIR_REPLACEMENT.
12442 func_dirname ()
12443 {
12444   # Extract subdirectory from the argument.
12445   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12446   if test "X$func_dirname_result" = "X${1}"; then
12447     func_dirname_result="${3}"
12448   else
12449     func_dirname_result="$func_dirname_result${2}"
12450   fi
12451 }
12452
12453 # func_basename file
12454 func_basename ()
12455 {
12456   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12457 }
12458
12459 # func_stripname prefix suffix name
12460 # strip PREFIX and SUFFIX off of NAME.
12461 # PREFIX and SUFFIX must not contain globbing or regex special
12462 # characters, hashes, percent signs, but SUFFIX may contain a leading
12463 # dot (in which case that matches only a dot).
12464 # func_strip_suffix prefix name
12465 func_stripname ()
12466 {
12467   case ${2} in
12468     .*) func_stripname_result=`$ECHO "X${3}" \
12469            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12470     *)  func_stripname_result=`$ECHO "X${3}" \
12471            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12472   esac
12473 }
12474
12475 # sed scripts:
12476 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12477 my_sed_long_arg='1s/^-[^=]*=//'
12478
12479 # func_opt_split
12480 func_opt_split ()
12481 {
12482   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12483   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12484 }
12485
12486 # func_lo2o object
12487 func_lo2o ()
12488 {
12489   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12490 }
12491 _LT_EOF
12492 esac
12493
12494 case $lt_shell_append in
12495   yes)
12496     cat << \_LT_EOF >> "$cfgfile"
12497
12498 # func_append var value
12499 # Append VALUE to the end of shell variable VAR.
12500 func_append ()
12501 {
12502   eval "$1+=\$2"
12503 }
12504 _LT_EOF
12505     ;;
12506   *)
12507     cat << \_LT_EOF >> "$cfgfile"
12508
12509 # func_append var value
12510 # Append VALUE to the end of shell variable VAR.
12511 func_append ()
12512 {
12513   eval "$1=\$$1\$2"
12514 }
12515 _LT_EOF
12516     ;;
12517   esac
12518
12519
12520   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12521     || (rm -f "$cfgfile"; exit 1)
12522
12523   mv -f "$cfgfile" "$ofile" ||
12524     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12525   chmod +x "$ofile"
12526
12527  ;;
12528   esac
12529 done
12530 _ACEOF
12531
12532 cat >>$CONFIG_STATUS <<\_ACEOF
12533
12534 { (exit 0); exit 0; }
12535 _ACEOF
12536 chmod +x $CONFIG_STATUS
12537 ac_clean_files=$ac_clean_files_save
12538
12539
12540 # configure is writing to config.log, and then calls config.status.
12541 # config.status does its own redirection, appending to config.log.
12542 # Unfortunately, on DOS this fails, as config.log is still kept open
12543 # by configure, so config.status won't be able to write to it; its
12544 # output is simply discarded.  So we exec the FD to /dev/null,
12545 # effectively closing config.log, so it can be properly (re)opened and
12546 # appended to by config.status.  When coming back to configure, we
12547 # need to make the FD available again.
12548 if test "$no_create" != yes; then
12549   ac_cs_success=:
12550   ac_config_status_args=
12551   test "$silent" = yes &&
12552     ac_config_status_args="$ac_config_status_args --quiet"
12553   exec 5>/dev/null
12554   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12555   exec 5>>config.log
12556   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12557   # would make configure fail if this is the last instruction.
12558   $ac_cs_success || { (exit 1); exit 1; }
12559 fi
12560
12561 #
12562 # CONFIG_SUBDIRS section.
12563 #
12564 if test "$no_recursion" != yes; then
12565
12566   # Remove --cache-file and --srcdir arguments so they do not pile up.
12567   ac_sub_configure_args=
12568   ac_prev=
12569   for ac_arg in $ac_configure_args; do
12570     if test -n "$ac_prev"; then
12571       ac_prev=
12572       continue
12573     fi
12574     case $ac_arg in
12575     -cache-file | --cache-file | --cache-fil | --cache-fi \
12576     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
12577       ac_prev=cache_file ;;
12578     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
12579     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
12580     | --c=*)
12581       ;;
12582     --config-cache | -C)
12583       ;;
12584     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
12585       ac_prev=srcdir ;;
12586     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
12587       ;;
12588     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
12589       ac_prev=prefix ;;
12590     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
12591       ;;
12592     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
12593     esac
12594   done
12595
12596   # Always prepend --prefix to ensure using the same prefix
12597   # in subdir configurations.
12598   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
12599
12600   ac_popdir=`pwd`
12601   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
12602
12603     # Do not complain, so a configure script can configure whichever
12604     # parts of a large source tree are present.
12605     test -d $srcdir/$ac_dir || continue
12606
12607     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
12608 echo "$as_me: configuring in $ac_dir" >&6;}
12609     { if $as_mkdir_p; then
12610     mkdir -p "$ac_dir"
12611   else
12612     as_dir="$ac_dir"
12613     as_dirs=
12614     while test ! -d "$as_dir"; do
12615       as_dirs="$as_dir $as_dirs"
12616       as_dir=`(dirname "$as_dir") 2>/dev/null ||
12617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12618          X"$as_dir" : 'X\(//\)[^/]' \| \
12619          X"$as_dir" : 'X\(//\)$' \| \
12620          X"$as_dir" : 'X\(/\)' \| \
12621          .     : '\(.\)' 2>/dev/null ||
12622 echo X"$as_dir" |
12623     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12624           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12625           /^X\(\/\/\)$/{ s//\1/; q; }
12626           /^X\(\/\).*/{ s//\1/; q; }
12627           s/.*/./; q'`
12628     done
12629     test ! -n "$as_dirs" || mkdir $as_dirs
12630   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12631 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12632    { (exit 1); exit 1; }; }; }
12633
12634     ac_builddir=.
12635
12636 if test "$ac_dir" != .; then
12637   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12638   # A "../" for each directory in $ac_dir_suffix.
12639   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12640 else
12641   ac_dir_suffix= ac_top_builddir=
12642 fi
12643
12644 case $srcdir in
12645   .)  # No --srcdir option.  We are building in place.
12646     ac_srcdir=.
12647     if test -z "$ac_top_builddir"; then
12648        ac_top_srcdir=.
12649     else
12650        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12651     fi ;;
12652   [\\/]* | ?:[\\/]* )  # Absolute path.
12653     ac_srcdir=$srcdir$ac_dir_suffix;
12654     ac_top_srcdir=$srcdir ;;
12655   *) # Relative path.
12656     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12657     ac_top_srcdir=$ac_top_builddir$srcdir ;;
12658 esac
12659
12660 # Do not use `cd foo && pwd` to compute absolute paths, because
12661 # the directories may not exist.
12662 case `pwd` in
12663 .) ac_abs_builddir="$ac_dir";;
12664 *)
12665   case "$ac_dir" in
12666   .) ac_abs_builddir=`pwd`;;
12667   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12668   *) ac_abs_builddir=`pwd`/"$ac_dir";;
12669   esac;;
12670 esac
12671 case $ac_abs_builddir in
12672 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12673 *)
12674   case ${ac_top_builddir}. in
12675   .) ac_abs_top_builddir=$ac_abs_builddir;;
12676   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12677   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12678   esac;;
12679 esac
12680 case $ac_abs_builddir in
12681 .) ac_abs_srcdir=$ac_srcdir;;
12682 *)
12683   case $ac_srcdir in
12684   .) ac_abs_srcdir=$ac_abs_builddir;;
12685   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12686   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12687   esac;;
12688 esac
12689 case $ac_abs_builddir in
12690 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12691 *)
12692   case $ac_top_srcdir in
12693   .) ac_abs_top_srcdir=$ac_abs_builddir;;
12694   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12695   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12696   esac;;
12697 esac
12698
12699
12700     cd $ac_dir
12701
12702     # Check for guested configure; otherwise get Cygnus style configure.
12703     if test -f $ac_srcdir/configure.gnu; then
12704       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
12705     elif test -f $ac_srcdir/configure; then
12706       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
12707     elif test -f $ac_srcdir/configure.in; then
12708       ac_sub_configure=$ac_configure
12709     else
12710       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
12711 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
12712       ac_sub_configure=
12713     fi
12714
12715     # The recursion is here.
12716     if test -n "$ac_sub_configure"; then
12717       # Make the cache file name correct relative to the subdirectory.
12718       case $cache_file in
12719       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
12720       *) # Relative path.
12721         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
12722       esac
12723
12724       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
12725 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
12726       # The eval makes quoting arguments work.
12727       eval $ac_sub_configure $ac_sub_configure_args \
12728            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
12729         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
12730 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
12731    { (exit 1); exit 1; }; }
12732     fi
12733
12734     cd $ac_popdir
12735   done
12736 fi
12737