Git init
[external/lzo2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for lzo 2.03.
4 #
5 # Report bugs to <markus@oberhumer.com>.
6 #
7 # Copyright (C) 1996-2008 Markus Franz Xaver Johannes Oberhumer.
8 # All Rights Reserved.
9 # This configure script may be copied, distributed and modified under the
10 # terms of the GNU General Public License; see COPYING for more details.
11 #
12 # Copyright (C) 2003 Free Software Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## --------------------- ##
16 ## M4sh Initialization.  ##
17 ## --------------------- ##
18
19 # Be Bourne compatible
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21   emulate sh
22   NULLCMD=:
23   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27   set -o posix
28 fi
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31 # Support unset when possible.
32 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33   as_unset=unset
34 else
35   as_unset=false
36 fi
37
38
39 # Work around bugs in pre-3.0 UWIN ksh.
40 $as_unset ENV MAIL MAILPATH
41 PS1='$ '
42 PS2='> '
43 PS4='+ '
44
45 # NLS nuisances.
46 for as_var in \
47   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49   LC_TELEPHONE LC_TIME
50 do
51   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52     eval $as_var=C; export $as_var
53   else
54     $as_unset $as_var
55   fi
56 done
57
58 # Required to use basename.
59 if expr a : '\(a\)' >/dev/null 2>&1; then
60   as_expr=expr
61 else
62   as_expr=false
63 fi
64
65 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66   as_basename=basename
67 else
68   as_basename=false
69 fi
70
71
72 # Name of the executable.
73 as_me=`$as_basename "$0" ||
74 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
75          X"$0" : 'X\(//\)$' \| \
76          X"$0" : 'X\(/\)$' \| \
77          .     : '\(.\)' 2>/dev/null ||
78 echo X/"$0" |
79     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
80           /^X\/\(\/\/\)$/{ s//\1/; q; }
81           /^X\/\(\/\).*/{ s//\1/; q; }
82           s/.*/./; q'`
83
84
85 # PATH needs CR, and LINENO needs CR and PATH.
86 # Avoid depending upon Character Ranges.
87 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
88 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
89 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
90 as_cr_digits='0123456789'
91 as_cr_alnum=$as_cr_Letters$as_cr_digits
92
93 # The user is always right.
94 if test "${PATH_SEPARATOR+set}" != set; then
95   echo "#! /bin/sh" >conf$$.sh
96   echo  "exit 0"   >>conf$$.sh
97   chmod +x conf$$.sh
98   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
99     PATH_SEPARATOR=';'
100   else
101     PATH_SEPARATOR=:
102   fi
103   rm -f conf$$.sh
104 fi
105
106
107   as_lineno_1=$LINENO
108   as_lineno_2=$LINENO
109   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
110   test "x$as_lineno_1" != "x$as_lineno_2" &&
111   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
112   # Find who we are.  Look in the path if we contain no path at all
113   # relative or not.
114   case $0 in
115     *[\\/]* ) as_myself=$0 ;;
116     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
117 for as_dir in $PATH
118 do
119   IFS=$as_save_IFS
120   test -z "$as_dir" && as_dir=.
121   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 done
123
124        ;;
125   esac
126   # We did not find ourselves, most probably we were run as `sh COMMAND'
127   # in which case we are not to be found in the path.
128   if test "x$as_myself" = x; then
129     as_myself=$0
130   fi
131   if test ! -f "$as_myself"; then
132     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
133    { (exit 1); exit 1; }; }
134   fi
135   case $CONFIG_SHELL in
136   '')
137     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
138 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
139 do
140   IFS=$as_save_IFS
141   test -z "$as_dir" && as_dir=.
142   for as_base in sh bash ksh sh5; do
143          case $as_dir in
144          /*)
145            if ("$as_dir/$as_base" -c '
146   as_lineno_1=$LINENO
147   as_lineno_2=$LINENO
148   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
149   test "x$as_lineno_1" != "x$as_lineno_2" &&
150   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
151              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
152              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
153              CONFIG_SHELL=$as_dir/$as_base
154              export CONFIG_SHELL
155              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156            fi;;
157          esac
158        done
159 done
160 ;;
161   esac
162
163   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
164   # uniformly replaced by the line number.  The first 'sed' inserts a
165   # line-number line before each line; the second 'sed' does the real
166   # work.  The second script uses 'N' to pair each line-number line
167   # with the numbered line, and appends trailing '-' during
168   # substitution so that $LINENO is not a special case at line end.
169   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
170   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
171   sed '=' <$as_myself |
172     sed '
173       N
174       s,$,-,
175       : loop
176       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
177       t loop
178       s,-$,,
179       s,^['$as_cr_digits']*\n,,
180     ' >$as_me.lineno &&
181   chmod +x $as_me.lineno ||
182     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
183    { (exit 1); exit 1; }; }
184
185   # Don't try to exec as it changes $[0], causing all sort of problems
186   # (the dirname of $[0] is not the place where we might find the
187   # original and so on.  Autoconf is especially sensible to this).
188   . ./$as_me.lineno
189   # Exit status is that of the last command.
190   exit
191 }
192
193
194 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
195   *c*,-n*) ECHO_N= ECHO_C='
196 ' ECHO_T='      ' ;;
197   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
198   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
199 esac
200
201 if expr a : '\(a\)' >/dev/null 2>&1; then
202   as_expr=expr
203 else
204   as_expr=false
205 fi
206
207 rm -f conf$$ conf$$.exe conf$$.file
208 echo >conf$$.file
209 if ln -s conf$$.file conf$$ 2>/dev/null; then
210   # We could just check for DJGPP; but this test a) works b) is more generic
211   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
212   if test -f conf$$.exe; then
213     # Don't use ln at all; we don't have any links
214     as_ln_s='cp -p'
215   else
216     as_ln_s='ln -s'
217   fi
218 elif ln conf$$.file conf$$ 2>/dev/null; then
219   as_ln_s=ln
220 else
221   as_ln_s='cp -p'
222 fi
223 rm -f conf$$ conf$$.exe conf$$.file
224
225 if mkdir -p . 2>/dev/null; then
226   as_mkdir_p=:
227 else
228   test -d ./-p && rmdir ./-p
229   as_mkdir_p=false
230 fi
231
232 as_executable_p="test -f"
233
234 # Sed expression to map a string onto a valid CPP name.
235 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
236
237 # Sed expression to map a string onto a valid variable name.
238 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
239
240
241 # IFS
242 # We need space, tab and new line, in precisely that order.
243 as_nl='
244 '
245 IFS="   $as_nl"
246
247 # CDPATH.
248 $as_unset CDPATH
249
250
251
252 # Check that we are running under the correct shell.
253 SHELL=${CONFIG_SHELL-/bin/sh}
254
255 case X$ECHO in
256 X*--fallback-echo)
257   # Remove one level of quotation (which was required for Make).
258   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259   ;;
260 esac
261
262 echo=${ECHO-echo}
263 if test "X$1" = X--no-reexec; then
264   # Discard the --no-reexec flag, and continue.
265   shift
266 elif test "X$1" = X--fallback-echo; then
267   # Avoid inline document here, it may be left over
268   :
269 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
270   # Yippee, $echo works!
271   :
272 else
273   # Restart under the correct shell.
274   exec $SHELL "$0" --no-reexec ${1+"$@"}
275 fi
276
277 if test "X$1" = X--fallback-echo; then
278   # used as fallback echo
279   shift
280   cat <<EOF
281 $*
282 EOF
283   exit 0
284 fi
285
286 # The HP-UX ksh and POSIX shell print the target directory to stdout
287 # if CDPATH is set.
288 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
289
290 if test -z "$ECHO"; then
291 if test "X${echo_test_string+set}" != Xset; then
292 # find a string as large as possible, as long as the shell can cope with it
293   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
294     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
295     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
296        echo_test_string=`eval $cmd` &&
297        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298     then
299       break
300     fi
301   done
302 fi
303
304 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
305    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
306    test "X$echo_testing_string" = "X$echo_test_string"; then
307   :
308 else
309   # The Solaris, AIX, and Digital Unix default echo programs unquote
310   # backslashes.  This makes it impossible to quote backslashes using
311   #   echo "$something" | sed 's/\\/\\\\/g'
312   #
313   # So, first we look for a working echo in the user's PATH.
314
315   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
316   for dir in $PATH /usr/ucb; do
317     IFS="$lt_save_ifs"
318     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
319        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
320        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
321        test "X$echo_testing_string" = "X$echo_test_string"; then
322       echo="$dir/echo"
323       break
324     fi
325   done
326   IFS="$lt_save_ifs"
327
328   if test "X$echo" = Xecho; then
329     # We didn't find a better echo, so look for alternatives.
330     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
331        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
332        test "X$echo_testing_string" = "X$echo_test_string"; then
333       # This shell has a builtin print -r that does the trick.
334       echo='print -r'
335     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
336          test "X$CONFIG_SHELL" != X/bin/ksh; then
337       # If we have ksh, try running configure again with it.
338       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
339       export ORIGINAL_CONFIG_SHELL
340       CONFIG_SHELL=/bin/ksh
341       export CONFIG_SHELL
342       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
343     else
344       # Try using printf.
345       echo='printf %s\n'
346       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
347          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
348          test "X$echo_testing_string" = "X$echo_test_string"; then
349         # Cool, printf works
350         :
351       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
352            test "X$echo_testing_string" = 'X\t' &&
353            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
354            test "X$echo_testing_string" = "X$echo_test_string"; then
355         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
356         export CONFIG_SHELL
357         SHELL="$CONFIG_SHELL"
358         export SHELL
359         echo="$CONFIG_SHELL $0 --fallback-echo"
360       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
361            test "X$echo_testing_string" = 'X\t' &&
362            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
363            test "X$echo_testing_string" = "X$echo_test_string"; then
364         echo="$CONFIG_SHELL $0 --fallback-echo"
365       else
366         # maybe with a smaller string...
367         prev=:
368
369         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
370           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371           then
372             break
373           fi
374           prev="$cmd"
375         done
376
377         if test "$prev" != 'sed 50q "$0"'; then
378           echo_test_string=`eval $prev`
379           export echo_test_string
380           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
381         else
382           # Oops.  We lost completely, so just stick with echo.
383           echo=echo
384         fi
385       fi
386     fi
387   fi
388 fi
389 fi
390
391 # Copy echo and quote the copy suitably for passing to libtool from
392 # the Makefile, instead of quoting the original, which is used later.
393 ECHO=$echo
394 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
395    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 fi
397
398
399
400
401 tagnames=${tagnames+${tagnames},}CXX
402
403 tagnames=${tagnames+${tagnames},}F77
404
405 # Name of the host.
406 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
407 # so uname gets run too.
408 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409
410 exec 6>&1
411
412 #
413 # Initializations.
414 #
415 ac_default_prefix=/usr/local
416 ac_config_libobj_dir=.
417 cross_compiling=no
418 subdirs=
419 MFLAGS=
420 MAKEFLAGS=
421 SHELL=${CONFIG_SHELL-/bin/sh}
422
423 # Maximum number of lines to put in a shell here document.
424 # This variable seems obsolete.  It should probably be removed, and
425 # only ac_max_sed_lines should be used.
426 : ${ac_max_here_lines=38}
427
428 # Identity of this package.
429 PACKAGE_NAME='lzo'
430 PACKAGE_TARNAME='lzo'
431 PACKAGE_VERSION='2.03'
432 PACKAGE_STRING='lzo 2.03'
433 PACKAGE_BUGREPORT='markus@oberhumer.com'
434
435 ac_unique_file="src/lzo_init.c"
436 ac_default_prefix=/usr/local
437 # Factoring default headers for most tests.
438 ac_includes_default="\
439 #include <stdio.h>
440 #if HAVE_SYS_TYPES_H
441 # include <sys/types.h>
442 #endif
443 #if HAVE_SYS_STAT_H
444 # include <sys/stat.h>
445 #endif
446 #if STDC_HEADERS
447 # include <stdlib.h>
448 # include <stddef.h>
449 #else
450 # if HAVE_STDLIB_H
451 #  include <stdlib.h>
452 # endif
453 #endif
454 #if HAVE_STRING_H
455 # if !STDC_HEADERS && HAVE_MEMORY_H
456 #  include <memory.h>
457 # endif
458 # include <string.h>
459 #endif
460 #if HAVE_STRINGS_H
461 # include <strings.h>
462 #endif
463 #if HAVE_INTTYPES_H
464 # include <inttypes.h>
465 #else
466 # if HAVE_STDINT_H
467 #  include <stdint.h>
468 # endif
469 #endif
470 #if HAVE_UNISTD_H
471 # include <unistd.h>
472 #endif"
473
474 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LZO_USE_ASM_TRUE LZO_USE_ASM_FALSE LZO_ASM_VPATH LZO_CPPFLAGS LZO_EXTRA_CPPFLAGS LZO_CFLAGS LZO_EXTRA_CFLAGS configure_CPPFLAGS configure_CFLAGS LIBOBJS LTLIBOBJS'
475 ac_subst_files=''
476
477 # Initialize some variables set by options.
478 ac_init_help=
479 ac_init_version=false
480 # The variables have the same names as the options, with
481 # dashes changed to underlines.
482 cache_file=/dev/null
483 exec_prefix=NONE
484 no_create=
485 no_recursion=
486 prefix=NONE
487 program_prefix=NONE
488 program_suffix=NONE
489 program_transform_name=s,x,x,
490 silent=
491 site=
492 srcdir=
493 verbose=
494 x_includes=NONE
495 x_libraries=NONE
496
497 # Installation directory options.
498 # These are left unexpanded so users can "make install exec_prefix=/foo"
499 # and all the variables that are supposed to be based on exec_prefix
500 # by default will actually change.
501 # Use braces instead of parens because sh, perl, etc. also accept them.
502 bindir='${exec_prefix}/bin'
503 sbindir='${exec_prefix}/sbin'
504 libexecdir='${exec_prefix}/libexec'
505 datadir='${prefix}/share'
506 sysconfdir='${prefix}/etc'
507 sharedstatedir='${prefix}/com'
508 localstatedir='${prefix}/var'
509 libdir='${exec_prefix}/lib'
510 includedir='${prefix}/include'
511 oldincludedir='/usr/include'
512 infodir='${prefix}/info'
513 mandir='${prefix}/man'
514
515 ac_prev=
516 for ac_option
517 do
518   # If the previous option needs an argument, assign it.
519   if test -n "$ac_prev"; then
520     eval "$ac_prev=\$ac_option"
521     ac_prev=
522     continue
523   fi
524
525   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
526
527   # Accept the important Cygnus configure options, so we can diagnose typos.
528
529   case $ac_option in
530
531   -bindir | --bindir | --bindi | --bind | --bin | --bi)
532     ac_prev=bindir ;;
533   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
534     bindir=$ac_optarg ;;
535
536   -build | --build | --buil | --bui | --bu)
537     ac_prev=build_alias ;;
538   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
539     build_alias=$ac_optarg ;;
540
541   -cache-file | --cache-file | --cache-fil | --cache-fi \
542   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
543     ac_prev=cache_file ;;
544   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
545   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
546     cache_file=$ac_optarg ;;
547
548   --config-cache | -C)
549     cache_file=config.cache ;;
550
551   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
552     ac_prev=datadir ;;
553   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
554   | --da=*)
555     datadir=$ac_optarg ;;
556
557   -disable-* | --disable-*)
558     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
559     # Reject names that are not valid shell variable names.
560     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562    { (exit 1); exit 1; }; }
563     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564     eval "enable_$ac_feature=no" ;;
565
566   -enable-* | --enable-*)
567     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
568     # Reject names that are not valid shell variable names.
569     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
570       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
571    { (exit 1); exit 1; }; }
572     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
573     case $ac_option in
574       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
575       *) ac_optarg=yes ;;
576     esac
577     eval "enable_$ac_feature='$ac_optarg'" ;;
578
579   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
580   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
581   | --exec | --exe | --ex)
582     ac_prev=exec_prefix ;;
583   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
584   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
585   | --exec=* | --exe=* | --ex=*)
586     exec_prefix=$ac_optarg ;;
587
588   -gas | --gas | --ga | --g)
589     # Obsolete; use --with-gas.
590     with_gas=yes ;;
591
592   -help | --help | --hel | --he | -h)
593     ac_init_help=long ;;
594   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
595     ac_init_help=recursive ;;
596   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
597     ac_init_help=short ;;
598
599   -host | --host | --hos | --ho)
600     ac_prev=host_alias ;;
601   -host=* | --host=* | --hos=* | --ho=*)
602     host_alias=$ac_optarg ;;
603
604   -includedir | --includedir | --includedi | --included | --include \
605   | --includ | --inclu | --incl | --inc)
606     ac_prev=includedir ;;
607   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
608   | --includ=* | --inclu=* | --incl=* | --inc=*)
609     includedir=$ac_optarg ;;
610
611   -infodir | --infodir | --infodi | --infod | --info | --inf)
612     ac_prev=infodir ;;
613   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
614     infodir=$ac_optarg ;;
615
616   -libdir | --libdir | --libdi | --libd)
617     ac_prev=libdir ;;
618   -libdir=* | --libdir=* | --libdi=* | --libd=*)
619     libdir=$ac_optarg ;;
620
621   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
622   | --libexe | --libex | --libe)
623     ac_prev=libexecdir ;;
624   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
625   | --libexe=* | --libex=* | --libe=*)
626     libexecdir=$ac_optarg ;;
627
628   -localstatedir | --localstatedir | --localstatedi | --localstated \
629   | --localstate | --localstat | --localsta | --localst \
630   | --locals | --local | --loca | --loc | --lo)
631     ac_prev=localstatedir ;;
632   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
633   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
634   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
635     localstatedir=$ac_optarg ;;
636
637   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
638     ac_prev=mandir ;;
639   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
640     mandir=$ac_optarg ;;
641
642   -nfp | --nfp | --nf)
643     # Obsolete; use --without-fp.
644     with_fp=no ;;
645
646   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
647   | --no-cr | --no-c | -n)
648     no_create=yes ;;
649
650   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
651   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
652     no_recursion=yes ;;
653
654   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
655   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
656   | --oldin | --oldi | --old | --ol | --o)
657     ac_prev=oldincludedir ;;
658   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
659   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
660   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
661     oldincludedir=$ac_optarg ;;
662
663   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
664     ac_prev=prefix ;;
665   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
666     prefix=$ac_optarg ;;
667
668   -program-prefix | --program-prefix | --program-prefi | --program-pref \
669   | --program-pre | --program-pr | --program-p)
670     ac_prev=program_prefix ;;
671   -program-prefix=* | --program-prefix=* | --program-prefi=* \
672   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
673     program_prefix=$ac_optarg ;;
674
675   -program-suffix | --program-suffix | --program-suffi | --program-suff \
676   | --program-suf | --program-su | --program-s)
677     ac_prev=program_suffix ;;
678   -program-suffix=* | --program-suffix=* | --program-suffi=* \
679   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
680     program_suffix=$ac_optarg ;;
681
682   -program-transform-name | --program-transform-name \
683   | --program-transform-nam | --program-transform-na \
684   | --program-transform-n | --program-transform- \
685   | --program-transform | --program-transfor \
686   | --program-transfo | --program-transf \
687   | --program-trans | --program-tran \
688   | --progr-tra | --program-tr | --program-t)
689     ac_prev=program_transform_name ;;
690   -program-transform-name=* | --program-transform-name=* \
691   | --program-transform-nam=* | --program-transform-na=* \
692   | --program-transform-n=* | --program-transform-=* \
693   | --program-transform=* | --program-transfor=* \
694   | --program-transfo=* | --program-transf=* \
695   | --program-trans=* | --program-tran=* \
696   | --progr-tra=* | --program-tr=* | --program-t=*)
697     program_transform_name=$ac_optarg ;;
698
699   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
700   | -silent | --silent | --silen | --sile | --sil)
701     silent=yes ;;
702
703   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
704     ac_prev=sbindir ;;
705   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
706   | --sbi=* | --sb=*)
707     sbindir=$ac_optarg ;;
708
709   -sharedstatedir | --sharedstatedir | --sharedstatedi \
710   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
711   | --sharedst | --shareds | --shared | --share | --shar \
712   | --sha | --sh)
713     ac_prev=sharedstatedir ;;
714   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
715   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
716   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
717   | --sha=* | --sh=*)
718     sharedstatedir=$ac_optarg ;;
719
720   -site | --site | --sit)
721     ac_prev=site ;;
722   -site=* | --site=* | --sit=*)
723     site=$ac_optarg ;;
724
725   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
726     ac_prev=srcdir ;;
727   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
728     srcdir=$ac_optarg ;;
729
730   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
731   | --syscon | --sysco | --sysc | --sys | --sy)
732     ac_prev=sysconfdir ;;
733   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
734   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
735     sysconfdir=$ac_optarg ;;
736
737   -target | --target | --targe | --targ | --tar | --ta | --t)
738     ac_prev=target_alias ;;
739   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
740     target_alias=$ac_optarg ;;
741
742   -v | -verbose | --verbose | --verbos | --verbo | --verb)
743     verbose=yes ;;
744
745   -version | --version | --versio | --versi | --vers | -V)
746     ac_init_version=: ;;
747
748   -with-* | --with-*)
749     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
750     # Reject names that are not valid shell variable names.
751     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752       { echo "$as_me: error: invalid package name: $ac_package" >&2
753    { (exit 1); exit 1; }; }
754     ac_package=`echo $ac_package| sed 's/-/_/g'`
755     case $ac_option in
756       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
757       *) ac_optarg=yes ;;
758     esac
759     eval "with_$ac_package='$ac_optarg'" ;;
760
761   -without-* | --without-*)
762     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
763     # Reject names that are not valid shell variable names.
764     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
765       { echo "$as_me: error: invalid package name: $ac_package" >&2
766    { (exit 1); exit 1; }; }
767     ac_package=`echo $ac_package | sed 's/-/_/g'`
768     eval "with_$ac_package=no" ;;
769
770   --x)
771     # Obsolete; use --with-x.
772     with_x=yes ;;
773
774   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
775   | --x-incl | --x-inc | --x-in | --x-i)
776     ac_prev=x_includes ;;
777   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
778   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
779     x_includes=$ac_optarg ;;
780
781   -x-libraries | --x-libraries | --x-librarie | --x-librari \
782   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
783     ac_prev=x_libraries ;;
784   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
785   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
786     x_libraries=$ac_optarg ;;
787
788   -*) { echo "$as_me: error: unrecognized option: $ac_option
789 Try \`$0 --help' for more information." >&2
790    { (exit 1); exit 1; }; }
791     ;;
792
793   *=*)
794     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
795     # Reject names that are not valid shell variable names.
796     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
797       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
798    { (exit 1); exit 1; }; }
799     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
800     eval "$ac_envvar='$ac_optarg'"
801     export $ac_envvar ;;
802
803   *)
804     # FIXME: should be removed in autoconf 3.0.
805     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
806     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
807       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
808     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809     ;;
810
811   esac
812 done
813
814 if test -n "$ac_prev"; then
815   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
816   { echo "$as_me: error: missing argument to $ac_option" >&2
817    { (exit 1); exit 1; }; }
818 fi
819
820 # Be sure to have absolute paths.
821 for ac_var in exec_prefix prefix
822 do
823   eval ac_val=$`echo $ac_var`
824   case $ac_val in
825     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
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 # Be sure to have absolute paths.
832 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
833               localstatedir libdir includedir oldincludedir infodir mandir
834 do
835   eval ac_val=$`echo $ac_var`
836   case $ac_val in
837     [\\/$]* | ?:[\\/]* ) ;;
838     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
839    { (exit 1); exit 1; }; };;
840   esac
841 done
842
843 # There might be people who depend on the old broken behavior: `$host'
844 # used to hold the argument of --host etc.
845 # FIXME: To remove some day.
846 build=$build_alias
847 host=$host_alias
848 target=$target_alias
849
850 # FIXME: To remove some day.
851 if test "x$host_alias" != x; then
852   if test "x$build_alias" = x; then
853     cross_compiling=maybe
854     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
855     If a cross compiler is detected then cross compile mode will be used." >&2
856   elif test "x$build_alias" != "x$host_alias"; then
857     cross_compiling=yes
858   fi
859 fi
860
861 ac_tool_prefix=
862 test -n "$host_alias" && ac_tool_prefix=$host_alias-
863
864 test "$silent" = yes && exec 6>/dev/null
865
866
867 # Find the source files, if location was not specified.
868 if test -z "$srcdir"; then
869   ac_srcdir_defaulted=yes
870   # Try the directory containing this script, then its parent.
871   ac_confdir=`(dirname "$0") 2>/dev/null ||
872 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
873          X"$0" : 'X\(//\)[^/]' \| \
874          X"$0" : 'X\(//\)$' \| \
875          X"$0" : 'X\(/\)' \| \
876          .     : '\(.\)' 2>/dev/null ||
877 echo X"$0" |
878     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
879           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
880           /^X\(\/\/\)$/{ s//\1/; q; }
881           /^X\(\/\).*/{ s//\1/; q; }
882           s/.*/./; q'`
883   srcdir=$ac_confdir
884   if test ! -r $srcdir/$ac_unique_file; then
885     srcdir=..
886   fi
887 else
888   ac_srcdir_defaulted=no
889 fi
890 if test ! -r $srcdir/$ac_unique_file; then
891   if test "$ac_srcdir_defaulted" = yes; then
892     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
893    { (exit 1); exit 1; }; }
894   else
895     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
896    { (exit 1); exit 1; }; }
897   fi
898 fi
899 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
900   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
901    { (exit 1); exit 1; }; }
902 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
903 ac_env_build_alias_set=${build_alias+set}
904 ac_env_build_alias_value=$build_alias
905 ac_cv_env_build_alias_set=${build_alias+set}
906 ac_cv_env_build_alias_value=$build_alias
907 ac_env_host_alias_set=${host_alias+set}
908 ac_env_host_alias_value=$host_alias
909 ac_cv_env_host_alias_set=${host_alias+set}
910 ac_cv_env_host_alias_value=$host_alias
911 ac_env_target_alias_set=${target_alias+set}
912 ac_env_target_alias_value=$target_alias
913 ac_cv_env_target_alias_set=${target_alias+set}
914 ac_cv_env_target_alias_value=$target_alias
915 ac_env_CC_set=${CC+set}
916 ac_env_CC_value=$CC
917 ac_cv_env_CC_set=${CC+set}
918 ac_cv_env_CC_value=$CC
919 ac_env_CFLAGS_set=${CFLAGS+set}
920 ac_env_CFLAGS_value=$CFLAGS
921 ac_cv_env_CFLAGS_set=${CFLAGS+set}
922 ac_cv_env_CFLAGS_value=$CFLAGS
923 ac_env_LDFLAGS_set=${LDFLAGS+set}
924 ac_env_LDFLAGS_value=$LDFLAGS
925 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
926 ac_cv_env_LDFLAGS_value=$LDFLAGS
927 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
928 ac_env_CPPFLAGS_value=$CPPFLAGS
929 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
930 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXX_set=${CXX+set}
936 ac_env_CXX_value=$CXX
937 ac_cv_env_CXX_set=${CXX+set}
938 ac_cv_env_CXX_value=$CXX
939 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
940 ac_env_CXXFLAGS_value=$CXXFLAGS
941 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
942 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
943 ac_env_CXXCPP_set=${CXXCPP+set}
944 ac_env_CXXCPP_value=$CXXCPP
945 ac_cv_env_CXXCPP_set=${CXXCPP+set}
946 ac_cv_env_CXXCPP_value=$CXXCPP
947 ac_env_F77_set=${F77+set}
948 ac_env_F77_value=$F77
949 ac_cv_env_F77_set=${F77+set}
950 ac_cv_env_F77_value=$F77
951 ac_env_FFLAGS_set=${FFLAGS+set}
952 ac_env_FFLAGS_value=$FFLAGS
953 ac_cv_env_FFLAGS_set=${FFLAGS+set}
954 ac_cv_env_FFLAGS_value=$FFLAGS
955
956 #
957 # Report the --help message.
958 #
959 if test "$ac_init_help" = "long"; then
960   # Omit some internal or obsolete options to make the list less imposing.
961   # This message is too long to be a string in the A/UX 3.1 sh.
962   cat <<_ACEOF
963 \`configure' configures lzo 2.03 to adapt to many kinds of systems.
964
965 Usage: $0 [OPTION]... [VAR=VALUE]...
966
967 To assign environment variables (e.g., CC, CFLAGS...), specify them as
968 VAR=VALUE.  See below for descriptions of some of the useful variables.
969
970 Defaults for the options are specified in brackets.
971
972 Configuration:
973   -h, --help              display this help and exit
974       --help=short        display options specific to this package
975       --help=recursive    display the short help of all the included packages
976   -V, --version           display version information and exit
977   -q, --quiet, --silent   do not print \`checking...' messages
978       --cache-file=FILE   cache test results in FILE [disabled]
979   -C, --config-cache      alias for \`--cache-file=config.cache'
980   -n, --no-create         do not create output files
981       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
982
983 _ACEOF
984
985   cat <<_ACEOF
986 Installation directories:
987   --prefix=PREFIX         install architecture-independent files in PREFIX
988                           [$ac_default_prefix]
989   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
990                           [PREFIX]
991
992 By default, \`make install' will install all the files in
993 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
994 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
995 for instance \`--prefix=\$HOME'.
996
997 For better control, use the options below.
998
999 Fine tuning of the installation directories:
1000   --bindir=DIR           user executables [EPREFIX/bin]
1001   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1002   --libexecdir=DIR       program executables [EPREFIX/libexec]
1003   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1004   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1005   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1006   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1007   --libdir=DIR           object code libraries [EPREFIX/lib]
1008   --includedir=DIR       C header files [PREFIX/include]
1009   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1010   --infodir=DIR          info documentation [PREFIX/info]
1011   --mandir=DIR           man documentation [PREFIX/man]
1012 _ACEOF
1013
1014   cat <<\_ACEOF
1015
1016 Program names:
1017   --program-prefix=PREFIX            prepend PREFIX to installed program names
1018   --program-suffix=SUFFIX            append SUFFIX to installed program names
1019   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1020
1021 System types:
1022   --build=BUILD     configure for building on BUILD [guessed]
1023   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024   --target=TARGET   configure for building compilers for TARGET [HOST]
1025 _ACEOF
1026 fi
1027
1028 if test -n "$ac_init_help"; then
1029   case $ac_init_help in
1030      short | recursive ) echo "Configuration of lzo 2.03:";;
1031    esac
1032   cat <<\_ACEOF
1033
1034 Optional Features:
1035   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1036   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1037   --enable-maintainer-mode  enable make rules and dependencies not useful
1038                           (and sometimes confusing) to the casual installer
1039   --disable-largefile     omit support for large files
1040   --disable-dependency-tracking  speeds up one-time build
1041   --enable-dependency-tracking   do not reject slow dependency extractors
1042   --enable-static[=PKGS]
1043                           build static libraries [default=yes]
1044   --enable-shared[=PKGS]
1045                           build shared libraries [default=no]
1046   --enable-fast-install[=PKGS]
1047                           optimize for fast installation [default=yes]
1048   --disable-libtool-lock  avoid locking (might break parallel builds)
1049   --disable-asm           disable assembly versions
1050
1051 Optional Packages:
1052   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1053   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1054   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1055   --with-pic              try to use only PIC/non-PIC objects [default=use
1056                           both]
1057   --with-tags[=TAGS]
1058                           include additional configurations [automatic]
1059
1060 Some influential environment variables:
1061   CC          C compiler command
1062   CFLAGS      C compiler flags
1063   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1064               nonstandard directory <lib dir>
1065   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066               headers in a nonstandard directory <include dir>
1067   CPP         C preprocessor
1068   CXX         C++ compiler command
1069   CXXFLAGS    C++ compiler flags
1070   CXXCPP      C++ preprocessor
1071   F77         Fortran 77 compiler command
1072   FFLAGS      Fortran 77 compiler flags
1073
1074 Use these variables to override the choices made by `configure' or to help
1075 it to find libraries and programs with nonstandard names/locations.
1076
1077 Report bugs to <markus@oberhumer.com>.
1078 _ACEOF
1079 fi
1080
1081 if test "$ac_init_help" = "recursive"; then
1082   # If there are subdirs, report their specific --help.
1083   ac_popdir=`pwd`
1084   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085     test -d $ac_dir || continue
1086     ac_builddir=.
1087
1088 if test "$ac_dir" != .; then
1089   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090   # A "../" for each directory in $ac_dir_suffix.
1091   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092 else
1093   ac_dir_suffix= ac_top_builddir=
1094 fi
1095
1096 case $srcdir in
1097   .)  # No --srcdir option.  We are building in place.
1098     ac_srcdir=.
1099     if test -z "$ac_top_builddir"; then
1100        ac_top_srcdir=.
1101     else
1102        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103     fi ;;
1104   [\\/]* | ?:[\\/]* )  # Absolute path.
1105     ac_srcdir=$srcdir$ac_dir_suffix;
1106     ac_top_srcdir=$srcdir ;;
1107   *) # Relative path.
1108     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110 esac
1111
1112 # Do not use `cd foo && pwd` to compute absolute paths, because
1113 # the directories may not exist.
1114 case `pwd` in
1115 .) ac_abs_builddir="$ac_dir";;
1116 *)
1117   case "$ac_dir" in
1118   .) ac_abs_builddir=`pwd`;;
1119   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121   esac;;
1122 esac
1123 case $ac_abs_builddir in
1124 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 *)
1126   case ${ac_top_builddir}. in
1127   .) ac_abs_top_builddir=$ac_abs_builddir;;
1128   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130   esac;;
1131 esac
1132 case $ac_abs_builddir in
1133 .) ac_abs_srcdir=$ac_srcdir;;
1134 *)
1135   case $ac_srcdir in
1136   .) ac_abs_srcdir=$ac_abs_builddir;;
1137   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139   esac;;
1140 esac
1141 case $ac_abs_builddir in
1142 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 *)
1144   case $ac_top_srcdir in
1145   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148   esac;;
1149 esac
1150
1151     cd $ac_dir
1152     # Check for guested configure; otherwise get Cygnus style configure.
1153     if test -f $ac_srcdir/configure.gnu; then
1154       echo
1155       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1156     elif test -f $ac_srcdir/configure; then
1157       echo
1158       $SHELL $ac_srcdir/configure  --help=recursive
1159     elif test -f $ac_srcdir/configure.ac ||
1160            test -f $ac_srcdir/configure.in; then
1161       echo
1162       $ac_configure --help
1163     else
1164       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165     fi
1166     cd "$ac_popdir"
1167   done
1168 fi
1169
1170 test -n "$ac_init_help" && exit 0
1171 if $ac_init_version; then
1172   cat <<\_ACEOF
1173 lzo configure 2.03
1174 generated by GNU Autoconf 2.59
1175
1176 Copyright (C) 2003 Free Software Foundation, Inc.
1177 This configure script is free software; the Free Software Foundation
1178 gives unlimited permission to copy, distribute and modify it.
1179
1180 Copyright (C) 1996-2008 Markus Franz Xaver Johannes Oberhumer.
1181 All Rights Reserved.
1182 This configure script may be copied, distributed and modified under the
1183 terms of the GNU General Public License; see COPYING for more details.
1184 _ACEOF
1185   exit 0
1186 fi
1187 exec 5>config.log
1188 cat >&5 <<_ACEOF
1189 This file contains any messages produced by compilers while
1190 running configure, to aid debugging if configure makes a mistake.
1191
1192 It was created by lzo $as_me 2.03, which was
1193 generated by GNU Autoconf 2.59.  Invocation command line was
1194
1195   $ $0 $@
1196
1197 _ACEOF
1198 {
1199 cat <<_ASUNAME
1200 ## --------- ##
1201 ## Platform. ##
1202 ## --------- ##
1203
1204 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1205 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1206 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1207 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1208 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1209
1210 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1211 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1212
1213 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1214 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1215 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1216 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1217 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1218 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1219 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1220
1221 _ASUNAME
1222
1223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1224 for as_dir in $PATH
1225 do
1226   IFS=$as_save_IFS
1227   test -z "$as_dir" && as_dir=.
1228   echo "PATH: $as_dir"
1229 done
1230
1231 } >&5
1232
1233 cat >&5 <<_ACEOF
1234
1235
1236 ## ----------- ##
1237 ## Core tests. ##
1238 ## ----------- ##
1239
1240 _ACEOF
1241
1242
1243 # Keep a trace of the command line.
1244 # Strip out --no-create and --no-recursion so they do not pile up.
1245 # Strip out --silent because we don't want to record it for future runs.
1246 # Also quote any args containing shell meta-characters.
1247 # Make two passes to allow for proper duplicate-argument suppression.
1248 ac_configure_args=
1249 ac_configure_args0=
1250 ac_configure_args1=
1251 ac_sep=
1252 ac_must_keep_next=false
1253 for ac_pass in 1 2
1254 do
1255   for ac_arg
1256   do
1257     case $ac_arg in
1258     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1259     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260     | -silent | --silent | --silen | --sile | --sil)
1261       continue ;;
1262     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1264     esac
1265     case $ac_pass in
1266     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1267     2)
1268       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1269       if test $ac_must_keep_next = true; then
1270         ac_must_keep_next=false # Got value, back to normal.
1271       else
1272         case $ac_arg in
1273           *=* | --config-cache | -C | -disable-* | --disable-* \
1274           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1275           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1276           | -with-* | --with-* | -without-* | --without-* | --x)
1277             case "$ac_configure_args0 " in
1278               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1279             esac
1280             ;;
1281           -* ) ac_must_keep_next=true ;;
1282         esac
1283       fi
1284       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1285       # Get rid of the leading space.
1286       ac_sep=" "
1287       ;;
1288     esac
1289   done
1290 done
1291 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1292 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1293
1294 # When interrupted or exit'd, cleanup temporary files, and complete
1295 # config.log.  We remove comments because anyway the quotes in there
1296 # would cause problems or look ugly.
1297 # WARNING: Be sure not to use single quotes in there, as some shells,
1298 # such as our DU 5.0 friend, will then `close' the trap.
1299 trap 'exit_status=$?
1300   # Save into config.log some information that might help in debugging.
1301   {
1302     echo
1303
1304     cat <<\_ASBOX
1305 ## ---------------- ##
1306 ## Cache variables. ##
1307 ## ---------------- ##
1308 _ASBOX
1309     echo
1310     # The following way of writing the cache mishandles newlines in values,
1311 {
1312   (set) 2>&1 |
1313     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1314     *ac_space=\ *)
1315       sed -n \
1316         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1317           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1318       ;;
1319     *)
1320       sed -n \
1321         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1322       ;;
1323     esac;
1324 }
1325     echo
1326
1327     cat <<\_ASBOX
1328 ## ----------------- ##
1329 ## Output variables. ##
1330 ## ----------------- ##
1331 _ASBOX
1332     echo
1333     for ac_var in $ac_subst_vars
1334     do
1335       eval ac_val=$`echo $ac_var`
1336       echo "$ac_var='"'"'$ac_val'"'"'"
1337     done | sort
1338     echo
1339
1340     if test -n "$ac_subst_files"; then
1341       cat <<\_ASBOX
1342 ## ------------- ##
1343 ## Output files. ##
1344 ## ------------- ##
1345 _ASBOX
1346       echo
1347       for ac_var in $ac_subst_files
1348       do
1349         eval ac_val=$`echo $ac_var`
1350         echo "$ac_var='"'"'$ac_val'"'"'"
1351       done | sort
1352       echo
1353     fi
1354
1355     if test -s confdefs.h; then
1356       cat <<\_ASBOX
1357 ## ----------- ##
1358 ## confdefs.h. ##
1359 ## ----------- ##
1360 _ASBOX
1361       echo
1362       sed "/^$/d" confdefs.h | sort
1363       echo
1364     fi
1365     test "$ac_signal" != 0 &&
1366       echo "$as_me: caught signal $ac_signal"
1367     echo "$as_me: exit $exit_status"
1368   } >&5
1369   rm -f core *.core &&
1370   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1371     exit $exit_status
1372      ' 0
1373 for ac_signal in 1 2 13 15; do
1374   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1375 done
1376 ac_signal=0
1377
1378 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1379 rm -rf conftest* confdefs.h
1380 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1381 echo >confdefs.h
1382
1383 # Predefined preprocessor variables.
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_NAME "$PACKAGE_NAME"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1397 _ACEOF
1398
1399
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_STRING "$PACKAGE_STRING"
1402 _ACEOF
1403
1404
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1407 _ACEOF
1408
1409
1410 # Let the site file select an alternate cache file if it wants to.
1411 # Prefer explicitly selected file to automatically selected ones.
1412 if test -z "$CONFIG_SITE"; then
1413   if test "x$prefix" != xNONE; then
1414     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1415   else
1416     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1417   fi
1418 fi
1419 for ac_site_file in $CONFIG_SITE; do
1420   if test -r "$ac_site_file"; then
1421     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1422 echo "$as_me: loading site script $ac_site_file" >&6;}
1423     sed 's/^/| /' "$ac_site_file" >&5
1424     . "$ac_site_file"
1425   fi
1426 done
1427
1428 if test -r "$cache_file"; then
1429   # Some versions of bash will fail to source /dev/null (special
1430   # files actually), so we avoid doing that.
1431   if test -f "$cache_file"; then
1432     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1433 echo "$as_me: loading cache $cache_file" >&6;}
1434     case $cache_file in
1435       [\\/]* | ?:[\\/]* ) . $cache_file;;
1436       *)                      . ./$cache_file;;
1437     esac
1438   fi
1439 else
1440   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1441 echo "$as_me: creating cache $cache_file" >&6;}
1442   >$cache_file
1443 fi
1444
1445 # Check that the precious variables saved in the cache have kept the same
1446 # value.
1447 ac_cache_corrupted=false
1448 for ac_var in `(set) 2>&1 |
1449                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1450   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1451   eval ac_new_set=\$ac_env_${ac_var}_set
1452   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1453   eval ac_new_val="\$ac_env_${ac_var}_value"
1454   case $ac_old_set,$ac_new_set in
1455     set,)
1456       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1458       ac_cache_corrupted=: ;;
1459     ,set)
1460       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1461 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1462       ac_cache_corrupted=: ;;
1463     ,);;
1464     *)
1465       if test "x$ac_old_val" != "x$ac_new_val"; then
1466         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1467 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1468         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1469 echo "$as_me:   former value:  $ac_old_val" >&2;}
1470         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1471 echo "$as_me:   current value: $ac_new_val" >&2;}
1472         ac_cache_corrupted=:
1473       fi;;
1474   esac
1475   # Pass precious variables to config.status.
1476   if test "$ac_new_set" = set; then
1477     case $ac_new_val in
1478     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1479       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1480     *) ac_arg=$ac_var=$ac_new_val ;;
1481     esac
1482     case " $ac_configure_args " in
1483       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1484       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1485     esac
1486   fi
1487 done
1488 if $ac_cache_corrupted; then
1489   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1490 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1491   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1492 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1493    { (exit 1); exit 1; }; }
1494 fi
1495
1496 ac_ext=c
1497 ac_cpp='$CPP $CPPFLAGS'
1498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528 { echo "$as_me:$LINENO: Configuring LZO $PACKAGE_VERSION" >&5
1529 echo "$as_me: Configuring LZO $PACKAGE_VERSION" >&6;}
1530
1531 ac_aux_dir=
1532 for ac_dir in autoconf $srcdir/autoconf; do
1533   if test -f $ac_dir/install-sh; then
1534     ac_aux_dir=$ac_dir
1535     ac_install_sh="$ac_aux_dir/install-sh -c"
1536     break
1537   elif test -f $ac_dir/install.sh; then
1538     ac_aux_dir=$ac_dir
1539     ac_install_sh="$ac_aux_dir/install.sh -c"
1540     break
1541   elif test -f $ac_dir/shtool; then
1542     ac_aux_dir=$ac_dir
1543     ac_install_sh="$ac_aux_dir/shtool install -c"
1544     break
1545   fi
1546 done
1547 if test -z "$ac_aux_dir"; then
1548   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1549 echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1550    { (exit 1); exit 1; }; }
1551 fi
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1555
1556
1557 # Make sure we can run config.sub.
1558 $ac_config_sub sun4 >/dev/null 2>&1 ||
1559   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561    { (exit 1); exit 1; }; }
1562
1563 echo "$as_me:$LINENO: checking build system type" >&5
1564 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565 if test "${ac_cv_build+set}" = set; then
1566   echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568   ac_cv_build_alias=$build_alias
1569 test -z "$ac_cv_build_alias" &&
1570   ac_cv_build_alias=`$ac_config_guess`
1571 test -z "$ac_cv_build_alias" &&
1572   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574    { (exit 1); exit 1; }; }
1575 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578    { (exit 1); exit 1; }; }
1579
1580 fi
1581 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582 echo "${ECHO_T}$ac_cv_build" >&6
1583 build=$ac_cv_build
1584 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1587
1588
1589 echo "$as_me:$LINENO: checking host system type" >&5
1590 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1591 if test "${ac_cv_host+set}" = set; then
1592   echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594   ac_cv_host_alias=$host_alias
1595 test -z "$ac_cv_host_alias" &&
1596   ac_cv_host_alias=$ac_cv_build_alias
1597 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1598   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1599 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1600    { (exit 1); exit 1; }; }
1601
1602 fi
1603 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1604 echo "${ECHO_T}$ac_cv_host" >&6
1605 host=$ac_cv_host
1606 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611 echo "$as_me:$LINENO: checking target system type" >&5
1612 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1613 if test "${ac_cv_target+set}" = set; then
1614   echo $ECHO_N "(cached) $ECHO_C" >&6
1615 else
1616   ac_cv_target_alias=$target_alias
1617 test "x$ac_cv_target_alias" = "x" &&
1618   ac_cv_target_alias=$ac_cv_host_alias
1619 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1620   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1621 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1622    { (exit 1); exit 1; }; }
1623
1624 fi
1625 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1626 echo "${ECHO_T}$ac_cv_target" >&6
1627 target=$ac_cv_target
1628 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633 # The aliases save the names the user supplied, while $host etc.
1634 # will get canonicalized.
1635 test -n "$target_alias" &&
1636   test "$program_prefix$program_suffix$program_transform_name" = \
1637     NONENONEs,x,x, &&
1638   program_prefix=${target_alias}-
1639 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1640 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1641     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1642 if test "${enable_maintainer_mode+set}" = set; then
1643   enableval="$enable_maintainer_mode"
1644   USE_MAINTAINER_MODE=$enableval
1645 else
1646   USE_MAINTAINER_MODE=no
1647 fi;
1648   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1649 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1650
1651
1652 if test $USE_MAINTAINER_MODE = yes; then
1653   MAINTAINER_MODE_TRUE=
1654   MAINTAINER_MODE_FALSE='#'
1655 else
1656   MAINTAINER_MODE_TRUE='#'
1657   MAINTAINER_MODE_FALSE=
1658 fi
1659
1660   MAINT=$MAINTAINER_MODE_TRUE
1661
1662
1663
1664 if test -z "$ac_abs_top_srcdir"; then
1665     ac_builddir=.
1666
1667 if test . != .; then
1668   ac_dir_suffix=/`echo . | sed 's,^\.[\\/],,'`
1669   # A "../" for each directory in $ac_dir_suffix.
1670   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1671 else
1672   ac_dir_suffix= ac_top_builddir=
1673 fi
1674
1675 case $srcdir in
1676   .)  # No --srcdir option.  We are building in place.
1677     ac_srcdir=.
1678     if test -z "$ac_top_builddir"; then
1679        ac_top_srcdir=.
1680     else
1681        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1682     fi ;;
1683   [\\/]* | ?:[\\/]* )  # Absolute path.
1684     ac_srcdir=$srcdir$ac_dir_suffix;
1685     ac_top_srcdir=$srcdir ;;
1686   *) # Relative path.
1687     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1688     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1689 esac
1690
1691 # Do not use `cd foo && pwd` to compute absolute paths, because
1692 # the directories may not exist.
1693 case `pwd` in
1694 .) ac_abs_builddir=.;;
1695 *)
1696   case . in
1697   .) ac_abs_builddir=`pwd`;;
1698   [\\/]* | ?:[\\/]* ) ac_abs_builddir=.;;
1699   *) ac_abs_builddir=`pwd`/.;;
1700   esac;;
1701 esac
1702 case $ac_abs_builddir in
1703 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1704 *)
1705   case ${ac_top_builddir}. in
1706   .) ac_abs_top_builddir=$ac_abs_builddir;;
1707   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1708   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1709   esac;;
1710 esac
1711 case $ac_abs_builddir in
1712 .) ac_abs_srcdir=$ac_srcdir;;
1713 *)
1714   case $ac_srcdir in
1715   .) ac_abs_srcdir=$ac_abs_builddir;;
1716   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1717   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1718   esac;;
1719 esac
1720 case $ac_abs_builddir in
1721 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1722 *)
1723   case $ac_top_srcdir in
1724   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1725   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1726   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1727   esac;;
1728 esac
1729
1730 fi
1731 if test -r .Conf.settings1; then
1732     . ./.Conf.settings1
1733 fi
1734
1735 ac_ext=c
1736 ac_cpp='$CPP $CPPFLAGS'
1737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1740 if test -n "$ac_tool_prefix"; then
1741   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1742 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   if test -n "$CC"; then
1749   ac_cv_prog_CC="$CC" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754   IFS=$as_save_IFS
1755   test -z "$as_dir" && as_dir=.
1756   for ac_exec_ext in '' $ac_executable_extensions; do
1757   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760     break 2
1761   fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 CC=$ac_cv_prog_CC
1768 if test -n "$CC"; then
1769   echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1771 else
1772   echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776 fi
1777 if test -z "$ac_cv_prog_CC"; then
1778   ac_ct_CC=$CC
1779   # Extract the first word of "gcc", so it can be a program name with args.
1780 set dummy gcc; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1784   echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786   if test -n "$ac_ct_CC"; then
1787   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1788 else
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1791 do
1792   IFS=$as_save_IFS
1793   test -z "$as_dir" && as_dir=.
1794   for ac_exec_ext in '' $ac_executable_extensions; do
1795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796     ac_cv_prog_ac_ct_CC="gcc"
1797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798     break 2
1799   fi
1800 done
1801 done
1802
1803 fi
1804 fi
1805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1806 if test -n "$ac_ct_CC"; then
1807   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1808 echo "${ECHO_T}$ac_ct_CC" >&6
1809 else
1810   echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1812 fi
1813
1814   CC=$ac_ct_CC
1815 else
1816   CC="$ac_cv_prog_CC"
1817 fi
1818
1819 if test -z "$CC"; then
1820   if test -n "$ac_tool_prefix"; then
1821   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1822 set dummy ${ac_tool_prefix}cc; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_CC+set}" = set; then
1826   echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828   if test -n "$CC"; then
1829   ac_cv_prog_CC="$CC" # Let the user override the test.
1830 else
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1833 do
1834   IFS=$as_save_IFS
1835   test -z "$as_dir" && as_dir=.
1836   for ac_exec_ext in '' $ac_executable_extensions; do
1837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838     ac_cv_prog_CC="${ac_tool_prefix}cc"
1839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840     break 2
1841   fi
1842 done
1843 done
1844
1845 fi
1846 fi
1847 CC=$ac_cv_prog_CC
1848 if test -n "$CC"; then
1849   echo "$as_me:$LINENO: result: $CC" >&5
1850 echo "${ECHO_T}$CC" >&6
1851 else
1852   echo "$as_me:$LINENO: result: no" >&5
1853 echo "${ECHO_T}no" >&6
1854 fi
1855
1856 fi
1857 if test -z "$ac_cv_prog_CC"; then
1858   ac_ct_CC=$CC
1859   # Extract the first word of "cc", so it can be a program name with args.
1860 set dummy cc; ac_word=$2
1861 echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1864   echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866   if test -n "$ac_ct_CC"; then
1867   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1868 else
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 for as_dir in $PATH
1871 do
1872   IFS=$as_save_IFS
1873   test -z "$as_dir" && as_dir=.
1874   for ac_exec_ext in '' $ac_executable_extensions; do
1875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876     ac_cv_prog_ac_ct_CC="cc"
1877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878     break 2
1879   fi
1880 done
1881 done
1882
1883 fi
1884 fi
1885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1886 if test -n "$ac_ct_CC"; then
1887   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1888 echo "${ECHO_T}$ac_ct_CC" >&6
1889 else
1890   echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1892 fi
1893
1894   CC=$ac_ct_CC
1895 else
1896   CC="$ac_cv_prog_CC"
1897 fi
1898
1899 fi
1900 if test -z "$CC"; then
1901   # Extract the first word of "cc", so it can be a program name with args.
1902 set dummy cc; ac_word=$2
1903 echo "$as_me:$LINENO: checking for $ac_word" >&5
1904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905 if test "${ac_cv_prog_CC+set}" = set; then
1906   echo $ECHO_N "(cached) $ECHO_C" >&6
1907 else
1908   if test -n "$CC"; then
1909   ac_cv_prog_CC="$CC" # Let the user override the test.
1910 else
1911   ac_prog_rejected=no
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915   IFS=$as_save_IFS
1916   test -z "$as_dir" && as_dir=.
1917   for ac_exec_ext in '' $ac_executable_extensions; do
1918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1920        ac_prog_rejected=yes
1921        continue
1922      fi
1923     ac_cv_prog_CC="cc"
1924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925     break 2
1926   fi
1927 done
1928 done
1929
1930 if test $ac_prog_rejected = yes; then
1931   # We found a bogon in the path, so make sure we never use it.
1932   set dummy $ac_cv_prog_CC
1933   shift
1934   if test $# != 0; then
1935     # We chose a different compiler from the bogus one.
1936     # However, it has the same basename, so the bogon will be chosen
1937     # first if we set CC to just the basename; use the full file name.
1938     shift
1939     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1940   fi
1941 fi
1942 fi
1943 fi
1944 CC=$ac_cv_prog_CC
1945 if test -n "$CC"; then
1946   echo "$as_me:$LINENO: result: $CC" >&5
1947 echo "${ECHO_T}$CC" >&6
1948 else
1949   echo "$as_me:$LINENO: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1951 fi
1952
1953 fi
1954 if test -z "$CC"; then
1955   if test -n "$ac_tool_prefix"; then
1956   for ac_prog in cl
1957   do
1958     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1960 echo "$as_me:$LINENO: checking for $ac_word" >&5
1961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962 if test "${ac_cv_prog_CC+set}" = set; then
1963   echo $ECHO_N "(cached) $ECHO_C" >&6
1964 else
1965   if test -n "$CC"; then
1966   ac_cv_prog_CC="$CC" # Let the user override the test.
1967 else
1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 for as_dir in $PATH
1970 do
1971   IFS=$as_save_IFS
1972   test -z "$as_dir" && as_dir=.
1973   for ac_exec_ext in '' $ac_executable_extensions; do
1974   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1975     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977     break 2
1978   fi
1979 done
1980 done
1981
1982 fi
1983 fi
1984 CC=$ac_cv_prog_CC
1985 if test -n "$CC"; then
1986   echo "$as_me:$LINENO: result: $CC" >&5
1987 echo "${ECHO_T}$CC" >&6
1988 else
1989   echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6
1991 fi
1992
1993     test -n "$CC" && break
1994   done
1995 fi
1996 if test -z "$CC"; then
1997   ac_ct_CC=$CC
1998   for ac_prog in cl
1999 do
2000   # Extract the first word of "$ac_prog", so it can be a program name with args.
2001 set dummy $ac_prog; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   if test -n "$ac_ct_CC"; then
2008   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013   IFS=$as_save_IFS
2014   test -z "$as_dir" && as_dir=.
2015   for ac_exec_ext in '' $ac_executable_extensions; do
2016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017     ac_cv_prog_ac_ct_CC="$ac_prog"
2018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019     break 2
2020   fi
2021 done
2022 done
2023
2024 fi
2025 fi
2026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2027 if test -n "$ac_ct_CC"; then
2028   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2029 echo "${ECHO_T}$ac_ct_CC" >&6
2030 else
2031   echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035   test -n "$ac_ct_CC" && break
2036 done
2037
2038   CC=$ac_ct_CC
2039 fi
2040
2041 fi
2042
2043
2044 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: no acceptable C compiler found in \$PATH
2047 See \`config.log' for more details." >&2;}
2048    { (exit 1); exit 1; }; }
2049
2050 # Provide some information about the compiler.
2051 echo "$as_me:$LINENO:" \
2052      "checking for C compiler version" >&5
2053 ac_compiler=`set X $ac_compile; echo $2`
2054 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2055   (eval $ac_compiler --version </dev/null >&5) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); }
2059 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2060   (eval $ac_compiler -v </dev/null >&5) 2>&5
2061   ac_status=$?
2062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063   (exit $ac_status); }
2064 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2065   (eval $ac_compiler -V </dev/null >&5) 2>&5
2066   ac_status=$?
2067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068   (exit $ac_status); }
2069
2070 cat >conftest.$ac_ext <<_ACEOF
2071 /* confdefs.h.  */
2072 _ACEOF
2073 cat confdefs.h >>conftest.$ac_ext
2074 cat >>conftest.$ac_ext <<_ACEOF
2075 /* end confdefs.h.  */
2076
2077 int
2078 main ()
2079 {
2080
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 ac_clean_files_save=$ac_clean_files
2086 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2087 # Try to create an executable without -o first, disregard a.out.
2088 # It will help us diagnose broken compilers, and finding out an intuition
2089 # of exeext.
2090 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2091 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2092 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2093 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2094   (eval $ac_link_default) 2>&5
2095   ac_status=$?
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); }; then
2098   # Find the output, starting from the most likely.  This scheme is
2099 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2100 # resort.
2101
2102 # Be careful to initialize this variable, since it used to be cached.
2103 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2104 ac_cv_exeext=
2105 # b.out is created by i960 compilers.
2106 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2107 do
2108   test -f "$ac_file" || continue
2109   case $ac_file in
2110     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2111         ;;
2112     conftest.$ac_ext )
2113         # This is the source file.
2114         ;;
2115     [ab].out )
2116         # We found the default executable, but exeext='' is most
2117         # certainly right.
2118         break;;
2119     *.* )
2120         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121         # FIXME: I believe we export ac_cv_exeext for Libtool,
2122         # but it would be cool to find out if it's true.  Does anybody
2123         # maintain Libtool? --akim.
2124         export ac_cv_exeext
2125         break;;
2126     * )
2127         break;;
2128   esac
2129 done
2130 else
2131   echo "$as_me: failed program was:" >&5
2132 sed 's/^/| /' conftest.$ac_ext >&5
2133
2134 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2135 See \`config.log' for more details." >&5
2136 echo "$as_me: error: C compiler cannot create executables
2137 See \`config.log' for more details." >&2;}
2138    { (exit 77); exit 77; }; }
2139 fi
2140
2141 ac_exeext=$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_file" >&5
2143 echo "${ECHO_T}$ac_file" >&6
2144
2145 # Check the compiler produces executables we can run.  If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150 # If not cross compiling, check that we can run a simple program.
2151 if test "$cross_compiling" != yes; then
2152   if { ac_try='./$ac_file'
2153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154   (eval $ac_try) 2>&5
2155   ac_status=$?
2156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157   (exit $ac_status); }; }; then
2158     cross_compiling=no
2159   else
2160     if test "$cross_compiling" = maybe; then
2161         cross_compiling=yes
2162     else
2163         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'.
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: cannot run C compiled programs.
2167 If you meant to cross compile, use \`--host'.
2168 See \`config.log' for more details." >&2;}
2169    { (exit 1); exit 1; }; }
2170     fi
2171   fi
2172 fi
2173 echo "$as_me:$LINENO: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6
2175
2176 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2177 ac_clean_files=$ac_clean_files_save
2178 # Check the compiler produces executables we can run.  If not, either
2179 # the compiler is broken, or we cross compile.
2180 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2181 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2182 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2183 echo "${ECHO_T}$cross_compiling" >&6
2184
2185 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2186 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2188   (eval $ac_link) 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); }; then
2192   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2193 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2194 # work properly (i.e., refer to `conftest.exe'), while it won't with
2195 # `rm'.
2196 for ac_file in conftest.exe conftest conftest.*; do
2197   test -f "$ac_file" || continue
2198   case $ac_file in
2199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2200     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201           export ac_cv_exeext
2202           break;;
2203     * ) break;;
2204   esac
2205 done
2206 else
2207   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2208 See \`config.log' for more details." >&5
2209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2210 See \`config.log' for more details." >&2;}
2211    { (exit 1); exit 1; }; }
2212 fi
2213
2214 rm -f conftest$ac_cv_exeext
2215 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2216 echo "${ECHO_T}$ac_cv_exeext" >&6
2217
2218 rm -f conftest.$ac_ext
2219 EXEEXT=$ac_cv_exeext
2220 ac_exeext=$EXEEXT
2221 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2222 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2223 if test "${ac_cv_objext+set}" = set; then
2224   echo $ECHO_N "(cached) $ECHO_C" >&6
2225 else
2226   cat >conftest.$ac_ext <<_ACEOF
2227 /* confdefs.h.  */
2228 _ACEOF
2229 cat confdefs.h >>conftest.$ac_ext
2230 cat >>conftest.$ac_ext <<_ACEOF
2231 /* end confdefs.h.  */
2232
2233 int
2234 main ()
2235 {
2236
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 rm -f conftest.o conftest.obj
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243   (eval $ac_compile) 2>&5
2244   ac_status=$?
2245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246   (exit $ac_status); }; then
2247   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2248   case $ac_file in
2249     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2250     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2251        break;;
2252   esac
2253 done
2254 else
2255   echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2257
2258 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2261 See \`config.log' for more details." >&2;}
2262    { (exit 1); exit 1; }; }
2263 fi
2264
2265 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2266 fi
2267 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2268 echo "${ECHO_T}$ac_cv_objext" >&6
2269 OBJEXT=$ac_cv_objext
2270 ac_objext=$OBJEXT
2271 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2272 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2273 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2274   echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276   cat >conftest.$ac_ext <<_ACEOF
2277 /* confdefs.h.  */
2278 _ACEOF
2279 cat confdefs.h >>conftest.$ac_ext
2280 cat >>conftest.$ac_ext <<_ACEOF
2281 /* end confdefs.h.  */
2282
2283 int
2284 main ()
2285 {
2286 #ifndef __GNUC__
2287        choke me
2288 #endif
2289
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 rm -f conftest.$ac_objext
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296   (eval $ac_compile) 2>conftest.er1
2297   ac_status=$?
2298   grep -v '^ *+' conftest.er1 >conftest.err
2299   rm -f conftest.er1
2300   cat conftest.err >&5
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); } &&
2303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; } &&
2309          { ac_try='test -s conftest.$ac_objext'
2310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311   (eval $ac_try) 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); }; }; then
2315   ac_compiler_gnu=yes
2316 else
2317   echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2319
2320 ac_compiler_gnu=no
2321 fi
2322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2323 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2324
2325 fi
2326 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2327 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2328 GCC=`test $ac_compiler_gnu = yes && echo yes`
2329 ac_test_CFLAGS=${CFLAGS+set}
2330 ac_save_CFLAGS=$CFLAGS
2331 CFLAGS="-g"
2332 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2333 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2334 if test "${ac_cv_prog_cc_g+set}" = set; then
2335   echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337   cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h.  */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h.  */
2343
2344 int
2345 main ()
2346 {
2347
2348   ;
2349   return 0;
2350 }
2351 _ACEOF
2352 rm -f conftest.$ac_objext
2353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354   (eval $ac_compile) 2>conftest.er1
2355   ac_status=$?
2356   grep -v '^ *+' conftest.er1 >conftest.err
2357   rm -f conftest.er1
2358   cat conftest.err >&5
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); } &&
2361          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363   (eval $ac_try) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; } &&
2367          { ac_try='test -s conftest.$ac_objext'
2368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369   (eval $ac_try) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; }; then
2373   ac_cv_prog_cc_g=yes
2374 else
2375   echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 ac_cv_prog_cc_g=no
2379 fi
2380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381 fi
2382 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2383 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2384 if test "$ac_test_CFLAGS" = set; then
2385   CFLAGS=$ac_save_CFLAGS
2386 elif test $ac_cv_prog_cc_g = yes; then
2387   if test "$GCC" = yes; then
2388     CFLAGS="-g -O2"
2389   else
2390     CFLAGS="-g"
2391   fi
2392 else
2393   if test "$GCC" = yes; then
2394     CFLAGS="-O2"
2395   else
2396     CFLAGS=
2397   fi
2398 fi
2399 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2400 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2401 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   ac_cv_prog_cc_stdc=no
2405 ac_save_CC=$CC
2406 cat >conftest.$ac_ext <<_ACEOF
2407 /* confdefs.h.  */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h.  */
2412 #include <stdarg.h>
2413 #include <stdio.h>
2414 #include <sys/types.h>
2415 #include <sys/stat.h>
2416 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2417 struct buf { int x; };
2418 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2419 static char *e (p, i)
2420      char **p;
2421      int i;
2422 {
2423   return p[i];
2424 }
2425 static char *f (char * (*g) (char **, int), char **p, ...)
2426 {
2427   char *s;
2428   va_list v;
2429   va_start (v,p);
2430   s = g (p, va_arg (v,int));
2431   va_end (v);
2432   return s;
2433 }
2434
2435 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2436    function prototypes and stuff, but not '\xHH' hex character constants.
2437    These don't provoke an error unfortunately, instead are silently treated
2438    as 'x'.  The following induces an error, until -std1 is added to get
2439    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2440    array size at least.  It's necessary to write '\x00'==0 to get something
2441    that's true only with -std1.  */
2442 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2443
2444 int test (int i, double x);
2445 struct s1 {int (*f) (int a);};
2446 struct s2 {int (*f) (double a);};
2447 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2448 int argc;
2449 char **argv;
2450 int
2451 main ()
2452 {
2453 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2454   ;
2455   return 0;
2456 }
2457 _ACEOF
2458 # Don't try gcc -ansi; that turns off useful extensions and
2459 # breaks some systems' header files.
2460 # AIX                   -qlanglvl=ansi
2461 # Ultrix and OSF/1      -std1
2462 # HP-UX 10.20 and later -Ae
2463 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2464 # SVR4                  -Xc -D__EXTENSIONS__
2465 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2466 do
2467   CC="$ac_save_CC $ac_arg"
2468   rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470   (eval $ac_compile) 2>conftest.er1
2471   ac_status=$?
2472   grep -v '^ *+' conftest.er1 >conftest.err
2473   rm -f conftest.er1
2474   cat conftest.err >&5
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); } &&
2477          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479   (eval $ac_try) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; } &&
2483          { ac_try='test -s conftest.$ac_objext'
2484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489   ac_cv_prog_cc_stdc=$ac_arg
2490 break
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 fi
2496 rm -f conftest.err conftest.$ac_objext
2497 done
2498 rm -f conftest.$ac_ext conftest.$ac_objext
2499 CC=$ac_save_CC
2500
2501 fi
2502
2503 case "x$ac_cv_prog_cc_stdc" in
2504   x|xno)
2505     echo "$as_me:$LINENO: result: none needed" >&5
2506 echo "${ECHO_T}none needed" >&6 ;;
2507   *)
2508     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2509 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2510     CC="$CC $ac_cv_prog_cc_stdc" ;;
2511 esac
2512
2513 # Some people use a C++ compiler to compile C.  Since we use `exit',
2514 # in C++ we need to declare it.  In case someone uses the same compiler
2515 # for both compiling C and C++ we need to have the C++ compiler decide
2516 # the declaration of exit, since it's the most demanding environment.
2517 cat >conftest.$ac_ext <<_ACEOF
2518 #ifndef __cplusplus
2519   choke me
2520 #endif
2521 _ACEOF
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524   (eval $ac_compile) 2>conftest.er1
2525   ac_status=$?
2526   grep -v '^ *+' conftest.er1 >conftest.err
2527   rm -f conftest.er1
2528   cat conftest.err >&5
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); } &&
2531          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533   (eval $ac_try) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; } &&
2537          { ac_try='test -s conftest.$ac_objext'
2538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539   (eval $ac_try) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }; }; then
2543   for ac_declaration in \
2544    '' \
2545    'extern "C" void std::exit (int) throw (); using std::exit;' \
2546    'extern "C" void std::exit (int); using std::exit;' \
2547    'extern "C" void exit (int) throw ();' \
2548    'extern "C" void exit (int);' \
2549    'void exit (int);'
2550 do
2551   cat >conftest.$ac_ext <<_ACEOF
2552 /* confdefs.h.  */
2553 _ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h.  */
2557 $ac_declaration
2558 #include <stdlib.h>
2559 int
2560 main ()
2561 {
2562 exit (42);
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569   (eval $ac_compile) 2>conftest.er1
2570   ac_status=$?
2571   grep -v '^ *+' conftest.er1 >conftest.err
2572   rm -f conftest.er1
2573   cat conftest.err >&5
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); } &&
2576          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578   (eval $ac_try) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; } &&
2582          { ac_try='test -s conftest.$ac_objext'
2583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584   (eval $ac_try) 2>&5
2585   ac_status=$?
2586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587   (exit $ac_status); }; }; then
2588   :
2589 else
2590   echo "$as_me: failed program was:" >&5
2591 sed 's/^/| /' conftest.$ac_ext >&5
2592
2593 continue
2594 fi
2595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596   cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h.  */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h.  */
2602 $ac_declaration
2603 int
2604 main ()
2605 {
2606 exit (42);
2607   ;
2608   return 0;
2609 }
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613   (eval $ac_compile) 2>conftest.er1
2614   ac_status=$?
2615   grep -v '^ *+' conftest.er1 >conftest.err
2616   rm -f conftest.er1
2617   cat conftest.err >&5
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); } &&
2620          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; } &&
2626          { ac_try='test -s conftest.$ac_objext'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   break
2633 else
2634   echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 fi
2638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2639 done
2640 rm -f conftest*
2641 if test -n "$ac_declaration"; then
2642   echo '#ifdef __cplusplus' >>confdefs.h
2643   echo $ac_declaration      >>confdefs.h
2644   echo '#endif'             >>confdefs.h
2645 fi
2646
2647 else
2648   echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2650
2651 fi
2652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2653 ac_ext=c
2654 ac_cpp='$CPP $CPPFLAGS'
2655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658
2659 ac_ext=c
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2665 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2666 # On Suns, sometimes $CPP names a directory.
2667 if test -n "$CPP" && test -d "$CPP"; then
2668   CPP=
2669 fi
2670 if test -z "$CPP"; then
2671   if test "${ac_cv_prog_CPP+set}" = set; then
2672   echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674       # Double quotes because CPP needs to be expanded
2675     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2676     do
2677       ac_preproc_ok=false
2678 for ac_c_preproc_warn_flag in '' yes
2679 do
2680   # Use a header file that comes with gcc, so configuring glibc
2681   # with a fresh cross-compiler works.
2682   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2683   # <limits.h> exists even on freestanding compilers.
2684   # On the NeXT, cc -E runs the code through the compiler's parser,
2685   # not just through cpp. "Syntax error" is here to catch this case.
2686   cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692 #ifdef __STDC__
2693 # include <limits.h>
2694 #else
2695 # include <assert.h>
2696 #endif
2697                      Syntax error
2698 _ACEOF
2699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2700   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2701   ac_status=$?
2702   grep -v '^ *+' conftest.er1 >conftest.err
2703   rm -f conftest.er1
2704   cat conftest.err >&5
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } >/dev/null; then
2707   if test -s conftest.err; then
2708     ac_cpp_err=$ac_c_preproc_warn_flag
2709     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2710   else
2711     ac_cpp_err=
2712   fi
2713 else
2714   ac_cpp_err=yes
2715 fi
2716 if test -z "$ac_cpp_err"; then
2717   :
2718 else
2719   echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2721
2722   # Broken: fails on valid input.
2723 continue
2724 fi
2725 rm -f conftest.err conftest.$ac_ext
2726
2727   # OK, works on sane cases.  Now check whether non-existent headers
2728   # can be detected and how.
2729   cat >conftest.$ac_ext <<_ACEOF
2730 /* confdefs.h.  */
2731 _ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h.  */
2735 #include <ac_nonexistent.h>
2736 _ACEOF
2737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } >/dev/null; then
2745   if test -s conftest.err; then
2746     ac_cpp_err=$ac_c_preproc_warn_flag
2747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2748   else
2749     ac_cpp_err=
2750   fi
2751 else
2752   ac_cpp_err=yes
2753 fi
2754 if test -z "$ac_cpp_err"; then
2755   # Broken: success on invalid input.
2756 continue
2757 else
2758   echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761   # Passes both tests.
2762 ac_preproc_ok=:
2763 break
2764 fi
2765 rm -f conftest.err conftest.$ac_ext
2766
2767 done
2768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2769 rm -f conftest.err conftest.$ac_ext
2770 if $ac_preproc_ok; then
2771   break
2772 fi
2773
2774     done
2775     ac_cv_prog_CPP=$CPP
2776
2777 fi
2778   CPP=$ac_cv_prog_CPP
2779 else
2780   ac_cv_prog_CPP=$CPP
2781 fi
2782 echo "$as_me:$LINENO: result: $CPP" >&5
2783 echo "${ECHO_T}$CPP" >&6
2784 ac_preproc_ok=false
2785 for ac_c_preproc_warn_flag in '' yes
2786 do
2787   # Use a header file that comes with gcc, so configuring glibc
2788   # with a fresh cross-compiler works.
2789   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2790   # <limits.h> exists even on freestanding compilers.
2791   # On the NeXT, cc -E runs the code through the compiler's parser,
2792   # not just through cpp. "Syntax error" is here to catch this case.
2793   cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h.  */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h.  */
2799 #ifdef __STDC__
2800 # include <limits.h>
2801 #else
2802 # include <assert.h>
2803 #endif
2804                      Syntax error
2805 _ACEOF
2806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2807   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2808   ac_status=$?
2809   grep -v '^ *+' conftest.er1 >conftest.err
2810   rm -f conftest.er1
2811   cat conftest.err >&5
2812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813   (exit $ac_status); } >/dev/null; then
2814   if test -s conftest.err; then
2815     ac_cpp_err=$ac_c_preproc_warn_flag
2816     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2817   else
2818     ac_cpp_err=
2819   fi
2820 else
2821   ac_cpp_err=yes
2822 fi
2823 if test -z "$ac_cpp_err"; then
2824   :
2825 else
2826   echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2828
2829   # Broken: fails on valid input.
2830 continue
2831 fi
2832 rm -f conftest.err conftest.$ac_ext
2833
2834   # OK, works on sane cases.  Now check whether non-existent headers
2835   # can be detected and how.
2836   cat >conftest.$ac_ext <<_ACEOF
2837 /* confdefs.h.  */
2838 _ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h.  */
2842 #include <ac_nonexistent.h>
2843 _ACEOF
2844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2846   ac_status=$?
2847   grep -v '^ *+' conftest.er1 >conftest.err
2848   rm -f conftest.er1
2849   cat conftest.err >&5
2850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); } >/dev/null; then
2852   if test -s conftest.err; then
2853     ac_cpp_err=$ac_c_preproc_warn_flag
2854     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2855   else
2856     ac_cpp_err=
2857   fi
2858 else
2859   ac_cpp_err=yes
2860 fi
2861 if test -z "$ac_cpp_err"; then
2862   # Broken: success on invalid input.
2863 continue
2864 else
2865   echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2867
2868   # Passes both tests.
2869 ac_preproc_ok=:
2870 break
2871 fi
2872 rm -f conftest.err conftest.$ac_ext
2873
2874 done
2875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2876 rm -f conftest.err conftest.$ac_ext
2877 if $ac_preproc_ok; then
2878   :
2879 else
2880   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2881 See \`config.log' for more details." >&5
2882 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2883 See \`config.log' for more details." >&2;}
2884    { (exit 1); exit 1; }; }
2885 fi
2886
2887 ac_ext=c
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892
2893
2894 echo "$as_me:$LINENO: checking whether the C preprocessor needs special flags" >&5
2895 echo $ECHO_N "checking whether the C preprocessor needs special flags... $ECHO_C" >&6
2896
2897 cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h.  */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h.  */
2903 #include <limits.h>
2904 #if (32767 >= 4294967295ul) || (65535u >= 4294967295ul)
2905 #  include "your C preprocessor is broken 1"
2906 #elif (0xffffu == 0xfffffffful)
2907 #  include "your C preprocessor is broken 2"
2908 #elif (32767 >= ULONG_MAX) || (65535u >= ULONG_MAX)
2909 #  include "your C preprocessor is broken 3"
2910 #endif
2911
2912 int
2913 main ()
2914 {
2915
2916
2917   ;
2918   return 0;
2919 }
2920 _ACEOF
2921
2922 mfx_save_CPPFLAGS=$CPPFLAGS
2923 mfx_tmp=ERROR
2924 for mfx_arg in "" -no-cpp-precomp
2925 do
2926   CPPFLAGS="$mfx_arg $mfx_save_CPPFLAGS"
2927   rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929   (eval $ac_compile) 2>conftest.er1
2930   ac_status=$?
2931   grep -v '^ *+' conftest.er1 >conftest.err
2932   rm -f conftest.er1
2933   cat conftest.err >&5
2934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935   (exit $ac_status); } &&
2936          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938   (eval $ac_try) 2>&5
2939   ac_status=$?
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); }; } &&
2942          { ac_try='test -s conftest.$ac_objext'
2943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944   (eval $ac_try) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }; }; then
2948   mfx_tmp=$mfx_arg
2949 break
2950 else
2951   echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 fi
2955 rm -f conftest.err conftest.$ac_objext
2956 done
2957 CPPFLAGS=$mfx_save_CPPFLAGS
2958 rm -f conftest.$ac_ext conftest.$ac_objext
2959 case x$mfx_tmp in
2960   x)
2961     echo "$as_me:$LINENO: result: none needed" >&5
2962 echo "${ECHO_T}none needed" >&6 ;;
2963   xERROR)
2964     echo "$as_me:$LINENO: result: ERROR" >&5
2965 echo "${ECHO_T}ERROR" >&6
2966     { { echo "$as_me:$LINENO: error: your C preprocessor is broken - for details see config.log" >&5
2967 echo "$as_me: error: your C preprocessor is broken - for details see config.log" >&2;}
2968    { (exit 1); exit 1; }; }
2969     ;;
2970   *)
2971     echo "$as_me:$LINENO: result: $mfx_tmp" >&5
2972 echo "${ECHO_T}$mfx_tmp" >&6
2973     CPPFLAGS="$mfx_tmp $CPPFLAGS"
2974     ;;
2975 esac
2976
2977
2978 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2979 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2980 if test "${ac_cv_c_const+set}" = set; then
2981   echo $ECHO_N "(cached) $ECHO_C" >&6
2982 else
2983   cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h.  */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h.  */
2989
2990 int
2991 main ()
2992 {
2993 /* FIXME: Include the comments suggested by Paul. */
2994 #ifndef __cplusplus
2995   /* Ultrix mips cc rejects this.  */
2996   typedef int charset[2];
2997   const charset x;
2998   /* SunOS 4.1.1 cc rejects this.  */
2999   char const *const *ccp;
3000   char **p;
3001   /* NEC SVR4.0.2 mips cc rejects this.  */
3002   struct point {int x, y;};
3003   static struct point const zero = {0,0};
3004   /* AIX XL C 1.02.0.0 rejects this.
3005      It does not let you subtract one const X* pointer from another in
3006      an arm of an if-expression whose if-part is not a constant
3007      expression */
3008   const char *g = "string";
3009   ccp = &g + (g ? g-g : 0);
3010   /* HPUX 7.0 cc rejects these. */
3011   ++ccp;
3012   p = (char**) ccp;
3013   ccp = (char const *const *) p;
3014   { /* SCO 3.2v4 cc rejects this.  */
3015     char *t;
3016     char const *s = 0 ? (char *) 0 : (char const *) 0;
3017
3018     *t++ = 0;
3019   }
3020   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3021     int x[] = {25, 17};
3022     const int *foo = &x[0];
3023     ++foo;
3024   }
3025   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3026     typedef const int *iptr;
3027     iptr p = 0;
3028     ++p;
3029   }
3030   { /* AIX XL C 1.02.0.0 rejects this saying
3031        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3032     struct s { int j; const int *ap[3]; };
3033     struct s *b; b->j = 5;
3034   }
3035   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3036     const int foo = 10;
3037   }
3038 #endif
3039
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046   (eval $ac_compile) 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } &&
3053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055   (eval $ac_try) 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; } &&
3059          { ac_try='test -s conftest.$ac_objext'
3060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061   (eval $ac_try) 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }; }; then
3065   ac_cv_c_const=yes
3066 else
3067   echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 ac_cv_c_const=no
3071 fi
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073 fi
3074 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3075 echo "${ECHO_T}$ac_cv_c_const" >&6
3076 if test $ac_cv_c_const = no; then
3077
3078 cat >>confdefs.h <<\_ACEOF
3079 #define const
3080 _ACEOF
3081
3082 fi
3083
3084
3085 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3086 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3087 if test "${ac_cv_c_bigendian+set}" = set; then
3088   echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090   # See if sys/param.h defines the BYTE_ORDER macro.
3091 cat >conftest.$ac_ext <<_ACEOF
3092 /* confdefs.h.  */
3093 _ACEOF
3094 cat confdefs.h >>conftest.$ac_ext
3095 cat >>conftest.$ac_ext <<_ACEOF
3096 /* end confdefs.h.  */
3097 #include <sys/types.h>
3098 #include <sys/param.h>
3099
3100 int
3101 main ()
3102 {
3103 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3104  bogus endian macros
3105 #endif
3106
3107   ;
3108   return 0;
3109 }
3110 _ACEOF
3111 rm -f conftest.$ac_objext
3112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3113   (eval $ac_compile) 2>conftest.er1
3114   ac_status=$?
3115   grep -v '^ *+' conftest.er1 >conftest.err
3116   rm -f conftest.er1
3117   cat conftest.err >&5
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); } &&
3120          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122   (eval $ac_try) 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }; } &&
3126          { ac_try='test -s conftest.$ac_objext'
3127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128   (eval $ac_try) 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; }; then
3132   # It does; now see whether it defined to BIG_ENDIAN or not.
3133 cat >conftest.$ac_ext <<_ACEOF
3134 /* confdefs.h.  */
3135 _ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h.  */
3139 #include <sys/types.h>
3140 #include <sys/param.h>
3141
3142 int
3143 main ()
3144 {
3145 #if BYTE_ORDER != BIG_ENDIAN
3146  not big endian
3147 #endif
3148
3149   ;
3150   return 0;
3151 }
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155   (eval $ac_compile) 2>conftest.er1
3156   ac_status=$?
3157   grep -v '^ *+' conftest.er1 >conftest.err
3158   rm -f conftest.er1
3159   cat conftest.err >&5
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); } &&
3162          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164   (eval $ac_try) 2>&5
3165   ac_status=$?
3166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167   (exit $ac_status); }; } &&
3168          { ac_try='test -s conftest.$ac_objext'
3169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170   (eval $ac_try) 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }; }; then
3174   ac_cv_c_bigendian=yes
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179 ac_cv_c_bigendian=no
3180 fi
3181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3182 else
3183   echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3185
3186 # It does not; compile a test program.
3187 if test "$cross_compiling" = yes; then
3188   # try to guess the endianness by grepping values into an object file
3189   ac_cv_c_bigendian=unknown
3190   cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h.  */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h.  */
3196 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3197 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3198 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3199 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3200 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3201 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3202 int
3203 main ()
3204 {
3205  _ascii (); _ebcdic ();
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 rm -f conftest.$ac_objext
3211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212   (eval $ac_compile) 2>conftest.er1
3213   ac_status=$?
3214   grep -v '^ *+' conftest.er1 >conftest.err
3215   rm -f conftest.er1
3216   cat conftest.err >&5
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); } &&
3219          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221   (eval $ac_try) 2>&5
3222   ac_status=$?
3223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224   (exit $ac_status); }; } &&
3225          { ac_try='test -s conftest.$ac_objext'
3226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227   (eval $ac_try) 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }; }; then
3231   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3232   ac_cv_c_bigendian=yes
3233 fi
3234 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3235   if test "$ac_cv_c_bigendian" = unknown; then
3236     ac_cv_c_bigendian=no
3237   else
3238     # finding both strings is unlikely to happen, but who knows?
3239     ac_cv_c_bigendian=unknown
3240   fi
3241 fi
3242 else
3243   echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 fi
3247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3248 else
3249   cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255 int
3256 main ()
3257 {
3258   /* Are we little or big endian?  From Harbison&Steele.  */
3259   union
3260   {
3261     long l;
3262     char c[sizeof (long)];
3263   } u;
3264   u.l = 1;
3265   exit (u.c[sizeof (long) - 1] == 1);
3266 }
3267 _ACEOF
3268 rm -f conftest$ac_exeext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3270   (eval $ac_link) 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275   (eval $ac_try) 2>&5
3276   ac_status=$?
3277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278   (exit $ac_status); }; }; then
3279   ac_cv_c_bigendian=no
3280 else
3281   echo "$as_me: program exited with status $ac_status" >&5
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285 ( exit $ac_status )
3286 ac_cv_c_bigendian=yes
3287 fi
3288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3289 fi
3290 fi
3291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3292 fi
3293 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3294 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3295 case $ac_cv_c_bigendian in
3296   yes)
3297
3298 cat >>confdefs.h <<\_ACEOF
3299 #define LZO_ABI_BIG_ENDIAN 1
3300 _ACEOF
3301  ;;
3302   no)
3303
3304 cat >>confdefs.h <<\_ACEOF
3305 #define LZO_ABI_LITTLE_ENDIAN 1
3306 _ACEOF
3307  ;;
3308   *)
3309     { { echo "$as_me:$LINENO: error: unknown endianness
3310 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3311 echo "$as_me: error: unknown endianness
3312 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3313    { (exit 1); exit 1; }; } ;;
3314 esac
3315
3316
3317 # Check whether --enable-largefile or --disable-largefile was given.
3318 if test "${enable_largefile+set}" = set; then
3319   enableval="$enable_largefile"
3320
3321 fi;
3322 if test "$enable_largefile" != no; then
3323
3324   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3325 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3326 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   ac_cv_sys_largefile_CC=no
3330      if test "$GCC" != yes; then
3331        ac_save_CC=$CC
3332        while :; do
3333          # IRIX 6.2 and later do not support large files by default,
3334          # so use the C compiler's -n32 option if that helps.
3335          cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h.  */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h.  */
3341 #include <sys/types.h>
3342  /* Check that off_t can represent 2**63 - 1 correctly.
3343     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3344     since some C++ compilers masquerading as C compilers
3345     incorrectly reject 9223372036854775807.  */
3346 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3347   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3348                        && LARGE_OFF_T % 2147483647 == 1)
3349                       ? 1 : -1];
3350 int
3351 main ()
3352 {
3353
3354   ;
3355   return 0;
3356 }
3357 _ACEOF
3358          rm -f conftest.$ac_objext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360   (eval $ac_compile) 2>conftest.er1
3361   ac_status=$?
3362   grep -v '^ *+' conftest.er1 >conftest.err
3363   rm -f conftest.er1
3364   cat conftest.err >&5
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); } &&
3367          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369   (eval $ac_try) 2>&5
3370   ac_status=$?
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); }; } &&
3373          { ac_try='test -s conftest.$ac_objext'
3374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375   (eval $ac_try) 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); }; }; then
3379   break
3380 else
3381   echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384 fi
3385 rm -f conftest.err conftest.$ac_objext
3386          CC="$CC -n32"
3387          rm -f conftest.$ac_objext
3388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3389   (eval $ac_compile) 2>conftest.er1
3390   ac_status=$?
3391   grep -v '^ *+' conftest.er1 >conftest.err
3392   rm -f conftest.er1
3393   cat conftest.err >&5
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); } &&
3396          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398   (eval $ac_try) 2>&5
3399   ac_status=$?
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); }; } &&
3402          { ac_try='test -s conftest.$ac_objext'
3403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404   (eval $ac_try) 2>&5
3405   ac_status=$?
3406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407   (exit $ac_status); }; }; then
3408   ac_cv_sys_largefile_CC=' -n32'; break
3409 else
3410   echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3412
3413 fi
3414 rm -f conftest.err conftest.$ac_objext
3415          break
3416        done
3417        CC=$ac_save_CC
3418        rm -f conftest.$ac_ext
3419     fi
3420 fi
3421 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3422 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3423   if test "$ac_cv_sys_largefile_CC" != no; then
3424     CC=$CC$ac_cv_sys_largefile_CC
3425   fi
3426
3427   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3428 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3429 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3430   echo $ECHO_N "(cached) $ECHO_C" >&6
3431 else
3432   while :; do
3433   ac_cv_sys_file_offset_bits=no
3434   cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 #include <sys/types.h>
3441  /* Check that off_t can represent 2**63 - 1 correctly.
3442     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3443     since some C++ compilers masquerading as C compilers
3444     incorrectly reject 9223372036854775807.  */
3445 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3446   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3447                        && LARGE_OFF_T % 2147483647 == 1)
3448                       ? 1 : -1];
3449 int
3450 main ()
3451 {
3452
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 rm -f conftest.$ac_objext
3458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3459   (eval $ac_compile) 2>conftest.er1
3460   ac_status=$?
3461   grep -v '^ *+' conftest.er1 >conftest.err
3462   rm -f conftest.er1
3463   cat conftest.err >&5
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); } &&
3466          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468   (eval $ac_try) 2>&5
3469   ac_status=$?
3470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471   (exit $ac_status); }; } &&
3472          { ac_try='test -s conftest.$ac_objext'
3473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474   (eval $ac_try) 2>&5
3475   ac_status=$?
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); }; }; then
3478   break
3479 else
3480   echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483 fi
3484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3485   cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491 #define _FILE_OFFSET_BITS 64
3492 #include <sys/types.h>
3493  /* Check that off_t can represent 2**63 - 1 correctly.
3494     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3495     since some C++ compilers masquerading as C compilers
3496     incorrectly reject 9223372036854775807.  */
3497 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3498   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3499                        && LARGE_OFF_T % 2147483647 == 1)
3500                       ? 1 : -1];
3501 int
3502 main ()
3503 {
3504
3505   ;
3506   return 0;
3507 }
3508 _ACEOF
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511   (eval $ac_compile) 2>conftest.er1
3512   ac_status=$?
3513   grep -v '^ *+' conftest.er1 >conftest.err
3514   rm -f conftest.er1
3515   cat conftest.err >&5
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); } &&
3518          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520   (eval $ac_try) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); }; } &&
3524          { ac_try='test -s conftest.$ac_objext'
3525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526   (eval $ac_try) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }; }; then
3530   ac_cv_sys_file_offset_bits=64; break
3531 else
3532   echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 fi
3536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537   break
3538 done
3539 fi
3540 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3541 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3542 if test "$ac_cv_sys_file_offset_bits" != no; then
3543
3544 cat >>confdefs.h <<_ACEOF
3545 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3546 _ACEOF
3547
3548 fi
3549 rm -f conftest*
3550   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3551 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3552 if test "${ac_cv_sys_large_files+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   while :; do
3556   ac_cv_sys_large_files=no
3557   cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h.  */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h.  */
3563 #include <sys/types.h>
3564  /* Check that off_t can represent 2**63 - 1 correctly.
3565     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3566     since some C++ compilers masquerading as C compilers
3567     incorrectly reject 9223372036854775807.  */
3568 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3569   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3570                        && LARGE_OFF_T % 2147483647 == 1)
3571                       ? 1 : -1];
3572 int
3573 main ()
3574 {
3575
3576   ;
3577   return 0;
3578 }
3579 _ACEOF
3580 rm -f conftest.$ac_objext
3581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3582   (eval $ac_compile) 2>conftest.er1
3583   ac_status=$?
3584   grep -v '^ *+' conftest.er1 >conftest.err
3585   rm -f conftest.er1
3586   cat conftest.err >&5
3587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588   (exit $ac_status); } &&
3589          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591   (eval $ac_try) 2>&5
3592   ac_status=$?
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); }; } &&
3595          { ac_try='test -s conftest.$ac_objext'
3596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597   (eval $ac_try) 2>&5
3598   ac_status=$?
3599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); }; }; then
3601   break
3602 else
3603   echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3605
3606 fi
3607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608   cat >conftest.$ac_ext <<_ACEOF
3609 /* confdefs.h.  */
3610 _ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h.  */
3614 #define _LARGE_FILES 1
3615 #include <sys/types.h>
3616  /* Check that off_t can represent 2**63 - 1 correctly.
3617     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3618     since some C++ compilers masquerading as C compilers
3619     incorrectly reject 9223372036854775807.  */
3620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3621   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3622                        && LARGE_OFF_T % 2147483647 == 1)
3623                       ? 1 : -1];
3624 int
3625 main ()
3626 {
3627
3628   ;
3629   return 0;
3630 }
3631 _ACEOF
3632 rm -f conftest.$ac_objext
3633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634   (eval $ac_compile) 2>conftest.er1
3635   ac_status=$?
3636   grep -v '^ *+' conftest.er1 >conftest.err
3637   rm -f conftest.er1
3638   cat conftest.err >&5
3639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640   (exit $ac_status); } &&
3641          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643   (eval $ac_try) 2>&5
3644   ac_status=$?
3645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646   (exit $ac_status); }; } &&
3647          { ac_try='test -s conftest.$ac_objext'
3648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649   (eval $ac_try) 2>&5
3650   ac_status=$?
3651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); }; }; then
3653   ac_cv_sys_large_files=1; break
3654 else
3655   echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3657
3658 fi
3659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660   break
3661 done
3662 fi
3663 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3664 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3665 if test "$ac_cv_sys_large_files" != no; then
3666
3667 cat >>confdefs.h <<_ACEOF
3668 #define _LARGE_FILES $ac_cv_sys_large_files
3669 _ACEOF
3670
3671 fi
3672 rm -f conftest*
3673 fi
3674
3675
3676 am__api_version="1.9"
3677 # Find a good install program.  We prefer a C program (faster),
3678 # so one script is as good as another.  But avoid the broken or
3679 # incompatible versions:
3680 # SysV /etc/install, /usr/sbin/install
3681 # SunOS /usr/etc/install
3682 # IRIX /sbin/install
3683 # AIX /bin/install
3684 # AmigaOS /C/install, which installs bootblocks on floppy discs
3685 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3686 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3687 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3688 # OS/2's system install, which has a completely different semantic
3689 # ./install, which can be erroneously created by make from ./install.sh.
3690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3692 if test -z "$INSTALL"; then
3693 if test "${ac_cv_path_install+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3698 do
3699   IFS=$as_save_IFS
3700   test -z "$as_dir" && as_dir=.
3701   # Account for people who put trailing slashes in PATH elements.
3702 case $as_dir/ in
3703   ./ | .// | /cC/* | \
3704   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3705   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3706   /usr/ucb/* ) ;;
3707   *)
3708     # OSF1 and SCO ODT 3.0 have their own names for install.
3709     # Don't use installbsd from OSF since it installs stuff as root
3710     # by default.
3711     for ac_prog in ginstall scoinst install; do
3712       for ac_exec_ext in '' $ac_executable_extensions; do
3713         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3714           if test $ac_prog = install &&
3715             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3716             # AIX install.  It has an incompatible calling convention.
3717             :
3718           elif test $ac_prog = install &&
3719             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720             # program-specific install script used by HP pwplus--don't use.
3721             :
3722           else
3723             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3724             break 3
3725           fi
3726         fi
3727       done
3728     done
3729     ;;
3730 esac
3731 done
3732
3733
3734 fi
3735   if test "${ac_cv_path_install+set}" = set; then
3736     INSTALL=$ac_cv_path_install
3737   else
3738     # As a last resort, use the slow shell script.  We don't cache a
3739     # path for INSTALL within a source directory, because that will
3740     # break other packages using the cache if that directory is
3741     # removed, or if the path is relative.
3742     INSTALL=$ac_install_sh
3743   fi
3744 fi
3745 echo "$as_me:$LINENO: result: $INSTALL" >&5
3746 echo "${ECHO_T}$INSTALL" >&6
3747
3748 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3749 # It thinks the first close brace ends the variable substitution.
3750 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3751
3752 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3753
3754 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3755
3756 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3757 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3758 # Just in case
3759 sleep 1
3760 echo timestamp > conftest.file
3761 # Do `set' in a subshell so we don't clobber the current shell's
3762 # arguments.  Must try -L first in case configure is actually a
3763 # symlink; some systems play weird games with the mod time of symlinks
3764 # (eg FreeBSD returns the mod time of the symlink's containing
3765 # directory).
3766 if (
3767    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3768    if test "$*" = "X"; then
3769       # -L didn't work.
3770       set X `ls -t $srcdir/configure conftest.file`
3771    fi
3772    rm -f conftest.file
3773    if test "$*" != "X $srcdir/configure conftest.file" \
3774       && test "$*" != "X conftest.file $srcdir/configure"; then
3775
3776       # If neither matched, then we have a broken ls.  This can happen
3777       # if, for instance, CONFIG_SHELL is bash and it inherits a
3778       # broken ls alias from the environment.  This has actually
3779       # happened.  Such a system could not be considered "sane".
3780       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3781 alias in your environment" >&5
3782 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3783 alias in your environment" >&2;}
3784    { (exit 1); exit 1; }; }
3785    fi
3786
3787    test "$2" = conftest.file
3788    )
3789 then
3790    # Ok.
3791    :
3792 else
3793    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3794 Check your system clock" >&5
3795 echo "$as_me: error: newly created file is older than distributed files!
3796 Check your system clock" >&2;}
3797    { (exit 1); exit 1; }; }
3798 fi
3799 echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6
3801 test "$program_prefix" != NONE &&
3802   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3803 # Use a double $ so make ignores it.
3804 test "$program_suffix" != NONE &&
3805   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3806 # Double any \ or $.  echo might interpret backslashes.
3807 # By default was `s,x,x', remove it if useless.
3808 cat <<\_ACEOF >conftest.sed
3809 s/[\\$]/&&/g;s/;s,x,x,$//
3810 _ACEOF
3811 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3812 rm conftest.sed
3813
3814 # expand $ac_aux_dir to an absolute path
3815 am_aux_dir=`cd $ac_aux_dir && pwd`
3816
3817 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3818 # Use eval to expand $SHELL
3819 if eval "$MISSING --run true"; then
3820   am_missing_run="$MISSING --run "
3821 else
3822   am_missing_run=
3823   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3824 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3825 fi
3826
3827 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3828   # We used to keeping the `.' as first argument, in order to
3829   # allow $(mkdir_p) to be used without argument.  As in
3830   #   $(mkdir_p) $(somedir)
3831   # where $(somedir) is conditionally defined.  However this is wrong
3832   # for two reasons:
3833   #  1. if the package is installed by a user who cannot write `.'
3834   #     make install will fail,
3835   #  2. the above comment should most certainly read
3836   #     $(mkdir_p) $(DESTDIR)$(somedir)
3837   #     so it does not work when $(somedir) is undefined and
3838   #     $(DESTDIR) is not.
3839   #  To support the latter case, we have to write
3840   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3841   #  so the `.' trick is pointless.
3842   mkdir_p='mkdir -p --'
3843 else
3844   # On NextStep and OpenStep, the `mkdir' command does not
3845   # recognize any option.  It will interpret all options as
3846   # directories to create, and then abort because `.' already
3847   # exists.
3848   for d in ./-p ./--version;
3849   do
3850     test -d $d && rmdir $d
3851   done
3852   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3853   if test -f "$ac_aux_dir/mkinstalldirs"; then
3854     mkdir_p='$(mkinstalldirs)'
3855   else
3856     mkdir_p='$(install_sh) -d'
3857   fi
3858 fi
3859
3860 for ac_prog in gawk mawk nawk awk
3861 do
3862   # Extract the first word of "$ac_prog", so it can be a program name with args.
3863 set dummy $ac_prog; ac_word=$2
3864 echo "$as_me:$LINENO: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_AWK+set}" = set; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   if test -n "$AWK"; then
3870   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3871 else
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873 for as_dir in $PATH
3874 do
3875   IFS=$as_save_IFS
3876   test -z "$as_dir" && as_dir=.
3877   for ac_exec_ext in '' $ac_executable_extensions; do
3878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3879     ac_cv_prog_AWK="$ac_prog"
3880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881     break 2
3882   fi
3883 done
3884 done
3885
3886 fi
3887 fi
3888 AWK=$ac_cv_prog_AWK
3889 if test -n "$AWK"; then
3890   echo "$as_me:$LINENO: result: $AWK" >&5
3891 echo "${ECHO_T}$AWK" >&6
3892 else
3893   echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6
3895 fi
3896
3897   test -n "$AWK" && break
3898 done
3899
3900 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3901 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3902 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3903 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3904   echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906   cat >conftest.make <<\_ACEOF
3907 all:
3908         @echo 'ac_maketemp="$(MAKE)"'
3909 _ACEOF
3910 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3911 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3912 if test -n "$ac_maketemp"; then
3913   eval ac_cv_prog_make_${ac_make}_set=yes
3914 else
3915   eval ac_cv_prog_make_${ac_make}_set=no
3916 fi
3917 rm -f conftest.make
3918 fi
3919 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3920   echo "$as_me:$LINENO: result: yes" >&5
3921 echo "${ECHO_T}yes" >&6
3922   SET_MAKE=
3923 else
3924   echo "$as_me:$LINENO: result: no" >&5
3925 echo "${ECHO_T}no" >&6
3926   SET_MAKE="MAKE=${MAKE-make}"
3927 fi
3928
3929 rm -rf .tst 2>/dev/null
3930 mkdir .tst 2>/dev/null
3931 if test -d .tst; then
3932   am__leading_dot=.
3933 else
3934   am__leading_dot=_
3935 fi
3936 rmdir .tst 2>/dev/null
3937
3938 DEPDIR="${am__leading_dot}deps"
3939
3940           ac_config_commands="$ac_config_commands depfiles"
3941
3942
3943 am_make=${MAKE-make}
3944 cat > confinc << 'END'
3945 am__doit:
3946         @echo done
3947 .PHONY: am__doit
3948 END
3949 # If we don't find an include directive, just comment out the code.
3950 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3951 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3952 am__include="#"
3953 am__quote=
3954 _am_result=none
3955 # First try GNU make style include.
3956 echo "include confinc" > confmf
3957 # We grep out `Entering directory' and `Leaving directory'
3958 # messages which can occur if `w' ends up in MAKEFLAGS.
3959 # In particular we don't look at `^make:' because GNU make might
3960 # be invoked under some other name (usually "gmake"), in which
3961 # case it prints its new name instead of `make'.
3962 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3963    am__include=include
3964    am__quote=
3965    _am_result=GNU
3966 fi
3967 # Now try BSD make style include.
3968 if test "$am__include" = "#"; then
3969    echo '.include "confinc"' > confmf
3970    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3971       am__include=.include
3972       am__quote="\""
3973       _am_result=BSD
3974    fi
3975 fi
3976
3977
3978 echo "$as_me:$LINENO: result: $_am_result" >&5
3979 echo "${ECHO_T}$_am_result" >&6
3980 rm -f confinc confmf
3981
3982 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3983 if test "${enable_dependency_tracking+set}" = set; then
3984   enableval="$enable_dependency_tracking"
3985
3986 fi;
3987 if test "x$enable_dependency_tracking" != xno; then
3988   am_depcomp="$ac_aux_dir/depcomp"
3989   AMDEPBACKSLASH='\'
3990 fi
3991
3992
3993 if test "x$enable_dependency_tracking" != xno; then
3994   AMDEP_TRUE=
3995   AMDEP_FALSE='#'
3996 else
3997   AMDEP_TRUE='#'
3998   AMDEP_FALSE=
3999 fi
4000
4001
4002
4003 # test to see if srcdir already configured
4004 if test "`cd $srcdir && pwd`" != "`pwd`" &&
4005    test -f $srcdir/config.status; then
4006   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4007 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4008    { (exit 1); exit 1; }; }
4009 fi
4010
4011 # test whether we have cygpath
4012 if test -z "$CYGPATH_W"; then
4013   if (cygpath --version) >/dev/null 2>/dev/null; then
4014     CYGPATH_W='cygpath -w'
4015   else
4016     CYGPATH_W=echo
4017   fi
4018 fi
4019
4020
4021 # Define the identity of the package.
4022  PACKAGE='lzo'
4023  VERSION='2.03'
4024
4025
4026 cat >>confdefs.h <<_ACEOF
4027 #define PACKAGE "$PACKAGE"
4028 _ACEOF
4029
4030
4031 cat >>confdefs.h <<_ACEOF
4032 #define VERSION "$VERSION"
4033 _ACEOF
4034
4035 # Some tools Automake needs.
4036
4037 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4038
4039
4040 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4041
4042
4043 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4044
4045
4046 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4047
4048
4049 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4050
4051 install_sh=${install_sh-"$am_aux_dir/install-sh"}
4052
4053 # Installed binaries are usually stripped using `strip' when the user
4054 # run `make install-strip'.  However `strip' might not be the right
4055 # tool to use in cross-compilation environments, therefore Automake
4056 # will honor the `STRIP' environment variable to overrule this program.
4057 if test "$cross_compiling" != no; then
4058   if test -n "$ac_tool_prefix"; then
4059   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4060 set dummy ${ac_tool_prefix}strip; ac_word=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_prog_STRIP+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   if test -n "$STRIP"; then
4067   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4068 else
4069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 for as_dir in $PATH
4071 do
4072   IFS=$as_save_IFS
4073   test -z "$as_dir" && as_dir=.
4074   for ac_exec_ext in '' $ac_executable_extensions; do
4075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4076     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4078     break 2
4079   fi
4080 done
4081 done
4082
4083 fi
4084 fi
4085 STRIP=$ac_cv_prog_STRIP
4086 if test -n "$STRIP"; then
4087   echo "$as_me:$LINENO: result: $STRIP" >&5
4088 echo "${ECHO_T}$STRIP" >&6
4089 else
4090   echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6
4092 fi
4093
4094 fi
4095 if test -z "$ac_cv_prog_STRIP"; then
4096   ac_ct_STRIP=$STRIP
4097   # Extract the first word of "strip", so it can be a program name with args.
4098 set dummy strip; ac_word=$2
4099 echo "$as_me:$LINENO: checking for $ac_word" >&5
4100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   if test -n "$ac_ct_STRIP"; then
4105   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112   for ac_exec_ext in '' $ac_executable_extensions; do
4113   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114     ac_cv_prog_ac_ct_STRIP="strip"
4115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116     break 2
4117   fi
4118 done
4119 done
4120
4121   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4122 fi
4123 fi
4124 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4125 if test -n "$ac_ct_STRIP"; then
4126   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4127 echo "${ECHO_T}$ac_ct_STRIP" >&6
4128 else
4129   echo "$as_me:$LINENO: result: no" >&5
4130 echo "${ECHO_T}no" >&6
4131 fi
4132
4133   STRIP=$ac_ct_STRIP
4134 else
4135   STRIP="$ac_cv_prog_STRIP"
4136 fi
4137
4138 fi
4139 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4140
4141 # We need awk for the "check" target.  The system "awk" is bad on
4142 # some platforms.
4143 # Always define AMTAR for backward compatibility.
4144
4145 AMTAR=${AMTAR-"${am_missing_run}tar"}
4146
4147 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4148
4149
4150
4151
4152 depcc="$CC"   am_compiler_list=
4153
4154 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4155 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4156 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4160   # We make a subdir and do the tests there.  Otherwise we can end up
4161   # making bogus files that we don't know about and never remove.  For
4162   # instance it was reported that on HP-UX the gcc test will end up
4163   # making a dummy file named `D' -- because `-MD' means `put the output
4164   # in D'.
4165   mkdir conftest.dir
4166   # Copy depcomp to subdir because otherwise we won't find it if we're
4167   # using a relative directory.
4168   cp "$am_depcomp" conftest.dir
4169   cd conftest.dir
4170   # We will build objects and dependencies in a subdirectory because
4171   # it helps to detect inapplicable dependency modes.  For instance
4172   # both Tru64's cc and ICC support -MD to output dependencies as a
4173   # side effect of compilation, but ICC will put the dependencies in
4174   # the current directory while Tru64 will put them in the object
4175   # directory.
4176   mkdir sub
4177
4178   am_cv_CC_dependencies_compiler_type=none
4179   if test "$am_compiler_list" = ""; then
4180      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4181   fi
4182   for depmode in $am_compiler_list; do
4183     # Setup a source with many dependencies, because some compilers
4184     # like to wrap large dependency lists on column 80 (with \), and
4185     # we should not choose a depcomp mode which is confused by this.
4186     #
4187     # We need to recreate these files for each test, as the compiler may
4188     # overwrite some of them when testing with obscure command lines.
4189     # This happens at least with the AIX C compiler.
4190     : > sub/conftest.c
4191     for i in 1 2 3 4 5 6; do
4192       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4193       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4194       # Solaris 8's {/usr,}/bin/sh.
4195       touch sub/conftst$i.h
4196     done
4197     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4198
4199     case $depmode in
4200     nosideeffect)
4201       # after this tag, mechanisms are not by side-effect, so they'll
4202       # only be used when explicitly requested
4203       if test "x$enable_dependency_tracking" = xyes; then
4204         continue
4205       else
4206         break
4207       fi
4208       ;;
4209     none) break ;;
4210     esac
4211     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4212     # mode.  It turns out that the SunPro C++ compiler does not properly
4213     # handle `-M -o', and we need to detect this.
4214     if depmode=$depmode \
4215        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4216        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4217        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4218          >/dev/null 2>conftest.err &&
4219        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4220        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4221        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4222       # icc doesn't choke on unknown options, it will just issue warnings
4223       # or remarks (even with -Werror).  So we grep stderr for any message
4224       # that says an option was ignored or not supported.
4225       # When given -MP, icc 7.0 and 7.1 complain thusly:
4226       #   icc: Command line warning: ignoring option '-M'; no argument required
4227       # The diagnosis changed in icc 8.0:
4228       #   icc: Command line remark: option '-MP' not supported
4229       if (grep 'ignoring option' conftest.err ||
4230           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4231         am_cv_CC_dependencies_compiler_type=$depmode
4232         break
4233       fi
4234     fi
4235   done
4236
4237   cd ..
4238   rm -rf conftest.dir
4239 else
4240   am_cv_CC_dependencies_compiler_type=none
4241 fi
4242
4243 fi
4244 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4245 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4246 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4247
4248
4249
4250 if
4251   test "x$enable_dependency_tracking" != xno \
4252   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4253   am__fastdepCC_TRUE=
4254   am__fastdepCC_FALSE='#'
4255 else
4256   am__fastdepCC_TRUE='#'
4257   am__fastdepCC_FALSE=
4258 fi
4259
4260
4261
4262           ac_config_headers="$ac_config_headers config.h:config.hin"
4263
4264
4265 # Check whether --enable-static or --disable-static was given.
4266 if test "${enable_static+set}" = set; then
4267   enableval="$enable_static"
4268   p=${PACKAGE-default}
4269     case $enableval in
4270     yes) enable_static=yes ;;
4271     no) enable_static=no ;;
4272     *)
4273      enable_static=no
4274       # Look at the argument we got.  We use all the common list separators.
4275       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4276       for pkg in $enableval; do
4277         IFS="$lt_save_ifs"
4278         if test "X$pkg" = "X$p"; then
4279           enable_static=yes
4280         fi
4281       done
4282       IFS="$lt_save_ifs"
4283       ;;
4284     esac
4285 else
4286   enable_static=yes
4287 fi;
4288
4289 # Check whether --enable-shared or --disable-shared was given.
4290 if test "${enable_shared+set}" = set; then
4291   enableval="$enable_shared"
4292   p=${PACKAGE-default}
4293     case $enableval in
4294     yes) enable_shared=yes ;;
4295     no) enable_shared=no ;;
4296     *)
4297       enable_shared=no
4298       # Look at the argument we got.  We use all the common list separators.
4299       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4300       for pkg in $enableval; do
4301         IFS="$lt_save_ifs"
4302         if test "X$pkg" = "X$p"; then
4303           enable_shared=yes
4304         fi
4305       done
4306       IFS="$lt_save_ifs"
4307       ;;
4308     esac
4309 else
4310   enable_shared=no
4311 fi;
4312
4313
4314 # Check whether --enable-fast-install or --disable-fast-install was given.
4315 if test "${enable_fast_install+set}" = set; then
4316   enableval="$enable_fast_install"
4317   p=${PACKAGE-default}
4318     case $enableval in
4319     yes) enable_fast_install=yes ;;
4320     no) enable_fast_install=no ;;
4321     *)
4322       enable_fast_install=no
4323       # Look at the argument we got.  We use all the common list separators.
4324       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4325       for pkg in $enableval; do
4326         IFS="$lt_save_ifs"
4327         if test "X$pkg" = "X$p"; then
4328           enable_fast_install=yes
4329         fi
4330       done
4331       IFS="$lt_save_ifs"
4332       ;;
4333     esac
4334 else
4335   enable_fast_install=yes
4336 fi;
4337
4338 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4339 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4340 if test "${lt_cv_path_SED+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   # Loop through the user's path and test for sed and gsed.
4344 # Then use that list of sed's as ones to test for truncation.
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348   IFS=$as_save_IFS
4349   test -z "$as_dir" && as_dir=.
4350   for lt_ac_prog in sed gsed; do
4351     for ac_exec_ext in '' $ac_executable_extensions; do
4352       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4353         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4354       fi
4355     done
4356   done
4357 done
4358 lt_ac_max=0
4359 lt_ac_count=0
4360 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4361 # along with /bin/sed that truncates output.
4362 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4363   test ! -f $lt_ac_sed && continue
4364   cat /dev/null > conftest.in
4365   lt_ac_count=0
4366   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4367   # Check for GNU sed and select it if it is found.
4368   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4369     lt_cv_path_SED=$lt_ac_sed
4370     break
4371   fi
4372   while true; do
4373     cat conftest.in conftest.in >conftest.tmp
4374     mv conftest.tmp conftest.in
4375     cp conftest.in conftest.nl
4376     echo >>conftest.nl
4377     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4378     cmp -s conftest.out conftest.nl || break
4379     # 10000 chars as input seems more than enough
4380     test $lt_ac_count -gt 10 && break
4381     lt_ac_count=`expr $lt_ac_count + 1`
4382     if test $lt_ac_count -gt $lt_ac_max; then
4383       lt_ac_max=$lt_ac_count
4384       lt_cv_path_SED=$lt_ac_sed
4385     fi
4386   done
4387 done
4388
4389 fi
4390
4391 SED=$lt_cv_path_SED
4392 echo "$as_me:$LINENO: result: $SED" >&5
4393 echo "${ECHO_T}$SED" >&6
4394
4395 echo "$as_me:$LINENO: checking for egrep" >&5
4396 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4397 if test "${ac_cv_prog_egrep+set}" = set; then
4398   echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4401     then ac_cv_prog_egrep='grep -E'
4402     else ac_cv_prog_egrep='egrep'
4403     fi
4404 fi
4405 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4406 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4407  EGREP=$ac_cv_prog_egrep
4408
4409
4410
4411 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4412 if test "${with_gnu_ld+set}" = set; then
4413   withval="$with_gnu_ld"
4414   test "$withval" = no || with_gnu_ld=yes
4415 else
4416   with_gnu_ld=no
4417 fi;
4418 ac_prog=ld
4419 if test "$GCC" = yes; then
4420   # Check if gcc -print-prog-name=ld gives a path.
4421   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4422 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4423   case $host in
4424   *-*-mingw*)
4425     # gcc leaves a trailing carriage return which upsets mingw
4426     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4427   *)
4428     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4429   esac
4430   case $ac_prog in
4431     # Accept absolute paths.
4432     [\\/]* | ?:[\\/]*)
4433       re_direlt='/[^/][^/]*/\.\./'
4434       # Canonicalize the pathname of ld
4435       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4436       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4437         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4438       done
4439       test -z "$LD" && LD="$ac_prog"
4440       ;;
4441   "")
4442     # If it fails, then pretend we aren't using GCC.
4443     ac_prog=ld
4444     ;;
4445   *)
4446     # If it is relative, then search for the first ld in PATH.
4447     with_gnu_ld=unknown
4448     ;;
4449   esac
4450 elif test "$with_gnu_ld" = yes; then
4451   echo "$as_me:$LINENO: checking for GNU ld" >&5
4452 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4453 else
4454   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4455 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4456 fi
4457 if test "${lt_cv_path_LD+set}" = set; then
4458   echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460   if test -z "$LD"; then
4461   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4462   for ac_dir in $PATH; do
4463     IFS="$lt_save_ifs"
4464     test -z "$ac_dir" && ac_dir=.
4465     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4466       lt_cv_path_LD="$ac_dir/$ac_prog"
4467       # Check to see if the program is GNU ld.  I'd rather use --version,
4468       # but apparently some variants of GNU ld only accept -v.
4469       # Break only if it was the GNU/non-GNU ld that we prefer.
4470       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4471       *GNU* | *'with BFD'*)
4472         test "$with_gnu_ld" != no && break
4473         ;;
4474       *)
4475         test "$with_gnu_ld" != yes && break
4476         ;;
4477       esac
4478     fi
4479   done
4480   IFS="$lt_save_ifs"
4481 else
4482   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4483 fi
4484 fi
4485
4486 LD="$lt_cv_path_LD"
4487 if test -n "$LD"; then
4488   echo "$as_me:$LINENO: result: $LD" >&5
4489 echo "${ECHO_T}$LD" >&6
4490 else
4491   echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4493 fi
4494 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4495 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4496    { (exit 1); exit 1; }; }
4497 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4498 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4499 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4500   echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4503 case `$LD -v 2>&1 </dev/null` in
4504 *GNU* | *'with BFD'*)
4505   lt_cv_prog_gnu_ld=yes
4506   ;;
4507 *)
4508   lt_cv_prog_gnu_ld=no
4509   ;;
4510 esac
4511 fi
4512 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4513 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4514 with_gnu_ld=$lt_cv_prog_gnu_ld
4515
4516
4517 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4518 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4519 if test "${lt_cv_ld_reload_flag+set}" = set; then
4520   echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522   lt_cv_ld_reload_flag='-r'
4523 fi
4524 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4525 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4526 reload_flag=$lt_cv_ld_reload_flag
4527 case $reload_flag in
4528 "" | " "*) ;;
4529 *) reload_flag=" $reload_flag" ;;
4530 esac
4531 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4532 case $host_os in
4533   darwin*)
4534     if test "$GCC" = yes; then
4535       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4536     else
4537       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4538     fi
4539     ;;
4540 esac
4541
4542 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4543 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4544 if test "${lt_cv_path_NM+set}" = set; then
4545   echo $ECHO_N "(cached) $ECHO_C" >&6
4546 else
4547   if test -n "$NM"; then
4548   # Let the user override the test.
4549   lt_cv_path_NM="$NM"
4550 else
4551   lt_nm_to_check="${ac_tool_prefix}nm"
4552   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4553     lt_nm_to_check="$lt_nm_to_check nm"
4554   fi
4555   for lt_tmp_nm in $lt_nm_to_check; do
4556     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4557     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4558       IFS="$lt_save_ifs"
4559       test -z "$ac_dir" && ac_dir=.
4560       tmp_nm="$ac_dir/$lt_tmp_nm"
4561       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4562         # Check to see if the nm accepts a BSD-compat flag.
4563         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4564         #   nm: unknown option "B" ignored
4565         # Tru64's nm complains that /dev/null is an invalid object file
4566         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4567         */dev/null* | *'Invalid file or object type'*)
4568           lt_cv_path_NM="$tmp_nm -B"
4569           break
4570           ;;
4571         *)
4572           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4573           */dev/null*)
4574             lt_cv_path_NM="$tmp_nm -p"
4575             break
4576             ;;
4577           *)
4578             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4579             continue # so that we can try to find one that supports BSD flags
4580             ;;
4581           esac
4582           ;;
4583         esac
4584       fi
4585     done
4586     IFS="$lt_save_ifs"
4587   done
4588   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4589 fi
4590 fi
4591 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4592 echo "${ECHO_T}$lt_cv_path_NM" >&6
4593 NM="$lt_cv_path_NM"
4594
4595 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4596 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4597 LN_S=$as_ln_s
4598 if test "$LN_S" = "ln -s"; then
4599   echo "$as_me:$LINENO: result: yes" >&5
4600 echo "${ECHO_T}yes" >&6
4601 else
4602   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4603 echo "${ECHO_T}no, using $LN_S" >&6
4604 fi
4605
4606 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4607 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4608 if test "${lt_cv_deplibs_check_method+set}" = set; then
4609   echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611   lt_cv_file_magic_cmd='$MAGIC_CMD'
4612 lt_cv_file_magic_test_file=
4613 lt_cv_deplibs_check_method='unknown'
4614 # Need to set the preceding variable on all platforms that support
4615 # interlibrary dependencies.
4616 # 'none' -- dependencies not supported.
4617 # `unknown' -- same as none, but documents that we really don't know.
4618 # 'pass_all' -- all dependencies passed with no checks.
4619 # 'test_compile' -- check by making test program.
4620 # 'file_magic [[regex]]' -- check by looking for files in library path
4621 # which responds to the $file_magic_cmd with a given extended regex.
4622 # If you have `file' or equivalent on your system and you're not sure
4623 # whether `pass_all' will *always* work, you probably want this one.
4624
4625 case $host_os in
4626 aix4* | aix5*)
4627   lt_cv_deplibs_check_method=pass_all
4628   ;;
4629
4630 beos*)
4631   lt_cv_deplibs_check_method=pass_all
4632   ;;
4633
4634 bsdi[45]*)
4635   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4636   lt_cv_file_magic_cmd='/usr/bin/file -L'
4637   lt_cv_file_magic_test_file=/shlib/libc.so
4638   ;;
4639
4640 cygwin*)
4641   # func_win32_libid is a shell function defined in ltmain.sh
4642   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4643   lt_cv_file_magic_cmd='func_win32_libid'
4644   ;;
4645
4646 mingw* | pw32*)
4647   # Base MSYS/MinGW do not provide the 'file' command needed by
4648   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4649   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4650   lt_cv_file_magic_cmd='$OBJDUMP -f'
4651   ;;
4652
4653 darwin* | rhapsody*)
4654   lt_cv_deplibs_check_method=pass_all
4655   ;;
4656
4657 freebsd* | kfreebsd*-gnu | dragonfly*)
4658   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4659     case $host_cpu in
4660     i*86 )
4661       # Not sure whether the presence of OpenBSD here was a mistake.
4662       # Let's accept both of them until this is cleared up.
4663       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4664       lt_cv_file_magic_cmd=/usr/bin/file
4665       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4666       ;;
4667     esac
4668   else
4669     lt_cv_deplibs_check_method=pass_all
4670   fi
4671   ;;
4672
4673 gnu*)
4674   lt_cv_deplibs_check_method=pass_all
4675   ;;
4676
4677 hpux10.20* | hpux11*)
4678   lt_cv_file_magic_cmd=/usr/bin/file
4679   case $host_cpu in
4680   ia64*)
4681     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4682     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4683     ;;
4684   hppa*64*)
4685     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]'
4686     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4687     ;;
4688   *)
4689     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4690     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4691     ;;
4692   esac
4693   ;;
4694
4695 interix3*)
4696   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4697   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4698   ;;
4699
4700 irix5* | irix6* | nonstopux*)
4701   case $LD in
4702   *-32|*"-32 ") libmagic=32-bit;;
4703   *-n32|*"-n32 ") libmagic=N32;;
4704   *-64|*"-64 ") libmagic=64-bit;;
4705   *) libmagic=never-match;;
4706   esac
4707   lt_cv_deplibs_check_method=pass_all
4708   ;;
4709
4710 # This must be Linux ELF.
4711 linux*)
4712   lt_cv_deplibs_check_method=pass_all
4713   ;;
4714
4715 netbsd*)
4716   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4717     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4718   else
4719     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4720   fi
4721   ;;
4722
4723 newos6*)
4724   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4725   lt_cv_file_magic_cmd=/usr/bin/file
4726   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4727   ;;
4728
4729 nto-qnx*)
4730   lt_cv_deplibs_check_method=unknown
4731   ;;
4732
4733 openbsd*)
4734   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4735     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4736   else
4737     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4738   fi
4739   ;;
4740
4741 osf3* | osf4* | osf5*)
4742   lt_cv_deplibs_check_method=pass_all
4743   ;;
4744
4745 solaris*)
4746   lt_cv_deplibs_check_method=pass_all
4747   ;;
4748
4749 sysv4 | sysv4.3*)
4750   case $host_vendor in
4751   motorola)
4752     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]'
4753     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4754     ;;
4755   ncr)
4756     lt_cv_deplibs_check_method=pass_all
4757     ;;
4758   sequent)
4759     lt_cv_file_magic_cmd='/bin/file'
4760     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4761     ;;
4762   sni)
4763     lt_cv_file_magic_cmd='/bin/file'
4764     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4765     lt_cv_file_magic_test_file=/lib/libc.so
4766     ;;
4767   siemens)
4768     lt_cv_deplibs_check_method=pass_all
4769     ;;
4770   pc)
4771     lt_cv_deplibs_check_method=pass_all
4772     ;;
4773   esac
4774   ;;
4775
4776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4777   lt_cv_deplibs_check_method=pass_all
4778   ;;
4779 esac
4780
4781 fi
4782 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4783 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4784 file_magic_cmd=$lt_cv_file_magic_cmd
4785 deplibs_check_method=$lt_cv_deplibs_check_method
4786 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4787
4788
4789
4790
4791 # If no C compiler was specified, use CC.
4792 LTCC=${LTCC-"$CC"}
4793
4794 # If no C compiler flags were specified, use CFLAGS.
4795 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4796
4797 # Allow CC to be a program name with arguments.
4798 compiler=$CC
4799
4800 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4801 if test "${enable_libtool_lock+set}" = set; then
4802   enableval="$enable_libtool_lock"
4803
4804 fi;
4805 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4806
4807 # Some flags need to be propagated to the compiler or linker for good
4808 # libtool support.
4809 case $host in
4810 ia64-*-hpux*)
4811   # Find out which ABI we are using.
4812   echo 'int i;' > conftest.$ac_ext
4813   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814   (eval $ac_compile) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; then
4818     case `/usr/bin/file conftest.$ac_objext` in
4819     *ELF-32*)
4820       HPUX_IA64_MODE="32"
4821       ;;
4822     *ELF-64*)
4823       HPUX_IA64_MODE="64"
4824       ;;
4825     esac
4826   fi
4827   rm -rf conftest*
4828   ;;
4829 *-*-irix6*)
4830   # Find out which ABI we are using.
4831   echo '#line 4831 "configure"' > conftest.$ac_ext
4832   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833   (eval $ac_compile) 2>&5
4834   ac_status=$?
4835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); }; then
4837    if test "$lt_cv_prog_gnu_ld" = yes; then
4838     case `/usr/bin/file conftest.$ac_objext` in
4839     *32-bit*)
4840       LD="${LD-ld} -melf32bsmip"
4841       ;;
4842     *N32*)
4843       LD="${LD-ld} -melf32bmipn32"
4844       ;;
4845     *64-bit*)
4846       LD="${LD-ld} -melf64bmip"
4847       ;;
4848     esac
4849    else
4850     case `/usr/bin/file conftest.$ac_objext` in
4851     *32-bit*)
4852       LD="${LD-ld} -32"
4853       ;;
4854     *N32*)
4855       LD="${LD-ld} -n32"
4856       ;;
4857     *64-bit*)
4858       LD="${LD-ld} -64"
4859       ;;
4860     esac
4861    fi
4862   fi
4863   rm -rf conftest*
4864   ;;
4865
4866 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4867   # Find out which ABI we are using.
4868   echo 'int i;' > conftest.$ac_ext
4869   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4870   (eval $ac_compile) 2>&5
4871   ac_status=$?
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); }; then
4874     case `/usr/bin/file conftest.o` in
4875     *32-bit*)
4876       case $host in
4877         x86_64-*linux*)
4878           LD="${LD-ld} -m elf_i386"
4879           ;;
4880         ppc64-*linux*|powerpc64-*linux*)
4881           LD="${LD-ld} -m elf32ppclinux"
4882           ;;
4883         s390x-*linux*)
4884           LD="${LD-ld} -m elf_s390"
4885           ;;
4886         sparc64-*linux*)
4887           LD="${LD-ld} -m elf32_sparc"
4888           ;;
4889       esac
4890       ;;
4891     *64-bit*)
4892       case $host in
4893         x86_64-*linux*)
4894           LD="${LD-ld} -m elf_x86_64"
4895           ;;
4896         ppc*-*linux*|powerpc*-*linux*)
4897           LD="${LD-ld} -m elf64ppc"
4898           ;;
4899         s390*-*linux*)
4900           LD="${LD-ld} -m elf64_s390"
4901           ;;
4902         sparc*-*linux*)
4903           LD="${LD-ld} -m elf64_sparc"
4904           ;;
4905       esac
4906       ;;
4907     esac
4908   fi
4909   rm -rf conftest*
4910   ;;
4911
4912 *-*-sco3.2v5*)
4913   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4914   SAVE_CFLAGS="$CFLAGS"
4915   CFLAGS="$CFLAGS -belf"
4916   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4917 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4918 if test "${lt_cv_cc_needs_belf+set}" = set; then
4919   echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921   ac_ext=c
4922 ac_cpp='$CPP $CPPFLAGS'
4923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926
4927      cat >conftest.$ac_ext <<_ACEOF
4928 /* confdefs.h.  */
4929 _ACEOF
4930 cat confdefs.h >>conftest.$ac_ext
4931 cat >>conftest.$ac_ext <<_ACEOF
4932 /* end confdefs.h.  */
4933
4934 int
4935 main ()
4936 {
4937
4938   ;
4939   return 0;
4940 }
4941 _ACEOF
4942 rm -f conftest.$ac_objext conftest$ac_exeext
4943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4944   (eval $ac_link) 2>conftest.er1
4945   ac_status=$?
4946   grep -v '^ *+' conftest.er1 >conftest.err
4947   rm -f conftest.er1
4948   cat conftest.err >&5
4949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950   (exit $ac_status); } &&
4951          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953   (eval $ac_try) 2>&5
4954   ac_status=$?
4955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956   (exit $ac_status); }; } &&
4957          { ac_try='test -s conftest$ac_exeext'
4958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4959   (eval $ac_try) 2>&5
4960   ac_status=$?
4961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962   (exit $ac_status); }; }; then
4963   lt_cv_cc_needs_belf=yes
4964 else
4965   echo "$as_me: failed program was:" >&5
4966 sed 's/^/| /' conftest.$ac_ext >&5
4967
4968 lt_cv_cc_needs_belf=no
4969 fi
4970 rm -f conftest.err conftest.$ac_objext \
4971       conftest$ac_exeext conftest.$ac_ext
4972      ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977
4978 fi
4979 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4980 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4981   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4982     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4983     CFLAGS="$SAVE_CFLAGS"
4984   fi
4985   ;;
4986 sparc*-*solaris*)
4987   # Find out which ABI we are using.
4988   echo 'int i;' > conftest.$ac_ext
4989   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990   (eval $ac_compile) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); }; then
4994     case `/usr/bin/file conftest.o` in
4995     *64-bit*)
4996       case $lt_cv_prog_gnu_ld in
4997       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4998       *)    LD="${LD-ld} -64" ;;
4999       esac
5000       ;;
5001     esac
5002   fi
5003   rm -rf conftest*
5004   ;;
5005
5006
5007 esac
5008
5009 need_locks="$enable_libtool_lock"
5010
5011
5012
5013 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5014 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5015 if test "${ac_cv_header_stdc+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h.  */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h.  */
5024 #include <stdlib.h>
5025 #include <stdarg.h>
5026 #include <string.h>
5027 #include <float.h>
5028
5029 int
5030 main ()
5031 {
5032
5033   ;
5034   return 0;
5035 }
5036 _ACEOF
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039   (eval $ac_compile) 2>conftest.er1
5040   ac_status=$?
5041   grep -v '^ *+' conftest.er1 >conftest.err
5042   rm -f conftest.er1
5043   cat conftest.err >&5
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } &&
5046          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048   (eval $ac_try) 2>&5
5049   ac_status=$?
5050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051   (exit $ac_status); }; } &&
5052          { ac_try='test -s conftest.$ac_objext'
5053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5054   (eval $ac_try) 2>&5
5055   ac_status=$?
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); }; }; then
5058   ac_cv_header_stdc=yes
5059 else
5060   echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063 ac_cv_header_stdc=no
5064 fi
5065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5066
5067 if test $ac_cv_header_stdc = yes; then
5068   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5069   cat >conftest.$ac_ext <<_ACEOF
5070 /* confdefs.h.  */
5071 _ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h.  */
5075 #include <string.h>
5076
5077 _ACEOF
5078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5079   $EGREP "memchr" >/dev/null 2>&1; then
5080   :
5081 else
5082   ac_cv_header_stdc=no
5083 fi
5084 rm -f conftest*
5085
5086 fi
5087
5088 if test $ac_cv_header_stdc = yes; then
5089   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5090   cat >conftest.$ac_ext <<_ACEOF
5091 /* confdefs.h.  */
5092 _ACEOF
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h.  */
5096 #include <stdlib.h>
5097
5098 _ACEOF
5099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5100   $EGREP "free" >/dev/null 2>&1; then
5101   :
5102 else
5103   ac_cv_header_stdc=no
5104 fi
5105 rm -f conftest*
5106
5107 fi
5108
5109 if test $ac_cv_header_stdc = yes; then
5110   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5111   if test "$cross_compiling" = yes; then
5112   :
5113 else
5114   cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h.  */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h.  */
5120 #include <ctype.h>
5121 #if ((' ' & 0x0FF) == 0x020)
5122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5124 #else
5125 # define ISLOWER(c) \
5126                    (('a' <= (c) && (c) <= 'i') \
5127                      || ('j' <= (c) && (c) <= 'r') \
5128                      || ('s' <= (c) && (c) <= 'z'))
5129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5130 #endif
5131
5132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5133 int
5134 main ()
5135 {
5136   int i;
5137   for (i = 0; i < 256; i++)
5138     if (XOR (islower (i), ISLOWER (i))
5139         || toupper (i) != TOUPPER (i))
5140       exit(2);
5141   exit (0);
5142 }
5143 _ACEOF
5144 rm -f conftest$ac_exeext
5145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5146   (eval $ac_link) 2>&5
5147   ac_status=$?
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151   (eval $ac_try) 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }; }; then
5155   :
5156 else
5157   echo "$as_me: program exited with status $ac_status" >&5
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5160
5161 ( exit $ac_status )
5162 ac_cv_header_stdc=no
5163 fi
5164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5165 fi
5166 fi
5167 fi
5168 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5169 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5170 if test $ac_cv_header_stdc = yes; then
5171
5172 cat >>confdefs.h <<\_ACEOF
5173 #define STDC_HEADERS 1
5174 _ACEOF
5175
5176 fi
5177
5178 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5189                   inttypes.h stdint.h unistd.h
5190 do
5191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5192 echo "$as_me:$LINENO: checking for $ac_header" >&5
5193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5195   echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197   cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h.  */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h.  */
5203 $ac_includes_default
5204
5205 #include <$ac_header>
5206 _ACEOF
5207 rm -f conftest.$ac_objext
5208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5209   (eval $ac_compile) 2>conftest.er1
5210   ac_status=$?
5211   grep -v '^ *+' conftest.er1 >conftest.err
5212   rm -f conftest.er1
5213   cat conftest.err >&5
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); } &&
5216          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5218   (eval $ac_try) 2>&5
5219   ac_status=$?
5220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221   (exit $ac_status); }; } &&
5222          { ac_try='test -s conftest.$ac_objext'
5223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224   (eval $ac_try) 2>&5
5225   ac_status=$?
5226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227   (exit $ac_status); }; }; then
5228   eval "$as_ac_Header=yes"
5229 else
5230   echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5232
5233 eval "$as_ac_Header=no"
5234 fi
5235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5236 fi
5237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5240   cat >>confdefs.h <<_ACEOF
5241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5242 _ACEOF
5243
5244 fi
5245
5246 done
5247
5248
5249
5250 for ac_header in dlfcn.h
5251 do
5252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5254   echo "$as_me:$LINENO: checking for $ac_header" >&5
5255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
5258 fi
5259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5261 else
5262   # Is the header compilable?
5263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5265 cat >conftest.$ac_ext <<_ACEOF
5266 /* confdefs.h.  */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h.  */
5271 $ac_includes_default
5272 #include <$ac_header>
5273 _ACEOF
5274 rm -f conftest.$ac_objext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5276   (eval $ac_compile) 2>conftest.er1
5277   ac_status=$?
5278   grep -v '^ *+' conftest.er1 >conftest.err
5279   rm -f conftest.er1
5280   cat conftest.err >&5
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); } &&
5283          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285   (eval $ac_try) 2>&5
5286   ac_status=$?
5287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288   (exit $ac_status); }; } &&
5289          { ac_try='test -s conftest.$ac_objext'
5290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291   (eval $ac_try) 2>&5
5292   ac_status=$?
5293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294   (exit $ac_status); }; }; then
5295   ac_header_compiler=yes
5296 else
5297   echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5299
5300 ac_header_compiler=no
5301 fi
5302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5303 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5304 echo "${ECHO_T}$ac_header_compiler" >&6
5305
5306 # Is the header present?
5307 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5309 cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h.  */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h.  */
5315 #include <$ac_header>
5316 _ACEOF
5317 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5318   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5319   ac_status=$?
5320   grep -v '^ *+' conftest.er1 >conftest.err
5321   rm -f conftest.er1
5322   cat conftest.err >&5
5323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324   (exit $ac_status); } >/dev/null; then
5325   if test -s conftest.err; then
5326     ac_cpp_err=$ac_c_preproc_warn_flag
5327     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5328   else
5329     ac_cpp_err=
5330   fi
5331 else
5332   ac_cpp_err=yes
5333 fi
5334 if test -z "$ac_cpp_err"; then
5335   ac_header_preproc=yes
5336 else
5337   echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340   ac_header_preproc=no
5341 fi
5342 rm -f conftest.err conftest.$ac_ext
5343 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5344 echo "${ECHO_T}$ac_header_preproc" >&6
5345
5346 # So?  What about this header?
5347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5348   yes:no: )
5349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5353     ac_header_preproc=yes
5354     ;;
5355   no:yes:* )
5356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5368     (
5369       cat <<\_ASBOX
5370 ## ----------------------------------- ##
5371 ## Report this to markus@oberhumer.com ##
5372 ## ----------------------------------- ##
5373 _ASBOX
5374     ) |
5375       sed "s/^/$as_me: WARNING:     /" >&2
5376     ;;
5377 esac
5378 echo "$as_me:$LINENO: checking for $ac_header" >&5
5379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5381   echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383   eval "$as_ac_Header=\$ac_header_preproc"
5384 fi
5385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5387
5388 fi
5389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5390   cat >>confdefs.h <<_ACEOF
5391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5392 _ACEOF
5393
5394 fi
5395
5396 done
5397
5398 ac_ext=cc
5399 ac_cpp='$CXXCPP $CPPFLAGS'
5400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5403 if test -n "$ac_tool_prefix"; then
5404   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5405   do
5406     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5408 echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5410 if test "${ac_cv_prog_CXX+set}" = set; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413   if test -n "$CXX"; then
5414   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419   IFS=$as_save_IFS
5420   test -z "$as_dir" && as_dir=.
5421   for ac_exec_ext in '' $ac_executable_extensions; do
5422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5423     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425     break 2
5426   fi
5427 done
5428 done
5429
5430 fi
5431 fi
5432 CXX=$ac_cv_prog_CXX
5433 if test -n "$CXX"; then
5434   echo "$as_me:$LINENO: result: $CXX" >&5
5435 echo "${ECHO_T}$CXX" >&6
5436 else
5437   echo "$as_me:$LINENO: result: no" >&5
5438 echo "${ECHO_T}no" >&6
5439 fi
5440
5441     test -n "$CXX" && break
5442   done
5443 fi
5444 if test -z "$CXX"; then
5445   ac_ct_CXX=$CXX
5446   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5447 do
5448   # Extract the first word of "$ac_prog", so it can be a program name with args.
5449 set dummy $ac_prog; ac_word=$2
5450 echo "$as_me:$LINENO: checking for $ac_word" >&5
5451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5452 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5453   echo $ECHO_N "(cached) $ECHO_C" >&6
5454 else
5455   if test -n "$ac_ct_CXX"; then
5456   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5460 do
5461   IFS=$as_save_IFS
5462   test -z "$as_dir" && as_dir=.
5463   for ac_exec_ext in '' $ac_executable_extensions; do
5464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5465     ac_cv_prog_ac_ct_CXX="$ac_prog"
5466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5467     break 2
5468   fi
5469 done
5470 done
5471
5472 fi
5473 fi
5474 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5475 if test -n "$ac_ct_CXX"; then
5476   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5477 echo "${ECHO_T}$ac_ct_CXX" >&6
5478 else
5479   echo "$as_me:$LINENO: result: no" >&5
5480 echo "${ECHO_T}no" >&6
5481 fi
5482
5483   test -n "$ac_ct_CXX" && break
5484 done
5485 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5486
5487   CXX=$ac_ct_CXX
5488 fi
5489
5490
5491 # Provide some information about the compiler.
5492 echo "$as_me:$LINENO:" \
5493      "checking for C++ compiler version" >&5
5494 ac_compiler=`set X $ac_compile; echo $2`
5495 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5496   (eval $ac_compiler --version </dev/null >&5) 2>&5
5497   ac_status=$?
5498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499   (exit $ac_status); }
5500 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5501   (eval $ac_compiler -v </dev/null >&5) 2>&5
5502   ac_status=$?
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); }
5505 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5506   (eval $ac_compiler -V </dev/null >&5) 2>&5
5507   ac_status=$?
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); }
5510
5511 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5512 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5513 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5514   echo $ECHO_N "(cached) $ECHO_C" >&6
5515 else
5516   cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522
5523 int
5524 main ()
5525 {
5526 #ifndef __GNUC__
5527        choke me
5528 #endif
5529
5530   ;
5531   return 0;
5532 }
5533 _ACEOF
5534 rm -f conftest.$ac_objext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5536   (eval $ac_compile) 2>conftest.er1
5537   ac_status=$?
5538   grep -v '^ *+' conftest.er1 >conftest.err
5539   rm -f conftest.er1
5540   cat conftest.err >&5
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); } &&
5543          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545   (eval $ac_try) 2>&5
5546   ac_status=$?
5547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548   (exit $ac_status); }; } &&
5549          { ac_try='test -s conftest.$ac_objext'
5550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551   (eval $ac_try) 2>&5
5552   ac_status=$?
5553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554   (exit $ac_status); }; }; then
5555   ac_compiler_gnu=yes
5556 else
5557   echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560 ac_compiler_gnu=no
5561 fi
5562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5563 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5564
5565 fi
5566 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5567 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5568 GXX=`test $ac_compiler_gnu = yes && echo yes`
5569 ac_test_CXXFLAGS=${CXXFLAGS+set}
5570 ac_save_CXXFLAGS=$CXXFLAGS
5571 CXXFLAGS="-g"
5572 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5573 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5574 if test "${ac_cv_prog_cxx_g+set}" = set; then
5575   echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577   cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h.  */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h.  */
5583
5584 int
5585 main ()
5586 {
5587
5588   ;
5589   return 0;
5590 }
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594   (eval $ac_compile) 2>conftest.er1
5595   ac_status=$?
5596   grep -v '^ *+' conftest.er1 >conftest.err
5597   rm -f conftest.er1
5598   cat conftest.err >&5
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); } &&
5601          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603   (eval $ac_try) 2>&5
5604   ac_status=$?
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); }; } &&
5607          { ac_try='test -s conftest.$ac_objext'
5608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609   (eval $ac_try) 2>&5
5610   ac_status=$?
5611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612   (exit $ac_status); }; }; then
5613   ac_cv_prog_cxx_g=yes
5614 else
5615   echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5617
5618 ac_cv_prog_cxx_g=no
5619 fi
5620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5621 fi
5622 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5623 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5624 if test "$ac_test_CXXFLAGS" = set; then
5625   CXXFLAGS=$ac_save_CXXFLAGS
5626 elif test $ac_cv_prog_cxx_g = yes; then
5627   if test "$GXX" = yes; then
5628     CXXFLAGS="-g -O2"
5629   else
5630     CXXFLAGS="-g"
5631   fi
5632 else
5633   if test "$GXX" = yes; then
5634     CXXFLAGS="-O2"
5635   else
5636     CXXFLAGS=
5637   fi
5638 fi
5639 for ac_declaration in \
5640    '' \
5641    'extern "C" void std::exit (int) throw (); using std::exit;' \
5642    'extern "C" void std::exit (int); using std::exit;' \
5643    'extern "C" void exit (int) throw ();' \
5644    'extern "C" void exit (int);' \
5645    'void exit (int);'
5646 do
5647   cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h.  */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h.  */
5653 $ac_declaration
5654 #include <stdlib.h>
5655 int
5656 main ()
5657 {
5658 exit (42);
5659   ;
5660   return 0;
5661 }
5662 _ACEOF
5663 rm -f conftest.$ac_objext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5665   (eval $ac_compile) 2>conftest.er1
5666   ac_status=$?
5667   grep -v '^ *+' conftest.er1 >conftest.err
5668   rm -f conftest.er1
5669   cat conftest.err >&5
5670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671   (exit $ac_status); } &&
5672          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674   (eval $ac_try) 2>&5
5675   ac_status=$?
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); }; } &&
5678          { ac_try='test -s conftest.$ac_objext'
5679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680   (eval $ac_try) 2>&5
5681   ac_status=$?
5682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683   (exit $ac_status); }; }; then
5684   :
5685 else
5686   echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689 continue
5690 fi
5691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5692   cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h.  */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h.  */
5698 $ac_declaration
5699 int
5700 main ()
5701 {
5702 exit (42);
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 rm -f conftest.$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709   (eval $ac_compile) 2>conftest.er1
5710   ac_status=$?
5711   grep -v '^ *+' conftest.er1 >conftest.err
5712   rm -f conftest.er1
5713   cat conftest.err >&5
5714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715   (exit $ac_status); } &&
5716          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718   (eval $ac_try) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); }; } &&
5722          { ac_try='test -s conftest.$ac_objext'
5723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724   (eval $ac_try) 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); }; }; then
5728   break
5729 else
5730   echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5732
5733 fi
5734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5735 done
5736 rm -f conftest*
5737 if test -n "$ac_declaration"; then
5738   echo '#ifdef __cplusplus' >>confdefs.h
5739   echo $ac_declaration      >>confdefs.h
5740   echo '#endif'             >>confdefs.h
5741 fi
5742
5743 ac_ext=cc
5744 ac_cpp='$CXXCPP $CPPFLAGS'
5745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5748
5749 depcc="$CXX"  am_compiler_list=
5750
5751 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5752 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5753 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 else
5756   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5757   # We make a subdir and do the tests there.  Otherwise we can end up
5758   # making bogus files that we don't know about and never remove.  For
5759   # instance it was reported that on HP-UX the gcc test will end up
5760   # making a dummy file named `D' -- because `-MD' means `put the output
5761   # in D'.
5762   mkdir conftest.dir
5763   # Copy depcomp to subdir because otherwise we won't find it if we're
5764   # using a relative directory.
5765   cp "$am_depcomp" conftest.dir
5766   cd conftest.dir
5767   # We will build objects and dependencies in a subdirectory because
5768   # it helps to detect inapplicable dependency modes.  For instance
5769   # both Tru64's cc and ICC support -MD to output dependencies as a
5770   # side effect of compilation, but ICC will put the dependencies in
5771   # the current directory while Tru64 will put them in the object
5772   # directory.
5773   mkdir sub
5774
5775   am_cv_CXX_dependencies_compiler_type=none
5776   if test "$am_compiler_list" = ""; then
5777      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5778   fi
5779   for depmode in $am_compiler_list; do
5780     # Setup a source with many dependencies, because some compilers
5781     # like to wrap large dependency lists on column 80 (with \), and
5782     # we should not choose a depcomp mode which is confused by this.
5783     #
5784     # We need to recreate these files for each test, as the compiler may
5785     # overwrite some of them when testing with obscure command lines.
5786     # This happens at least with the AIX C compiler.
5787     : > sub/conftest.c
5788     for i in 1 2 3 4 5 6; do
5789       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5790       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5791       # Solaris 8's {/usr,}/bin/sh.
5792       touch sub/conftst$i.h
5793     done
5794     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5795
5796     case $depmode in
5797     nosideeffect)
5798       # after this tag, mechanisms are not by side-effect, so they'll
5799       # only be used when explicitly requested
5800       if test "x$enable_dependency_tracking" = xyes; then
5801         continue
5802       else
5803         break
5804       fi
5805       ;;
5806     none) break ;;
5807     esac
5808     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5809     # mode.  It turns out that the SunPro C++ compiler does not properly
5810     # handle `-M -o', and we need to detect this.
5811     if depmode=$depmode \
5812        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5813        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5814        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5815          >/dev/null 2>conftest.err &&
5816        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5817        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5818        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5819       # icc doesn't choke on unknown options, it will just issue warnings
5820       # or remarks (even with -Werror).  So we grep stderr for any message
5821       # that says an option was ignored or not supported.
5822       # When given -MP, icc 7.0 and 7.1 complain thusly:
5823       #   icc: Command line warning: ignoring option '-M'; no argument required
5824       # The diagnosis changed in icc 8.0:
5825       #   icc: Command line remark: option '-MP' not supported
5826       if (grep 'ignoring option' conftest.err ||
5827           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5828         am_cv_CXX_dependencies_compiler_type=$depmode
5829         break
5830       fi
5831     fi
5832   done
5833
5834   cd ..
5835   rm -rf conftest.dir
5836 else
5837   am_cv_CXX_dependencies_compiler_type=none
5838 fi
5839
5840 fi
5841 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5842 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5843 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5844
5845
5846
5847 if
5848   test "x$enable_dependency_tracking" != xno \
5849   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5850   am__fastdepCXX_TRUE=
5851   am__fastdepCXX_FALSE='#'
5852 else
5853   am__fastdepCXX_TRUE='#'
5854   am__fastdepCXX_FALSE=
5855 fi
5856
5857
5858
5859
5860 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5861     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5862     (test "X$CXX" != "Xg++"))) ; then
5863   ac_ext=cc
5864 ac_cpp='$CXXCPP $CPPFLAGS'
5865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5868 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5869 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5870 if test -z "$CXXCPP"; then
5871   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5872   echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874       # Double quotes because CXXCPP needs to be expanded
5875     for CXXCPP in "$CXX -E" "/lib/cpp"
5876     do
5877       ac_preproc_ok=false
5878 for ac_cxx_preproc_warn_flag in '' yes
5879 do
5880   # Use a header file that comes with gcc, so configuring glibc
5881   # with a fresh cross-compiler works.
5882   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5883   # <limits.h> exists even on freestanding compilers.
5884   # On the NeXT, cc -E runs the code through the compiler's parser,
5885   # not just through cpp. "Syntax error" is here to catch this case.
5886   cat >conftest.$ac_ext <<_ACEOF
5887 /* confdefs.h.  */
5888 _ACEOF
5889 cat confdefs.h >>conftest.$ac_ext
5890 cat >>conftest.$ac_ext <<_ACEOF
5891 /* end confdefs.h.  */
5892 #ifdef __STDC__
5893 # include <limits.h>
5894 #else
5895 # include <assert.h>
5896 #endif
5897                      Syntax error
5898 _ACEOF
5899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5901   ac_status=$?
5902   grep -v '^ *+' conftest.er1 >conftest.err
5903   rm -f conftest.er1
5904   cat conftest.err >&5
5905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); } >/dev/null; then
5907   if test -s conftest.err; then
5908     ac_cpp_err=$ac_cxx_preproc_warn_flag
5909     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5910   else
5911     ac_cpp_err=
5912   fi
5913 else
5914   ac_cpp_err=yes
5915 fi
5916 if test -z "$ac_cpp_err"; then
5917   :
5918 else
5919   echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5921
5922   # Broken: fails on valid input.
5923 continue
5924 fi
5925 rm -f conftest.err conftest.$ac_ext
5926
5927   # OK, works on sane cases.  Now check whether non-existent headers
5928   # can be detected and how.
5929   cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h.  */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h.  */
5935 #include <ac_nonexistent.h>
5936 _ACEOF
5937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5939   ac_status=$?
5940   grep -v '^ *+' conftest.er1 >conftest.err
5941   rm -f conftest.er1
5942   cat conftest.err >&5
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); } >/dev/null; then
5945   if test -s conftest.err; then
5946     ac_cpp_err=$ac_cxx_preproc_warn_flag
5947     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5948   else
5949     ac_cpp_err=
5950   fi
5951 else
5952   ac_cpp_err=yes
5953 fi
5954 if test -z "$ac_cpp_err"; then
5955   # Broken: success on invalid input.
5956 continue
5957 else
5958   echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961   # Passes both tests.
5962 ac_preproc_ok=:
5963 break
5964 fi
5965 rm -f conftest.err conftest.$ac_ext
5966
5967 done
5968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5969 rm -f conftest.err conftest.$ac_ext
5970 if $ac_preproc_ok; then
5971   break
5972 fi
5973
5974     done
5975     ac_cv_prog_CXXCPP=$CXXCPP
5976
5977 fi
5978   CXXCPP=$ac_cv_prog_CXXCPP
5979 else
5980   ac_cv_prog_CXXCPP=$CXXCPP
5981 fi
5982 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5983 echo "${ECHO_T}$CXXCPP" >&6
5984 ac_preproc_ok=false
5985 for ac_cxx_preproc_warn_flag in '' yes
5986 do
5987   # Use a header file that comes with gcc, so configuring glibc
5988   # with a fresh cross-compiler works.
5989   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5990   # <limits.h> exists even on freestanding compilers.
5991   # On the NeXT, cc -E runs the code through the compiler's parser,
5992   # not just through cpp. "Syntax error" is here to catch this case.
5993   cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h.  */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h.  */
5999 #ifdef __STDC__
6000 # include <limits.h>
6001 #else
6002 # include <assert.h>
6003 #endif
6004                      Syntax error
6005 _ACEOF
6006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6008   ac_status=$?
6009   grep -v '^ *+' conftest.er1 >conftest.err
6010   rm -f conftest.er1
6011   cat conftest.err >&5
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); } >/dev/null; then
6014   if test -s conftest.err; then
6015     ac_cpp_err=$ac_cxx_preproc_warn_flag
6016     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6017   else
6018     ac_cpp_err=
6019   fi
6020 else
6021   ac_cpp_err=yes
6022 fi
6023 if test -z "$ac_cpp_err"; then
6024   :
6025 else
6026   echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029   # Broken: fails on valid input.
6030 continue
6031 fi
6032 rm -f conftest.err conftest.$ac_ext
6033
6034   # OK, works on sane cases.  Now check whether non-existent headers
6035   # can be detected and how.
6036   cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h.  */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h.  */
6042 #include <ac_nonexistent.h>
6043 _ACEOF
6044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6046   ac_status=$?
6047   grep -v '^ *+' conftest.er1 >conftest.err
6048   rm -f conftest.er1
6049   cat conftest.err >&5
6050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051   (exit $ac_status); } >/dev/null; then
6052   if test -s conftest.err; then
6053     ac_cpp_err=$ac_cxx_preproc_warn_flag
6054     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6055   else
6056     ac_cpp_err=
6057   fi
6058 else
6059   ac_cpp_err=yes
6060 fi
6061 if test -z "$ac_cpp_err"; then
6062   # Broken: success on invalid input.
6063 continue
6064 else
6065   echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068   # Passes both tests.
6069 ac_preproc_ok=:
6070 break
6071 fi
6072 rm -f conftest.err conftest.$ac_ext
6073
6074 done
6075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6076 rm -f conftest.err conftest.$ac_ext
6077 if $ac_preproc_ok; then
6078   :
6079 else
6080   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6081 See \`config.log' for more details." >&5
6082 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6083 See \`config.log' for more details." >&2;}
6084    { (exit 1); exit 1; }; }
6085 fi
6086
6087 ac_ext=cc
6088 ac_cpp='$CXXCPP $CPPFLAGS'
6089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6092
6093 fi
6094
6095
6096 ac_ext=f
6097 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6098 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6100 if test -n "$ac_tool_prefix"; then
6101   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6102   do
6103     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6105 echo "$as_me:$LINENO: checking for $ac_word" >&5
6106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6107 if test "${ac_cv_prog_F77+set}" = set; then
6108   echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110   if test -n "$F77"; then
6111   ac_cv_prog_F77="$F77" # Let the user override the test.
6112 else
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114 for as_dir in $PATH
6115 do
6116   IFS=$as_save_IFS
6117   test -z "$as_dir" && as_dir=.
6118   for ac_exec_ext in '' $ac_executable_extensions; do
6119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6120     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122     break 2
6123   fi
6124 done
6125 done
6126
6127 fi
6128 fi
6129 F77=$ac_cv_prog_F77
6130 if test -n "$F77"; then
6131   echo "$as_me:$LINENO: result: $F77" >&5
6132 echo "${ECHO_T}$F77" >&6
6133 else
6134   echo "$as_me:$LINENO: result: no" >&5
6135 echo "${ECHO_T}no" >&6
6136 fi
6137
6138     test -n "$F77" && break
6139   done
6140 fi
6141 if test -z "$F77"; then
6142   ac_ct_F77=$F77
6143   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6144 do
6145   # Extract the first word of "$ac_prog", so it can be a program name with args.
6146 set dummy $ac_prog; ac_word=$2
6147 echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6149 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152   if test -n "$ac_ct_F77"; then
6153   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160   for ac_exec_ext in '' $ac_executable_extensions; do
6161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6162     ac_cv_prog_ac_ct_F77="$ac_prog"
6163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164     break 2
6165   fi
6166 done
6167 done
6168
6169 fi
6170 fi
6171 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6172 if test -n "$ac_ct_F77"; then
6173   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6174 echo "${ECHO_T}$ac_ct_F77" >&6
6175 else
6176   echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6
6178 fi
6179
6180   test -n "$ac_ct_F77" && break
6181 done
6182
6183   F77=$ac_ct_F77
6184 fi
6185
6186
6187 # Provide some information about the compiler.
6188 echo "$as_me:6188:" \
6189      "checking for Fortran 77 compiler version" >&5
6190 ac_compiler=`set X $ac_compile; echo $2`
6191 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6192   (eval $ac_compiler --version </dev/null >&5) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }
6196 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6197   (eval $ac_compiler -v </dev/null >&5) 2>&5
6198   ac_status=$?
6199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200   (exit $ac_status); }
6201 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6202   (eval $ac_compiler -V </dev/null >&5) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); }
6206 rm -f a.out
6207
6208 # If we don't use `.F' as extension, the preprocessor is not run on the
6209 # input file.  (Note that this only needs to work for GNU compilers.)
6210 ac_save_ext=$ac_ext
6211 ac_ext=F
6212 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6213 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6214 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   cat >conftest.$ac_ext <<_ACEOF
6218       program main
6219 #ifndef __GNUC__
6220        choke me
6221 #endif
6222
6223       end
6224 _ACEOF
6225 rm -f conftest.$ac_objext
6226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6227   (eval $ac_compile) 2>conftest.er1
6228   ac_status=$?
6229   grep -v '^ *+' conftest.er1 >conftest.err
6230   rm -f conftest.er1
6231   cat conftest.err >&5
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); } &&
6234          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236   (eval $ac_try) 2>&5
6237   ac_status=$?
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); }; } &&
6240          { ac_try='test -s conftest.$ac_objext'
6241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242   (eval $ac_try) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); }; }; then
6246   ac_compiler_gnu=yes
6247 else
6248   echo "$as_me: failed program was:" >&5
6249 sed 's/^/| /' conftest.$ac_ext >&5
6250
6251 ac_compiler_gnu=no
6252 fi
6253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6254 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6255
6256 fi
6257 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6258 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6259 ac_ext=$ac_save_ext
6260 ac_test_FFLAGS=${FFLAGS+set}
6261 ac_save_FFLAGS=$FFLAGS
6262 FFLAGS=
6263 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6264 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6265 if test "${ac_cv_prog_f77_g+set}" = set; then
6266   echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268   FFLAGS=-g
6269 cat >conftest.$ac_ext <<_ACEOF
6270       program main
6271
6272       end
6273 _ACEOF
6274 rm -f conftest.$ac_objext
6275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6276   (eval $ac_compile) 2>conftest.er1
6277   ac_status=$?
6278   grep -v '^ *+' conftest.er1 >conftest.err
6279   rm -f conftest.er1
6280   cat conftest.err >&5
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); } &&
6283          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
6284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285   (eval $ac_try) 2>&5
6286   ac_status=$?
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); }; } &&
6289          { ac_try='test -s conftest.$ac_objext'
6290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291   (eval $ac_try) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); }; }; then
6295   ac_cv_prog_f77_g=yes
6296 else
6297   echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 ac_cv_prog_f77_g=no
6301 fi
6302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6303
6304 fi
6305 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6306 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6307 if test "$ac_test_FFLAGS" = set; then
6308   FFLAGS=$ac_save_FFLAGS
6309 elif test $ac_cv_prog_f77_g = yes; then
6310   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6311     FFLAGS="-g -O2"
6312   else
6313     FFLAGS="-g"
6314   fi
6315 else
6316   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6317     FFLAGS="-O2"
6318   else
6319     FFLAGS=
6320   fi
6321 fi
6322
6323 G77=`test $ac_compiler_gnu = yes && echo yes`
6324 ac_ext=c
6325 ac_cpp='$CPP $CPPFLAGS'
6326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6329
6330
6331
6332 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6333
6334 # find the maximum length of command line arguments
6335 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6336 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6337 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6338   echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340     i=0
6341   teststring="ABCD"
6342
6343   case $build_os in
6344   msdosdjgpp*)
6345     # On DJGPP, this test can blow up pretty badly due to problems in libc
6346     # (any single argument exceeding 2000 bytes causes a buffer overrun
6347     # during glob expansion).  Even if it were fixed, the result of this
6348     # check would be larger than it should be.
6349     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6350     ;;
6351
6352   gnu*)
6353     # Under GNU Hurd, this test is not required because there is
6354     # no limit to the length of command line arguments.
6355     # Libtool will interpret -1 as no limit whatsoever
6356     lt_cv_sys_max_cmd_len=-1;
6357     ;;
6358
6359   cygwin* | mingw*)
6360     # On Win9x/ME, this test blows up -- it succeeds, but takes
6361     # about 5 minutes as the teststring grows exponentially.
6362     # Worse, since 9x/ME are not pre-emptively multitasking,
6363     # you end up with a "frozen" computer, even though with patience
6364     # the test eventually succeeds (with a max line length of 256k).
6365     # Instead, let's just punt: use the minimum linelength reported by
6366     # all of the supported platforms: 8192 (on NT/2K/XP).
6367     lt_cv_sys_max_cmd_len=8192;
6368     ;;
6369
6370   amigaos*)
6371     # On AmigaOS with pdksh, this test takes hours, literally.
6372     # So we just punt and use a minimum line length of 8192.
6373     lt_cv_sys_max_cmd_len=8192;
6374     ;;
6375
6376   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6377     # This has been around since 386BSD, at least.  Likely further.
6378     if test -x /sbin/sysctl; then
6379       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6380     elif test -x /usr/sbin/sysctl; then
6381       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6382     else
6383       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6384     fi
6385     # And add a safety zone
6386     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6387     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6388     ;;
6389
6390   interix*)
6391     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6392     lt_cv_sys_max_cmd_len=196608
6393     ;;
6394
6395   osf*)
6396     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6397     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6398     # nice to cause kernel panics so lets avoid the loop below.
6399     # First set a reasonable default.
6400     lt_cv_sys_max_cmd_len=16384
6401     #
6402     if test -x /sbin/sysconfig; then
6403       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6404         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6405       esac
6406     fi
6407     ;;
6408   sco3.2v5*)
6409     lt_cv_sys_max_cmd_len=102400
6410     ;;
6411   sysv5* | sco5v6* | sysv4.2uw2*)
6412     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6413     if test -n "$kargmax"; then
6414       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6415     else
6416       lt_cv_sys_max_cmd_len=32768
6417     fi
6418     ;;
6419   *)
6420     # If test is not a shell built-in, we'll probably end up computing a
6421     # maximum length that is only half of the actual maximum length, but
6422     # we can't tell.
6423     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6424     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6425                = "XX$teststring") >/dev/null 2>&1 &&
6426             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6427             lt_cv_sys_max_cmd_len=$new_result &&
6428             test $i != 17 # 1/2 MB should be enough
6429     do
6430       i=`expr $i + 1`
6431       teststring=$teststring$teststring
6432     done
6433     teststring=
6434     # Add a significant safety factor because C++ compilers can tack on massive
6435     # amounts of additional arguments before passing them to the linker.
6436     # It appears as though 1/2 is a usable value.
6437     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6438     ;;
6439   esac
6440
6441 fi
6442
6443 if test -n $lt_cv_sys_max_cmd_len ; then
6444   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6445 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6446 else
6447   echo "$as_me:$LINENO: result: none" >&5
6448 echo "${ECHO_T}none" >&6
6449 fi
6450
6451
6452
6453
6454 # Check for command to grab the raw symbol name followed by C symbol from nm.
6455 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6456 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6457 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460
6461 # These are sane defaults that work on at least a few old systems.
6462 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6463
6464 # Character class describing NM global symbol codes.
6465 symcode='[BCDEGRST]'
6466
6467 # Regexp to match symbols that can be accessed directly from C.
6468 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6469
6470 # Transform an extracted symbol line into a proper C declaration
6471 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6472
6473 # Transform an extracted symbol line into symbol name and symbol address
6474 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6475
6476 # Define system-specific variables.
6477 case $host_os in
6478 aix*)
6479   symcode='[BCDT]'
6480   ;;
6481 cygwin* | mingw* | pw32*)
6482   symcode='[ABCDGISTW]'
6483   ;;
6484 hpux*) # Its linker distinguishes data from code symbols
6485   if test "$host_cpu" = ia64; then
6486     symcode='[ABCDEGRST]'
6487   fi
6488   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6489   lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6490   ;;
6491 linux*)
6492   if test "$host_cpu" = ia64; then
6493     symcode='[ABCDGIRSTW]'
6494     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6495     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6496   fi
6497   ;;
6498 irix* | nonstopux*)
6499   symcode='[BCDEGRST]'
6500   ;;
6501 osf*)
6502   symcode='[BCDEGQRST]'
6503   ;;
6504 solaris*)
6505   symcode='[BDRT]'
6506   ;;
6507 sco3.2v5*)
6508   symcode='[DT]'
6509   ;;
6510 sysv4.2uw2*)
6511   symcode='[DT]'
6512   ;;
6513 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6514   symcode='[ABDT]'
6515   ;;
6516 sysv4)
6517   symcode='[DFNSTU]'
6518   ;;
6519 esac
6520
6521 # Handle CRLF in mingw tool chain
6522 opt_cr=
6523 case $build_os in
6524 mingw*)
6525   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6526   ;;
6527 esac
6528
6529 # If we're using GNU nm, then use its standard symbol codes.
6530 case `$NM -V 2>&1` in
6531 *GNU* | *'with BFD'*)
6532   symcode='[ABCDGIRSTW]' ;;
6533 esac
6534
6535 # Try without a prefix undercore, then with it.
6536 for ac_symprfx in "" "_"; do
6537
6538   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6539   symxfrm="\\1 $ac_symprfx\\2 \\2"
6540
6541   # Write the raw and C identifiers.
6542   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6543
6544   # Check to see that the pipe works correctly.
6545   pipe_works=no
6546
6547   rm -f conftest*
6548   cat > conftest.$ac_ext <<EOF
6549 #ifdef __cplusplus
6550 extern "C" {
6551 #endif
6552 char nm_test_var;
6553 void nm_test_func(){}
6554 #ifdef __cplusplus
6555 }
6556 #endif
6557 int main(){nm_test_var='a';nm_test_func();return(0);}
6558 EOF
6559
6560   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6561   (eval $ac_compile) 2>&5
6562   ac_status=$?
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); }; then
6565     # Now try to grab the symbols.
6566     nlist=conftest.nm
6567     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6568   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6569   ac_status=$?
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); } && test -s "$nlist"; then
6572       # Try sorting and uniquifying the output.
6573       if sort "$nlist" | uniq > "$nlist"T; then
6574         mv -f "$nlist"T "$nlist"
6575       else
6576         rm -f "$nlist"T
6577       fi
6578
6579       # Make sure that we snagged all the symbols we need.
6580       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6581         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6582           cat <<EOF > conftest.$ac_ext
6583 #ifdef __cplusplus
6584 extern "C" {
6585 #endif
6586
6587 EOF
6588           # Now generate the symbol file.
6589           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6590
6591           cat <<EOF >> conftest.$ac_ext
6592 #if defined (__STDC__) && __STDC__
6593 # define lt_ptr_t void *
6594 #else
6595 # define lt_ptr_t char *
6596 # define const
6597 #endif
6598
6599 /* The mapping between symbol names and symbols. */
6600 const struct {
6601   const char *name;
6602   lt_ptr_t address;
6603 }
6604 lt_preloaded_symbols[] =
6605 {
6606 EOF
6607           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6608           cat <<\EOF >> conftest.$ac_ext
6609   {0, (lt_ptr_t) 0}
6610 };
6611
6612 #ifdef __cplusplus
6613 }
6614 #endif
6615 EOF
6616           # Now try linking the two files.
6617           mv conftest.$ac_objext conftstm.$ac_objext
6618           lt_save_LIBS="$LIBS"
6619           lt_save_CFLAGS="$CFLAGS"
6620           LIBS="conftstm.$ac_objext"
6621           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6622           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6623   (eval $ac_link) 2>&5
6624   ac_status=$?
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6627             pipe_works=yes
6628           fi
6629           LIBS="$lt_save_LIBS"
6630           CFLAGS="$lt_save_CFLAGS"
6631         else
6632           echo "cannot find nm_test_func in $nlist" >&5
6633         fi
6634       else
6635         echo "cannot find nm_test_var in $nlist" >&5
6636       fi
6637     else
6638       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6639     fi
6640   else
6641     echo "$progname: failed program was:" >&5
6642     cat conftest.$ac_ext >&5
6643   fi
6644   rm -f conftest* conftst*
6645
6646   # Do not use the global_symbol_pipe unless it works.
6647   if test "$pipe_works" = yes; then
6648     break
6649   else
6650     lt_cv_sys_global_symbol_pipe=
6651   fi
6652 done
6653
6654 fi
6655
6656 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6657   lt_cv_sys_global_symbol_to_cdecl=
6658 fi
6659 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6660   echo "$as_me:$LINENO: result: failed" >&5
6661 echo "${ECHO_T}failed" >&6
6662 else
6663   echo "$as_me:$LINENO: result: ok" >&5
6664 echo "${ECHO_T}ok" >&6
6665 fi
6666
6667 echo "$as_me:$LINENO: checking for objdir" >&5
6668 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6669 if test "${lt_cv_objdir+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   rm -f .libs 2>/dev/null
6673 mkdir .libs 2>/dev/null
6674 if test -d .libs; then
6675   lt_cv_objdir=.libs
6676 else
6677   # MS-DOS does not allow filenames that begin with a dot.
6678   lt_cv_objdir=_libs
6679 fi
6680 rmdir .libs 2>/dev/null
6681 fi
6682 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6683 echo "${ECHO_T}$lt_cv_objdir" >&6
6684 objdir=$lt_cv_objdir
6685
6686
6687
6688
6689
6690 case $host_os in
6691 aix3*)
6692   # AIX sometimes has problems with the GCC collect2 program.  For some
6693   # reason, if we set the COLLECT_NAMES environment variable, the problems
6694   # vanish in a puff of smoke.
6695   if test "X${COLLECT_NAMES+set}" != Xset; then
6696     COLLECT_NAMES=
6697     export COLLECT_NAMES
6698   fi
6699   ;;
6700 esac
6701
6702 # Sed substitution that helps us do robust quoting.  It backslashifies
6703 # metacharacters that are still active within double-quoted strings.
6704 Xsed='sed -e 1s/^X//'
6705 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6706
6707 # Same as above, but do not quote variable references.
6708 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6709
6710 # Sed substitution to delay expansion of an escaped shell variable in a
6711 # double_quote_subst'ed string.
6712 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6713
6714 # Sed substitution to avoid accidental globbing in evaled expressions
6715 no_glob_subst='s/\*/\\\*/g'
6716
6717 # Constants:
6718 rm="rm -f"
6719
6720 # Global variables:
6721 default_ofile=libtool
6722 can_build_shared=yes
6723
6724 # All known linkers require a `.a' archive for static linking (except MSVC,
6725 # which needs '.lib').
6726 libext=a
6727 ltmain="$ac_aux_dir/ltmain.sh"
6728 ofile="$default_ofile"
6729 with_gnu_ld="$lt_cv_prog_gnu_ld"
6730
6731 if test -n "$ac_tool_prefix"; then
6732   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}ar; ac_word=$2
6734 echo "$as_me:$LINENO: checking for $ac_word" >&5
6735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6736 if test "${ac_cv_prog_AR+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   if test -n "$AR"; then
6740   ac_cv_prog_AR="$AR" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745   IFS=$as_save_IFS
6746   test -z "$as_dir" && as_dir=.
6747   for ac_exec_ext in '' $ac_executable_extensions; do
6748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749     ac_cv_prog_AR="${ac_tool_prefix}ar"
6750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754 done
6755
6756 fi
6757 fi
6758 AR=$ac_cv_prog_AR
6759 if test -n "$AR"; then
6760   echo "$as_me:$LINENO: result: $AR" >&5
6761 echo "${ECHO_T}$AR" >&6
6762 else
6763   echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6
6765 fi
6766
6767 fi
6768 if test -z "$ac_cv_prog_AR"; then
6769   ac_ct_AR=$AR
6770   # Extract the first word of "ar", so it can be a program name with args.
6771 set dummy ar; ac_word=$2
6772 echo "$as_me:$LINENO: checking for $ac_word" >&5
6773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6774 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6775   echo $ECHO_N "(cached) $ECHO_C" >&6
6776 else
6777   if test -n "$ac_ct_AR"; then
6778   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785   for ac_exec_ext in '' $ac_executable_extensions; do
6786   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6787     ac_cv_prog_ac_ct_AR="ar"
6788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792 done
6793
6794   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6795 fi
6796 fi
6797 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6798 if test -n "$ac_ct_AR"; then
6799   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6800 echo "${ECHO_T}$ac_ct_AR" >&6
6801 else
6802   echo "$as_me:$LINENO: result: no" >&5
6803 echo "${ECHO_T}no" >&6
6804 fi
6805
6806   AR=$ac_ct_AR
6807 else
6808   AR="$ac_cv_prog_AR"
6809 fi
6810
6811 if test -n "$ac_tool_prefix"; then
6812   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6814 echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6816 if test "${ac_cv_prog_RANLIB+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   if test -n "$RANLIB"; then
6820   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827   for ac_exec_ext in '' $ac_executable_extensions; do
6828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834 done
6835
6836 fi
6837 fi
6838 RANLIB=$ac_cv_prog_RANLIB
6839 if test -n "$RANLIB"; then
6840   echo "$as_me:$LINENO: result: $RANLIB" >&5
6841 echo "${ECHO_T}$RANLIB" >&6
6842 else
6843   echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6
6845 fi
6846
6847 fi
6848 if test -z "$ac_cv_prog_RANLIB"; then
6849   ac_ct_RANLIB=$RANLIB
6850   # Extract the first word of "ranlib", so it can be a program name with args.
6851 set dummy ranlib; ac_word=$2
6852 echo "$as_me:$LINENO: checking for $ac_word" >&5
6853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6854 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6855   echo $ECHO_N "(cached) $ECHO_C" >&6
6856 else
6857   if test -n "$ac_ct_RANLIB"; then
6858   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6859 else
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6861 for as_dir in $PATH
6862 do
6863   IFS=$as_save_IFS
6864   test -z "$as_dir" && as_dir=.
6865   for ac_exec_ext in '' $ac_executable_extensions; do
6866   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867     ac_cv_prog_ac_ct_RANLIB="ranlib"
6868     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869     break 2
6870   fi
6871 done
6872 done
6873
6874   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6875 fi
6876 fi
6877 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6878 if test -n "$ac_ct_RANLIB"; then
6879   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6880 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6881 else
6882   echo "$as_me:$LINENO: result: no" >&5
6883 echo "${ECHO_T}no" >&6
6884 fi
6885
6886   RANLIB=$ac_ct_RANLIB
6887 else
6888   RANLIB="$ac_cv_prog_RANLIB"
6889 fi
6890
6891 if test -n "$ac_tool_prefix"; then
6892   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6893 set dummy ${ac_tool_prefix}strip; ac_word=$2
6894 echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6896 if test "${ac_cv_prog_STRIP+set}" = set; then
6897   echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899   if test -n "$STRIP"; then
6900   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6904 do
6905   IFS=$as_save_IFS
6906   test -z "$as_dir" && as_dir=.
6907   for ac_exec_ext in '' $ac_executable_extensions; do
6908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911     break 2
6912   fi
6913 done
6914 done
6915
6916 fi
6917 fi
6918 STRIP=$ac_cv_prog_STRIP
6919 if test -n "$STRIP"; then
6920   echo "$as_me:$LINENO: result: $STRIP" >&5
6921 echo "${ECHO_T}$STRIP" >&6
6922 else
6923   echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6
6925 fi
6926
6927 fi
6928 if test -z "$ac_cv_prog_STRIP"; then
6929   ac_ct_STRIP=$STRIP
6930   # Extract the first word of "strip", so it can be a program name with args.
6931 set dummy strip; ac_word=$2
6932 echo "$as_me:$LINENO: checking for $ac_word" >&5
6933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6934 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6935   echo $ECHO_N "(cached) $ECHO_C" >&6
6936 else
6937   if test -n "$ac_ct_STRIP"; then
6938   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6942 do
6943   IFS=$as_save_IFS
6944   test -z "$as_dir" && as_dir=.
6945   for ac_exec_ext in '' $ac_executable_extensions; do
6946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6947     ac_cv_prog_ac_ct_STRIP="strip"
6948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949     break 2
6950   fi
6951 done
6952 done
6953
6954   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6955 fi
6956 fi
6957 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6958 if test -n "$ac_ct_STRIP"; then
6959   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6960 echo "${ECHO_T}$ac_ct_STRIP" >&6
6961 else
6962   echo "$as_me:$LINENO: result: no" >&5
6963 echo "${ECHO_T}no" >&6
6964 fi
6965
6966   STRIP=$ac_ct_STRIP
6967 else
6968   STRIP="$ac_cv_prog_STRIP"
6969 fi
6970
6971
6972 old_CC="$CC"
6973 old_CFLAGS="$CFLAGS"
6974
6975 # Set sane defaults for various variables
6976 test -z "$AR" && AR=ar
6977 test -z "$AR_FLAGS" && AR_FLAGS=cru
6978 test -z "$AS" && AS=as
6979 test -z "$CC" && CC=cc
6980 test -z "$LTCC" && LTCC=$CC
6981 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6982 test -z "$DLLTOOL" && DLLTOOL=dlltool
6983 test -z "$LD" && LD=ld
6984 test -z "$LN_S" && LN_S="ln -s"
6985 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6986 test -z "$NM" && NM=nm
6987 test -z "$SED" && SED=sed
6988 test -z "$OBJDUMP" && OBJDUMP=objdump
6989 test -z "$RANLIB" && RANLIB=:
6990 test -z "$STRIP" && STRIP=:
6991 test -z "$ac_objext" && ac_objext=o
6992
6993 # Determine commands to create old-style static archives.
6994 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6995 old_postinstall_cmds='chmod 644 $oldlib'
6996 old_postuninstall_cmds=
6997
6998 if test -n "$RANLIB"; then
6999   case $host_os in
7000   openbsd*)
7001     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7002     ;;
7003   *)
7004     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7005     ;;
7006   esac
7007   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7008 fi
7009
7010 for cc_temp in $compiler""; do
7011   case $cc_temp in
7012     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7013     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7014     \-*) ;;
7015     *) break;;
7016   esac
7017 done
7018 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7019
7020
7021 # Only perform the check for file, if the check method requires it
7022 case $deplibs_check_method in
7023 file_magic*)
7024   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7025     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7026 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7027 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7028   echo $ECHO_N "(cached) $ECHO_C" >&6
7029 else
7030   case $MAGIC_CMD in
7031 [\\/*] |  ?:[\\/]*)
7032   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7033   ;;
7034 *)
7035   lt_save_MAGIC_CMD="$MAGIC_CMD"
7036   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7037   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7038   for ac_dir in $ac_dummy; do
7039     IFS="$lt_save_ifs"
7040     test -z "$ac_dir" && ac_dir=.
7041     if test -f $ac_dir/${ac_tool_prefix}file; then
7042       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7043       if test -n "$file_magic_test_file"; then
7044         case $deplibs_check_method in
7045         "file_magic "*)
7046           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7047           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7048           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7049             $EGREP "$file_magic_regex" > /dev/null; then
7050             :
7051           else
7052             cat <<EOF 1>&2
7053
7054 *** Warning: the command libtool uses to detect shared libraries,
7055 *** $file_magic_cmd, produces output that libtool cannot recognize.
7056 *** The result is that libtool may fail to recognize shared libraries
7057 *** as such.  This will affect the creation of libtool libraries that
7058 *** depend on shared libraries, but programs linked with such libtool
7059 *** libraries will work regardless of this problem.  Nevertheless, you
7060 *** may want to report the problem to your system manager and/or to
7061 *** bug-libtool@gnu.org
7062
7063 EOF
7064           fi ;;
7065         esac
7066       fi
7067       break
7068     fi
7069   done
7070   IFS="$lt_save_ifs"
7071   MAGIC_CMD="$lt_save_MAGIC_CMD"
7072   ;;
7073 esac
7074 fi
7075
7076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7077 if test -n "$MAGIC_CMD"; then
7078   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7079 echo "${ECHO_T}$MAGIC_CMD" >&6
7080 else
7081   echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6
7083 fi
7084
7085 if test -z "$lt_cv_path_MAGIC_CMD"; then
7086   if test -n "$ac_tool_prefix"; then
7087     echo "$as_me:$LINENO: checking for file" >&5
7088 echo $ECHO_N "checking for file... $ECHO_C" >&6
7089 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   case $MAGIC_CMD in
7093 [\\/*] |  ?:[\\/]*)
7094   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7095   ;;
7096 *)
7097   lt_save_MAGIC_CMD="$MAGIC_CMD"
7098   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7099   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7100   for ac_dir in $ac_dummy; do
7101     IFS="$lt_save_ifs"
7102     test -z "$ac_dir" && ac_dir=.
7103     if test -f $ac_dir/file; then
7104       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7105       if test -n "$file_magic_test_file"; then
7106         case $deplibs_check_method in
7107         "file_magic "*)
7108           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7109           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7110           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7111             $EGREP "$file_magic_regex" > /dev/null; then
7112             :
7113           else
7114             cat <<EOF 1>&2
7115
7116 *** Warning: the command libtool uses to detect shared libraries,
7117 *** $file_magic_cmd, produces output that libtool cannot recognize.
7118 *** The result is that libtool may fail to recognize shared libraries
7119 *** as such.  This will affect the creation of libtool libraries that
7120 *** depend on shared libraries, but programs linked with such libtool
7121 *** libraries will work regardless of this problem.  Nevertheless, you
7122 *** may want to report the problem to your system manager and/or to
7123 *** bug-libtool@gnu.org
7124
7125 EOF
7126           fi ;;
7127         esac
7128       fi
7129       break
7130     fi
7131   done
7132   IFS="$lt_save_ifs"
7133   MAGIC_CMD="$lt_save_MAGIC_CMD"
7134   ;;
7135 esac
7136 fi
7137
7138 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7139 if test -n "$MAGIC_CMD"; then
7140   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7141 echo "${ECHO_T}$MAGIC_CMD" >&6
7142 else
7143   echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6
7145 fi
7146
7147   else
7148     MAGIC_CMD=:
7149   fi
7150 fi
7151
7152   fi
7153   ;;
7154 esac
7155
7156 enable_dlopen=no
7157 enable_win32_dll=no
7158
7159 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7160 if test "${enable_libtool_lock+set}" = set; then
7161   enableval="$enable_libtool_lock"
7162
7163 fi;
7164 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7165
7166
7167 # Check whether --with-pic or --without-pic was given.
7168 if test "${with_pic+set}" = set; then
7169   withval="$with_pic"
7170   pic_mode="$withval"
7171 else
7172   pic_mode=default
7173 fi;
7174 test -z "$pic_mode" && pic_mode=default
7175
7176 # Use C for the default configuration in the libtool script
7177 tagname=
7178 lt_save_CC="$CC"
7179 ac_ext=c
7180 ac_cpp='$CPP $CPPFLAGS'
7181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7184
7185
7186 # Source file extension for C test sources.
7187 ac_ext=c
7188
7189 # Object file extension for compiled C test sources.
7190 objext=o
7191 objext=$objext
7192
7193 # Code to be used in simple compile tests
7194 lt_simple_compile_test_code="int some_variable = 0;\n"
7195
7196 # Code to be used in simple link tests
7197 lt_simple_link_test_code='int main(){return(0);}\n'
7198
7199
7200 # If no C compiler was specified, use CC.
7201 LTCC=${LTCC-"$CC"}
7202
7203 # If no C compiler flags were specified, use CFLAGS.
7204 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7205
7206 # Allow CC to be a program name with arguments.
7207 compiler=$CC
7208
7209
7210 # save warnings/boilerplate of simple test code
7211 ac_outfile=conftest.$ac_objext
7212 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7213 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7214 _lt_compiler_boilerplate=`cat conftest.err`
7215 $rm conftest*
7216
7217 ac_outfile=conftest.$ac_objext
7218 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7219 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7220 _lt_linker_boilerplate=`cat conftest.err`
7221 $rm conftest*
7222
7223
7224
7225 lt_prog_compiler_no_builtin_flag=
7226
7227 if test "$GCC" = yes; then
7228   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7229
7230
7231 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7232 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7233 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   lt_cv_prog_compiler_rtti_exceptions=no
7237   ac_outfile=conftest.$ac_objext
7238    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7239    lt_compiler_flag="-fno-rtti -fno-exceptions"
7240    # Insert the option either (1) after the last *FLAGS variable, or
7241    # (2) before a word containing "conftest.", or (3) at the end.
7242    # Note that $ac_compile itself does not contain backslashes and begins
7243    # with a dollar sign (not a hyphen), so the echo should work correctly.
7244    # The option is referenced via a variable to avoid confusing sed.
7245    lt_compile=`echo "$ac_compile" | $SED \
7246    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7247    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7248    -e 's:$: $lt_compiler_flag:'`
7249    (eval echo "\"\$as_me:7249: $lt_compile\"" >&5)
7250    (eval "$lt_compile" 2>conftest.err)
7251    ac_status=$?
7252    cat conftest.err >&5
7253    echo "$as_me:7253: \$? = $ac_status" >&5
7254    if (exit $ac_status) && test -s "$ac_outfile"; then
7255      # The compiler can only warn and ignore the option if not recognized
7256      # So say no if there are warnings other than the usual output.
7257      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7258      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7259      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7260        lt_cv_prog_compiler_rtti_exceptions=yes
7261      fi
7262    fi
7263    $rm conftest*
7264
7265 fi
7266 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7267 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7268
7269 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7270     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7271 else
7272     :
7273 fi
7274
7275 fi
7276
7277 lt_prog_compiler_wl=
7278 lt_prog_compiler_pic=
7279 lt_prog_compiler_static=
7280
7281 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7282 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7283
7284   if test "$GCC" = yes; then
7285     lt_prog_compiler_wl='-Wl,'
7286     lt_prog_compiler_static='-static'
7287
7288     case $host_os in
7289       aix*)
7290       # All AIX code is PIC.
7291       if test "$host_cpu" = ia64; then
7292         # AIX 5 now supports IA64 processor
7293         lt_prog_compiler_static='-Bstatic'
7294       fi
7295       ;;
7296
7297     amigaos*)
7298       # FIXME: we need at least 68020 code to build shared libraries, but
7299       # adding the `-m68020' flag to GCC prevents building anything better,
7300       # like `-m68040'.
7301       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7302       ;;
7303
7304     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7305       # PIC is the default for these OSes.
7306       ;;
7307
7308     mingw* | pw32* | os2*)
7309       # This hack is so that the source file can tell whether it is being
7310       # built for inclusion in a dll (and should export symbols for example).
7311       lt_prog_compiler_pic='-DDLL_EXPORT'
7312       ;;
7313
7314     darwin* | rhapsody*)
7315       # PIC is the default on this platform
7316       # Common symbols not allowed in MH_DYLIB files
7317       lt_prog_compiler_pic='-fno-common'
7318       ;;
7319
7320     interix3*)
7321       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7322       # Instead, we relocate shared libraries at runtime.
7323       ;;
7324
7325     msdosdjgpp*)
7326       # Just because we use GCC doesn't mean we suddenly get shared libraries
7327       # on systems that don't support them.
7328       lt_prog_compiler_can_build_shared=no
7329       enable_shared=no
7330       ;;
7331
7332     sysv4*MP*)
7333       if test -d /usr/nec; then
7334         lt_prog_compiler_pic=-Kconform_pic
7335       fi
7336       ;;
7337
7338     hpux*)
7339       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7340       # not for PA HP-UX.
7341       case $host_cpu in
7342       hppa*64*|ia64*)
7343         # +Z the default
7344         ;;
7345       *)
7346         lt_prog_compiler_pic='-fPIC'
7347         ;;
7348       esac
7349       ;;
7350
7351     *)
7352       lt_prog_compiler_pic='-fPIC'
7353       ;;
7354     esac
7355   else
7356     # PORTME Check for flag to pass linker flags through the system compiler.
7357     case $host_os in
7358     aix*)
7359       lt_prog_compiler_wl='-Wl,'
7360       if test "$host_cpu" = ia64; then
7361         # AIX 5 now supports IA64 processor
7362         lt_prog_compiler_static='-Bstatic'
7363       else
7364         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7365       fi
7366       ;;
7367       darwin*)
7368         # PIC is the default on this platform
7369         # Common symbols not allowed in MH_DYLIB files
7370        case $cc_basename in
7371          xlc*)
7372          lt_prog_compiler_pic='-qnocommon'
7373          lt_prog_compiler_wl='-Wl,'
7374          ;;
7375        esac
7376        ;;
7377
7378     mingw* | pw32* | os2*)
7379       # This hack is so that the source file can tell whether it is being
7380       # built for inclusion in a dll (and should export symbols for example).
7381       lt_prog_compiler_pic='-DDLL_EXPORT'
7382       ;;
7383
7384     hpux9* | hpux10* | hpux11*)
7385       lt_prog_compiler_wl='-Wl,'
7386       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7387       # not for PA HP-UX.
7388       case $host_cpu in
7389       hppa*64*|ia64*)
7390         # +Z the default
7391         ;;
7392       *)
7393         lt_prog_compiler_pic='+Z'
7394         ;;
7395       esac
7396       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7397       lt_prog_compiler_static='${wl}-a ${wl}archive'
7398       ;;
7399
7400     irix5* | irix6* | nonstopux*)
7401       lt_prog_compiler_wl='-Wl,'
7402       # PIC (with -KPIC) is the default.
7403       lt_prog_compiler_static='-non_shared'
7404       ;;
7405
7406     newsos6)
7407       lt_prog_compiler_pic='-KPIC'
7408       lt_prog_compiler_static='-Bstatic'
7409       ;;
7410
7411     linux*)
7412       case $cc_basename in
7413       icc* | ecc*)
7414         lt_prog_compiler_wl='-Wl,'
7415         lt_prog_compiler_pic='-KPIC'
7416         lt_prog_compiler_static='-static'
7417         ;;
7418       pgcc* | pgf77* | pgf90* | pgf95*)
7419         # Portland Group compilers (*not* the Pentium gcc compiler,
7420         # which looks to be a dead project)
7421         lt_prog_compiler_wl='-Wl,'
7422         lt_prog_compiler_pic='-fpic'
7423         lt_prog_compiler_static='-Bstatic'
7424         ;;
7425       ccc*)
7426         lt_prog_compiler_wl='-Wl,'
7427         # All Alpha code is PIC.
7428         lt_prog_compiler_static='-non_shared'
7429         ;;
7430       esac
7431       ;;
7432
7433     osf3* | osf4* | osf5*)
7434       lt_prog_compiler_wl='-Wl,'
7435       # All OSF/1 code is PIC.
7436       lt_prog_compiler_static='-non_shared'
7437       ;;
7438
7439     solaris*)
7440       lt_prog_compiler_pic='-KPIC'
7441       lt_prog_compiler_static='-Bstatic'
7442       case $cc_basename in
7443       f77* | f90* | f95*)
7444         lt_prog_compiler_wl='-Qoption ld ';;
7445       *)
7446         lt_prog_compiler_wl='-Wl,';;
7447       esac
7448       ;;
7449
7450     sunos4*)
7451       lt_prog_compiler_wl='-Qoption ld '
7452       lt_prog_compiler_pic='-PIC'
7453       lt_prog_compiler_static='-Bstatic'
7454       ;;
7455
7456     sysv4 | sysv4.2uw2* | sysv4.3*)
7457       lt_prog_compiler_wl='-Wl,'
7458       lt_prog_compiler_pic='-KPIC'
7459       lt_prog_compiler_static='-Bstatic'
7460       ;;
7461
7462     sysv4*MP*)
7463       if test -d /usr/nec ;then
7464         lt_prog_compiler_pic='-Kconform_pic'
7465         lt_prog_compiler_static='-Bstatic'
7466       fi
7467       ;;
7468
7469     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7470       lt_prog_compiler_wl='-Wl,'
7471       lt_prog_compiler_pic='-KPIC'
7472       lt_prog_compiler_static='-Bstatic'
7473       ;;
7474
7475     unicos*)
7476       lt_prog_compiler_wl='-Wl,'
7477       lt_prog_compiler_can_build_shared=no
7478       ;;
7479
7480     uts4*)
7481       lt_prog_compiler_pic='-pic'
7482       lt_prog_compiler_static='-Bstatic'
7483       ;;
7484
7485     *)
7486       lt_prog_compiler_can_build_shared=no
7487       ;;
7488     esac
7489   fi
7490
7491 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7492 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7493
7494 #
7495 # Check to make sure the PIC flag actually works.
7496 #
7497 if test -n "$lt_prog_compiler_pic"; then
7498
7499 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7500 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7501 if test "${lt_prog_compiler_pic_works+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   lt_prog_compiler_pic_works=no
7505   ac_outfile=conftest.$ac_objext
7506    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7507    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7508    # Insert the option either (1) after the last *FLAGS variable, or
7509    # (2) before a word containing "conftest.", or (3) at the end.
7510    # Note that $ac_compile itself does not contain backslashes and begins
7511    # with a dollar sign (not a hyphen), so the echo should work correctly.
7512    # The option is referenced via a variable to avoid confusing sed.
7513    lt_compile=`echo "$ac_compile" | $SED \
7514    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7515    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7516    -e 's:$: $lt_compiler_flag:'`
7517    (eval echo "\"\$as_me:7517: $lt_compile\"" >&5)
7518    (eval "$lt_compile" 2>conftest.err)
7519    ac_status=$?
7520    cat conftest.err >&5
7521    echo "$as_me:7521: \$? = $ac_status" >&5
7522    if (exit $ac_status) && test -s "$ac_outfile"; then
7523      # The compiler can only warn and ignore the option if not recognized
7524      # So say no if there are warnings other than the usual output.
7525      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7526      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7527      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7528        lt_prog_compiler_pic_works=yes
7529      fi
7530    fi
7531    $rm conftest*
7532
7533 fi
7534 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7535 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7536
7537 if test x"$lt_prog_compiler_pic_works" = xyes; then
7538     case $lt_prog_compiler_pic in
7539      "" | " "*) ;;
7540      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7541      esac
7542 else
7543     lt_prog_compiler_pic=
7544      lt_prog_compiler_can_build_shared=no
7545 fi
7546
7547 fi
7548 case $host_os in
7549   # For platforms which do not support PIC, -DPIC is meaningless:
7550   *djgpp*)
7551     lt_prog_compiler_pic=
7552     ;;
7553   *)
7554     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7555     ;;
7556 esac
7557
7558 #
7559 # Check to make sure the static flag actually works.
7560 #
7561 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7562 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7563 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7564 if test "${lt_prog_compiler_static_works+set}" = set; then
7565   echo $ECHO_N "(cached) $ECHO_C" >&6
7566 else
7567   lt_prog_compiler_static_works=no
7568    save_LDFLAGS="$LDFLAGS"
7569    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7570    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7571    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7572      # The linker can only warn and ignore the option if not recognized
7573      # So say no if there are warnings
7574      if test -s conftest.err; then
7575        # Append any errors to the config.log.
7576        cat conftest.err 1>&5
7577        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7578        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7579        if diff conftest.exp conftest.er2 >/dev/null; then
7580          lt_prog_compiler_static_works=yes
7581        fi
7582      else
7583        lt_prog_compiler_static_works=yes
7584      fi
7585    fi
7586    $rm conftest*
7587    LDFLAGS="$save_LDFLAGS"
7588
7589 fi
7590 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7591 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7592
7593 if test x"$lt_prog_compiler_static_works" = xyes; then
7594     :
7595 else
7596     lt_prog_compiler_static=
7597 fi
7598
7599
7600 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7601 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7602 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7603   echo $ECHO_N "(cached) $ECHO_C" >&6
7604 else
7605   lt_cv_prog_compiler_c_o=no
7606    $rm -r conftest 2>/dev/null
7607    mkdir conftest
7608    cd conftest
7609    mkdir out
7610    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7611
7612    lt_compiler_flag="-o out/conftest2.$ac_objext"
7613    # Insert the option either (1) after the last *FLAGS variable, or
7614    # (2) before a word containing "conftest.", or (3) at the end.
7615    # Note that $ac_compile itself does not contain backslashes and begins
7616    # with a dollar sign (not a hyphen), so the echo should work correctly.
7617    lt_compile=`echo "$ac_compile" | $SED \
7618    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7619    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7620    -e 's:$: $lt_compiler_flag:'`
7621    (eval echo "\"\$as_me:7621: $lt_compile\"" >&5)
7622    (eval "$lt_compile" 2>out/conftest.err)
7623    ac_status=$?
7624    cat out/conftest.err >&5
7625    echo "$as_me:7625: \$? = $ac_status" >&5
7626    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7627    then
7628      # The compiler can only warn and ignore the option if not recognized
7629      # So say no if there are warnings
7630      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7631      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7632      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7633        lt_cv_prog_compiler_c_o=yes
7634      fi
7635    fi
7636    chmod u+w . 2>&5
7637    $rm conftest*
7638    # SGI C++ compiler will create directory out/ii_files/ for
7639    # template instantiation
7640    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7641    $rm out/* && rmdir out
7642    cd ..
7643    rmdir conftest
7644    $rm conftest*
7645
7646 fi
7647 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7648 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7649
7650
7651 hard_links="nottested"
7652 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7653   # do not overwrite the value of need_locks provided by the user
7654   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7655 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7656   hard_links=yes
7657   $rm conftest*
7658   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7659   touch conftest.a
7660   ln conftest.a conftest.b 2>&5 || hard_links=no
7661   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7662   echo "$as_me:$LINENO: result: $hard_links" >&5
7663 echo "${ECHO_T}$hard_links" >&6
7664   if test "$hard_links" = no; then
7665     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7666 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7667     need_locks=warn
7668   fi
7669 else
7670   need_locks=no
7671 fi
7672
7673 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7674 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7675
7676   runpath_var=
7677   allow_undefined_flag=
7678   enable_shared_with_static_runtimes=no
7679   archive_cmds=
7680   archive_expsym_cmds=
7681   old_archive_From_new_cmds=
7682   old_archive_from_expsyms_cmds=
7683   export_dynamic_flag_spec=
7684   whole_archive_flag_spec=
7685   thread_safe_flag_spec=
7686   hardcode_libdir_flag_spec=
7687   hardcode_libdir_flag_spec_ld=
7688   hardcode_libdir_separator=
7689   hardcode_direct=no
7690   hardcode_minus_L=no
7691   hardcode_shlibpath_var=unsupported
7692   link_all_deplibs=unknown
7693   hardcode_automatic=no
7694   module_cmds=
7695   module_expsym_cmds=
7696   always_export_symbols=no
7697   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7698   # include_expsyms should be a list of space-separated symbols to be *always*
7699   # included in the symbol list
7700   include_expsyms=
7701   # exclude_expsyms can be an extended regexp of symbols to exclude
7702   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7703   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7704   # as well as any symbol that contains `d'.
7705   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7706   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7707   # platforms (ab)use it in PIC code, but their linkers get confused if
7708   # the symbol is explicitly referenced.  Since portable code cannot
7709   # rely on this symbol name, it's probably fine to never include it in
7710   # preloaded symbol tables.
7711   extract_expsyms_cmds=
7712   # Just being paranoid about ensuring that cc_basename is set.
7713   for cc_temp in $compiler""; do
7714   case $cc_temp in
7715     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7716     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7717     \-*) ;;
7718     *) break;;
7719   esac
7720 done
7721 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7722
7723   case $host_os in
7724   cygwin* | mingw* | pw32*)
7725     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7726     # When not using gcc, we currently assume that we are using
7727     # Microsoft Visual C++.
7728     if test "$GCC" != yes; then
7729       with_gnu_ld=no
7730     fi
7731     ;;
7732   interix*)
7733     # we just hope/assume this is gcc and not c89 (= MSVC++)
7734     with_gnu_ld=yes
7735     ;;
7736   openbsd*)
7737     with_gnu_ld=no
7738     ;;
7739   esac
7740
7741   ld_shlibs=yes
7742   if test "$with_gnu_ld" = yes; then
7743     # If archive_cmds runs LD, not CC, wlarc should be empty
7744     wlarc='${wl}'
7745
7746     # Set some defaults for GNU ld with shared library support. These
7747     # are reset later if shared libraries are not supported. Putting them
7748     # here allows them to be overridden if necessary.
7749     runpath_var=LD_RUN_PATH
7750     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7751     export_dynamic_flag_spec='${wl}--export-dynamic'
7752     # ancient GNU ld didn't support --whole-archive et. al.
7753     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7754         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7755       else
7756         whole_archive_flag_spec=
7757     fi
7758     supports_anon_versioning=no
7759     case `$LD -v 2>/dev/null` in
7760       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7761       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7762       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7763       *\ 2.11.*) ;; # other 2.11 versions
7764       *) supports_anon_versioning=yes ;;
7765     esac
7766
7767     # See if GNU ld supports shared libraries.
7768     case $host_os in
7769     aix3* | aix4* | aix5*)
7770       # On AIX/PPC, the GNU linker is very broken
7771       if test "$host_cpu" != ia64; then
7772         ld_shlibs=no
7773         cat <<EOF 1>&2
7774
7775 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7776 *** to be unable to reliably create shared libraries on AIX.
7777 *** Therefore, libtool is disabling shared libraries support.  If you
7778 *** really care for shared libraries, you may want to modify your PATH
7779 *** so that a non-GNU linker is found, and then restart.
7780
7781 EOF
7782       fi
7783       ;;
7784
7785     amigaos*)
7786       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)'
7787       hardcode_libdir_flag_spec='-L$libdir'
7788       hardcode_minus_L=yes
7789
7790       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7791       # that the semantics of dynamic libraries on AmigaOS, at least up
7792       # to version 4, is to share data among multiple programs linked
7793       # with the same dynamic library.  Since this doesn't match the
7794       # behavior of shared libraries on other platforms, we can't use
7795       # them.
7796       ld_shlibs=no
7797       ;;
7798
7799     beos*)
7800       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7801         allow_undefined_flag=unsupported
7802         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7803         # support --undefined.  This deserves some investigation.  FIXME
7804         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7805       else
7806         ld_shlibs=no
7807       fi
7808       ;;
7809
7810     cygwin* | mingw* | pw32*)
7811       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7812       # as there is no search path for DLLs.
7813       hardcode_libdir_flag_spec='-L$libdir'
7814       allow_undefined_flag=unsupported
7815       always_export_symbols=no
7816       enable_shared_with_static_runtimes=yes
7817       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7818
7819       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7820         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7821         # If the export-symbols file already is a .def file (1st line
7822         # is EXPORTS), use it as is; otherwise, prepend...
7823         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7824           cp $export_symbols $output_objdir/$soname.def;
7825         else
7826           echo EXPORTS > $output_objdir/$soname.def;
7827           cat $export_symbols >> $output_objdir/$soname.def;
7828         fi~
7829         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7830       else
7831         ld_shlibs=no
7832       fi
7833       ;;
7834
7835     interix3*)
7836       hardcode_direct=no
7837       hardcode_shlibpath_var=no
7838       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7839       export_dynamic_flag_spec='${wl}-E'
7840       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7841       # Instead, shared libraries are loaded at an image base (0x10000000 by
7842       # default) and relocated if they conflict, which is a slow very memory
7843       # consuming and fragmenting process.  To avoid this, we pick a random,
7844       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7845       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7846       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7847       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'
7848       ;;
7849
7850     linux*)
7851       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7852         tmp_addflag=
7853         case $cc_basename,$host_cpu in
7854         pgcc*)                          # Portland Group C compiler
7855           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'
7856           tmp_addflag=' $pic_flag'
7857           ;;
7858         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7859           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'
7860           tmp_addflag=' $pic_flag -Mnomain' ;;
7861         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7862           tmp_addflag=' -i_dynamic' ;;
7863         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7864           tmp_addflag=' -i_dynamic -nofor_main' ;;
7865         ifc* | ifort*)                  # Intel Fortran compiler
7866           tmp_addflag=' -nofor_main' ;;
7867         esac
7868         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7869
7870         if test $supports_anon_versioning = yes; then
7871           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7872   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7873   $echo "local: *; };" >> $output_objdir/$libname.ver~
7874           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7875         fi
7876       else
7877         ld_shlibs=no
7878       fi
7879       ;;
7880
7881     netbsd*)
7882       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7883         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7884         wlarc=
7885       else
7886         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7887         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7888       fi
7889       ;;
7890
7891     solaris*)
7892       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7893         ld_shlibs=no
7894         cat <<EOF 1>&2
7895
7896 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7897 *** create shared libraries on Solaris systems.  Therefore, libtool
7898 *** is disabling shared libraries support.  We urge you to upgrade GNU
7899 *** binutils to release 2.9.1 or newer.  Another option is to modify
7900 *** your PATH or compiler configuration so that the native linker is
7901 *** used, and then restart.
7902
7903 EOF
7904       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7905         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7906         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7907       else
7908         ld_shlibs=no
7909       fi
7910       ;;
7911
7912     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7913       case `$LD -v 2>&1` in
7914         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7915         ld_shlibs=no
7916         cat <<_LT_EOF 1>&2
7917
7918 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7919 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7920 *** is disabling shared libraries support.  We urge you to upgrade GNU
7921 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7922 *** your PATH or compiler configuration so that the native linker is
7923 *** used, and then restart.
7924
7925 _LT_EOF
7926         ;;
7927         *)
7928           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7929             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7930             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7931             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7932           else
7933             ld_shlibs=no
7934           fi
7935         ;;
7936       esac
7937       ;;
7938
7939     sunos4*)
7940       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7941       wlarc=
7942       hardcode_direct=yes
7943       hardcode_shlibpath_var=no
7944       ;;
7945
7946     *)
7947       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7948         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7949         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7950       else
7951         ld_shlibs=no
7952       fi
7953       ;;
7954     esac
7955
7956     if test "$ld_shlibs" = no; then
7957       runpath_var=
7958       hardcode_libdir_flag_spec=
7959       export_dynamic_flag_spec=
7960       whole_archive_flag_spec=
7961     fi
7962   else
7963     # PORTME fill in a description of your system's linker (not GNU ld)
7964     case $host_os in
7965     aix3*)
7966       allow_undefined_flag=unsupported
7967       always_export_symbols=yes
7968       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'
7969       # Note: this linker hardcodes the directories in LIBPATH if there
7970       # are no directories specified by -L.
7971       hardcode_minus_L=yes
7972       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7973         # Neither direct hardcoding nor static linking is supported with a
7974         # broken collect2.
7975         hardcode_direct=unsupported
7976       fi
7977       ;;
7978
7979     aix4* | aix5*)
7980       if test "$host_cpu" = ia64; then
7981         # On IA64, the linker does run time linking by default, so we don't
7982         # have to do anything special.
7983         aix_use_runtimelinking=no
7984         exp_sym_flag='-Bexport'
7985         no_entry_flag=""
7986       else
7987         # If we're using GNU nm, then we don't want the "-C" option.
7988         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7989         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7990           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'
7991         else
7992           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'
7993         fi
7994         aix_use_runtimelinking=no
7995
7996         # Test if we are trying to use run time linking or normal
7997         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7998         # need to do runtime linking.
7999         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8000           for ld_flag in $LDFLAGS; do
8001           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8002             aix_use_runtimelinking=yes
8003             break
8004           fi
8005           done
8006           ;;
8007         esac
8008
8009         exp_sym_flag='-bexport'
8010         no_entry_flag='-bnoentry'
8011       fi
8012
8013       # When large executables or shared objects are built, AIX ld can
8014       # have problems creating the table of contents.  If linking a library
8015       # or program results in "error TOC overflow" add -mminimal-toc to
8016       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8017       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8018
8019       archive_cmds=''
8020       hardcode_direct=yes
8021       hardcode_libdir_separator=':'
8022       link_all_deplibs=yes
8023
8024       if test "$GCC" = yes; then
8025         case $host_os in aix4.[012]|aix4.[012].*)
8026         # We only want to do this on AIX 4.2 and lower, the check
8027         # below for broken collect2 doesn't work under 4.3+
8028           collect2name=`${CC} -print-prog-name=collect2`
8029           if test -f "$collect2name" && \
8030            strings "$collect2name" | grep resolve_lib_name >/dev/null
8031           then
8032           # We have reworked collect2
8033           hardcode_direct=yes
8034           else
8035           # We have old collect2
8036           hardcode_direct=unsupported
8037           # It fails to find uninstalled libraries when the uninstalled
8038           # path is not listed in the libpath.  Setting hardcode_minus_L
8039           # to unsupported forces relinking
8040           hardcode_minus_L=yes
8041           hardcode_libdir_flag_spec='-L$libdir'
8042           hardcode_libdir_separator=
8043           fi
8044           ;;
8045         esac
8046         shared_flag='-shared'
8047         if test "$aix_use_runtimelinking" = yes; then
8048           shared_flag="$shared_flag "'${wl}-G'
8049         fi
8050       else
8051         # not using gcc
8052         if test "$host_cpu" = ia64; then
8053         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8054         # chokes on -Wl,-G. The following line is correct:
8055           shared_flag='-G'
8056         else
8057           if test "$aix_use_runtimelinking" = yes; then
8058             shared_flag='${wl}-G'
8059           else
8060             shared_flag='${wl}-bM:SRE'
8061           fi
8062         fi
8063       fi
8064
8065       # It seems that -bexpall does not export symbols beginning with
8066       # underscore (_), so it is better to generate a list of symbols to export.
8067       always_export_symbols=yes
8068       if test "$aix_use_runtimelinking" = yes; then
8069         # Warning - without using the other runtime loading flags (-brtl),
8070         # -berok will link without error, but may produce a broken library.
8071         allow_undefined_flag='-berok'
8072        # Determine the default libpath from the value encoded in an empty executable.
8073        cat >conftest.$ac_ext <<_ACEOF
8074 /* confdefs.h.  */
8075 _ACEOF
8076 cat confdefs.h >>conftest.$ac_ext
8077 cat >>conftest.$ac_ext <<_ACEOF
8078 /* end confdefs.h.  */
8079
8080 int
8081 main ()
8082 {
8083
8084   ;
8085   return 0;
8086 }
8087 _ACEOF
8088 rm -f conftest.$ac_objext conftest$ac_exeext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090   (eval $ac_link) 2>conftest.er1
8091   ac_status=$?
8092   grep -v '^ *+' conftest.er1 >conftest.err
8093   rm -f conftest.er1
8094   cat conftest.err >&5
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); } &&
8097          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8099   (eval $ac_try) 2>&5
8100   ac_status=$?
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); }; } &&
8103          { ac_try='test -s conftest$ac_exeext'
8104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8105   (eval $ac_try) 2>&5
8106   ac_status=$?
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); }; }; then
8109
8110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8111 }'`
8112 # Check for a 64-bit object if we didn't find anything.
8113 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8114 }'`; fi
8115 else
8116   echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119 fi
8120 rm -f conftest.err conftest.$ac_objext \
8121       conftest$ac_exeext conftest.$ac_ext
8122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8123
8124        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8125         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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8126        else
8127         if test "$host_cpu" = ia64; then
8128           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8129           allow_undefined_flag="-z nodefs"
8130           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"
8131         else
8132          # Determine the default libpath from the value encoded in an empty executable.
8133          cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h.  */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h.  */
8139
8140 int
8141 main ()
8142 {
8143
8144   ;
8145   return 0;
8146 }
8147 _ACEOF
8148 rm -f conftest.$ac_objext conftest$ac_exeext
8149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8150   (eval $ac_link) 2>conftest.er1
8151   ac_status=$?
8152   grep -v '^ *+' conftest.er1 >conftest.err
8153   rm -f conftest.er1
8154   cat conftest.err >&5
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); } &&
8157          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8159   (eval $ac_try) 2>&5
8160   ac_status=$?
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); }; } &&
8163          { ac_try='test -s conftest$ac_exeext'
8164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165   (eval $ac_try) 2>&5
8166   ac_status=$?
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); }; }; then
8169
8170 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8171 }'`
8172 # Check for a 64-bit object if we didn't find anything.
8173 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8174 }'`; fi
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 fi
8180 rm -f conftest.err conftest.$ac_objext \
8181       conftest$ac_exeext conftest.$ac_ext
8182 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8183
8184          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8185           # Warning - without using the other run time loading flags,
8186           # -berok will link without error, but may produce a broken library.
8187           no_undefined_flag=' ${wl}-bernotok'
8188           allow_undefined_flag=' ${wl}-berok'
8189           # Exported symbols can be pulled into shared objects from archives
8190           whole_archive_flag_spec='$convenience'
8191           archive_cmds_need_lc=yes
8192           # This is similar to how AIX traditionally builds its shared libraries.
8193           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'
8194         fi
8195       fi
8196       ;;
8197
8198     amigaos*)
8199       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)'
8200       hardcode_libdir_flag_spec='-L$libdir'
8201       hardcode_minus_L=yes
8202       # see comment about different semantics on the GNU ld section
8203       ld_shlibs=no
8204       ;;
8205
8206     bsdi[45]*)
8207       export_dynamic_flag_spec=-rdynamic
8208       ;;
8209
8210     cygwin* | mingw* | pw32*)
8211       # When not using gcc, we currently assume that we are using
8212       # Microsoft Visual C++.
8213       # hardcode_libdir_flag_spec is actually meaningless, as there is
8214       # no search path for DLLs.
8215       hardcode_libdir_flag_spec=' '
8216       allow_undefined_flag=unsupported
8217       # Tell ltmain to make .lib files, not .a files.
8218       libext=lib
8219       # Tell ltmain to make .dll files, not .so files.
8220       shrext_cmds=".dll"
8221       # FIXME: Setting linknames here is a bad hack.
8222       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8223       # The linker will automatically build a .lib file if we build a DLL.
8224       old_archive_From_new_cmds='true'
8225       # FIXME: Should let the user specify the lib program.
8226       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8227       fix_srcfile_path='`cygpath -w "$srcfile"`'
8228       enable_shared_with_static_runtimes=yes
8229       ;;
8230
8231     darwin* | rhapsody*)
8232       case $host_os in
8233         rhapsody* | darwin1.[012])
8234          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8235          ;;
8236        *) # Darwin 1.3 on
8237          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8238            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8239          else
8240            case ${MACOSX_DEPLOYMENT_TARGET} in
8241              10.[012])
8242                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8243                ;;
8244              10.*)
8245                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8246                ;;
8247            esac
8248          fi
8249          ;;
8250       esac
8251       archive_cmds_need_lc=no
8252       hardcode_direct=no
8253       hardcode_automatic=yes
8254       hardcode_shlibpath_var=unsupported
8255       whole_archive_flag_spec=''
8256       link_all_deplibs=yes
8257     if test "$GCC" = yes ; then
8258         output_verbose_link_cmd='echo'
8259         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8260       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8261       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8262       archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
8263       module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
8264     else
8265       case $cc_basename in
8266         xlc*)
8267          output_verbose_link_cmd='echo'
8268          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8269          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8270           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8271          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
8272           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
8273           ;;
8274        *)
8275          ld_shlibs=no
8276           ;;
8277       esac
8278     fi
8279       ;;
8280
8281     dgux*)
8282       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8283       hardcode_libdir_flag_spec='-L$libdir'
8284       hardcode_shlibpath_var=no
8285       ;;
8286
8287     freebsd1*)
8288       ld_shlibs=no
8289       ;;
8290
8291     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8292     # support.  Future versions do this automatically, but an explicit c++rt0.o
8293     # does not break anything, and helps significantly (at the cost of a little
8294     # extra space).
8295     freebsd2.2*)
8296       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8297       hardcode_libdir_flag_spec='-R$libdir'
8298       hardcode_direct=yes
8299       hardcode_shlibpath_var=no
8300       ;;
8301
8302     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8303     freebsd2*)
8304       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8305       hardcode_direct=yes
8306       hardcode_minus_L=yes
8307       hardcode_shlibpath_var=no
8308       ;;
8309
8310     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8311     freebsd* | kfreebsd*-gnu | dragonfly*)
8312       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8313       hardcode_libdir_flag_spec='-R$libdir'
8314       hardcode_direct=yes
8315       hardcode_shlibpath_var=no
8316       ;;
8317
8318     hpux9*)
8319       if test "$GCC" = yes; then
8320         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'
8321       else
8322         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'
8323       fi
8324       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8325       hardcode_libdir_separator=:
8326       hardcode_direct=yes
8327
8328       # hardcode_minus_L: Not really in the search PATH,
8329       # but as the default location of the library.
8330       hardcode_minus_L=yes
8331       export_dynamic_flag_spec='${wl}-E'
8332       ;;
8333
8334     hpux10*)
8335       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8336         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8337       else
8338         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8339       fi
8340       if test "$with_gnu_ld" = no; then
8341         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8342         hardcode_libdir_separator=:
8343
8344         hardcode_direct=yes
8345         export_dynamic_flag_spec='${wl}-E'
8346
8347         # hardcode_minus_L: Not really in the search PATH,
8348         # but as the default location of the library.
8349         hardcode_minus_L=yes
8350       fi
8351       ;;
8352
8353     hpux11*)
8354       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8355         case $host_cpu in
8356         hppa*64*)
8357           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8358           ;;
8359         ia64*)
8360           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8361           ;;
8362         *)
8363           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8364           ;;
8365         esac
8366       else
8367         case $host_cpu in
8368         hppa*64*)
8369           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8370           ;;
8371         ia64*)
8372           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8373           ;;
8374         *)
8375           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8376           ;;
8377         esac
8378       fi
8379       if test "$with_gnu_ld" = no; then
8380         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8381         hardcode_libdir_separator=:
8382
8383         case $host_cpu in
8384         hppa*64*|ia64*)
8385           hardcode_libdir_flag_spec_ld='+b $libdir'
8386           hardcode_direct=no
8387           hardcode_shlibpath_var=no
8388           ;;
8389         *)
8390           hardcode_direct=yes
8391           export_dynamic_flag_spec='${wl}-E'
8392
8393           # hardcode_minus_L: Not really in the search PATH,
8394           # but as the default location of the library.
8395           hardcode_minus_L=yes
8396           ;;
8397         esac
8398       fi
8399       ;;
8400
8401     irix5* | irix6* | nonstopux*)
8402       if test "$GCC" = yes; then
8403         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8404       else
8405         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8406         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8407       fi
8408       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8409       hardcode_libdir_separator=:
8410       link_all_deplibs=yes
8411       ;;
8412
8413     netbsd*)
8414       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8415         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8416       else
8417         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8418       fi
8419       hardcode_libdir_flag_spec='-R$libdir'
8420       hardcode_direct=yes
8421       hardcode_shlibpath_var=no
8422       ;;
8423
8424     newsos6)
8425       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8426       hardcode_direct=yes
8427       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8428       hardcode_libdir_separator=:
8429       hardcode_shlibpath_var=no
8430       ;;
8431
8432     openbsd*)
8433       hardcode_direct=yes
8434       hardcode_shlibpath_var=no
8435       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8436         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8437         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8438         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8439         export_dynamic_flag_spec='${wl}-E'
8440       else
8441        case $host_os in
8442          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8443            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8444            hardcode_libdir_flag_spec='-R$libdir'
8445            ;;
8446          *)
8447            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8448            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8449            ;;
8450        esac
8451       fi
8452       ;;
8453
8454     os2*)
8455       hardcode_libdir_flag_spec='-L$libdir'
8456       hardcode_minus_L=yes
8457       allow_undefined_flag=unsupported
8458       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'
8459       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8460       ;;
8461
8462     osf3*)
8463       if test "$GCC" = yes; then
8464         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8465         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8466       else
8467         allow_undefined_flag=' -expect_unresolved \*'
8468         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8469       fi
8470       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8471       hardcode_libdir_separator=:
8472       ;;
8473
8474     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8475       if test "$GCC" = yes; then
8476         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8477         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8478         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8479       else
8480         allow_undefined_flag=' -expect_unresolved \*'
8481         archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8482         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8483         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8484
8485         # Both c and cxx compiler support -rpath directly
8486         hardcode_libdir_flag_spec='-rpath $libdir'
8487       fi
8488       hardcode_libdir_separator=:
8489       ;;
8490
8491     solaris*)
8492       no_undefined_flag=' -z text'
8493       if test "$GCC" = yes; then
8494         wlarc='${wl}'
8495         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8496         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8497           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8498       else
8499         wlarc=''
8500         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8501         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8502         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8503       fi
8504       hardcode_libdir_flag_spec='-R$libdir'
8505       hardcode_shlibpath_var=no
8506       case $host_os in
8507       solaris2.[0-5] | solaris2.[0-5].*) ;;
8508       *)
8509         # The compiler driver will combine linker options so we
8510         # cannot just pass the convience library names through
8511         # without $wl, iff we do not link with $LD.
8512         # Luckily, gcc supports the same syntax we need for Sun Studio.
8513         # Supported since Solaris 2.6 (maybe 2.5.1?)
8514         case $wlarc in
8515         '')
8516           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8517         *)
8518           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8519         esac ;;
8520       esac
8521       link_all_deplibs=yes
8522       ;;
8523
8524     sunos4*)
8525       if test "x$host_vendor" = xsequent; then
8526         # Use $CC to link under sequent, because it throws in some extra .o
8527         # files that make .init and .fini sections work.
8528         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8529       else
8530         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8531       fi
8532       hardcode_libdir_flag_spec='-L$libdir'
8533       hardcode_direct=yes
8534       hardcode_minus_L=yes
8535       hardcode_shlibpath_var=no
8536       ;;
8537
8538     sysv4)
8539       case $host_vendor in
8540         sni)
8541           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8542           hardcode_direct=yes # is this really true???
8543         ;;
8544         siemens)
8545           ## LD is ld it makes a PLAMLIB
8546           ## CC just makes a GrossModule.
8547           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8548           reload_cmds='$CC -r -o $output$reload_objs'
8549           hardcode_direct=no
8550         ;;
8551         motorola)
8552           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8553           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8554         ;;
8555       esac
8556       runpath_var='LD_RUN_PATH'
8557       hardcode_shlibpath_var=no
8558       ;;
8559
8560     sysv4.3*)
8561       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8562       hardcode_shlibpath_var=no
8563       export_dynamic_flag_spec='-Bexport'
8564       ;;
8565
8566     sysv4*MP*)
8567       if test -d /usr/nec; then
8568         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8569         hardcode_shlibpath_var=no
8570         runpath_var=LD_RUN_PATH
8571         hardcode_runpath_var=yes
8572         ld_shlibs=yes
8573       fi
8574       ;;
8575
8576     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8577       no_undefined_flag='${wl}-z,text'
8578       archive_cmds_need_lc=no
8579       hardcode_shlibpath_var=no
8580       runpath_var='LD_RUN_PATH'
8581
8582       if test "$GCC" = yes; then
8583         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8584         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8585       else
8586         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8587         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8588       fi
8589       ;;
8590
8591     sysv5* | sco3.2v5* | sco5v6*)
8592       # Note: We can NOT use -z defs as we might desire, because we do not
8593       # link with -lc, and that would cause any symbols used from libc to
8594       # always be unresolved, which means just about no library would
8595       # ever link correctly.  If we're not using GNU ld we use -z text
8596       # though, which does catch some bad symbols but isn't as heavy-handed
8597       # as -z defs.
8598       no_undefined_flag='${wl}-z,text'
8599       allow_undefined_flag='${wl}-z,nodefs'
8600       archive_cmds_need_lc=no
8601       hardcode_shlibpath_var=no
8602       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8603       hardcode_libdir_separator=':'
8604       link_all_deplibs=yes
8605       export_dynamic_flag_spec='${wl}-Bexport'
8606       runpath_var='LD_RUN_PATH'
8607
8608       if test "$GCC" = yes; then
8609         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8610         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8611       else
8612         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8613         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8614       fi
8615       ;;
8616
8617     uts4*)
8618       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8619       hardcode_libdir_flag_spec='-L$libdir'
8620       hardcode_shlibpath_var=no
8621       ;;
8622
8623     *)
8624       ld_shlibs=no
8625       ;;
8626     esac
8627   fi
8628
8629 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8630 echo "${ECHO_T}$ld_shlibs" >&6
8631 test "$ld_shlibs" = no && can_build_shared=no
8632
8633 #
8634 # Do we need to explicitly link libc?
8635 #
8636 case "x$archive_cmds_need_lc" in
8637 x|xyes)
8638   # Assume -lc should be added
8639   archive_cmds_need_lc=yes
8640
8641   if test "$enable_shared" = yes && test "$GCC" = yes; then
8642     case $archive_cmds in
8643     *'~'*)
8644       # FIXME: we may have to deal with multi-command sequences.
8645       ;;
8646     '$CC '*)
8647       # Test whether the compiler implicitly links with -lc since on some
8648       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8649       # to ld, don't add -lc before -lgcc.
8650       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8651 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8652       $rm conftest*
8653       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8654
8655       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8656   (eval $ac_compile) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); } 2>conftest.err; then
8660         soname=conftest
8661         lib=conftest
8662         libobjs=conftest.$ac_objext
8663         deplibs=
8664         wl=$lt_prog_compiler_wl
8665         pic_flag=$lt_prog_compiler_pic
8666         compiler_flags=-v
8667         linker_flags=-v
8668         verstring=
8669         output_objdir=.
8670         libname=conftest
8671         lt_save_allow_undefined_flag=$allow_undefined_flag
8672         allow_undefined_flag=
8673         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8674   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8675   ac_status=$?
8676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677   (exit $ac_status); }
8678         then
8679           archive_cmds_need_lc=no
8680         else
8681           archive_cmds_need_lc=yes
8682         fi
8683         allow_undefined_flag=$lt_save_allow_undefined_flag
8684       else
8685         cat conftest.err 1>&5
8686       fi
8687       $rm conftest*
8688       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8689 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8690       ;;
8691     esac
8692   fi
8693   ;;
8694 esac
8695
8696 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8697 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8698 library_names_spec=
8699 libname_spec='lib$name'
8700 soname_spec=
8701 shrext_cmds=".so"
8702 postinstall_cmds=
8703 postuninstall_cmds=
8704 finish_cmds=
8705 finish_eval=
8706 shlibpath_var=
8707 shlibpath_overrides_runpath=unknown
8708 version_type=none
8709 dynamic_linker="$host_os ld.so"
8710 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8711 if test "$GCC" = yes; then
8712   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8713   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8714     # if the path contains ";" then we assume it to be the separator
8715     # otherwise default to the standard path separator (i.e. ":") - it is
8716     # assumed that no part of a normal pathname contains ";" but that should
8717     # okay in the real world where ";" in dirpaths is itself problematic.
8718     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8719   else
8720     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8721   fi
8722 else
8723   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8724 fi
8725 need_lib_prefix=unknown
8726 hardcode_into_libs=no
8727
8728 # when you set need_version to no, make sure it does not cause -set_version
8729 # flags to be left without arguments
8730 need_version=unknown
8731
8732 case $host_os in
8733 aix3*)
8734   version_type=linux
8735   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8736   shlibpath_var=LIBPATH
8737
8738   # AIX 3 has no versioning support, so we append a major version to the name.
8739   soname_spec='${libname}${release}${shared_ext}$major'
8740   ;;
8741
8742 aix4* | aix5*)
8743   version_type=linux
8744   need_lib_prefix=no
8745   need_version=no
8746   hardcode_into_libs=yes
8747   if test "$host_cpu" = ia64; then
8748     # AIX 5 supports IA64
8749     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8750     shlibpath_var=LD_LIBRARY_PATH
8751   else
8752     # With GCC up to 2.95.x, collect2 would create an import file
8753     # for dependence libraries.  The import file would start with
8754     # the line `#! .'.  This would cause the generated library to
8755     # depend on `.', always an invalid library.  This was fixed in
8756     # development snapshots of GCC prior to 3.0.
8757     case $host_os in
8758       aix4 | aix4.[01] | aix4.[01].*)
8759       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8760            echo ' yes '
8761            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8762         :
8763       else
8764         can_build_shared=no
8765       fi
8766       ;;
8767     esac
8768     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8769     # soname into executable. Probably we can add versioning support to
8770     # collect2, so additional links can be useful in future.
8771     if test "$aix_use_runtimelinking" = yes; then
8772       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8773       # instead of lib<name>.a to let people know that these are not
8774       # typical AIX shared libraries.
8775       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8776     else
8777       # We preserve .a as extension for shared libraries through AIX4.2
8778       # and later when we are not doing run time linking.
8779       library_names_spec='${libname}${release}.a $libname.a'
8780       soname_spec='${libname}${release}${shared_ext}$major'
8781     fi
8782     shlibpath_var=LIBPATH
8783   fi
8784   ;;
8785
8786 amigaos*)
8787   library_names_spec='$libname.ixlibrary $libname.a'
8788   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8789   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'
8790   ;;
8791
8792 beos*)
8793   library_names_spec='${libname}${shared_ext}'
8794   dynamic_linker="$host_os ld.so"
8795   shlibpath_var=LIBRARY_PATH
8796   ;;
8797
8798 bsdi[45]*)
8799   version_type=linux
8800   need_version=no
8801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802   soname_spec='${libname}${release}${shared_ext}$major'
8803   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8804   shlibpath_var=LD_LIBRARY_PATH
8805   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8806   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8807   # the default ld.so.conf also contains /usr/contrib/lib and
8808   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8809   # libtool to hard-code these into programs
8810   ;;
8811
8812 cygwin* | mingw* | pw32*)
8813   version_type=windows
8814   shrext_cmds=".dll"
8815   need_version=no
8816   need_lib_prefix=no
8817
8818   case $GCC,$host_os in
8819   yes,cygwin* | yes,mingw* | yes,pw32*)
8820     library_names_spec='$libname.dll.a'
8821     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8822     postinstall_cmds='base_file=`basename \${file}`~
8823       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8824       dldir=$destdir/`dirname \$dlpath`~
8825       test -d \$dldir || mkdir -p \$dldir~
8826       $install_prog $dir/$dlname \$dldir/$dlname~
8827       chmod a+x \$dldir/$dlname'
8828     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8829       dlpath=$dir/\$dldll~
8830        $rm \$dlpath'
8831     shlibpath_overrides_runpath=yes
8832
8833     case $host_os in
8834     cygwin*)
8835       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8836       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8837       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8838       ;;
8839     mingw*)
8840       # MinGW DLLs use traditional 'lib' prefix
8841       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8842       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8843       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8844         # It is most probably a Windows format PATH printed by
8845         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8846         # path with ; separators, and with drive letters. We can handle the
8847         # drive letters (cygwin fileutils understands them), so leave them,
8848         # especially as we might pass files found there to a mingw objdump,
8849         # which wouldn't understand a cygwinified path. Ahh.
8850         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8851       else
8852         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8853       fi
8854       ;;
8855     pw32*)
8856       # pw32 DLLs use 'pw' prefix rather than 'lib'
8857       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8858       ;;
8859     esac
8860     ;;
8861
8862   *)
8863     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8864     ;;
8865   esac
8866   dynamic_linker='Win32 ld.exe'
8867   # FIXME: first we should search . and the directory the executable is in
8868   shlibpath_var=PATH
8869   ;;
8870
8871 darwin* | rhapsody*)
8872   dynamic_linker="$host_os dyld"
8873   version_type=darwin
8874   need_lib_prefix=no
8875   need_version=no
8876   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8877   soname_spec='${libname}${release}${major}$shared_ext'
8878   shlibpath_overrides_runpath=yes
8879   shlibpath_var=DYLD_LIBRARY_PATH
8880   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8881   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8882   if test "$GCC" = yes; then
8883     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8884   else
8885     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8886   fi
8887   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8888   ;;
8889
8890 dgux*)
8891   version_type=linux
8892   need_lib_prefix=no
8893   need_version=no
8894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8895   soname_spec='${libname}${release}${shared_ext}$major'
8896   shlibpath_var=LD_LIBRARY_PATH
8897   ;;
8898
8899 freebsd1*)
8900   dynamic_linker=no
8901   ;;
8902
8903 kfreebsd*-gnu)
8904   version_type=linux
8905   need_lib_prefix=no
8906   need_version=no
8907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8908   soname_spec='${libname}${release}${shared_ext}$major'
8909   shlibpath_var=LD_LIBRARY_PATH
8910   shlibpath_overrides_runpath=no
8911   hardcode_into_libs=yes
8912   dynamic_linker='GNU ld.so'
8913   ;;
8914
8915 freebsd* | dragonfly*)
8916   # DragonFly does not have aout.  When/if they implement a new
8917   # versioning mechanism, adjust this.
8918   if test -x /usr/bin/objformat; then
8919     objformat=`/usr/bin/objformat`
8920   else
8921     case $host_os in
8922     freebsd[123]*) objformat=aout ;;
8923     *) objformat=elf ;;
8924     esac
8925   fi
8926   version_type=freebsd-$objformat
8927   case $version_type in
8928     freebsd-elf*)
8929       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8930       need_version=no
8931       need_lib_prefix=no
8932       ;;
8933     freebsd-*)
8934       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8935       need_version=yes
8936       ;;
8937   esac
8938   shlibpath_var=LD_LIBRARY_PATH
8939   case $host_os in
8940   freebsd2*)
8941     shlibpath_overrides_runpath=yes
8942     ;;
8943   freebsd3.[01]* | freebsdelf3.[01]*)
8944     shlibpath_overrides_runpath=yes
8945     hardcode_into_libs=yes
8946     ;;
8947   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8948   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8949     shlibpath_overrides_runpath=no
8950     hardcode_into_libs=yes
8951     ;;
8952   freebsd*) # from 4.6 on
8953     shlibpath_overrides_runpath=yes
8954     hardcode_into_libs=yes
8955     ;;
8956   esac
8957   ;;
8958
8959 gnu*)
8960   version_type=linux
8961   need_lib_prefix=no
8962   need_version=no
8963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8964   soname_spec='${libname}${release}${shared_ext}$major'
8965   shlibpath_var=LD_LIBRARY_PATH
8966   hardcode_into_libs=yes
8967   ;;
8968
8969 hpux9* | hpux10* | hpux11*)
8970   # Give a soname corresponding to the major version so that dld.sl refuses to
8971   # link against other versions.
8972   version_type=sunos
8973   need_lib_prefix=no
8974   need_version=no
8975   case $host_cpu in
8976   ia64*)
8977     shrext_cmds='.so'
8978     hardcode_into_libs=yes
8979     dynamic_linker="$host_os dld.so"
8980     shlibpath_var=LD_LIBRARY_PATH
8981     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8983     soname_spec='${libname}${release}${shared_ext}$major'
8984     if test "X$HPUX_IA64_MODE" = X32; then
8985       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8986     else
8987       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8988     fi
8989     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8990     ;;
8991    hppa*64*)
8992      shrext_cmds='.sl'
8993      hardcode_into_libs=yes
8994      dynamic_linker="$host_os dld.sl"
8995      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8996      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998      soname_spec='${libname}${release}${shared_ext}$major'
8999      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9000      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9001      ;;
9002    *)
9003     shrext_cmds='.sl'
9004     dynamic_linker="$host_os dld.sl"
9005     shlibpath_var=SHLIB_PATH
9006     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008     soname_spec='${libname}${release}${shared_ext}$major'
9009     ;;
9010   esac
9011   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9012   postinstall_cmds='chmod 555 $lib'
9013   ;;
9014
9015 interix3*)
9016   version_type=linux
9017   need_lib_prefix=no
9018   need_version=no
9019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9020   soname_spec='${libname}${release}${shared_ext}$major'
9021   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9022   shlibpath_var=LD_LIBRARY_PATH
9023   shlibpath_overrides_runpath=no
9024   hardcode_into_libs=yes
9025   ;;
9026
9027 irix5* | irix6* | nonstopux*)
9028   case $host_os in
9029     nonstopux*) version_type=nonstopux ;;
9030     *)
9031         if test "$lt_cv_prog_gnu_ld" = yes; then
9032                 version_type=linux
9033         else
9034                 version_type=irix
9035         fi ;;
9036   esac
9037   need_lib_prefix=no
9038   need_version=no
9039   soname_spec='${libname}${release}${shared_ext}$major'
9040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9041   case $host_os in
9042   irix5* | nonstopux*)
9043     libsuff= shlibsuff=
9044     ;;
9045   *)
9046     case $LD in # libtool.m4 will add one of these switches to LD
9047     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9048       libsuff= shlibsuff= libmagic=32-bit;;
9049     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9050       libsuff=32 shlibsuff=N32 libmagic=N32;;
9051     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9052       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9053     *) libsuff= shlibsuff= libmagic=never-match;;
9054     esac
9055     ;;
9056   esac
9057   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9058   shlibpath_overrides_runpath=no
9059   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9060   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9061   hardcode_into_libs=yes
9062   ;;
9063
9064 # No shared lib support for Linux oldld, aout, or coff.
9065 linux*oldld* | linux*aout* | linux*coff*)
9066   dynamic_linker=no
9067   ;;
9068
9069 # This must be Linux ELF.
9070 linux*)
9071   version_type=linux
9072   need_lib_prefix=no
9073   need_version=no
9074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075   soname_spec='${libname}${release}${shared_ext}$major'
9076   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9077   shlibpath_var=LD_LIBRARY_PATH
9078   shlibpath_overrides_runpath=no
9079   # This implies no fast_install, which is unacceptable.
9080   # Some rework will be needed to allow for fast_install
9081   # before this can be enabled.
9082   hardcode_into_libs=yes
9083
9084   # find out which ABI we are using
9085   libsuff=
9086   case "$host_cpu" in
9087   x86_64*|s390x*|powerpc64*)
9088     echo '#line 9088 "configure"' > conftest.$ac_ext
9089     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9090   (eval $ac_compile) 2>&5
9091   ac_status=$?
9092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093   (exit $ac_status); }; then
9094       case `/usr/bin/file conftest.$ac_objext` in
9095       *64-bit*)
9096         libsuff=64
9097         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9098         ;;
9099       esac
9100     fi
9101     rm -rf conftest*
9102     ;;
9103   esac
9104
9105   # Append ld.so.conf contents to the search path
9106   if test -f /etc/ld.so.conf; then
9107     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9108     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9109   fi
9110
9111   # We used to test for /lib/ld.so.1 and disable shared libraries on
9112   # powerpc, because MkLinux only supported shared libraries with the
9113   # GNU dynamic linker.  Since this was broken with cross compilers,
9114   # most powerpc-linux boxes support dynamic linking these days and
9115   # people can always --disable-shared, the test was removed, and we
9116   # assume the GNU/Linux dynamic linker is in use.
9117   dynamic_linker='GNU/Linux ld.so'
9118   ;;
9119
9120 knetbsd*-gnu)
9121   version_type=linux
9122   need_lib_prefix=no
9123   need_version=no
9124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9125   soname_spec='${libname}${release}${shared_ext}$major'
9126   shlibpath_var=LD_LIBRARY_PATH
9127   shlibpath_overrides_runpath=no
9128   hardcode_into_libs=yes
9129   dynamic_linker='GNU ld.so'
9130   ;;
9131
9132 netbsd*)
9133   version_type=sunos
9134   need_lib_prefix=no
9135   need_version=no
9136   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9138     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9139     dynamic_linker='NetBSD (a.out) ld.so'
9140   else
9141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9142     soname_spec='${libname}${release}${shared_ext}$major'
9143     dynamic_linker='NetBSD ld.elf_so'
9144   fi
9145   shlibpath_var=LD_LIBRARY_PATH
9146   shlibpath_overrides_runpath=yes
9147   hardcode_into_libs=yes
9148   ;;
9149
9150 newsos6)
9151   version_type=linux
9152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153   shlibpath_var=LD_LIBRARY_PATH
9154   shlibpath_overrides_runpath=yes
9155   ;;
9156
9157 nto-qnx*)
9158   version_type=linux
9159   need_lib_prefix=no
9160   need_version=no
9161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162   soname_spec='${libname}${release}${shared_ext}$major'
9163   shlibpath_var=LD_LIBRARY_PATH
9164   shlibpath_overrides_runpath=yes
9165   ;;
9166
9167 openbsd*)
9168   version_type=sunos
9169   sys_lib_dlsearch_path_spec="/usr/lib"
9170   need_lib_prefix=no
9171   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9172   case $host_os in
9173     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9174     *)                         need_version=no  ;;
9175   esac
9176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9177   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9178   shlibpath_var=LD_LIBRARY_PATH
9179   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9180     case $host_os in
9181       openbsd2.[89] | openbsd2.[89].*)
9182         shlibpath_overrides_runpath=no
9183         ;;
9184       *)
9185         shlibpath_overrides_runpath=yes
9186         ;;
9187       esac
9188   else
9189     shlibpath_overrides_runpath=yes
9190   fi
9191   ;;
9192
9193 os2*)
9194   libname_spec='$name'
9195   shrext_cmds=".dll"
9196   need_lib_prefix=no
9197   library_names_spec='$libname${shared_ext} $libname.a'
9198   dynamic_linker='OS/2 ld.exe'
9199   shlibpath_var=LIBPATH
9200   ;;
9201
9202 osf3* | osf4* | osf5*)
9203   version_type=osf
9204   need_lib_prefix=no
9205   need_version=no
9206   soname_spec='${libname}${release}${shared_ext}$major'
9207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9208   shlibpath_var=LD_LIBRARY_PATH
9209   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9210   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9211   ;;
9212
9213 solaris*)
9214   version_type=linux
9215   need_lib_prefix=no
9216   need_version=no
9217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218   soname_spec='${libname}${release}${shared_ext}$major'
9219   shlibpath_var=LD_LIBRARY_PATH
9220   shlibpath_overrides_runpath=yes
9221   hardcode_into_libs=yes
9222   # ldd complains unless libraries are executable
9223   postinstall_cmds='chmod +x $lib'
9224   ;;
9225
9226 sunos4*)
9227   version_type=sunos
9228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9229   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9230   shlibpath_var=LD_LIBRARY_PATH
9231   shlibpath_overrides_runpath=yes
9232   if test "$with_gnu_ld" = yes; then
9233     need_lib_prefix=no
9234   fi
9235   need_version=yes
9236   ;;
9237
9238 sysv4 | sysv4.3*)
9239   version_type=linux
9240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9241   soname_spec='${libname}${release}${shared_ext}$major'
9242   shlibpath_var=LD_LIBRARY_PATH
9243   case $host_vendor in
9244     sni)
9245       shlibpath_overrides_runpath=no
9246       need_lib_prefix=no
9247       export_dynamic_flag_spec='${wl}-Blargedynsym'
9248       runpath_var=LD_RUN_PATH
9249       ;;
9250     siemens)
9251       need_lib_prefix=no
9252       ;;
9253     motorola)
9254       need_lib_prefix=no
9255       need_version=no
9256       shlibpath_overrides_runpath=no
9257       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9258       ;;
9259   esac
9260   ;;
9261
9262 sysv4*MP*)
9263   if test -d /usr/nec ;then
9264     version_type=linux
9265     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9266     soname_spec='$libname${shared_ext}.$major'
9267     shlibpath_var=LD_LIBRARY_PATH
9268   fi
9269   ;;
9270
9271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9272   version_type=freebsd-elf
9273   need_lib_prefix=no
9274   need_version=no
9275   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9276   soname_spec='${libname}${release}${shared_ext}$major'
9277   shlibpath_var=LD_LIBRARY_PATH
9278   hardcode_into_libs=yes
9279   if test "$with_gnu_ld" = yes; then
9280     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9281     shlibpath_overrides_runpath=no
9282   else
9283     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9284     shlibpath_overrides_runpath=yes
9285     case $host_os in
9286       sco3.2v5*)
9287         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9288         ;;
9289     esac
9290   fi
9291   sys_lib_dlsearch_path_spec='/usr/lib'
9292   ;;
9293
9294 uts4*)
9295   version_type=linux
9296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9297   soname_spec='${libname}${release}${shared_ext}$major'
9298   shlibpath_var=LD_LIBRARY_PATH
9299   ;;
9300
9301 *)
9302   dynamic_linker=no
9303   ;;
9304 esac
9305 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9306 echo "${ECHO_T}$dynamic_linker" >&6
9307 test "$dynamic_linker" = no && can_build_shared=no
9308
9309 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9310 if test "$GCC" = yes; then
9311   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9312 fi
9313
9314 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9315 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9316 hardcode_action=
9317 if test -n "$hardcode_libdir_flag_spec" || \
9318    test -n "$runpath_var" || \
9319    test "X$hardcode_automatic" = "Xyes" ; then
9320
9321   # We can hardcode non-existant directories.
9322   if test "$hardcode_direct" != no &&
9323      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9324      # have to relink, otherwise we might link with an installed library
9325      # when we should be linking with a yet-to-be-installed one
9326      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9327      test "$hardcode_minus_L" != no; then
9328     # Linking always hardcodes the temporary library directory.
9329     hardcode_action=relink
9330   else
9331     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9332     hardcode_action=immediate
9333   fi
9334 else
9335   # We cannot hardcode anything, or else we can only hardcode existing
9336   # directories.
9337   hardcode_action=unsupported
9338 fi
9339 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9340 echo "${ECHO_T}$hardcode_action" >&6
9341
9342 if test "$hardcode_action" = relink; then
9343   # Fast installation is not supported
9344   enable_fast_install=no
9345 elif test "$shlibpath_overrides_runpath" = yes ||
9346      test "$enable_shared" = no; then
9347   # Fast installation is not necessary
9348   enable_fast_install=needless
9349 fi
9350
9351 striplib=
9352 old_striplib=
9353 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9354 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9355 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9356   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9357   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9358   echo "$as_me:$LINENO: result: yes" >&5
9359 echo "${ECHO_T}yes" >&6
9360 else
9361 # FIXME - insert some real tests, host_os isn't really good enough
9362   case $host_os in
9363    darwin*)
9364        if test -n "$STRIP" ; then
9365          striplib="$STRIP -x"
9366          echo "$as_me:$LINENO: result: yes" >&5
9367 echo "${ECHO_T}yes" >&6
9368        else
9369   echo "$as_me:$LINENO: result: no" >&5
9370 echo "${ECHO_T}no" >&6
9371 fi
9372        ;;
9373    *)
9374   echo "$as_me:$LINENO: result: no" >&5
9375 echo "${ECHO_T}no" >&6
9376     ;;
9377   esac
9378 fi
9379
9380 if test "x$enable_dlopen" != xyes; then
9381   enable_dlopen=unknown
9382   enable_dlopen_self=unknown
9383   enable_dlopen_self_static=unknown
9384 else
9385   lt_cv_dlopen=no
9386   lt_cv_dlopen_libs=
9387
9388   case $host_os in
9389   beos*)
9390     lt_cv_dlopen="load_add_on"
9391     lt_cv_dlopen_libs=
9392     lt_cv_dlopen_self=yes
9393     ;;
9394
9395   mingw* | pw32*)
9396     lt_cv_dlopen="LoadLibrary"
9397     lt_cv_dlopen_libs=
9398    ;;
9399
9400   cygwin*)
9401     lt_cv_dlopen="dlopen"
9402     lt_cv_dlopen_libs=
9403    ;;
9404
9405   darwin*)
9406   # if libdl is installed we need to link against it
9407     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9408 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9409 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9410   echo $ECHO_N "(cached) $ECHO_C" >&6
9411 else
9412   ac_check_lib_save_LIBS=$LIBS
9413 LIBS="-ldl  $LIBS"
9414 cat >conftest.$ac_ext <<_ACEOF
9415 /* confdefs.h.  */
9416 _ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h.  */
9420
9421 /* Override any gcc2 internal prototype to avoid an error.  */
9422 #ifdef __cplusplus
9423 extern "C"
9424 #endif
9425 /* We use char because int might match the return type of a gcc2
9426    builtin and then its argument prototype would still apply.  */
9427 char dlopen ();
9428 int
9429 main ()
9430 {
9431 dlopen ();
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 rm -f conftest.$ac_objext conftest$ac_exeext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438   (eval $ac_link) 2>conftest.er1
9439   ac_status=$?
9440   grep -v '^ *+' conftest.er1 >conftest.err
9441   rm -f conftest.er1
9442   cat conftest.err >&5
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); } &&
9445          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447   (eval $ac_try) 2>&5
9448   ac_status=$?
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); }; } &&
9451          { ac_try='test -s conftest$ac_exeext'
9452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453   (eval $ac_try) 2>&5
9454   ac_status=$?
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); }; }; then
9457   ac_cv_lib_dl_dlopen=yes
9458 else
9459   echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9461
9462 ac_cv_lib_dl_dlopen=no
9463 fi
9464 rm -f conftest.err conftest.$ac_objext \
9465       conftest$ac_exeext conftest.$ac_ext
9466 LIBS=$ac_check_lib_save_LIBS
9467 fi
9468 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9469 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9470 if test $ac_cv_lib_dl_dlopen = yes; then
9471   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9472 else
9473
9474     lt_cv_dlopen="dyld"
9475     lt_cv_dlopen_libs=
9476     lt_cv_dlopen_self=yes
9477
9478 fi
9479
9480    ;;
9481
9482   *)
9483     echo "$as_me:$LINENO: checking for shl_load" >&5
9484 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9485 if test "${ac_cv_func_shl_load+set}" = set; then
9486   echo $ECHO_N "(cached) $ECHO_C" >&6
9487 else
9488   cat >conftest.$ac_ext <<_ACEOF
9489 /* confdefs.h.  */
9490 _ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h.  */
9494 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9496 #define shl_load innocuous_shl_load
9497
9498 /* System header to define __stub macros and hopefully few prototypes,
9499     which can conflict with char shl_load (); below.
9500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501     <limits.h> exists even on freestanding compilers.  */
9502
9503 #ifdef __STDC__
9504 # include <limits.h>
9505 #else
9506 # include <assert.h>
9507 #endif
9508
9509 #undef shl_load
9510
9511 /* Override any gcc2 internal prototype to avoid an error.  */
9512 #ifdef __cplusplus
9513 extern "C"
9514 {
9515 #endif
9516 /* We use char because int might match the return type of a gcc2
9517    builtin and then its argument prototype would still apply.  */
9518 char shl_load ();
9519 /* The GNU C library defines this for functions which it implements
9520     to always fail with ENOSYS.  Some functions are actually named
9521     something starting with __ and the normal name is an alias.  */
9522 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9523 choke me
9524 #else
9525 char (*f) () = shl_load;
9526 #endif
9527 #ifdef __cplusplus
9528 }
9529 #endif
9530
9531 int
9532 main ()
9533 {
9534 return f != shl_load;
9535   ;
9536   return 0;
9537 }
9538 _ACEOF
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9541   (eval $ac_link) 2>conftest.er1
9542   ac_status=$?
9543   grep -v '^ *+' conftest.er1 >conftest.err
9544   rm -f conftest.er1
9545   cat conftest.err >&5
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); } &&
9548          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550   (eval $ac_try) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); }; } &&
9554          { ac_try='test -s conftest$ac_exeext'
9555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556   (eval $ac_try) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; }; then
9560   ac_cv_func_shl_load=yes
9561 else
9562   echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9564
9565 ac_cv_func_shl_load=no
9566 fi
9567 rm -f conftest.err conftest.$ac_objext \
9568       conftest$ac_exeext conftest.$ac_ext
9569 fi
9570 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9571 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9572 if test $ac_cv_func_shl_load = yes; then
9573   lt_cv_dlopen="shl_load"
9574 else
9575   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9576 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9577 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9578   echo $ECHO_N "(cached) $ECHO_C" >&6
9579 else
9580   ac_check_lib_save_LIBS=$LIBS
9581 LIBS="-ldld  $LIBS"
9582 cat >conftest.$ac_ext <<_ACEOF
9583 /* confdefs.h.  */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h.  */
9588
9589 /* Override any gcc2 internal prototype to avoid an error.  */
9590 #ifdef __cplusplus
9591 extern "C"
9592 #endif
9593 /* We use char because int might match the return type of a gcc2
9594    builtin and then its argument prototype would still apply.  */
9595 char shl_load ();
9596 int
9597 main ()
9598 {
9599 shl_load ();
9600   ;
9601   return 0;
9602 }
9603 _ACEOF
9604 rm -f conftest.$ac_objext conftest$ac_exeext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606   (eval $ac_link) 2>conftest.er1
9607   ac_status=$?
9608   grep -v '^ *+' conftest.er1 >conftest.err
9609   rm -f conftest.er1
9610   cat conftest.err >&5
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } &&
9613          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615   (eval $ac_try) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); }; } &&
9619          { ac_try='test -s conftest$ac_exeext'
9620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621   (eval $ac_try) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); }; }; then
9625   ac_cv_lib_dld_shl_load=yes
9626 else
9627   echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9629
9630 ac_cv_lib_dld_shl_load=no
9631 fi
9632 rm -f conftest.err conftest.$ac_objext \
9633       conftest$ac_exeext conftest.$ac_ext
9634 LIBS=$ac_check_lib_save_LIBS
9635 fi
9636 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9637 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9638 if test $ac_cv_lib_dld_shl_load = yes; then
9639   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9640 else
9641   echo "$as_me:$LINENO: checking for dlopen" >&5
9642 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9643 if test "${ac_cv_func_dlopen+set}" = set; then
9644   echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646   cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h.  */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h.  */
9652 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9654 #define dlopen innocuous_dlopen
9655
9656 /* System header to define __stub macros and hopefully few prototypes,
9657     which can conflict with char dlopen (); below.
9658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9659     <limits.h> exists even on freestanding compilers.  */
9660
9661 #ifdef __STDC__
9662 # include <limits.h>
9663 #else
9664 # include <assert.h>
9665 #endif
9666
9667 #undef dlopen
9668
9669 /* Override any gcc2 internal prototype to avoid an error.  */
9670 #ifdef __cplusplus
9671 extern "C"
9672 {
9673 #endif
9674 /* We use char because int might match the return type of a gcc2
9675    builtin and then its argument prototype would still apply.  */
9676 char dlopen ();
9677 /* The GNU C library defines this for functions which it implements
9678     to always fail with ENOSYS.  Some functions are actually named
9679     something starting with __ and the normal name is an alias.  */
9680 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9681 choke me
9682 #else
9683 char (*f) () = dlopen;
9684 #endif
9685 #ifdef __cplusplus
9686 }
9687 #endif
9688
9689 int
9690 main ()
9691 {
9692 return f != dlopen;
9693   ;
9694   return 0;
9695 }
9696 _ACEOF
9697 rm -f conftest.$ac_objext conftest$ac_exeext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9699   (eval $ac_link) 2>conftest.er1
9700   ac_status=$?
9701   grep -v '^ *+' conftest.er1 >conftest.err
9702   rm -f conftest.er1
9703   cat conftest.err >&5
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); } &&
9706          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708   (eval $ac_try) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; } &&
9712          { ac_try='test -s conftest$ac_exeext'
9713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714   (eval $ac_try) 2>&5
9715   ac_status=$?
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); }; }; then
9718   ac_cv_func_dlopen=yes
9719 else
9720   echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9722
9723 ac_cv_func_dlopen=no
9724 fi
9725 rm -f conftest.err conftest.$ac_objext \
9726       conftest$ac_exeext conftest.$ac_ext
9727 fi
9728 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9729 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9730 if test $ac_cv_func_dlopen = yes; then
9731   lt_cv_dlopen="dlopen"
9732 else
9733   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9734 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9735 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9736   echo $ECHO_N "(cached) $ECHO_C" >&6
9737 else
9738   ac_check_lib_save_LIBS=$LIBS
9739 LIBS="-ldl  $LIBS"
9740 cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h.  */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h.  */
9746
9747 /* Override any gcc2 internal prototype to avoid an error.  */
9748 #ifdef __cplusplus
9749 extern "C"
9750 #endif
9751 /* We use char because int might match the return type of a gcc2
9752    builtin and then its argument prototype would still apply.  */
9753 char dlopen ();
9754 int
9755 main ()
9756 {
9757 dlopen ();
9758   ;
9759   return 0;
9760 }
9761 _ACEOF
9762 rm -f conftest.$ac_objext conftest$ac_exeext
9763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9764   (eval $ac_link) 2>conftest.er1
9765   ac_status=$?
9766   grep -v '^ *+' conftest.er1 >conftest.err
9767   rm -f conftest.er1
9768   cat conftest.err >&5
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); } &&
9771          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773   (eval $ac_try) 2>&5
9774   ac_status=$?
9775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); }; } &&
9777          { ac_try='test -s conftest$ac_exeext'
9778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9779   (eval $ac_try) 2>&5
9780   ac_status=$?
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); }; }; then
9783   ac_cv_lib_dl_dlopen=yes
9784 else
9785   echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788 ac_cv_lib_dl_dlopen=no
9789 fi
9790 rm -f conftest.err conftest.$ac_objext \
9791       conftest$ac_exeext conftest.$ac_ext
9792 LIBS=$ac_check_lib_save_LIBS
9793 fi
9794 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9795 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9796 if test $ac_cv_lib_dl_dlopen = yes; then
9797   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9798 else
9799   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9800 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9801 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9802   echo $ECHO_N "(cached) $ECHO_C" >&6
9803 else
9804   ac_check_lib_save_LIBS=$LIBS
9805 LIBS="-lsvld  $LIBS"
9806 cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h.  */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h.  */
9812
9813 /* Override any gcc2 internal prototype to avoid an error.  */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 /* We use char because int might match the return type of a gcc2
9818    builtin and then its argument prototype would still apply.  */
9819 char dlopen ();
9820 int
9821 main ()
9822 {
9823 dlopen ();
9824   ;
9825   return 0;
9826 }
9827 _ACEOF
9828 rm -f conftest.$ac_objext conftest$ac_exeext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830   (eval $ac_link) 2>conftest.er1
9831   ac_status=$?
9832   grep -v '^ *+' conftest.er1 >conftest.err
9833   rm -f conftest.er1
9834   cat conftest.err >&5
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); } &&
9837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839   (eval $ac_try) 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; } &&
9843          { ac_try='test -s conftest$ac_exeext'
9844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845   (eval $ac_try) 2>&5
9846   ac_status=$?
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); }; }; then
9849   ac_cv_lib_svld_dlopen=yes
9850 else
9851   echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9853
9854 ac_cv_lib_svld_dlopen=no
9855 fi
9856 rm -f conftest.err conftest.$ac_objext \
9857       conftest$ac_exeext conftest.$ac_ext
9858 LIBS=$ac_check_lib_save_LIBS
9859 fi
9860 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9861 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9862 if test $ac_cv_lib_svld_dlopen = yes; then
9863   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9864 else
9865   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9866 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9867 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9868   echo $ECHO_N "(cached) $ECHO_C" >&6
9869 else
9870   ac_check_lib_save_LIBS=$LIBS
9871 LIBS="-ldld  $LIBS"
9872 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878
9879 /* Override any gcc2 internal prototype to avoid an error.  */
9880 #ifdef __cplusplus
9881 extern "C"
9882 #endif
9883 /* We use char because int might match the return type of a gcc2
9884    builtin and then its argument prototype would still apply.  */
9885 char dld_link ();
9886 int
9887 main ()
9888 {
9889 dld_link ();
9890   ;
9891   return 0;
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9896   (eval $ac_link) 2>conftest.er1
9897   ac_status=$?
9898   grep -v '^ *+' conftest.er1 >conftest.err
9899   rm -f conftest.er1
9900   cat conftest.err >&5
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); } &&
9903          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905   (eval $ac_try) 2>&5
9906   ac_status=$?
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); }; } &&
9909          { ac_try='test -s conftest$ac_exeext'
9910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911   (eval $ac_try) 2>&5
9912   ac_status=$?
9913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914   (exit $ac_status); }; }; then
9915   ac_cv_lib_dld_dld_link=yes
9916 else
9917   echo "$as_me: failed program was:" >&5
9918 sed 's/^/| /' conftest.$ac_ext >&5
9919
9920 ac_cv_lib_dld_dld_link=no
9921 fi
9922 rm -f conftest.err conftest.$ac_objext \
9923       conftest$ac_exeext conftest.$ac_ext
9924 LIBS=$ac_check_lib_save_LIBS
9925 fi
9926 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9927 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9928 if test $ac_cv_lib_dld_dld_link = yes; then
9929   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9930 fi
9931
9932
9933 fi
9934
9935
9936 fi
9937
9938
9939 fi
9940
9941
9942 fi
9943
9944
9945 fi
9946
9947     ;;
9948   esac
9949
9950   if test "x$lt_cv_dlopen" != xno; then
9951     enable_dlopen=yes
9952   else
9953     enable_dlopen=no
9954   fi
9955
9956   case $lt_cv_dlopen in
9957   dlopen)
9958     save_CPPFLAGS="$CPPFLAGS"
9959     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9960
9961     save_LDFLAGS="$LDFLAGS"
9962     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9963
9964     save_LIBS="$LIBS"
9965     LIBS="$lt_cv_dlopen_libs $LIBS"
9966
9967     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9968 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9969 if test "${lt_cv_dlopen_self+set}" = set; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972           if test "$cross_compiling" = yes; then :
9973   lt_cv_dlopen_self=cross
9974 else
9975   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9976   lt_status=$lt_dlunknown
9977   cat > conftest.$ac_ext <<EOF
9978 #line 9978 "configure"
9979 #include "confdefs.h"
9980
9981 #if HAVE_DLFCN_H
9982 #include <dlfcn.h>
9983 #endif
9984
9985 #include <stdio.h>
9986
9987 #ifdef RTLD_GLOBAL
9988 #  define LT_DLGLOBAL           RTLD_GLOBAL
9989 #else
9990 #  ifdef DL_GLOBAL
9991 #    define LT_DLGLOBAL         DL_GLOBAL
9992 #  else
9993 #    define LT_DLGLOBAL         0
9994 #  endif
9995 #endif
9996
9997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9998    find out it does not work in some platform. */
9999 #ifndef LT_DLLAZY_OR_NOW
10000 #  ifdef RTLD_LAZY
10001 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10002 #  else
10003 #    ifdef DL_LAZY
10004 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10005 #    else
10006 #      ifdef RTLD_NOW
10007 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10008 #      else
10009 #        ifdef DL_NOW
10010 #          define LT_DLLAZY_OR_NOW      DL_NOW
10011 #        else
10012 #          define LT_DLLAZY_OR_NOW      0
10013 #        endif
10014 #      endif
10015 #    endif
10016 #  endif
10017 #endif
10018
10019 #ifdef __cplusplus
10020 extern "C" void exit (int);
10021 #endif
10022
10023 void fnord() { int i=42;}
10024 int main ()
10025 {
10026   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10027   int status = $lt_dlunknown;
10028
10029   if (self)
10030     {
10031       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10032       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10033       /* dlclose (self); */
10034     }
10035   else
10036     puts (dlerror ());
10037
10038     exit (status);
10039 }
10040 EOF
10041   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042   (eval $ac_link) 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10046     (./conftest; exit; ) >&5 2>/dev/null
10047     lt_status=$?
10048     case x$lt_status in
10049       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10050       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10051       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10052     esac
10053   else :
10054     # compilation failed
10055     lt_cv_dlopen_self=no
10056   fi
10057 fi
10058 rm -fr conftest*
10059
10060
10061 fi
10062 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10063 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10064
10065     if test "x$lt_cv_dlopen_self" = xyes; then
10066       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10067       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10068 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10069 if test "${lt_cv_dlopen_self_static+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072           if test "$cross_compiling" = yes; then :
10073   lt_cv_dlopen_self_static=cross
10074 else
10075   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10076   lt_status=$lt_dlunknown
10077   cat > conftest.$ac_ext <<EOF
10078 #line 10078 "configure"
10079 #include "confdefs.h"
10080
10081 #if HAVE_DLFCN_H
10082 #include <dlfcn.h>
10083 #endif
10084
10085 #include <stdio.h>
10086
10087 #ifdef RTLD_GLOBAL
10088 #  define LT_DLGLOBAL           RTLD_GLOBAL
10089 #else
10090 #  ifdef DL_GLOBAL
10091 #    define LT_DLGLOBAL         DL_GLOBAL
10092 #  else
10093 #    define LT_DLGLOBAL         0
10094 #  endif
10095 #endif
10096
10097 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10098    find out it does not work in some platform. */
10099 #ifndef LT_DLLAZY_OR_NOW
10100 #  ifdef RTLD_LAZY
10101 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10102 #  else
10103 #    ifdef DL_LAZY
10104 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10105 #    else
10106 #      ifdef RTLD_NOW
10107 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10108 #      else
10109 #        ifdef DL_NOW
10110 #          define LT_DLLAZY_OR_NOW      DL_NOW
10111 #        else
10112 #          define LT_DLLAZY_OR_NOW      0
10113 #        endif
10114 #      endif
10115 #    endif
10116 #  endif
10117 #endif
10118
10119 #ifdef __cplusplus
10120 extern "C" void exit (int);
10121 #endif
10122
10123 void fnord() { int i=42;}
10124 int main ()
10125 {
10126   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10127   int status = $lt_dlunknown;
10128
10129   if (self)
10130     {
10131       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10132       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10133       /* dlclose (self); */
10134     }
10135   else
10136     puts (dlerror ());
10137
10138     exit (status);
10139 }
10140 EOF
10141   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142   (eval $ac_link) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10146     (./conftest; exit; ) >&5 2>/dev/null
10147     lt_status=$?
10148     case x$lt_status in
10149       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10150       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10151       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10152     esac
10153   else :
10154     # compilation failed
10155     lt_cv_dlopen_self_static=no
10156   fi
10157 fi
10158 rm -fr conftest*
10159
10160
10161 fi
10162 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10163 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10164     fi
10165
10166     CPPFLAGS="$save_CPPFLAGS"
10167     LDFLAGS="$save_LDFLAGS"
10168     LIBS="$save_LIBS"
10169     ;;
10170   esac
10171
10172   case $lt_cv_dlopen_self in
10173   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10174   *) enable_dlopen_self=unknown ;;
10175   esac
10176
10177   case $lt_cv_dlopen_self_static in
10178   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10179   *) enable_dlopen_self_static=unknown ;;
10180   esac
10181 fi
10182
10183
10184 # Report which library types will actually be built
10185 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10186 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10187 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10188 echo "${ECHO_T}$can_build_shared" >&6
10189
10190 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10191 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10192 test "$can_build_shared" = "no" && enable_shared=no
10193
10194 # On AIX, shared libraries and static libraries use the same namespace, and
10195 # are all built from PIC.
10196 case $host_os in
10197 aix3*)
10198   test "$enable_shared" = yes && enable_static=no
10199   if test -n "$RANLIB"; then
10200     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10201     postinstall_cmds='$RANLIB $lib'
10202   fi
10203   ;;
10204
10205 aix4* | aix5*)
10206   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10207     test "$enable_shared" = yes && enable_static=no
10208   fi
10209     ;;
10210 esac
10211 echo "$as_me:$LINENO: result: $enable_shared" >&5
10212 echo "${ECHO_T}$enable_shared" >&6
10213
10214 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10215 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10216 # Make sure either enable_shared or enable_static is yes.
10217 test "$enable_shared" = yes || enable_static=yes
10218 echo "$as_me:$LINENO: result: $enable_static" >&5
10219 echo "${ECHO_T}$enable_static" >&6
10220
10221 # The else clause should only fire when bootstrapping the
10222 # libtool distribution, otherwise you forgot to ship ltmain.sh
10223 # with your package, and you will get complaints that there are
10224 # no rules to generate ltmain.sh.
10225 if test -f "$ltmain"; then
10226   # See if we are running on zsh, and set the options which allow our commands through
10227   # without removal of \ escapes.
10228   if test -n "${ZSH_VERSION+set}" ; then
10229     setopt NO_GLOB_SUBST
10230   fi
10231   # Now quote all the things that may contain metacharacters while being
10232   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10233   # variables and quote the copies for generation of the libtool script.
10234   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10235     SED SHELL STRIP \
10236     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10237     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10238     deplibs_check_method reload_flag reload_cmds need_locks \
10239     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10240     lt_cv_sys_global_symbol_to_c_name_address \
10241     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10242     old_postinstall_cmds old_postuninstall_cmds \
10243     compiler \
10244     CC \
10245     LD \
10246     lt_prog_compiler_wl \
10247     lt_prog_compiler_pic \
10248     lt_prog_compiler_static \
10249     lt_prog_compiler_no_builtin_flag \
10250     export_dynamic_flag_spec \
10251     thread_safe_flag_spec \
10252     whole_archive_flag_spec \
10253     enable_shared_with_static_runtimes \
10254     old_archive_cmds \
10255     old_archive_from_new_cmds \
10256     predep_objects \
10257     postdep_objects \
10258     predeps \
10259     postdeps \
10260     compiler_lib_search_path \
10261     archive_cmds \
10262     archive_expsym_cmds \
10263     postinstall_cmds \
10264     postuninstall_cmds \
10265     old_archive_from_expsyms_cmds \
10266     allow_undefined_flag \
10267     no_undefined_flag \
10268     export_symbols_cmds \
10269     hardcode_libdir_flag_spec \
10270     hardcode_libdir_flag_spec_ld \
10271     hardcode_libdir_separator \
10272     hardcode_automatic \
10273     module_cmds \
10274     module_expsym_cmds \
10275     lt_cv_prog_compiler_c_o \
10276     exclude_expsyms \
10277     include_expsyms; do
10278
10279     case $var in
10280     old_archive_cmds | \
10281     old_archive_from_new_cmds | \
10282     archive_cmds | \
10283     archive_expsym_cmds | \
10284     module_cmds | \
10285     module_expsym_cmds | \
10286     old_archive_from_expsyms_cmds | \
10287     export_symbols_cmds | \
10288     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10289     postinstall_cmds | postuninstall_cmds | \
10290     old_postinstall_cmds | old_postuninstall_cmds | \
10291     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10292       # Double-quote double-evaled strings.
10293       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10294       ;;
10295     *)
10296       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10297       ;;
10298     esac
10299   done
10300
10301   case $lt_echo in
10302   *'\$0 --fallback-echo"')
10303     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10304     ;;
10305   esac
10306
10307 cfgfile="${ofile}T"
10308   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10309   $rm -f "$cfgfile"
10310   { echo "$as_me:$LINENO: creating $ofile" >&5
10311 echo "$as_me: creating $ofile" >&6;}
10312
10313   cat <<__EOF__ >> "$cfgfile"
10314 #! $SHELL
10315
10316 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10317 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10318 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10319 #
10320 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10321 # Free Software Foundation, Inc.
10322 #
10323 # This file is part of GNU Libtool:
10324 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10325 #
10326 # This program is free software; you can redistribute it and/or modify
10327 # it under the terms of the GNU General Public License as published by
10328 # the Free Software Foundation; either version 2 of the License, or
10329 # (at your option) any later version.
10330 #
10331 # This program is distributed in the hope that it will be useful, but
10332 # WITHOUT ANY WARRANTY; without even the implied warranty of
10333 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10334 # General Public License for more details.
10335 #
10336 # You should have received a copy of the GNU General Public License
10337 # along with this program; if not, write to the Free Software
10338 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10339 #
10340 # As a special exception to the GNU General Public License, if you
10341 # distribute this file as part of a program that contains a
10342 # configuration script generated by Autoconf, you may include it under
10343 # the same distribution terms that you use for the rest of that program.
10344
10345 # A sed program that does not truncate output.
10346 SED=$lt_SED
10347
10348 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10349 Xsed="$SED -e 1s/^X//"
10350
10351 # The HP-UX ksh and POSIX shell print the target directory to stdout
10352 # if CDPATH is set.
10353 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10354
10355 # The names of the tagged configurations supported by this script.
10356 available_tags=
10357
10358 # ### BEGIN LIBTOOL CONFIG
10359
10360 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10361
10362 # Shell to use when invoking shell scripts.
10363 SHELL=$lt_SHELL
10364
10365 # Whether or not to build shared libraries.
10366 build_libtool_libs=$enable_shared
10367
10368 # Whether or not to build static libraries.
10369 build_old_libs=$enable_static
10370
10371 # Whether or not to add -lc for building shared libraries.
10372 build_libtool_need_lc=$archive_cmds_need_lc
10373
10374 # Whether or not to disallow shared libs when runtime libs are static
10375 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10376
10377 # Whether or not to optimize for fast installation.
10378 fast_install=$enable_fast_install
10379
10380 # The host system.
10381 host_alias=$host_alias
10382 host=$host
10383 host_os=$host_os
10384
10385 # The build system.
10386 build_alias=$build_alias
10387 build=$build
10388 build_os=$build_os
10389
10390 # An echo program that does not interpret backslashes.
10391 echo=$lt_echo
10392
10393 # The archiver.
10394 AR=$lt_AR
10395 AR_FLAGS=$lt_AR_FLAGS
10396
10397 # A C compiler.
10398 LTCC=$lt_LTCC
10399
10400 # LTCC compiler flags.
10401 LTCFLAGS=$lt_LTCFLAGS
10402
10403 # A language-specific compiler.
10404 CC=$lt_compiler
10405
10406 # Is the compiler the GNU C compiler?
10407 with_gcc=$GCC
10408
10409 # An ERE matcher.
10410 EGREP=$lt_EGREP
10411
10412 # The linker used to build libraries.
10413 LD=$lt_LD
10414
10415 # Whether we need hard or soft links.
10416 LN_S=$lt_LN_S
10417
10418 # A BSD-compatible nm program.
10419 NM=$lt_NM
10420
10421 # A symbol stripping program
10422 STRIP=$lt_STRIP
10423
10424 # Used to examine libraries when file_magic_cmd begins "file"
10425 MAGIC_CMD=$MAGIC_CMD
10426
10427 # Used on cygwin: DLL creation program.
10428 DLLTOOL="$DLLTOOL"
10429
10430 # Used on cygwin: object dumper.
10431 OBJDUMP="$OBJDUMP"
10432
10433 # Used on cygwin: assembler.
10434 AS="$AS"
10435
10436 # The name of the directory that contains temporary libtool files.
10437 objdir=$objdir
10438
10439 # How to create reloadable object files.
10440 reload_flag=$lt_reload_flag
10441 reload_cmds=$lt_reload_cmds
10442
10443 # How to pass a linker flag through the compiler.
10444 wl=$lt_lt_prog_compiler_wl
10445
10446 # Object file suffix (normally "o").
10447 objext="$ac_objext"
10448
10449 # Old archive suffix (normally "a").
10450 libext="$libext"
10451
10452 # Shared library suffix (normally ".so").
10453 shrext_cmds='$shrext_cmds'
10454
10455 # Executable file suffix (normally "").
10456 exeext="$exeext"
10457
10458 # Additional compiler flags for building library objects.
10459 pic_flag=$lt_lt_prog_compiler_pic
10460 pic_mode=$pic_mode
10461
10462 # What is the maximum length of a command?
10463 max_cmd_len=$lt_cv_sys_max_cmd_len
10464
10465 # Does compiler simultaneously support -c and -o options?
10466 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10467
10468 # Must we lock files when doing compilation?
10469 need_locks=$lt_need_locks
10470
10471 # Do we need the lib prefix for modules?
10472 need_lib_prefix=$need_lib_prefix
10473
10474 # Do we need a version for libraries?
10475 need_version=$need_version
10476
10477 # Whether dlopen is supported.
10478 dlopen_support=$enable_dlopen
10479
10480 # Whether dlopen of programs is supported.
10481 dlopen_self=$enable_dlopen_self
10482
10483 # Whether dlopen of statically linked programs is supported.
10484 dlopen_self_static=$enable_dlopen_self_static
10485
10486 # Compiler flag to prevent dynamic linking.
10487 link_static_flag=$lt_lt_prog_compiler_static
10488
10489 # Compiler flag to turn off builtin functions.
10490 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10491
10492 # Compiler flag to allow reflexive dlopens.
10493 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10494
10495 # Compiler flag to generate shared objects directly from archives.
10496 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10497
10498 # Compiler flag to generate thread-safe objects.
10499 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10500
10501 # Library versioning type.
10502 version_type=$version_type
10503
10504 # Format of library name prefix.
10505 libname_spec=$lt_libname_spec
10506
10507 # List of archive names.  First name is the real one, the rest are links.
10508 # The last name is the one that the linker finds with -lNAME.
10509 library_names_spec=$lt_library_names_spec
10510
10511 # The coded name of the library, if different from the real name.
10512 soname_spec=$lt_soname_spec
10513
10514 # Commands used to build and install an old-style archive.
10515 RANLIB=$lt_RANLIB
10516 old_archive_cmds=$lt_old_archive_cmds
10517 old_postinstall_cmds=$lt_old_postinstall_cmds
10518 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10519
10520 # Create an old-style archive from a shared archive.
10521 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10522
10523 # Create a temporary old-style archive to link instead of a shared archive.
10524 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10525
10526 # Commands used to build and install a shared archive.
10527 archive_cmds=$lt_archive_cmds
10528 archive_expsym_cmds=$lt_archive_expsym_cmds
10529 postinstall_cmds=$lt_postinstall_cmds
10530 postuninstall_cmds=$lt_postuninstall_cmds
10531
10532 # Commands used to build a loadable module (assumed same as above if empty)
10533 module_cmds=$lt_module_cmds
10534 module_expsym_cmds=$lt_module_expsym_cmds
10535
10536 # Commands to strip libraries.
10537 old_striplib=$lt_old_striplib
10538 striplib=$lt_striplib
10539
10540 # Dependencies to place before the objects being linked to create a
10541 # shared library.
10542 predep_objects=$lt_predep_objects
10543
10544 # Dependencies to place after the objects being linked to create a
10545 # shared library.
10546 postdep_objects=$lt_postdep_objects
10547
10548 # Dependencies to place before the objects being linked to create a
10549 # shared library.
10550 predeps=$lt_predeps
10551
10552 # Dependencies to place after the objects being linked to create a
10553 # shared library.
10554 postdeps=$lt_postdeps
10555
10556 # The library search path used internally by the compiler when linking
10557 # a shared library.
10558 compiler_lib_search_path=$lt_compiler_lib_search_path
10559
10560 # Method to check whether dependent libraries are shared objects.
10561 deplibs_check_method=$lt_deplibs_check_method
10562
10563 # Command to use when deplibs_check_method == file_magic.
10564 file_magic_cmd=$lt_file_magic_cmd
10565
10566 # Flag that allows shared libraries with undefined symbols to be built.
10567 allow_undefined_flag=$lt_allow_undefined_flag
10568
10569 # Flag that forces no undefined symbols.
10570 no_undefined_flag=$lt_no_undefined_flag
10571
10572 # Commands used to finish a libtool library installation in a directory.
10573 finish_cmds=$lt_finish_cmds
10574
10575 # Same as above, but a single script fragment to be evaled but not shown.
10576 finish_eval=$lt_finish_eval
10577
10578 # Take the output of nm and produce a listing of raw symbols and C names.
10579 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10580
10581 # Transform the output of nm in a proper C declaration
10582 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10583
10584 # Transform the output of nm in a C name address pair
10585 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10586
10587 # This is the shared library runtime path variable.
10588 runpath_var=$runpath_var
10589
10590 # This is the shared library path variable.
10591 shlibpath_var=$shlibpath_var
10592
10593 # Is shlibpath searched before the hard-coded library search path?
10594 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10595
10596 # How to hardcode a shared library path into an executable.
10597 hardcode_action=$hardcode_action
10598
10599 # Whether we should hardcode library paths into libraries.
10600 hardcode_into_libs=$hardcode_into_libs
10601
10602 # Flag to hardcode \$libdir into a binary during linking.
10603 # This must work even if \$libdir does not exist.
10604 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10605
10606 # If ld is used when linking, flag to hardcode \$libdir into
10607 # a binary during linking. This must work even if \$libdir does
10608 # not exist.
10609 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10610
10611 # Whether we need a single -rpath flag with a separated argument.
10612 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10613
10614 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10615 # resulting binary.
10616 hardcode_direct=$hardcode_direct
10617
10618 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10619 # resulting binary.
10620 hardcode_minus_L=$hardcode_minus_L
10621
10622 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10623 # the resulting binary.
10624 hardcode_shlibpath_var=$hardcode_shlibpath_var
10625
10626 # Set to yes if building a shared library automatically hardcodes DIR into the library
10627 # and all subsequent libraries and executables linked against it.
10628 hardcode_automatic=$hardcode_automatic
10629
10630 # Variables whose values should be saved in libtool wrapper scripts and
10631 # restored at relink time.
10632 variables_saved_for_relink="$variables_saved_for_relink"
10633
10634 # Whether libtool must link a program against all its dependency libraries.
10635 link_all_deplibs=$link_all_deplibs
10636
10637 # Compile-time system search path for libraries
10638 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10639
10640 # Run-time system search path for libraries
10641 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10642
10643 # Fix the shell variable \$srcfile for the compiler.
10644 fix_srcfile_path="$fix_srcfile_path"
10645
10646 # Set to yes if exported symbols are required.
10647 always_export_symbols=$always_export_symbols
10648
10649 # The commands to list exported symbols.
10650 export_symbols_cmds=$lt_export_symbols_cmds
10651
10652 # The commands to extract the exported symbol list from a shared archive.
10653 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10654
10655 # Symbols that should not be listed in the preloaded symbols.
10656 exclude_expsyms=$lt_exclude_expsyms
10657
10658 # Symbols that must always be exported.
10659 include_expsyms=$lt_include_expsyms
10660
10661 # ### END LIBTOOL CONFIG
10662
10663 __EOF__
10664
10665
10666   case $host_os in
10667   aix3*)
10668     cat <<\EOF >> "$cfgfile"
10669
10670 # AIX sometimes has problems with the GCC collect2 program.  For some
10671 # reason, if we set the COLLECT_NAMES environment variable, the problems
10672 # vanish in a puff of smoke.
10673 if test "X${COLLECT_NAMES+set}" != Xset; then
10674   COLLECT_NAMES=
10675   export COLLECT_NAMES
10676 fi
10677 EOF
10678     ;;
10679   esac
10680
10681   # We use sed instead of cat because bash on DJGPP gets confused if
10682   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10683   # text mode, it properly converts lines to CR/LF.  This bash problem
10684   # is reportedly fixed, but why not run on old versions too?
10685   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10686
10687   mv -f "$cfgfile" "$ofile" || \
10688     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10689   chmod +x "$ofile"
10690
10691 else
10692   # If there is no Makefile yet, we rely on a make rule to execute
10693   # `config.status --recheck' to rerun these tests and create the
10694   # libtool script then.
10695   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10696   if test -f "$ltmain_in"; then
10697     test -f Makefile && make "$ltmain"
10698   fi
10699 fi
10700
10701
10702 ac_ext=c
10703 ac_cpp='$CPP $CPPFLAGS'
10704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10707
10708 CC="$lt_save_CC"
10709
10710
10711 # Check whether --with-tags or --without-tags was given.
10712 if test "${with_tags+set}" = set; then
10713   withval="$with_tags"
10714   tagnames="$withval"
10715 fi;
10716
10717 if test -f "$ltmain" && test -n "$tagnames"; then
10718   if test ! -f "${ofile}"; then
10719     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10720 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10721   fi
10722
10723   if test -z "$LTCC"; then
10724     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10725     if test -z "$LTCC"; then
10726       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10727 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10728     else
10729       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10730 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10731     fi
10732   fi
10733   if test -z "$LTCFLAGS"; then
10734     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10735   fi
10736
10737   # Extract list of available tagged configurations in $ofile.
10738   # Note that this assumes the entire list is on one line.
10739   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10740
10741   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10742   for tagname in $tagnames; do
10743     IFS="$lt_save_ifs"
10744     # Check whether tagname contains only valid characters
10745     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10746     "") ;;
10747     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10748 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10749    { (exit 1); exit 1; }; }
10750         ;;
10751     esac
10752
10753     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10754     then
10755       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10756 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10757    { (exit 1); exit 1; }; }
10758     fi
10759
10760     # Update the list of available tags.
10761     if test -n "$tagname"; then
10762       echo appending configuration tag \"$tagname\" to $ofile
10763
10764       case $tagname in
10765       CXX)
10766         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10767             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10768             (test "X$CXX" != "Xg++"))) ; then
10769           ac_ext=cc
10770 ac_cpp='$CXXCPP $CPPFLAGS'
10771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10774
10775
10776
10777
10778 archive_cmds_need_lc_CXX=no
10779 allow_undefined_flag_CXX=
10780 always_export_symbols_CXX=no
10781 archive_expsym_cmds_CXX=
10782 export_dynamic_flag_spec_CXX=
10783 hardcode_direct_CXX=no
10784 hardcode_libdir_flag_spec_CXX=
10785 hardcode_libdir_flag_spec_ld_CXX=
10786 hardcode_libdir_separator_CXX=
10787 hardcode_minus_L_CXX=no
10788 hardcode_shlibpath_var_CXX=unsupported
10789 hardcode_automatic_CXX=no
10790 module_cmds_CXX=
10791 module_expsym_cmds_CXX=
10792 link_all_deplibs_CXX=unknown
10793 old_archive_cmds_CXX=$old_archive_cmds
10794 no_undefined_flag_CXX=
10795 whole_archive_flag_spec_CXX=
10796 enable_shared_with_static_runtimes_CXX=no
10797
10798 # Dependencies to place before and after the object being linked:
10799 predep_objects_CXX=
10800 postdep_objects_CXX=
10801 predeps_CXX=
10802 postdeps_CXX=
10803 compiler_lib_search_path_CXX=
10804
10805 # Source file extension for C++ test sources.
10806 ac_ext=cpp
10807
10808 # Object file extension for compiled C++ test sources.
10809 objext=o
10810 objext_CXX=$objext
10811
10812 # Code to be used in simple compile tests
10813 lt_simple_compile_test_code="int some_variable = 0;\n"
10814
10815 # Code to be used in simple link tests
10816 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10817
10818 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10819
10820 # If no C compiler was specified, use CC.
10821 LTCC=${LTCC-"$CC"}
10822
10823 # If no C compiler flags were specified, use CFLAGS.
10824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10825
10826 # Allow CC to be a program name with arguments.
10827 compiler=$CC
10828
10829
10830 # save warnings/boilerplate of simple test code
10831 ac_outfile=conftest.$ac_objext
10832 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10833 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10834 _lt_compiler_boilerplate=`cat conftest.err`
10835 $rm conftest*
10836
10837 ac_outfile=conftest.$ac_objext
10838 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10839 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10840 _lt_linker_boilerplate=`cat conftest.err`
10841 $rm conftest*
10842
10843
10844 # Allow CC to be a program name with arguments.
10845 lt_save_CC=$CC
10846 lt_save_LD=$LD
10847 lt_save_GCC=$GCC
10848 GCC=$GXX
10849 lt_save_with_gnu_ld=$with_gnu_ld
10850 lt_save_path_LD=$lt_cv_path_LD
10851 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10852   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10853 else
10854   $as_unset lt_cv_prog_gnu_ld
10855 fi
10856 if test -n "${lt_cv_path_LDCXX+set}"; then
10857   lt_cv_path_LD=$lt_cv_path_LDCXX
10858 else
10859   $as_unset lt_cv_path_LD
10860 fi
10861 test -z "${LDCXX+set}" || LD=$LDCXX
10862 CC=${CXX-"c++"}
10863 compiler=$CC
10864 compiler_CXX=$CC
10865 for cc_temp in $compiler""; do
10866   case $cc_temp in
10867     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10868     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10869     \-*) ;;
10870     *) break;;
10871   esac
10872 done
10873 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10874
10875
10876 # We don't want -fno-exception wen compiling C++ code, so set the
10877 # no_builtin_flag separately
10878 if test "$GXX" = yes; then
10879   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10880 else
10881   lt_prog_compiler_no_builtin_flag_CXX=
10882 fi
10883
10884 if test "$GXX" = yes; then
10885   # Set up default GNU C++ configuration
10886
10887
10888 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10889 if test "${with_gnu_ld+set}" = set; then
10890   withval="$with_gnu_ld"
10891   test "$withval" = no || with_gnu_ld=yes
10892 else
10893   with_gnu_ld=no
10894 fi;
10895 ac_prog=ld
10896 if test "$GCC" = yes; then
10897   # Check if gcc -print-prog-name=ld gives a path.
10898   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10899 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10900   case $host in
10901   *-*-mingw*)
10902     # gcc leaves a trailing carriage return which upsets mingw
10903     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10904   *)
10905     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10906   esac
10907   case $ac_prog in
10908     # Accept absolute paths.
10909     [\\/]* | ?:[\\/]*)
10910       re_direlt='/[^/][^/]*/\.\./'
10911       # Canonicalize the pathname of ld
10912       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10913       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10914         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10915       done
10916       test -z "$LD" && LD="$ac_prog"
10917       ;;
10918   "")
10919     # If it fails, then pretend we aren't using GCC.
10920     ac_prog=ld
10921     ;;
10922   *)
10923     # If it is relative, then search for the first ld in PATH.
10924     with_gnu_ld=unknown
10925     ;;
10926   esac
10927 elif test "$with_gnu_ld" = yes; then
10928   echo "$as_me:$LINENO: checking for GNU ld" >&5
10929 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10930 else
10931   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10932 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10933 fi
10934 if test "${lt_cv_path_LD+set}" = set; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937   if test -z "$LD"; then
10938   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10939   for ac_dir in $PATH; do
10940     IFS="$lt_save_ifs"
10941     test -z "$ac_dir" && ac_dir=.
10942     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10943       lt_cv_path_LD="$ac_dir/$ac_prog"
10944       # Check to see if the program is GNU ld.  I'd rather use --version,
10945       # but apparently some variants of GNU ld only accept -v.
10946       # Break only if it was the GNU/non-GNU ld that we prefer.
10947       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10948       *GNU* | *'with BFD'*)
10949         test "$with_gnu_ld" != no && break
10950         ;;
10951       *)
10952         test "$with_gnu_ld" != yes && break
10953         ;;
10954       esac
10955     fi
10956   done
10957   IFS="$lt_save_ifs"
10958 else
10959   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10960 fi
10961 fi
10962
10963 LD="$lt_cv_path_LD"
10964 if test -n "$LD"; then
10965   echo "$as_me:$LINENO: result: $LD" >&5
10966 echo "${ECHO_T}$LD" >&6
10967 else
10968   echo "$as_me:$LINENO: result: no" >&5
10969 echo "${ECHO_T}no" >&6
10970 fi
10971 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10972 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10973    { (exit 1); exit 1; }; }
10974 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10975 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10976 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10977   echo $ECHO_N "(cached) $ECHO_C" >&6
10978 else
10979   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10980 case `$LD -v 2>&1 </dev/null` in
10981 *GNU* | *'with BFD'*)
10982   lt_cv_prog_gnu_ld=yes
10983   ;;
10984 *)
10985   lt_cv_prog_gnu_ld=no
10986   ;;
10987 esac
10988 fi
10989 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10990 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10991 with_gnu_ld=$lt_cv_prog_gnu_ld
10992
10993
10994
10995   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10996   # archiving commands below assume that GNU ld is being used.
10997   if test "$with_gnu_ld" = yes; then
10998     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10999     archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11000
11001     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11002     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11003
11004     # If archive_cmds runs LD, not CC, wlarc should be empty
11005     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11006     #     investigate it a little bit more. (MM)
11007     wlarc='${wl}'
11008
11009     # ancient GNU ld didn't support --whole-archive et. al.
11010     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11011         grep 'no-whole-archive' > /dev/null; then
11012       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11013     else
11014       whole_archive_flag_spec_CXX=
11015     fi
11016   else
11017     with_gnu_ld=no
11018     wlarc=
11019
11020     # A generic and very simple default shared library creation
11021     # command for GNU C++ for the case where it uses the native
11022     # linker, instead of GNU ld.  If possible, this setting should
11023     # overridden to take advantage of the native linker features on
11024     # the platform it is being used on.
11025     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11026   fi
11027
11028   # Commands to make compiler produce verbose output that lists
11029   # what "hidden" libraries, object files and flags are used when
11030   # linking a shared library.
11031   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11032
11033 else
11034   GXX=no
11035   with_gnu_ld=no
11036   wlarc=
11037 fi
11038
11039 # PORTME: fill in a description of your system's C++ link characteristics
11040 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11041 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11042 ld_shlibs_CXX=yes
11043 case $host_os in
11044   aix3*)
11045     # FIXME: insert proper C++ library support
11046     ld_shlibs_CXX=no
11047     ;;
11048   aix4* | aix5*)
11049     if test "$host_cpu" = ia64; then
11050       # On IA64, the linker does run time linking by default, so we don't
11051       # have to do anything special.
11052       aix_use_runtimelinking=no
11053       exp_sym_flag='-Bexport'
11054       no_entry_flag=""
11055     else
11056       aix_use_runtimelinking=no
11057
11058       # Test if we are trying to use run time linking or normal
11059       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11060       # need to do runtime linking.
11061       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11062         for ld_flag in $LDFLAGS; do
11063           case $ld_flag in
11064           *-brtl*)
11065             aix_use_runtimelinking=yes
11066             break
11067             ;;
11068           esac
11069         done
11070         ;;
11071       esac
11072
11073       exp_sym_flag='-bexport'
11074       no_entry_flag='-bnoentry'
11075     fi
11076
11077     # When large executables or shared objects are built, AIX ld can
11078     # have problems creating the table of contents.  If linking a library
11079     # or program results in "error TOC overflow" add -mminimal-toc to
11080     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11081     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11082
11083     archive_cmds_CXX=''
11084     hardcode_direct_CXX=yes
11085     hardcode_libdir_separator_CXX=':'
11086     link_all_deplibs_CXX=yes
11087
11088     if test "$GXX" = yes; then
11089       case $host_os in aix4.[012]|aix4.[012].*)
11090       # We only want to do this on AIX 4.2 and lower, the check
11091       # below for broken collect2 doesn't work under 4.3+
11092         collect2name=`${CC} -print-prog-name=collect2`
11093         if test -f "$collect2name" && \
11094            strings "$collect2name" | grep resolve_lib_name >/dev/null
11095         then
11096           # We have reworked collect2
11097           hardcode_direct_CXX=yes
11098         else
11099           # We have old collect2
11100           hardcode_direct_CXX=unsupported
11101           # It fails to find uninstalled libraries when the uninstalled
11102           # path is not listed in the libpath.  Setting hardcode_minus_L
11103           # to unsupported forces relinking
11104           hardcode_minus_L_CXX=yes
11105           hardcode_libdir_flag_spec_CXX='-L$libdir'
11106           hardcode_libdir_separator_CXX=
11107         fi
11108         ;;
11109       esac
11110       shared_flag='-shared'
11111       if test "$aix_use_runtimelinking" = yes; then
11112         shared_flag="$shared_flag "'${wl}-G'
11113       fi
11114     else
11115       # not using gcc
11116       if test "$host_cpu" = ia64; then
11117         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11118         # chokes on -Wl,-G. The following line is correct:
11119         shared_flag='-G'
11120       else
11121         if test "$aix_use_runtimelinking" = yes; then
11122           shared_flag='${wl}-G'
11123         else
11124           shared_flag='${wl}-bM:SRE'
11125         fi
11126       fi
11127     fi
11128
11129     # It seems that -bexpall does not export symbols beginning with
11130     # underscore (_), so it is better to generate a list of symbols to export.
11131     always_export_symbols_CXX=yes
11132     if test "$aix_use_runtimelinking" = yes; then
11133       # Warning - without using the other runtime loading flags (-brtl),
11134       # -berok will link without error, but may produce a broken library.
11135       allow_undefined_flag_CXX='-berok'
11136       # Determine the default libpath from the value encoded in an empty executable.
11137       cat >conftest.$ac_ext <<_ACEOF
11138 /* confdefs.h.  */
11139 _ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h.  */
11143
11144 int
11145 main ()
11146 {
11147
11148   ;
11149   return 0;
11150 }
11151 _ACEOF
11152 rm -f conftest.$ac_objext conftest$ac_exeext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11154   (eval $ac_link) 2>conftest.er1
11155   ac_status=$?
11156   grep -v '^ *+' conftest.er1 >conftest.err
11157   rm -f conftest.er1
11158   cat conftest.err >&5
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); } &&
11161          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163   (eval $ac_try) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; } &&
11167          { ac_try='test -s conftest$ac_exeext'
11168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169   (eval $ac_try) 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; }; then
11173
11174 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11175 }'`
11176 # Check for a 64-bit object if we didn't find anything.
11177 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11178 }'`; fi
11179 else
11180   echo "$as_me: failed program was:" >&5
11181 sed 's/^/| /' conftest.$ac_ext >&5
11182
11183 fi
11184 rm -f conftest.err conftest.$ac_objext \
11185       conftest$ac_exeext conftest.$ac_ext
11186 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11187
11188       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11189
11190       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11191      else
11192       if test "$host_cpu" = ia64; then
11193         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11194         allow_undefined_flag_CXX="-z nodefs"
11195         archive_expsym_cmds_CXX="\$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"
11196       else
11197         # Determine the default libpath from the value encoded in an empty executable.
11198         cat >conftest.$ac_ext <<_ACEOF
11199 /* confdefs.h.  */
11200 _ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h.  */
11204
11205 int
11206 main ()
11207 {
11208
11209   ;
11210   return 0;
11211 }
11212 _ACEOF
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215   (eval $ac_link) 2>conftest.er1
11216   ac_status=$?
11217   grep -v '^ *+' conftest.er1 >conftest.err
11218   rm -f conftest.er1
11219   cat conftest.err >&5
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); } &&
11222          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224   (eval $ac_try) 2>&5
11225   ac_status=$?
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); }; } &&
11228          { ac_try='test -s conftest$ac_exeext'
11229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230   (eval $ac_try) 2>&5
11231   ac_status=$?
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); }; }; then
11234
11235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11236 }'`
11237 # Check for a 64-bit object if we didn't find anything.
11238 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11239 }'`; fi
11240 else
11241   echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11243
11244 fi
11245 rm -f conftest.err conftest.$ac_objext \
11246       conftest$ac_exeext conftest.$ac_ext
11247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11248
11249         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11250         # Warning - without using the other run time loading flags,
11251         # -berok will link without error, but may produce a broken library.
11252         no_undefined_flag_CXX=' ${wl}-bernotok'
11253         allow_undefined_flag_CXX=' ${wl}-berok'
11254         # Exported symbols can be pulled into shared objects from archives
11255         whole_archive_flag_spec_CXX='$convenience'
11256         archive_cmds_need_lc_CXX=yes
11257         # This is similar to how AIX traditionally builds its shared libraries.
11258         archive_expsym_cmds_CXX="\$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'
11259       fi
11260     fi
11261     ;;
11262
11263   beos*)
11264     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11265       allow_undefined_flag_CXX=unsupported
11266       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11267       # support --undefined.  This deserves some investigation.  FIXME
11268       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11269     else
11270       ld_shlibs_CXX=no
11271     fi
11272     ;;
11273
11274   chorus*)
11275     case $cc_basename in
11276       *)
11277         # FIXME: insert proper C++ library support
11278         ld_shlibs_CXX=no
11279         ;;
11280     esac
11281     ;;
11282
11283   cygwin* | mingw* | pw32*)
11284     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11285     # as there is no search path for DLLs.
11286     hardcode_libdir_flag_spec_CXX='-L$libdir'
11287     allow_undefined_flag_CXX=unsupported
11288     always_export_symbols_CXX=no
11289     enable_shared_with_static_runtimes_CXX=yes
11290
11291     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11292       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11293       # If the export-symbols file already is a .def file (1st line
11294       # is EXPORTS), use it as is; otherwise, prepend...
11295       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11296         cp $export_symbols $output_objdir/$soname.def;
11297       else
11298         echo EXPORTS > $output_objdir/$soname.def;
11299         cat $export_symbols >> $output_objdir/$soname.def;
11300       fi~
11301       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11302     else
11303       ld_shlibs_CXX=no
11304     fi
11305   ;;
11306       darwin* | rhapsody*)
11307         case $host_os in
11308         rhapsody* | darwin1.[012])
11309          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11310          ;;
11311        *) # Darwin 1.3 on
11312          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11313            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11314          else
11315            case ${MACOSX_DEPLOYMENT_TARGET} in
11316              10.[012])
11317                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11318                ;;
11319              10.*)
11320                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11321                ;;
11322            esac
11323          fi
11324          ;;
11325         esac
11326       archive_cmds_need_lc_CXX=no
11327       hardcode_direct_CXX=no
11328       hardcode_automatic_CXX=yes
11329       hardcode_shlibpath_var_CXX=unsupported
11330       whole_archive_flag_spec_CXX=''
11331       link_all_deplibs_CXX=yes
11332
11333     if test "$GXX" = yes ; then
11334       lt_int_apple_cc_single_mod=no
11335       output_verbose_link_cmd='echo'
11336       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11337        lt_int_apple_cc_single_mod=yes
11338       fi
11339       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11340        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11341       else
11342           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11343         fi
11344         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11345         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11346           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11347             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11348           else
11349             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11350           fi
11351             module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
11352       else
11353       case $cc_basename in
11354         xlc*)
11355          output_verbose_link_cmd='echo'
11356           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11357           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11358           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11359           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11360           module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
11361           ;;
11362        *)
11363          ld_shlibs_CXX=no
11364           ;;
11365       esac
11366       fi
11367         ;;
11368
11369   dgux*)
11370     case $cc_basename in
11371       ec++*)
11372         # FIXME: insert proper C++ library support
11373         ld_shlibs_CXX=no
11374         ;;
11375       ghcx*)
11376         # Green Hills C++ Compiler
11377         # FIXME: insert proper C++ library support
11378         ld_shlibs_CXX=no
11379         ;;
11380       *)
11381         # FIXME: insert proper C++ library support
11382         ld_shlibs_CXX=no
11383         ;;
11384     esac
11385     ;;
11386   freebsd[12]*)
11387     # C++ shared libraries reported to be fairly broken before switch to ELF
11388     ld_shlibs_CXX=no
11389     ;;
11390   freebsd-elf*)
11391     archive_cmds_need_lc_CXX=no
11392     ;;
11393   freebsd* | kfreebsd*-gnu | dragonfly*)
11394     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11395     # conventions
11396     ld_shlibs_CXX=yes
11397     ;;
11398   gnu*)
11399     ;;
11400   hpux9*)
11401     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11402     hardcode_libdir_separator_CXX=:
11403     export_dynamic_flag_spec_CXX='${wl}-E'
11404     hardcode_direct_CXX=yes
11405     hardcode_minus_L_CXX=yes # Not in the search PATH,
11406                                 # but as the default
11407                                 # location of the library.
11408
11409     case $cc_basename in
11410     CC*)
11411       # FIXME: insert proper C++ library support
11412       ld_shlibs_CXX=no
11413       ;;
11414     aCC*)
11415       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11416       # Commands to make compiler produce verbose output that lists
11417       # what "hidden" libraries, object files and flags are used when
11418       # linking a shared library.
11419       #
11420       # There doesn't appear to be a way to prevent this compiler from
11421       # explicitly linking system object files so we need to strip them
11422       # from the output so that they don't get included in the library
11423       # dependencies.
11424       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11425       ;;
11426     *)
11427       if test "$GXX" = yes; then
11428         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11429       else
11430         # FIXME: insert proper C++ library support
11431         ld_shlibs_CXX=no
11432       fi
11433       ;;
11434     esac
11435     ;;
11436   hpux10*|hpux11*)
11437     if test $with_gnu_ld = no; then
11438       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11439       hardcode_libdir_separator_CXX=:
11440
11441       case $host_cpu in
11442       hppa*64*|ia64*)
11443         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11444         ;;
11445       *)
11446         export_dynamic_flag_spec_CXX='${wl}-E'
11447         ;;
11448       esac
11449     fi
11450     case $host_cpu in
11451     hppa*64*|ia64*)
11452       hardcode_direct_CXX=no
11453       hardcode_shlibpath_var_CXX=no
11454       ;;
11455     *)
11456       hardcode_direct_CXX=yes
11457       hardcode_minus_L_CXX=yes # Not in the search PATH,
11458                                               # but as the default
11459                                               # location of the library.
11460       ;;
11461     esac
11462
11463     case $cc_basename in
11464       CC*)
11465         # FIXME: insert proper C++ library support
11466         ld_shlibs_CXX=no
11467         ;;
11468       aCC*)
11469         case $host_cpu in
11470         hppa*64*)
11471           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11472           ;;
11473         ia64*)
11474           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11475           ;;
11476         *)
11477           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11478           ;;
11479         esac
11480         # Commands to make compiler produce verbose output that lists
11481         # what "hidden" libraries, object files and flags are used when
11482         # linking a shared library.
11483         #
11484         # There doesn't appear to be a way to prevent this compiler from
11485         # explicitly linking system object files so we need to strip them
11486         # from the output so that they don't get included in the library
11487         # dependencies.
11488         output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11489         ;;
11490       *)
11491         if test "$GXX" = yes; then
11492           if test $with_gnu_ld = no; then
11493             case $host_cpu in
11494             hppa*64*)
11495               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11496               ;;
11497             ia64*)
11498               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11499               ;;
11500             *)
11501               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11502               ;;
11503             esac
11504           fi
11505         else
11506           # FIXME: insert proper C++ library support
11507           ld_shlibs_CXX=no
11508         fi
11509         ;;
11510     esac
11511     ;;
11512   interix3*)
11513     hardcode_direct_CXX=no
11514     hardcode_shlibpath_var_CXX=no
11515     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11516     export_dynamic_flag_spec_CXX='${wl}-E'
11517     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11518     # Instead, shared libraries are loaded at an image base (0x10000000 by
11519     # default) and relocated if they conflict, which is a slow very memory
11520     # consuming and fragmenting process.  To avoid this, we pick a random,
11521     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11522     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11523     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11524     archive_expsym_cmds_CXX='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'
11525     ;;
11526   irix5* | irix6*)
11527     case $cc_basename in
11528       CC*)
11529         # SGI C++
11530         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11531
11532         # Archives containing C++ object files must be created using
11533         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11534         # necessary to make sure instantiated templates are included
11535         # in the archive.
11536         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11537         ;;
11538       *)
11539         if test "$GXX" = yes; then
11540           if test "$with_gnu_ld" = no; then
11541             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11542           else
11543             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11544           fi
11545         fi
11546         link_all_deplibs_CXX=yes
11547         ;;
11548     esac
11549     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11550     hardcode_libdir_separator_CXX=:
11551     ;;
11552   linux*)
11553     case $cc_basename in
11554       KCC*)
11555         # Kuck and Associates, Inc. (KAI) C++ Compiler
11556
11557         # KCC will only create a shared library if the output file
11558         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11559         # to its proper name (with version) after linking.
11560         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11561         archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11562         # Commands to make compiler produce verbose output that lists
11563         # what "hidden" libraries, object files and flags are used when
11564         # linking a shared library.
11565         #
11566         # There doesn't appear to be a way to prevent this compiler from
11567         # explicitly linking system object files so we need to strip them
11568         # from the output so that they don't get included in the library
11569         # dependencies.
11570         output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11571
11572         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11573         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11574
11575         # Archives containing C++ object files must be created using
11576         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11577         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11578         ;;
11579       icpc*)
11580         # Intel C++
11581         with_gnu_ld=yes
11582         # version 8.0 and above of icpc choke on multiply defined symbols
11583         # if we add $predep_objects and $postdep_objects, however 7.1 and
11584         # earlier do not add the objects themselves.
11585         case `$CC -V 2>&1` in
11586         *"Version 7."*)
11587           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11588           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11589           ;;
11590         *)  # Version 8.0 or newer
11591           tmp_idyn=
11592           case $host_cpu in
11593             ia64*) tmp_idyn=' -i_dynamic';;
11594           esac
11595           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11596           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11597           ;;
11598         esac
11599         archive_cmds_need_lc_CXX=no
11600         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11601         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11602         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11603         ;;
11604       pgCC*)
11605         # Portland Group C++ compiler
11606         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11607         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11608
11609         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11610         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11611         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11612         ;;
11613       cxx*)
11614         # Compaq C++
11615         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11616         archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11617
11618         runpath_var=LD_RUN_PATH
11619         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11620         hardcode_libdir_separator_CXX=:
11621
11622         # Commands to make compiler produce verbose output that lists
11623         # what "hidden" libraries, object files and flags are used when
11624         # linking a shared library.
11625         #
11626         # There doesn't appear to be a way to prevent this compiler from
11627         # explicitly linking system object files so we need to strip them
11628         # from the output so that they don't get included in the library
11629         # dependencies.
11630         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11631         ;;
11632     esac
11633     ;;
11634   lynxos*)
11635     # FIXME: insert proper C++ library support
11636     ld_shlibs_CXX=no
11637     ;;
11638   m88k*)
11639     # FIXME: insert proper C++ library support
11640     ld_shlibs_CXX=no
11641     ;;
11642   mvs*)
11643     case $cc_basename in
11644       cxx*)
11645         # FIXME: insert proper C++ library support
11646         ld_shlibs_CXX=no
11647         ;;
11648       *)
11649         # FIXME: insert proper C++ library support
11650         ld_shlibs_CXX=no
11651         ;;
11652     esac
11653     ;;
11654   netbsd*)
11655     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11656       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11657       wlarc=
11658       hardcode_libdir_flag_spec_CXX='-R$libdir'
11659       hardcode_direct_CXX=yes
11660       hardcode_shlibpath_var_CXX=no
11661     fi
11662     # Workaround some broken pre-1.5 toolchains
11663     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11664     ;;
11665   openbsd2*)
11666     # C++ shared libraries are fairly broken
11667     ld_shlibs_CXX=no
11668     ;;
11669   openbsd*)
11670     hardcode_direct_CXX=yes
11671     hardcode_shlibpath_var_CXX=no
11672     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11673     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11674     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11675       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11676       export_dynamic_flag_spec_CXX='${wl}-E'
11677       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11678     fi
11679     output_verbose_link_cmd='echo'
11680     ;;
11681   osf3*)
11682     case $cc_basename in
11683       KCC*)
11684         # Kuck and Associates, Inc. (KAI) C++ Compiler
11685
11686         # KCC will only create a shared library if the output file
11687         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11688         # to its proper name (with version) after linking.
11689         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11690
11691         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11692         hardcode_libdir_separator_CXX=:
11693
11694         # Archives containing C++ object files must be created using
11695         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11696         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11697
11698         ;;
11699       RCC*)
11700         # Rational C++ 2.4.1
11701         # FIXME: insert proper C++ library support
11702         ld_shlibs_CXX=no
11703         ;;
11704       cxx*)
11705         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11706         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11707
11708         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11709         hardcode_libdir_separator_CXX=:
11710
11711         # Commands to make compiler produce verbose output that lists
11712         # what "hidden" libraries, object files and flags are used when
11713         # linking a shared library.
11714         #
11715         # There doesn't appear to be a way to prevent this compiler from
11716         # explicitly linking system object files so we need to strip them
11717         # from the output so that they don't get included in the library
11718         # dependencies.
11719         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11720         ;;
11721       *)
11722         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11723           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11724           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11725
11726           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11727           hardcode_libdir_separator_CXX=:
11728
11729           # Commands to make compiler produce verbose output that lists
11730           # what "hidden" libraries, object files and flags are used when
11731           # linking a shared library.
11732           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11733
11734         else
11735           # FIXME: insert proper C++ library support
11736           ld_shlibs_CXX=no
11737         fi
11738         ;;
11739     esac
11740     ;;
11741   osf4* | osf5*)
11742     case $cc_basename in
11743       KCC*)
11744         # Kuck and Associates, Inc. (KAI) C++ Compiler
11745
11746         # KCC will only create a shared library if the output file
11747         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11748         # to its proper name (with version) after linking.
11749         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11750
11751         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11752         hardcode_libdir_separator_CXX=:
11753
11754         # Archives containing C++ object files must be created using
11755         # the KAI C++ compiler.
11756         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11757         ;;
11758       RCC*)
11759         # Rational C++ 2.4.1
11760         # FIXME: insert proper C++ library support
11761         ld_shlibs_CXX=no
11762         ;;
11763       cxx*)
11764         allow_undefined_flag_CXX=' -expect_unresolved \*'
11765         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11766         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11767           echo "-hidden">> $lib.exp~
11768           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11769           $rm $lib.exp'
11770
11771         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11772         hardcode_libdir_separator_CXX=:
11773
11774         # Commands to make compiler produce verbose output that lists
11775         # what "hidden" libraries, object files and flags are used when
11776         # linking a shared library.
11777         #
11778         # There doesn't appear to be a way to prevent this compiler from
11779         # explicitly linking system object files so we need to strip them
11780         # from the output so that they don't get included in the library
11781         # dependencies.
11782         output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11783         ;;
11784       *)
11785         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11786           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11787          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11788
11789           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11790           hardcode_libdir_separator_CXX=:
11791
11792           # Commands to make compiler produce verbose output that lists
11793           # what "hidden" libraries, object files and flags are used when
11794           # linking a shared library.
11795           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11796
11797         else
11798           # FIXME: insert proper C++ library support
11799           ld_shlibs_CXX=no
11800         fi
11801         ;;
11802     esac
11803     ;;
11804   psos*)
11805     # FIXME: insert proper C++ library support
11806     ld_shlibs_CXX=no
11807     ;;
11808   sunos4*)
11809     case $cc_basename in
11810       CC*)
11811         # Sun C++ 4.x
11812         # FIXME: insert proper C++ library support
11813         ld_shlibs_CXX=no
11814         ;;
11815       lcc*)
11816         # Lucid
11817         # FIXME: insert proper C++ library support
11818         ld_shlibs_CXX=no
11819         ;;
11820       *)
11821         # FIXME: insert proper C++ library support
11822         ld_shlibs_CXX=no
11823         ;;
11824     esac
11825     ;;
11826   solaris*)
11827     case $cc_basename in
11828       CC*)
11829         # Sun C++ 4.2, 5.x and Centerline C++
11830         archive_cmds_need_lc_CXX=yes
11831         no_undefined_flag_CXX=' -zdefs'
11832         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11833         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11834         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11835
11836         hardcode_libdir_flag_spec_CXX='-R$libdir'
11837         hardcode_shlibpath_var_CXX=no
11838         case $host_os in
11839           solaris2.[0-5] | solaris2.[0-5].*) ;;
11840           *)
11841             # The C++ compiler is used as linker so we must use $wl
11842             # flag to pass the commands to the underlying system
11843             # linker. We must also pass each convience library through
11844             # to the system linker between allextract/defaultextract.
11845             # The C++ compiler will combine linker options so we
11846             # cannot just pass the convience library names through
11847             # without $wl.
11848             # Supported since Solaris 2.6 (maybe 2.5.1?)
11849             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11850             ;;
11851         esac
11852         link_all_deplibs_CXX=yes
11853
11854         output_verbose_link_cmd='echo'
11855
11856         # Archives containing C++ object files must be created using
11857         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11858         # necessary to make sure instantiated templates are included
11859         # in the archive.
11860         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11861         ;;
11862       gcx*)
11863         # Green Hills C++ Compiler
11864         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11865
11866         # The C++ compiler must be used to create the archive.
11867         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11868         ;;
11869       *)
11870         # GNU C++ compiler with Solaris linker
11871         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11872           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11873           if $CC --version | grep -v '^2\.7' > /dev/null; then
11874             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11875             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11876                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11877
11878             # Commands to make compiler produce verbose output that lists
11879             # what "hidden" libraries, object files and flags are used when
11880             # linking a shared library.
11881             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11882           else
11883             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11884             # platform.
11885             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11886             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11887                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11888
11889             # Commands to make compiler produce verbose output that lists
11890             # what "hidden" libraries, object files and flags are used when
11891             # linking a shared library.
11892             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11893           fi
11894
11895           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11896         fi
11897         ;;
11898     esac
11899     ;;
11900   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11901     no_undefined_flag_CXX='${wl}-z,text'
11902     archive_cmds_need_lc_CXX=no
11903     hardcode_shlibpath_var_CXX=no
11904     runpath_var='LD_RUN_PATH'
11905
11906     case $cc_basename in
11907       CC*)
11908         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11909         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11910         ;;
11911       *)
11912         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11913         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11914         ;;
11915     esac
11916     ;;
11917   sysv5* | sco3.2v5* | sco5v6*)
11918     # Note: We can NOT use -z defs as we might desire, because we do not
11919     # link with -lc, and that would cause any symbols used from libc to
11920     # always be unresolved, which means just about no library would
11921     # ever link correctly.  If we're not using GNU ld we use -z text
11922     # though, which does catch some bad symbols but isn't as heavy-handed
11923     # as -z defs.
11924     # For security reasons, it is highly recommended that you always
11925     # use absolute paths for naming shared libraries, and exclude the
11926     # DT_RUNPATH tag from executables and libraries.  But doing so
11927     # requires that you compile everything twice, which is a pain.
11928     # So that behaviour is only enabled if SCOABSPATH is set to a
11929     # non-empty value in the environment.  Most likely only useful for
11930     # creating official distributions of packages.
11931     # This is a hack until libtool officially supports absolute path
11932     # names for shared libraries.
11933     no_undefined_flag_CXX='${wl}-z,text'
11934     allow_undefined_flag_CXX='${wl}-z,nodefs'
11935     archive_cmds_need_lc_CXX=no
11936     hardcode_shlibpath_var_CXX=no
11937     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11938     hardcode_libdir_separator_CXX=':'
11939     link_all_deplibs_CXX=yes
11940     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11941     runpath_var='LD_RUN_PATH'
11942
11943     case $cc_basename in
11944       CC*)
11945         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11946         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11947         ;;
11948       *)
11949         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11950         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11951         ;;
11952     esac
11953     ;;
11954   tandem*)
11955     case $cc_basename in
11956       NCC*)
11957         # NonStop-UX NCC 3.20
11958         # FIXME: insert proper C++ library support
11959         ld_shlibs_CXX=no
11960         ;;
11961       *)
11962         # FIXME: insert proper C++ library support
11963         ld_shlibs_CXX=no
11964         ;;
11965     esac
11966     ;;
11967   vxworks*)
11968     # FIXME: insert proper C++ library support
11969     ld_shlibs_CXX=no
11970     ;;
11971   *)
11972     # FIXME: insert proper C++ library support
11973     ld_shlibs_CXX=no
11974     ;;
11975 esac
11976 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11977 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11978 test "$ld_shlibs_CXX" = no && can_build_shared=no
11979
11980 GCC_CXX="$GXX"
11981 LD_CXX="$LD"
11982
11983
11984 cat > conftest.$ac_ext <<EOF
11985 class Foo
11986 {
11987 public:
11988   Foo (void) { a = 0; }
11989 private:
11990   int a;
11991 };
11992 EOF
11993
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995   (eval $ac_compile) 2>&5
11996   ac_status=$?
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); }; then
11999   # Parse the compiler output and extract the necessary
12000   # objects, libraries and library flags.
12001
12002   # Sentinel used to keep track of whether or not we are before
12003   # the conftest object file.
12004   pre_test_object_deps_done=no
12005
12006   # The `*' in the case matches for architectures that use `case' in
12007   # $output_verbose_cmd can trigger glob expansion during the loop
12008   # eval without this substitution.
12009   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12010
12011   for p in `eval $output_verbose_link_cmd`; do
12012     case $p in
12013
12014     -L* | -R* | -l*)
12015        # Some compilers place space between "-{L,R}" and the path.
12016        # Remove the space.
12017        if test $p = "-L" \
12018           || test $p = "-R"; then
12019          prev=$p
12020          continue
12021        else
12022          prev=
12023        fi
12024
12025        if test "$pre_test_object_deps_done" = no; then
12026          case $p in
12027          -L* | -R*)
12028            # Internal compiler library paths should come after those
12029            # provided the user.  The postdeps already come after the
12030            # user supplied libs so there is no need to process them.
12031            if test -z "$compiler_lib_search_path_CXX"; then
12032              compiler_lib_search_path_CXX="${prev}${p}"
12033            else
12034              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12035            fi
12036            ;;
12037          # The "-l" case would never come before the object being
12038          # linked, so don't bother handling this case.
12039          esac
12040        else
12041          if test -z "$postdeps_CXX"; then
12042            postdeps_CXX="${prev}${p}"
12043          else
12044            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12045          fi
12046        fi
12047        ;;
12048
12049     *.$objext)
12050        # This assumes that the test object file only shows up
12051        # once in the compiler output.
12052        if test "$p" = "conftest.$objext"; then
12053          pre_test_object_deps_done=yes
12054          continue
12055        fi
12056
12057        if test "$pre_test_object_deps_done" = no; then
12058          if test -z "$predep_objects_CXX"; then
12059            predep_objects_CXX="$p"
12060          else
12061            predep_objects_CXX="$predep_objects_CXX $p"
12062          fi
12063        else
12064          if test -z "$postdep_objects_CXX"; then
12065            postdep_objects_CXX="$p"
12066          else
12067            postdep_objects_CXX="$postdep_objects_CXX $p"
12068          fi
12069        fi
12070        ;;
12071
12072     *) ;; # Ignore the rest.
12073
12074     esac
12075   done
12076
12077   # Clean up.
12078   rm -f a.out a.exe
12079 else
12080   echo "libtool.m4: error: problem compiling CXX test program"
12081 fi
12082
12083 $rm -f confest.$objext
12084
12085 # PORTME: override above test on systems where it is broken
12086 case $host_os in
12087 interix3*)
12088   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12089   # hack all around it, let's just trust "g++" to DTRT.
12090   predep_objects_CXX=
12091   postdep_objects_CXX=
12092   postdeps_CXX=
12093   ;;
12094
12095 solaris*)
12096   case $cc_basename in
12097   CC*)
12098     # Adding this requires a known-good setup of shared libraries for
12099     # Sun compiler versions before 5.6, else PIC objects from an old
12100     # archive will be linked into the output, leading to subtle bugs.
12101     postdeps_CXX='-lCstd -lCrun'
12102     ;;
12103   esac
12104   ;;
12105 esac
12106
12107
12108 case " $postdeps_CXX " in
12109 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12110 esac
12111
12112 lt_prog_compiler_wl_CXX=
12113 lt_prog_compiler_pic_CXX=
12114 lt_prog_compiler_static_CXX=
12115
12116 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12117 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12118
12119   # C++ specific cases for pic, static, wl, etc.
12120   if test "$GXX" = yes; then
12121     lt_prog_compiler_wl_CXX='-Wl,'
12122     lt_prog_compiler_static_CXX='-static'
12123
12124     case $host_os in
12125     aix*)
12126       # All AIX code is PIC.
12127       if test "$host_cpu" = ia64; then
12128         # AIX 5 now supports IA64 processor
12129         lt_prog_compiler_static_CXX='-Bstatic'
12130       fi
12131       ;;
12132     amigaos*)
12133       # FIXME: we need at least 68020 code to build shared libraries, but
12134       # adding the `-m68020' flag to GCC prevents building anything better,
12135       # like `-m68040'.
12136       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12137       ;;
12138     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12139       # PIC is the default for these OSes.
12140       ;;
12141     mingw* | os2* | pw32*)
12142       # This hack is so that the source file can tell whether it is being
12143       # built for inclusion in a dll (and should export symbols for example).
12144       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12145       ;;
12146     darwin* | rhapsody*)
12147       # PIC is the default on this platform
12148       # Common symbols not allowed in MH_DYLIB files
12149       lt_prog_compiler_pic_CXX='-fno-common'
12150       ;;
12151     *djgpp*)
12152       # DJGPP does not support shared libraries at all
12153       lt_prog_compiler_pic_CXX=
12154       ;;
12155     interix3*)
12156       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12157       # Instead, we relocate shared libraries at runtime.
12158       ;;
12159     sysv4*MP*)
12160       if test -d /usr/nec; then
12161         lt_prog_compiler_pic_CXX=-Kconform_pic
12162       fi
12163       ;;
12164     hpux*)
12165       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12166       # not for PA HP-UX.
12167       case $host_cpu in
12168       hppa*64*|ia64*)
12169         ;;
12170       *)
12171         lt_prog_compiler_pic_CXX='-fPIC'
12172         ;;
12173       esac
12174       ;;
12175     *)
12176       lt_prog_compiler_pic_CXX='-fPIC'
12177       ;;
12178     esac
12179   else
12180     case $host_os in
12181       aix4* | aix5*)
12182         # All AIX code is PIC.
12183         if test "$host_cpu" = ia64; then
12184           # AIX 5 now supports IA64 processor
12185           lt_prog_compiler_static_CXX='-Bstatic'
12186         else
12187           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12188         fi
12189         ;;
12190       chorus*)
12191         case $cc_basename in
12192         cxch68*)
12193           # Green Hills C++ Compiler
12194           # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12195           ;;
12196         esac
12197         ;;
12198        darwin*)
12199          # PIC is the default on this platform
12200          # Common symbols not allowed in MH_DYLIB files
12201          case $cc_basename in
12202            xlc*)
12203            lt_prog_compiler_pic_CXX='-qnocommon'
12204            lt_prog_compiler_wl_CXX='-Wl,'
12205            ;;
12206          esac
12207        ;;
12208       dgux*)
12209         case $cc_basename in
12210           ec++*)
12211             lt_prog_compiler_pic_CXX='-KPIC'
12212             ;;
12213           ghcx*)
12214             # Green Hills C++ Compiler
12215             lt_prog_compiler_pic_CXX='-pic'
12216             ;;
12217           *)
12218             ;;
12219         esac
12220         ;;
12221       freebsd* | kfreebsd*-gnu | dragonfly*)
12222         # FreeBSD uses GNU C++
12223         ;;
12224       hpux9* | hpux10* | hpux11*)
12225         case $cc_basename in
12226           CC*)
12227             lt_prog_compiler_wl_CXX='-Wl,'
12228             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12229             if test "$host_cpu" != ia64; then
12230               lt_prog_compiler_pic_CXX='+Z'
12231             fi
12232             ;;
12233           aCC*)
12234             lt_prog_compiler_wl_CXX='-Wl,'
12235             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12236             case $host_cpu in
12237             hppa*64*|ia64*)
12238               # +Z the default
12239               ;;
12240             *)
12241               lt_prog_compiler_pic_CXX='+Z'
12242               ;;
12243             esac
12244             ;;
12245           *)
12246             ;;
12247         esac
12248         ;;
12249       interix*)
12250         # This is c89, which is MS Visual C++ (no shared libs)
12251         # Anyone wants to do a port?
12252         ;;
12253       irix5* | irix6* | nonstopux*)
12254         case $cc_basename in
12255           CC*)
12256             lt_prog_compiler_wl_CXX='-Wl,'
12257             lt_prog_compiler_static_CXX='-non_shared'
12258             # CC pic flag -KPIC is the default.
12259             ;;
12260           *)
12261             ;;
12262         esac
12263         ;;
12264       linux*)
12265         case $cc_basename in
12266           KCC*)
12267             # KAI C++ Compiler
12268             lt_prog_compiler_wl_CXX='--backend -Wl,'
12269             lt_prog_compiler_pic_CXX='-fPIC'
12270             ;;
12271           icpc* | ecpc*)
12272             # Intel C++
12273             lt_prog_compiler_wl_CXX='-Wl,'
12274             lt_prog_compiler_pic_CXX='-KPIC'
12275             lt_prog_compiler_static_CXX='-static'
12276             ;;
12277           pgCC*)
12278             # Portland Group C++ compiler.
12279             lt_prog_compiler_wl_CXX='-Wl,'
12280             lt_prog_compiler_pic_CXX='-fpic'
12281             lt_prog_compiler_static_CXX='-Bstatic'
12282             ;;
12283           cxx*)
12284             # Compaq C++
12285             # Make sure the PIC flag is empty.  It appears that all Alpha
12286             # Linux and Compaq Tru64 Unix objects are PIC.
12287             lt_prog_compiler_pic_CXX=
12288             lt_prog_compiler_static_CXX='-non_shared'
12289             ;;
12290           *)
12291             ;;
12292         esac
12293         ;;
12294       lynxos*)
12295         ;;
12296       m88k*)
12297         ;;
12298       mvs*)
12299         case $cc_basename in
12300           cxx*)
12301             lt_prog_compiler_pic_CXX='-W c,exportall'
12302             ;;
12303           *)
12304             ;;
12305         esac
12306         ;;
12307       netbsd*)
12308         ;;
12309       osf3* | osf4* | osf5*)
12310         case $cc_basename in
12311           KCC*)
12312             lt_prog_compiler_wl_CXX='--backend -Wl,'
12313             ;;
12314           RCC*)
12315             # Rational C++ 2.4.1
12316             lt_prog_compiler_pic_CXX='-pic'
12317             ;;
12318           cxx*)
12319             # Digital/Compaq C++
12320             lt_prog_compiler_wl_CXX='-Wl,'
12321             # Make sure the PIC flag is empty.  It appears that all Alpha
12322             # Linux and Compaq Tru64 Unix objects are PIC.
12323             lt_prog_compiler_pic_CXX=
12324             lt_prog_compiler_static_CXX='-non_shared'
12325             ;;
12326           *)
12327             ;;
12328         esac
12329         ;;
12330       psos*)
12331         ;;
12332       solaris*)
12333         case $cc_basename in
12334           CC*)
12335             # Sun C++ 4.2, 5.x and Centerline C++
12336             lt_prog_compiler_pic_CXX='-KPIC'
12337             lt_prog_compiler_static_CXX='-Bstatic'
12338             lt_prog_compiler_wl_CXX='-Qoption ld '
12339             ;;
12340           gcx*)
12341             # Green Hills C++ Compiler
12342             lt_prog_compiler_pic_CXX='-PIC'
12343             ;;
12344           *)
12345             ;;
12346         esac
12347         ;;
12348       sunos4*)
12349         case $cc_basename in
12350           CC*)
12351             # Sun C++ 4.x
12352             lt_prog_compiler_pic_CXX='-pic'
12353             lt_prog_compiler_static_CXX='-Bstatic'
12354             ;;
12355           lcc*)
12356             # Lucid
12357             lt_prog_compiler_pic_CXX='-pic'
12358             ;;
12359           *)
12360             ;;
12361         esac
12362         ;;
12363       tandem*)
12364         case $cc_basename in
12365           NCC*)
12366             # NonStop-UX NCC 3.20
12367             lt_prog_compiler_pic_CXX='-KPIC'
12368             ;;
12369           *)
12370             ;;
12371         esac
12372         ;;
12373       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12374         case $cc_basename in
12375           CC*)
12376             lt_prog_compiler_wl_CXX='-Wl,'
12377             lt_prog_compiler_pic_CXX='-KPIC'
12378             lt_prog_compiler_static_CXX='-Bstatic'
12379             ;;
12380         esac
12381         ;;
12382       vxworks*)
12383         ;;
12384       *)
12385         lt_prog_compiler_can_build_shared_CXX=no
12386         ;;
12387     esac
12388   fi
12389
12390 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12391 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12392
12393 #
12394 # Check to make sure the PIC flag actually works.
12395 #
12396 if test -n "$lt_prog_compiler_pic_CXX"; then
12397
12398 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12399 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12400 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12401   echo $ECHO_N "(cached) $ECHO_C" >&6
12402 else
12403   lt_prog_compiler_pic_works_CXX=no
12404   ac_outfile=conftest.$ac_objext
12405    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12406    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12407    # Insert the option either (1) after the last *FLAGS variable, or
12408    # (2) before a word containing "conftest.", or (3) at the end.
12409    # Note that $ac_compile itself does not contain backslashes and begins
12410    # with a dollar sign (not a hyphen), so the echo should work correctly.
12411    # The option is referenced via a variable to avoid confusing sed.
12412    lt_compile=`echo "$ac_compile" | $SED \
12413    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12414    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12415    -e 's:$: $lt_compiler_flag:'`
12416    (eval echo "\"\$as_me:12416: $lt_compile\"" >&5)
12417    (eval "$lt_compile" 2>conftest.err)
12418    ac_status=$?
12419    cat conftest.err >&5
12420    echo "$as_me:12420: \$? = $ac_status" >&5
12421    if (exit $ac_status) && test -s "$ac_outfile"; then
12422      # The compiler can only warn and ignore the option if not recognized
12423      # So say no if there are warnings other than the usual output.
12424      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12425      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12426      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12427        lt_prog_compiler_pic_works_CXX=yes
12428      fi
12429    fi
12430    $rm conftest*
12431
12432 fi
12433 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12434 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12435
12436 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12437     case $lt_prog_compiler_pic_CXX in
12438      "" | " "*) ;;
12439      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12440      esac
12441 else
12442     lt_prog_compiler_pic_CXX=
12443      lt_prog_compiler_can_build_shared_CXX=no
12444 fi
12445
12446 fi
12447 case $host_os in
12448   # For platforms which do not support PIC, -DPIC is meaningless:
12449   *djgpp*)
12450     lt_prog_compiler_pic_CXX=
12451     ;;
12452   *)
12453     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12454     ;;
12455 esac
12456
12457 #
12458 # Check to make sure the static flag actually works.
12459 #
12460 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12461 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12462 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12463 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12464   echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466   lt_prog_compiler_static_works_CXX=no
12467    save_LDFLAGS="$LDFLAGS"
12468    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12469    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12470    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12471      # The linker can only warn and ignore the option if not recognized
12472      # So say no if there are warnings
12473      if test -s conftest.err; then
12474        # Append any errors to the config.log.
12475        cat conftest.err 1>&5
12476        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12477        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12478        if diff conftest.exp conftest.er2 >/dev/null; then
12479          lt_prog_compiler_static_works_CXX=yes
12480        fi
12481      else
12482        lt_prog_compiler_static_works_CXX=yes
12483      fi
12484    fi
12485    $rm conftest*
12486    LDFLAGS="$save_LDFLAGS"
12487
12488 fi
12489 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12490 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12491
12492 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12493     :
12494 else
12495     lt_prog_compiler_static_CXX=
12496 fi
12497
12498
12499 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12500 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12501 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12502   echo $ECHO_N "(cached) $ECHO_C" >&6
12503 else
12504   lt_cv_prog_compiler_c_o_CXX=no
12505    $rm -r conftest 2>/dev/null
12506    mkdir conftest
12507    cd conftest
12508    mkdir out
12509    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12510
12511    lt_compiler_flag="-o out/conftest2.$ac_objext"
12512    # Insert the option either (1) after the last *FLAGS variable, or
12513    # (2) before a word containing "conftest.", or (3) at the end.
12514    # Note that $ac_compile itself does not contain backslashes and begins
12515    # with a dollar sign (not a hyphen), so the echo should work correctly.
12516    lt_compile=`echo "$ac_compile" | $SED \
12517    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12518    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12519    -e 's:$: $lt_compiler_flag:'`
12520    (eval echo "\"\$as_me:12520: $lt_compile\"" >&5)
12521    (eval "$lt_compile" 2>out/conftest.err)
12522    ac_status=$?
12523    cat out/conftest.err >&5
12524    echo "$as_me:12524: \$? = $ac_status" >&5
12525    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12526    then
12527      # The compiler can only warn and ignore the option if not recognized
12528      # So say no if there are warnings
12529      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12530      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12531      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12532        lt_cv_prog_compiler_c_o_CXX=yes
12533      fi
12534    fi
12535    chmod u+w . 2>&5
12536    $rm conftest*
12537    # SGI C++ compiler will create directory out/ii_files/ for
12538    # template instantiation
12539    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12540    $rm out/* && rmdir out
12541    cd ..
12542    rmdir conftest
12543    $rm conftest*
12544
12545 fi
12546 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12547 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12548
12549
12550 hard_links="nottested"
12551 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12552   # do not overwrite the value of need_locks provided by the user
12553   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12554 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12555   hard_links=yes
12556   $rm conftest*
12557   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12558   touch conftest.a
12559   ln conftest.a conftest.b 2>&5 || hard_links=no
12560   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12561   echo "$as_me:$LINENO: result: $hard_links" >&5
12562 echo "${ECHO_T}$hard_links" >&6
12563   if test "$hard_links" = no; then
12564     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12565 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12566     need_locks=warn
12567   fi
12568 else
12569   need_locks=no
12570 fi
12571
12572 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12573 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12574
12575   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12576   case $host_os in
12577   aix4* | aix5*)
12578     # If we're using GNU nm, then we don't want the "-C" option.
12579     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12580     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12581       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12582     else
12583       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12584     fi
12585     ;;
12586   pw32*)
12587     export_symbols_cmds_CXX="$ltdll_cmds"
12588   ;;
12589   cygwin* | mingw*)
12590     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12591   ;;
12592   *)
12593     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12594   ;;
12595   esac
12596
12597 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12598 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12599 test "$ld_shlibs_CXX" = no && can_build_shared=no
12600
12601 #
12602 # Do we need to explicitly link libc?
12603 #
12604 case "x$archive_cmds_need_lc_CXX" in
12605 x|xyes)
12606   # Assume -lc should be added
12607   archive_cmds_need_lc_CXX=yes
12608
12609   if test "$enable_shared" = yes && test "$GCC" = yes; then
12610     case $archive_cmds_CXX in
12611     *'~'*)
12612       # FIXME: we may have to deal with multi-command sequences.
12613       ;;
12614     '$CC '*)
12615       # Test whether the compiler implicitly links with -lc since on some
12616       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12617       # to ld, don't add -lc before -lgcc.
12618       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12619 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12620       $rm conftest*
12621       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12622
12623       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12624   (eval $ac_compile) 2>&5
12625   ac_status=$?
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); } 2>conftest.err; then
12628         soname=conftest
12629         lib=conftest
12630         libobjs=conftest.$ac_objext
12631         deplibs=
12632         wl=$lt_prog_compiler_wl_CXX
12633         pic_flag=$lt_prog_compiler_pic_CXX
12634         compiler_flags=-v
12635         linker_flags=-v
12636         verstring=
12637         output_objdir=.
12638         libname=conftest
12639         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12640         allow_undefined_flag_CXX=
12641         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12642   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12643   ac_status=$?
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); }
12646         then
12647           archive_cmds_need_lc_CXX=no
12648         else
12649           archive_cmds_need_lc_CXX=yes
12650         fi
12651         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12652       else
12653         cat conftest.err 1>&5
12654       fi
12655       $rm conftest*
12656       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12657 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12658       ;;
12659     esac
12660   fi
12661   ;;
12662 esac
12663
12664 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12665 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12666 library_names_spec=
12667 libname_spec='lib$name'
12668 soname_spec=
12669 shrext_cmds=".so"
12670 postinstall_cmds=
12671 postuninstall_cmds=
12672 finish_cmds=
12673 finish_eval=
12674 shlibpath_var=
12675 shlibpath_overrides_runpath=unknown
12676 version_type=none
12677 dynamic_linker="$host_os ld.so"
12678 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12679 if test "$GCC" = yes; then
12680   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12681   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12682     # if the path contains ";" then we assume it to be the separator
12683     # otherwise default to the standard path separator (i.e. ":") - it is
12684     # assumed that no part of a normal pathname contains ";" but that should
12685     # okay in the real world where ";" in dirpaths is itself problematic.
12686     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12687   else
12688     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12689   fi
12690 else
12691   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12692 fi
12693 need_lib_prefix=unknown
12694 hardcode_into_libs=no
12695
12696 # when you set need_version to no, make sure it does not cause -set_version
12697 # flags to be left without arguments
12698 need_version=unknown
12699
12700 case $host_os in
12701 aix3*)
12702   version_type=linux
12703   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12704   shlibpath_var=LIBPATH
12705
12706   # AIX 3 has no versioning support, so we append a major version to the name.
12707   soname_spec='${libname}${release}${shared_ext}$major'
12708   ;;
12709
12710 aix4* | aix5*)
12711   version_type=linux
12712   need_lib_prefix=no
12713   need_version=no
12714   hardcode_into_libs=yes
12715   if test "$host_cpu" = ia64; then
12716     # AIX 5 supports IA64
12717     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12718     shlibpath_var=LD_LIBRARY_PATH
12719   else
12720     # With GCC up to 2.95.x, collect2 would create an import file
12721     # for dependence libraries.  The import file would start with
12722     # the line `#! .'.  This would cause the generated library to
12723     # depend on `.', always an invalid library.  This was fixed in
12724     # development snapshots of GCC prior to 3.0.
12725     case $host_os in
12726       aix4 | aix4.[01] | aix4.[01].*)
12727       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12728            echo ' yes '
12729            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12730         :
12731       else
12732         can_build_shared=no
12733       fi
12734       ;;
12735     esac
12736     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12737     # soname into executable. Probably we can add versioning support to
12738     # collect2, so additional links can be useful in future.
12739     if test "$aix_use_runtimelinking" = yes; then
12740       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12741       # instead of lib<name>.a to let people know that these are not
12742       # typical AIX shared libraries.
12743       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12744     else
12745       # We preserve .a as extension for shared libraries through AIX4.2
12746       # and later when we are not doing run time linking.
12747       library_names_spec='${libname}${release}.a $libname.a'
12748       soname_spec='${libname}${release}${shared_ext}$major'
12749     fi
12750     shlibpath_var=LIBPATH
12751   fi
12752   ;;
12753
12754 amigaos*)
12755   library_names_spec='$libname.ixlibrary $libname.a'
12756   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12757   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'
12758   ;;
12759
12760 beos*)
12761   library_names_spec='${libname}${shared_ext}'
12762   dynamic_linker="$host_os ld.so"
12763   shlibpath_var=LIBRARY_PATH
12764   ;;
12765
12766 bsdi[45]*)
12767   version_type=linux
12768   need_version=no
12769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12770   soname_spec='${libname}${release}${shared_ext}$major'
12771   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12772   shlibpath_var=LD_LIBRARY_PATH
12773   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12774   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12775   # the default ld.so.conf also contains /usr/contrib/lib and
12776   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12777   # libtool to hard-code these into programs
12778   ;;
12779
12780 cygwin* | mingw* | pw32*)
12781   version_type=windows
12782   shrext_cmds=".dll"
12783   need_version=no
12784   need_lib_prefix=no
12785
12786   case $GCC,$host_os in
12787   yes,cygwin* | yes,mingw* | yes,pw32*)
12788     library_names_spec='$libname.dll.a'
12789     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12790     postinstall_cmds='base_file=`basename \${file}`~
12791       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12792       dldir=$destdir/`dirname \$dlpath`~
12793       test -d \$dldir || mkdir -p \$dldir~
12794       $install_prog $dir/$dlname \$dldir/$dlname~
12795       chmod a+x \$dldir/$dlname'
12796     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12797       dlpath=$dir/\$dldll~
12798        $rm \$dlpath'
12799     shlibpath_overrides_runpath=yes
12800
12801     case $host_os in
12802     cygwin*)
12803       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12804       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12805       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12806       ;;
12807     mingw*)
12808       # MinGW DLLs use traditional 'lib' prefix
12809       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12810       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12811       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12812         # It is most probably a Windows format PATH printed by
12813         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12814         # path with ; separators, and with drive letters. We can handle the
12815         # drive letters (cygwin fileutils understands them), so leave them,
12816         # especially as we might pass files found there to a mingw objdump,
12817         # which wouldn't understand a cygwinified path. Ahh.
12818         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12819       else
12820         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12821       fi
12822       ;;
12823     pw32*)
12824       # pw32 DLLs use 'pw' prefix rather than 'lib'
12825       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12826       ;;
12827     esac
12828     ;;
12829
12830   *)
12831     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12832     ;;
12833   esac
12834   dynamic_linker='Win32 ld.exe'
12835   # FIXME: first we should search . and the directory the executable is in
12836   shlibpath_var=PATH
12837   ;;
12838
12839 darwin* | rhapsody*)
12840   dynamic_linker="$host_os dyld"
12841   version_type=darwin
12842   need_lib_prefix=no
12843   need_version=no
12844   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12845   soname_spec='${libname}${release}${major}$shared_ext'
12846   shlibpath_overrides_runpath=yes
12847   shlibpath_var=DYLD_LIBRARY_PATH
12848   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12849   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12850   if test "$GCC" = yes; then
12851     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12852   else
12853     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12854   fi
12855   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12856   ;;
12857
12858 dgux*)
12859   version_type=linux
12860   need_lib_prefix=no
12861   need_version=no
12862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12863   soname_spec='${libname}${release}${shared_ext}$major'
12864   shlibpath_var=LD_LIBRARY_PATH
12865   ;;
12866
12867 freebsd1*)
12868   dynamic_linker=no
12869   ;;
12870
12871 kfreebsd*-gnu)
12872   version_type=linux
12873   need_lib_prefix=no
12874   need_version=no
12875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12876   soname_spec='${libname}${release}${shared_ext}$major'
12877   shlibpath_var=LD_LIBRARY_PATH
12878   shlibpath_overrides_runpath=no
12879   hardcode_into_libs=yes
12880   dynamic_linker='GNU ld.so'
12881   ;;
12882
12883 freebsd* | dragonfly*)
12884   # DragonFly does not have aout.  When/if they implement a new
12885   # versioning mechanism, adjust this.
12886   if test -x /usr/bin/objformat; then
12887     objformat=`/usr/bin/objformat`
12888   else
12889     case $host_os in
12890     freebsd[123]*) objformat=aout ;;
12891     *) objformat=elf ;;
12892     esac
12893   fi
12894   version_type=freebsd-$objformat
12895   case $version_type in
12896     freebsd-elf*)
12897       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12898       need_version=no
12899       need_lib_prefix=no
12900       ;;
12901     freebsd-*)
12902       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12903       need_version=yes
12904       ;;
12905   esac
12906   shlibpath_var=LD_LIBRARY_PATH
12907   case $host_os in
12908   freebsd2*)
12909     shlibpath_overrides_runpath=yes
12910     ;;
12911   freebsd3.[01]* | freebsdelf3.[01]*)
12912     shlibpath_overrides_runpath=yes
12913     hardcode_into_libs=yes
12914     ;;
12915   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12916   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12917     shlibpath_overrides_runpath=no
12918     hardcode_into_libs=yes
12919     ;;
12920   freebsd*) # from 4.6 on
12921     shlibpath_overrides_runpath=yes
12922     hardcode_into_libs=yes
12923     ;;
12924   esac
12925   ;;
12926
12927 gnu*)
12928   version_type=linux
12929   need_lib_prefix=no
12930   need_version=no
12931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12932   soname_spec='${libname}${release}${shared_ext}$major'
12933   shlibpath_var=LD_LIBRARY_PATH
12934   hardcode_into_libs=yes
12935   ;;
12936
12937 hpux9* | hpux10* | hpux11*)
12938   # Give a soname corresponding to the major version so that dld.sl refuses to
12939   # link against other versions.
12940   version_type=sunos
12941   need_lib_prefix=no
12942   need_version=no
12943   case $host_cpu in
12944   ia64*)
12945     shrext_cmds='.so'
12946     hardcode_into_libs=yes
12947     dynamic_linker="$host_os dld.so"
12948     shlibpath_var=LD_LIBRARY_PATH
12949     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12951     soname_spec='${libname}${release}${shared_ext}$major'
12952     if test "X$HPUX_IA64_MODE" = X32; then
12953       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12954     else
12955       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12956     fi
12957     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12958     ;;
12959    hppa*64*)
12960      shrext_cmds='.sl'
12961      hardcode_into_libs=yes
12962      dynamic_linker="$host_os dld.sl"
12963      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12964      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12965      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12966      soname_spec='${libname}${release}${shared_ext}$major'
12967      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12968      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12969      ;;
12970    *)
12971     shrext_cmds='.sl'
12972     dynamic_linker="$host_os dld.sl"
12973     shlibpath_var=SHLIB_PATH
12974     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976     soname_spec='${libname}${release}${shared_ext}$major'
12977     ;;
12978   esac
12979   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12980   postinstall_cmds='chmod 555 $lib'
12981   ;;
12982
12983 interix3*)
12984   version_type=linux
12985   need_lib_prefix=no
12986   need_version=no
12987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12988   soname_spec='${libname}${release}${shared_ext}$major'
12989   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12990   shlibpath_var=LD_LIBRARY_PATH
12991   shlibpath_overrides_runpath=no
12992   hardcode_into_libs=yes
12993   ;;
12994
12995 irix5* | irix6* | nonstopux*)
12996   case $host_os in
12997     nonstopux*) version_type=nonstopux ;;
12998     *)
12999         if test "$lt_cv_prog_gnu_ld" = yes; then
13000                 version_type=linux
13001         else
13002                 version_type=irix
13003         fi ;;
13004   esac
13005   need_lib_prefix=no
13006   need_version=no
13007   soname_spec='${libname}${release}${shared_ext}$major'
13008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13009   case $host_os in
13010   irix5* | nonstopux*)
13011     libsuff= shlibsuff=
13012     ;;
13013   *)
13014     case $LD in # libtool.m4 will add one of these switches to LD
13015     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13016       libsuff= shlibsuff= libmagic=32-bit;;
13017     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13018       libsuff=32 shlibsuff=N32 libmagic=N32;;
13019     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13020       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13021     *) libsuff= shlibsuff= libmagic=never-match;;
13022     esac
13023     ;;
13024   esac
13025   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13026   shlibpath_overrides_runpath=no
13027   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13028   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13029   hardcode_into_libs=yes
13030   ;;
13031
13032 # No shared lib support for Linux oldld, aout, or coff.
13033 linux*oldld* | linux*aout* | linux*coff*)
13034   dynamic_linker=no
13035   ;;
13036
13037 # This must be Linux ELF.
13038 linux*)
13039   version_type=linux
13040   need_lib_prefix=no
13041   need_version=no
13042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13043   soname_spec='${libname}${release}${shared_ext}$major'
13044   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13045   shlibpath_var=LD_LIBRARY_PATH
13046   shlibpath_overrides_runpath=no
13047   # This implies no fast_install, which is unacceptable.
13048   # Some rework will be needed to allow for fast_install
13049   # before this can be enabled.
13050   hardcode_into_libs=yes
13051
13052   # find out which ABI we are using
13053   libsuff=
13054   case "$host_cpu" in
13055   x86_64*|s390x*|powerpc64*)
13056     echo '#line 13056 "configure"' > conftest.$ac_ext
13057     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058   (eval $ac_compile) 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); }; then
13062       case `/usr/bin/file conftest.$ac_objext` in
13063       *64-bit*)
13064         libsuff=64
13065         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13066         ;;
13067       esac
13068     fi
13069     rm -rf conftest*
13070     ;;
13071   esac
13072
13073   # Append ld.so.conf contents to the search path
13074   if test -f /etc/ld.so.conf; then
13075     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13076     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13077   fi
13078
13079   # We used to test for /lib/ld.so.1 and disable shared libraries on
13080   # powerpc, because MkLinux only supported shared libraries with the
13081   # GNU dynamic linker.  Since this was broken with cross compilers,
13082   # most powerpc-linux boxes support dynamic linking these days and
13083   # people can always --disable-shared, the test was removed, and we
13084   # assume the GNU/Linux dynamic linker is in use.
13085   dynamic_linker='GNU/Linux ld.so'
13086   ;;
13087
13088 knetbsd*-gnu)
13089   version_type=linux
13090   need_lib_prefix=no
13091   need_version=no
13092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13093   soname_spec='${libname}${release}${shared_ext}$major'
13094   shlibpath_var=LD_LIBRARY_PATH
13095   shlibpath_overrides_runpath=no
13096   hardcode_into_libs=yes
13097   dynamic_linker='GNU ld.so'
13098   ;;
13099
13100 netbsd*)
13101   version_type=sunos
13102   need_lib_prefix=no
13103   need_version=no
13104   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13105     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13106     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13107     dynamic_linker='NetBSD (a.out) ld.so'
13108   else
13109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13110     soname_spec='${libname}${release}${shared_ext}$major'
13111     dynamic_linker='NetBSD ld.elf_so'
13112   fi
13113   shlibpath_var=LD_LIBRARY_PATH
13114   shlibpath_overrides_runpath=yes
13115   hardcode_into_libs=yes
13116   ;;
13117
13118 newsos6)
13119   version_type=linux
13120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13121   shlibpath_var=LD_LIBRARY_PATH
13122   shlibpath_overrides_runpath=yes
13123   ;;
13124
13125 nto-qnx*)
13126   version_type=linux
13127   need_lib_prefix=no
13128   need_version=no
13129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13130   soname_spec='${libname}${release}${shared_ext}$major'
13131   shlibpath_var=LD_LIBRARY_PATH
13132   shlibpath_overrides_runpath=yes
13133   ;;
13134
13135 openbsd*)
13136   version_type=sunos
13137   sys_lib_dlsearch_path_spec="/usr/lib"
13138   need_lib_prefix=no
13139   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13140   case $host_os in
13141     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13142     *)                         need_version=no  ;;
13143   esac
13144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13145   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13146   shlibpath_var=LD_LIBRARY_PATH
13147   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13148     case $host_os in
13149       openbsd2.[89] | openbsd2.[89].*)
13150         shlibpath_overrides_runpath=no
13151         ;;
13152       *)
13153         shlibpath_overrides_runpath=yes
13154         ;;
13155       esac
13156   else
13157     shlibpath_overrides_runpath=yes
13158   fi
13159   ;;
13160
13161 os2*)
13162   libname_spec='$name'
13163   shrext_cmds=".dll"
13164   need_lib_prefix=no
13165   library_names_spec='$libname${shared_ext} $libname.a'
13166   dynamic_linker='OS/2 ld.exe'
13167   shlibpath_var=LIBPATH
13168   ;;
13169
13170 osf3* | osf4* | osf5*)
13171   version_type=osf
13172   need_lib_prefix=no
13173   need_version=no
13174   soname_spec='${libname}${release}${shared_ext}$major'
13175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13176   shlibpath_var=LD_LIBRARY_PATH
13177   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13178   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13179   ;;
13180
13181 solaris*)
13182   version_type=linux
13183   need_lib_prefix=no
13184   need_version=no
13185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13186   soname_spec='${libname}${release}${shared_ext}$major'
13187   shlibpath_var=LD_LIBRARY_PATH
13188   shlibpath_overrides_runpath=yes
13189   hardcode_into_libs=yes
13190   # ldd complains unless libraries are executable
13191   postinstall_cmds='chmod +x $lib'
13192   ;;
13193
13194 sunos4*)
13195   version_type=sunos
13196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13197   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13198   shlibpath_var=LD_LIBRARY_PATH
13199   shlibpath_overrides_runpath=yes
13200   if test "$with_gnu_ld" = yes; then
13201     need_lib_prefix=no
13202   fi
13203   need_version=yes
13204   ;;
13205
13206 sysv4 | sysv4.3*)
13207   version_type=linux
13208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13209   soname_spec='${libname}${release}${shared_ext}$major'
13210   shlibpath_var=LD_LIBRARY_PATH
13211   case $host_vendor in
13212     sni)
13213       shlibpath_overrides_runpath=no
13214       need_lib_prefix=no
13215       export_dynamic_flag_spec='${wl}-Blargedynsym'
13216       runpath_var=LD_RUN_PATH
13217       ;;
13218     siemens)
13219       need_lib_prefix=no
13220       ;;
13221     motorola)
13222       need_lib_prefix=no
13223       need_version=no
13224       shlibpath_overrides_runpath=no
13225       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13226       ;;
13227   esac
13228   ;;
13229
13230 sysv4*MP*)
13231   if test -d /usr/nec ;then
13232     version_type=linux
13233     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13234     soname_spec='$libname${shared_ext}.$major'
13235     shlibpath_var=LD_LIBRARY_PATH
13236   fi
13237   ;;
13238
13239 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13240   version_type=freebsd-elf
13241   need_lib_prefix=no
13242   need_version=no
13243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13244   soname_spec='${libname}${release}${shared_ext}$major'
13245   shlibpath_var=LD_LIBRARY_PATH
13246   hardcode_into_libs=yes
13247   if test "$with_gnu_ld" = yes; then
13248     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13249     shlibpath_overrides_runpath=no
13250   else
13251     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13252     shlibpath_overrides_runpath=yes
13253     case $host_os in
13254       sco3.2v5*)
13255         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13256         ;;
13257     esac
13258   fi
13259   sys_lib_dlsearch_path_spec='/usr/lib'
13260   ;;
13261
13262 uts4*)
13263   version_type=linux
13264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13265   soname_spec='${libname}${release}${shared_ext}$major'
13266   shlibpath_var=LD_LIBRARY_PATH
13267   ;;
13268
13269 *)
13270   dynamic_linker=no
13271   ;;
13272 esac
13273 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13274 echo "${ECHO_T}$dynamic_linker" >&6
13275 test "$dynamic_linker" = no && can_build_shared=no
13276
13277 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13278 if test "$GCC" = yes; then
13279   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13280 fi
13281
13282 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13283 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13284 hardcode_action_CXX=
13285 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13286    test -n "$runpath_var_CXX" || \
13287    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13288
13289   # We can hardcode non-existant directories.
13290   if test "$hardcode_direct_CXX" != no &&
13291      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13292      # have to relink, otherwise we might link with an installed library
13293      # when we should be linking with a yet-to-be-installed one
13294      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13295      test "$hardcode_minus_L_CXX" != no; then
13296     # Linking always hardcodes the temporary library directory.
13297     hardcode_action_CXX=relink
13298   else
13299     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13300     hardcode_action_CXX=immediate
13301   fi
13302 else
13303   # We cannot hardcode anything, or else we can only hardcode existing
13304   # directories.
13305   hardcode_action_CXX=unsupported
13306 fi
13307 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13308 echo "${ECHO_T}$hardcode_action_CXX" >&6
13309
13310 if test "$hardcode_action_CXX" = relink; then
13311   # Fast installation is not supported
13312   enable_fast_install=no
13313 elif test "$shlibpath_overrides_runpath" = yes ||
13314      test "$enable_shared" = no; then
13315   # Fast installation is not necessary
13316   enable_fast_install=needless
13317 fi
13318
13319
13320 # The else clause should only fire when bootstrapping the
13321 # libtool distribution, otherwise you forgot to ship ltmain.sh
13322 # with your package, and you will get complaints that there are
13323 # no rules to generate ltmain.sh.
13324 if test -f "$ltmain"; then
13325   # See if we are running on zsh, and set the options which allow our commands through
13326   # without removal of \ escapes.
13327   if test -n "${ZSH_VERSION+set}" ; then
13328     setopt NO_GLOB_SUBST
13329   fi
13330   # Now quote all the things that may contain metacharacters while being
13331   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13332   # variables and quote the copies for generation of the libtool script.
13333   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13334     SED SHELL STRIP \
13335     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13336     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13337     deplibs_check_method reload_flag reload_cmds need_locks \
13338     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13339     lt_cv_sys_global_symbol_to_c_name_address \
13340     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13341     old_postinstall_cmds old_postuninstall_cmds \
13342     compiler_CXX \
13343     CC_CXX \
13344     LD_CXX \
13345     lt_prog_compiler_wl_CXX \
13346     lt_prog_compiler_pic_CXX \
13347     lt_prog_compiler_static_CXX \
13348     lt_prog_compiler_no_builtin_flag_CXX \
13349     export_dynamic_flag_spec_CXX \
13350     thread_safe_flag_spec_CXX \
13351     whole_archive_flag_spec_CXX \
13352     enable_shared_with_static_runtimes_CXX \
13353     old_archive_cmds_CXX \
13354     old_archive_from_new_cmds_CXX \
13355     predep_objects_CXX \
13356     postdep_objects_CXX \
13357     predeps_CXX \
13358     postdeps_CXX \
13359     compiler_lib_search_path_CXX \
13360     archive_cmds_CXX \
13361     archive_expsym_cmds_CXX \
13362     postinstall_cmds_CXX \
13363     postuninstall_cmds_CXX \
13364     old_archive_from_expsyms_cmds_CXX \
13365     allow_undefined_flag_CXX \
13366     no_undefined_flag_CXX \
13367     export_symbols_cmds_CXX \
13368     hardcode_libdir_flag_spec_CXX \
13369     hardcode_libdir_flag_spec_ld_CXX \
13370     hardcode_libdir_separator_CXX \
13371     hardcode_automatic_CXX \
13372     module_cmds_CXX \
13373     module_expsym_cmds_CXX \
13374     lt_cv_prog_compiler_c_o_CXX \
13375     exclude_expsyms_CXX \
13376     include_expsyms_CXX; do
13377
13378     case $var in
13379     old_archive_cmds_CXX | \
13380     old_archive_from_new_cmds_CXX | \
13381     archive_cmds_CXX | \
13382     archive_expsym_cmds_CXX | \
13383     module_cmds_CXX | \
13384     module_expsym_cmds_CXX | \
13385     old_archive_from_expsyms_cmds_CXX | \
13386     export_symbols_cmds_CXX | \
13387     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13388     postinstall_cmds | postuninstall_cmds | \
13389     old_postinstall_cmds | old_postuninstall_cmds | \
13390     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13391       # Double-quote double-evaled strings.
13392       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13393       ;;
13394     *)
13395       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13396       ;;
13397     esac
13398   done
13399
13400   case $lt_echo in
13401   *'\$0 --fallback-echo"')
13402     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13403     ;;
13404   esac
13405
13406 cfgfile="$ofile"
13407
13408   cat <<__EOF__ >> "$cfgfile"
13409 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13410
13411 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13412
13413 # Shell to use when invoking shell scripts.
13414 SHELL=$lt_SHELL
13415
13416 # Whether or not to build shared libraries.
13417 build_libtool_libs=$enable_shared
13418
13419 # Whether or not to build static libraries.
13420 build_old_libs=$enable_static
13421
13422 # Whether or not to add -lc for building shared libraries.
13423 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13424
13425 # Whether or not to disallow shared libs when runtime libs are static
13426 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13427
13428 # Whether or not to optimize for fast installation.
13429 fast_install=$enable_fast_install
13430
13431 # The host system.
13432 host_alias=$host_alias
13433 host=$host
13434 host_os=$host_os
13435
13436 # The build system.
13437 build_alias=$build_alias
13438 build=$build
13439 build_os=$build_os
13440
13441 # An echo program that does not interpret backslashes.
13442 echo=$lt_echo
13443
13444 # The archiver.
13445 AR=$lt_AR
13446 AR_FLAGS=$lt_AR_FLAGS
13447
13448 # A C compiler.
13449 LTCC=$lt_LTCC
13450
13451 # LTCC compiler flags.
13452 LTCFLAGS=$lt_LTCFLAGS
13453
13454 # A language-specific compiler.
13455 CC=$lt_compiler_CXX
13456
13457 # Is the compiler the GNU C compiler?
13458 with_gcc=$GCC_CXX
13459
13460 # An ERE matcher.
13461 EGREP=$lt_EGREP
13462
13463 # The linker used to build libraries.
13464 LD=$lt_LD_CXX
13465
13466 # Whether we need hard or soft links.
13467 LN_S=$lt_LN_S
13468
13469 # A BSD-compatible nm program.
13470 NM=$lt_NM
13471
13472 # A symbol stripping program
13473 STRIP=$lt_STRIP
13474
13475 # Used to examine libraries when file_magic_cmd begins "file"
13476 MAGIC_CMD=$MAGIC_CMD
13477
13478 # Used on cygwin: DLL creation program.
13479 DLLTOOL="$DLLTOOL"
13480
13481 # Used on cygwin: object dumper.
13482 OBJDUMP="$OBJDUMP"
13483
13484 # Used on cygwin: assembler.
13485 AS="$AS"
13486
13487 # The name of the directory that contains temporary libtool files.
13488 objdir=$objdir
13489
13490 # How to create reloadable object files.
13491 reload_flag=$lt_reload_flag
13492 reload_cmds=$lt_reload_cmds
13493
13494 # How to pass a linker flag through the compiler.
13495 wl=$lt_lt_prog_compiler_wl_CXX
13496
13497 # Object file suffix (normally "o").
13498 objext="$ac_objext"
13499
13500 # Old archive suffix (normally "a").
13501 libext="$libext"
13502
13503 # Shared library suffix (normally ".so").
13504 shrext_cmds='$shrext_cmds'
13505
13506 # Executable file suffix (normally "").
13507 exeext="$exeext"
13508
13509 # Additional compiler flags for building library objects.
13510 pic_flag=$lt_lt_prog_compiler_pic_CXX
13511 pic_mode=$pic_mode
13512
13513 # What is the maximum length of a command?
13514 max_cmd_len=$lt_cv_sys_max_cmd_len
13515
13516 # Does compiler simultaneously support -c and -o options?
13517 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13518
13519 # Must we lock files when doing compilation?
13520 need_locks=$lt_need_locks
13521
13522 # Do we need the lib prefix for modules?
13523 need_lib_prefix=$need_lib_prefix
13524
13525 # Do we need a version for libraries?
13526 need_version=$need_version
13527
13528 # Whether dlopen is supported.
13529 dlopen_support=$enable_dlopen
13530
13531 # Whether dlopen of programs is supported.
13532 dlopen_self=$enable_dlopen_self
13533
13534 # Whether dlopen of statically linked programs is supported.
13535 dlopen_self_static=$enable_dlopen_self_static
13536
13537 # Compiler flag to prevent dynamic linking.
13538 link_static_flag=$lt_lt_prog_compiler_static_CXX
13539
13540 # Compiler flag to turn off builtin functions.
13541 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13542
13543 # Compiler flag to allow reflexive dlopens.
13544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13545
13546 # Compiler flag to generate shared objects directly from archives.
13547 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13548
13549 # Compiler flag to generate thread-safe objects.
13550 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13551
13552 # Library versioning type.
13553 version_type=$version_type
13554
13555 # Format of library name prefix.
13556 libname_spec=$lt_libname_spec
13557
13558 # List of archive names.  First name is the real one, the rest are links.
13559 # The last name is the one that the linker finds with -lNAME.
13560 library_names_spec=$lt_library_names_spec
13561
13562 # The coded name of the library, if different from the real name.
13563 soname_spec=$lt_soname_spec
13564
13565 # Commands used to build and install an old-style archive.
13566 RANLIB=$lt_RANLIB
13567 old_archive_cmds=$lt_old_archive_cmds_CXX
13568 old_postinstall_cmds=$lt_old_postinstall_cmds
13569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13570
13571 # Create an old-style archive from a shared archive.
13572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13573
13574 # Create a temporary old-style archive to link instead of a shared archive.
13575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13576
13577 # Commands used to build and install a shared archive.
13578 archive_cmds=$lt_archive_cmds_CXX
13579 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13580 postinstall_cmds=$lt_postinstall_cmds
13581 postuninstall_cmds=$lt_postuninstall_cmds
13582
13583 # Commands used to build a loadable module (assumed same as above if empty)
13584 module_cmds=$lt_module_cmds_CXX
13585 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13586
13587 # Commands to strip libraries.
13588 old_striplib=$lt_old_striplib
13589 striplib=$lt_striplib
13590
13591 # Dependencies to place before the objects being linked to create a
13592 # shared library.
13593 predep_objects=$lt_predep_objects_CXX
13594
13595 # Dependencies to place after the objects being linked to create a
13596 # shared library.
13597 postdep_objects=$lt_postdep_objects_CXX
13598
13599 # Dependencies to place before the objects being linked to create a
13600 # shared library.
13601 predeps=$lt_predeps_CXX
13602
13603 # Dependencies to place after the objects being linked to create a
13604 # shared library.
13605 postdeps=$lt_postdeps_CXX
13606
13607 # The library search path used internally by the compiler when linking
13608 # a shared library.
13609 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13610
13611 # Method to check whether dependent libraries are shared objects.
13612 deplibs_check_method=$lt_deplibs_check_method
13613
13614 # Command to use when deplibs_check_method == file_magic.
13615 file_magic_cmd=$lt_file_magic_cmd
13616
13617 # Flag that allows shared libraries with undefined symbols to be built.
13618 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13619
13620 # Flag that forces no undefined symbols.
13621 no_undefined_flag=$lt_no_undefined_flag_CXX
13622
13623 # Commands used to finish a libtool library installation in a directory.
13624 finish_cmds=$lt_finish_cmds
13625
13626 # Same as above, but a single script fragment to be evaled but not shown.
13627 finish_eval=$lt_finish_eval
13628
13629 # Take the output of nm and produce a listing of raw symbols and C names.
13630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13631
13632 # Transform the output of nm in a proper C declaration
13633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13634
13635 # Transform the output of nm in a C name address pair
13636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13637
13638 # This is the shared library runtime path variable.
13639 runpath_var=$runpath_var
13640
13641 # This is the shared library path variable.
13642 shlibpath_var=$shlibpath_var
13643
13644 # Is shlibpath searched before the hard-coded library search path?
13645 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13646
13647 # How to hardcode a shared library path into an executable.
13648 hardcode_action=$hardcode_action_CXX
13649
13650 # Whether we should hardcode library paths into libraries.
13651 hardcode_into_libs=$hardcode_into_libs
13652
13653 # Flag to hardcode \$libdir into a binary during linking.
13654 # This must work even if \$libdir does not exist.
13655 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13656
13657 # If ld is used when linking, flag to hardcode \$libdir into
13658 # a binary during linking. This must work even if \$libdir does
13659 # not exist.
13660 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13661
13662 # Whether we need a single -rpath flag with a separated argument.
13663 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13664
13665 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13666 # resulting binary.
13667 hardcode_direct=$hardcode_direct_CXX
13668
13669 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13670 # resulting binary.
13671 hardcode_minus_L=$hardcode_minus_L_CXX
13672
13673 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13674 # the resulting binary.
13675 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13676
13677 # Set to yes if building a shared library automatically hardcodes DIR into the library
13678 # and all subsequent libraries and executables linked against it.
13679 hardcode_automatic=$hardcode_automatic_CXX
13680
13681 # Variables whose values should be saved in libtool wrapper scripts and
13682 # restored at relink time.
13683 variables_saved_for_relink="$variables_saved_for_relink"
13684
13685 # Whether libtool must link a program against all its dependency libraries.
13686 link_all_deplibs=$link_all_deplibs_CXX
13687
13688 # Compile-time system search path for libraries
13689 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13690
13691 # Run-time system search path for libraries
13692 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13693
13694 # Fix the shell variable \$srcfile for the compiler.
13695 fix_srcfile_path="$fix_srcfile_path_CXX"
13696
13697 # Set to yes if exported symbols are required.
13698 always_export_symbols=$always_export_symbols_CXX
13699
13700 # The commands to list exported symbols.
13701 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13702
13703 # The commands to extract the exported symbol list from a shared archive.
13704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13705
13706 # Symbols that should not be listed in the preloaded symbols.
13707 exclude_expsyms=$lt_exclude_expsyms_CXX
13708
13709 # Symbols that must always be exported.
13710 include_expsyms=$lt_include_expsyms_CXX
13711
13712 # ### END LIBTOOL TAG CONFIG: $tagname
13713
13714 __EOF__
13715
13716
13717 else
13718   # If there is no Makefile yet, we rely on a make rule to execute
13719   # `config.status --recheck' to rerun these tests and create the
13720   # libtool script then.
13721   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13722   if test -f "$ltmain_in"; then
13723     test -f Makefile && make "$ltmain"
13724   fi
13725 fi
13726
13727
13728 ac_ext=c
13729 ac_cpp='$CPP $CPPFLAGS'
13730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13733
13734 CC=$lt_save_CC
13735 LDCXX=$LD
13736 LD=$lt_save_LD
13737 GCC=$lt_save_GCC
13738 with_gnu_ldcxx=$with_gnu_ld
13739 with_gnu_ld=$lt_save_with_gnu_ld
13740 lt_cv_path_LDCXX=$lt_cv_path_LD
13741 lt_cv_path_LD=$lt_save_path_LD
13742 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13743 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13744
13745         else
13746           tagname=""
13747         fi
13748         ;;
13749
13750       F77)
13751         if test -n "$F77" && test "X$F77" != "Xno"; then
13752
13753 ac_ext=f
13754 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13755 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13756 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13757
13758
13759 archive_cmds_need_lc_F77=no
13760 allow_undefined_flag_F77=
13761 always_export_symbols_F77=no
13762 archive_expsym_cmds_F77=
13763 export_dynamic_flag_spec_F77=
13764 hardcode_direct_F77=no
13765 hardcode_libdir_flag_spec_F77=
13766 hardcode_libdir_flag_spec_ld_F77=
13767 hardcode_libdir_separator_F77=
13768 hardcode_minus_L_F77=no
13769 hardcode_automatic_F77=no
13770 module_cmds_F77=
13771 module_expsym_cmds_F77=
13772 link_all_deplibs_F77=unknown
13773 old_archive_cmds_F77=$old_archive_cmds
13774 no_undefined_flag_F77=
13775 whole_archive_flag_spec_F77=
13776 enable_shared_with_static_runtimes_F77=no
13777
13778 # Source file extension for f77 test sources.
13779 ac_ext=f
13780
13781 # Object file extension for compiled f77 test sources.
13782 objext=o
13783 objext_F77=$objext
13784
13785 # Code to be used in simple compile tests
13786 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13787
13788 # Code to be used in simple link tests
13789 lt_simple_link_test_code="      program t\n      end\n"
13790
13791 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13792
13793 # If no C compiler was specified, use CC.
13794 LTCC=${LTCC-"$CC"}
13795
13796 # If no C compiler flags were specified, use CFLAGS.
13797 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13798
13799 # Allow CC to be a program name with arguments.
13800 compiler=$CC
13801
13802
13803 # save warnings/boilerplate of simple test code
13804 ac_outfile=conftest.$ac_objext
13805 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13806 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13807 _lt_compiler_boilerplate=`cat conftest.err`
13808 $rm conftest*
13809
13810 ac_outfile=conftest.$ac_objext
13811 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13812 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13813 _lt_linker_boilerplate=`cat conftest.err`
13814 $rm conftest*
13815
13816
13817 # Allow CC to be a program name with arguments.
13818 lt_save_CC="$CC"
13819 CC=${F77-"f77"}
13820 compiler=$CC
13821 compiler_F77=$CC
13822 for cc_temp in $compiler""; do
13823   case $cc_temp in
13824     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13825     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13826     \-*) ;;
13827     *) break;;
13828   esac
13829 done
13830 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13831
13832
13833 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13834 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13835 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13836 echo "${ECHO_T}$can_build_shared" >&6
13837
13838 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13839 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13840 test "$can_build_shared" = "no" && enable_shared=no
13841
13842 # On AIX, shared libraries and static libraries use the same namespace, and
13843 # are all built from PIC.
13844 case $host_os in
13845 aix3*)
13846   test "$enable_shared" = yes && enable_static=no
13847   if test -n "$RANLIB"; then
13848     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13849     postinstall_cmds='$RANLIB $lib'
13850   fi
13851   ;;
13852 aix4* | aix5*)
13853   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13854     test "$enable_shared" = yes && enable_static=no
13855   fi
13856   ;;
13857 esac
13858 echo "$as_me:$LINENO: result: $enable_shared" >&5
13859 echo "${ECHO_T}$enable_shared" >&6
13860
13861 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13862 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13863 # Make sure either enable_shared or enable_static is yes.
13864 test "$enable_shared" = yes || enable_static=yes
13865 echo "$as_me:$LINENO: result: $enable_static" >&5
13866 echo "${ECHO_T}$enable_static" >&6
13867
13868 GCC_F77="$G77"
13869 LD_F77="$LD"
13870
13871 lt_prog_compiler_wl_F77=
13872 lt_prog_compiler_pic_F77=
13873 lt_prog_compiler_static_F77=
13874
13875 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13876 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13877
13878   if test "$GCC" = yes; then
13879     lt_prog_compiler_wl_F77='-Wl,'
13880     lt_prog_compiler_static_F77='-static'
13881
13882     case $host_os in
13883       aix*)
13884       # All AIX code is PIC.
13885       if test "$host_cpu" = ia64; then
13886         # AIX 5 now supports IA64 processor
13887         lt_prog_compiler_static_F77='-Bstatic'
13888       fi
13889       ;;
13890
13891     amigaos*)
13892       # FIXME: we need at least 68020 code to build shared libraries, but
13893       # adding the `-m68020' flag to GCC prevents building anything better,
13894       # like `-m68040'.
13895       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13896       ;;
13897
13898     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13899       # PIC is the default for these OSes.
13900       ;;
13901
13902     mingw* | pw32* | os2*)
13903       # This hack is so that the source file can tell whether it is being
13904       # built for inclusion in a dll (and should export symbols for example).
13905       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13906       ;;
13907
13908     darwin* | rhapsody*)
13909       # PIC is the default on this platform
13910       # Common symbols not allowed in MH_DYLIB files
13911       lt_prog_compiler_pic_F77='-fno-common'
13912       ;;
13913
13914     interix3*)
13915       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13916       # Instead, we relocate shared libraries at runtime.
13917       ;;
13918
13919     msdosdjgpp*)
13920       # Just because we use GCC doesn't mean we suddenly get shared libraries
13921       # on systems that don't support them.
13922       lt_prog_compiler_can_build_shared_F77=no
13923       enable_shared=no
13924       ;;
13925
13926     sysv4*MP*)
13927       if test -d /usr/nec; then
13928         lt_prog_compiler_pic_F77=-Kconform_pic
13929       fi
13930       ;;
13931
13932     hpux*)
13933       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13934       # not for PA HP-UX.
13935       case $host_cpu in
13936       hppa*64*|ia64*)
13937         # +Z the default
13938         ;;
13939       *)
13940         lt_prog_compiler_pic_F77='-fPIC'
13941         ;;
13942       esac
13943       ;;
13944
13945     *)
13946       lt_prog_compiler_pic_F77='-fPIC'
13947       ;;
13948     esac
13949   else
13950     # PORTME Check for flag to pass linker flags through the system compiler.
13951     case $host_os in
13952     aix*)
13953       lt_prog_compiler_wl_F77='-Wl,'
13954       if test "$host_cpu" = ia64; then
13955         # AIX 5 now supports IA64 processor
13956         lt_prog_compiler_static_F77='-Bstatic'
13957       else
13958         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13959       fi
13960       ;;
13961       darwin*)
13962         # PIC is the default on this platform
13963         # Common symbols not allowed in MH_DYLIB files
13964        case $cc_basename in
13965          xlc*)
13966          lt_prog_compiler_pic_F77='-qnocommon'
13967          lt_prog_compiler_wl_F77='-Wl,'
13968          ;;
13969        esac
13970        ;;
13971
13972     mingw* | pw32* | os2*)
13973       # This hack is so that the source file can tell whether it is being
13974       # built for inclusion in a dll (and should export symbols for example).
13975       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13976       ;;
13977
13978     hpux9* | hpux10* | hpux11*)
13979       lt_prog_compiler_wl_F77='-Wl,'
13980       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13981       # not for PA HP-UX.
13982       case $host_cpu in
13983       hppa*64*|ia64*)
13984         # +Z the default
13985         ;;
13986       *)
13987         lt_prog_compiler_pic_F77='+Z'
13988         ;;
13989       esac
13990       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13991       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13992       ;;
13993
13994     irix5* | irix6* | nonstopux*)
13995       lt_prog_compiler_wl_F77='-Wl,'
13996       # PIC (with -KPIC) is the default.
13997       lt_prog_compiler_static_F77='-non_shared'
13998       ;;
13999
14000     newsos6)
14001       lt_prog_compiler_pic_F77='-KPIC'
14002       lt_prog_compiler_static_F77='-Bstatic'
14003       ;;
14004
14005     linux*)
14006       case $cc_basename in
14007       icc* | ecc*)
14008         lt_prog_compiler_wl_F77='-Wl,'
14009         lt_prog_compiler_pic_F77='-KPIC'
14010         lt_prog_compiler_static_F77='-static'
14011         ;;
14012       pgcc* | pgf77* | pgf90* | pgf95*)
14013         # Portland Group compilers (*not* the Pentium gcc compiler,
14014         # which looks to be a dead project)
14015         lt_prog_compiler_wl_F77='-Wl,'
14016         lt_prog_compiler_pic_F77='-fpic'
14017         lt_prog_compiler_static_F77='-Bstatic'
14018         ;;
14019       ccc*)
14020         lt_prog_compiler_wl_F77='-Wl,'
14021         # All Alpha code is PIC.
14022         lt_prog_compiler_static_F77='-non_shared'
14023         ;;
14024       esac
14025       ;;
14026
14027     osf3* | osf4* | osf5*)
14028       lt_prog_compiler_wl_F77='-Wl,'
14029       # All OSF/1 code is PIC.
14030       lt_prog_compiler_static_F77='-non_shared'
14031       ;;
14032
14033     solaris*)
14034       lt_prog_compiler_pic_F77='-KPIC'
14035       lt_prog_compiler_static_F77='-Bstatic'
14036       case $cc_basename in
14037       f77* | f90* | f95*)
14038         lt_prog_compiler_wl_F77='-Qoption ld ';;
14039       *)
14040         lt_prog_compiler_wl_F77='-Wl,';;
14041       esac
14042       ;;
14043
14044     sunos4*)
14045       lt_prog_compiler_wl_F77='-Qoption ld '
14046       lt_prog_compiler_pic_F77='-PIC'
14047       lt_prog_compiler_static_F77='-Bstatic'
14048       ;;
14049
14050     sysv4 | sysv4.2uw2* | sysv4.3*)
14051       lt_prog_compiler_wl_F77='-Wl,'
14052       lt_prog_compiler_pic_F77='-KPIC'
14053       lt_prog_compiler_static_F77='-Bstatic'
14054       ;;
14055
14056     sysv4*MP*)
14057       if test -d /usr/nec ;then
14058         lt_prog_compiler_pic_F77='-Kconform_pic'
14059         lt_prog_compiler_static_F77='-Bstatic'
14060       fi
14061       ;;
14062
14063     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14064       lt_prog_compiler_wl_F77='-Wl,'
14065       lt_prog_compiler_pic_F77='-KPIC'
14066       lt_prog_compiler_static_F77='-Bstatic'
14067       ;;
14068
14069     unicos*)
14070       lt_prog_compiler_wl_F77='-Wl,'
14071       lt_prog_compiler_can_build_shared_F77=no
14072       ;;
14073
14074     uts4*)
14075       lt_prog_compiler_pic_F77='-pic'
14076       lt_prog_compiler_static_F77='-Bstatic'
14077       ;;
14078
14079     *)
14080       lt_prog_compiler_can_build_shared_F77=no
14081       ;;
14082     esac
14083   fi
14084
14085 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14086 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14087
14088 #
14089 # Check to make sure the PIC flag actually works.
14090 #
14091 if test -n "$lt_prog_compiler_pic_F77"; then
14092
14093 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14094 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14095 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14096   echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098   lt_prog_compiler_pic_works_F77=no
14099   ac_outfile=conftest.$ac_objext
14100    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14101    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14102    # Insert the option either (1) after the last *FLAGS variable, or
14103    # (2) before a word containing "conftest.", or (3) at the end.
14104    # Note that $ac_compile itself does not contain backslashes and begins
14105    # with a dollar sign (not a hyphen), so the echo should work correctly.
14106    # The option is referenced via a variable to avoid confusing sed.
14107    lt_compile=`echo "$ac_compile" | $SED \
14108    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14109    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14110    -e 's:$: $lt_compiler_flag:'`
14111    (eval echo "\"\$as_me:14111: $lt_compile\"" >&5)
14112    (eval "$lt_compile" 2>conftest.err)
14113    ac_status=$?
14114    cat conftest.err >&5
14115    echo "$as_me:14115: \$? = $ac_status" >&5
14116    if (exit $ac_status) && test -s "$ac_outfile"; then
14117      # The compiler can only warn and ignore the option if not recognized
14118      # So say no if there are warnings other than the usual output.
14119      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14120      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14121      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14122        lt_prog_compiler_pic_works_F77=yes
14123      fi
14124    fi
14125    $rm conftest*
14126
14127 fi
14128 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14129 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14130
14131 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14132     case $lt_prog_compiler_pic_F77 in
14133      "" | " "*) ;;
14134      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14135      esac
14136 else
14137     lt_prog_compiler_pic_F77=
14138      lt_prog_compiler_can_build_shared_F77=no
14139 fi
14140
14141 fi
14142 case $host_os in
14143   # For platforms which do not support PIC, -DPIC is meaningless:
14144   *djgpp*)
14145     lt_prog_compiler_pic_F77=
14146     ;;
14147   *)
14148     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14149     ;;
14150 esac
14151
14152 #
14153 # Check to make sure the static flag actually works.
14154 #
14155 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14156 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14157 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14158 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14159   echo $ECHO_N "(cached) $ECHO_C" >&6
14160 else
14161   lt_prog_compiler_static_works_F77=no
14162    save_LDFLAGS="$LDFLAGS"
14163    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14164    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14165    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14166      # The linker can only warn and ignore the option if not recognized
14167      # So say no if there are warnings
14168      if test -s conftest.err; then
14169        # Append any errors to the config.log.
14170        cat conftest.err 1>&5
14171        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14172        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14173        if diff conftest.exp conftest.er2 >/dev/null; then
14174          lt_prog_compiler_static_works_F77=yes
14175        fi
14176      else
14177        lt_prog_compiler_static_works_F77=yes
14178      fi
14179    fi
14180    $rm conftest*
14181    LDFLAGS="$save_LDFLAGS"
14182
14183 fi
14184 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14185 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14186
14187 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14188     :
14189 else
14190     lt_prog_compiler_static_F77=
14191 fi
14192
14193
14194 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14195 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14196 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14197   echo $ECHO_N "(cached) $ECHO_C" >&6
14198 else
14199   lt_cv_prog_compiler_c_o_F77=no
14200    $rm -r conftest 2>/dev/null
14201    mkdir conftest
14202    cd conftest
14203    mkdir out
14204    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14205
14206    lt_compiler_flag="-o out/conftest2.$ac_objext"
14207    # Insert the option either (1) after the last *FLAGS variable, or
14208    # (2) before a word containing "conftest.", or (3) at the end.
14209    # Note that $ac_compile itself does not contain backslashes and begins
14210    # with a dollar sign (not a hyphen), so the echo should work correctly.
14211    lt_compile=`echo "$ac_compile" | $SED \
14212    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14213    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14214    -e 's:$: $lt_compiler_flag:'`
14215    (eval echo "\"\$as_me:14215: $lt_compile\"" >&5)
14216    (eval "$lt_compile" 2>out/conftest.err)
14217    ac_status=$?
14218    cat out/conftest.err >&5
14219    echo "$as_me:14219: \$? = $ac_status" >&5
14220    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14221    then
14222      # The compiler can only warn and ignore the option if not recognized
14223      # So say no if there are warnings
14224      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14225      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14226      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14227        lt_cv_prog_compiler_c_o_F77=yes
14228      fi
14229    fi
14230    chmod u+w . 2>&5
14231    $rm conftest*
14232    # SGI C++ compiler will create directory out/ii_files/ for
14233    # template instantiation
14234    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14235    $rm out/* && rmdir out
14236    cd ..
14237    rmdir conftest
14238    $rm conftest*
14239
14240 fi
14241 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14242 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14243
14244
14245 hard_links="nottested"
14246 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14247   # do not overwrite the value of need_locks provided by the user
14248   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14249 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14250   hard_links=yes
14251   $rm conftest*
14252   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14253   touch conftest.a
14254   ln conftest.a conftest.b 2>&5 || hard_links=no
14255   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14256   echo "$as_me:$LINENO: result: $hard_links" >&5
14257 echo "${ECHO_T}$hard_links" >&6
14258   if test "$hard_links" = no; then
14259     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14260 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14261     need_locks=warn
14262   fi
14263 else
14264   need_locks=no
14265 fi
14266
14267 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14268 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14269
14270   runpath_var=
14271   allow_undefined_flag_F77=
14272   enable_shared_with_static_runtimes_F77=no
14273   archive_cmds_F77=
14274   archive_expsym_cmds_F77=
14275   old_archive_From_new_cmds_F77=
14276   old_archive_from_expsyms_cmds_F77=
14277   export_dynamic_flag_spec_F77=
14278   whole_archive_flag_spec_F77=
14279   thread_safe_flag_spec_F77=
14280   hardcode_libdir_flag_spec_F77=
14281   hardcode_libdir_flag_spec_ld_F77=
14282   hardcode_libdir_separator_F77=
14283   hardcode_direct_F77=no
14284   hardcode_minus_L_F77=no
14285   hardcode_shlibpath_var_F77=unsupported
14286   link_all_deplibs_F77=unknown
14287   hardcode_automatic_F77=no
14288   module_cmds_F77=
14289   module_expsym_cmds_F77=
14290   always_export_symbols_F77=no
14291   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14292   # include_expsyms should be a list of space-separated symbols to be *always*
14293   # included in the symbol list
14294   include_expsyms_F77=
14295   # exclude_expsyms can be an extended regexp of symbols to exclude
14296   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14297   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14298   # as well as any symbol that contains `d'.
14299   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14300   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14301   # platforms (ab)use it in PIC code, but their linkers get confused if
14302   # the symbol is explicitly referenced.  Since portable code cannot
14303   # rely on this symbol name, it's probably fine to never include it in
14304   # preloaded symbol tables.
14305   extract_expsyms_cmds=
14306   # Just being paranoid about ensuring that cc_basename is set.
14307   for cc_temp in $compiler""; do
14308   case $cc_temp in
14309     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14310     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14311     \-*) ;;
14312     *) break;;
14313   esac
14314 done
14315 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14316
14317   case $host_os in
14318   cygwin* | mingw* | pw32*)
14319     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14320     # When not using gcc, we currently assume that we are using
14321     # Microsoft Visual C++.
14322     if test "$GCC" != yes; then
14323       with_gnu_ld=no
14324     fi
14325     ;;
14326   interix*)
14327     # we just hope/assume this is gcc and not c89 (= MSVC++)
14328     with_gnu_ld=yes
14329     ;;
14330   openbsd*)
14331     with_gnu_ld=no
14332     ;;
14333   esac
14334
14335   ld_shlibs_F77=yes
14336   if test "$with_gnu_ld" = yes; then
14337     # If archive_cmds runs LD, not CC, wlarc should be empty
14338     wlarc='${wl}'
14339
14340     # Set some defaults for GNU ld with shared library support. These
14341     # are reset later if shared libraries are not supported. Putting them
14342     # here allows them to be overridden if necessary.
14343     runpath_var=LD_RUN_PATH
14344     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14345     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14346     # ancient GNU ld didn't support --whole-archive et. al.
14347     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14348         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14349       else
14350         whole_archive_flag_spec_F77=
14351     fi
14352     supports_anon_versioning=no
14353     case `$LD -v 2>/dev/null` in
14354       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14355       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14356       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14357       *\ 2.11.*) ;; # other 2.11 versions
14358       *) supports_anon_versioning=yes ;;
14359     esac
14360
14361     # See if GNU ld supports shared libraries.
14362     case $host_os in
14363     aix3* | aix4* | aix5*)
14364       # On AIX/PPC, the GNU linker is very broken
14365       if test "$host_cpu" != ia64; then
14366         ld_shlibs_F77=no
14367         cat <<EOF 1>&2
14368
14369 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14370 *** to be unable to reliably create shared libraries on AIX.
14371 *** Therefore, libtool is disabling shared libraries support.  If you
14372 *** really care for shared libraries, you may want to modify your PATH
14373 *** so that a non-GNU linker is found, and then restart.
14374
14375 EOF
14376       fi
14377       ;;
14378
14379     amigaos*)
14380       archive_cmds_F77='$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)'
14381       hardcode_libdir_flag_spec_F77='-L$libdir'
14382       hardcode_minus_L_F77=yes
14383
14384       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14385       # that the semantics of dynamic libraries on AmigaOS, at least up
14386       # to version 4, is to share data among multiple programs linked
14387       # with the same dynamic library.  Since this doesn't match the
14388       # behavior of shared libraries on other platforms, we can't use
14389       # them.
14390       ld_shlibs_F77=no
14391       ;;
14392
14393     beos*)
14394       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14395         allow_undefined_flag_F77=unsupported
14396         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14397         # support --undefined.  This deserves some investigation.  FIXME
14398         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14399       else
14400         ld_shlibs_F77=no
14401       fi
14402       ;;
14403
14404     cygwin* | mingw* | pw32*)
14405       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14406       # as there is no search path for DLLs.
14407       hardcode_libdir_flag_spec_F77='-L$libdir'
14408       allow_undefined_flag_F77=unsupported
14409       always_export_symbols_F77=no
14410       enable_shared_with_static_runtimes_F77=yes
14411       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14412
14413       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14414         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14415         # If the export-symbols file already is a .def file (1st line
14416         # is EXPORTS), use it as is; otherwise, prepend...
14417         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14418           cp $export_symbols $output_objdir/$soname.def;
14419         else
14420           echo EXPORTS > $output_objdir/$soname.def;
14421           cat $export_symbols >> $output_objdir/$soname.def;
14422         fi~
14423         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14424       else
14425         ld_shlibs_F77=no
14426       fi
14427       ;;
14428
14429     interix3*)
14430       hardcode_direct_F77=no
14431       hardcode_shlibpath_var_F77=no
14432       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14433       export_dynamic_flag_spec_F77='${wl}-E'
14434       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14435       # Instead, shared libraries are loaded at an image base (0x10000000 by
14436       # default) and relocated if they conflict, which is a slow very memory
14437       # consuming and fragmenting process.  To avoid this, we pick a random,
14438       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14439       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14440       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14441       archive_expsym_cmds_F77='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'
14442       ;;
14443
14444     linux*)
14445       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14446         tmp_addflag=
14447         case $cc_basename,$host_cpu in
14448         pgcc*)                          # Portland Group C compiler
14449           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14450           tmp_addflag=' $pic_flag'
14451           ;;
14452         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14453           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14454           tmp_addflag=' $pic_flag -Mnomain' ;;
14455         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14456           tmp_addflag=' -i_dynamic' ;;
14457         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14458           tmp_addflag=' -i_dynamic -nofor_main' ;;
14459         ifc* | ifort*)                  # Intel Fortran compiler
14460           tmp_addflag=' -nofor_main' ;;
14461         esac
14462         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14463
14464         if test $supports_anon_versioning = yes; then
14465           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14466   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14467   $echo "local: *; };" >> $output_objdir/$libname.ver~
14468           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14469         fi
14470       else
14471         ld_shlibs_F77=no
14472       fi
14473       ;;
14474
14475     netbsd*)
14476       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14477         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14478         wlarc=
14479       else
14480         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14481         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14482       fi
14483       ;;
14484
14485     solaris*)
14486       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14487         ld_shlibs_F77=no
14488         cat <<EOF 1>&2
14489
14490 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14491 *** create shared libraries on Solaris systems.  Therefore, libtool
14492 *** is disabling shared libraries support.  We urge you to upgrade GNU
14493 *** binutils to release 2.9.1 or newer.  Another option is to modify
14494 *** your PATH or compiler configuration so that the native linker is
14495 *** used, and then restart.
14496
14497 EOF
14498       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14499         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14500         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14501       else
14502         ld_shlibs_F77=no
14503       fi
14504       ;;
14505
14506     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14507       case `$LD -v 2>&1` in
14508         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14509         ld_shlibs_F77=no
14510         cat <<_LT_EOF 1>&2
14511
14512 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14513 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14514 *** is disabling shared libraries support.  We urge you to upgrade GNU
14515 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14516 *** your PATH or compiler configuration so that the native linker is
14517 *** used, and then restart.
14518
14519 _LT_EOF
14520         ;;
14521         *)
14522           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14523             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14524             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14525             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14526           else
14527             ld_shlibs_F77=no
14528           fi
14529         ;;
14530       esac
14531       ;;
14532
14533     sunos4*)
14534       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14535       wlarc=
14536       hardcode_direct_F77=yes
14537       hardcode_shlibpath_var_F77=no
14538       ;;
14539
14540     *)
14541       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14542         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14543         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14544       else
14545         ld_shlibs_F77=no
14546       fi
14547       ;;
14548     esac
14549
14550     if test "$ld_shlibs_F77" = no; then
14551       runpath_var=
14552       hardcode_libdir_flag_spec_F77=
14553       export_dynamic_flag_spec_F77=
14554       whole_archive_flag_spec_F77=
14555     fi
14556   else
14557     # PORTME fill in a description of your system's linker (not GNU ld)
14558     case $host_os in
14559     aix3*)
14560       allow_undefined_flag_F77=unsupported
14561       always_export_symbols_F77=yes
14562       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14563       # Note: this linker hardcodes the directories in LIBPATH if there
14564       # are no directories specified by -L.
14565       hardcode_minus_L_F77=yes
14566       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14567         # Neither direct hardcoding nor static linking is supported with a
14568         # broken collect2.
14569         hardcode_direct_F77=unsupported
14570       fi
14571       ;;
14572
14573     aix4* | aix5*)
14574       if test "$host_cpu" = ia64; then
14575         # On IA64, the linker does run time linking by default, so we don't
14576         # have to do anything special.
14577         aix_use_runtimelinking=no
14578         exp_sym_flag='-Bexport'
14579         no_entry_flag=""
14580       else
14581         # If we're using GNU nm, then we don't want the "-C" option.
14582         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14583         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14584           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14585         else
14586           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14587         fi
14588         aix_use_runtimelinking=no
14589
14590         # Test if we are trying to use run time linking or normal
14591         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14592         # need to do runtime linking.
14593         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14594           for ld_flag in $LDFLAGS; do
14595           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14596             aix_use_runtimelinking=yes
14597             break
14598           fi
14599           done
14600           ;;
14601         esac
14602
14603         exp_sym_flag='-bexport'
14604         no_entry_flag='-bnoentry'
14605       fi
14606
14607       # When large executables or shared objects are built, AIX ld can
14608       # have problems creating the table of contents.  If linking a library
14609       # or program results in "error TOC overflow" add -mminimal-toc to
14610       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14611       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14612
14613       archive_cmds_F77=''
14614       hardcode_direct_F77=yes
14615       hardcode_libdir_separator_F77=':'
14616       link_all_deplibs_F77=yes
14617
14618       if test "$GCC" = yes; then
14619         case $host_os in aix4.[012]|aix4.[012].*)
14620         # We only want to do this on AIX 4.2 and lower, the check
14621         # below for broken collect2 doesn't work under 4.3+
14622           collect2name=`${CC} -print-prog-name=collect2`
14623           if test -f "$collect2name" && \
14624            strings "$collect2name" | grep resolve_lib_name >/dev/null
14625           then
14626           # We have reworked collect2
14627           hardcode_direct_F77=yes
14628           else
14629           # We have old collect2
14630           hardcode_direct_F77=unsupported
14631           # It fails to find uninstalled libraries when the uninstalled
14632           # path is not listed in the libpath.  Setting hardcode_minus_L
14633           # to unsupported forces relinking
14634           hardcode_minus_L_F77=yes
14635           hardcode_libdir_flag_spec_F77='-L$libdir'
14636           hardcode_libdir_separator_F77=
14637           fi
14638           ;;
14639         esac
14640         shared_flag='-shared'
14641         if test "$aix_use_runtimelinking" = yes; then
14642           shared_flag="$shared_flag "'${wl}-G'
14643         fi
14644       else
14645         # not using gcc
14646         if test "$host_cpu" = ia64; then
14647         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14648         # chokes on -Wl,-G. The following line is correct:
14649           shared_flag='-G'
14650         else
14651           if test "$aix_use_runtimelinking" = yes; then
14652             shared_flag='${wl}-G'
14653           else
14654             shared_flag='${wl}-bM:SRE'
14655           fi
14656         fi
14657       fi
14658
14659       # It seems that -bexpall does not export symbols beginning with
14660       # underscore (_), so it is better to generate a list of symbols to export.
14661       always_export_symbols_F77=yes
14662       if test "$aix_use_runtimelinking" = yes; then
14663         # Warning - without using the other runtime loading flags (-brtl),
14664         # -berok will link without error, but may produce a broken library.
14665         allow_undefined_flag_F77='-berok'
14666        # Determine the default libpath from the value encoded in an empty executable.
14667        cat >conftest.$ac_ext <<_ACEOF
14668       program main
14669
14670       end
14671 _ACEOF
14672 rm -f conftest.$ac_objext conftest$ac_exeext
14673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14674   (eval $ac_link) 2>conftest.er1
14675   ac_status=$?
14676   grep -v '^ *+' conftest.er1 >conftest.err
14677   rm -f conftest.er1
14678   cat conftest.err >&5
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); } &&
14681          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683   (eval $ac_try) 2>&5
14684   ac_status=$?
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); }; } &&
14687          { ac_try='test -s conftest$ac_exeext'
14688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689   (eval $ac_try) 2>&5
14690   ac_status=$?
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); }; }; then
14693
14694 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14695 }'`
14696 # Check for a 64-bit object if we didn't find anything.
14697 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14698 }'`; fi
14699 else
14700   echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 fi
14704 rm -f conftest.err conftest.$ac_objext \
14705       conftest$ac_exeext conftest.$ac_ext
14706 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14707
14708        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14709         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14710        else
14711         if test "$host_cpu" = ia64; then
14712           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14713           allow_undefined_flag_F77="-z nodefs"
14714           archive_expsym_cmds_F77="\$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"
14715         else
14716          # Determine the default libpath from the value encoded in an empty executable.
14717          cat >conftest.$ac_ext <<_ACEOF
14718       program main
14719
14720       end
14721 _ACEOF
14722 rm -f conftest.$ac_objext conftest$ac_exeext
14723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14724   (eval $ac_link) 2>conftest.er1
14725   ac_status=$?
14726   grep -v '^ *+' conftest.er1 >conftest.err
14727   rm -f conftest.er1
14728   cat conftest.err >&5
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); } &&
14731          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
14732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733   (eval $ac_try) 2>&5
14734   ac_status=$?
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); }; } &&
14737          { ac_try='test -s conftest$ac_exeext'
14738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739   (eval $ac_try) 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); }; }; then
14743
14744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14745 }'`
14746 # Check for a 64-bit object if we didn't find anything.
14747 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14748 }'`; fi
14749 else
14750   echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14752
14753 fi
14754 rm -f conftest.err conftest.$ac_objext \
14755       conftest$ac_exeext conftest.$ac_ext
14756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14757
14758          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14759           # Warning - without using the other run time loading flags,
14760           # -berok will link without error, but may produce a broken library.
14761           no_undefined_flag_F77=' ${wl}-bernotok'
14762           allow_undefined_flag_F77=' ${wl}-berok'
14763           # Exported symbols can be pulled into shared objects from archives
14764           whole_archive_flag_spec_F77='$convenience'
14765           archive_cmds_need_lc_F77=yes
14766           # This is similar to how AIX traditionally builds its shared libraries.
14767           archive_expsym_cmds_F77="\$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'
14768         fi
14769       fi
14770       ;;
14771
14772     amigaos*)
14773       archive_cmds_F77='$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)'
14774       hardcode_libdir_flag_spec_F77='-L$libdir'
14775       hardcode_minus_L_F77=yes
14776       # see comment about different semantics on the GNU ld section
14777       ld_shlibs_F77=no
14778       ;;
14779
14780     bsdi[45]*)
14781       export_dynamic_flag_spec_F77=-rdynamic
14782       ;;
14783
14784     cygwin* | mingw* | pw32*)
14785       # When not using gcc, we currently assume that we are using
14786       # Microsoft Visual C++.
14787       # hardcode_libdir_flag_spec is actually meaningless, as there is
14788       # no search path for DLLs.
14789       hardcode_libdir_flag_spec_F77=' '
14790       allow_undefined_flag_F77=unsupported
14791       # Tell ltmain to make .lib files, not .a files.
14792       libext=lib
14793       # Tell ltmain to make .dll files, not .so files.
14794       shrext_cmds=".dll"
14795       # FIXME: Setting linknames here is a bad hack.
14796       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14797       # The linker will automatically build a .lib file if we build a DLL.
14798       old_archive_From_new_cmds_F77='true'
14799       # FIXME: Should let the user specify the lib program.
14800       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14801       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14802       enable_shared_with_static_runtimes_F77=yes
14803       ;;
14804
14805     darwin* | rhapsody*)
14806       case $host_os in
14807         rhapsody* | darwin1.[012])
14808          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14809          ;;
14810        *) # Darwin 1.3 on
14811          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14812            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14813          else
14814            case ${MACOSX_DEPLOYMENT_TARGET} in
14815              10.[012])
14816                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14817                ;;
14818              10.*)
14819                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14820                ;;
14821            esac
14822          fi
14823          ;;
14824       esac
14825       archive_cmds_need_lc_F77=no
14826       hardcode_direct_F77=no
14827       hardcode_automatic_F77=yes
14828       hardcode_shlibpath_var_F77=unsupported
14829       whole_archive_flag_spec_F77=''
14830       link_all_deplibs_F77=yes
14831     if test "$GCC" = yes ; then
14832         output_verbose_link_cmd='echo'
14833         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14834       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14835       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14836       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
14837       module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
14838     else
14839       case $cc_basename in
14840         xlc*)
14841          output_verbose_link_cmd='echo'
14842          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14843          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14844           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14845          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
14846           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
14847           ;;
14848        *)
14849          ld_shlibs_F77=no
14850           ;;
14851       esac
14852     fi
14853       ;;
14854
14855     dgux*)
14856       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14857       hardcode_libdir_flag_spec_F77='-L$libdir'
14858       hardcode_shlibpath_var_F77=no
14859       ;;
14860
14861     freebsd1*)
14862       ld_shlibs_F77=no
14863       ;;
14864
14865     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14866     # support.  Future versions do this automatically, but an explicit c++rt0.o
14867     # does not break anything, and helps significantly (at the cost of a little
14868     # extra space).
14869     freebsd2.2*)
14870       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14871       hardcode_libdir_flag_spec_F77='-R$libdir'
14872       hardcode_direct_F77=yes
14873       hardcode_shlibpath_var_F77=no
14874       ;;
14875
14876     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14877     freebsd2*)
14878       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14879       hardcode_direct_F77=yes
14880       hardcode_minus_L_F77=yes
14881       hardcode_shlibpath_var_F77=no
14882       ;;
14883
14884     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14885     freebsd* | kfreebsd*-gnu | dragonfly*)
14886       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14887       hardcode_libdir_flag_spec_F77='-R$libdir'
14888       hardcode_direct_F77=yes
14889       hardcode_shlibpath_var_F77=no
14890       ;;
14891
14892     hpux9*)
14893       if test "$GCC" = yes; then
14894         archive_cmds_F77='$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'
14895       else
14896         archive_cmds_F77='$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'
14897       fi
14898       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14899       hardcode_libdir_separator_F77=:
14900       hardcode_direct_F77=yes
14901
14902       # hardcode_minus_L: Not really in the search PATH,
14903       # but as the default location of the library.
14904       hardcode_minus_L_F77=yes
14905       export_dynamic_flag_spec_F77='${wl}-E'
14906       ;;
14907
14908     hpux10*)
14909       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14910         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14911       else
14912         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14913       fi
14914       if test "$with_gnu_ld" = no; then
14915         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14916         hardcode_libdir_separator_F77=:
14917
14918         hardcode_direct_F77=yes
14919         export_dynamic_flag_spec_F77='${wl}-E'
14920
14921         # hardcode_minus_L: Not really in the search PATH,
14922         # but as the default location of the library.
14923         hardcode_minus_L_F77=yes
14924       fi
14925       ;;
14926
14927     hpux11*)
14928       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14929         case $host_cpu in
14930         hppa*64*)
14931           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14932           ;;
14933         ia64*)
14934           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14935           ;;
14936         *)
14937           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14938           ;;
14939         esac
14940       else
14941         case $host_cpu in
14942         hppa*64*)
14943           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14944           ;;
14945         ia64*)
14946           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14947           ;;
14948         *)
14949           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14950           ;;
14951         esac
14952       fi
14953       if test "$with_gnu_ld" = no; then
14954         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14955         hardcode_libdir_separator_F77=:
14956
14957         case $host_cpu in
14958         hppa*64*|ia64*)
14959           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14960           hardcode_direct_F77=no
14961           hardcode_shlibpath_var_F77=no
14962           ;;
14963         *)
14964           hardcode_direct_F77=yes
14965           export_dynamic_flag_spec_F77='${wl}-E'
14966
14967           # hardcode_minus_L: Not really in the search PATH,
14968           # but as the default location of the library.
14969           hardcode_minus_L_F77=yes
14970           ;;
14971         esac
14972       fi
14973       ;;
14974
14975     irix5* | irix6* | nonstopux*)
14976       if test "$GCC" = yes; then
14977         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14978       else
14979         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14980         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14981       fi
14982       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14983       hardcode_libdir_separator_F77=:
14984       link_all_deplibs_F77=yes
14985       ;;
14986
14987     netbsd*)
14988       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14989         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14990       else
14991         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14992       fi
14993       hardcode_libdir_flag_spec_F77='-R$libdir'
14994       hardcode_direct_F77=yes
14995       hardcode_shlibpath_var_F77=no
14996       ;;
14997
14998     newsos6)
14999       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15000       hardcode_direct_F77=yes
15001       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15002       hardcode_libdir_separator_F77=:
15003       hardcode_shlibpath_var_F77=no
15004       ;;
15005
15006     openbsd*)
15007       hardcode_direct_F77=yes
15008       hardcode_shlibpath_var_F77=no
15009       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15010         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15011         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15012         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15013         export_dynamic_flag_spec_F77='${wl}-E'
15014       else
15015        case $host_os in
15016          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15017            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15018            hardcode_libdir_flag_spec_F77='-R$libdir'
15019            ;;
15020          *)
15021            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15022            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15023            ;;
15024        esac
15025       fi
15026       ;;
15027
15028     os2*)
15029       hardcode_libdir_flag_spec_F77='-L$libdir'
15030       hardcode_minus_L_F77=yes
15031       allow_undefined_flag_F77=unsupported
15032       archive_cmds_F77='$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'
15033       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15034       ;;
15035
15036     osf3*)
15037       if test "$GCC" = yes; then
15038         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15039         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15040       else
15041         allow_undefined_flag_F77=' -expect_unresolved \*'
15042         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15043       fi
15044       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15045       hardcode_libdir_separator_F77=:
15046       ;;
15047
15048     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15049       if test "$GCC" = yes; then
15050         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15051         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15052         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15053       else
15054         allow_undefined_flag_F77=' -expect_unresolved \*'
15055         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15056         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15057         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15058
15059         # Both c and cxx compiler support -rpath directly
15060         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15061       fi
15062       hardcode_libdir_separator_F77=:
15063       ;;
15064
15065     solaris*)
15066       no_undefined_flag_F77=' -z text'
15067       if test "$GCC" = yes; then
15068         wlarc='${wl}'
15069         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15070         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15071           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15072       else
15073         wlarc=''
15074         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15075         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15076         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15077       fi
15078       hardcode_libdir_flag_spec_F77='-R$libdir'
15079       hardcode_shlibpath_var_F77=no
15080       case $host_os in
15081       solaris2.[0-5] | solaris2.[0-5].*) ;;
15082       *)
15083         # The compiler driver will combine linker options so we
15084         # cannot just pass the convience library names through
15085         # without $wl, iff we do not link with $LD.
15086         # Luckily, gcc supports the same syntax we need for Sun Studio.
15087         # Supported since Solaris 2.6 (maybe 2.5.1?)
15088         case $wlarc in
15089         '')
15090           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15091         *)
15092           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15093         esac ;;
15094       esac
15095       link_all_deplibs_F77=yes
15096       ;;
15097
15098     sunos4*)
15099       if test "x$host_vendor" = xsequent; then
15100         # Use $CC to link under sequent, because it throws in some extra .o
15101         # files that make .init and .fini sections work.
15102         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15103       else
15104         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15105       fi
15106       hardcode_libdir_flag_spec_F77='-L$libdir'
15107       hardcode_direct_F77=yes
15108       hardcode_minus_L_F77=yes
15109       hardcode_shlibpath_var_F77=no
15110       ;;
15111
15112     sysv4)
15113       case $host_vendor in
15114         sni)
15115           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15116           hardcode_direct_F77=yes # is this really true???
15117         ;;
15118         siemens)
15119           ## LD is ld it makes a PLAMLIB
15120           ## CC just makes a GrossModule.
15121           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15122           reload_cmds_F77='$CC -r -o $output$reload_objs'
15123           hardcode_direct_F77=no
15124         ;;
15125         motorola)
15126           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15127           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15128         ;;
15129       esac
15130       runpath_var='LD_RUN_PATH'
15131       hardcode_shlibpath_var_F77=no
15132       ;;
15133
15134     sysv4.3*)
15135       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15136       hardcode_shlibpath_var_F77=no
15137       export_dynamic_flag_spec_F77='-Bexport'
15138       ;;
15139
15140     sysv4*MP*)
15141       if test -d /usr/nec; then
15142         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15143         hardcode_shlibpath_var_F77=no
15144         runpath_var=LD_RUN_PATH
15145         hardcode_runpath_var=yes
15146         ld_shlibs_F77=yes
15147       fi
15148       ;;
15149
15150     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15151       no_undefined_flag_F77='${wl}-z,text'
15152       archive_cmds_need_lc_F77=no
15153       hardcode_shlibpath_var_F77=no
15154       runpath_var='LD_RUN_PATH'
15155
15156       if test "$GCC" = yes; then
15157         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15158         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15159       else
15160         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15161         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15162       fi
15163       ;;
15164
15165     sysv5* | sco3.2v5* | sco5v6*)
15166       # Note: We can NOT use -z defs as we might desire, because we do not
15167       # link with -lc, and that would cause any symbols used from libc to
15168       # always be unresolved, which means just about no library would
15169       # ever link correctly.  If we're not using GNU ld we use -z text
15170       # though, which does catch some bad symbols but isn't as heavy-handed
15171       # as -z defs.
15172       no_undefined_flag_F77='${wl}-z,text'
15173       allow_undefined_flag_F77='${wl}-z,nodefs'
15174       archive_cmds_need_lc_F77=no
15175       hardcode_shlibpath_var_F77=no
15176       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15177       hardcode_libdir_separator_F77=':'
15178       link_all_deplibs_F77=yes
15179       export_dynamic_flag_spec_F77='${wl}-Bexport'
15180       runpath_var='LD_RUN_PATH'
15181
15182       if test "$GCC" = yes; then
15183         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15184         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15185       else
15186         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15187         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15188       fi
15189       ;;
15190
15191     uts4*)
15192       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15193       hardcode_libdir_flag_spec_F77='-L$libdir'
15194       hardcode_shlibpath_var_F77=no
15195       ;;
15196
15197     *)
15198       ld_shlibs_F77=no
15199       ;;
15200     esac
15201   fi
15202
15203 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15204 echo "${ECHO_T}$ld_shlibs_F77" >&6
15205 test "$ld_shlibs_F77" = no && can_build_shared=no
15206
15207 #
15208 # Do we need to explicitly link libc?
15209 #
15210 case "x$archive_cmds_need_lc_F77" in
15211 x|xyes)
15212   # Assume -lc should be added
15213   archive_cmds_need_lc_F77=yes
15214
15215   if test "$enable_shared" = yes && test "$GCC" = yes; then
15216     case $archive_cmds_F77 in
15217     *'~'*)
15218       # FIXME: we may have to deal with multi-command sequences.
15219       ;;
15220     '$CC '*)
15221       # Test whether the compiler implicitly links with -lc since on some
15222       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15223       # to ld, don't add -lc before -lgcc.
15224       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15225 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15226       $rm conftest*
15227       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15228
15229       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15230   (eval $ac_compile) 2>&5
15231   ac_status=$?
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); } 2>conftest.err; then
15234         soname=conftest
15235         lib=conftest
15236         libobjs=conftest.$ac_objext
15237         deplibs=
15238         wl=$lt_prog_compiler_wl_F77
15239         pic_flag=$lt_prog_compiler_pic_F77
15240         compiler_flags=-v
15241         linker_flags=-v
15242         verstring=
15243         output_objdir=.
15244         libname=conftest
15245         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15246         allow_undefined_flag_F77=
15247         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15248   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15249   ac_status=$?
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); }
15252         then
15253           archive_cmds_need_lc_F77=no
15254         else
15255           archive_cmds_need_lc_F77=yes
15256         fi
15257         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15258       else
15259         cat conftest.err 1>&5
15260       fi
15261       $rm conftest*
15262       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15263 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15264       ;;
15265     esac
15266   fi
15267   ;;
15268 esac
15269
15270 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15271 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15272 library_names_spec=
15273 libname_spec='lib$name'
15274 soname_spec=
15275 shrext_cmds=".so"
15276 postinstall_cmds=
15277 postuninstall_cmds=
15278 finish_cmds=
15279 finish_eval=
15280 shlibpath_var=
15281 shlibpath_overrides_runpath=unknown
15282 version_type=none
15283 dynamic_linker="$host_os ld.so"
15284 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15285 if test "$GCC" = yes; then
15286   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15287   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15288     # if the path contains ";" then we assume it to be the separator
15289     # otherwise default to the standard path separator (i.e. ":") - it is
15290     # assumed that no part of a normal pathname contains ";" but that should
15291     # okay in the real world where ";" in dirpaths is itself problematic.
15292     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15293   else
15294     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15295   fi
15296 else
15297   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15298 fi
15299 need_lib_prefix=unknown
15300 hardcode_into_libs=no
15301
15302 # when you set need_version to no, make sure it does not cause -set_version
15303 # flags to be left without arguments
15304 need_version=unknown
15305
15306 case $host_os in
15307 aix3*)
15308   version_type=linux
15309   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15310   shlibpath_var=LIBPATH
15311
15312   # AIX 3 has no versioning support, so we append a major version to the name.
15313   soname_spec='${libname}${release}${shared_ext}$major'
15314   ;;
15315
15316 aix4* | aix5*)
15317   version_type=linux
15318   need_lib_prefix=no
15319   need_version=no
15320   hardcode_into_libs=yes
15321   if test "$host_cpu" = ia64; then
15322     # AIX 5 supports IA64
15323     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15324     shlibpath_var=LD_LIBRARY_PATH
15325   else
15326     # With GCC up to 2.95.x, collect2 would create an import file
15327     # for dependence libraries.  The import file would start with
15328     # the line `#! .'.  This would cause the generated library to
15329     # depend on `.', always an invalid library.  This was fixed in
15330     # development snapshots of GCC prior to 3.0.
15331     case $host_os in
15332       aix4 | aix4.[01] | aix4.[01].*)
15333       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15334            echo ' yes '
15335            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15336         :
15337       else
15338         can_build_shared=no
15339       fi
15340       ;;
15341     esac
15342     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15343     # soname into executable. Probably we can add versioning support to
15344     # collect2, so additional links can be useful in future.
15345     if test "$aix_use_runtimelinking" = yes; then
15346       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15347       # instead of lib<name>.a to let people know that these are not
15348       # typical AIX shared libraries.
15349       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350     else
15351       # We preserve .a as extension for shared libraries through AIX4.2
15352       # and later when we are not doing run time linking.
15353       library_names_spec='${libname}${release}.a $libname.a'
15354       soname_spec='${libname}${release}${shared_ext}$major'
15355     fi
15356     shlibpath_var=LIBPATH
15357   fi
15358   ;;
15359
15360 amigaos*)
15361   library_names_spec='$libname.ixlibrary $libname.a'
15362   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15363   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'
15364   ;;
15365
15366 beos*)
15367   library_names_spec='${libname}${shared_ext}'
15368   dynamic_linker="$host_os ld.so"
15369   shlibpath_var=LIBRARY_PATH
15370   ;;
15371
15372 bsdi[45]*)
15373   version_type=linux
15374   need_version=no
15375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15376   soname_spec='${libname}${release}${shared_ext}$major'
15377   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15378   shlibpath_var=LD_LIBRARY_PATH
15379   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15380   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15381   # the default ld.so.conf also contains /usr/contrib/lib and
15382   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15383   # libtool to hard-code these into programs
15384   ;;
15385
15386 cygwin* | mingw* | pw32*)
15387   version_type=windows
15388   shrext_cmds=".dll"
15389   need_version=no
15390   need_lib_prefix=no
15391
15392   case $GCC,$host_os in
15393   yes,cygwin* | yes,mingw* | yes,pw32*)
15394     library_names_spec='$libname.dll.a'
15395     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15396     postinstall_cmds='base_file=`basename \${file}`~
15397       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15398       dldir=$destdir/`dirname \$dlpath`~
15399       test -d \$dldir || mkdir -p \$dldir~
15400       $install_prog $dir/$dlname \$dldir/$dlname~
15401       chmod a+x \$dldir/$dlname'
15402     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15403       dlpath=$dir/\$dldll~
15404        $rm \$dlpath'
15405     shlibpath_overrides_runpath=yes
15406
15407     case $host_os in
15408     cygwin*)
15409       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15410       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15411       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15412       ;;
15413     mingw*)
15414       # MinGW DLLs use traditional 'lib' prefix
15415       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15416       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15417       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15418         # It is most probably a Windows format PATH printed by
15419         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15420         # path with ; separators, and with drive letters. We can handle the
15421         # drive letters (cygwin fileutils understands them), so leave them,
15422         # especially as we might pass files found there to a mingw objdump,
15423         # which wouldn't understand a cygwinified path. Ahh.
15424         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15425       else
15426         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15427       fi
15428       ;;
15429     pw32*)
15430       # pw32 DLLs use 'pw' prefix rather than 'lib'
15431       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15432       ;;
15433     esac
15434     ;;
15435
15436   *)
15437     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15438     ;;
15439   esac
15440   dynamic_linker='Win32 ld.exe'
15441   # FIXME: first we should search . and the directory the executable is in
15442   shlibpath_var=PATH
15443   ;;
15444
15445 darwin* | rhapsody*)
15446   dynamic_linker="$host_os dyld"
15447   version_type=darwin
15448   need_lib_prefix=no
15449   need_version=no
15450   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15451   soname_spec='${libname}${release}${major}$shared_ext'
15452   shlibpath_overrides_runpath=yes
15453   shlibpath_var=DYLD_LIBRARY_PATH
15454   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15455   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15456   if test "$GCC" = yes; then
15457     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15458   else
15459     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15460   fi
15461   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15462   ;;
15463
15464 dgux*)
15465   version_type=linux
15466   need_lib_prefix=no
15467   need_version=no
15468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15469   soname_spec='${libname}${release}${shared_ext}$major'
15470   shlibpath_var=LD_LIBRARY_PATH
15471   ;;
15472
15473 freebsd1*)
15474   dynamic_linker=no
15475   ;;
15476
15477 kfreebsd*-gnu)
15478   version_type=linux
15479   need_lib_prefix=no
15480   need_version=no
15481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15482   soname_spec='${libname}${release}${shared_ext}$major'
15483   shlibpath_var=LD_LIBRARY_PATH
15484   shlibpath_overrides_runpath=no
15485   hardcode_into_libs=yes
15486   dynamic_linker='GNU ld.so'
15487   ;;
15488
15489 freebsd* | dragonfly*)
15490   # DragonFly does not have aout.  When/if they implement a new
15491   # versioning mechanism, adjust this.
15492   if test -x /usr/bin/objformat; then
15493     objformat=`/usr/bin/objformat`
15494   else
15495     case $host_os in
15496     freebsd[123]*) objformat=aout ;;
15497     *) objformat=elf ;;
15498     esac
15499   fi
15500   version_type=freebsd-$objformat
15501   case $version_type in
15502     freebsd-elf*)
15503       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15504       need_version=no
15505       need_lib_prefix=no
15506       ;;
15507     freebsd-*)
15508       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15509       need_version=yes
15510       ;;
15511   esac
15512   shlibpath_var=LD_LIBRARY_PATH
15513   case $host_os in
15514   freebsd2*)
15515     shlibpath_overrides_runpath=yes
15516     ;;
15517   freebsd3.[01]* | freebsdelf3.[01]*)
15518     shlibpath_overrides_runpath=yes
15519     hardcode_into_libs=yes
15520     ;;
15521   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15522   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15523     shlibpath_overrides_runpath=no
15524     hardcode_into_libs=yes
15525     ;;
15526   freebsd*) # from 4.6 on
15527     shlibpath_overrides_runpath=yes
15528     hardcode_into_libs=yes
15529     ;;
15530   esac
15531   ;;
15532
15533 gnu*)
15534   version_type=linux
15535   need_lib_prefix=no
15536   need_version=no
15537   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15538   soname_spec='${libname}${release}${shared_ext}$major'
15539   shlibpath_var=LD_LIBRARY_PATH
15540   hardcode_into_libs=yes
15541   ;;
15542
15543 hpux9* | hpux10* | hpux11*)
15544   # Give a soname corresponding to the major version so that dld.sl refuses to
15545   # link against other versions.
15546   version_type=sunos
15547   need_lib_prefix=no
15548   need_version=no
15549   case $host_cpu in
15550   ia64*)
15551     shrext_cmds='.so'
15552     hardcode_into_libs=yes
15553     dynamic_linker="$host_os dld.so"
15554     shlibpath_var=LD_LIBRARY_PATH
15555     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15556     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557     soname_spec='${libname}${release}${shared_ext}$major'
15558     if test "X$HPUX_IA64_MODE" = X32; then
15559       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15560     else
15561       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15562     fi
15563     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15564     ;;
15565    hppa*64*)
15566      shrext_cmds='.sl'
15567      hardcode_into_libs=yes
15568      dynamic_linker="$host_os dld.sl"
15569      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15570      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15571      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15572      soname_spec='${libname}${release}${shared_ext}$major'
15573      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15574      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15575      ;;
15576    *)
15577     shrext_cmds='.sl'
15578     dynamic_linker="$host_os dld.sl"
15579     shlibpath_var=SHLIB_PATH
15580     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15582     soname_spec='${libname}${release}${shared_ext}$major'
15583     ;;
15584   esac
15585   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15586   postinstall_cmds='chmod 555 $lib'
15587   ;;
15588
15589 interix3*)
15590   version_type=linux
15591   need_lib_prefix=no
15592   need_version=no
15593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15594   soname_spec='${libname}${release}${shared_ext}$major'
15595   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15596   shlibpath_var=LD_LIBRARY_PATH
15597   shlibpath_overrides_runpath=no
15598   hardcode_into_libs=yes
15599   ;;
15600
15601 irix5* | irix6* | nonstopux*)
15602   case $host_os in
15603     nonstopux*) version_type=nonstopux ;;
15604     *)
15605         if test "$lt_cv_prog_gnu_ld" = yes; then
15606                 version_type=linux
15607         else
15608                 version_type=irix
15609         fi ;;
15610   esac
15611   need_lib_prefix=no
15612   need_version=no
15613   soname_spec='${libname}${release}${shared_ext}$major'
15614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15615   case $host_os in
15616   irix5* | nonstopux*)
15617     libsuff= shlibsuff=
15618     ;;
15619   *)
15620     case $LD in # libtool.m4 will add one of these switches to LD
15621     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15622       libsuff= shlibsuff= libmagic=32-bit;;
15623     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15624       libsuff=32 shlibsuff=N32 libmagic=N32;;
15625     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15626       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15627     *) libsuff= shlibsuff= libmagic=never-match;;
15628     esac
15629     ;;
15630   esac
15631   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15632   shlibpath_overrides_runpath=no
15633   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15634   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15635   hardcode_into_libs=yes
15636   ;;
15637
15638 # No shared lib support for Linux oldld, aout, or coff.
15639 linux*oldld* | linux*aout* | linux*coff*)
15640   dynamic_linker=no
15641   ;;
15642
15643 # This must be Linux ELF.
15644 linux*)
15645   version_type=linux
15646   need_lib_prefix=no
15647   need_version=no
15648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15649   soname_spec='${libname}${release}${shared_ext}$major'
15650   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15651   shlibpath_var=LD_LIBRARY_PATH
15652   shlibpath_overrides_runpath=no
15653   # This implies no fast_install, which is unacceptable.
15654   # Some rework will be needed to allow for fast_install
15655   # before this can be enabled.
15656   hardcode_into_libs=yes
15657
15658   # find out which ABI we are using
15659   libsuff=
15660   case "$host_cpu" in
15661   x86_64*|s390x*|powerpc64*)
15662     echo '#line 15662 "configure"' > conftest.$ac_ext
15663     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15664   (eval $ac_compile) 2>&5
15665   ac_status=$?
15666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667   (exit $ac_status); }; then
15668       case `/usr/bin/file conftest.$ac_objext` in
15669       *64-bit*)
15670         libsuff=64
15671         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15672         ;;
15673       esac
15674     fi
15675     rm -rf conftest*
15676     ;;
15677   esac
15678
15679   # Append ld.so.conf contents to the search path
15680   if test -f /etc/ld.so.conf; then
15681     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15682     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15683   fi
15684
15685   # We used to test for /lib/ld.so.1 and disable shared libraries on
15686   # powerpc, because MkLinux only supported shared libraries with the
15687   # GNU dynamic linker.  Since this was broken with cross compilers,
15688   # most powerpc-linux boxes support dynamic linking these days and
15689   # people can always --disable-shared, the test was removed, and we
15690   # assume the GNU/Linux dynamic linker is in use.
15691   dynamic_linker='GNU/Linux ld.so'
15692   ;;
15693
15694 knetbsd*-gnu)
15695   version_type=linux
15696   need_lib_prefix=no
15697   need_version=no
15698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15699   soname_spec='${libname}${release}${shared_ext}$major'
15700   shlibpath_var=LD_LIBRARY_PATH
15701   shlibpath_overrides_runpath=no
15702   hardcode_into_libs=yes
15703   dynamic_linker='GNU ld.so'
15704   ;;
15705
15706 netbsd*)
15707   version_type=sunos
15708   need_lib_prefix=no
15709   need_version=no
15710   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15711     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15712     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15713     dynamic_linker='NetBSD (a.out) ld.so'
15714   else
15715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15716     soname_spec='${libname}${release}${shared_ext}$major'
15717     dynamic_linker='NetBSD ld.elf_so'
15718   fi
15719   shlibpath_var=LD_LIBRARY_PATH
15720   shlibpath_overrides_runpath=yes
15721   hardcode_into_libs=yes
15722   ;;
15723
15724 newsos6)
15725   version_type=linux
15726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727   shlibpath_var=LD_LIBRARY_PATH
15728   shlibpath_overrides_runpath=yes
15729   ;;
15730
15731 nto-qnx*)
15732   version_type=linux
15733   need_lib_prefix=no
15734   need_version=no
15735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736   soname_spec='${libname}${release}${shared_ext}$major'
15737   shlibpath_var=LD_LIBRARY_PATH
15738   shlibpath_overrides_runpath=yes
15739   ;;
15740
15741 openbsd*)
15742   version_type=sunos
15743   sys_lib_dlsearch_path_spec="/usr/lib"
15744   need_lib_prefix=no
15745   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15746   case $host_os in
15747     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15748     *)                         need_version=no  ;;
15749   esac
15750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15751   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15752   shlibpath_var=LD_LIBRARY_PATH
15753   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15754     case $host_os in
15755       openbsd2.[89] | openbsd2.[89].*)
15756         shlibpath_overrides_runpath=no
15757         ;;
15758       *)
15759         shlibpath_overrides_runpath=yes
15760         ;;
15761       esac
15762   else
15763     shlibpath_overrides_runpath=yes
15764   fi
15765   ;;
15766
15767 os2*)
15768   libname_spec='$name'
15769   shrext_cmds=".dll"
15770   need_lib_prefix=no
15771   library_names_spec='$libname${shared_ext} $libname.a'
15772   dynamic_linker='OS/2 ld.exe'
15773   shlibpath_var=LIBPATH
15774   ;;
15775
15776 osf3* | osf4* | osf5*)
15777   version_type=osf
15778   need_lib_prefix=no
15779   need_version=no
15780   soname_spec='${libname}${release}${shared_ext}$major'
15781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782   shlibpath_var=LD_LIBRARY_PATH
15783   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15784   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15785   ;;
15786
15787 solaris*)
15788   version_type=linux
15789   need_lib_prefix=no
15790   need_version=no
15791   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792   soname_spec='${libname}${release}${shared_ext}$major'
15793   shlibpath_var=LD_LIBRARY_PATH
15794   shlibpath_overrides_runpath=yes
15795   hardcode_into_libs=yes
15796   # ldd complains unless libraries are executable
15797   postinstall_cmds='chmod +x $lib'
15798   ;;
15799
15800 sunos4*)
15801   version_type=sunos
15802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15803   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15804   shlibpath_var=LD_LIBRARY_PATH
15805   shlibpath_overrides_runpath=yes
15806   if test "$with_gnu_ld" = yes; then
15807     need_lib_prefix=no
15808   fi
15809   need_version=yes
15810   ;;
15811
15812 sysv4 | sysv4.3*)
15813   version_type=linux
15814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15815   soname_spec='${libname}${release}${shared_ext}$major'
15816   shlibpath_var=LD_LIBRARY_PATH
15817   case $host_vendor in
15818     sni)
15819       shlibpath_overrides_runpath=no
15820       need_lib_prefix=no
15821       export_dynamic_flag_spec='${wl}-Blargedynsym'
15822       runpath_var=LD_RUN_PATH
15823       ;;
15824     siemens)
15825       need_lib_prefix=no
15826       ;;
15827     motorola)
15828       need_lib_prefix=no
15829       need_version=no
15830       shlibpath_overrides_runpath=no
15831       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15832       ;;
15833   esac
15834   ;;
15835
15836 sysv4*MP*)
15837   if test -d /usr/nec ;then
15838     version_type=linux
15839     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15840     soname_spec='$libname${shared_ext}.$major'
15841     shlibpath_var=LD_LIBRARY_PATH
15842   fi
15843   ;;
15844
15845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15846   version_type=freebsd-elf
15847   need_lib_prefix=no
15848   need_version=no
15849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15850   soname_spec='${libname}${release}${shared_ext}$major'
15851   shlibpath_var=LD_LIBRARY_PATH
15852   hardcode_into_libs=yes
15853   if test "$with_gnu_ld" = yes; then
15854     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15855     shlibpath_overrides_runpath=no
15856   else
15857     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15858     shlibpath_overrides_runpath=yes
15859     case $host_os in
15860       sco3.2v5*)
15861         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15862         ;;
15863     esac
15864   fi
15865   sys_lib_dlsearch_path_spec='/usr/lib'
15866   ;;
15867
15868 uts4*)
15869   version_type=linux
15870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871   soname_spec='${libname}${release}${shared_ext}$major'
15872   shlibpath_var=LD_LIBRARY_PATH
15873   ;;
15874
15875 *)
15876   dynamic_linker=no
15877   ;;
15878 esac
15879 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15880 echo "${ECHO_T}$dynamic_linker" >&6
15881 test "$dynamic_linker" = no && can_build_shared=no
15882
15883 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15884 if test "$GCC" = yes; then
15885   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15886 fi
15887
15888 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15889 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15890 hardcode_action_F77=
15891 if test -n "$hardcode_libdir_flag_spec_F77" || \
15892    test -n "$runpath_var_F77" || \
15893    test "X$hardcode_automatic_F77" = "Xyes" ; then
15894
15895   # We can hardcode non-existant directories.
15896   if test "$hardcode_direct_F77" != no &&
15897      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15898      # have to relink, otherwise we might link with an installed library
15899      # when we should be linking with a yet-to-be-installed one
15900      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15901      test "$hardcode_minus_L_F77" != no; then
15902     # Linking always hardcodes the temporary library directory.
15903     hardcode_action_F77=relink
15904   else
15905     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15906     hardcode_action_F77=immediate
15907   fi
15908 else
15909   # We cannot hardcode anything, or else we can only hardcode existing
15910   # directories.
15911   hardcode_action_F77=unsupported
15912 fi
15913 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15914 echo "${ECHO_T}$hardcode_action_F77" >&6
15915
15916 if test "$hardcode_action_F77" = relink; then
15917   # Fast installation is not supported
15918   enable_fast_install=no
15919 elif test "$shlibpath_overrides_runpath" = yes ||
15920      test "$enable_shared" = no; then
15921   # Fast installation is not necessary
15922   enable_fast_install=needless
15923 fi
15924
15925
15926 # The else clause should only fire when bootstrapping the
15927 # libtool distribution, otherwise you forgot to ship ltmain.sh
15928 # with your package, and you will get complaints that there are
15929 # no rules to generate ltmain.sh.
15930 if test -f "$ltmain"; then
15931   # See if we are running on zsh, and set the options which allow our commands through
15932   # without removal of \ escapes.
15933   if test -n "${ZSH_VERSION+set}" ; then
15934     setopt NO_GLOB_SUBST
15935   fi
15936   # Now quote all the things that may contain metacharacters while being
15937   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15938   # variables and quote the copies for generation of the libtool script.
15939   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15940     SED SHELL STRIP \
15941     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15942     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15943     deplibs_check_method reload_flag reload_cmds need_locks \
15944     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15945     lt_cv_sys_global_symbol_to_c_name_address \
15946     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15947     old_postinstall_cmds old_postuninstall_cmds \
15948     compiler_F77 \
15949     CC_F77 \
15950     LD_F77 \
15951     lt_prog_compiler_wl_F77 \
15952     lt_prog_compiler_pic_F77 \
15953     lt_prog_compiler_static_F77 \
15954     lt_prog_compiler_no_builtin_flag_F77 \
15955     export_dynamic_flag_spec_F77 \
15956     thread_safe_flag_spec_F77 \
15957     whole_archive_flag_spec_F77 \
15958     enable_shared_with_static_runtimes_F77 \
15959     old_archive_cmds_F77 \
15960     old_archive_from_new_cmds_F77 \
15961     predep_objects_F77 \
15962     postdep_objects_F77 \
15963     predeps_F77 \
15964     postdeps_F77 \
15965     compiler_lib_search_path_F77 \
15966     archive_cmds_F77 \
15967     archive_expsym_cmds_F77 \
15968     postinstall_cmds_F77 \
15969     postuninstall_cmds_F77 \
15970     old_archive_from_expsyms_cmds_F77 \
15971     allow_undefined_flag_F77 \
15972     no_undefined_flag_F77 \
15973     export_symbols_cmds_F77 \
15974     hardcode_libdir_flag_spec_F77 \
15975     hardcode_libdir_flag_spec_ld_F77 \
15976     hardcode_libdir_separator_F77 \
15977     hardcode_automatic_F77 \
15978     module_cmds_F77 \
15979     module_expsym_cmds_F77 \
15980     lt_cv_prog_compiler_c_o_F77 \
15981     exclude_expsyms_F77 \
15982     include_expsyms_F77; do
15983
15984     case $var in
15985     old_archive_cmds_F77 | \
15986     old_archive_from_new_cmds_F77 | \
15987     archive_cmds_F77 | \
15988     archive_expsym_cmds_F77 | \
15989     module_cmds_F77 | \
15990     module_expsym_cmds_F77 | \
15991     old_archive_from_expsyms_cmds_F77 | \
15992     export_symbols_cmds_F77 | \
15993     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15994     postinstall_cmds | postuninstall_cmds | \
15995     old_postinstall_cmds | old_postuninstall_cmds | \
15996     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15997       # Double-quote double-evaled strings.
15998       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15999       ;;
16000     *)
16001       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16002       ;;
16003     esac
16004   done
16005
16006   case $lt_echo in
16007   *'\$0 --fallback-echo"')
16008     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16009     ;;
16010   esac
16011
16012 cfgfile="$ofile"
16013
16014   cat <<__EOF__ >> "$cfgfile"
16015 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16016
16017 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16018
16019 # Shell to use when invoking shell scripts.
16020 SHELL=$lt_SHELL
16021
16022 # Whether or not to build shared libraries.
16023 build_libtool_libs=$enable_shared
16024
16025 # Whether or not to build static libraries.
16026 build_old_libs=$enable_static
16027
16028 # Whether or not to add -lc for building shared libraries.
16029 build_libtool_need_lc=$archive_cmds_need_lc_F77
16030
16031 # Whether or not to disallow shared libs when runtime libs are static
16032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16033
16034 # Whether or not to optimize for fast installation.
16035 fast_install=$enable_fast_install
16036
16037 # The host system.
16038 host_alias=$host_alias
16039 host=$host
16040 host_os=$host_os
16041
16042 # The build system.
16043 build_alias=$build_alias
16044 build=$build
16045 build_os=$build_os
16046
16047 # An echo program that does not interpret backslashes.
16048 echo=$lt_echo
16049
16050 # The archiver.
16051 AR=$lt_AR
16052 AR_FLAGS=$lt_AR_FLAGS
16053
16054 # A C compiler.
16055 LTCC=$lt_LTCC
16056
16057 # LTCC compiler flags.
16058 LTCFLAGS=$lt_LTCFLAGS
16059
16060 # A language-specific compiler.
16061 CC=$lt_compiler_F77
16062
16063 # Is the compiler the GNU C compiler?
16064 with_gcc=$GCC_F77
16065
16066 # An ERE matcher.
16067 EGREP=$lt_EGREP
16068
16069 # The linker used to build libraries.
16070 LD=$lt_LD_F77
16071
16072 # Whether we need hard or soft links.
16073 LN_S=$lt_LN_S
16074
16075 # A BSD-compatible nm program.
16076 NM=$lt_NM
16077
16078 # A symbol stripping program
16079 STRIP=$lt_STRIP
16080
16081 # Used to examine libraries when file_magic_cmd begins "file"
16082 MAGIC_CMD=$MAGIC_CMD
16083
16084 # Used on cygwin: DLL creation program.
16085 DLLTOOL="$DLLTOOL"
16086
16087 # Used on cygwin: object dumper.
16088 OBJDUMP="$OBJDUMP"
16089
16090 # Used on cygwin: assembler.
16091 AS="$AS"
16092
16093 # The name of the directory that contains temporary libtool files.
16094 objdir=$objdir
16095
16096 # How to create reloadable object files.
16097 reload_flag=$lt_reload_flag
16098 reload_cmds=$lt_reload_cmds
16099
16100 # How to pass a linker flag through the compiler.
16101 wl=$lt_lt_prog_compiler_wl_F77
16102
16103 # Object file suffix (normally "o").
16104 objext="$ac_objext"
16105
16106 # Old archive suffix (normally "a").
16107 libext="$libext"
16108
16109 # Shared library suffix (normally ".so").
16110 shrext_cmds='$shrext_cmds'
16111
16112 # Executable file suffix (normally "").
16113 exeext="$exeext"
16114
16115 # Additional compiler flags for building library objects.
16116 pic_flag=$lt_lt_prog_compiler_pic_F77
16117 pic_mode=$pic_mode
16118
16119 # What is the maximum length of a command?
16120 max_cmd_len=$lt_cv_sys_max_cmd_len
16121
16122 # Does compiler simultaneously support -c and -o options?
16123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16124
16125 # Must we lock files when doing compilation?
16126 need_locks=$lt_need_locks
16127
16128 # Do we need the lib prefix for modules?
16129 need_lib_prefix=$need_lib_prefix
16130
16131 # Do we need a version for libraries?
16132 need_version=$need_version
16133
16134 # Whether dlopen is supported.
16135 dlopen_support=$enable_dlopen
16136
16137 # Whether dlopen of programs is supported.
16138 dlopen_self=$enable_dlopen_self
16139
16140 # Whether dlopen of statically linked programs is supported.
16141 dlopen_self_static=$enable_dlopen_self_static
16142
16143 # Compiler flag to prevent dynamic linking.
16144 link_static_flag=$lt_lt_prog_compiler_static_F77
16145
16146 # Compiler flag to turn off builtin functions.
16147 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16148
16149 # Compiler flag to allow reflexive dlopens.
16150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16151
16152 # Compiler flag to generate shared objects directly from archives.
16153 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16154
16155 # Compiler flag to generate thread-safe objects.
16156 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16157
16158 # Library versioning type.
16159 version_type=$version_type
16160
16161 # Format of library name prefix.
16162 libname_spec=$lt_libname_spec
16163
16164 # List of archive names.  First name is the real one, the rest are links.
16165 # The last name is the one that the linker finds with -lNAME.
16166 library_names_spec=$lt_library_names_spec
16167
16168 # The coded name of the library, if different from the real name.
16169 soname_spec=$lt_soname_spec
16170
16171 # Commands used to build and install an old-style archive.
16172 RANLIB=$lt_RANLIB
16173 old_archive_cmds=$lt_old_archive_cmds_F77
16174 old_postinstall_cmds=$lt_old_postinstall_cmds
16175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16176
16177 # Create an old-style archive from a shared archive.
16178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16179
16180 # Create a temporary old-style archive to link instead of a shared archive.
16181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16182
16183 # Commands used to build and install a shared archive.
16184 archive_cmds=$lt_archive_cmds_F77
16185 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16186 postinstall_cmds=$lt_postinstall_cmds
16187 postuninstall_cmds=$lt_postuninstall_cmds
16188
16189 # Commands used to build a loadable module (assumed same as above if empty)
16190 module_cmds=$lt_module_cmds_F77
16191 module_expsym_cmds=$lt_module_expsym_cmds_F77
16192
16193 # Commands to strip libraries.
16194 old_striplib=$lt_old_striplib
16195 striplib=$lt_striplib
16196
16197 # Dependencies to place before the objects being linked to create a
16198 # shared library.
16199 predep_objects=$lt_predep_objects_F77
16200
16201 # Dependencies to place after the objects being linked to create a
16202 # shared library.
16203 postdep_objects=$lt_postdep_objects_F77
16204
16205 # Dependencies to place before the objects being linked to create a
16206 # shared library.
16207 predeps=$lt_predeps_F77
16208
16209 # Dependencies to place after the objects being linked to create a
16210 # shared library.
16211 postdeps=$lt_postdeps_F77
16212
16213 # The library search path used internally by the compiler when linking
16214 # a shared library.
16215 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16216
16217 # Method to check whether dependent libraries are shared objects.
16218 deplibs_check_method=$lt_deplibs_check_method
16219
16220 # Command to use when deplibs_check_method == file_magic.
16221 file_magic_cmd=$lt_file_magic_cmd
16222
16223 # Flag that allows shared libraries with undefined symbols to be built.
16224 allow_undefined_flag=$lt_allow_undefined_flag_F77
16225
16226 # Flag that forces no undefined symbols.
16227 no_undefined_flag=$lt_no_undefined_flag_F77
16228
16229 # Commands used to finish a libtool library installation in a directory.
16230 finish_cmds=$lt_finish_cmds
16231
16232 # Same as above, but a single script fragment to be evaled but not shown.
16233 finish_eval=$lt_finish_eval
16234
16235 # Take the output of nm and produce a listing of raw symbols and C names.
16236 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16237
16238 # Transform the output of nm in a proper C declaration
16239 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16240
16241 # Transform the output of nm in a C name address pair
16242 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16243
16244 # This is the shared library runtime path variable.
16245 runpath_var=$runpath_var
16246
16247 # This is the shared library path variable.
16248 shlibpath_var=$shlibpath_var
16249
16250 # Is shlibpath searched before the hard-coded library search path?
16251 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16252
16253 # How to hardcode a shared library path into an executable.
16254 hardcode_action=$hardcode_action_F77
16255
16256 # Whether we should hardcode library paths into libraries.
16257 hardcode_into_libs=$hardcode_into_libs
16258
16259 # Flag to hardcode \$libdir into a binary during linking.
16260 # This must work even if \$libdir does not exist.
16261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16262
16263 # If ld is used when linking, flag to hardcode \$libdir into
16264 # a binary during linking. This must work even if \$libdir does
16265 # not exist.
16266 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16267
16268 # Whether we need a single -rpath flag with a separated argument.
16269 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16270
16271 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16272 # resulting binary.
16273 hardcode_direct=$hardcode_direct_F77
16274
16275 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16276 # resulting binary.
16277 hardcode_minus_L=$hardcode_minus_L_F77
16278
16279 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16280 # the resulting binary.
16281 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16282
16283 # Set to yes if building a shared library automatically hardcodes DIR into the library
16284 # and all subsequent libraries and executables linked against it.
16285 hardcode_automatic=$hardcode_automatic_F77
16286
16287 # Variables whose values should be saved in libtool wrapper scripts and
16288 # restored at relink time.
16289 variables_saved_for_relink="$variables_saved_for_relink"
16290
16291 # Whether libtool must link a program against all its dependency libraries.
16292 link_all_deplibs=$link_all_deplibs_F77
16293
16294 # Compile-time system search path for libraries
16295 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16296
16297 # Run-time system search path for libraries
16298 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16299
16300 # Fix the shell variable \$srcfile for the compiler.
16301 fix_srcfile_path="$fix_srcfile_path_F77"
16302
16303 # Set to yes if exported symbols are required.
16304 always_export_symbols=$always_export_symbols_F77
16305
16306 # The commands to list exported symbols.
16307 export_symbols_cmds=$lt_export_symbols_cmds_F77
16308
16309 # The commands to extract the exported symbol list from a shared archive.
16310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16311
16312 # Symbols that should not be listed in the preloaded symbols.
16313 exclude_expsyms=$lt_exclude_expsyms_F77
16314
16315 # Symbols that must always be exported.
16316 include_expsyms=$lt_include_expsyms_F77
16317
16318 # ### END LIBTOOL TAG CONFIG: $tagname
16319
16320 __EOF__
16321
16322
16323 else
16324   # If there is no Makefile yet, we rely on a make rule to execute
16325   # `config.status --recheck' to rerun these tests and create the
16326   # libtool script then.
16327   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16328   if test -f "$ltmain_in"; then
16329     test -f Makefile && make "$ltmain"
16330   fi
16331 fi
16332
16333
16334 ac_ext=c
16335 ac_cpp='$CPP $CPPFLAGS'
16336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16339
16340 CC="$lt_save_CC"
16341
16342         else
16343           tagname=""
16344         fi
16345         ;;
16346
16347       GCJ)
16348         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16349
16350
16351
16352 # Source file extension for Java test sources.
16353 ac_ext=java
16354
16355 # Object file extension for compiled Java test sources.
16356 objext=o
16357 objext_GCJ=$objext
16358
16359 # Code to be used in simple compile tests
16360 lt_simple_compile_test_code="class foo {}\n"
16361
16362 # Code to be used in simple link tests
16363 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16364
16365 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16366
16367 # If no C compiler was specified, use CC.
16368 LTCC=${LTCC-"$CC"}
16369
16370 # If no C compiler flags were specified, use CFLAGS.
16371 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16372
16373 # Allow CC to be a program name with arguments.
16374 compiler=$CC
16375
16376
16377 # save warnings/boilerplate of simple test code
16378 ac_outfile=conftest.$ac_objext
16379 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16380 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16381 _lt_compiler_boilerplate=`cat conftest.err`
16382 $rm conftest*
16383
16384 ac_outfile=conftest.$ac_objext
16385 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16386 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16387 _lt_linker_boilerplate=`cat conftest.err`
16388 $rm conftest*
16389
16390
16391 # Allow CC to be a program name with arguments.
16392 lt_save_CC="$CC"
16393 CC=${GCJ-"gcj"}
16394 compiler=$CC
16395 compiler_GCJ=$CC
16396 for cc_temp in $compiler""; do
16397   case $cc_temp in
16398     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16399     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16400     \-*) ;;
16401     *) break;;
16402   esac
16403 done
16404 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16405
16406
16407 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16408 archive_cmds_need_lc_GCJ=no
16409
16410 old_archive_cmds_GCJ=$old_archive_cmds
16411
16412
16413 lt_prog_compiler_no_builtin_flag_GCJ=
16414
16415 if test "$GCC" = yes; then
16416   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16417
16418
16419 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16420 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16421 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16422   echo $ECHO_N "(cached) $ECHO_C" >&6
16423 else
16424   lt_cv_prog_compiler_rtti_exceptions=no
16425   ac_outfile=conftest.$ac_objext
16426    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16427    lt_compiler_flag="-fno-rtti -fno-exceptions"
16428    # Insert the option either (1) after the last *FLAGS variable, or
16429    # (2) before a word containing "conftest.", or (3) at the end.
16430    # Note that $ac_compile itself does not contain backslashes and begins
16431    # with a dollar sign (not a hyphen), so the echo should work correctly.
16432    # The option is referenced via a variable to avoid confusing sed.
16433    lt_compile=`echo "$ac_compile" | $SED \
16434    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16435    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16436    -e 's:$: $lt_compiler_flag:'`
16437    (eval echo "\"\$as_me:16437: $lt_compile\"" >&5)
16438    (eval "$lt_compile" 2>conftest.err)
16439    ac_status=$?
16440    cat conftest.err >&5
16441    echo "$as_me:16441: \$? = $ac_status" >&5
16442    if (exit $ac_status) && test -s "$ac_outfile"; then
16443      # The compiler can only warn and ignore the option if not recognized
16444      # So say no if there are warnings other than the usual output.
16445      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16446      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16447      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16448        lt_cv_prog_compiler_rtti_exceptions=yes
16449      fi
16450    fi
16451    $rm conftest*
16452
16453 fi
16454 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16455 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16456
16457 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16458     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16459 else
16460     :
16461 fi
16462
16463 fi
16464
16465 lt_prog_compiler_wl_GCJ=
16466 lt_prog_compiler_pic_GCJ=
16467 lt_prog_compiler_static_GCJ=
16468
16469 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16470 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16471
16472   if test "$GCC" = yes; then
16473     lt_prog_compiler_wl_GCJ='-Wl,'
16474     lt_prog_compiler_static_GCJ='-static'
16475
16476     case $host_os in
16477       aix*)
16478       # All AIX code is PIC.
16479       if test "$host_cpu" = ia64; then
16480         # AIX 5 now supports IA64 processor
16481         lt_prog_compiler_static_GCJ='-Bstatic'
16482       fi
16483       ;;
16484
16485     amigaos*)
16486       # FIXME: we need at least 68020 code to build shared libraries, but
16487       # adding the `-m68020' flag to GCC prevents building anything better,
16488       # like `-m68040'.
16489       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16490       ;;
16491
16492     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16493       # PIC is the default for these OSes.
16494       ;;
16495
16496     mingw* | pw32* | os2*)
16497       # This hack is so that the source file can tell whether it is being
16498       # built for inclusion in a dll (and should export symbols for example).
16499       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16500       ;;
16501
16502     darwin* | rhapsody*)
16503       # PIC is the default on this platform
16504       # Common symbols not allowed in MH_DYLIB files
16505       lt_prog_compiler_pic_GCJ='-fno-common'
16506       ;;
16507
16508     interix3*)
16509       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16510       # Instead, we relocate shared libraries at runtime.
16511       ;;
16512
16513     msdosdjgpp*)
16514       # Just because we use GCC doesn't mean we suddenly get shared libraries
16515       # on systems that don't support them.
16516       lt_prog_compiler_can_build_shared_GCJ=no
16517       enable_shared=no
16518       ;;
16519
16520     sysv4*MP*)
16521       if test -d /usr/nec; then
16522         lt_prog_compiler_pic_GCJ=-Kconform_pic
16523       fi
16524       ;;
16525
16526     hpux*)
16527       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16528       # not for PA HP-UX.
16529       case $host_cpu in
16530       hppa*64*|ia64*)
16531         # +Z the default
16532         ;;
16533       *)
16534         lt_prog_compiler_pic_GCJ='-fPIC'
16535         ;;
16536       esac
16537       ;;
16538
16539     *)
16540       lt_prog_compiler_pic_GCJ='-fPIC'
16541       ;;
16542     esac
16543   else
16544     # PORTME Check for flag to pass linker flags through the system compiler.
16545     case $host_os in
16546     aix*)
16547       lt_prog_compiler_wl_GCJ='-Wl,'
16548       if test "$host_cpu" = ia64; then
16549         # AIX 5 now supports IA64 processor
16550         lt_prog_compiler_static_GCJ='-Bstatic'
16551       else
16552         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16553       fi
16554       ;;
16555       darwin*)
16556         # PIC is the default on this platform
16557         # Common symbols not allowed in MH_DYLIB files
16558        case $cc_basename in
16559          xlc*)
16560          lt_prog_compiler_pic_GCJ='-qnocommon'
16561          lt_prog_compiler_wl_GCJ='-Wl,'
16562          ;;
16563        esac
16564        ;;
16565
16566     mingw* | pw32* | os2*)
16567       # This hack is so that the source file can tell whether it is being
16568       # built for inclusion in a dll (and should export symbols for example).
16569       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16570       ;;
16571
16572     hpux9* | hpux10* | hpux11*)
16573       lt_prog_compiler_wl_GCJ='-Wl,'
16574       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16575       # not for PA HP-UX.
16576       case $host_cpu in
16577       hppa*64*|ia64*)
16578         # +Z the default
16579         ;;
16580       *)
16581         lt_prog_compiler_pic_GCJ='+Z'
16582         ;;
16583       esac
16584       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16585       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16586       ;;
16587
16588     irix5* | irix6* | nonstopux*)
16589       lt_prog_compiler_wl_GCJ='-Wl,'
16590       # PIC (with -KPIC) is the default.
16591       lt_prog_compiler_static_GCJ='-non_shared'
16592       ;;
16593
16594     newsos6)
16595       lt_prog_compiler_pic_GCJ='-KPIC'
16596       lt_prog_compiler_static_GCJ='-Bstatic'
16597       ;;
16598
16599     linux*)
16600       case $cc_basename in
16601       icc* | ecc*)
16602         lt_prog_compiler_wl_GCJ='-Wl,'
16603         lt_prog_compiler_pic_GCJ='-KPIC'
16604         lt_prog_compiler_static_GCJ='-static'
16605         ;;
16606       pgcc* | pgf77* | pgf90* | pgf95*)
16607         # Portland Group compilers (*not* the Pentium gcc compiler,
16608         # which looks to be a dead project)
16609         lt_prog_compiler_wl_GCJ='-Wl,'
16610         lt_prog_compiler_pic_GCJ='-fpic'
16611         lt_prog_compiler_static_GCJ='-Bstatic'
16612         ;;
16613       ccc*)
16614         lt_prog_compiler_wl_GCJ='-Wl,'
16615         # All Alpha code is PIC.
16616         lt_prog_compiler_static_GCJ='-non_shared'
16617         ;;
16618       esac
16619       ;;
16620
16621     osf3* | osf4* | osf5*)
16622       lt_prog_compiler_wl_GCJ='-Wl,'
16623       # All OSF/1 code is PIC.
16624       lt_prog_compiler_static_GCJ='-non_shared'
16625       ;;
16626
16627     solaris*)
16628       lt_prog_compiler_pic_GCJ='-KPIC'
16629       lt_prog_compiler_static_GCJ='-Bstatic'
16630       case $cc_basename in
16631       f77* | f90* | f95*)
16632         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16633       *)
16634         lt_prog_compiler_wl_GCJ='-Wl,';;
16635       esac
16636       ;;
16637
16638     sunos4*)
16639       lt_prog_compiler_wl_GCJ='-Qoption ld '
16640       lt_prog_compiler_pic_GCJ='-PIC'
16641       lt_prog_compiler_static_GCJ='-Bstatic'
16642       ;;
16643
16644     sysv4 | sysv4.2uw2* | sysv4.3*)
16645       lt_prog_compiler_wl_GCJ='-Wl,'
16646       lt_prog_compiler_pic_GCJ='-KPIC'
16647       lt_prog_compiler_static_GCJ='-Bstatic'
16648       ;;
16649
16650     sysv4*MP*)
16651       if test -d /usr/nec ;then
16652         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16653         lt_prog_compiler_static_GCJ='-Bstatic'
16654       fi
16655       ;;
16656
16657     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16658       lt_prog_compiler_wl_GCJ='-Wl,'
16659       lt_prog_compiler_pic_GCJ='-KPIC'
16660       lt_prog_compiler_static_GCJ='-Bstatic'
16661       ;;
16662
16663     unicos*)
16664       lt_prog_compiler_wl_GCJ='-Wl,'
16665       lt_prog_compiler_can_build_shared_GCJ=no
16666       ;;
16667
16668     uts4*)
16669       lt_prog_compiler_pic_GCJ='-pic'
16670       lt_prog_compiler_static_GCJ='-Bstatic'
16671       ;;
16672
16673     *)
16674       lt_prog_compiler_can_build_shared_GCJ=no
16675       ;;
16676     esac
16677   fi
16678
16679 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16680 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16681
16682 #
16683 # Check to make sure the PIC flag actually works.
16684 #
16685 if test -n "$lt_prog_compiler_pic_GCJ"; then
16686
16687 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16688 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16689 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16690   echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692   lt_prog_compiler_pic_works_GCJ=no
16693   ac_outfile=conftest.$ac_objext
16694    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16695    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16696    # Insert the option either (1) after the last *FLAGS variable, or
16697    # (2) before a word containing "conftest.", or (3) at the end.
16698    # Note that $ac_compile itself does not contain backslashes and begins
16699    # with a dollar sign (not a hyphen), so the echo should work correctly.
16700    # The option is referenced via a variable to avoid confusing sed.
16701    lt_compile=`echo "$ac_compile" | $SED \
16702    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16703    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16704    -e 's:$: $lt_compiler_flag:'`
16705    (eval echo "\"\$as_me:16705: $lt_compile\"" >&5)
16706    (eval "$lt_compile" 2>conftest.err)
16707    ac_status=$?
16708    cat conftest.err >&5
16709    echo "$as_me:16709: \$? = $ac_status" >&5
16710    if (exit $ac_status) && test -s "$ac_outfile"; then
16711      # The compiler can only warn and ignore the option if not recognized
16712      # So say no if there are warnings other than the usual output.
16713      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16714      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16715      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16716        lt_prog_compiler_pic_works_GCJ=yes
16717      fi
16718    fi
16719    $rm conftest*
16720
16721 fi
16722 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16723 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16724
16725 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16726     case $lt_prog_compiler_pic_GCJ in
16727      "" | " "*) ;;
16728      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16729      esac
16730 else
16731     lt_prog_compiler_pic_GCJ=
16732      lt_prog_compiler_can_build_shared_GCJ=no
16733 fi
16734
16735 fi
16736 case $host_os in
16737   # For platforms which do not support PIC, -DPIC is meaningless:
16738   *djgpp*)
16739     lt_prog_compiler_pic_GCJ=
16740     ;;
16741   *)
16742     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16743     ;;
16744 esac
16745
16746 #
16747 # Check to make sure the static flag actually works.
16748 #
16749 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16750 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16751 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16752 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16753   echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755   lt_prog_compiler_static_works_GCJ=no
16756    save_LDFLAGS="$LDFLAGS"
16757    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16758    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16759    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16760      # The linker can only warn and ignore the option if not recognized
16761      # So say no if there are warnings
16762      if test -s conftest.err; then
16763        # Append any errors to the config.log.
16764        cat conftest.err 1>&5
16765        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16766        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16767        if diff conftest.exp conftest.er2 >/dev/null; then
16768          lt_prog_compiler_static_works_GCJ=yes
16769        fi
16770      else
16771        lt_prog_compiler_static_works_GCJ=yes
16772      fi
16773    fi
16774    $rm conftest*
16775    LDFLAGS="$save_LDFLAGS"
16776
16777 fi
16778 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16779 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16780
16781 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16782     :
16783 else
16784     lt_prog_compiler_static_GCJ=
16785 fi
16786
16787
16788 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16789 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16790 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16791   echo $ECHO_N "(cached) $ECHO_C" >&6
16792 else
16793   lt_cv_prog_compiler_c_o_GCJ=no
16794    $rm -r conftest 2>/dev/null
16795    mkdir conftest
16796    cd conftest
16797    mkdir out
16798    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16799
16800    lt_compiler_flag="-o out/conftest2.$ac_objext"
16801    # Insert the option either (1) after the last *FLAGS variable, or
16802    # (2) before a word containing "conftest.", or (3) at the end.
16803    # Note that $ac_compile itself does not contain backslashes and begins
16804    # with a dollar sign (not a hyphen), so the echo should work correctly.
16805    lt_compile=`echo "$ac_compile" | $SED \
16806    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16807    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16808    -e 's:$: $lt_compiler_flag:'`
16809    (eval echo "\"\$as_me:16809: $lt_compile\"" >&5)
16810    (eval "$lt_compile" 2>out/conftest.err)
16811    ac_status=$?
16812    cat out/conftest.err >&5
16813    echo "$as_me:16813: \$? = $ac_status" >&5
16814    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16815    then
16816      # The compiler can only warn and ignore the option if not recognized
16817      # So say no if there are warnings
16818      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16819      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16820      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16821        lt_cv_prog_compiler_c_o_GCJ=yes
16822      fi
16823    fi
16824    chmod u+w . 2>&5
16825    $rm conftest*
16826    # SGI C++ compiler will create directory out/ii_files/ for
16827    # template instantiation
16828    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16829    $rm out/* && rmdir out
16830    cd ..
16831    rmdir conftest
16832    $rm conftest*
16833
16834 fi
16835 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16836 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16837
16838
16839 hard_links="nottested"
16840 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16841   # do not overwrite the value of need_locks provided by the user
16842   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16843 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16844   hard_links=yes
16845   $rm conftest*
16846   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16847   touch conftest.a
16848   ln conftest.a conftest.b 2>&5 || hard_links=no
16849   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16850   echo "$as_me:$LINENO: result: $hard_links" >&5
16851 echo "${ECHO_T}$hard_links" >&6
16852   if test "$hard_links" = no; then
16853     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16854 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16855     need_locks=warn
16856   fi
16857 else
16858   need_locks=no
16859 fi
16860
16861 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16862 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16863
16864   runpath_var=
16865   allow_undefined_flag_GCJ=
16866   enable_shared_with_static_runtimes_GCJ=no
16867   archive_cmds_GCJ=
16868   archive_expsym_cmds_GCJ=
16869   old_archive_From_new_cmds_GCJ=
16870   old_archive_from_expsyms_cmds_GCJ=
16871   export_dynamic_flag_spec_GCJ=
16872   whole_archive_flag_spec_GCJ=
16873   thread_safe_flag_spec_GCJ=
16874   hardcode_libdir_flag_spec_GCJ=
16875   hardcode_libdir_flag_spec_ld_GCJ=
16876   hardcode_libdir_separator_GCJ=
16877   hardcode_direct_GCJ=no
16878   hardcode_minus_L_GCJ=no
16879   hardcode_shlibpath_var_GCJ=unsupported
16880   link_all_deplibs_GCJ=unknown
16881   hardcode_automatic_GCJ=no
16882   module_cmds_GCJ=
16883   module_expsym_cmds_GCJ=
16884   always_export_symbols_GCJ=no
16885   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16886   # include_expsyms should be a list of space-separated symbols to be *always*
16887   # included in the symbol list
16888   include_expsyms_GCJ=
16889   # exclude_expsyms can be an extended regexp of symbols to exclude
16890   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16891   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16892   # as well as any symbol that contains `d'.
16893   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16894   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16895   # platforms (ab)use it in PIC code, but their linkers get confused if
16896   # the symbol is explicitly referenced.  Since portable code cannot
16897   # rely on this symbol name, it's probably fine to never include it in
16898   # preloaded symbol tables.
16899   extract_expsyms_cmds=
16900   # Just being paranoid about ensuring that cc_basename is set.
16901   for cc_temp in $compiler""; do
16902   case $cc_temp in
16903     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16904     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16905     \-*) ;;
16906     *) break;;
16907   esac
16908 done
16909 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16910
16911   case $host_os in
16912   cygwin* | mingw* | pw32*)
16913     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16914     # When not using gcc, we currently assume that we are using
16915     # Microsoft Visual C++.
16916     if test "$GCC" != yes; then
16917       with_gnu_ld=no
16918     fi
16919     ;;
16920   interix*)
16921     # we just hope/assume this is gcc and not c89 (= MSVC++)
16922     with_gnu_ld=yes
16923     ;;
16924   openbsd*)
16925     with_gnu_ld=no
16926     ;;
16927   esac
16928
16929   ld_shlibs_GCJ=yes
16930   if test "$with_gnu_ld" = yes; then
16931     # If archive_cmds runs LD, not CC, wlarc should be empty
16932     wlarc='${wl}'
16933
16934     # Set some defaults for GNU ld with shared library support. These
16935     # are reset later if shared libraries are not supported. Putting them
16936     # here allows them to be overridden if necessary.
16937     runpath_var=LD_RUN_PATH
16938     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16939     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16940     # ancient GNU ld didn't support --whole-archive et. al.
16941     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16942         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16943       else
16944         whole_archive_flag_spec_GCJ=
16945     fi
16946     supports_anon_versioning=no
16947     case `$LD -v 2>/dev/null` in
16948       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16949       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16950       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16951       *\ 2.11.*) ;; # other 2.11 versions
16952       *) supports_anon_versioning=yes ;;
16953     esac
16954
16955     # See if GNU ld supports shared libraries.
16956     case $host_os in
16957     aix3* | aix4* | aix5*)
16958       # On AIX/PPC, the GNU linker is very broken
16959       if test "$host_cpu" != ia64; then
16960         ld_shlibs_GCJ=no
16961         cat <<EOF 1>&2
16962
16963 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16964 *** to be unable to reliably create shared libraries on AIX.
16965 *** Therefore, libtool is disabling shared libraries support.  If you
16966 *** really care for shared libraries, you may want to modify your PATH
16967 *** so that a non-GNU linker is found, and then restart.
16968
16969 EOF
16970       fi
16971       ;;
16972
16973     amigaos*)
16974       archive_cmds_GCJ='$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)'
16975       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16976       hardcode_minus_L_GCJ=yes
16977
16978       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16979       # that the semantics of dynamic libraries on AmigaOS, at least up
16980       # to version 4, is to share data among multiple programs linked
16981       # with the same dynamic library.  Since this doesn't match the
16982       # behavior of shared libraries on other platforms, we can't use
16983       # them.
16984       ld_shlibs_GCJ=no
16985       ;;
16986
16987     beos*)
16988       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16989         allow_undefined_flag_GCJ=unsupported
16990         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16991         # support --undefined.  This deserves some investigation.  FIXME
16992         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16993       else
16994         ld_shlibs_GCJ=no
16995       fi
16996       ;;
16997
16998     cygwin* | mingw* | pw32*)
16999       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17000       # as there is no search path for DLLs.
17001       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17002       allow_undefined_flag_GCJ=unsupported
17003       always_export_symbols_GCJ=no
17004       enable_shared_with_static_runtimes_GCJ=yes
17005       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17006
17007       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17008         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17009         # If the export-symbols file already is a .def file (1st line
17010         # is EXPORTS), use it as is; otherwise, prepend...
17011         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17012           cp $export_symbols $output_objdir/$soname.def;
17013         else
17014           echo EXPORTS > $output_objdir/$soname.def;
17015           cat $export_symbols >> $output_objdir/$soname.def;
17016         fi~
17017         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17018       else
17019         ld_shlibs_GCJ=no
17020       fi
17021       ;;
17022
17023     interix3*)
17024       hardcode_direct_GCJ=no
17025       hardcode_shlibpath_var_GCJ=no
17026       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17027       export_dynamic_flag_spec_GCJ='${wl}-E'
17028       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17029       # Instead, shared libraries are loaded at an image base (0x10000000 by
17030       # default) and relocated if they conflict, which is a slow very memory
17031       # consuming and fragmenting process.  To avoid this, we pick a random,
17032       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17033       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17034       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17035       archive_expsym_cmds_GCJ='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'
17036       ;;
17037
17038     linux*)
17039       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17040         tmp_addflag=
17041         case $cc_basename,$host_cpu in
17042         pgcc*)                          # Portland Group C compiler
17043           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17044           tmp_addflag=' $pic_flag'
17045           ;;
17046         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17047           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17048           tmp_addflag=' $pic_flag -Mnomain' ;;
17049         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17050           tmp_addflag=' -i_dynamic' ;;
17051         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17052           tmp_addflag=' -i_dynamic -nofor_main' ;;
17053         ifc* | ifort*)                  # Intel Fortran compiler
17054           tmp_addflag=' -nofor_main' ;;
17055         esac
17056         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17057
17058         if test $supports_anon_versioning = yes; then
17059           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17060   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17061   $echo "local: *; };" >> $output_objdir/$libname.ver~
17062           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17063         fi
17064       else
17065         ld_shlibs_GCJ=no
17066       fi
17067       ;;
17068
17069     netbsd*)
17070       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17071         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17072         wlarc=
17073       else
17074         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17075         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17076       fi
17077       ;;
17078
17079     solaris*)
17080       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17081         ld_shlibs_GCJ=no
17082         cat <<EOF 1>&2
17083
17084 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17085 *** create shared libraries on Solaris systems.  Therefore, libtool
17086 *** is disabling shared libraries support.  We urge you to upgrade GNU
17087 *** binutils to release 2.9.1 or newer.  Another option is to modify
17088 *** your PATH or compiler configuration so that the native linker is
17089 *** used, and then restart.
17090
17091 EOF
17092       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17093         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17094         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17095       else
17096         ld_shlibs_GCJ=no
17097       fi
17098       ;;
17099
17100     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17101       case `$LD -v 2>&1` in
17102         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17103         ld_shlibs_GCJ=no
17104         cat <<_LT_EOF 1>&2
17105
17106 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17107 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17108 *** is disabling shared libraries support.  We urge you to upgrade GNU
17109 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17110 *** your PATH or compiler configuration so that the native linker is
17111 *** used, and then restart.
17112
17113 _LT_EOF
17114         ;;
17115         *)
17116           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17117             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17118             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17119             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17120           else
17121             ld_shlibs_GCJ=no
17122           fi
17123         ;;
17124       esac
17125       ;;
17126
17127     sunos4*)
17128       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17129       wlarc=
17130       hardcode_direct_GCJ=yes
17131       hardcode_shlibpath_var_GCJ=no
17132       ;;
17133
17134     *)
17135       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17136         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17137         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17138       else
17139         ld_shlibs_GCJ=no
17140       fi
17141       ;;
17142     esac
17143
17144     if test "$ld_shlibs_GCJ" = no; then
17145       runpath_var=
17146       hardcode_libdir_flag_spec_GCJ=
17147       export_dynamic_flag_spec_GCJ=
17148       whole_archive_flag_spec_GCJ=
17149     fi
17150   else
17151     # PORTME fill in a description of your system's linker (not GNU ld)
17152     case $host_os in
17153     aix3*)
17154       allow_undefined_flag_GCJ=unsupported
17155       always_export_symbols_GCJ=yes
17156       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17157       # Note: this linker hardcodes the directories in LIBPATH if there
17158       # are no directories specified by -L.
17159       hardcode_minus_L_GCJ=yes
17160       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17161         # Neither direct hardcoding nor static linking is supported with a
17162         # broken collect2.
17163         hardcode_direct_GCJ=unsupported
17164       fi
17165       ;;
17166
17167     aix4* | aix5*)
17168       if test "$host_cpu" = ia64; then
17169         # On IA64, the linker does run time linking by default, so we don't
17170         # have to do anything special.
17171         aix_use_runtimelinking=no
17172         exp_sym_flag='-Bexport'
17173         no_entry_flag=""
17174       else
17175         # If we're using GNU nm, then we don't want the "-C" option.
17176         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17177         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17178           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17179         else
17180           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17181         fi
17182         aix_use_runtimelinking=no
17183
17184         # Test if we are trying to use run time linking or normal
17185         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17186         # need to do runtime linking.
17187         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17188           for ld_flag in $LDFLAGS; do
17189           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17190             aix_use_runtimelinking=yes
17191             break
17192           fi
17193           done
17194           ;;
17195         esac
17196
17197         exp_sym_flag='-bexport'
17198         no_entry_flag='-bnoentry'
17199       fi
17200
17201       # When large executables or shared objects are built, AIX ld can
17202       # have problems creating the table of contents.  If linking a library
17203       # or program results in "error TOC overflow" add -mminimal-toc to
17204       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17205       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17206
17207       archive_cmds_GCJ=''
17208       hardcode_direct_GCJ=yes
17209       hardcode_libdir_separator_GCJ=':'
17210       link_all_deplibs_GCJ=yes
17211
17212       if test "$GCC" = yes; then
17213         case $host_os in aix4.[012]|aix4.[012].*)
17214         # We only want to do this on AIX 4.2 and lower, the check
17215         # below for broken collect2 doesn't work under 4.3+
17216           collect2name=`${CC} -print-prog-name=collect2`
17217           if test -f "$collect2name" && \
17218            strings "$collect2name" | grep resolve_lib_name >/dev/null
17219           then
17220           # We have reworked collect2
17221           hardcode_direct_GCJ=yes
17222           else
17223           # We have old collect2
17224           hardcode_direct_GCJ=unsupported
17225           # It fails to find uninstalled libraries when the uninstalled
17226           # path is not listed in the libpath.  Setting hardcode_minus_L
17227           # to unsupported forces relinking
17228           hardcode_minus_L_GCJ=yes
17229           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17230           hardcode_libdir_separator_GCJ=
17231           fi
17232           ;;
17233         esac
17234         shared_flag='-shared'
17235         if test "$aix_use_runtimelinking" = yes; then
17236           shared_flag="$shared_flag "'${wl}-G'
17237         fi
17238       else
17239         # not using gcc
17240         if test "$host_cpu" = ia64; then
17241         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17242         # chokes on -Wl,-G. The following line is correct:
17243           shared_flag='-G'
17244         else
17245           if test "$aix_use_runtimelinking" = yes; then
17246             shared_flag='${wl}-G'
17247           else
17248             shared_flag='${wl}-bM:SRE'
17249           fi
17250         fi
17251       fi
17252
17253       # It seems that -bexpall does not export symbols beginning with
17254       # underscore (_), so it is better to generate a list of symbols to export.
17255       always_export_symbols_GCJ=yes
17256       if test "$aix_use_runtimelinking" = yes; then
17257         # Warning - without using the other runtime loading flags (-brtl),
17258         # -berok will link without error, but may produce a broken library.
17259         allow_undefined_flag_GCJ='-berok'
17260        # Determine the default libpath from the value encoded in an empty executable.
17261        cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h.  */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h.  */
17267
17268 int
17269 main ()
17270 {
17271
17272   ;
17273   return 0;
17274 }
17275 _ACEOF
17276 rm -f conftest.$ac_objext conftest$ac_exeext
17277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17278   (eval $ac_link) 2>conftest.er1
17279   ac_status=$?
17280   grep -v '^ *+' conftest.er1 >conftest.err
17281   rm -f conftest.er1
17282   cat conftest.err >&5
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); } &&
17285          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287   (eval $ac_try) 2>&5
17288   ac_status=$?
17289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290   (exit $ac_status); }; } &&
17291          { ac_try='test -s conftest$ac_exeext'
17292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293   (eval $ac_try) 2>&5
17294   ac_status=$?
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); }; }; then
17297
17298 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17299 }'`
17300 # Check for a 64-bit object if we didn't find anything.
17301 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17302 }'`; fi
17303 else
17304   echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17306
17307 fi
17308 rm -f conftest.err conftest.$ac_objext \
17309       conftest$ac_exeext conftest.$ac_ext
17310 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17311
17312        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17313         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17314        else
17315         if test "$host_cpu" = ia64; then
17316           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17317           allow_undefined_flag_GCJ="-z nodefs"
17318           archive_expsym_cmds_GCJ="\$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"
17319         else
17320          # Determine the default libpath from the value encoded in an empty executable.
17321          cat >conftest.$ac_ext <<_ACEOF
17322 /* confdefs.h.  */
17323 _ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h.  */
17327
17328 int
17329 main ()
17330 {
17331
17332   ;
17333   return 0;
17334 }
17335 _ACEOF
17336 rm -f conftest.$ac_objext conftest$ac_exeext
17337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17338   (eval $ac_link) 2>conftest.er1
17339   ac_status=$?
17340   grep -v '^ *+' conftest.er1 >conftest.err
17341   rm -f conftest.er1
17342   cat conftest.err >&5
17343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); } &&
17345          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347   (eval $ac_try) 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); }; } &&
17351          { ac_try='test -s conftest$ac_exeext'
17352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353   (eval $ac_try) 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); }; }; then
17357
17358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17359 }'`
17360 # Check for a 64-bit object if we didn't find anything.
17361 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17362 }'`; fi
17363 else
17364   echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17366
17367 fi
17368 rm -f conftest.err conftest.$ac_objext \
17369       conftest$ac_exeext conftest.$ac_ext
17370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17371
17372          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17373           # Warning - without using the other run time loading flags,
17374           # -berok will link without error, but may produce a broken library.
17375           no_undefined_flag_GCJ=' ${wl}-bernotok'
17376           allow_undefined_flag_GCJ=' ${wl}-berok'
17377           # Exported symbols can be pulled into shared objects from archives
17378           whole_archive_flag_spec_GCJ='$convenience'
17379           archive_cmds_need_lc_GCJ=yes
17380           # This is similar to how AIX traditionally builds its shared libraries.
17381           archive_expsym_cmds_GCJ="\$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'
17382         fi
17383       fi
17384       ;;
17385
17386     amigaos*)
17387       archive_cmds_GCJ='$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)'
17388       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17389       hardcode_minus_L_GCJ=yes
17390       # see comment about different semantics on the GNU ld section
17391       ld_shlibs_GCJ=no
17392       ;;
17393
17394     bsdi[45]*)
17395       export_dynamic_flag_spec_GCJ=-rdynamic
17396       ;;
17397
17398     cygwin* | mingw* | pw32*)
17399       # When not using gcc, we currently assume that we are using
17400       # Microsoft Visual C++.
17401       # hardcode_libdir_flag_spec is actually meaningless, as there is
17402       # no search path for DLLs.
17403       hardcode_libdir_flag_spec_GCJ=' '
17404       allow_undefined_flag_GCJ=unsupported
17405       # Tell ltmain to make .lib files, not .a files.
17406       libext=lib
17407       # Tell ltmain to make .dll files, not .so files.
17408       shrext_cmds=".dll"
17409       # FIXME: Setting linknames here is a bad hack.
17410       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17411       # The linker will automatically build a .lib file if we build a DLL.
17412       old_archive_From_new_cmds_GCJ='true'
17413       # FIXME: Should let the user specify the lib program.
17414       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17415       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17416       enable_shared_with_static_runtimes_GCJ=yes
17417       ;;
17418
17419     darwin* | rhapsody*)
17420       case $host_os in
17421         rhapsody* | darwin1.[012])
17422          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17423          ;;
17424        *) # Darwin 1.3 on
17425          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17426            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17427          else
17428            case ${MACOSX_DEPLOYMENT_TARGET} in
17429              10.[012])
17430                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17431                ;;
17432              10.*)
17433                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17434                ;;
17435            esac
17436          fi
17437          ;;
17438       esac
17439       archive_cmds_need_lc_GCJ=no
17440       hardcode_direct_GCJ=no
17441       hardcode_automatic_GCJ=yes
17442       hardcode_shlibpath_var_GCJ=unsupported
17443       whole_archive_flag_spec_GCJ=''
17444       link_all_deplibs_GCJ=yes
17445     if test "$GCC" = yes ; then
17446         output_verbose_link_cmd='echo'
17447         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17448       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17449       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17450       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
17451       module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
17452     else
17453       case $cc_basename in
17454         xlc*)
17455          output_verbose_link_cmd='echo'
17456          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17457          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17458           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17459          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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}'
17460           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -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}'
17461           ;;
17462        *)
17463          ld_shlibs_GCJ=no
17464           ;;
17465       esac
17466     fi
17467       ;;
17468
17469     dgux*)
17470       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17471       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17472       hardcode_shlibpath_var_GCJ=no
17473       ;;
17474
17475     freebsd1*)
17476       ld_shlibs_GCJ=no
17477       ;;
17478
17479     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17480     # support.  Future versions do this automatically, but an explicit c++rt0.o
17481     # does not break anything, and helps significantly (at the cost of a little
17482     # extra space).
17483     freebsd2.2*)
17484       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17485       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17486       hardcode_direct_GCJ=yes
17487       hardcode_shlibpath_var_GCJ=no
17488       ;;
17489
17490     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17491     freebsd2*)
17492       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17493       hardcode_direct_GCJ=yes
17494       hardcode_minus_L_GCJ=yes
17495       hardcode_shlibpath_var_GCJ=no
17496       ;;
17497
17498     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17499     freebsd* | kfreebsd*-gnu | dragonfly*)
17500       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17501       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17502       hardcode_direct_GCJ=yes
17503       hardcode_shlibpath_var_GCJ=no
17504       ;;
17505
17506     hpux9*)
17507       if test "$GCC" = yes; then
17508         archive_cmds_GCJ='$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'
17509       else
17510         archive_cmds_GCJ='$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'
17511       fi
17512       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17513       hardcode_libdir_separator_GCJ=:
17514       hardcode_direct_GCJ=yes
17515
17516       # hardcode_minus_L: Not really in the search PATH,
17517       # but as the default location of the library.
17518       hardcode_minus_L_GCJ=yes
17519       export_dynamic_flag_spec_GCJ='${wl}-E'
17520       ;;
17521
17522     hpux10*)
17523       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17524         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17525       else
17526         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17527       fi
17528       if test "$with_gnu_ld" = no; then
17529         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17530         hardcode_libdir_separator_GCJ=:
17531
17532         hardcode_direct_GCJ=yes
17533         export_dynamic_flag_spec_GCJ='${wl}-E'
17534
17535         # hardcode_minus_L: Not really in the search PATH,
17536         # but as the default location of the library.
17537         hardcode_minus_L_GCJ=yes
17538       fi
17539       ;;
17540
17541     hpux11*)
17542       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17543         case $host_cpu in
17544         hppa*64*)
17545           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17546           ;;
17547         ia64*)
17548           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17549           ;;
17550         *)
17551           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17552           ;;
17553         esac
17554       else
17555         case $host_cpu in
17556         hppa*64*)
17557           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17558           ;;
17559         ia64*)
17560           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17561           ;;
17562         *)
17563           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17564           ;;
17565         esac
17566       fi
17567       if test "$with_gnu_ld" = no; then
17568         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17569         hardcode_libdir_separator_GCJ=:
17570
17571         case $host_cpu in
17572         hppa*64*|ia64*)
17573           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17574           hardcode_direct_GCJ=no
17575           hardcode_shlibpath_var_GCJ=no
17576           ;;
17577         *)
17578           hardcode_direct_GCJ=yes
17579           export_dynamic_flag_spec_GCJ='${wl}-E'
17580
17581           # hardcode_minus_L: Not really in the search PATH,
17582           # but as the default location of the library.
17583           hardcode_minus_L_GCJ=yes
17584           ;;
17585         esac
17586       fi
17587       ;;
17588
17589     irix5* | irix6* | nonstopux*)
17590       if test "$GCC" = yes; then
17591         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17592       else
17593         archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17594         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17595       fi
17596       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17597       hardcode_libdir_separator_GCJ=:
17598       link_all_deplibs_GCJ=yes
17599       ;;
17600
17601     netbsd*)
17602       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17603         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17604       else
17605         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17606       fi
17607       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17608       hardcode_direct_GCJ=yes
17609       hardcode_shlibpath_var_GCJ=no
17610       ;;
17611
17612     newsos6)
17613       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17614       hardcode_direct_GCJ=yes
17615       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17616       hardcode_libdir_separator_GCJ=:
17617       hardcode_shlibpath_var_GCJ=no
17618       ;;
17619
17620     openbsd*)
17621       hardcode_direct_GCJ=yes
17622       hardcode_shlibpath_var_GCJ=no
17623       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17624         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17625         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17626         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17627         export_dynamic_flag_spec_GCJ='${wl}-E'
17628       else
17629        case $host_os in
17630          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17631            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17632            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17633            ;;
17634          *)
17635            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17636            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17637            ;;
17638        esac
17639       fi
17640       ;;
17641
17642     os2*)
17643       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17644       hardcode_minus_L_GCJ=yes
17645       allow_undefined_flag_GCJ=unsupported
17646       archive_cmds_GCJ='$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'
17647       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17648       ;;
17649
17650     osf3*)
17651       if test "$GCC" = yes; then
17652         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17653         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17654       else
17655         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17656         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17657       fi
17658       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17659       hardcode_libdir_separator_GCJ=:
17660       ;;
17661
17662     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17663       if test "$GCC" = yes; then
17664         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17665         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17666         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17667       else
17668         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17669         archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17670         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17671         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17672
17673         # Both c and cxx compiler support -rpath directly
17674         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17675       fi
17676       hardcode_libdir_separator_GCJ=:
17677       ;;
17678
17679     solaris*)
17680       no_undefined_flag_GCJ=' -z text'
17681       if test "$GCC" = yes; then
17682         wlarc='${wl}'
17683         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17684         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17685           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17686       else
17687         wlarc=''
17688         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17689         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17690         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17691       fi
17692       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17693       hardcode_shlibpath_var_GCJ=no
17694       case $host_os in
17695       solaris2.[0-5] | solaris2.[0-5].*) ;;
17696       *)
17697         # The compiler driver will combine linker options so we
17698         # cannot just pass the convience library names through
17699         # without $wl, iff we do not link with $LD.
17700         # Luckily, gcc supports the same syntax we need for Sun Studio.
17701         # Supported since Solaris 2.6 (maybe 2.5.1?)
17702         case $wlarc in
17703         '')
17704           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17705         *)
17706           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17707         esac ;;
17708       esac
17709       link_all_deplibs_GCJ=yes
17710       ;;
17711
17712     sunos4*)
17713       if test "x$host_vendor" = xsequent; then
17714         # Use $CC to link under sequent, because it throws in some extra .o
17715         # files that make .init and .fini sections work.
17716         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17717       else
17718         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17719       fi
17720       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17721       hardcode_direct_GCJ=yes
17722       hardcode_minus_L_GCJ=yes
17723       hardcode_shlibpath_var_GCJ=no
17724       ;;
17725
17726     sysv4)
17727       case $host_vendor in
17728         sni)
17729           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17730           hardcode_direct_GCJ=yes # is this really true???
17731         ;;
17732         siemens)
17733           ## LD is ld it makes a PLAMLIB
17734           ## CC just makes a GrossModule.
17735           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17736           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17737           hardcode_direct_GCJ=no
17738         ;;
17739         motorola)
17740           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17741           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17742         ;;
17743       esac
17744       runpath_var='LD_RUN_PATH'
17745       hardcode_shlibpath_var_GCJ=no
17746       ;;
17747
17748     sysv4.3*)
17749       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17750       hardcode_shlibpath_var_GCJ=no
17751       export_dynamic_flag_spec_GCJ='-Bexport'
17752       ;;
17753
17754     sysv4*MP*)
17755       if test -d /usr/nec; then
17756         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17757         hardcode_shlibpath_var_GCJ=no
17758         runpath_var=LD_RUN_PATH
17759         hardcode_runpath_var=yes
17760         ld_shlibs_GCJ=yes
17761       fi
17762       ;;
17763
17764     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17765       no_undefined_flag_GCJ='${wl}-z,text'
17766       archive_cmds_need_lc_GCJ=no
17767       hardcode_shlibpath_var_GCJ=no
17768       runpath_var='LD_RUN_PATH'
17769
17770       if test "$GCC" = yes; then
17771         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17772         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17773       else
17774         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17775         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17776       fi
17777       ;;
17778
17779     sysv5* | sco3.2v5* | sco5v6*)
17780       # Note: We can NOT use -z defs as we might desire, because we do not
17781       # link with -lc, and that would cause any symbols used from libc to
17782       # always be unresolved, which means just about no library would
17783       # ever link correctly.  If we're not using GNU ld we use -z text
17784       # though, which does catch some bad symbols but isn't as heavy-handed
17785       # as -z defs.
17786       no_undefined_flag_GCJ='${wl}-z,text'
17787       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17788       archive_cmds_need_lc_GCJ=no
17789       hardcode_shlibpath_var_GCJ=no
17790       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17791       hardcode_libdir_separator_GCJ=':'
17792       link_all_deplibs_GCJ=yes
17793       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17794       runpath_var='LD_RUN_PATH'
17795
17796       if test "$GCC" = yes; then
17797         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17798         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17799       else
17800         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17801         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17802       fi
17803       ;;
17804
17805     uts4*)
17806       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17807       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17808       hardcode_shlibpath_var_GCJ=no
17809       ;;
17810
17811     *)
17812       ld_shlibs_GCJ=no
17813       ;;
17814     esac
17815   fi
17816
17817 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17818 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17819 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17820
17821 #
17822 # Do we need to explicitly link libc?
17823 #
17824 case "x$archive_cmds_need_lc_GCJ" in
17825 x|xyes)
17826   # Assume -lc should be added
17827   archive_cmds_need_lc_GCJ=yes
17828
17829   if test "$enable_shared" = yes && test "$GCC" = yes; then
17830     case $archive_cmds_GCJ in
17831     *'~'*)
17832       # FIXME: we may have to deal with multi-command sequences.
17833       ;;
17834     '$CC '*)
17835       # Test whether the compiler implicitly links with -lc since on some
17836       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17837       # to ld, don't add -lc before -lgcc.
17838       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17839 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17840       $rm conftest*
17841       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17842
17843       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17844   (eval $ac_compile) 2>&5
17845   ac_status=$?
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); } 2>conftest.err; then
17848         soname=conftest
17849         lib=conftest
17850         libobjs=conftest.$ac_objext
17851         deplibs=
17852         wl=$lt_prog_compiler_wl_GCJ
17853         pic_flag=$lt_prog_compiler_pic_GCJ
17854         compiler_flags=-v
17855         linker_flags=-v
17856         verstring=
17857         output_objdir=.
17858         libname=conftest
17859         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17860         allow_undefined_flag_GCJ=
17861         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17862   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }
17866         then
17867           archive_cmds_need_lc_GCJ=no
17868         else
17869           archive_cmds_need_lc_GCJ=yes
17870         fi
17871         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17872       else
17873         cat conftest.err 1>&5
17874       fi
17875       $rm conftest*
17876       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17877 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17878       ;;
17879     esac
17880   fi
17881   ;;
17882 esac
17883
17884 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17885 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17886 library_names_spec=
17887 libname_spec='lib$name'
17888 soname_spec=
17889 shrext_cmds=".so"
17890 postinstall_cmds=
17891 postuninstall_cmds=
17892 finish_cmds=
17893 finish_eval=
17894 shlibpath_var=
17895 shlibpath_overrides_runpath=unknown
17896 version_type=none
17897 dynamic_linker="$host_os ld.so"
17898 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17899 if test "$GCC" = yes; then
17900   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17901   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17902     # if the path contains ";" then we assume it to be the separator
17903     # otherwise default to the standard path separator (i.e. ":") - it is
17904     # assumed that no part of a normal pathname contains ";" but that should
17905     # okay in the real world where ";" in dirpaths is itself problematic.
17906     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17907   else
17908     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17909   fi
17910 else
17911   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17912 fi
17913 need_lib_prefix=unknown
17914 hardcode_into_libs=no
17915
17916 # when you set need_version to no, make sure it does not cause -set_version
17917 # flags to be left without arguments
17918 need_version=unknown
17919
17920 case $host_os in
17921 aix3*)
17922   version_type=linux
17923   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17924   shlibpath_var=LIBPATH
17925
17926   # AIX 3 has no versioning support, so we append a major version to the name.
17927   soname_spec='${libname}${release}${shared_ext}$major'
17928   ;;
17929
17930 aix4* | aix5*)
17931   version_type=linux
17932   need_lib_prefix=no
17933   need_version=no
17934   hardcode_into_libs=yes
17935   if test "$host_cpu" = ia64; then
17936     # AIX 5 supports IA64
17937     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17938     shlibpath_var=LD_LIBRARY_PATH
17939   else
17940     # With GCC up to 2.95.x, collect2 would create an import file
17941     # for dependence libraries.  The import file would start with
17942     # the line `#! .'.  This would cause the generated library to
17943     # depend on `.', always an invalid library.  This was fixed in
17944     # development snapshots of GCC prior to 3.0.
17945     case $host_os in
17946       aix4 | aix4.[01] | aix4.[01].*)
17947       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17948            echo ' yes '
17949            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17950         :
17951       else
17952         can_build_shared=no
17953       fi
17954       ;;
17955     esac
17956     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17957     # soname into executable. Probably we can add versioning support to
17958     # collect2, so additional links can be useful in future.
17959     if test "$aix_use_runtimelinking" = yes; then
17960       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17961       # instead of lib<name>.a to let people know that these are not
17962       # typical AIX shared libraries.
17963       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17964     else
17965       # We preserve .a as extension for shared libraries through AIX4.2
17966       # and later when we are not doing run time linking.
17967       library_names_spec='${libname}${release}.a $libname.a'
17968       soname_spec='${libname}${release}${shared_ext}$major'
17969     fi
17970     shlibpath_var=LIBPATH
17971   fi
17972   ;;
17973
17974 amigaos*)
17975   library_names_spec='$libname.ixlibrary $libname.a'
17976   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17977   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'
17978   ;;
17979
17980 beos*)
17981   library_names_spec='${libname}${shared_ext}'
17982   dynamic_linker="$host_os ld.so"
17983   shlibpath_var=LIBRARY_PATH
17984   ;;
17985
17986 bsdi[45]*)
17987   version_type=linux
17988   need_version=no
17989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990   soname_spec='${libname}${release}${shared_ext}$major'
17991   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17992   shlibpath_var=LD_LIBRARY_PATH
17993   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17994   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17995   # the default ld.so.conf also contains /usr/contrib/lib and
17996   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17997   # libtool to hard-code these into programs
17998   ;;
17999
18000 cygwin* | mingw* | pw32*)
18001   version_type=windows
18002   shrext_cmds=".dll"
18003   need_version=no
18004   need_lib_prefix=no
18005
18006   case $GCC,$host_os in
18007   yes,cygwin* | yes,mingw* | yes,pw32*)
18008     library_names_spec='$libname.dll.a'
18009     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18010     postinstall_cmds='base_file=`basename \${file}`~
18011       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18012       dldir=$destdir/`dirname \$dlpath`~
18013       test -d \$dldir || mkdir -p \$dldir~
18014       $install_prog $dir/$dlname \$dldir/$dlname~
18015       chmod a+x \$dldir/$dlname'
18016     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18017       dlpath=$dir/\$dldll~
18018        $rm \$dlpath'
18019     shlibpath_overrides_runpath=yes
18020
18021     case $host_os in
18022     cygwin*)
18023       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18024       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18025       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18026       ;;
18027     mingw*)
18028       # MinGW DLLs use traditional 'lib' prefix
18029       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18030       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18031       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18032         # It is most probably a Windows format PATH printed by
18033         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18034         # path with ; separators, and with drive letters. We can handle the
18035         # drive letters (cygwin fileutils understands them), so leave them,
18036         # especially as we might pass files found there to a mingw objdump,
18037         # which wouldn't understand a cygwinified path. Ahh.
18038         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18039       else
18040         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18041       fi
18042       ;;
18043     pw32*)
18044       # pw32 DLLs use 'pw' prefix rather than 'lib'
18045       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18046       ;;
18047     esac
18048     ;;
18049
18050   *)
18051     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18052     ;;
18053   esac
18054   dynamic_linker='Win32 ld.exe'
18055   # FIXME: first we should search . and the directory the executable is in
18056   shlibpath_var=PATH
18057   ;;
18058
18059 darwin* | rhapsody*)
18060   dynamic_linker="$host_os dyld"
18061   version_type=darwin
18062   need_lib_prefix=no
18063   need_version=no
18064   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18065   soname_spec='${libname}${release}${major}$shared_ext'
18066   shlibpath_overrides_runpath=yes
18067   shlibpath_var=DYLD_LIBRARY_PATH
18068   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18069   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18070   if test "$GCC" = yes; then
18071     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18072   else
18073     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18074   fi
18075   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18076   ;;
18077
18078 dgux*)
18079   version_type=linux
18080   need_lib_prefix=no
18081   need_version=no
18082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18083   soname_spec='${libname}${release}${shared_ext}$major'
18084   shlibpath_var=LD_LIBRARY_PATH
18085   ;;
18086
18087 freebsd1*)
18088   dynamic_linker=no
18089   ;;
18090
18091 kfreebsd*-gnu)
18092   version_type=linux
18093   need_lib_prefix=no
18094   need_version=no
18095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18096   soname_spec='${libname}${release}${shared_ext}$major'
18097   shlibpath_var=LD_LIBRARY_PATH
18098   shlibpath_overrides_runpath=no
18099   hardcode_into_libs=yes
18100   dynamic_linker='GNU ld.so'
18101   ;;
18102
18103 freebsd* | dragonfly*)
18104   # DragonFly does not have aout.  When/if they implement a new
18105   # versioning mechanism, adjust this.
18106   if test -x /usr/bin/objformat; then
18107     objformat=`/usr/bin/objformat`
18108   else
18109     case $host_os in
18110     freebsd[123]*) objformat=aout ;;
18111     *) objformat=elf ;;
18112     esac
18113   fi
18114   version_type=freebsd-$objformat
18115   case $version_type in
18116     freebsd-elf*)
18117       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18118       need_version=no
18119       need_lib_prefix=no
18120       ;;
18121     freebsd-*)
18122       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18123       need_version=yes
18124       ;;
18125   esac
18126   shlibpath_var=LD_LIBRARY_PATH
18127   case $host_os in
18128   freebsd2*)
18129     shlibpath_overrides_runpath=yes
18130     ;;
18131   freebsd3.[01]* | freebsdelf3.[01]*)
18132     shlibpath_overrides_runpath=yes
18133     hardcode_into_libs=yes
18134     ;;
18135   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18136   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18137     shlibpath_overrides_runpath=no
18138     hardcode_into_libs=yes
18139     ;;
18140   freebsd*) # from 4.6 on
18141     shlibpath_overrides_runpath=yes
18142     hardcode_into_libs=yes
18143     ;;
18144   esac
18145   ;;
18146
18147 gnu*)
18148   version_type=linux
18149   need_lib_prefix=no
18150   need_version=no
18151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18152   soname_spec='${libname}${release}${shared_ext}$major'
18153   shlibpath_var=LD_LIBRARY_PATH
18154   hardcode_into_libs=yes
18155   ;;
18156
18157 hpux9* | hpux10* | hpux11*)
18158   # Give a soname corresponding to the major version so that dld.sl refuses to
18159   # link against other versions.
18160   version_type=sunos
18161   need_lib_prefix=no
18162   need_version=no
18163   case $host_cpu in
18164   ia64*)
18165     shrext_cmds='.so'
18166     hardcode_into_libs=yes
18167     dynamic_linker="$host_os dld.so"
18168     shlibpath_var=LD_LIBRARY_PATH
18169     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18170     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171     soname_spec='${libname}${release}${shared_ext}$major'
18172     if test "X$HPUX_IA64_MODE" = X32; then
18173       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18174     else
18175       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18176     fi
18177     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18178     ;;
18179    hppa*64*)
18180      shrext_cmds='.sl'
18181      hardcode_into_libs=yes
18182      dynamic_linker="$host_os dld.sl"
18183      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18184      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18185      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18186      soname_spec='${libname}${release}${shared_ext}$major'
18187      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18188      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18189      ;;
18190    *)
18191     shrext_cmds='.sl'
18192     dynamic_linker="$host_os dld.sl"
18193     shlibpath_var=SHLIB_PATH
18194     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196     soname_spec='${libname}${release}${shared_ext}$major'
18197     ;;
18198   esac
18199   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18200   postinstall_cmds='chmod 555 $lib'
18201   ;;
18202
18203 interix3*)
18204   version_type=linux
18205   need_lib_prefix=no
18206   need_version=no
18207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18208   soname_spec='${libname}${release}${shared_ext}$major'
18209   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18210   shlibpath_var=LD_LIBRARY_PATH
18211   shlibpath_overrides_runpath=no
18212   hardcode_into_libs=yes
18213   ;;
18214
18215 irix5* | irix6* | nonstopux*)
18216   case $host_os in
18217     nonstopux*) version_type=nonstopux ;;
18218     *)
18219         if test "$lt_cv_prog_gnu_ld" = yes; then
18220                 version_type=linux
18221         else
18222                 version_type=irix
18223         fi ;;
18224   esac
18225   need_lib_prefix=no
18226   need_version=no
18227   soname_spec='${libname}${release}${shared_ext}$major'
18228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18229   case $host_os in
18230   irix5* | nonstopux*)
18231     libsuff= shlibsuff=
18232     ;;
18233   *)
18234     case $LD in # libtool.m4 will add one of these switches to LD
18235     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18236       libsuff= shlibsuff= libmagic=32-bit;;
18237     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18238       libsuff=32 shlibsuff=N32 libmagic=N32;;
18239     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18240       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18241     *) libsuff= shlibsuff= libmagic=never-match;;
18242     esac
18243     ;;
18244   esac
18245   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18246   shlibpath_overrides_runpath=no
18247   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18248   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18249   hardcode_into_libs=yes
18250   ;;
18251
18252 # No shared lib support for Linux oldld, aout, or coff.
18253 linux*oldld* | linux*aout* | linux*coff*)
18254   dynamic_linker=no
18255   ;;
18256
18257 # This must be Linux ELF.
18258 linux*)
18259   version_type=linux
18260   need_lib_prefix=no
18261   need_version=no
18262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263   soname_spec='${libname}${release}${shared_ext}$major'
18264   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18265   shlibpath_var=LD_LIBRARY_PATH
18266   shlibpath_overrides_runpath=no
18267   # This implies no fast_install, which is unacceptable.
18268   # Some rework will be needed to allow for fast_install
18269   # before this can be enabled.
18270   hardcode_into_libs=yes
18271
18272   # find out which ABI we are using
18273   libsuff=
18274   case "$host_cpu" in
18275   x86_64*|s390x*|powerpc64*)
18276     echo '#line 18276 "configure"' > conftest.$ac_ext
18277     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18278   (eval $ac_compile) 2>&5
18279   ac_status=$?
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); }; then
18282       case `/usr/bin/file conftest.$ac_objext` in
18283       *64-bit*)
18284         libsuff=64
18285         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18286         ;;
18287       esac
18288     fi
18289     rm -rf conftest*
18290     ;;
18291   esac
18292
18293   # Append ld.so.conf contents to the search path
18294   if test -f /etc/ld.so.conf; then
18295     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18296     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18297   fi
18298
18299   # We used to test for /lib/ld.so.1 and disable shared libraries on
18300   # powerpc, because MkLinux only supported shared libraries with the
18301   # GNU dynamic linker.  Since this was broken with cross compilers,
18302   # most powerpc-linux boxes support dynamic linking these days and
18303   # people can always --disable-shared, the test was removed, and we
18304   # assume the GNU/Linux dynamic linker is in use.
18305   dynamic_linker='GNU/Linux ld.so'
18306   ;;
18307
18308 knetbsd*-gnu)
18309   version_type=linux
18310   need_lib_prefix=no
18311   need_version=no
18312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18313   soname_spec='${libname}${release}${shared_ext}$major'
18314   shlibpath_var=LD_LIBRARY_PATH
18315   shlibpath_overrides_runpath=no
18316   hardcode_into_libs=yes
18317   dynamic_linker='GNU ld.so'
18318   ;;
18319
18320 netbsd*)
18321   version_type=sunos
18322   need_lib_prefix=no
18323   need_version=no
18324   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18326     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18327     dynamic_linker='NetBSD (a.out) ld.so'
18328   else
18329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18330     soname_spec='${libname}${release}${shared_ext}$major'
18331     dynamic_linker='NetBSD ld.elf_so'
18332   fi
18333   shlibpath_var=LD_LIBRARY_PATH
18334   shlibpath_overrides_runpath=yes
18335   hardcode_into_libs=yes
18336   ;;
18337
18338 newsos6)
18339   version_type=linux
18340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18341   shlibpath_var=LD_LIBRARY_PATH
18342   shlibpath_overrides_runpath=yes
18343   ;;
18344
18345 nto-qnx*)
18346   version_type=linux
18347   need_lib_prefix=no
18348   need_version=no
18349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18350   soname_spec='${libname}${release}${shared_ext}$major'
18351   shlibpath_var=LD_LIBRARY_PATH
18352   shlibpath_overrides_runpath=yes
18353   ;;
18354
18355 openbsd*)
18356   version_type=sunos
18357   sys_lib_dlsearch_path_spec="/usr/lib"
18358   need_lib_prefix=no
18359   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18360   case $host_os in
18361     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18362     *)                         need_version=no  ;;
18363   esac
18364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18365   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18366   shlibpath_var=LD_LIBRARY_PATH
18367   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18368     case $host_os in
18369       openbsd2.[89] | openbsd2.[89].*)
18370         shlibpath_overrides_runpath=no
18371         ;;
18372       *)
18373         shlibpath_overrides_runpath=yes
18374         ;;
18375       esac
18376   else
18377     shlibpath_overrides_runpath=yes
18378   fi
18379   ;;
18380
18381 os2*)
18382   libname_spec='$name'
18383   shrext_cmds=".dll"
18384   need_lib_prefix=no
18385   library_names_spec='$libname${shared_ext} $libname.a'
18386   dynamic_linker='OS/2 ld.exe'
18387   shlibpath_var=LIBPATH
18388   ;;
18389
18390 osf3* | osf4* | osf5*)
18391   version_type=osf
18392   need_lib_prefix=no
18393   need_version=no
18394   soname_spec='${libname}${release}${shared_ext}$major'
18395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18396   shlibpath_var=LD_LIBRARY_PATH
18397   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18398   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18399   ;;
18400
18401 solaris*)
18402   version_type=linux
18403   need_lib_prefix=no
18404   need_version=no
18405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18406   soname_spec='${libname}${release}${shared_ext}$major'
18407   shlibpath_var=LD_LIBRARY_PATH
18408   shlibpath_overrides_runpath=yes
18409   hardcode_into_libs=yes
18410   # ldd complains unless libraries are executable
18411   postinstall_cmds='chmod +x $lib'
18412   ;;
18413
18414 sunos4*)
18415   version_type=sunos
18416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18417   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18418   shlibpath_var=LD_LIBRARY_PATH
18419   shlibpath_overrides_runpath=yes
18420   if test "$with_gnu_ld" = yes; then
18421     need_lib_prefix=no
18422   fi
18423   need_version=yes
18424   ;;
18425
18426 sysv4 | sysv4.3*)
18427   version_type=linux
18428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18429   soname_spec='${libname}${release}${shared_ext}$major'
18430   shlibpath_var=LD_LIBRARY_PATH
18431   case $host_vendor in
18432     sni)
18433       shlibpath_overrides_runpath=no
18434       need_lib_prefix=no
18435       export_dynamic_flag_spec='${wl}-Blargedynsym'
18436       runpath_var=LD_RUN_PATH
18437       ;;
18438     siemens)
18439       need_lib_prefix=no
18440       ;;
18441     motorola)
18442       need_lib_prefix=no
18443       need_version=no
18444       shlibpath_overrides_runpath=no
18445       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18446       ;;
18447   esac
18448   ;;
18449
18450 sysv4*MP*)
18451   if test -d /usr/nec ;then
18452     version_type=linux
18453     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18454     soname_spec='$libname${shared_ext}.$major'
18455     shlibpath_var=LD_LIBRARY_PATH
18456   fi
18457   ;;
18458
18459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18460   version_type=freebsd-elf
18461   need_lib_prefix=no
18462   need_version=no
18463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18464   soname_spec='${libname}${release}${shared_ext}$major'
18465   shlibpath_var=LD_LIBRARY_PATH
18466   hardcode_into_libs=yes
18467   if test "$with_gnu_ld" = yes; then
18468     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18469     shlibpath_overrides_runpath=no
18470   else
18471     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18472     shlibpath_overrides_runpath=yes
18473     case $host_os in
18474       sco3.2v5*)
18475         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18476         ;;
18477     esac
18478   fi
18479   sys_lib_dlsearch_path_spec='/usr/lib'
18480   ;;
18481
18482 uts4*)
18483   version_type=linux
18484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18485   soname_spec='${libname}${release}${shared_ext}$major'
18486   shlibpath_var=LD_LIBRARY_PATH
18487   ;;
18488
18489 *)
18490   dynamic_linker=no
18491   ;;
18492 esac
18493 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18494 echo "${ECHO_T}$dynamic_linker" >&6
18495 test "$dynamic_linker" = no && can_build_shared=no
18496
18497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18498 if test "$GCC" = yes; then
18499   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18500 fi
18501
18502 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18503 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18504 hardcode_action_GCJ=
18505 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18506    test -n "$runpath_var_GCJ" || \
18507    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18508
18509   # We can hardcode non-existant directories.
18510   if test "$hardcode_direct_GCJ" != no &&
18511      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18512      # have to relink, otherwise we might link with an installed library
18513      # when we should be linking with a yet-to-be-installed one
18514      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18515      test "$hardcode_minus_L_GCJ" != no; then
18516     # Linking always hardcodes the temporary library directory.
18517     hardcode_action_GCJ=relink
18518   else
18519     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18520     hardcode_action_GCJ=immediate
18521   fi
18522 else
18523   # We cannot hardcode anything, or else we can only hardcode existing
18524   # directories.
18525   hardcode_action_GCJ=unsupported
18526 fi
18527 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18528 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18529
18530 if test "$hardcode_action_GCJ" = relink; then
18531   # Fast installation is not supported
18532   enable_fast_install=no
18533 elif test "$shlibpath_overrides_runpath" = yes ||
18534      test "$enable_shared" = no; then
18535   # Fast installation is not necessary
18536   enable_fast_install=needless
18537 fi
18538
18539
18540 # The else clause should only fire when bootstrapping the
18541 # libtool distribution, otherwise you forgot to ship ltmain.sh
18542 # with your package, and you will get complaints that there are
18543 # no rules to generate ltmain.sh.
18544 if test -f "$ltmain"; then
18545   # See if we are running on zsh, and set the options which allow our commands through
18546   # without removal of \ escapes.
18547   if test -n "${ZSH_VERSION+set}" ; then
18548     setopt NO_GLOB_SUBST
18549   fi
18550   # Now quote all the things that may contain metacharacters while being
18551   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18552   # variables and quote the copies for generation of the libtool script.
18553   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18554     SED SHELL STRIP \
18555     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18556     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18557     deplibs_check_method reload_flag reload_cmds need_locks \
18558     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18559     lt_cv_sys_global_symbol_to_c_name_address \
18560     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18561     old_postinstall_cmds old_postuninstall_cmds \
18562     compiler_GCJ \
18563     CC_GCJ \
18564     LD_GCJ \
18565     lt_prog_compiler_wl_GCJ \
18566     lt_prog_compiler_pic_GCJ \
18567     lt_prog_compiler_static_GCJ \
18568     lt_prog_compiler_no_builtin_flag_GCJ \
18569     export_dynamic_flag_spec_GCJ \
18570     thread_safe_flag_spec_GCJ \
18571     whole_archive_flag_spec_GCJ \
18572     enable_shared_with_static_runtimes_GCJ \
18573     old_archive_cmds_GCJ \
18574     old_archive_from_new_cmds_GCJ \
18575     predep_objects_GCJ \
18576     postdep_objects_GCJ \
18577     predeps_GCJ \
18578     postdeps_GCJ \
18579     compiler_lib_search_path_GCJ \
18580     archive_cmds_GCJ \
18581     archive_expsym_cmds_GCJ \
18582     postinstall_cmds_GCJ \
18583     postuninstall_cmds_GCJ \
18584     old_archive_from_expsyms_cmds_GCJ \
18585     allow_undefined_flag_GCJ \
18586     no_undefined_flag_GCJ \
18587     export_symbols_cmds_GCJ \
18588     hardcode_libdir_flag_spec_GCJ \
18589     hardcode_libdir_flag_spec_ld_GCJ \
18590     hardcode_libdir_separator_GCJ \
18591     hardcode_automatic_GCJ \
18592     module_cmds_GCJ \
18593     module_expsym_cmds_GCJ \
18594     lt_cv_prog_compiler_c_o_GCJ \
18595     exclude_expsyms_GCJ \
18596     include_expsyms_GCJ; do
18597
18598     case $var in
18599     old_archive_cmds_GCJ | \
18600     old_archive_from_new_cmds_GCJ | \
18601     archive_cmds_GCJ | \
18602     archive_expsym_cmds_GCJ | \
18603     module_cmds_GCJ | \
18604     module_expsym_cmds_GCJ | \
18605     old_archive_from_expsyms_cmds_GCJ | \
18606     export_symbols_cmds_GCJ | \
18607     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18608     postinstall_cmds | postuninstall_cmds | \
18609     old_postinstall_cmds | old_postuninstall_cmds | \
18610     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18611       # Double-quote double-evaled strings.
18612       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18613       ;;
18614     *)
18615       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18616       ;;
18617     esac
18618   done
18619
18620   case $lt_echo in
18621   *'\$0 --fallback-echo"')
18622     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18623     ;;
18624   esac
18625
18626 cfgfile="$ofile"
18627
18628   cat <<__EOF__ >> "$cfgfile"
18629 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18630
18631 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18632
18633 # Shell to use when invoking shell scripts.
18634 SHELL=$lt_SHELL
18635
18636 # Whether or not to build shared libraries.
18637 build_libtool_libs=$enable_shared
18638
18639 # Whether or not to build static libraries.
18640 build_old_libs=$enable_static
18641
18642 # Whether or not to add -lc for building shared libraries.
18643 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18644
18645 # Whether or not to disallow shared libs when runtime libs are static
18646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18647
18648 # Whether or not to optimize for fast installation.
18649 fast_install=$enable_fast_install
18650
18651 # The host system.
18652 host_alias=$host_alias
18653 host=$host
18654 host_os=$host_os
18655
18656 # The build system.
18657 build_alias=$build_alias
18658 build=$build
18659 build_os=$build_os
18660
18661 # An echo program that does not interpret backslashes.
18662 echo=$lt_echo
18663
18664 # The archiver.
18665 AR=$lt_AR
18666 AR_FLAGS=$lt_AR_FLAGS
18667
18668 # A C compiler.
18669 LTCC=$lt_LTCC
18670
18671 # LTCC compiler flags.
18672 LTCFLAGS=$lt_LTCFLAGS
18673
18674 # A language-specific compiler.
18675 CC=$lt_compiler_GCJ
18676
18677 # Is the compiler the GNU C compiler?
18678 with_gcc=$GCC_GCJ
18679
18680 # An ERE matcher.
18681 EGREP=$lt_EGREP
18682
18683 # The linker used to build libraries.
18684 LD=$lt_LD_GCJ
18685
18686 # Whether we need hard or soft links.
18687 LN_S=$lt_LN_S
18688
18689 # A BSD-compatible nm program.
18690 NM=$lt_NM
18691
18692 # A symbol stripping program
18693 STRIP=$lt_STRIP
18694
18695 # Used to examine libraries when file_magic_cmd begins "file"
18696 MAGIC_CMD=$MAGIC_CMD
18697
18698 # Used on cygwin: DLL creation program.
18699 DLLTOOL="$DLLTOOL"
18700
18701 # Used on cygwin: object dumper.
18702 OBJDUMP="$OBJDUMP"
18703
18704 # Used on cygwin: assembler.
18705 AS="$AS"
18706
18707 # The name of the directory that contains temporary libtool files.
18708 objdir=$objdir
18709
18710 # How to create reloadable object files.
18711 reload_flag=$lt_reload_flag
18712 reload_cmds=$lt_reload_cmds
18713
18714 # How to pass a linker flag through the compiler.
18715 wl=$lt_lt_prog_compiler_wl_GCJ
18716
18717 # Object file suffix (normally "o").
18718 objext="$ac_objext"
18719
18720 # Old archive suffix (normally "a").
18721 libext="$libext"
18722
18723 # Shared library suffix (normally ".so").
18724 shrext_cmds='$shrext_cmds'
18725
18726 # Executable file suffix (normally "").
18727 exeext="$exeext"
18728
18729 # Additional compiler flags for building library objects.
18730 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18731 pic_mode=$pic_mode
18732
18733 # What is the maximum length of a command?
18734 max_cmd_len=$lt_cv_sys_max_cmd_len
18735
18736 # Does compiler simultaneously support -c and -o options?
18737 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18738
18739 # Must we lock files when doing compilation?
18740 need_locks=$lt_need_locks
18741
18742 # Do we need the lib prefix for modules?
18743 need_lib_prefix=$need_lib_prefix
18744
18745 # Do we need a version for libraries?
18746 need_version=$need_version
18747
18748 # Whether dlopen is supported.
18749 dlopen_support=$enable_dlopen
18750
18751 # Whether dlopen of programs is supported.
18752 dlopen_self=$enable_dlopen_self
18753
18754 # Whether dlopen of statically linked programs is supported.
18755 dlopen_self_static=$enable_dlopen_self_static
18756
18757 # Compiler flag to prevent dynamic linking.
18758 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18759
18760 # Compiler flag to turn off builtin functions.
18761 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18762
18763 # Compiler flag to allow reflexive dlopens.
18764 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18765
18766 # Compiler flag to generate shared objects directly from archives.
18767 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18768
18769 # Compiler flag to generate thread-safe objects.
18770 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18771
18772 # Library versioning type.
18773 version_type=$version_type
18774
18775 # Format of library name prefix.
18776 libname_spec=$lt_libname_spec
18777
18778 # List of archive names.  First name is the real one, the rest are links.
18779 # The last name is the one that the linker finds with -lNAME.
18780 library_names_spec=$lt_library_names_spec
18781
18782 # The coded name of the library, if different from the real name.
18783 soname_spec=$lt_soname_spec
18784
18785 # Commands used to build and install an old-style archive.
18786 RANLIB=$lt_RANLIB
18787 old_archive_cmds=$lt_old_archive_cmds_GCJ
18788 old_postinstall_cmds=$lt_old_postinstall_cmds
18789 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18790
18791 # Create an old-style archive from a shared archive.
18792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18793
18794 # Create a temporary old-style archive to link instead of a shared archive.
18795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18796
18797 # Commands used to build and install a shared archive.
18798 archive_cmds=$lt_archive_cmds_GCJ
18799 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18800 postinstall_cmds=$lt_postinstall_cmds
18801 postuninstall_cmds=$lt_postuninstall_cmds
18802
18803 # Commands used to build a loadable module (assumed same as above if empty)
18804 module_cmds=$lt_module_cmds_GCJ
18805 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18806
18807 # Commands to strip libraries.
18808 old_striplib=$lt_old_striplib
18809 striplib=$lt_striplib
18810
18811 # Dependencies to place before the objects being linked to create a
18812 # shared library.
18813 predep_objects=$lt_predep_objects_GCJ
18814
18815 # Dependencies to place after the objects being linked to create a
18816 # shared library.
18817 postdep_objects=$lt_postdep_objects_GCJ
18818
18819 # Dependencies to place before the objects being linked to create a
18820 # shared library.
18821 predeps=$lt_predeps_GCJ
18822
18823 # Dependencies to place after the objects being linked to create a
18824 # shared library.
18825 postdeps=$lt_postdeps_GCJ
18826
18827 # The library search path used internally by the compiler when linking
18828 # a shared library.
18829 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18830
18831 # Method to check whether dependent libraries are shared objects.
18832 deplibs_check_method=$lt_deplibs_check_method
18833
18834 # Command to use when deplibs_check_method == file_magic.
18835 file_magic_cmd=$lt_file_magic_cmd
18836
18837 # Flag that allows shared libraries with undefined symbols to be built.
18838 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18839
18840 # Flag that forces no undefined symbols.
18841 no_undefined_flag=$lt_no_undefined_flag_GCJ
18842
18843 # Commands used to finish a libtool library installation in a directory.
18844 finish_cmds=$lt_finish_cmds
18845
18846 # Same as above, but a single script fragment to be evaled but not shown.
18847 finish_eval=$lt_finish_eval
18848
18849 # Take the output of nm and produce a listing of raw symbols and C names.
18850 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18851
18852 # Transform the output of nm in a proper C declaration
18853 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18854
18855 # Transform the output of nm in a C name address pair
18856 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18857
18858 # This is the shared library runtime path variable.
18859 runpath_var=$runpath_var
18860
18861 # This is the shared library path variable.
18862 shlibpath_var=$shlibpath_var
18863
18864 # Is shlibpath searched before the hard-coded library search path?
18865 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18866
18867 # How to hardcode a shared library path into an executable.
18868 hardcode_action=$hardcode_action_GCJ
18869
18870 # Whether we should hardcode library paths into libraries.
18871 hardcode_into_libs=$hardcode_into_libs
18872
18873 # Flag to hardcode \$libdir into a binary during linking.
18874 # This must work even if \$libdir does not exist.
18875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18876
18877 # If ld is used when linking, flag to hardcode \$libdir into
18878 # a binary during linking. This must work even if \$libdir does
18879 # not exist.
18880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18881
18882 # Whether we need a single -rpath flag with a separated argument.
18883 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18884
18885 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18886 # resulting binary.
18887 hardcode_direct=$hardcode_direct_GCJ
18888
18889 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18890 # resulting binary.
18891 hardcode_minus_L=$hardcode_minus_L_GCJ
18892
18893 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18894 # the resulting binary.
18895 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18896
18897 # Set to yes if building a shared library automatically hardcodes DIR into the library
18898 # and all subsequent libraries and executables linked against it.
18899 hardcode_automatic=$hardcode_automatic_GCJ
18900
18901 # Variables whose values should be saved in libtool wrapper scripts and
18902 # restored at relink time.
18903 variables_saved_for_relink="$variables_saved_for_relink"
18904
18905 # Whether libtool must link a program against all its dependency libraries.
18906 link_all_deplibs=$link_all_deplibs_GCJ
18907
18908 # Compile-time system search path for libraries
18909 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18910
18911 # Run-time system search path for libraries
18912 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18913
18914 # Fix the shell variable \$srcfile for the compiler.
18915 fix_srcfile_path="$fix_srcfile_path_GCJ"
18916
18917 # Set to yes if exported symbols are required.
18918 always_export_symbols=$always_export_symbols_GCJ
18919
18920 # The commands to list exported symbols.
18921 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18922
18923 # The commands to extract the exported symbol list from a shared archive.
18924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18925
18926 # Symbols that should not be listed in the preloaded symbols.
18927 exclude_expsyms=$lt_exclude_expsyms_GCJ
18928
18929 # Symbols that must always be exported.
18930 include_expsyms=$lt_include_expsyms_GCJ
18931
18932 # ### END LIBTOOL TAG CONFIG: $tagname
18933
18934 __EOF__
18935
18936
18937 else
18938   # If there is no Makefile yet, we rely on a make rule to execute
18939   # `config.status --recheck' to rerun these tests and create the
18940   # libtool script then.
18941   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18942   if test -f "$ltmain_in"; then
18943     test -f Makefile && make "$ltmain"
18944   fi
18945 fi
18946
18947
18948 ac_ext=c
18949 ac_cpp='$CPP $CPPFLAGS'
18950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18953
18954 CC="$lt_save_CC"
18955
18956         else
18957           tagname=""
18958         fi
18959         ;;
18960
18961       RC)
18962
18963
18964
18965 # Source file extension for RC test sources.
18966 ac_ext=rc
18967
18968 # Object file extension for compiled RC test sources.
18969 objext=o
18970 objext_RC=$objext
18971
18972 # Code to be used in simple compile tests
18973 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18974
18975 # Code to be used in simple link tests
18976 lt_simple_link_test_code="$lt_simple_compile_test_code"
18977
18978 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18979
18980 # If no C compiler was specified, use CC.
18981 LTCC=${LTCC-"$CC"}
18982
18983 # If no C compiler flags were specified, use CFLAGS.
18984 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18985
18986 # Allow CC to be a program name with arguments.
18987 compiler=$CC
18988
18989
18990 # save warnings/boilerplate of simple test code
18991 ac_outfile=conftest.$ac_objext
18992 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18993 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18994 _lt_compiler_boilerplate=`cat conftest.err`
18995 $rm conftest*
18996
18997 ac_outfile=conftest.$ac_objext
18998 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18999 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19000 _lt_linker_boilerplate=`cat conftest.err`
19001 $rm conftest*
19002
19003
19004 # Allow CC to be a program name with arguments.
19005 lt_save_CC="$CC"
19006 CC=${RC-"windres"}
19007 compiler=$CC
19008 compiler_RC=$CC
19009 for cc_temp in $compiler""; do
19010   case $cc_temp in
19011     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19012     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19013     \-*) ;;
19014     *) break;;
19015   esac
19016 done
19017 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19018
19019 lt_cv_prog_compiler_c_o_RC=yes
19020
19021 # The else clause should only fire when bootstrapping the
19022 # libtool distribution, otherwise you forgot to ship ltmain.sh
19023 # with your package, and you will get complaints that there are
19024 # no rules to generate ltmain.sh.
19025 if test -f "$ltmain"; then
19026   # See if we are running on zsh, and set the options which allow our commands through
19027   # without removal of \ escapes.
19028   if test -n "${ZSH_VERSION+set}" ; then
19029     setopt NO_GLOB_SUBST
19030   fi
19031   # Now quote all the things that may contain metacharacters while being
19032   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19033   # variables and quote the copies for generation of the libtool script.
19034   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19035     SED SHELL STRIP \
19036     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19037     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19038     deplibs_check_method reload_flag reload_cmds need_locks \
19039     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19040     lt_cv_sys_global_symbol_to_c_name_address \
19041     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19042     old_postinstall_cmds old_postuninstall_cmds \
19043     compiler_RC \
19044     CC_RC \
19045     LD_RC \
19046     lt_prog_compiler_wl_RC \
19047     lt_prog_compiler_pic_RC \
19048     lt_prog_compiler_static_RC \
19049     lt_prog_compiler_no_builtin_flag_RC \
19050     export_dynamic_flag_spec_RC \
19051     thread_safe_flag_spec_RC \
19052     whole_archive_flag_spec_RC \
19053     enable_shared_with_static_runtimes_RC \
19054     old_archive_cmds_RC \
19055     old_archive_from_new_cmds_RC \
19056     predep_objects_RC \
19057     postdep_objects_RC \
19058     predeps_RC \
19059     postdeps_RC \
19060     compiler_lib_search_path_RC \
19061     archive_cmds_RC \
19062     archive_expsym_cmds_RC \
19063     postinstall_cmds_RC \
19064     postuninstall_cmds_RC \
19065     old_archive_from_expsyms_cmds_RC \
19066     allow_undefined_flag_RC \
19067     no_undefined_flag_RC \
19068     export_symbols_cmds_RC \
19069     hardcode_libdir_flag_spec_RC \
19070     hardcode_libdir_flag_spec_ld_RC \
19071     hardcode_libdir_separator_RC \
19072     hardcode_automatic_RC \
19073     module_cmds_RC \
19074     module_expsym_cmds_RC \
19075     lt_cv_prog_compiler_c_o_RC \
19076     exclude_expsyms_RC \
19077     include_expsyms_RC; do
19078
19079     case $var in
19080     old_archive_cmds_RC | \
19081     old_archive_from_new_cmds_RC | \
19082     archive_cmds_RC | \
19083     archive_expsym_cmds_RC | \
19084     module_cmds_RC | \
19085     module_expsym_cmds_RC | \
19086     old_archive_from_expsyms_cmds_RC | \
19087     export_symbols_cmds_RC | \
19088     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19089     postinstall_cmds | postuninstall_cmds | \
19090     old_postinstall_cmds | old_postuninstall_cmds | \
19091     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19092       # Double-quote double-evaled strings.
19093       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19094       ;;
19095     *)
19096       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19097       ;;
19098     esac
19099   done
19100
19101   case $lt_echo in
19102   *'\$0 --fallback-echo"')
19103     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19104     ;;
19105   esac
19106
19107 cfgfile="$ofile"
19108
19109   cat <<__EOF__ >> "$cfgfile"
19110 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19111
19112 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19113
19114 # Shell to use when invoking shell scripts.
19115 SHELL=$lt_SHELL
19116
19117 # Whether or not to build shared libraries.
19118 build_libtool_libs=$enable_shared
19119
19120 # Whether or not to build static libraries.
19121 build_old_libs=$enable_static
19122
19123 # Whether or not to add -lc for building shared libraries.
19124 build_libtool_need_lc=$archive_cmds_need_lc_RC
19125
19126 # Whether or not to disallow shared libs when runtime libs are static
19127 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19128
19129 # Whether or not to optimize for fast installation.
19130 fast_install=$enable_fast_install
19131
19132 # The host system.
19133 host_alias=$host_alias
19134 host=$host
19135 host_os=$host_os
19136
19137 # The build system.
19138 build_alias=$build_alias
19139 build=$build
19140 build_os=$build_os
19141
19142 # An echo program that does not interpret backslashes.
19143 echo=$lt_echo
19144
19145 # The archiver.
19146 AR=$lt_AR
19147 AR_FLAGS=$lt_AR_FLAGS
19148
19149 # A C compiler.
19150 LTCC=$lt_LTCC
19151
19152 # LTCC compiler flags.
19153 LTCFLAGS=$lt_LTCFLAGS
19154
19155 # A language-specific compiler.
19156 CC=$lt_compiler_RC
19157
19158 # Is the compiler the GNU C compiler?
19159 with_gcc=$GCC_RC
19160
19161 # An ERE matcher.
19162 EGREP=$lt_EGREP
19163
19164 # The linker used to build libraries.
19165 LD=$lt_LD_RC
19166
19167 # Whether we need hard or soft links.
19168 LN_S=$lt_LN_S
19169
19170 # A BSD-compatible nm program.
19171 NM=$lt_NM
19172
19173 # A symbol stripping program
19174 STRIP=$lt_STRIP
19175
19176 # Used to examine libraries when file_magic_cmd begins "file"
19177 MAGIC_CMD=$MAGIC_CMD
19178
19179 # Used on cygwin: DLL creation program.
19180 DLLTOOL="$DLLTOOL"
19181
19182 # Used on cygwin: object dumper.
19183 OBJDUMP="$OBJDUMP"
19184
19185 # Used on cygwin: assembler.
19186 AS="$AS"
19187
19188 # The name of the directory that contains temporary libtool files.
19189 objdir=$objdir
19190
19191 # How to create reloadable object files.
19192 reload_flag=$lt_reload_flag
19193 reload_cmds=$lt_reload_cmds
19194
19195 # How to pass a linker flag through the compiler.
19196 wl=$lt_lt_prog_compiler_wl_RC
19197
19198 # Object file suffix (normally "o").
19199 objext="$ac_objext"
19200
19201 # Old archive suffix (normally "a").
19202 libext="$libext"
19203
19204 # Shared library suffix (normally ".so").
19205 shrext_cmds='$shrext_cmds'
19206
19207 # Executable file suffix (normally "").
19208 exeext="$exeext"
19209
19210 # Additional compiler flags for building library objects.
19211 pic_flag=$lt_lt_prog_compiler_pic_RC
19212 pic_mode=$pic_mode
19213
19214 # What is the maximum length of a command?
19215 max_cmd_len=$lt_cv_sys_max_cmd_len
19216
19217 # Does compiler simultaneously support -c and -o options?
19218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19219
19220 # Must we lock files when doing compilation?
19221 need_locks=$lt_need_locks
19222
19223 # Do we need the lib prefix for modules?
19224 need_lib_prefix=$need_lib_prefix
19225
19226 # Do we need a version for libraries?
19227 need_version=$need_version
19228
19229 # Whether dlopen is supported.
19230 dlopen_support=$enable_dlopen
19231
19232 # Whether dlopen of programs is supported.
19233 dlopen_self=$enable_dlopen_self
19234
19235 # Whether dlopen of statically linked programs is supported.
19236 dlopen_self_static=$enable_dlopen_self_static
19237
19238 # Compiler flag to prevent dynamic linking.
19239 link_static_flag=$lt_lt_prog_compiler_static_RC
19240
19241 # Compiler flag to turn off builtin functions.
19242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19243
19244 # Compiler flag to allow reflexive dlopens.
19245 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19246
19247 # Compiler flag to generate shared objects directly from archives.
19248 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19249
19250 # Compiler flag to generate thread-safe objects.
19251 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19252
19253 # Library versioning type.
19254 version_type=$version_type
19255
19256 # Format of library name prefix.
19257 libname_spec=$lt_libname_spec
19258
19259 # List of archive names.  First name is the real one, the rest are links.
19260 # The last name is the one that the linker finds with -lNAME.
19261 library_names_spec=$lt_library_names_spec
19262
19263 # The coded name of the library, if different from the real name.
19264 soname_spec=$lt_soname_spec
19265
19266 # Commands used to build and install an old-style archive.
19267 RANLIB=$lt_RANLIB
19268 old_archive_cmds=$lt_old_archive_cmds_RC
19269 old_postinstall_cmds=$lt_old_postinstall_cmds
19270 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19271
19272 # Create an old-style archive from a shared archive.
19273 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19274
19275 # Create a temporary old-style archive to link instead of a shared archive.
19276 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19277
19278 # Commands used to build and install a shared archive.
19279 archive_cmds=$lt_archive_cmds_RC
19280 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19281 postinstall_cmds=$lt_postinstall_cmds
19282 postuninstall_cmds=$lt_postuninstall_cmds
19283
19284 # Commands used to build a loadable module (assumed same as above if empty)
19285 module_cmds=$lt_module_cmds_RC
19286 module_expsym_cmds=$lt_module_expsym_cmds_RC
19287
19288 # Commands to strip libraries.
19289 old_striplib=$lt_old_striplib
19290 striplib=$lt_striplib
19291
19292 # Dependencies to place before the objects being linked to create a
19293 # shared library.
19294 predep_objects=$lt_predep_objects_RC
19295
19296 # Dependencies to place after the objects being linked to create a
19297 # shared library.
19298 postdep_objects=$lt_postdep_objects_RC
19299
19300 # Dependencies to place before the objects being linked to create a
19301 # shared library.
19302 predeps=$lt_predeps_RC
19303
19304 # Dependencies to place after the objects being linked to create a
19305 # shared library.
19306 postdeps=$lt_postdeps_RC
19307
19308 # The library search path used internally by the compiler when linking
19309 # a shared library.
19310 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19311
19312 # Method to check whether dependent libraries are shared objects.
19313 deplibs_check_method=$lt_deplibs_check_method
19314
19315 # Command to use when deplibs_check_method == file_magic.
19316 file_magic_cmd=$lt_file_magic_cmd
19317
19318 # Flag that allows shared libraries with undefined symbols to be built.
19319 allow_undefined_flag=$lt_allow_undefined_flag_RC
19320
19321 # Flag that forces no undefined symbols.
19322 no_undefined_flag=$lt_no_undefined_flag_RC
19323
19324 # Commands used to finish a libtool library installation in a directory.
19325 finish_cmds=$lt_finish_cmds
19326
19327 # Same as above, but a single script fragment to be evaled but not shown.
19328 finish_eval=$lt_finish_eval
19329
19330 # Take the output of nm and produce a listing of raw symbols and C names.
19331 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19332
19333 # Transform the output of nm in a proper C declaration
19334 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19335
19336 # Transform the output of nm in a C name address pair
19337 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19338
19339 # This is the shared library runtime path variable.
19340 runpath_var=$runpath_var
19341
19342 # This is the shared library path variable.
19343 shlibpath_var=$shlibpath_var
19344
19345 # Is shlibpath searched before the hard-coded library search path?
19346 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19347
19348 # How to hardcode a shared library path into an executable.
19349 hardcode_action=$hardcode_action_RC
19350
19351 # Whether we should hardcode library paths into libraries.
19352 hardcode_into_libs=$hardcode_into_libs
19353
19354 # Flag to hardcode \$libdir into a binary during linking.
19355 # This must work even if \$libdir does not exist.
19356 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19357
19358 # If ld is used when linking, flag to hardcode \$libdir into
19359 # a binary during linking. This must work even if \$libdir does
19360 # not exist.
19361 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19362
19363 # Whether we need a single -rpath flag with a separated argument.
19364 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19365
19366 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19367 # resulting binary.
19368 hardcode_direct=$hardcode_direct_RC
19369
19370 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19371 # resulting binary.
19372 hardcode_minus_L=$hardcode_minus_L_RC
19373
19374 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19375 # the resulting binary.
19376 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19377
19378 # Set to yes if building a shared library automatically hardcodes DIR into the library
19379 # and all subsequent libraries and executables linked against it.
19380 hardcode_automatic=$hardcode_automatic_RC
19381
19382 # Variables whose values should be saved in libtool wrapper scripts and
19383 # restored at relink time.
19384 variables_saved_for_relink="$variables_saved_for_relink"
19385
19386 # Whether libtool must link a program against all its dependency libraries.
19387 link_all_deplibs=$link_all_deplibs_RC
19388
19389 # Compile-time system search path for libraries
19390 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19391
19392 # Run-time system search path for libraries
19393 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19394
19395 # Fix the shell variable \$srcfile for the compiler.
19396 fix_srcfile_path="$fix_srcfile_path_RC"
19397
19398 # Set to yes if exported symbols are required.
19399 always_export_symbols=$always_export_symbols_RC
19400
19401 # The commands to list exported symbols.
19402 export_symbols_cmds=$lt_export_symbols_cmds_RC
19403
19404 # The commands to extract the exported symbol list from a shared archive.
19405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19406
19407 # Symbols that should not be listed in the preloaded symbols.
19408 exclude_expsyms=$lt_exclude_expsyms_RC
19409
19410 # Symbols that must always be exported.
19411 include_expsyms=$lt_include_expsyms_RC
19412
19413 # ### END LIBTOOL TAG CONFIG: $tagname
19414
19415 __EOF__
19416
19417
19418 else
19419   # If there is no Makefile yet, we rely on a make rule to execute
19420   # `config.status --recheck' to rerun these tests and create the
19421   # libtool script then.
19422   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19423   if test -f "$ltmain_in"; then
19424     test -f Makefile && make "$ltmain"
19425   fi
19426 fi
19427
19428
19429 ac_ext=c
19430 ac_cpp='$CPP $CPPFLAGS'
19431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19434
19435 CC="$lt_save_CC"
19436
19437         ;;
19438
19439       *)
19440         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19441 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19442    { (exit 1); exit 1; }; }
19443         ;;
19444       esac
19445
19446       # Append the new tag name to the list of available tags.
19447       if test -n "$tagname" ; then
19448       available_tags="$available_tags $tagname"
19449     fi
19450     fi
19451   done
19452   IFS="$lt_save_ifs"
19453
19454   # Now substitute the updated list of available tags.
19455   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19456     mv "${ofile}T" "$ofile"
19457     chmod +x "$ofile"
19458   else
19459     rm -f "${ofile}T"
19460     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19461 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19462    { (exit 1); exit 1; }; }
19463   fi
19464 fi
19465
19466
19467
19468 # This can be used to rebuild libtool when needed
19469 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19470
19471 # Always use our own libtool.
19472 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19473
19474 # Prevent multiple expansion
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497 # /***********************************************************************
19498 # // Checks for assembler
19499 # ************************************************************************/
19500
19501 # Check whether --enable-asm or --disable-asm was given.
19502 if test "${enable_asm+set}" = set; then
19503   enableval="$enable_asm"
19504
19505 fi;
19506
19507 asm_arch=
19508 asm_dir=
19509 asm_msg_amd64=no
19510 asm_msg_i386=no
19511
19512 case $host_cpu in
19513     amd64 | x86_64) asm_arch="amd64"; asm_dir="asm/amd64/src_gas/elf64" ;;
19514     i?86) asm_arch="i386"; asm_dir="asm/i386/src_gas" ;;
19515     *) enable_asm=no ;;
19516 esac
19517 LZO_ASM_VPATH=
19518
19519 echo "$as_me:$LINENO: checking whether to build assembly versions" >&5
19520 echo $ECHO_N "checking whether to build assembly versions... $ECHO_C" >&6
19521 if test "X$enable_asm" != Xno; then
19522 mfx_compile_S='${CC-cc} -c conftest.S 1>&5'
19523 cat > conftest.S <<EOF
19524 #include "$ac_abs_top_srcdir/$asm_dir/lzo1x_f1.S"
19525 EOF
19526 enable_asm=no
19527 if { (eval echo "$as_me:$LINENO: \"$mfx_compile_S\"") >&5
19528   (eval $mfx_compile_S) 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; then
19532     if { ac_try='test -s conftest.$ac_objext'
19533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534   (eval $ac_try) 2>&5
19535   ac_status=$?
19536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); }; }; then
19538         enable_asm=yes
19539         eval asm_msg_$asm_arch="'yes [$asm_dir]'"
19540         LZO_ASM_VPATH=":$ac_abs_top_srcdir/$asm_dir"
19541     fi
19542 fi
19543 if test "X$enable_asm" = Xno; then
19544     echo "configure: failed program was:" >&5
19545     cat conftest.S >&5
19546 fi
19547 rm -rf conftest*
19548 fi
19549 echo "$as_me:$LINENO: result: $enable_asm" >&5
19550 echo "${ECHO_T}$enable_asm" >&6
19551
19552
19553
19554 if test "X$enable_asm" != Xno; then
19555   LZO_USE_ASM_TRUE=
19556   LZO_USE_ASM_FALSE='#'
19557 else
19558   LZO_USE_ASM_TRUE='#'
19559   LZO_USE_ASM_FALSE=
19560 fi
19561
19562
19563
19564
19565 # /***********************************************************************
19566 # // Checks for header files
19567 # ************************************************************************/
19568
19569
19570 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19571 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19572 if test "${ac_cv_header_time+set}" = set; then
19573   echo $ECHO_N "(cached) $ECHO_C" >&6
19574 else
19575   cat >conftest.$ac_ext <<_ACEOF
19576 /* confdefs.h.  */
19577 _ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h.  */
19581 #include <sys/types.h>
19582 #include <sys/time.h>
19583 #include <time.h>
19584
19585 int
19586 main ()
19587 {
19588 if ((struct tm *) 0)
19589 return 0;
19590   ;
19591   return 0;
19592 }
19593 _ACEOF
19594 rm -f conftest.$ac_objext
19595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19596   (eval $ac_compile) 2>conftest.er1
19597   ac_status=$?
19598   grep -v '^ *+' conftest.er1 >conftest.err
19599   rm -f conftest.er1
19600   cat conftest.err >&5
19601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602   (exit $ac_status); } &&
19603          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605   (eval $ac_try) 2>&5
19606   ac_status=$?
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); }; } &&
19609          { ac_try='test -s conftest.$ac_objext'
19610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611   (eval $ac_try) 2>&5
19612   ac_status=$?
19613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614   (exit $ac_status); }; }; then
19615   ac_cv_header_time=yes
19616 else
19617   echo "$as_me: failed program was:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19619
19620 ac_cv_header_time=no
19621 fi
19622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19623 fi
19624 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19625 echo "${ECHO_T}$ac_cv_header_time" >&6
19626 if test $ac_cv_header_time = yes; then
19627
19628 cat >>confdefs.h <<\_ACEOF
19629 #define TIME_WITH_SYS_TIME 1
19630 _ACEOF
19631
19632 fi
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661 for ac_header in assert.h ctype.h dirent.h errno.h fcntl.h float.h limits.h malloc.h memory.h setjmp.h signal.h stdarg.h stddef.h stdint.h stdio.h stdlib.h string.h strings.h time.h unistd.h utime.h sys/mman.h sys/resource.h sys/stat.h sys/time.h sys/types.h sys/wait.h
19662 do
19663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19665   echo "$as_me:$LINENO: checking for $ac_header" >&5
19666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19668   echo $ECHO_N "(cached) $ECHO_C" >&6
19669 fi
19670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19672 else
19673   # Is the header compilable?
19674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19676 cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h.  */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h.  */
19682 $ac_includes_default
19683 #include <$ac_header>
19684 _ACEOF
19685 rm -f conftest.$ac_objext
19686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19687   (eval $ac_compile) 2>conftest.er1
19688   ac_status=$?
19689   grep -v '^ *+' conftest.er1 >conftest.err
19690   rm -f conftest.er1
19691   cat conftest.err >&5
19692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693   (exit $ac_status); } &&
19694          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696   (eval $ac_try) 2>&5
19697   ac_status=$?
19698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699   (exit $ac_status); }; } &&
19700          { ac_try='test -s conftest.$ac_objext'
19701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702   (eval $ac_try) 2>&5
19703   ac_status=$?
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); }; }; then
19706   ac_header_compiler=yes
19707 else
19708   echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711 ac_header_compiler=no
19712 fi
19713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19715 echo "${ECHO_T}$ac_header_compiler" >&6
19716
19717 # Is the header present?
19718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19720 cat >conftest.$ac_ext <<_ACEOF
19721 /* confdefs.h.  */
19722 _ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h.  */
19726 #include <$ac_header>
19727 _ACEOF
19728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19729   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19730   ac_status=$?
19731   grep -v '^ *+' conftest.er1 >conftest.err
19732   rm -f conftest.er1
19733   cat conftest.err >&5
19734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735   (exit $ac_status); } >/dev/null; then
19736   if test -s conftest.err; then
19737     ac_cpp_err=$ac_c_preproc_warn_flag
19738     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19739   else
19740     ac_cpp_err=
19741   fi
19742 else
19743   ac_cpp_err=yes
19744 fi
19745 if test -z "$ac_cpp_err"; then
19746   ac_header_preproc=yes
19747 else
19748   echo "$as_me: failed program was:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19750
19751   ac_header_preproc=no
19752 fi
19753 rm -f conftest.err conftest.$ac_ext
19754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19755 echo "${ECHO_T}$ac_header_preproc" >&6
19756
19757 # So?  What about this header?
19758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19759   yes:no: )
19760     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19764     ac_header_preproc=yes
19765     ;;
19766   no:yes:* )
19767     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19769     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19770 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19771     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19773     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19774 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19777     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19779     (
19780       cat <<\_ASBOX
19781 ## ----------------------------------- ##
19782 ## Report this to markus@oberhumer.com ##
19783 ## ----------------------------------- ##
19784 _ASBOX
19785     ) |
19786       sed "s/^/$as_me: WARNING:     /" >&2
19787     ;;
19788 esac
19789 echo "$as_me:$LINENO: checking for $ac_header" >&5
19790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19792   echo $ECHO_N "(cached) $ECHO_C" >&6
19793 else
19794   eval "$as_ac_Header=\$ac_header_preproc"
19795 fi
19796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19798
19799 fi
19800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19801   cat >>confdefs.h <<_ACEOF
19802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19803 _ACEOF
19804
19805 fi
19806
19807 done
19808
19809
19810 if test "X$ac_cv_header_limits_h" != Xyes; then
19811     { { echo "$as_me:$LINENO: error: <limits.h> header not found" >&5
19812 echo "$as_me: error: <limits.h> header not found" >&2;}
19813    { (exit 1); exit 1; }; }
19814 fi
19815
19816 echo "$as_me:$LINENO: checking whether limits.h is sane" >&5
19817 echo $ECHO_N "checking whether limits.h is sane... $ECHO_C" >&6
19818 if test "${mfx_cv_header_sane_limits_h+set}" = set; then
19819   echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821   cat >conftest.$ac_ext <<_ACEOF
19822 /* confdefs.h.  */
19823 _ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h.  */
19827 #include <limits.h>
19828 #if (32767 >= 4294967295ul) || (65535u >= 4294967295ul)
19829 #  if defined(__APPLE__) && defined(__GNUC__)
19830 #    error "your preprocessor is broken - use compiler option -no-cpp-precomp"
19831 #  else
19832 #    include "your preprocessor is broken"
19833 #  endif
19834 #endif
19835 #define MFX_0xffff          0xffff
19836 #define MFX_0xffffffffL     4294967295ul
19837 #if !defined(CHAR_BIT) || (CHAR_BIT != 8)
19838 #  include "error CHAR_BIT"
19839 #endif
19840 #if !defined(UCHAR_MAX)
19841 #  include "error UCHAR_MAX 1"
19842 #endif
19843 #if !defined(USHRT_MAX)
19844 #  include "error USHRT_MAX 1"
19845 #endif
19846 #if !defined(UINT_MAX)
19847 #  include "error UINT_MAX 1"
19848 #endif
19849 #if !defined(ULONG_MAX)
19850 #  include "error ULONG_MAX 1"
19851 #endif
19852 #if !defined(SHRT_MAX)
19853 #  include "error SHRT_MAX 1"
19854 #endif
19855 #if !defined(INT_MAX)
19856 #  include "error INT_MAX 1"
19857 #endif
19858 #if !defined(LONG_MAX)
19859 #  include "error LONG_MAX 1"
19860 #endif
19861 #if (UCHAR_MAX < 1)
19862 #  include "error UCHAR_MAX 2"
19863 #endif
19864 #if (USHRT_MAX < 1)
19865 #  include "error USHRT_MAX 2"
19866 #endif
19867 #if (UINT_MAX < 1)
19868 #  include "error UINT_MAX 2"
19869 #endif
19870 #if (ULONG_MAX < 1)
19871 #  include "error ULONG_MAX 2"
19872 #endif
19873 #if (UCHAR_MAX < 0xff)
19874 #  include "error UCHAR_MAX 3"
19875 #endif
19876 #if (USHRT_MAX < MFX_0xffff)
19877 #  include "error USHRT_MAX 3"
19878 #endif
19879 #if (UINT_MAX < MFX_0xffff)
19880 #  include "error UINT_MAX 3"
19881 #endif
19882 #if (ULONG_MAX < MFX_0xffffffffL)
19883 #  include "error ULONG_MAX 3"
19884 #endif
19885 #if (USHRT_MAX > UINT_MAX)
19886 #  include "error USHRT_MAX vs UINT_MAX"
19887 #endif
19888 #if (UINT_MAX > ULONG_MAX)
19889 #  include "error UINT_MAX vs ULONG_MAX"
19890 #endif
19891
19892 int
19893 main ()
19894 {
19895
19896 #if (USHRT_MAX == MFX_0xffff)
19897 { typedef char a_short2a[1 - 2 * !(sizeof(short) == 2)]; }
19898 #elif (USHRT_MAX >= MFX_0xffff)
19899 { typedef char a_short2b[1 - 2 * !(sizeof(short) > 2)]; }
19900 #endif
19901 #if (UINT_MAX == MFX_0xffff)
19902 { typedef char a_int2a[1 - 2 * !(sizeof(int) == 2)]; }
19903 #elif (UINT_MAX >= MFX_0xffff)
19904 { typedef char a_int2b[1 - 2 * !(sizeof(int) > 2)]; }
19905 #endif
19906 #if (ULONG_MAX == MFX_0xffff)
19907 { typedef char a_long2a[1 - 2 * !(sizeof(long) == 2)]; }
19908 #elif (ULONG_MAX >= MFX_0xffff)
19909 { typedef char a_long2b[1 - 2 * !(sizeof(long) > 2)]; }
19910 #endif
19911 #if !defined(_CRAY1) /* CRAY PVP systems */
19912 #if (USHRT_MAX == MFX_0xffffffffL)
19913 { typedef char a_short4a[1 - 2 * !(sizeof(short) == 4)]; }
19914 #elif (USHRT_MAX >= MFX_0xffffffffL)
19915 { typedef char a_short4b[1 - 2 * !(sizeof(short) > 4)]; }
19916 #endif
19917 #endif /* _CRAY1 */
19918 #if (UINT_MAX == MFX_0xffffffffL)
19919 { typedef char a_int4a[1 - 2 * !(sizeof(int) == 4)]; }
19920 #elif (UINT_MAX >= MFX_0xffffffffL)
19921 { typedef char a_int4b[1 - 2 * !(sizeof(int) > 4)]; }
19922 #endif
19923 #if (ULONG_MAX == MFX_0xffffffffL)
19924 { typedef char a_long4a[1 - 2 * !(sizeof(long) == 4)]; }
19925 #elif (ULONG_MAX >= MFX_0xffffffffL)
19926 { typedef char a_long4b[1 - 2 * !(sizeof(long) > 4)]; }
19927 #endif
19928
19929   ;
19930   return 0;
19931 }
19932 _ACEOF
19933 rm -f conftest.$ac_objext
19934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19935   (eval $ac_compile) 2>conftest.er1
19936   ac_status=$?
19937   grep -v '^ *+' conftest.er1 >conftest.err
19938   rm -f conftest.er1
19939   cat conftest.err >&5
19940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); } &&
19942          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944   (eval $ac_try) 2>&5
19945   ac_status=$?
19946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947   (exit $ac_status); }; } &&
19948          { ac_try='test -s conftest.$ac_objext'
19949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19950   (eval $ac_try) 2>&5
19951   ac_status=$?
19952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); }; }; then
19954   mfx_cv_header_sane_limits_h=yes
19955 else
19956   echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19958
19959 mfx_cv_header_sane_limits_h=no
19960 fi
19961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19962 fi
19963 echo "$as_me:$LINENO: result: $mfx_cv_header_sane_limits_h" >&5
19964 echo "${ECHO_T}$mfx_cv_header_sane_limits_h" >&6
19965
19966 if test "X$mfx_cv_header_sane_limits_h" != Xyes; then
19967     { { echo "$as_me:$LINENO: error: your <limits.h> header is broken - for details see config.log" >&5
19968 echo "$as_me: error: your <limits.h> header is broken - for details see config.log" >&2;}
19969    { (exit 1); exit 1; }; }
19970 fi
19971
19972
19973 # /***********************************************************************
19974 # // Checks for typedefs and structures
19975 # ************************************************************************/
19976
19977 echo "$as_me:$LINENO: checking for off_t" >&5
19978 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
19979 if test "${ac_cv_type_off_t+set}" = set; then
19980   echo $ECHO_N "(cached) $ECHO_C" >&6
19981 else
19982   cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h.  */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h.  */
19988 $ac_includes_default
19989 int
19990 main ()
19991 {
19992 if ((off_t *) 0)
19993   return 0;
19994 if (sizeof (off_t))
19995   return 0;
19996   ;
19997   return 0;
19998 }
19999 _ACEOF
20000 rm -f conftest.$ac_objext
20001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20002   (eval $ac_compile) 2>conftest.er1
20003   ac_status=$?
20004   grep -v '^ *+' conftest.er1 >conftest.err
20005   rm -f conftest.er1
20006   cat conftest.err >&5
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); } &&
20009          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011   (eval $ac_try) 2>&5
20012   ac_status=$?
20013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014   (exit $ac_status); }; } &&
20015          { ac_try='test -s conftest.$ac_objext'
20016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017   (eval $ac_try) 2>&5
20018   ac_status=$?
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); }; }; then
20021   ac_cv_type_off_t=yes
20022 else
20023   echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.$ac_ext >&5
20025
20026 ac_cv_type_off_t=no
20027 fi
20028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20029 fi
20030 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20031 echo "${ECHO_T}$ac_cv_type_off_t" >&6
20032 if test $ac_cv_type_off_t = yes; then
20033   :
20034 else
20035
20036 cat >>confdefs.h <<_ACEOF
20037 #define off_t long
20038 _ACEOF
20039
20040 fi
20041
20042 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
20043 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
20044 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
20045   echo $ECHO_N "(cached) $ECHO_C" >&6
20046 else
20047   cat >conftest.$ac_ext <<_ACEOF
20048 /* confdefs.h.  */
20049 _ACEOF
20050 cat confdefs.h >>conftest.$ac_ext
20051 cat >>conftest.$ac_ext <<_ACEOF
20052 /* end confdefs.h.  */
20053 $ac_includes_default
20054 int
20055 main ()
20056 {
20057 if ((ptrdiff_t *) 0)
20058   return 0;
20059 if (sizeof (ptrdiff_t))
20060   return 0;
20061   ;
20062   return 0;
20063 }
20064 _ACEOF
20065 rm -f conftest.$ac_objext
20066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20067   (eval $ac_compile) 2>conftest.er1
20068   ac_status=$?
20069   grep -v '^ *+' conftest.er1 >conftest.err
20070   rm -f conftest.er1
20071   cat conftest.err >&5
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); } &&
20074          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20076   (eval $ac_try) 2>&5
20077   ac_status=$?
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); }; } &&
20080          { ac_try='test -s conftest.$ac_objext'
20081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20082   (eval $ac_try) 2>&5
20083   ac_status=$?
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); }; }; then
20086   ac_cv_type_ptrdiff_t=yes
20087 else
20088   echo "$as_me: failed program was:" >&5
20089 sed 's/^/| /' conftest.$ac_ext >&5
20090
20091 ac_cv_type_ptrdiff_t=no
20092 fi
20093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20094 fi
20095 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
20096 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
20097 if test $ac_cv_type_ptrdiff_t = yes; then
20098   :
20099 else
20100
20101 cat >>confdefs.h <<_ACEOF
20102 #define ptrdiff_t long
20103 _ACEOF
20104
20105 fi
20106
20107 echo "$as_me:$LINENO: checking for size_t" >&5
20108 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20109 if test "${ac_cv_type_size_t+set}" = set; then
20110   echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112   cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h.  */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h.  */
20118 $ac_includes_default
20119 int
20120 main ()
20121 {
20122 if ((size_t *) 0)
20123   return 0;
20124 if (sizeof (size_t))
20125   return 0;
20126   ;
20127   return 0;
20128 }
20129 _ACEOF
20130 rm -f conftest.$ac_objext
20131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20132   (eval $ac_compile) 2>conftest.er1
20133   ac_status=$?
20134   grep -v '^ *+' conftest.er1 >conftest.err
20135   rm -f conftest.er1
20136   cat conftest.err >&5
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); } &&
20139          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141   (eval $ac_try) 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); }; } &&
20145          { ac_try='test -s conftest.$ac_objext'
20146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20147   (eval $ac_try) 2>&5
20148   ac_status=$?
20149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150   (exit $ac_status); }; }; then
20151   ac_cv_type_size_t=yes
20152 else
20153   echo "$as_me: failed program was:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20155
20156 ac_cv_type_size_t=no
20157 fi
20158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20159 fi
20160 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20161 echo "${ECHO_T}$ac_cv_type_size_t" >&6
20162 if test $ac_cv_type_size_t = yes; then
20163   :
20164 else
20165
20166 cat >>confdefs.h <<_ACEOF
20167 #define size_t unsigned
20168 _ACEOF
20169
20170 fi
20171
20172 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20173 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20174 if test "${ac_cv_type_signal+set}" = set; then
20175   echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177   cat >conftest.$ac_ext <<_ACEOF
20178 /* confdefs.h.  */
20179 _ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h.  */
20183 #include <sys/types.h>
20184 #include <signal.h>
20185 #ifdef signal
20186 # undef signal
20187 #endif
20188 #ifdef __cplusplus
20189 extern "C" void (*signal (int, void (*)(int)))(int);
20190 #else
20191 void (*signal ()) ();
20192 #endif
20193
20194 int
20195 main ()
20196 {
20197 int i;
20198   ;
20199   return 0;
20200 }
20201 _ACEOF
20202 rm -f conftest.$ac_objext
20203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20204   (eval $ac_compile) 2>conftest.er1
20205   ac_status=$?
20206   grep -v '^ *+' conftest.er1 >conftest.err
20207   rm -f conftest.er1
20208   cat conftest.err >&5
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); } &&
20211          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213   (eval $ac_try) 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); }; } &&
20217          { ac_try='test -s conftest.$ac_objext'
20218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219   (eval $ac_try) 2>&5
20220   ac_status=$?
20221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222   (exit $ac_status); }; }; then
20223   ac_cv_type_signal=void
20224 else
20225   echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20227
20228 ac_cv_type_signal=int
20229 fi
20230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20231 fi
20232 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20233 echo "${ECHO_T}$ac_cv_type_signal" >&6
20234
20235 cat >>confdefs.h <<_ACEOF
20236 #define RETSIGTYPE $ac_cv_type_signal
20237 _ACEOF
20238
20239
20240
20241
20242 echo "$as_me:$LINENO: checking for short" >&5
20243 echo $ECHO_N "checking for short... $ECHO_C" >&6
20244 if test "${ac_cv_type_short+set}" = set; then
20245   echo $ECHO_N "(cached) $ECHO_C" >&6
20246 else
20247   cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h.  */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h.  */
20253 $ac_includes_default
20254 int
20255 main ()
20256 {
20257 if ((short *) 0)
20258   return 0;
20259 if (sizeof (short))
20260   return 0;
20261   ;
20262   return 0;
20263 }
20264 _ACEOF
20265 rm -f conftest.$ac_objext
20266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20267   (eval $ac_compile) 2>conftest.er1
20268   ac_status=$?
20269   grep -v '^ *+' conftest.er1 >conftest.err
20270   rm -f conftest.er1
20271   cat conftest.err >&5
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } &&
20274          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20276   (eval $ac_try) 2>&5
20277   ac_status=$?
20278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279   (exit $ac_status); }; } &&
20280          { ac_try='test -s conftest.$ac_objext'
20281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20282   (eval $ac_try) 2>&5
20283   ac_status=$?
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); }; }; then
20286   ac_cv_type_short=yes
20287 else
20288   echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20290
20291 ac_cv_type_short=no
20292 fi
20293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20294 fi
20295 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
20296 echo "${ECHO_T}$ac_cv_type_short" >&6
20297
20298 echo "$as_me:$LINENO: checking size of short" >&5
20299 echo $ECHO_N "checking size of short... $ECHO_C" >&6
20300 if test "${ac_cv_sizeof_short+set}" = set; then
20301   echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303   if test "$ac_cv_type_short" = yes; then
20304   # The cast to unsigned long works around a bug in the HP C Compiler
20305   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20306   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20307   # This bug is HP SR number 8606223364.
20308   if test "$cross_compiling" = yes; then
20309   # Depending upon the size, compute the lo and hi bounds.
20310 cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h.  */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h.  */
20316 $ac_includes_default
20317 int
20318 main ()
20319 {
20320 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
20321 test_array [0] = 0
20322
20323   ;
20324   return 0;
20325 }
20326 _ACEOF
20327 rm -f conftest.$ac_objext
20328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20329   (eval $ac_compile) 2>conftest.er1
20330   ac_status=$?
20331   grep -v '^ *+' conftest.er1 >conftest.err
20332   rm -f conftest.er1
20333   cat conftest.err >&5
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); } &&
20336          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338   (eval $ac_try) 2>&5
20339   ac_status=$?
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); }; } &&
20342          { ac_try='test -s conftest.$ac_objext'
20343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344   (eval $ac_try) 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); }; }; then
20348   ac_lo=0 ac_mid=0
20349   while :; do
20350     cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h.  */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h.  */
20356 $ac_includes_default
20357 int
20358 main ()
20359 {
20360 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
20361 test_array [0] = 0
20362
20363   ;
20364   return 0;
20365 }
20366 _ACEOF
20367 rm -f conftest.$ac_objext
20368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20369   (eval $ac_compile) 2>conftest.er1
20370   ac_status=$?
20371   grep -v '^ *+' conftest.er1 >conftest.err
20372   rm -f conftest.er1
20373   cat conftest.err >&5
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); } &&
20376          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378   (eval $ac_try) 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; } &&
20382          { ac_try='test -s conftest.$ac_objext'
20383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384   (eval $ac_try) 2>&5
20385   ac_status=$?
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); }; }; then
20388   ac_hi=$ac_mid; break
20389 else
20390   echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393 ac_lo=`expr $ac_mid + 1`
20394                     if test $ac_lo -le $ac_mid; then
20395                       ac_lo= ac_hi=
20396                       break
20397                     fi
20398                     ac_mid=`expr 2 '*' $ac_mid + 1`
20399 fi
20400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20401   done
20402 else
20403   echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20405
20406 cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h.  */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h.  */
20412 $ac_includes_default
20413 int
20414 main ()
20415 {
20416 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
20417 test_array [0] = 0
20418
20419   ;
20420   return 0;
20421 }
20422 _ACEOF
20423 rm -f conftest.$ac_objext
20424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20425   (eval $ac_compile) 2>conftest.er1
20426   ac_status=$?
20427   grep -v '^ *+' conftest.er1 >conftest.err
20428   rm -f conftest.er1
20429   cat conftest.err >&5
20430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431   (exit $ac_status); } &&
20432          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434   (eval $ac_try) 2>&5
20435   ac_status=$?
20436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437   (exit $ac_status); }; } &&
20438          { ac_try='test -s conftest.$ac_objext'
20439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440   (eval $ac_try) 2>&5
20441   ac_status=$?
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); }; }; then
20444   ac_hi=-1 ac_mid=-1
20445   while :; do
20446     cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452 $ac_includes_default
20453 int
20454 main ()
20455 {
20456 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
20457 test_array [0] = 0
20458
20459   ;
20460   return 0;
20461 }
20462 _ACEOF
20463 rm -f conftest.$ac_objext
20464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20465   (eval $ac_compile) 2>conftest.er1
20466   ac_status=$?
20467   grep -v '^ *+' conftest.er1 >conftest.err
20468   rm -f conftest.er1
20469   cat conftest.err >&5
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); } &&
20472          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474   (eval $ac_try) 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); }; } &&
20478          { ac_try='test -s conftest.$ac_objext'
20479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480   (eval $ac_try) 2>&5
20481   ac_status=$?
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); }; }; then
20484   ac_lo=$ac_mid; break
20485 else
20486   echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489 ac_hi=`expr '(' $ac_mid ')' - 1`
20490                        if test $ac_mid -le $ac_hi; then
20491                          ac_lo= ac_hi=
20492                          break
20493                        fi
20494                        ac_mid=`expr 2 '*' $ac_mid`
20495 fi
20496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20497   done
20498 else
20499   echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20501
20502 ac_lo= ac_hi=
20503 fi
20504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20505 fi
20506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20507 # Binary search between lo and hi bounds.
20508 while test "x$ac_lo" != "x$ac_hi"; do
20509   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20510   cat >conftest.$ac_ext <<_ACEOF
20511 /* confdefs.h.  */
20512 _ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h.  */
20516 $ac_includes_default
20517 int
20518 main ()
20519 {
20520 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
20521 test_array [0] = 0
20522
20523   ;
20524   return 0;
20525 }
20526 _ACEOF
20527 rm -f conftest.$ac_objext
20528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20529   (eval $ac_compile) 2>conftest.er1
20530   ac_status=$?
20531   grep -v '^ *+' conftest.er1 >conftest.err
20532   rm -f conftest.er1
20533   cat conftest.err >&5
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); } &&
20536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538   (eval $ac_try) 2>&5
20539   ac_status=$?
20540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541   (exit $ac_status); }; } &&
20542          { ac_try='test -s conftest.$ac_objext'
20543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544   (eval $ac_try) 2>&5
20545   ac_status=$?
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); }; }; then
20548   ac_hi=$ac_mid
20549 else
20550   echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20552
20553 ac_lo=`expr '(' $ac_mid ')' + 1`
20554 fi
20555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20556 done
20557 case $ac_lo in
20558 ?*) ac_cv_sizeof_short=$ac_lo;;
20559 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
20560 See \`config.log' for more details." >&5
20561 echo "$as_me: error: cannot compute sizeof (short), 77
20562 See \`config.log' for more details." >&2;}
20563    { (exit 1); exit 1; }; } ;;
20564 esac
20565 else
20566   if test "$cross_compiling" = yes; then
20567   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20568 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20569    { (exit 1); exit 1; }; }
20570 else
20571   cat >conftest.$ac_ext <<_ACEOF
20572 /* confdefs.h.  */
20573 _ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h.  */
20577 $ac_includes_default
20578 long longval () { return (long) (sizeof (short)); }
20579 unsigned long ulongval () { return (long) (sizeof (short)); }
20580 #include <stdio.h>
20581 #include <stdlib.h>
20582 int
20583 main ()
20584 {
20585
20586   FILE *f = fopen ("conftest.val", "w");
20587   if (! f)
20588     exit (1);
20589   if (((long) (sizeof (short))) < 0)
20590     {
20591       long i = longval ();
20592       if (i != ((long) (sizeof (short))))
20593         exit (1);
20594       fprintf (f, "%ld\n", i);
20595     }
20596   else
20597     {
20598       unsigned long i = ulongval ();
20599       if (i != ((long) (sizeof (short))))
20600         exit (1);
20601       fprintf (f, "%lu\n", i);
20602     }
20603   exit (ferror (f) || fclose (f) != 0);
20604
20605   ;
20606   return 0;
20607 }
20608 _ACEOF
20609 rm -f conftest$ac_exeext
20610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20611   (eval $ac_link) 2>&5
20612   ac_status=$?
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20616   (eval $ac_try) 2>&5
20617   ac_status=$?
20618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619   (exit $ac_status); }; }; then
20620   ac_cv_sizeof_short=`cat conftest.val`
20621 else
20622   echo "$as_me: program exited with status $ac_status" >&5
20623 echo "$as_me: failed program was:" >&5
20624 sed 's/^/| /' conftest.$ac_ext >&5
20625
20626 ( exit $ac_status )
20627 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
20628 See \`config.log' for more details." >&5
20629 echo "$as_me: error: cannot compute sizeof (short), 77
20630 See \`config.log' for more details." >&2;}
20631    { (exit 1); exit 1; }; }
20632 fi
20633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20634 fi
20635 fi
20636 rm -f conftest.val
20637 else
20638   ac_cv_sizeof_short=0
20639 fi
20640 fi
20641 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
20642 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
20643 cat >>confdefs.h <<_ACEOF
20644 #define SIZEOF_SHORT $ac_cv_sizeof_short
20645 _ACEOF
20646
20647
20648 echo "$as_me:$LINENO: checking for int" >&5
20649 echo $ECHO_N "checking for int... $ECHO_C" >&6
20650 if test "${ac_cv_type_int+set}" = set; then
20651   echo $ECHO_N "(cached) $ECHO_C" >&6
20652 else
20653   cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659 $ac_includes_default
20660 int
20661 main ()
20662 {
20663 if ((int *) 0)
20664   return 0;
20665 if (sizeof (int))
20666   return 0;
20667   ;
20668   return 0;
20669 }
20670 _ACEOF
20671 rm -f conftest.$ac_objext
20672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20673   (eval $ac_compile) 2>conftest.er1
20674   ac_status=$?
20675   grep -v '^ *+' conftest.er1 >conftest.err
20676   rm -f conftest.er1
20677   cat conftest.err >&5
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); } &&
20680          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682   (eval $ac_try) 2>&5
20683   ac_status=$?
20684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685   (exit $ac_status); }; } &&
20686          { ac_try='test -s conftest.$ac_objext'
20687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688   (eval $ac_try) 2>&5
20689   ac_status=$?
20690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691   (exit $ac_status); }; }; then
20692   ac_cv_type_int=yes
20693 else
20694   echo "$as_me: failed program was:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20696
20697 ac_cv_type_int=no
20698 fi
20699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20700 fi
20701 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
20702 echo "${ECHO_T}$ac_cv_type_int" >&6
20703
20704 echo "$as_me:$LINENO: checking size of int" >&5
20705 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20706 if test "${ac_cv_sizeof_int+set}" = set; then
20707   echo $ECHO_N "(cached) $ECHO_C" >&6
20708 else
20709   if test "$ac_cv_type_int" = yes; then
20710   # The cast to unsigned long works around a bug in the HP C Compiler
20711   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20712   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20713   # This bug is HP SR number 8606223364.
20714   if test "$cross_compiling" = yes; then
20715   # Depending upon the size, compute the lo and hi bounds.
20716 cat >conftest.$ac_ext <<_ACEOF
20717 /* confdefs.h.  */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h.  */
20722 $ac_includes_default
20723 int
20724 main ()
20725 {
20726 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
20727 test_array [0] = 0
20728
20729   ;
20730   return 0;
20731 }
20732 _ACEOF
20733 rm -f conftest.$ac_objext
20734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20735   (eval $ac_compile) 2>conftest.er1
20736   ac_status=$?
20737   grep -v '^ *+' conftest.er1 >conftest.err
20738   rm -f conftest.er1
20739   cat conftest.err >&5
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); } &&
20742          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744   (eval $ac_try) 2>&5
20745   ac_status=$?
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); }; } &&
20748          { ac_try='test -s conftest.$ac_objext'
20749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750   (eval $ac_try) 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; }; then
20754   ac_lo=0 ac_mid=0
20755   while :; do
20756     cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h.  */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h.  */
20762 $ac_includes_default
20763 int
20764 main ()
20765 {
20766 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20767 test_array [0] = 0
20768
20769   ;
20770   return 0;
20771 }
20772 _ACEOF
20773 rm -f conftest.$ac_objext
20774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20775   (eval $ac_compile) 2>conftest.er1
20776   ac_status=$?
20777   grep -v '^ *+' conftest.er1 >conftest.err
20778   rm -f conftest.er1
20779   cat conftest.err >&5
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); } &&
20782          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784   (eval $ac_try) 2>&5
20785   ac_status=$?
20786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787   (exit $ac_status); }; } &&
20788          { ac_try='test -s conftest.$ac_objext'
20789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790   (eval $ac_try) 2>&5
20791   ac_status=$?
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); }; }; then
20794   ac_hi=$ac_mid; break
20795 else
20796   echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799 ac_lo=`expr $ac_mid + 1`
20800                     if test $ac_lo -le $ac_mid; then
20801                       ac_lo= ac_hi=
20802                       break
20803                     fi
20804                     ac_mid=`expr 2 '*' $ac_mid + 1`
20805 fi
20806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20807   done
20808 else
20809   echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20811
20812 cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h.  */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h.  */
20818 $ac_includes_default
20819 int
20820 main ()
20821 {
20822 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
20823 test_array [0] = 0
20824
20825   ;
20826   return 0;
20827 }
20828 _ACEOF
20829 rm -f conftest.$ac_objext
20830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20831   (eval $ac_compile) 2>conftest.er1
20832   ac_status=$?
20833   grep -v '^ *+' conftest.er1 >conftest.err
20834   rm -f conftest.er1
20835   cat conftest.err >&5
20836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837   (exit $ac_status); } &&
20838          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20840   (eval $ac_try) 2>&5
20841   ac_status=$?
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); }; } &&
20844          { ac_try='test -s conftest.$ac_objext'
20845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846   (eval $ac_try) 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; }; then
20850   ac_hi=-1 ac_mid=-1
20851   while :; do
20852     cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h.  */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h.  */
20858 $ac_includes_default
20859 int
20860 main ()
20861 {
20862 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
20863 test_array [0] = 0
20864
20865   ;
20866   return 0;
20867 }
20868 _ACEOF
20869 rm -f conftest.$ac_objext
20870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20871   (eval $ac_compile) 2>conftest.er1
20872   ac_status=$?
20873   grep -v '^ *+' conftest.er1 >conftest.err
20874   rm -f conftest.er1
20875   cat conftest.err >&5
20876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877   (exit $ac_status); } &&
20878          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20880   (eval $ac_try) 2>&5
20881   ac_status=$?
20882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883   (exit $ac_status); }; } &&
20884          { ac_try='test -s conftest.$ac_objext'
20885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886   (eval $ac_try) 2>&5
20887   ac_status=$?
20888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889   (exit $ac_status); }; }; then
20890   ac_lo=$ac_mid; break
20891 else
20892   echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895 ac_hi=`expr '(' $ac_mid ')' - 1`
20896                        if test $ac_mid -le $ac_hi; then
20897                          ac_lo= ac_hi=
20898                          break
20899                        fi
20900                        ac_mid=`expr 2 '*' $ac_mid`
20901 fi
20902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20903   done
20904 else
20905   echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908 ac_lo= ac_hi=
20909 fi
20910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20911 fi
20912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20913 # Binary search between lo and hi bounds.
20914 while test "x$ac_lo" != "x$ac_hi"; do
20915   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20916   cat >conftest.$ac_ext <<_ACEOF
20917 /* confdefs.h.  */
20918 _ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h.  */
20922 $ac_includes_default
20923 int
20924 main ()
20925 {
20926 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
20927 test_array [0] = 0
20928
20929   ;
20930   return 0;
20931 }
20932 _ACEOF
20933 rm -f conftest.$ac_objext
20934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20935   (eval $ac_compile) 2>conftest.er1
20936   ac_status=$?
20937   grep -v '^ *+' conftest.er1 >conftest.err
20938   rm -f conftest.er1
20939   cat conftest.err >&5
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); } &&
20942          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944   (eval $ac_try) 2>&5
20945   ac_status=$?
20946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947   (exit $ac_status); }; } &&
20948          { ac_try='test -s conftest.$ac_objext'
20949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950   (eval $ac_try) 2>&5
20951   ac_status=$?
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); }; }; then
20954   ac_hi=$ac_mid
20955 else
20956   echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20958
20959 ac_lo=`expr '(' $ac_mid ')' + 1`
20960 fi
20961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20962 done
20963 case $ac_lo in
20964 ?*) ac_cv_sizeof_int=$ac_lo;;
20965 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
20966 See \`config.log' for more details." >&5
20967 echo "$as_me: error: cannot compute sizeof (int), 77
20968 See \`config.log' for more details." >&2;}
20969    { (exit 1); exit 1; }; } ;;
20970 esac
20971 else
20972   if test "$cross_compiling" = yes; then
20973   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20974 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
20975    { (exit 1); exit 1; }; }
20976 else
20977   cat >conftest.$ac_ext <<_ACEOF
20978 /* confdefs.h.  */
20979 _ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h.  */
20983 $ac_includes_default
20984 long longval () { return (long) (sizeof (int)); }
20985 unsigned long ulongval () { return (long) (sizeof (int)); }
20986 #include <stdio.h>
20987 #include <stdlib.h>
20988 int
20989 main ()
20990 {
20991
20992   FILE *f = fopen ("conftest.val", "w");
20993   if (! f)
20994     exit (1);
20995   if (((long) (sizeof (int))) < 0)
20996     {
20997       long i = longval ();
20998       if (i != ((long) (sizeof (int))))
20999         exit (1);
21000       fprintf (f, "%ld\n", i);
21001     }
21002   else
21003     {
21004       unsigned long i = ulongval ();
21005       if (i != ((long) (sizeof (int))))
21006         exit (1);
21007       fprintf (f, "%lu\n", i);
21008     }
21009   exit (ferror (f) || fclose (f) != 0);
21010
21011   ;
21012   return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest$ac_exeext
21016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21017   (eval $ac_link) 2>&5
21018   ac_status=$?
21019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022   (eval $ac_try) 2>&5
21023   ac_status=$?
21024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025   (exit $ac_status); }; }; then
21026   ac_cv_sizeof_int=`cat conftest.val`
21027 else
21028   echo "$as_me: program exited with status $ac_status" >&5
21029 echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21031
21032 ( exit $ac_status )
21033 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
21034 See \`config.log' for more details." >&5
21035 echo "$as_me: error: cannot compute sizeof (int), 77
21036 See \`config.log' for more details." >&2;}
21037    { (exit 1); exit 1; }; }
21038 fi
21039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21040 fi
21041 fi
21042 rm -f conftest.val
21043 else
21044   ac_cv_sizeof_int=0
21045 fi
21046 fi
21047 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
21048 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
21049 cat >>confdefs.h <<_ACEOF
21050 #define SIZEOF_INT $ac_cv_sizeof_int
21051 _ACEOF
21052
21053
21054 echo "$as_me:$LINENO: checking for long" >&5
21055 echo $ECHO_N "checking for long... $ECHO_C" >&6
21056 if test "${ac_cv_type_long+set}" = set; then
21057   echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059   cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h.  */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h.  */
21065 $ac_includes_default
21066 int
21067 main ()
21068 {
21069 if ((long *) 0)
21070   return 0;
21071 if (sizeof (long))
21072   return 0;
21073   ;
21074   return 0;
21075 }
21076 _ACEOF
21077 rm -f conftest.$ac_objext
21078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21079   (eval $ac_compile) 2>conftest.er1
21080   ac_status=$?
21081   grep -v '^ *+' conftest.er1 >conftest.err
21082   rm -f conftest.er1
21083   cat conftest.err >&5
21084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085   (exit $ac_status); } &&
21086          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21088   (eval $ac_try) 2>&5
21089   ac_status=$?
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); }; } &&
21092          { ac_try='test -s conftest.$ac_objext'
21093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094   (eval $ac_try) 2>&5
21095   ac_status=$?
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); }; }; then
21098   ac_cv_type_long=yes
21099 else
21100   echo "$as_me: failed program was:" >&5
21101 sed 's/^/| /' conftest.$ac_ext >&5
21102
21103 ac_cv_type_long=no
21104 fi
21105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21106 fi
21107 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
21108 echo "${ECHO_T}$ac_cv_type_long" >&6
21109
21110 echo "$as_me:$LINENO: checking size of long" >&5
21111 echo $ECHO_N "checking size of long... $ECHO_C" >&6
21112 if test "${ac_cv_sizeof_long+set}" = set; then
21113   echo $ECHO_N "(cached) $ECHO_C" >&6
21114 else
21115   if test "$ac_cv_type_long" = yes; then
21116   # The cast to unsigned long works around a bug in the HP C Compiler
21117   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21118   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21119   # This bug is HP SR number 8606223364.
21120   if test "$cross_compiling" = yes; then
21121   # Depending upon the size, compute the lo and hi bounds.
21122 cat >conftest.$ac_ext <<_ACEOF
21123 /* confdefs.h.  */
21124 _ACEOF
21125 cat confdefs.h >>conftest.$ac_ext
21126 cat >>conftest.$ac_ext <<_ACEOF
21127 /* end confdefs.h.  */
21128 $ac_includes_default
21129 int
21130 main ()
21131 {
21132 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
21133 test_array [0] = 0
21134
21135   ;
21136   return 0;
21137 }
21138 _ACEOF
21139 rm -f conftest.$ac_objext
21140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21141   (eval $ac_compile) 2>conftest.er1
21142   ac_status=$?
21143   grep -v '^ *+' conftest.er1 >conftest.err
21144   rm -f conftest.er1
21145   cat conftest.err >&5
21146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); } &&
21148          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150   (eval $ac_try) 2>&5
21151   ac_status=$?
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); }; } &&
21154          { ac_try='test -s conftest.$ac_objext'
21155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156   (eval $ac_try) 2>&5
21157   ac_status=$?
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); }; }; then
21160   ac_lo=0 ac_mid=0
21161   while :; do
21162     cat >conftest.$ac_ext <<_ACEOF
21163 /* confdefs.h.  */
21164 _ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h.  */
21168 $ac_includes_default
21169 int
21170 main ()
21171 {
21172 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21173 test_array [0] = 0
21174
21175   ;
21176   return 0;
21177 }
21178 _ACEOF
21179 rm -f conftest.$ac_objext
21180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21181   (eval $ac_compile) 2>conftest.er1
21182   ac_status=$?
21183   grep -v '^ *+' conftest.er1 >conftest.err
21184   rm -f conftest.er1
21185   cat conftest.err >&5
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); } &&
21188          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190   (eval $ac_try) 2>&5
21191   ac_status=$?
21192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); }; } &&
21194          { ac_try='test -s conftest.$ac_objext'
21195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196   (eval $ac_try) 2>&5
21197   ac_status=$?
21198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199   (exit $ac_status); }; }; then
21200   ac_hi=$ac_mid; break
21201 else
21202   echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21204
21205 ac_lo=`expr $ac_mid + 1`
21206                     if test $ac_lo -le $ac_mid; then
21207                       ac_lo= ac_hi=
21208                       break
21209                     fi
21210                     ac_mid=`expr 2 '*' $ac_mid + 1`
21211 fi
21212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21213   done
21214 else
21215   echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21217
21218 cat >conftest.$ac_ext <<_ACEOF
21219 /* confdefs.h.  */
21220 _ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h.  */
21224 $ac_includes_default
21225 int
21226 main ()
21227 {
21228 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
21229 test_array [0] = 0
21230
21231   ;
21232   return 0;
21233 }
21234 _ACEOF
21235 rm -f conftest.$ac_objext
21236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21237   (eval $ac_compile) 2>conftest.er1
21238   ac_status=$?
21239   grep -v '^ *+' conftest.er1 >conftest.err
21240   rm -f conftest.er1
21241   cat conftest.err >&5
21242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243   (exit $ac_status); } &&
21244          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246   (eval $ac_try) 2>&5
21247   ac_status=$?
21248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249   (exit $ac_status); }; } &&
21250          { ac_try='test -s conftest.$ac_objext'
21251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252   (eval $ac_try) 2>&5
21253   ac_status=$?
21254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255   (exit $ac_status); }; }; then
21256   ac_hi=-1 ac_mid=-1
21257   while :; do
21258     cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h.  */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h.  */
21264 $ac_includes_default
21265 int
21266 main ()
21267 {
21268 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
21269 test_array [0] = 0
21270
21271   ;
21272   return 0;
21273 }
21274 _ACEOF
21275 rm -f conftest.$ac_objext
21276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21277   (eval $ac_compile) 2>conftest.er1
21278   ac_status=$?
21279   grep -v '^ *+' conftest.er1 >conftest.err
21280   rm -f conftest.er1
21281   cat conftest.err >&5
21282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283   (exit $ac_status); } &&
21284          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286   (eval $ac_try) 2>&5
21287   ac_status=$?
21288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289   (exit $ac_status); }; } &&
21290          { ac_try='test -s conftest.$ac_objext'
21291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292   (eval $ac_try) 2>&5
21293   ac_status=$?
21294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295   (exit $ac_status); }; }; then
21296   ac_lo=$ac_mid; break
21297 else
21298   echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21300
21301 ac_hi=`expr '(' $ac_mid ')' - 1`
21302                        if test $ac_mid -le $ac_hi; then
21303                          ac_lo= ac_hi=
21304                          break
21305                        fi
21306                        ac_mid=`expr 2 '*' $ac_mid`
21307 fi
21308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21309   done
21310 else
21311   echo "$as_me: failed program was:" >&5
21312 sed 's/^/| /' conftest.$ac_ext >&5
21313
21314 ac_lo= ac_hi=
21315 fi
21316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21317 fi
21318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21319 # Binary search between lo and hi bounds.
21320 while test "x$ac_lo" != "x$ac_hi"; do
21321   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21322   cat >conftest.$ac_ext <<_ACEOF
21323 /* confdefs.h.  */
21324 _ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h.  */
21328 $ac_includes_default
21329 int
21330 main ()
21331 {
21332 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
21333 test_array [0] = 0
21334
21335   ;
21336   return 0;
21337 }
21338 _ACEOF
21339 rm -f conftest.$ac_objext
21340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21341   (eval $ac_compile) 2>conftest.er1
21342   ac_status=$?
21343   grep -v '^ *+' conftest.er1 >conftest.err
21344   rm -f conftest.er1
21345   cat conftest.err >&5
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); } &&
21348          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21350   (eval $ac_try) 2>&5
21351   ac_status=$?
21352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353   (exit $ac_status); }; } &&
21354          { ac_try='test -s conftest.$ac_objext'
21355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356   (eval $ac_try) 2>&5
21357   ac_status=$?
21358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359   (exit $ac_status); }; }; then
21360   ac_hi=$ac_mid
21361 else
21362   echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21364
21365 ac_lo=`expr '(' $ac_mid ')' + 1`
21366 fi
21367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21368 done
21369 case $ac_lo in
21370 ?*) ac_cv_sizeof_long=$ac_lo;;
21371 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
21372 See \`config.log' for more details." >&5
21373 echo "$as_me: error: cannot compute sizeof (long), 77
21374 See \`config.log' for more details." >&2;}
21375    { (exit 1); exit 1; }; } ;;
21376 esac
21377 else
21378   if test "$cross_compiling" = yes; then
21379   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21380 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21381    { (exit 1); exit 1; }; }
21382 else
21383   cat >conftest.$ac_ext <<_ACEOF
21384 /* confdefs.h.  */
21385 _ACEOF
21386 cat confdefs.h >>conftest.$ac_ext
21387 cat >>conftest.$ac_ext <<_ACEOF
21388 /* end confdefs.h.  */
21389 $ac_includes_default
21390 long longval () { return (long) (sizeof (long)); }
21391 unsigned long ulongval () { return (long) (sizeof (long)); }
21392 #include <stdio.h>
21393 #include <stdlib.h>
21394 int
21395 main ()
21396 {
21397
21398   FILE *f = fopen ("conftest.val", "w");
21399   if (! f)
21400     exit (1);
21401   if (((long) (sizeof (long))) < 0)
21402     {
21403       long i = longval ();
21404       if (i != ((long) (sizeof (long))))
21405         exit (1);
21406       fprintf (f, "%ld\n", i);
21407     }
21408   else
21409     {
21410       unsigned long i = ulongval ();
21411       if (i != ((long) (sizeof (long))))
21412         exit (1);
21413       fprintf (f, "%lu\n", i);
21414     }
21415   exit (ferror (f) || fclose (f) != 0);
21416
21417   ;
21418   return 0;
21419 }
21420 _ACEOF
21421 rm -f conftest$ac_exeext
21422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21423   (eval $ac_link) 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428   (eval $ac_try) 2>&5
21429   ac_status=$?
21430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431   (exit $ac_status); }; }; then
21432   ac_cv_sizeof_long=`cat conftest.val`
21433 else
21434   echo "$as_me: program exited with status $ac_status" >&5
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438 ( exit $ac_status )
21439 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
21440 See \`config.log' for more details." >&5
21441 echo "$as_me: error: cannot compute sizeof (long), 77
21442 See \`config.log' for more details." >&2;}
21443    { (exit 1); exit 1; }; }
21444 fi
21445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21446 fi
21447 fi
21448 rm -f conftest.val
21449 else
21450   ac_cv_sizeof_long=0
21451 fi
21452 fi
21453 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
21454 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
21455 cat >>confdefs.h <<_ACEOF
21456 #define SIZEOF_LONG $ac_cv_sizeof_long
21457 _ACEOF
21458
21459
21460
21461 echo "$as_me:$LINENO: checking for long long" >&5
21462 echo $ECHO_N "checking for long long... $ECHO_C" >&6
21463 if test "${ac_cv_type_long_long+set}" = set; then
21464   echo $ECHO_N "(cached) $ECHO_C" >&6
21465 else
21466   cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h.  */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h.  */
21472 $ac_includes_default
21473 int
21474 main ()
21475 {
21476 if ((long long *) 0)
21477   return 0;
21478 if (sizeof (long long))
21479   return 0;
21480   ;
21481   return 0;
21482 }
21483 _ACEOF
21484 rm -f conftest.$ac_objext
21485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21486   (eval $ac_compile) 2>conftest.er1
21487   ac_status=$?
21488   grep -v '^ *+' conftest.er1 >conftest.err
21489   rm -f conftest.er1
21490   cat conftest.err >&5
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); } &&
21493          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495   (eval $ac_try) 2>&5
21496   ac_status=$?
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); }; } &&
21499          { ac_try='test -s conftest.$ac_objext'
21500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501   (eval $ac_try) 2>&5
21502   ac_status=$?
21503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504   (exit $ac_status); }; }; then
21505   ac_cv_type_long_long=yes
21506 else
21507   echo "$as_me: failed program was:" >&5
21508 sed 's/^/| /' conftest.$ac_ext >&5
21509
21510 ac_cv_type_long_long=no
21511 fi
21512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21513 fi
21514 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21515 echo "${ECHO_T}$ac_cv_type_long_long" >&6
21516
21517 echo "$as_me:$LINENO: checking size of long long" >&5
21518 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21519 if test "${ac_cv_sizeof_long_long+set}" = set; then
21520   echo $ECHO_N "(cached) $ECHO_C" >&6
21521 else
21522   if test "$ac_cv_type_long_long" = yes; then
21523   # The cast to unsigned long works around a bug in the HP C Compiler
21524   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21525   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21526   # This bug is HP SR number 8606223364.
21527   if test "$cross_compiling" = yes; then
21528   # Depending upon the size, compute the lo and hi bounds.
21529 cat >conftest.$ac_ext <<_ACEOF
21530 /* confdefs.h.  */
21531 _ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h.  */
21535 $ac_includes_default
21536 int
21537 main ()
21538 {
21539 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21540 test_array [0] = 0
21541
21542   ;
21543   return 0;
21544 }
21545 _ACEOF
21546 rm -f conftest.$ac_objext
21547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21548   (eval $ac_compile) 2>conftest.er1
21549   ac_status=$?
21550   grep -v '^ *+' conftest.er1 >conftest.err
21551   rm -f conftest.er1
21552   cat conftest.err >&5
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); } &&
21555          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557   (eval $ac_try) 2>&5
21558   ac_status=$?
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); }; } &&
21561          { ac_try='test -s conftest.$ac_objext'
21562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21563   (eval $ac_try) 2>&5
21564   ac_status=$?
21565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566   (exit $ac_status); }; }; then
21567   ac_lo=0 ac_mid=0
21568   while :; do
21569     cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h.  */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h.  */
21575 $ac_includes_default
21576 int
21577 main ()
21578 {
21579 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21580 test_array [0] = 0
21581
21582   ;
21583   return 0;
21584 }
21585 _ACEOF
21586 rm -f conftest.$ac_objext
21587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21588   (eval $ac_compile) 2>conftest.er1
21589   ac_status=$?
21590   grep -v '^ *+' conftest.er1 >conftest.err
21591   rm -f conftest.er1
21592   cat conftest.err >&5
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); } &&
21595          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597   (eval $ac_try) 2>&5
21598   ac_status=$?
21599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600   (exit $ac_status); }; } &&
21601          { ac_try='test -s conftest.$ac_objext'
21602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21603   (eval $ac_try) 2>&5
21604   ac_status=$?
21605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606   (exit $ac_status); }; }; then
21607   ac_hi=$ac_mid; break
21608 else
21609   echo "$as_me: failed program was:" >&5
21610 sed 's/^/| /' conftest.$ac_ext >&5
21611
21612 ac_lo=`expr $ac_mid + 1`
21613                     if test $ac_lo -le $ac_mid; then
21614                       ac_lo= ac_hi=
21615                       break
21616                     fi
21617                     ac_mid=`expr 2 '*' $ac_mid + 1`
21618 fi
21619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21620   done
21621 else
21622   echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.$ac_ext >&5
21624
21625 cat >conftest.$ac_ext <<_ACEOF
21626 /* confdefs.h.  */
21627 _ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h.  */
21631 $ac_includes_default
21632 int
21633 main ()
21634 {
21635 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21636 test_array [0] = 0
21637
21638   ;
21639   return 0;
21640 }
21641 _ACEOF
21642 rm -f conftest.$ac_objext
21643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21644   (eval $ac_compile) 2>conftest.er1
21645   ac_status=$?
21646   grep -v '^ *+' conftest.er1 >conftest.err
21647   rm -f conftest.er1
21648   cat conftest.err >&5
21649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); } &&
21651          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653   (eval $ac_try) 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); }; } &&
21657          { ac_try='test -s conftest.$ac_objext'
21658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659   (eval $ac_try) 2>&5
21660   ac_status=$?
21661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662   (exit $ac_status); }; }; then
21663   ac_hi=-1 ac_mid=-1
21664   while :; do
21665     cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h.  */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h.  */
21671 $ac_includes_default
21672 int
21673 main ()
21674 {
21675 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21676 test_array [0] = 0
21677
21678   ;
21679   return 0;
21680 }
21681 _ACEOF
21682 rm -f conftest.$ac_objext
21683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21684   (eval $ac_compile) 2>conftest.er1
21685   ac_status=$?
21686   grep -v '^ *+' conftest.er1 >conftest.err
21687   rm -f conftest.er1
21688   cat conftest.err >&5
21689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690   (exit $ac_status); } &&
21691          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693   (eval $ac_try) 2>&5
21694   ac_status=$?
21695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696   (exit $ac_status); }; } &&
21697          { ac_try='test -s conftest.$ac_objext'
21698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699   (eval $ac_try) 2>&5
21700   ac_status=$?
21701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702   (exit $ac_status); }; }; then
21703   ac_lo=$ac_mid; break
21704 else
21705   echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21707
21708 ac_hi=`expr '(' $ac_mid ')' - 1`
21709                        if test $ac_mid -le $ac_hi; then
21710                          ac_lo= ac_hi=
21711                          break
21712                        fi
21713                        ac_mid=`expr 2 '*' $ac_mid`
21714 fi
21715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21716   done
21717 else
21718   echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21720
21721 ac_lo= ac_hi=
21722 fi
21723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21724 fi
21725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21726 # Binary search between lo and hi bounds.
21727 while test "x$ac_lo" != "x$ac_hi"; do
21728   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21729   cat >conftest.$ac_ext <<_ACEOF
21730 /* confdefs.h.  */
21731 _ACEOF
21732 cat confdefs.h >>conftest.$ac_ext
21733 cat >>conftest.$ac_ext <<_ACEOF
21734 /* end confdefs.h.  */
21735 $ac_includes_default
21736 int
21737 main ()
21738 {
21739 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21740 test_array [0] = 0
21741
21742   ;
21743   return 0;
21744 }
21745 _ACEOF
21746 rm -f conftest.$ac_objext
21747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21748   (eval $ac_compile) 2>conftest.er1
21749   ac_status=$?
21750   grep -v '^ *+' conftest.er1 >conftest.err
21751   rm -f conftest.er1
21752   cat conftest.err >&5
21753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754   (exit $ac_status); } &&
21755          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757   (eval $ac_try) 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; } &&
21761          { ac_try='test -s conftest.$ac_objext'
21762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763   (eval $ac_try) 2>&5
21764   ac_status=$?
21765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766   (exit $ac_status); }; }; then
21767   ac_hi=$ac_mid
21768 else
21769   echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21771
21772 ac_lo=`expr '(' $ac_mid ')' + 1`
21773 fi
21774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21775 done
21776 case $ac_lo in
21777 ?*) ac_cv_sizeof_long_long=$ac_lo;;
21778 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21779 See \`config.log' for more details." >&5
21780 echo "$as_me: error: cannot compute sizeof (long long), 77
21781 See \`config.log' for more details." >&2;}
21782    { (exit 1); exit 1; }; } ;;
21783 esac
21784 else
21785   if test "$cross_compiling" = yes; then
21786   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21787 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21788    { (exit 1); exit 1; }; }
21789 else
21790   cat >conftest.$ac_ext <<_ACEOF
21791 /* confdefs.h.  */
21792 _ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h.  */
21796 $ac_includes_default
21797 long longval () { return (long) (sizeof (long long)); }
21798 unsigned long ulongval () { return (long) (sizeof (long long)); }
21799 #include <stdio.h>
21800 #include <stdlib.h>
21801 int
21802 main ()
21803 {
21804
21805   FILE *f = fopen ("conftest.val", "w");
21806   if (! f)
21807     exit (1);
21808   if (((long) (sizeof (long long))) < 0)
21809     {
21810       long i = longval ();
21811       if (i != ((long) (sizeof (long long))))
21812         exit (1);
21813       fprintf (f, "%ld\n", i);
21814     }
21815   else
21816     {
21817       unsigned long i = ulongval ();
21818       if (i != ((long) (sizeof (long long))))
21819         exit (1);
21820       fprintf (f, "%lu\n", i);
21821     }
21822   exit (ferror (f) || fclose (f) != 0);
21823
21824   ;
21825   return 0;
21826 }
21827 _ACEOF
21828 rm -f conftest$ac_exeext
21829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21830   (eval $ac_link) 2>&5
21831   ac_status=$?
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835   (eval $ac_try) 2>&5
21836   ac_status=$?
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); }; }; then
21839   ac_cv_sizeof_long_long=`cat conftest.val`
21840 else
21841   echo "$as_me: program exited with status $ac_status" >&5
21842 echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21844
21845 ( exit $ac_status )
21846 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21847 See \`config.log' for more details." >&5
21848 echo "$as_me: error: cannot compute sizeof (long long), 77
21849 See \`config.log' for more details." >&2;}
21850    { (exit 1); exit 1; }; }
21851 fi
21852 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21853 fi
21854 fi
21855 rm -f conftest.val
21856 else
21857   ac_cv_sizeof_long_long=0
21858 fi
21859 fi
21860 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21861 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21862 cat >>confdefs.h <<_ACEOF
21863 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21864 _ACEOF
21865
21866
21867 echo "$as_me:$LINENO: checking for __int16" >&5
21868 echo $ECHO_N "checking for __int16... $ECHO_C" >&6
21869 if test "${ac_cv_type___int16+set}" = set; then
21870   echo $ECHO_N "(cached) $ECHO_C" >&6
21871 else
21872   cat >conftest.$ac_ext <<_ACEOF
21873 /* confdefs.h.  */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h.  */
21878 $ac_includes_default
21879 int
21880 main ()
21881 {
21882 if ((__int16 *) 0)
21883   return 0;
21884 if (sizeof (__int16))
21885   return 0;
21886   ;
21887   return 0;
21888 }
21889 _ACEOF
21890 rm -f conftest.$ac_objext
21891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21892   (eval $ac_compile) 2>conftest.er1
21893   ac_status=$?
21894   grep -v '^ *+' conftest.er1 >conftest.err
21895   rm -f conftest.er1
21896   cat conftest.err >&5
21897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); } &&
21899          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901   (eval $ac_try) 2>&5
21902   ac_status=$?
21903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904   (exit $ac_status); }; } &&
21905          { ac_try='test -s conftest.$ac_objext'
21906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907   (eval $ac_try) 2>&5
21908   ac_status=$?
21909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910   (exit $ac_status); }; }; then
21911   ac_cv_type___int16=yes
21912 else
21913   echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21915
21916 ac_cv_type___int16=no
21917 fi
21918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21919 fi
21920 echo "$as_me:$LINENO: result: $ac_cv_type___int16" >&5
21921 echo "${ECHO_T}$ac_cv_type___int16" >&6
21922
21923 echo "$as_me:$LINENO: checking size of __int16" >&5
21924 echo $ECHO_N "checking size of __int16... $ECHO_C" >&6
21925 if test "${ac_cv_sizeof___int16+set}" = set; then
21926   echo $ECHO_N "(cached) $ECHO_C" >&6
21927 else
21928   if test "$ac_cv_type___int16" = yes; then
21929   # The cast to unsigned long works around a bug in the HP C Compiler
21930   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21931   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21932   # This bug is HP SR number 8606223364.
21933   if test "$cross_compiling" = yes; then
21934   # Depending upon the size, compute the lo and hi bounds.
21935 cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h.  */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h.  */
21941 $ac_includes_default
21942 int
21943 main ()
21944 {
21945 static int test_array [1 - 2 * !(((long) (sizeof (__int16))) >= 0)];
21946 test_array [0] = 0
21947
21948   ;
21949   return 0;
21950 }
21951 _ACEOF
21952 rm -f conftest.$ac_objext
21953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21954   (eval $ac_compile) 2>conftest.er1
21955   ac_status=$?
21956   grep -v '^ *+' conftest.er1 >conftest.err
21957   rm -f conftest.er1
21958   cat conftest.err >&5
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); } &&
21961          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963   (eval $ac_try) 2>&5
21964   ac_status=$?
21965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966   (exit $ac_status); }; } &&
21967          { ac_try='test -s conftest.$ac_objext'
21968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969   (eval $ac_try) 2>&5
21970   ac_status=$?
21971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972   (exit $ac_status); }; }; then
21973   ac_lo=0 ac_mid=0
21974   while :; do
21975     cat >conftest.$ac_ext <<_ACEOF
21976 /* confdefs.h.  */
21977 _ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h.  */
21981 $ac_includes_default
21982 int
21983 main ()
21984 {
21985 static int test_array [1 - 2 * !(((long) (sizeof (__int16))) <= $ac_mid)];
21986 test_array [0] = 0
21987
21988   ;
21989   return 0;
21990 }
21991 _ACEOF
21992 rm -f conftest.$ac_objext
21993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21994   (eval $ac_compile) 2>conftest.er1
21995   ac_status=$?
21996   grep -v '^ *+' conftest.er1 >conftest.err
21997   rm -f conftest.er1
21998   cat conftest.err >&5
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); } &&
22001          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003   (eval $ac_try) 2>&5
22004   ac_status=$?
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); }; } &&
22007          { ac_try='test -s conftest.$ac_objext'
22008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009   (eval $ac_try) 2>&5
22010   ac_status=$?
22011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012   (exit $ac_status); }; }; then
22013   ac_hi=$ac_mid; break
22014 else
22015   echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22017
22018 ac_lo=`expr $ac_mid + 1`
22019                     if test $ac_lo -le $ac_mid; then
22020                       ac_lo= ac_hi=
22021                       break
22022                     fi
22023                     ac_mid=`expr 2 '*' $ac_mid + 1`
22024 fi
22025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22026   done
22027 else
22028   echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22030
22031 cat >conftest.$ac_ext <<_ACEOF
22032 /* confdefs.h.  */
22033 _ACEOF
22034 cat confdefs.h >>conftest.$ac_ext
22035 cat >>conftest.$ac_ext <<_ACEOF
22036 /* end confdefs.h.  */
22037 $ac_includes_default
22038 int
22039 main ()
22040 {
22041 static int test_array [1 - 2 * !(((long) (sizeof (__int16))) < 0)];
22042 test_array [0] = 0
22043
22044   ;
22045   return 0;
22046 }
22047 _ACEOF
22048 rm -f conftest.$ac_objext
22049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22050   (eval $ac_compile) 2>conftest.er1
22051   ac_status=$?
22052   grep -v '^ *+' conftest.er1 >conftest.err
22053   rm -f conftest.er1
22054   cat conftest.err >&5
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); } &&
22057          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22059   (eval $ac_try) 2>&5
22060   ac_status=$?
22061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062   (exit $ac_status); }; } &&
22063          { ac_try='test -s conftest.$ac_objext'
22064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22065   (eval $ac_try) 2>&5
22066   ac_status=$?
22067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068   (exit $ac_status); }; }; then
22069   ac_hi=-1 ac_mid=-1
22070   while :; do
22071     cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h.  */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h.  */
22077 $ac_includes_default
22078 int
22079 main ()
22080 {
22081 static int test_array [1 - 2 * !(((long) (sizeof (__int16))) >= $ac_mid)];
22082 test_array [0] = 0
22083
22084   ;
22085   return 0;
22086 }
22087 _ACEOF
22088 rm -f conftest.$ac_objext
22089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22090   (eval $ac_compile) 2>conftest.er1
22091   ac_status=$?
22092   grep -v '^ *+' conftest.er1 >conftest.err
22093   rm -f conftest.er1
22094   cat conftest.err >&5
22095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096   (exit $ac_status); } &&
22097          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099   (eval $ac_try) 2>&5
22100   ac_status=$?
22101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102   (exit $ac_status); }; } &&
22103          { ac_try='test -s conftest.$ac_objext'
22104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22105   (eval $ac_try) 2>&5
22106   ac_status=$?
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); }; }; then
22109   ac_lo=$ac_mid; break
22110 else
22111   echo "$as_me: failed program was:" >&5
22112 sed 's/^/| /' conftest.$ac_ext >&5
22113
22114 ac_hi=`expr '(' $ac_mid ')' - 1`
22115                        if test $ac_mid -le $ac_hi; then
22116                          ac_lo= ac_hi=
22117                          break
22118                        fi
22119                        ac_mid=`expr 2 '*' $ac_mid`
22120 fi
22121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22122   done
22123 else
22124   echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22126
22127 ac_lo= ac_hi=
22128 fi
22129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22130 fi
22131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22132 # Binary search between lo and hi bounds.
22133 while test "x$ac_lo" != "x$ac_hi"; do
22134   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22135   cat >conftest.$ac_ext <<_ACEOF
22136 /* confdefs.h.  */
22137 _ACEOF
22138 cat confdefs.h >>conftest.$ac_ext
22139 cat >>conftest.$ac_ext <<_ACEOF
22140 /* end confdefs.h.  */
22141 $ac_includes_default
22142 int
22143 main ()
22144 {
22145 static int test_array [1 - 2 * !(((long) (sizeof (__int16))) <= $ac_mid)];
22146 test_array [0] = 0
22147
22148   ;
22149   return 0;
22150 }
22151 _ACEOF
22152 rm -f conftest.$ac_objext
22153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22154   (eval $ac_compile) 2>conftest.er1
22155   ac_status=$?
22156   grep -v '^ *+' conftest.er1 >conftest.err
22157   rm -f conftest.er1
22158   cat conftest.err >&5
22159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160   (exit $ac_status); } &&
22161          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163   (eval $ac_try) 2>&5
22164   ac_status=$?
22165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166   (exit $ac_status); }; } &&
22167          { ac_try='test -s conftest.$ac_objext'
22168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22169   (eval $ac_try) 2>&5
22170   ac_status=$?
22171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172   (exit $ac_status); }; }; then
22173   ac_hi=$ac_mid
22174 else
22175   echo "$as_me: failed program was:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22177
22178 ac_lo=`expr '(' $ac_mid ')' + 1`
22179 fi
22180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22181 done
22182 case $ac_lo in
22183 ?*) ac_cv_sizeof___int16=$ac_lo;;
22184 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int16), 77
22185 See \`config.log' for more details." >&5
22186 echo "$as_me: error: cannot compute sizeof (__int16), 77
22187 See \`config.log' for more details." >&2;}
22188    { (exit 1); exit 1; }; } ;;
22189 esac
22190 else
22191   if test "$cross_compiling" = yes; then
22192   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22193 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22194    { (exit 1); exit 1; }; }
22195 else
22196   cat >conftest.$ac_ext <<_ACEOF
22197 /* confdefs.h.  */
22198 _ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h.  */
22202 $ac_includes_default
22203 long longval () { return (long) (sizeof (__int16)); }
22204 unsigned long ulongval () { return (long) (sizeof (__int16)); }
22205 #include <stdio.h>
22206 #include <stdlib.h>
22207 int
22208 main ()
22209 {
22210
22211   FILE *f = fopen ("conftest.val", "w");
22212   if (! f)
22213     exit (1);
22214   if (((long) (sizeof (__int16))) < 0)
22215     {
22216       long i = longval ();
22217       if (i != ((long) (sizeof (__int16))))
22218         exit (1);
22219       fprintf (f, "%ld\n", i);
22220     }
22221   else
22222     {
22223       unsigned long i = ulongval ();
22224       if (i != ((long) (sizeof (__int16))))
22225         exit (1);
22226       fprintf (f, "%lu\n", i);
22227     }
22228   exit (ferror (f) || fclose (f) != 0);
22229
22230   ;
22231   return 0;
22232 }
22233 _ACEOF
22234 rm -f conftest$ac_exeext
22235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22236   (eval $ac_link) 2>&5
22237   ac_status=$?
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22241   (eval $ac_try) 2>&5
22242   ac_status=$?
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); }; }; then
22245   ac_cv_sizeof___int16=`cat conftest.val`
22246 else
22247   echo "$as_me: program exited with status $ac_status" >&5
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251 ( exit $ac_status )
22252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int16), 77
22253 See \`config.log' for more details." >&5
22254 echo "$as_me: error: cannot compute sizeof (__int16), 77
22255 See \`config.log' for more details." >&2;}
22256    { (exit 1); exit 1; }; }
22257 fi
22258 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22259 fi
22260 fi
22261 rm -f conftest.val
22262 else
22263   ac_cv_sizeof___int16=0
22264 fi
22265 fi
22266 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int16" >&5
22267 echo "${ECHO_T}$ac_cv_sizeof___int16" >&6
22268 cat >>confdefs.h <<_ACEOF
22269 #define SIZEOF___INT16 $ac_cv_sizeof___int16
22270 _ACEOF
22271
22272
22273 echo "$as_me:$LINENO: checking for __int32" >&5
22274 echo $ECHO_N "checking for __int32... $ECHO_C" >&6
22275 if test "${ac_cv_type___int32+set}" = set; then
22276   echo $ECHO_N "(cached) $ECHO_C" >&6
22277 else
22278   cat >conftest.$ac_ext <<_ACEOF
22279 /* confdefs.h.  */
22280 _ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h.  */
22284 $ac_includes_default
22285 int
22286 main ()
22287 {
22288 if ((__int32 *) 0)
22289   return 0;
22290 if (sizeof (__int32))
22291   return 0;
22292   ;
22293   return 0;
22294 }
22295 _ACEOF
22296 rm -f conftest.$ac_objext
22297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22298   (eval $ac_compile) 2>conftest.er1
22299   ac_status=$?
22300   grep -v '^ *+' conftest.er1 >conftest.err
22301   rm -f conftest.er1
22302   cat conftest.err >&5
22303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); } &&
22305          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307   (eval $ac_try) 2>&5
22308   ac_status=$?
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); }; } &&
22311          { ac_try='test -s conftest.$ac_objext'
22312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313   (eval $ac_try) 2>&5
22314   ac_status=$?
22315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316   (exit $ac_status); }; }; then
22317   ac_cv_type___int32=yes
22318 else
22319   echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22321
22322 ac_cv_type___int32=no
22323 fi
22324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22325 fi
22326 echo "$as_me:$LINENO: result: $ac_cv_type___int32" >&5
22327 echo "${ECHO_T}$ac_cv_type___int32" >&6
22328
22329 echo "$as_me:$LINENO: checking size of __int32" >&5
22330 echo $ECHO_N "checking size of __int32... $ECHO_C" >&6
22331 if test "${ac_cv_sizeof___int32+set}" = set; then
22332   echo $ECHO_N "(cached) $ECHO_C" >&6
22333 else
22334   if test "$ac_cv_type___int32" = yes; then
22335   # The cast to unsigned long works around a bug in the HP C Compiler
22336   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22337   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22338   # This bug is HP SR number 8606223364.
22339   if test "$cross_compiling" = yes; then
22340   # Depending upon the size, compute the lo and hi bounds.
22341 cat >conftest.$ac_ext <<_ACEOF
22342 /* confdefs.h.  */
22343 _ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h.  */
22347 $ac_includes_default
22348 int
22349 main ()
22350 {
22351 static int test_array [1 - 2 * !(((long) (sizeof (__int32))) >= 0)];
22352 test_array [0] = 0
22353
22354   ;
22355   return 0;
22356 }
22357 _ACEOF
22358 rm -f conftest.$ac_objext
22359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22360   (eval $ac_compile) 2>conftest.er1
22361   ac_status=$?
22362   grep -v '^ *+' conftest.er1 >conftest.err
22363   rm -f conftest.er1
22364   cat conftest.err >&5
22365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366   (exit $ac_status); } &&
22367          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22369   (eval $ac_try) 2>&5
22370   ac_status=$?
22371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372   (exit $ac_status); }; } &&
22373          { ac_try='test -s conftest.$ac_objext'
22374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375   (eval $ac_try) 2>&5
22376   ac_status=$?
22377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378   (exit $ac_status); }; }; then
22379   ac_lo=0 ac_mid=0
22380   while :; do
22381     cat >conftest.$ac_ext <<_ACEOF
22382 /* confdefs.h.  */
22383 _ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h.  */
22387 $ac_includes_default
22388 int
22389 main ()
22390 {
22391 static int test_array [1 - 2 * !(((long) (sizeof (__int32))) <= $ac_mid)];
22392 test_array [0] = 0
22393
22394   ;
22395   return 0;
22396 }
22397 _ACEOF
22398 rm -f conftest.$ac_objext
22399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22400   (eval $ac_compile) 2>conftest.er1
22401   ac_status=$?
22402   grep -v '^ *+' conftest.er1 >conftest.err
22403   rm -f conftest.er1
22404   cat conftest.err >&5
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); } &&
22407          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22409   (eval $ac_try) 2>&5
22410   ac_status=$?
22411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412   (exit $ac_status); }; } &&
22413          { ac_try='test -s conftest.$ac_objext'
22414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415   (eval $ac_try) 2>&5
22416   ac_status=$?
22417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418   (exit $ac_status); }; }; then
22419   ac_hi=$ac_mid; break
22420 else
22421   echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22423
22424 ac_lo=`expr $ac_mid + 1`
22425                     if test $ac_lo -le $ac_mid; then
22426                       ac_lo= ac_hi=
22427                       break
22428                     fi
22429                     ac_mid=`expr 2 '*' $ac_mid + 1`
22430 fi
22431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22432   done
22433 else
22434   echo "$as_me: failed program was:" >&5
22435 sed 's/^/| /' conftest.$ac_ext >&5
22436
22437 cat >conftest.$ac_ext <<_ACEOF
22438 /* confdefs.h.  */
22439 _ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h.  */
22443 $ac_includes_default
22444 int
22445 main ()
22446 {
22447 static int test_array [1 - 2 * !(((long) (sizeof (__int32))) < 0)];
22448 test_array [0] = 0
22449
22450   ;
22451   return 0;
22452 }
22453 _ACEOF
22454 rm -f conftest.$ac_objext
22455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22456   (eval $ac_compile) 2>conftest.er1
22457   ac_status=$?
22458   grep -v '^ *+' conftest.er1 >conftest.err
22459   rm -f conftest.er1
22460   cat conftest.err >&5
22461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462   (exit $ac_status); } &&
22463          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22465   (eval $ac_try) 2>&5
22466   ac_status=$?
22467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468   (exit $ac_status); }; } &&
22469          { ac_try='test -s conftest.$ac_objext'
22470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22471   (eval $ac_try) 2>&5
22472   ac_status=$?
22473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); }; }; then
22475   ac_hi=-1 ac_mid=-1
22476   while :; do
22477     cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h.  */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h.  */
22483 $ac_includes_default
22484 int
22485 main ()
22486 {
22487 static int test_array [1 - 2 * !(((long) (sizeof (__int32))) >= $ac_mid)];
22488 test_array [0] = 0
22489
22490   ;
22491   return 0;
22492 }
22493 _ACEOF
22494 rm -f conftest.$ac_objext
22495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22496   (eval $ac_compile) 2>conftest.er1
22497   ac_status=$?
22498   grep -v '^ *+' conftest.er1 >conftest.err
22499   rm -f conftest.er1
22500   cat conftest.err >&5
22501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502   (exit $ac_status); } &&
22503          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22505   (eval $ac_try) 2>&5
22506   ac_status=$?
22507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508   (exit $ac_status); }; } &&
22509          { ac_try='test -s conftest.$ac_objext'
22510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22511   (eval $ac_try) 2>&5
22512   ac_status=$?
22513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514   (exit $ac_status); }; }; then
22515   ac_lo=$ac_mid; break
22516 else
22517   echo "$as_me: failed program was:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22519
22520 ac_hi=`expr '(' $ac_mid ')' - 1`
22521                        if test $ac_mid -le $ac_hi; then
22522                          ac_lo= ac_hi=
22523                          break
22524                        fi
22525                        ac_mid=`expr 2 '*' $ac_mid`
22526 fi
22527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22528   done
22529 else
22530   echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22532
22533 ac_lo= ac_hi=
22534 fi
22535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22536 fi
22537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22538 # Binary search between lo and hi bounds.
22539 while test "x$ac_lo" != "x$ac_hi"; do
22540   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22541   cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h.  */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h.  */
22547 $ac_includes_default
22548 int
22549 main ()
22550 {
22551 static int test_array [1 - 2 * !(((long) (sizeof (__int32))) <= $ac_mid)];
22552 test_array [0] = 0
22553
22554   ;
22555   return 0;
22556 }
22557 _ACEOF
22558 rm -f conftest.$ac_objext
22559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22560   (eval $ac_compile) 2>conftest.er1
22561   ac_status=$?
22562   grep -v '^ *+' conftest.er1 >conftest.err
22563   rm -f conftest.er1
22564   cat conftest.err >&5
22565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566   (exit $ac_status); } &&
22567          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569   (eval $ac_try) 2>&5
22570   ac_status=$?
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); }; } &&
22573          { ac_try='test -s conftest.$ac_objext'
22574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575   (eval $ac_try) 2>&5
22576   ac_status=$?
22577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578   (exit $ac_status); }; }; then
22579   ac_hi=$ac_mid
22580 else
22581   echo "$as_me: failed program was:" >&5
22582 sed 's/^/| /' conftest.$ac_ext >&5
22583
22584 ac_lo=`expr '(' $ac_mid ')' + 1`
22585 fi
22586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22587 done
22588 case $ac_lo in
22589 ?*) ac_cv_sizeof___int32=$ac_lo;;
22590 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int32), 77
22591 See \`config.log' for more details." >&5
22592 echo "$as_me: error: cannot compute sizeof (__int32), 77
22593 See \`config.log' for more details." >&2;}
22594    { (exit 1); exit 1; }; } ;;
22595 esac
22596 else
22597   if test "$cross_compiling" = yes; then
22598   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22599 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22600    { (exit 1); exit 1; }; }
22601 else
22602   cat >conftest.$ac_ext <<_ACEOF
22603 /* confdefs.h.  */
22604 _ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h.  */
22608 $ac_includes_default
22609 long longval () { return (long) (sizeof (__int32)); }
22610 unsigned long ulongval () { return (long) (sizeof (__int32)); }
22611 #include <stdio.h>
22612 #include <stdlib.h>
22613 int
22614 main ()
22615 {
22616
22617   FILE *f = fopen ("conftest.val", "w");
22618   if (! f)
22619     exit (1);
22620   if (((long) (sizeof (__int32))) < 0)
22621     {
22622       long i = longval ();
22623       if (i != ((long) (sizeof (__int32))))
22624         exit (1);
22625       fprintf (f, "%ld\n", i);
22626     }
22627   else
22628     {
22629       unsigned long i = ulongval ();
22630       if (i != ((long) (sizeof (__int32))))
22631         exit (1);
22632       fprintf (f, "%lu\n", i);
22633     }
22634   exit (ferror (f) || fclose (f) != 0);
22635
22636   ;
22637   return 0;
22638 }
22639 _ACEOF
22640 rm -f conftest$ac_exeext
22641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22642   (eval $ac_link) 2>&5
22643   ac_status=$?
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22647   (eval $ac_try) 2>&5
22648   ac_status=$?
22649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650   (exit $ac_status); }; }; then
22651   ac_cv_sizeof___int32=`cat conftest.val`
22652 else
22653   echo "$as_me: program exited with status $ac_status" >&5
22654 echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22656
22657 ( exit $ac_status )
22658 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int32), 77
22659 See \`config.log' for more details." >&5
22660 echo "$as_me: error: cannot compute sizeof (__int32), 77
22661 See \`config.log' for more details." >&2;}
22662    { (exit 1); exit 1; }; }
22663 fi
22664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22665 fi
22666 fi
22667 rm -f conftest.val
22668 else
22669   ac_cv_sizeof___int32=0
22670 fi
22671 fi
22672 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int32" >&5
22673 echo "${ECHO_T}$ac_cv_sizeof___int32" >&6
22674 cat >>confdefs.h <<_ACEOF
22675 #define SIZEOF___INT32 $ac_cv_sizeof___int32
22676 _ACEOF
22677
22678
22679 echo "$as_me:$LINENO: checking for __int64" >&5
22680 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
22681 if test "${ac_cv_type___int64+set}" = set; then
22682   echo $ECHO_N "(cached) $ECHO_C" >&6
22683 else
22684   cat >conftest.$ac_ext <<_ACEOF
22685 /* confdefs.h.  */
22686 _ACEOF
22687 cat confdefs.h >>conftest.$ac_ext
22688 cat >>conftest.$ac_ext <<_ACEOF
22689 /* end confdefs.h.  */
22690 $ac_includes_default
22691 int
22692 main ()
22693 {
22694 if ((__int64 *) 0)
22695   return 0;
22696 if (sizeof (__int64))
22697   return 0;
22698   ;
22699   return 0;
22700 }
22701 _ACEOF
22702 rm -f conftest.$ac_objext
22703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22704   (eval $ac_compile) 2>conftest.er1
22705   ac_status=$?
22706   grep -v '^ *+' conftest.er1 >conftest.err
22707   rm -f conftest.er1
22708   cat conftest.err >&5
22709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710   (exit $ac_status); } &&
22711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713   (eval $ac_try) 2>&5
22714   ac_status=$?
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); }; } &&
22717          { ac_try='test -s conftest.$ac_objext'
22718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719   (eval $ac_try) 2>&5
22720   ac_status=$?
22721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722   (exit $ac_status); }; }; then
22723   ac_cv_type___int64=yes
22724 else
22725   echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22727
22728 ac_cv_type___int64=no
22729 fi
22730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22731 fi
22732 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
22733 echo "${ECHO_T}$ac_cv_type___int64" >&6
22734
22735 echo "$as_me:$LINENO: checking size of __int64" >&5
22736 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
22737 if test "${ac_cv_sizeof___int64+set}" = set; then
22738   echo $ECHO_N "(cached) $ECHO_C" >&6
22739 else
22740   if test "$ac_cv_type___int64" = yes; then
22741   # The cast to unsigned long works around a bug in the HP C Compiler
22742   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22743   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22744   # This bug is HP SR number 8606223364.
22745   if test "$cross_compiling" = yes; then
22746   # Depending upon the size, compute the lo and hi bounds.
22747 cat >conftest.$ac_ext <<_ACEOF
22748 /* confdefs.h.  */
22749 _ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h.  */
22753 $ac_includes_default
22754 int
22755 main ()
22756 {
22757 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
22758 test_array [0] = 0
22759
22760   ;
22761   return 0;
22762 }
22763 _ACEOF
22764 rm -f conftest.$ac_objext
22765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22766   (eval $ac_compile) 2>conftest.er1
22767   ac_status=$?
22768   grep -v '^ *+' conftest.er1 >conftest.err
22769   rm -f conftest.er1
22770   cat conftest.err >&5
22771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772   (exit $ac_status); } &&
22773          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22775   (eval $ac_try) 2>&5
22776   ac_status=$?
22777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778   (exit $ac_status); }; } &&
22779          { ac_try='test -s conftest.$ac_objext'
22780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22781   (eval $ac_try) 2>&5
22782   ac_status=$?
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); }; }; then
22785   ac_lo=0 ac_mid=0
22786   while :; do
22787     cat >conftest.$ac_ext <<_ACEOF
22788 /* confdefs.h.  */
22789 _ACEOF
22790 cat confdefs.h >>conftest.$ac_ext
22791 cat >>conftest.$ac_ext <<_ACEOF
22792 /* end confdefs.h.  */
22793 $ac_includes_default
22794 int
22795 main ()
22796 {
22797 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
22798 test_array [0] = 0
22799
22800   ;
22801   return 0;
22802 }
22803 _ACEOF
22804 rm -f conftest.$ac_objext
22805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22806   (eval $ac_compile) 2>conftest.er1
22807   ac_status=$?
22808   grep -v '^ *+' conftest.er1 >conftest.err
22809   rm -f conftest.er1
22810   cat conftest.err >&5
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); } &&
22813          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815   (eval $ac_try) 2>&5
22816   ac_status=$?
22817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818   (exit $ac_status); }; } &&
22819          { ac_try='test -s conftest.$ac_objext'
22820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821   (eval $ac_try) 2>&5
22822   ac_status=$?
22823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824   (exit $ac_status); }; }; then
22825   ac_hi=$ac_mid; break
22826 else
22827   echo "$as_me: failed program was:" >&5
22828 sed 's/^/| /' conftest.$ac_ext >&5
22829
22830 ac_lo=`expr $ac_mid + 1`
22831                     if test $ac_lo -le $ac_mid; then
22832                       ac_lo= ac_hi=
22833                       break
22834                     fi
22835                     ac_mid=`expr 2 '*' $ac_mid + 1`
22836 fi
22837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22838   done
22839 else
22840   echo "$as_me: failed program was:" >&5
22841 sed 's/^/| /' conftest.$ac_ext >&5
22842
22843 cat >conftest.$ac_ext <<_ACEOF
22844 /* confdefs.h.  */
22845 _ACEOF
22846 cat confdefs.h >>conftest.$ac_ext
22847 cat >>conftest.$ac_ext <<_ACEOF
22848 /* end confdefs.h.  */
22849 $ac_includes_default
22850 int
22851 main ()
22852 {
22853 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
22854 test_array [0] = 0
22855
22856   ;
22857   return 0;
22858 }
22859 _ACEOF
22860 rm -f conftest.$ac_objext
22861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22862   (eval $ac_compile) 2>conftest.er1
22863   ac_status=$?
22864   grep -v '^ *+' conftest.er1 >conftest.err
22865   rm -f conftest.er1
22866   cat conftest.err >&5
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); } &&
22869          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871   (eval $ac_try) 2>&5
22872   ac_status=$?
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); }; } &&
22875          { ac_try='test -s conftest.$ac_objext'
22876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877   (eval $ac_try) 2>&5
22878   ac_status=$?
22879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880   (exit $ac_status); }; }; then
22881   ac_hi=-1 ac_mid=-1
22882   while :; do
22883     cat >conftest.$ac_ext <<_ACEOF
22884 /* confdefs.h.  */
22885 _ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h.  */
22889 $ac_includes_default
22890 int
22891 main ()
22892 {
22893 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
22894 test_array [0] = 0
22895
22896   ;
22897   return 0;
22898 }
22899 _ACEOF
22900 rm -f conftest.$ac_objext
22901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22902   (eval $ac_compile) 2>conftest.er1
22903   ac_status=$?
22904   grep -v '^ *+' conftest.er1 >conftest.err
22905   rm -f conftest.er1
22906   cat conftest.err >&5
22907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908   (exit $ac_status); } &&
22909          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911   (eval $ac_try) 2>&5
22912   ac_status=$?
22913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914   (exit $ac_status); }; } &&
22915          { ac_try='test -s conftest.$ac_objext'
22916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917   (eval $ac_try) 2>&5
22918   ac_status=$?
22919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920   (exit $ac_status); }; }; then
22921   ac_lo=$ac_mid; break
22922 else
22923   echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22925
22926 ac_hi=`expr '(' $ac_mid ')' - 1`
22927                        if test $ac_mid -le $ac_hi; then
22928                          ac_lo= ac_hi=
22929                          break
22930                        fi
22931                        ac_mid=`expr 2 '*' $ac_mid`
22932 fi
22933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22934   done
22935 else
22936   echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22938
22939 ac_lo= ac_hi=
22940 fi
22941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22942 fi
22943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22944 # Binary search between lo and hi bounds.
22945 while test "x$ac_lo" != "x$ac_hi"; do
22946   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22947   cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h.  */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h.  */
22953 $ac_includes_default
22954 int
22955 main ()
22956 {
22957 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
22958 test_array [0] = 0
22959
22960   ;
22961   return 0;
22962 }
22963 _ACEOF
22964 rm -f conftest.$ac_objext
22965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22966   (eval $ac_compile) 2>conftest.er1
22967   ac_status=$?
22968   grep -v '^ *+' conftest.er1 >conftest.err
22969   rm -f conftest.er1
22970   cat conftest.err >&5
22971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972   (exit $ac_status); } &&
22973          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
22974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22975   (eval $ac_try) 2>&5
22976   ac_status=$?
22977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978   (exit $ac_status); }; } &&
22979          { ac_try='test -s conftest.$ac_objext'
22980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22981   (eval $ac_try) 2>&5
22982   ac_status=$?
22983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984   (exit $ac_status); }; }; then
22985   ac_hi=$ac_mid
22986 else
22987   echo "$as_me: failed program was:" >&5
22988 sed 's/^/| /' conftest.$ac_ext >&5
22989
22990 ac_lo=`expr '(' $ac_mid ')' + 1`
22991 fi
22992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22993 done
22994 case $ac_lo in
22995 ?*) ac_cv_sizeof___int64=$ac_lo;;
22996 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
22997 See \`config.log' for more details." >&5
22998 echo "$as_me: error: cannot compute sizeof (__int64), 77
22999 See \`config.log' for more details." >&2;}
23000    { (exit 1); exit 1; }; } ;;
23001 esac
23002 else
23003   if test "$cross_compiling" = yes; then
23004   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23005 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23006    { (exit 1); exit 1; }; }
23007 else
23008   cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h.  */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h.  */
23014 $ac_includes_default
23015 long longval () { return (long) (sizeof (__int64)); }
23016 unsigned long ulongval () { return (long) (sizeof (__int64)); }
23017 #include <stdio.h>
23018 #include <stdlib.h>
23019 int
23020 main ()
23021 {
23022
23023   FILE *f = fopen ("conftest.val", "w");
23024   if (! f)
23025     exit (1);
23026   if (((long) (sizeof (__int64))) < 0)
23027     {
23028       long i = longval ();
23029       if (i != ((long) (sizeof (__int64))))
23030         exit (1);
23031       fprintf (f, "%ld\n", i);
23032     }
23033   else
23034     {
23035       unsigned long i = ulongval ();
23036       if (i != ((long) (sizeof (__int64))))
23037         exit (1);
23038       fprintf (f, "%lu\n", i);
23039     }
23040   exit (ferror (f) || fclose (f) != 0);
23041
23042   ;
23043   return 0;
23044 }
23045 _ACEOF
23046 rm -f conftest$ac_exeext
23047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23048   (eval $ac_link) 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23053   (eval $ac_try) 2>&5
23054   ac_status=$?
23055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056   (exit $ac_status); }; }; then
23057   ac_cv_sizeof___int64=`cat conftest.val`
23058 else
23059   echo "$as_me: program exited with status $ac_status" >&5
23060 echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23062
23063 ( exit $ac_status )
23064 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
23065 See \`config.log' for more details." >&5
23066 echo "$as_me: error: cannot compute sizeof (__int64), 77
23067 See \`config.log' for more details." >&2;}
23068    { (exit 1); exit 1; }; }
23069 fi
23070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23071 fi
23072 fi
23073 rm -f conftest.val
23074 else
23075   ac_cv_sizeof___int64=0
23076 fi
23077 fi
23078 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
23079 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
23080 cat >>confdefs.h <<_ACEOF
23081 #define SIZEOF___INT64 $ac_cv_sizeof___int64
23082 _ACEOF
23083
23084
23085
23086 echo "$as_me:$LINENO: checking for void *" >&5
23087 echo $ECHO_N "checking for void *... $ECHO_C" >&6
23088 if test "${ac_cv_type_void_p+set}" = set; then
23089   echo $ECHO_N "(cached) $ECHO_C" >&6
23090 else
23091   cat >conftest.$ac_ext <<_ACEOF
23092 /* confdefs.h.  */
23093 _ACEOF
23094 cat confdefs.h >>conftest.$ac_ext
23095 cat >>conftest.$ac_ext <<_ACEOF
23096 /* end confdefs.h.  */
23097 $ac_includes_default
23098 int
23099 main ()
23100 {
23101 if ((void * *) 0)
23102   return 0;
23103 if (sizeof (void *))
23104   return 0;
23105   ;
23106   return 0;
23107 }
23108 _ACEOF
23109 rm -f conftest.$ac_objext
23110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23111   (eval $ac_compile) 2>conftest.er1
23112   ac_status=$?
23113   grep -v '^ *+' conftest.er1 >conftest.err
23114   rm -f conftest.er1
23115   cat conftest.err >&5
23116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117   (exit $ac_status); } &&
23118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120   (eval $ac_try) 2>&5
23121   ac_status=$?
23122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123   (exit $ac_status); }; } &&
23124          { ac_try='test -s conftest.$ac_objext'
23125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126   (eval $ac_try) 2>&5
23127   ac_status=$?
23128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); }; }; then
23130   ac_cv_type_void_p=yes
23131 else
23132   echo "$as_me: failed program was:" >&5
23133 sed 's/^/| /' conftest.$ac_ext >&5
23134
23135 ac_cv_type_void_p=no
23136 fi
23137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23138 fi
23139 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
23140 echo "${ECHO_T}$ac_cv_type_void_p" >&6
23141
23142 echo "$as_me:$LINENO: checking size of void *" >&5
23143 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
23144 if test "${ac_cv_sizeof_void_p+set}" = set; then
23145   echo $ECHO_N "(cached) $ECHO_C" >&6
23146 else
23147   if test "$ac_cv_type_void_p" = yes; then
23148   # The cast to unsigned long works around a bug in the HP C Compiler
23149   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23150   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23151   # This bug is HP SR number 8606223364.
23152   if test "$cross_compiling" = yes; then
23153   # Depending upon the size, compute the lo and hi bounds.
23154 cat >conftest.$ac_ext <<_ACEOF
23155 /* confdefs.h.  */
23156 _ACEOF
23157 cat confdefs.h >>conftest.$ac_ext
23158 cat >>conftest.$ac_ext <<_ACEOF
23159 /* end confdefs.h.  */
23160 $ac_includes_default
23161 int
23162 main ()
23163 {
23164 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
23165 test_array [0] = 0
23166
23167   ;
23168   return 0;
23169 }
23170 _ACEOF
23171 rm -f conftest.$ac_objext
23172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23173   (eval $ac_compile) 2>conftest.er1
23174   ac_status=$?
23175   grep -v '^ *+' conftest.er1 >conftest.err
23176   rm -f conftest.er1
23177   cat conftest.err >&5
23178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179   (exit $ac_status); } &&
23180          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182   (eval $ac_try) 2>&5
23183   ac_status=$?
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); }; } &&
23186          { ac_try='test -s conftest.$ac_objext'
23187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188   (eval $ac_try) 2>&5
23189   ac_status=$?
23190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191   (exit $ac_status); }; }; then
23192   ac_lo=0 ac_mid=0
23193   while :; do
23194     cat >conftest.$ac_ext <<_ACEOF
23195 /* confdefs.h.  */
23196 _ACEOF
23197 cat confdefs.h >>conftest.$ac_ext
23198 cat >>conftest.$ac_ext <<_ACEOF
23199 /* end confdefs.h.  */
23200 $ac_includes_default
23201 int
23202 main ()
23203 {
23204 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
23205 test_array [0] = 0
23206
23207   ;
23208   return 0;
23209 }
23210 _ACEOF
23211 rm -f conftest.$ac_objext
23212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23213   (eval $ac_compile) 2>conftest.er1
23214   ac_status=$?
23215   grep -v '^ *+' conftest.er1 >conftest.err
23216   rm -f conftest.er1
23217   cat conftest.err >&5
23218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219   (exit $ac_status); } &&
23220          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222   (eval $ac_try) 2>&5
23223   ac_status=$?
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); }; } &&
23226          { ac_try='test -s conftest.$ac_objext'
23227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228   (eval $ac_try) 2>&5
23229   ac_status=$?
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); }; }; then
23232   ac_hi=$ac_mid; break
23233 else
23234   echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23236
23237 ac_lo=`expr $ac_mid + 1`
23238                     if test $ac_lo -le $ac_mid; then
23239                       ac_lo= ac_hi=
23240                       break
23241                     fi
23242                     ac_mid=`expr 2 '*' $ac_mid + 1`
23243 fi
23244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23245   done
23246 else
23247   echo "$as_me: failed program was:" >&5
23248 sed 's/^/| /' conftest.$ac_ext >&5
23249
23250 cat >conftest.$ac_ext <<_ACEOF
23251 /* confdefs.h.  */
23252 _ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h.  */
23256 $ac_includes_default
23257 int
23258 main ()
23259 {
23260 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
23261 test_array [0] = 0
23262
23263   ;
23264   return 0;
23265 }
23266 _ACEOF
23267 rm -f conftest.$ac_objext
23268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23269   (eval $ac_compile) 2>conftest.er1
23270   ac_status=$?
23271   grep -v '^ *+' conftest.er1 >conftest.err
23272   rm -f conftest.er1
23273   cat conftest.err >&5
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); } &&
23276          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23278   (eval $ac_try) 2>&5
23279   ac_status=$?
23280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281   (exit $ac_status); }; } &&
23282          { ac_try='test -s conftest.$ac_objext'
23283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284   (eval $ac_try) 2>&5
23285   ac_status=$?
23286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287   (exit $ac_status); }; }; then
23288   ac_hi=-1 ac_mid=-1
23289   while :; do
23290     cat >conftest.$ac_ext <<_ACEOF
23291 /* confdefs.h.  */
23292 _ACEOF
23293 cat confdefs.h >>conftest.$ac_ext
23294 cat >>conftest.$ac_ext <<_ACEOF
23295 /* end confdefs.h.  */
23296 $ac_includes_default
23297 int
23298 main ()
23299 {
23300 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
23301 test_array [0] = 0
23302
23303   ;
23304   return 0;
23305 }
23306 _ACEOF
23307 rm -f conftest.$ac_objext
23308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23309   (eval $ac_compile) 2>conftest.er1
23310   ac_status=$?
23311   grep -v '^ *+' conftest.er1 >conftest.err
23312   rm -f conftest.er1
23313   cat conftest.err >&5
23314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315   (exit $ac_status); } &&
23316          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318   (eval $ac_try) 2>&5
23319   ac_status=$?
23320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321   (exit $ac_status); }; } &&
23322          { ac_try='test -s conftest.$ac_objext'
23323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324   (eval $ac_try) 2>&5
23325   ac_status=$?
23326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327   (exit $ac_status); }; }; then
23328   ac_lo=$ac_mid; break
23329 else
23330   echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23332
23333 ac_hi=`expr '(' $ac_mid ')' - 1`
23334                        if test $ac_mid -le $ac_hi; then
23335                          ac_lo= ac_hi=
23336                          break
23337                        fi
23338                        ac_mid=`expr 2 '*' $ac_mid`
23339 fi
23340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23341   done
23342 else
23343   echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23345
23346 ac_lo= ac_hi=
23347 fi
23348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23349 fi
23350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23351 # Binary search between lo and hi bounds.
23352 while test "x$ac_lo" != "x$ac_hi"; do
23353   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23354   cat >conftest.$ac_ext <<_ACEOF
23355 /* confdefs.h.  */
23356 _ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h.  */
23360 $ac_includes_default
23361 int
23362 main ()
23363 {
23364 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
23365 test_array [0] = 0
23366
23367   ;
23368   return 0;
23369 }
23370 _ACEOF
23371 rm -f conftest.$ac_objext
23372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23373   (eval $ac_compile) 2>conftest.er1
23374   ac_status=$?
23375   grep -v '^ *+' conftest.er1 >conftest.err
23376   rm -f conftest.er1
23377   cat conftest.err >&5
23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379   (exit $ac_status); } &&
23380          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23382   (eval $ac_try) 2>&5
23383   ac_status=$?
23384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385   (exit $ac_status); }; } &&
23386          { ac_try='test -s conftest.$ac_objext'
23387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23388   (eval $ac_try) 2>&5
23389   ac_status=$?
23390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391   (exit $ac_status); }; }; then
23392   ac_hi=$ac_mid
23393 else
23394   echo "$as_me: failed program was:" >&5
23395 sed 's/^/| /' conftest.$ac_ext >&5
23396
23397 ac_lo=`expr '(' $ac_mid ')' + 1`
23398 fi
23399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23400 done
23401 case $ac_lo in
23402 ?*) ac_cv_sizeof_void_p=$ac_lo;;
23403 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
23404 See \`config.log' for more details." >&5
23405 echo "$as_me: error: cannot compute sizeof (void *), 77
23406 See \`config.log' for more details." >&2;}
23407    { (exit 1); exit 1; }; } ;;
23408 esac
23409 else
23410   if test "$cross_compiling" = yes; then
23411   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23412 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23413    { (exit 1); exit 1; }; }
23414 else
23415   cat >conftest.$ac_ext <<_ACEOF
23416 /* confdefs.h.  */
23417 _ACEOF
23418 cat confdefs.h >>conftest.$ac_ext
23419 cat >>conftest.$ac_ext <<_ACEOF
23420 /* end confdefs.h.  */
23421 $ac_includes_default
23422 long longval () { return (long) (sizeof (void *)); }
23423 unsigned long ulongval () { return (long) (sizeof (void *)); }
23424 #include <stdio.h>
23425 #include <stdlib.h>
23426 int
23427 main ()
23428 {
23429
23430   FILE *f = fopen ("conftest.val", "w");
23431   if (! f)
23432     exit (1);
23433   if (((long) (sizeof (void *))) < 0)
23434     {
23435       long i = longval ();
23436       if (i != ((long) (sizeof (void *))))
23437         exit (1);
23438       fprintf (f, "%ld\n", i);
23439     }
23440   else
23441     {
23442       unsigned long i = ulongval ();
23443       if (i != ((long) (sizeof (void *))))
23444         exit (1);
23445       fprintf (f, "%lu\n", i);
23446     }
23447   exit (ferror (f) || fclose (f) != 0);
23448
23449   ;
23450   return 0;
23451 }
23452 _ACEOF
23453 rm -f conftest$ac_exeext
23454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23455   (eval $ac_link) 2>&5
23456   ac_status=$?
23457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23460   (eval $ac_try) 2>&5
23461   ac_status=$?
23462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463   (exit $ac_status); }; }; then
23464   ac_cv_sizeof_void_p=`cat conftest.val`
23465 else
23466   echo "$as_me: program exited with status $ac_status" >&5
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23469
23470 ( exit $ac_status )
23471 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
23472 See \`config.log' for more details." >&5
23473 echo "$as_me: error: cannot compute sizeof (void *), 77
23474 See \`config.log' for more details." >&2;}
23475    { (exit 1); exit 1; }; }
23476 fi
23477 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23478 fi
23479 fi
23480 rm -f conftest.val
23481 else
23482   ac_cv_sizeof_void_p=0
23483 fi
23484 fi
23485 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
23486 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
23487 cat >>confdefs.h <<_ACEOF
23488 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23489 _ACEOF
23490
23491
23492 echo "$as_me:$LINENO: checking for size_t" >&5
23493 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23494 if test "${ac_cv_type_size_t+set}" = set; then
23495   echo $ECHO_N "(cached) $ECHO_C" >&6
23496 else
23497   cat >conftest.$ac_ext <<_ACEOF
23498 /* confdefs.h.  */
23499 _ACEOF
23500 cat confdefs.h >>conftest.$ac_ext
23501 cat >>conftest.$ac_ext <<_ACEOF
23502 /* end confdefs.h.  */
23503 $ac_includes_default
23504 int
23505 main ()
23506 {
23507 if ((size_t *) 0)
23508   return 0;
23509 if (sizeof (size_t))
23510   return 0;
23511   ;
23512   return 0;
23513 }
23514 _ACEOF
23515 rm -f conftest.$ac_objext
23516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23517   (eval $ac_compile) 2>conftest.er1
23518   ac_status=$?
23519   grep -v '^ *+' conftest.er1 >conftest.err
23520   rm -f conftest.er1
23521   cat conftest.err >&5
23522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523   (exit $ac_status); } &&
23524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23526   (eval $ac_try) 2>&5
23527   ac_status=$?
23528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529   (exit $ac_status); }; } &&
23530          { ac_try='test -s conftest.$ac_objext'
23531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23532   (eval $ac_try) 2>&5
23533   ac_status=$?
23534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535   (exit $ac_status); }; }; then
23536   ac_cv_type_size_t=yes
23537 else
23538   echo "$as_me: failed program was:" >&5
23539 sed 's/^/| /' conftest.$ac_ext >&5
23540
23541 ac_cv_type_size_t=no
23542 fi
23543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23544 fi
23545 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23546 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23547
23548 echo "$as_me:$LINENO: checking size of size_t" >&5
23549 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
23550 if test "${ac_cv_sizeof_size_t+set}" = set; then
23551   echo $ECHO_N "(cached) $ECHO_C" >&6
23552 else
23553   if test "$ac_cv_type_size_t" = yes; then
23554   # The cast to unsigned long works around a bug in the HP C Compiler
23555   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23556   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23557   # This bug is HP SR number 8606223364.
23558   if test "$cross_compiling" = yes; then
23559   # Depending upon the size, compute the lo and hi bounds.
23560 cat >conftest.$ac_ext <<_ACEOF
23561 /* confdefs.h.  */
23562 _ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h.  */
23566 $ac_includes_default
23567 int
23568 main ()
23569 {
23570 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
23571 test_array [0] = 0
23572
23573   ;
23574   return 0;
23575 }
23576 _ACEOF
23577 rm -f conftest.$ac_objext
23578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23579   (eval $ac_compile) 2>conftest.er1
23580   ac_status=$?
23581   grep -v '^ *+' conftest.er1 >conftest.err
23582   rm -f conftest.er1
23583   cat conftest.err >&5
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); } &&
23586          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588   (eval $ac_try) 2>&5
23589   ac_status=$?
23590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591   (exit $ac_status); }; } &&
23592          { ac_try='test -s conftest.$ac_objext'
23593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23594   (eval $ac_try) 2>&5
23595   ac_status=$?
23596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597   (exit $ac_status); }; }; then
23598   ac_lo=0 ac_mid=0
23599   while :; do
23600     cat >conftest.$ac_ext <<_ACEOF
23601 /* confdefs.h.  */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h.  */
23606 $ac_includes_default
23607 int
23608 main ()
23609 {
23610 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
23611 test_array [0] = 0
23612
23613   ;
23614   return 0;
23615 }
23616 _ACEOF
23617 rm -f conftest.$ac_objext
23618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23619   (eval $ac_compile) 2>conftest.er1
23620   ac_status=$?
23621   grep -v '^ *+' conftest.er1 >conftest.err
23622   rm -f conftest.er1
23623   cat conftest.err >&5
23624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625   (exit $ac_status); } &&
23626          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23628   (eval $ac_try) 2>&5
23629   ac_status=$?
23630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631   (exit $ac_status); }; } &&
23632          { ac_try='test -s conftest.$ac_objext'
23633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23634   (eval $ac_try) 2>&5
23635   ac_status=$?
23636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637   (exit $ac_status); }; }; then
23638   ac_hi=$ac_mid; break
23639 else
23640   echo "$as_me: failed program was:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23642
23643 ac_lo=`expr $ac_mid + 1`
23644                     if test $ac_lo -le $ac_mid; then
23645                       ac_lo= ac_hi=
23646                       break
23647                     fi
23648                     ac_mid=`expr 2 '*' $ac_mid + 1`
23649 fi
23650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23651   done
23652 else
23653   echo "$as_me: failed program was:" >&5
23654 sed 's/^/| /' conftest.$ac_ext >&5
23655
23656 cat >conftest.$ac_ext <<_ACEOF
23657 /* confdefs.h.  */
23658 _ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h.  */
23662 $ac_includes_default
23663 int
23664 main ()
23665 {
23666 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
23667 test_array [0] = 0
23668
23669   ;
23670   return 0;
23671 }
23672 _ACEOF
23673 rm -f conftest.$ac_objext
23674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23675   (eval $ac_compile) 2>conftest.er1
23676   ac_status=$?
23677   grep -v '^ *+' conftest.er1 >conftest.err
23678   rm -f conftest.er1
23679   cat conftest.err >&5
23680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681   (exit $ac_status); } &&
23682          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23684   (eval $ac_try) 2>&5
23685   ac_status=$?
23686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687   (exit $ac_status); }; } &&
23688          { ac_try='test -s conftest.$ac_objext'
23689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690   (eval $ac_try) 2>&5
23691   ac_status=$?
23692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693   (exit $ac_status); }; }; then
23694   ac_hi=-1 ac_mid=-1
23695   while :; do
23696     cat >conftest.$ac_ext <<_ACEOF
23697 /* confdefs.h.  */
23698 _ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h.  */
23702 $ac_includes_default
23703 int
23704 main ()
23705 {
23706 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
23707 test_array [0] = 0
23708
23709   ;
23710   return 0;
23711 }
23712 _ACEOF
23713 rm -f conftest.$ac_objext
23714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23715   (eval $ac_compile) 2>conftest.er1
23716   ac_status=$?
23717   grep -v '^ *+' conftest.er1 >conftest.err
23718   rm -f conftest.er1
23719   cat conftest.err >&5
23720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721   (exit $ac_status); } &&
23722          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724   (eval $ac_try) 2>&5
23725   ac_status=$?
23726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727   (exit $ac_status); }; } &&
23728          { ac_try='test -s conftest.$ac_objext'
23729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730   (eval $ac_try) 2>&5
23731   ac_status=$?
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); }; }; then
23734   ac_lo=$ac_mid; break
23735 else
23736   echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23738
23739 ac_hi=`expr '(' $ac_mid ')' - 1`
23740                        if test $ac_mid -le $ac_hi; then
23741                          ac_lo= ac_hi=
23742                          break
23743                        fi
23744                        ac_mid=`expr 2 '*' $ac_mid`
23745 fi
23746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23747   done
23748 else
23749   echo "$as_me: failed program was:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23751
23752 ac_lo= ac_hi=
23753 fi
23754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23755 fi
23756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23757 # Binary search between lo and hi bounds.
23758 while test "x$ac_lo" != "x$ac_hi"; do
23759   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23760   cat >conftest.$ac_ext <<_ACEOF
23761 /* confdefs.h.  */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h.  */
23766 $ac_includes_default
23767 int
23768 main ()
23769 {
23770 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
23771 test_array [0] = 0
23772
23773   ;
23774   return 0;
23775 }
23776 _ACEOF
23777 rm -f conftest.$ac_objext
23778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23779   (eval $ac_compile) 2>conftest.er1
23780   ac_status=$?
23781   grep -v '^ *+' conftest.er1 >conftest.err
23782   rm -f conftest.er1
23783   cat conftest.err >&5
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); } &&
23786          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23788   (eval $ac_try) 2>&5
23789   ac_status=$?
23790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791   (exit $ac_status); }; } &&
23792          { ac_try='test -s conftest.$ac_objext'
23793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23794   (eval $ac_try) 2>&5
23795   ac_status=$?
23796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797   (exit $ac_status); }; }; then
23798   ac_hi=$ac_mid
23799 else
23800   echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23802
23803 ac_lo=`expr '(' $ac_mid ')' + 1`
23804 fi
23805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23806 done
23807 case $ac_lo in
23808 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23809 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
23810 See \`config.log' for more details." >&5
23811 echo "$as_me: error: cannot compute sizeof (size_t), 77
23812 See \`config.log' for more details." >&2;}
23813    { (exit 1); exit 1; }; } ;;
23814 esac
23815 else
23816   if test "$cross_compiling" = yes; then
23817   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23818 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23819    { (exit 1); exit 1; }; }
23820 else
23821   cat >conftest.$ac_ext <<_ACEOF
23822 /* confdefs.h.  */
23823 _ACEOF
23824 cat confdefs.h >>conftest.$ac_ext
23825 cat >>conftest.$ac_ext <<_ACEOF
23826 /* end confdefs.h.  */
23827 $ac_includes_default
23828 long longval () { return (long) (sizeof (size_t)); }
23829 unsigned long ulongval () { return (long) (sizeof (size_t)); }
23830 #include <stdio.h>
23831 #include <stdlib.h>
23832 int
23833 main ()
23834 {
23835
23836   FILE *f = fopen ("conftest.val", "w");
23837   if (! f)
23838     exit (1);
23839   if (((long) (sizeof (size_t))) < 0)
23840     {
23841       long i = longval ();
23842       if (i != ((long) (sizeof (size_t))))
23843         exit (1);
23844       fprintf (f, "%ld\n", i);
23845     }
23846   else
23847     {
23848       unsigned long i = ulongval ();
23849       if (i != ((long) (sizeof (size_t))))
23850         exit (1);
23851       fprintf (f, "%lu\n", i);
23852     }
23853   exit (ferror (f) || fclose (f) != 0);
23854
23855   ;
23856   return 0;
23857 }
23858 _ACEOF
23859 rm -f conftest$ac_exeext
23860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23861   (eval $ac_link) 2>&5
23862   ac_status=$?
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23866   (eval $ac_try) 2>&5
23867   ac_status=$?
23868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23869   (exit $ac_status); }; }; then
23870   ac_cv_sizeof_size_t=`cat conftest.val`
23871 else
23872   echo "$as_me: program exited with status $ac_status" >&5
23873 echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23875
23876 ( exit $ac_status )
23877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
23878 See \`config.log' for more details." >&5
23879 echo "$as_me: error: cannot compute sizeof (size_t), 77
23880 See \`config.log' for more details." >&2;}
23881    { (exit 1); exit 1; }; }
23882 fi
23883 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23884 fi
23885 fi
23886 rm -f conftest.val
23887 else
23888   ac_cv_sizeof_size_t=0
23889 fi
23890 fi
23891 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23892 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
23893 cat >>confdefs.h <<_ACEOF
23894 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23895 _ACEOF
23896
23897
23898 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
23899 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
23900 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
23901   echo $ECHO_N "(cached) $ECHO_C" >&6
23902 else
23903   cat >conftest.$ac_ext <<_ACEOF
23904 /* confdefs.h.  */
23905 _ACEOF
23906 cat confdefs.h >>conftest.$ac_ext
23907 cat >>conftest.$ac_ext <<_ACEOF
23908 /* end confdefs.h.  */
23909 $ac_includes_default
23910 int
23911 main ()
23912 {
23913 if ((ptrdiff_t *) 0)
23914   return 0;
23915 if (sizeof (ptrdiff_t))
23916   return 0;
23917   ;
23918   return 0;
23919 }
23920 _ACEOF
23921 rm -f conftest.$ac_objext
23922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23923   (eval $ac_compile) 2>conftest.er1
23924   ac_status=$?
23925   grep -v '^ *+' conftest.er1 >conftest.err
23926   rm -f conftest.er1
23927   cat conftest.err >&5
23928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929   (exit $ac_status); } &&
23930          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932   (eval $ac_try) 2>&5
23933   ac_status=$?
23934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935   (exit $ac_status); }; } &&
23936          { ac_try='test -s conftest.$ac_objext'
23937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23938   (eval $ac_try) 2>&5
23939   ac_status=$?
23940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941   (exit $ac_status); }; }; then
23942   ac_cv_type_ptrdiff_t=yes
23943 else
23944   echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23946
23947 ac_cv_type_ptrdiff_t=no
23948 fi
23949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23950 fi
23951 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
23952 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
23953
23954 echo "$as_me:$LINENO: checking size of ptrdiff_t" >&5
23955 echo $ECHO_N "checking size of ptrdiff_t... $ECHO_C" >&6
23956 if test "${ac_cv_sizeof_ptrdiff_t+set}" = set; then
23957   echo $ECHO_N "(cached) $ECHO_C" >&6
23958 else
23959   if test "$ac_cv_type_ptrdiff_t" = yes; then
23960   # The cast to unsigned long works around a bug in the HP C Compiler
23961   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23962   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23963   # This bug is HP SR number 8606223364.
23964   if test "$cross_compiling" = yes; then
23965   # Depending upon the size, compute the lo and hi bounds.
23966 cat >conftest.$ac_ext <<_ACEOF
23967 /* confdefs.h.  */
23968 _ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h.  */
23972 $ac_includes_default
23973 int
23974 main ()
23975 {
23976 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= 0)];
23977 test_array [0] = 0
23978
23979   ;
23980   return 0;
23981 }
23982 _ACEOF
23983 rm -f conftest.$ac_objext
23984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23985   (eval $ac_compile) 2>conftest.er1
23986   ac_status=$?
23987   grep -v '^ *+' conftest.er1 >conftest.err
23988   rm -f conftest.er1
23989   cat conftest.err >&5
23990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23991   (exit $ac_status); } &&
23992          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
23993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23994   (eval $ac_try) 2>&5
23995   ac_status=$?
23996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997   (exit $ac_status); }; } &&
23998          { ac_try='test -s conftest.$ac_objext'
23999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000   (eval $ac_try) 2>&5
24001   ac_status=$?
24002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003   (exit $ac_status); }; }; then
24004   ac_lo=0 ac_mid=0
24005   while :; do
24006     cat >conftest.$ac_ext <<_ACEOF
24007 /* confdefs.h.  */
24008 _ACEOF
24009 cat confdefs.h >>conftest.$ac_ext
24010 cat >>conftest.$ac_ext <<_ACEOF
24011 /* end confdefs.h.  */
24012 $ac_includes_default
24013 int
24014 main ()
24015 {
24016 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
24017 test_array [0] = 0
24018
24019   ;
24020   return 0;
24021 }
24022 _ACEOF
24023 rm -f conftest.$ac_objext
24024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24025   (eval $ac_compile) 2>conftest.er1
24026   ac_status=$?
24027   grep -v '^ *+' conftest.er1 >conftest.err
24028   rm -f conftest.er1
24029   cat conftest.err >&5
24030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24031   (exit $ac_status); } &&
24032          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24034   (eval $ac_try) 2>&5
24035   ac_status=$?
24036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037   (exit $ac_status); }; } &&
24038          { ac_try='test -s conftest.$ac_objext'
24039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24040   (eval $ac_try) 2>&5
24041   ac_status=$?
24042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043   (exit $ac_status); }; }; then
24044   ac_hi=$ac_mid; break
24045 else
24046   echo "$as_me: failed program was:" >&5
24047 sed 's/^/| /' conftest.$ac_ext >&5
24048
24049 ac_lo=`expr $ac_mid + 1`
24050                     if test $ac_lo -le $ac_mid; then
24051                       ac_lo= ac_hi=
24052                       break
24053                     fi
24054                     ac_mid=`expr 2 '*' $ac_mid + 1`
24055 fi
24056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24057   done
24058 else
24059   echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24061
24062 cat >conftest.$ac_ext <<_ACEOF
24063 /* confdefs.h.  */
24064 _ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h.  */
24068 $ac_includes_default
24069 int
24070 main ()
24071 {
24072 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) < 0)];
24073 test_array [0] = 0
24074
24075   ;
24076   return 0;
24077 }
24078 _ACEOF
24079 rm -f conftest.$ac_objext
24080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24081   (eval $ac_compile) 2>conftest.er1
24082   ac_status=$?
24083   grep -v '^ *+' conftest.er1 >conftest.err
24084   rm -f conftest.er1
24085   cat conftest.err >&5
24086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087   (exit $ac_status); } &&
24088          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090   (eval $ac_try) 2>&5
24091   ac_status=$?
24092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093   (exit $ac_status); }; } &&
24094          { ac_try='test -s conftest.$ac_objext'
24095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24096   (eval $ac_try) 2>&5
24097   ac_status=$?
24098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099   (exit $ac_status); }; }; then
24100   ac_hi=-1 ac_mid=-1
24101   while :; do
24102     cat >conftest.$ac_ext <<_ACEOF
24103 /* confdefs.h.  */
24104 _ACEOF
24105 cat confdefs.h >>conftest.$ac_ext
24106 cat >>conftest.$ac_ext <<_ACEOF
24107 /* end confdefs.h.  */
24108 $ac_includes_default
24109 int
24110 main ()
24111 {
24112 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) >= $ac_mid)];
24113 test_array [0] = 0
24114
24115   ;
24116   return 0;
24117 }
24118 _ACEOF
24119 rm -f conftest.$ac_objext
24120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24121   (eval $ac_compile) 2>conftest.er1
24122   ac_status=$?
24123   grep -v '^ *+' conftest.er1 >conftest.err
24124   rm -f conftest.er1
24125   cat conftest.err >&5
24126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127   (exit $ac_status); } &&
24128          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130   (eval $ac_try) 2>&5
24131   ac_status=$?
24132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133   (exit $ac_status); }; } &&
24134          { ac_try='test -s conftest.$ac_objext'
24135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24136   (eval $ac_try) 2>&5
24137   ac_status=$?
24138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139   (exit $ac_status); }; }; then
24140   ac_lo=$ac_mid; break
24141 else
24142   echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24144
24145 ac_hi=`expr '(' $ac_mid ')' - 1`
24146                        if test $ac_mid -le $ac_hi; then
24147                          ac_lo= ac_hi=
24148                          break
24149                        fi
24150                        ac_mid=`expr 2 '*' $ac_mid`
24151 fi
24152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24153   done
24154 else
24155   echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24157
24158 ac_lo= ac_hi=
24159 fi
24160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24161 fi
24162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24163 # Binary search between lo and hi bounds.
24164 while test "x$ac_lo" != "x$ac_hi"; do
24165   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24166   cat >conftest.$ac_ext <<_ACEOF
24167 /* confdefs.h.  */
24168 _ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h.  */
24172 $ac_includes_default
24173 int
24174 main ()
24175 {
24176 static int test_array [1 - 2 * !(((long) (sizeof (ptrdiff_t))) <= $ac_mid)];
24177 test_array [0] = 0
24178
24179   ;
24180   return 0;
24181 }
24182 _ACEOF
24183 rm -f conftest.$ac_objext
24184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24185   (eval $ac_compile) 2>conftest.er1
24186   ac_status=$?
24187   grep -v '^ *+' conftest.er1 >conftest.err
24188   rm -f conftest.er1
24189   cat conftest.err >&5
24190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191   (exit $ac_status); } &&
24192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194   (eval $ac_try) 2>&5
24195   ac_status=$?
24196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197   (exit $ac_status); }; } &&
24198          { ac_try='test -s conftest.$ac_objext'
24199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24200   (eval $ac_try) 2>&5
24201   ac_status=$?
24202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203   (exit $ac_status); }; }; then
24204   ac_hi=$ac_mid
24205 else
24206   echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24208
24209 ac_lo=`expr '(' $ac_mid ')' + 1`
24210 fi
24211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24212 done
24213 case $ac_lo in
24214 ?*) ac_cv_sizeof_ptrdiff_t=$ac_lo;;
24215 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
24216 See \`config.log' for more details." >&5
24217 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
24218 See \`config.log' for more details." >&2;}
24219    { (exit 1); exit 1; }; } ;;
24220 esac
24221 else
24222   if test "$cross_compiling" = yes; then
24223   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
24224 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
24225    { (exit 1); exit 1; }; }
24226 else
24227   cat >conftest.$ac_ext <<_ACEOF
24228 /* confdefs.h.  */
24229 _ACEOF
24230 cat confdefs.h >>conftest.$ac_ext
24231 cat >>conftest.$ac_ext <<_ACEOF
24232 /* end confdefs.h.  */
24233 $ac_includes_default
24234 long longval () { return (long) (sizeof (ptrdiff_t)); }
24235 unsigned long ulongval () { return (long) (sizeof (ptrdiff_t)); }
24236 #include <stdio.h>
24237 #include <stdlib.h>
24238 int
24239 main ()
24240 {
24241
24242   FILE *f = fopen ("conftest.val", "w");
24243   if (! f)
24244     exit (1);
24245   if (((long) (sizeof (ptrdiff_t))) < 0)
24246     {
24247       long i = longval ();
24248       if (i != ((long) (sizeof (ptrdiff_t))))
24249         exit (1);
24250       fprintf (f, "%ld\n", i);
24251     }
24252   else
24253     {
24254       unsigned long i = ulongval ();
24255       if (i != ((long) (sizeof (ptrdiff_t))))
24256         exit (1);
24257       fprintf (f, "%lu\n", i);
24258     }
24259   exit (ferror (f) || fclose (f) != 0);
24260
24261   ;
24262   return 0;
24263 }
24264 _ACEOF
24265 rm -f conftest$ac_exeext
24266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24267   (eval $ac_link) 2>&5
24268   ac_status=$?
24269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24272   (eval $ac_try) 2>&5
24273   ac_status=$?
24274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275   (exit $ac_status); }; }; then
24276   ac_cv_sizeof_ptrdiff_t=`cat conftest.val`
24277 else
24278   echo "$as_me: program exited with status $ac_status" >&5
24279 echo "$as_me: failed program was:" >&5
24280 sed 's/^/| /' conftest.$ac_ext >&5
24281
24282 ( exit $ac_status )
24283 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ptrdiff_t), 77
24284 See \`config.log' for more details." >&5
24285 echo "$as_me: error: cannot compute sizeof (ptrdiff_t), 77
24286 See \`config.log' for more details." >&2;}
24287    { (exit 1); exit 1; }; }
24288 fi
24289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24290 fi
24291 fi
24292 rm -f conftest.val
24293 else
24294   ac_cv_sizeof_ptrdiff_t=0
24295 fi
24296 fi
24297 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ptrdiff_t" >&5
24298 echo "${ECHO_T}$ac_cv_sizeof_ptrdiff_t" >&6
24299 cat >>confdefs.h <<_ACEOF
24300 #define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
24301 _ACEOF
24302
24303
24304
24305
24306 echo "$as_me:$LINENO: checking for __int32" >&5
24307 echo $ECHO_N "checking for __int32... $ECHO_C" >&6
24308 if test "${ac_cv_type___int32+set}" = set; then
24309   echo $ECHO_N "(cached) $ECHO_C" >&6
24310 else
24311   cat >conftest.$ac_ext <<_ACEOF
24312 /* confdefs.h.  */
24313 _ACEOF
24314 cat confdefs.h >>conftest.$ac_ext
24315 cat >>conftest.$ac_ext <<_ACEOF
24316 /* end confdefs.h.  */
24317 $ac_includes_default
24318 int
24319 main ()
24320 {
24321 if ((__int32 *) 0)
24322   return 0;
24323 if (sizeof (__int32))
24324   return 0;
24325   ;
24326   return 0;
24327 }
24328 _ACEOF
24329 rm -f conftest.$ac_objext
24330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24331   (eval $ac_compile) 2>conftest.er1
24332   ac_status=$?
24333   grep -v '^ *+' conftest.er1 >conftest.err
24334   rm -f conftest.er1
24335   cat conftest.err >&5
24336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337   (exit $ac_status); } &&
24338          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340   (eval $ac_try) 2>&5
24341   ac_status=$?
24342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343   (exit $ac_status); }; } &&
24344          { ac_try='test -s conftest.$ac_objext'
24345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24346   (eval $ac_try) 2>&5
24347   ac_status=$?
24348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349   (exit $ac_status); }; }; then
24350   ac_cv_type___int32=yes
24351 else
24352   echo "$as_me: failed program was:" >&5
24353 sed 's/^/| /' conftest.$ac_ext >&5
24354
24355 ac_cv_type___int32=no
24356 fi
24357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24358 fi
24359 echo "$as_me:$LINENO: result: $ac_cv_type___int32" >&5
24360 echo "${ECHO_T}$ac_cv_type___int32" >&6
24361
24362 echo "$as_me:$LINENO: checking size of __int32" >&5
24363 echo $ECHO_N "checking size of __int32... $ECHO_C" >&6
24364 if test "${ac_cv_sizeof___int32+set}" = set; then
24365   echo $ECHO_N "(cached) $ECHO_C" >&6
24366 else
24367   if test "$ac_cv_type___int32" = yes; then
24368   # The cast to unsigned long works around a bug in the HP C Compiler
24369   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24370   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24371   # This bug is HP SR number 8606223364.
24372   if test "$cross_compiling" = yes; then
24373   # Depending upon the size, compute the lo and hi bounds.
24374 cat >conftest.$ac_ext <<_ACEOF
24375 /* confdefs.h.  */
24376 _ACEOF
24377 cat confdefs.h >>conftest.$ac_ext
24378 cat >>conftest.$ac_ext <<_ACEOF
24379 /* end confdefs.h.  */
24380 $ac_includes_default
24381 int
24382 main ()
24383 {
24384 static int test_array [1 - 2 * !(((long) (sizeof (__int32))) >= 0)];
24385 test_array [0] = 0
24386
24387   ;
24388   return 0;
24389 }
24390 _ACEOF
24391 rm -f conftest.$ac_objext
24392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24393   (eval $ac_compile) 2>conftest.er1
24394   ac_status=$?
24395   grep -v '^ *+' conftest.er1 >conftest.err
24396   rm -f conftest.er1
24397   cat conftest.err >&5
24398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399   (exit $ac_status); } &&
24400          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24402   (eval $ac_try) 2>&5
24403   ac_status=$?
24404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405   (exit $ac_status); }; } &&
24406          { ac_try='test -s conftest.$ac_objext'
24407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24408   (eval $ac_try) 2>&5
24409   ac_status=$?
24410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411   (exit $ac_status); }; }; then
24412   ac_lo=0 ac_mid=0
24413   while :; do
24414     cat >conftest.$ac_ext <<_ACEOF
24415 /* confdefs.h.  */
24416 _ACEOF
24417 cat confdefs.h >>conftest.$ac_ext
24418 cat >>conftest.$ac_ext <<_ACEOF
24419 /* end confdefs.h.  */
24420 $ac_includes_default
24421 int
24422 main ()
24423 {
24424 static int test_array [1 - 2 * !(((long) (sizeof (__int32))) <= $ac_mid)];
24425 test_array [0] = 0
24426
24427   ;
24428   return 0;
24429 }
24430 _ACEOF
24431 rm -f conftest.$ac_objext
24432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24433   (eval $ac_compile) 2>conftest.er1
24434   ac_status=$?
24435   grep -v '^ *+' conftest.er1 >conftest.err
24436   rm -f conftest.er1
24437   cat conftest.err >&5
24438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439   (exit $ac_status); } &&
24440          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24442   (eval $ac_try) 2>&5
24443   ac_status=$?
24444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445   (exit $ac_status); }; } &&
24446          { ac_try='test -s conftest.$ac_objext'
24447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448   (eval $ac_try) 2>&5
24449   ac_status=$?
24450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451   (exit $ac_status); }; }; then
24452   ac_hi=$ac_mid; break
24453 else
24454   echo "$as_me: failed program was:" >&5
24455 sed 's/^/| /' conftest.$ac_ext >&5
24456
24457 ac_lo=`expr $ac_mid + 1`
24458                     if test $ac_lo -le $ac_mid; then
24459                       ac_lo= ac_hi=
24460                       break
24461                     fi
24462                     ac_mid=`expr 2 '*' $ac_mid + 1`
24463 fi
24464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24465   done
24466 else
24467   echo "$as_me: failed program was:" >&5
24468 sed 's/^/| /' conftest.$ac_ext >&5
24469
24470 cat >conftest.$ac_ext <<_ACEOF
24471 /* confdefs.h.  */
24472 _ACEOF
24473 cat confdefs.h >>conftest.$ac_ext
24474 cat >>conftest.$ac_ext <<_ACEOF
24475 /* end confdefs.h.  */
24476 $ac_includes_default
24477 int
24478 main ()
24479 {
24480 static int test_array [1 - 2 * !(((long) (sizeof (__int32))) < 0)];
24481 test_array [0] = 0
24482
24483   ;
24484   return 0;
24485 }
24486 _ACEOF
24487 rm -f conftest.$ac_objext
24488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24489   (eval $ac_compile) 2>conftest.er1
24490   ac_status=$?
24491   grep -v '^ *+' conftest.er1 >conftest.err
24492   rm -f conftest.er1
24493   cat conftest.err >&5
24494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495   (exit $ac_status); } &&
24496          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24498   (eval $ac_try) 2>&5
24499   ac_status=$?
24500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501   (exit $ac_status); }; } &&
24502          { ac_try='test -s conftest.$ac_objext'
24503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24504   (eval $ac_try) 2>&5
24505   ac_status=$?
24506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507   (exit $ac_status); }; }; then
24508   ac_hi=-1 ac_mid=-1
24509   while :; do
24510     cat >conftest.$ac_ext <<_ACEOF
24511 /* confdefs.h.  */
24512 _ACEOF
24513 cat confdefs.h >>conftest.$ac_ext
24514 cat >>conftest.$ac_ext <<_ACEOF
24515 /* end confdefs.h.  */
24516 $ac_includes_default
24517 int
24518 main ()
24519 {
24520 static int test_array [1 - 2 * !(((long) (sizeof (__int32))) >= $ac_mid)];
24521 test_array [0] = 0
24522
24523   ;
24524   return 0;
24525 }
24526 _ACEOF
24527 rm -f conftest.$ac_objext
24528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24529   (eval $ac_compile) 2>conftest.er1
24530   ac_status=$?
24531   grep -v '^ *+' conftest.er1 >conftest.err
24532   rm -f conftest.er1
24533   cat conftest.err >&5
24534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535   (exit $ac_status); } &&
24536          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538   (eval $ac_try) 2>&5
24539   ac_status=$?
24540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541   (exit $ac_status); }; } &&
24542          { ac_try='test -s conftest.$ac_objext'
24543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24544   (eval $ac_try) 2>&5
24545   ac_status=$?
24546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24547   (exit $ac_status); }; }; then
24548   ac_lo=$ac_mid; break
24549 else
24550   echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24552
24553 ac_hi=`expr '(' $ac_mid ')' - 1`
24554                        if test $ac_mid -le $ac_hi; then
24555                          ac_lo= ac_hi=
24556                          break
24557                        fi
24558                        ac_mid=`expr 2 '*' $ac_mid`
24559 fi
24560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24561   done
24562 else
24563   echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24565
24566 ac_lo= ac_hi=
24567 fi
24568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24569 fi
24570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24571 # Binary search between lo and hi bounds.
24572 while test "x$ac_lo" != "x$ac_hi"; do
24573   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24574   cat >conftest.$ac_ext <<_ACEOF
24575 /* confdefs.h.  */
24576 _ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h.  */
24580 $ac_includes_default
24581 int
24582 main ()
24583 {
24584 static int test_array [1 - 2 * !(((long) (sizeof (__int32))) <= $ac_mid)];
24585 test_array [0] = 0
24586
24587   ;
24588   return 0;
24589 }
24590 _ACEOF
24591 rm -f conftest.$ac_objext
24592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24593   (eval $ac_compile) 2>conftest.er1
24594   ac_status=$?
24595   grep -v '^ *+' conftest.er1 >conftest.err
24596   rm -f conftest.er1
24597   cat conftest.err >&5
24598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599   (exit $ac_status); } &&
24600          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24602   (eval $ac_try) 2>&5
24603   ac_status=$?
24604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605   (exit $ac_status); }; } &&
24606          { ac_try='test -s conftest.$ac_objext'
24607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608   (eval $ac_try) 2>&5
24609   ac_status=$?
24610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611   (exit $ac_status); }; }; then
24612   ac_hi=$ac_mid
24613 else
24614   echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24616
24617 ac_lo=`expr '(' $ac_mid ')' + 1`
24618 fi
24619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24620 done
24621 case $ac_lo in
24622 ?*) ac_cv_sizeof___int32=$ac_lo;;
24623 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int32), 77
24624 See \`config.log' for more details." >&5
24625 echo "$as_me: error: cannot compute sizeof (__int32), 77
24626 See \`config.log' for more details." >&2;}
24627    { (exit 1); exit 1; }; } ;;
24628 esac
24629 else
24630   if test "$cross_compiling" = yes; then
24631   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
24632 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
24633    { (exit 1); exit 1; }; }
24634 else
24635   cat >conftest.$ac_ext <<_ACEOF
24636 /* confdefs.h.  */
24637 _ACEOF
24638 cat confdefs.h >>conftest.$ac_ext
24639 cat >>conftest.$ac_ext <<_ACEOF
24640 /* end confdefs.h.  */
24641 $ac_includes_default
24642 long longval () { return (long) (sizeof (__int32)); }
24643 unsigned long ulongval () { return (long) (sizeof (__int32)); }
24644 #include <stdio.h>
24645 #include <stdlib.h>
24646 int
24647 main ()
24648 {
24649
24650   FILE *f = fopen ("conftest.val", "w");
24651   if (! f)
24652     exit (1);
24653   if (((long) (sizeof (__int32))) < 0)
24654     {
24655       long i = longval ();
24656       if (i != ((long) (sizeof (__int32))))
24657         exit (1);
24658       fprintf (f, "%ld\n", i);
24659     }
24660   else
24661     {
24662       unsigned long i = ulongval ();
24663       if (i != ((long) (sizeof (__int32))))
24664         exit (1);
24665       fprintf (f, "%lu\n", i);
24666     }
24667   exit (ferror (f) || fclose (f) != 0);
24668
24669   ;
24670   return 0;
24671 }
24672 _ACEOF
24673 rm -f conftest$ac_exeext
24674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24675   (eval $ac_link) 2>&5
24676   ac_status=$?
24677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24680   (eval $ac_try) 2>&5
24681   ac_status=$?
24682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); }; }; then
24684   ac_cv_sizeof___int32=`cat conftest.val`
24685 else
24686   echo "$as_me: program exited with status $ac_status" >&5
24687 echo "$as_me: failed program was:" >&5
24688 sed 's/^/| /' conftest.$ac_ext >&5
24689
24690 ( exit $ac_status )
24691 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int32), 77
24692 See \`config.log' for more details." >&5
24693 echo "$as_me: error: cannot compute sizeof (__int32), 77
24694 See \`config.log' for more details." >&2;}
24695    { (exit 1); exit 1; }; }
24696 fi
24697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24698 fi
24699 fi
24700 rm -f conftest.val
24701 else
24702   ac_cv_sizeof___int32=0
24703 fi
24704 fi
24705 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int32" >&5
24706 echo "${ECHO_T}$ac_cv_sizeof___int32" >&6
24707 cat >>confdefs.h <<_ACEOF
24708 #define SIZEOF___INT32 $ac_cv_sizeof___int32
24709 _ACEOF
24710
24711
24712 echo "$as_me:$LINENO: checking for intmax_t" >&5
24713 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
24714 if test "${ac_cv_type_intmax_t+set}" = set; then
24715   echo $ECHO_N "(cached) $ECHO_C" >&6
24716 else
24717   cat >conftest.$ac_ext <<_ACEOF
24718 /* confdefs.h.  */
24719 _ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h.  */
24723 $ac_includes_default
24724 int
24725 main ()
24726 {
24727 if ((intmax_t *) 0)
24728   return 0;
24729 if (sizeof (intmax_t))
24730   return 0;
24731   ;
24732   return 0;
24733 }
24734 _ACEOF
24735 rm -f conftest.$ac_objext
24736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24737   (eval $ac_compile) 2>conftest.er1
24738   ac_status=$?
24739   grep -v '^ *+' conftest.er1 >conftest.err
24740   rm -f conftest.er1
24741   cat conftest.err >&5
24742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743   (exit $ac_status); } &&
24744          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24746   (eval $ac_try) 2>&5
24747   ac_status=$?
24748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749   (exit $ac_status); }; } &&
24750          { ac_try='test -s conftest.$ac_objext'
24751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752   (eval $ac_try) 2>&5
24753   ac_status=$?
24754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755   (exit $ac_status); }; }; then
24756   ac_cv_type_intmax_t=yes
24757 else
24758   echo "$as_me: failed program was:" >&5
24759 sed 's/^/| /' conftest.$ac_ext >&5
24760
24761 ac_cv_type_intmax_t=no
24762 fi
24763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24764 fi
24765 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
24766 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
24767
24768 echo "$as_me:$LINENO: checking size of intmax_t" >&5
24769 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
24770 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
24771   echo $ECHO_N "(cached) $ECHO_C" >&6
24772 else
24773   if test "$ac_cv_type_intmax_t" = yes; then
24774   # The cast to unsigned long works around a bug in the HP C Compiler
24775   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24776   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24777   # This bug is HP SR number 8606223364.
24778   if test "$cross_compiling" = yes; then
24779   # Depending upon the size, compute the lo and hi bounds.
24780 cat >conftest.$ac_ext <<_ACEOF
24781 /* confdefs.h.  */
24782 _ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h.  */
24786 $ac_includes_default
24787 int
24788 main ()
24789 {
24790 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
24791 test_array [0] = 0
24792
24793   ;
24794   return 0;
24795 }
24796 _ACEOF
24797 rm -f conftest.$ac_objext
24798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24799   (eval $ac_compile) 2>conftest.er1
24800   ac_status=$?
24801   grep -v '^ *+' conftest.er1 >conftest.err
24802   rm -f conftest.er1
24803   cat conftest.err >&5
24804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805   (exit $ac_status); } &&
24806          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24808   (eval $ac_try) 2>&5
24809   ac_status=$?
24810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811   (exit $ac_status); }; } &&
24812          { ac_try='test -s conftest.$ac_objext'
24813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24814   (eval $ac_try) 2>&5
24815   ac_status=$?
24816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817   (exit $ac_status); }; }; then
24818   ac_lo=0 ac_mid=0
24819   while :; do
24820     cat >conftest.$ac_ext <<_ACEOF
24821 /* confdefs.h.  */
24822 _ACEOF
24823 cat confdefs.h >>conftest.$ac_ext
24824 cat >>conftest.$ac_ext <<_ACEOF
24825 /* end confdefs.h.  */
24826 $ac_includes_default
24827 int
24828 main ()
24829 {
24830 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
24831 test_array [0] = 0
24832
24833   ;
24834   return 0;
24835 }
24836 _ACEOF
24837 rm -f conftest.$ac_objext
24838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24839   (eval $ac_compile) 2>conftest.er1
24840   ac_status=$?
24841   grep -v '^ *+' conftest.er1 >conftest.err
24842   rm -f conftest.er1
24843   cat conftest.err >&5
24844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845   (exit $ac_status); } &&
24846          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848   (eval $ac_try) 2>&5
24849   ac_status=$?
24850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851   (exit $ac_status); }; } &&
24852          { ac_try='test -s conftest.$ac_objext'
24853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24854   (eval $ac_try) 2>&5
24855   ac_status=$?
24856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857   (exit $ac_status); }; }; then
24858   ac_hi=$ac_mid; break
24859 else
24860   echo "$as_me: failed program was:" >&5
24861 sed 's/^/| /' conftest.$ac_ext >&5
24862
24863 ac_lo=`expr $ac_mid + 1`
24864                     if test $ac_lo -le $ac_mid; then
24865                       ac_lo= ac_hi=
24866                       break
24867                     fi
24868                     ac_mid=`expr 2 '*' $ac_mid + 1`
24869 fi
24870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24871   done
24872 else
24873   echo "$as_me: failed program was:" >&5
24874 sed 's/^/| /' conftest.$ac_ext >&5
24875
24876 cat >conftest.$ac_ext <<_ACEOF
24877 /* confdefs.h.  */
24878 _ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h.  */
24882 $ac_includes_default
24883 int
24884 main ()
24885 {
24886 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
24887 test_array [0] = 0
24888
24889   ;
24890   return 0;
24891 }
24892 _ACEOF
24893 rm -f conftest.$ac_objext
24894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24895   (eval $ac_compile) 2>conftest.er1
24896   ac_status=$?
24897   grep -v '^ *+' conftest.er1 >conftest.err
24898   rm -f conftest.er1
24899   cat conftest.err >&5
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); } &&
24902          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904   (eval $ac_try) 2>&5
24905   ac_status=$?
24906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907   (exit $ac_status); }; } &&
24908          { ac_try='test -s conftest.$ac_objext'
24909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910   (eval $ac_try) 2>&5
24911   ac_status=$?
24912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913   (exit $ac_status); }; }; then
24914   ac_hi=-1 ac_mid=-1
24915   while :; do
24916     cat >conftest.$ac_ext <<_ACEOF
24917 /* confdefs.h.  */
24918 _ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h.  */
24922 $ac_includes_default
24923 int
24924 main ()
24925 {
24926 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
24927 test_array [0] = 0
24928
24929   ;
24930   return 0;
24931 }
24932 _ACEOF
24933 rm -f conftest.$ac_objext
24934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24935   (eval $ac_compile) 2>conftest.er1
24936   ac_status=$?
24937   grep -v '^ *+' conftest.er1 >conftest.err
24938   rm -f conftest.er1
24939   cat conftest.err >&5
24940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941   (exit $ac_status); } &&
24942          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
24943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944   (eval $ac_try) 2>&5
24945   ac_status=$?
24946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947   (exit $ac_status); }; } &&
24948          { ac_try='test -s conftest.$ac_objext'
24949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950   (eval $ac_try) 2>&5
24951   ac_status=$?
24952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953   (exit $ac_status); }; }; then
24954   ac_lo=$ac_mid; break
24955 else
24956   echo "$as_me: failed program was:" >&5
24957 sed 's/^/| /' conftest.$ac_ext >&5
24958
24959 ac_hi=`expr '(' $ac_mid ')' - 1`
24960                        if test $ac_mid -le $ac_hi; then
24961                          ac_lo= ac_hi=
24962                          break
24963                        fi
24964                        ac_mid=`expr 2 '*' $ac_mid`
24965 fi
24966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24967   done
24968 else
24969   echo "$as_me: failed program was:" >&5
24970 sed 's/^/| /' conftest.$ac_ext >&5
24971
24972 ac_lo= ac_hi=
24973 fi
24974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24975 fi
24976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24977 # Binary search between lo and hi bounds.
24978 while test "x$ac_lo" != "x$ac_hi"; do
24979   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24980   cat >conftest.$ac_ext <<_ACEOF
24981 /* confdefs.h.  */
24982 _ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h.  */
24986 $ac_includes_default
24987 int
24988 main ()
24989 {
24990 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
24991 test_array [0] = 0
24992
24993   ;
24994   return 0;
24995 }
24996 _ACEOF
24997 rm -f conftest.$ac_objext
24998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24999   (eval $ac_compile) 2>conftest.er1
25000   ac_status=$?
25001   grep -v '^ *+' conftest.er1 >conftest.err
25002   rm -f conftest.er1
25003   cat conftest.err >&5
25004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005   (exit $ac_status); } &&
25006          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25008   (eval $ac_try) 2>&5
25009   ac_status=$?
25010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011   (exit $ac_status); }; } &&
25012          { ac_try='test -s conftest.$ac_objext'
25013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014   (eval $ac_try) 2>&5
25015   ac_status=$?
25016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017   (exit $ac_status); }; }; then
25018   ac_hi=$ac_mid
25019 else
25020   echo "$as_me: failed program was:" >&5
25021 sed 's/^/| /' conftest.$ac_ext >&5
25022
25023 ac_lo=`expr '(' $ac_mid ')' + 1`
25024 fi
25025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25026 done
25027 case $ac_lo in
25028 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
25029 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
25030 See \`config.log' for more details." >&5
25031 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
25032 See \`config.log' for more details." >&2;}
25033    { (exit 1); exit 1; }; } ;;
25034 esac
25035 else
25036   if test "$cross_compiling" = yes; then
25037   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25038 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25039    { (exit 1); exit 1; }; }
25040 else
25041   cat >conftest.$ac_ext <<_ACEOF
25042 /* confdefs.h.  */
25043 _ACEOF
25044 cat confdefs.h >>conftest.$ac_ext
25045 cat >>conftest.$ac_ext <<_ACEOF
25046 /* end confdefs.h.  */
25047 $ac_includes_default
25048 long longval () { return (long) (sizeof (intmax_t)); }
25049 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
25050 #include <stdio.h>
25051 #include <stdlib.h>
25052 int
25053 main ()
25054 {
25055
25056   FILE *f = fopen ("conftest.val", "w");
25057   if (! f)
25058     exit (1);
25059   if (((long) (sizeof (intmax_t))) < 0)
25060     {
25061       long i = longval ();
25062       if (i != ((long) (sizeof (intmax_t))))
25063         exit (1);
25064       fprintf (f, "%ld\n", i);
25065     }
25066   else
25067     {
25068       unsigned long i = ulongval ();
25069       if (i != ((long) (sizeof (intmax_t))))
25070         exit (1);
25071       fprintf (f, "%lu\n", i);
25072     }
25073   exit (ferror (f) || fclose (f) != 0);
25074
25075   ;
25076   return 0;
25077 }
25078 _ACEOF
25079 rm -f conftest$ac_exeext
25080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25081   (eval $ac_link) 2>&5
25082   ac_status=$?
25083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25086   (eval $ac_try) 2>&5
25087   ac_status=$?
25088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089   (exit $ac_status); }; }; then
25090   ac_cv_sizeof_intmax_t=`cat conftest.val`
25091 else
25092   echo "$as_me: program exited with status $ac_status" >&5
25093 echo "$as_me: failed program was:" >&5
25094 sed 's/^/| /' conftest.$ac_ext >&5
25095
25096 ( exit $ac_status )
25097 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
25098 See \`config.log' for more details." >&5
25099 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
25100 See \`config.log' for more details." >&2;}
25101    { (exit 1); exit 1; }; }
25102 fi
25103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25104 fi
25105 fi
25106 rm -f conftest.val
25107 else
25108   ac_cv_sizeof_intmax_t=0
25109 fi
25110 fi
25111 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
25112 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
25113 cat >>confdefs.h <<_ACEOF
25114 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
25115 _ACEOF
25116
25117
25118 echo "$as_me:$LINENO: checking for uintmax_t" >&5
25119 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
25120 if test "${ac_cv_type_uintmax_t+set}" = set; then
25121   echo $ECHO_N "(cached) $ECHO_C" >&6
25122 else
25123   cat >conftest.$ac_ext <<_ACEOF
25124 /* confdefs.h.  */
25125 _ACEOF
25126 cat confdefs.h >>conftest.$ac_ext
25127 cat >>conftest.$ac_ext <<_ACEOF
25128 /* end confdefs.h.  */
25129 $ac_includes_default
25130 int
25131 main ()
25132 {
25133 if ((uintmax_t *) 0)
25134   return 0;
25135 if (sizeof (uintmax_t))
25136   return 0;
25137   ;
25138   return 0;
25139 }
25140 _ACEOF
25141 rm -f conftest.$ac_objext
25142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25143   (eval $ac_compile) 2>conftest.er1
25144   ac_status=$?
25145   grep -v '^ *+' conftest.er1 >conftest.err
25146   rm -f conftest.er1
25147   cat conftest.err >&5
25148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149   (exit $ac_status); } &&
25150          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25152   (eval $ac_try) 2>&5
25153   ac_status=$?
25154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155   (exit $ac_status); }; } &&
25156          { ac_try='test -s conftest.$ac_objext'
25157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25158   (eval $ac_try) 2>&5
25159   ac_status=$?
25160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161   (exit $ac_status); }; }; then
25162   ac_cv_type_uintmax_t=yes
25163 else
25164   echo "$as_me: failed program was:" >&5
25165 sed 's/^/| /' conftest.$ac_ext >&5
25166
25167 ac_cv_type_uintmax_t=no
25168 fi
25169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25170 fi
25171 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
25172 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
25173
25174 echo "$as_me:$LINENO: checking size of uintmax_t" >&5
25175 echo $ECHO_N "checking size of uintmax_t... $ECHO_C" >&6
25176 if test "${ac_cv_sizeof_uintmax_t+set}" = set; then
25177   echo $ECHO_N "(cached) $ECHO_C" >&6
25178 else
25179   if test "$ac_cv_type_uintmax_t" = yes; then
25180   # The cast to unsigned long works around a bug in the HP C Compiler
25181   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25182   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25183   # This bug is HP SR number 8606223364.
25184   if test "$cross_compiling" = yes; then
25185   # Depending upon the size, compute the lo and hi bounds.
25186 cat >conftest.$ac_ext <<_ACEOF
25187 /* confdefs.h.  */
25188 _ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h.  */
25192 $ac_includes_default
25193 int
25194 main ()
25195 {
25196 static int test_array [1 - 2 * !(((long) (sizeof (uintmax_t))) >= 0)];
25197 test_array [0] = 0
25198
25199   ;
25200   return 0;
25201 }
25202 _ACEOF
25203 rm -f conftest.$ac_objext
25204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25205   (eval $ac_compile) 2>conftest.er1
25206   ac_status=$?
25207   grep -v '^ *+' conftest.er1 >conftest.err
25208   rm -f conftest.er1
25209   cat conftest.err >&5
25210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25211   (exit $ac_status); } &&
25212          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25214   (eval $ac_try) 2>&5
25215   ac_status=$?
25216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217   (exit $ac_status); }; } &&
25218          { ac_try='test -s conftest.$ac_objext'
25219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25220   (eval $ac_try) 2>&5
25221   ac_status=$?
25222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223   (exit $ac_status); }; }; then
25224   ac_lo=0 ac_mid=0
25225   while :; do
25226     cat >conftest.$ac_ext <<_ACEOF
25227 /* confdefs.h.  */
25228 _ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h.  */
25232 $ac_includes_default
25233 int
25234 main ()
25235 {
25236 static int test_array [1 - 2 * !(((long) (sizeof (uintmax_t))) <= $ac_mid)];
25237 test_array [0] = 0
25238
25239   ;
25240   return 0;
25241 }
25242 _ACEOF
25243 rm -f conftest.$ac_objext
25244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25245   (eval $ac_compile) 2>conftest.er1
25246   ac_status=$?
25247   grep -v '^ *+' conftest.er1 >conftest.err
25248   rm -f conftest.er1
25249   cat conftest.err >&5
25250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); } &&
25252          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25254   (eval $ac_try) 2>&5
25255   ac_status=$?
25256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257   (exit $ac_status); }; } &&
25258          { ac_try='test -s conftest.$ac_objext'
25259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25260   (eval $ac_try) 2>&5
25261   ac_status=$?
25262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263   (exit $ac_status); }; }; then
25264   ac_hi=$ac_mid; break
25265 else
25266   echo "$as_me: failed program was:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25268
25269 ac_lo=`expr $ac_mid + 1`
25270                     if test $ac_lo -le $ac_mid; then
25271                       ac_lo= ac_hi=
25272                       break
25273                     fi
25274                     ac_mid=`expr 2 '*' $ac_mid + 1`
25275 fi
25276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25277   done
25278 else
25279   echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25281
25282 cat >conftest.$ac_ext <<_ACEOF
25283 /* confdefs.h.  */
25284 _ACEOF
25285 cat confdefs.h >>conftest.$ac_ext
25286 cat >>conftest.$ac_ext <<_ACEOF
25287 /* end confdefs.h.  */
25288 $ac_includes_default
25289 int
25290 main ()
25291 {
25292 static int test_array [1 - 2 * !(((long) (sizeof (uintmax_t))) < 0)];
25293 test_array [0] = 0
25294
25295   ;
25296   return 0;
25297 }
25298 _ACEOF
25299 rm -f conftest.$ac_objext
25300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25301   (eval $ac_compile) 2>conftest.er1
25302   ac_status=$?
25303   grep -v '^ *+' conftest.er1 >conftest.err
25304   rm -f conftest.er1
25305   cat conftest.err >&5
25306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25307   (exit $ac_status); } &&
25308          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25310   (eval $ac_try) 2>&5
25311   ac_status=$?
25312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313   (exit $ac_status); }; } &&
25314          { ac_try='test -s conftest.$ac_objext'
25315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25316   (eval $ac_try) 2>&5
25317   ac_status=$?
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); }; }; then
25320   ac_hi=-1 ac_mid=-1
25321   while :; do
25322     cat >conftest.$ac_ext <<_ACEOF
25323 /* confdefs.h.  */
25324 _ACEOF
25325 cat confdefs.h >>conftest.$ac_ext
25326 cat >>conftest.$ac_ext <<_ACEOF
25327 /* end confdefs.h.  */
25328 $ac_includes_default
25329 int
25330 main ()
25331 {
25332 static int test_array [1 - 2 * !(((long) (sizeof (uintmax_t))) >= $ac_mid)];
25333 test_array [0] = 0
25334
25335   ;
25336   return 0;
25337 }
25338 _ACEOF
25339 rm -f conftest.$ac_objext
25340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25341   (eval $ac_compile) 2>conftest.er1
25342   ac_status=$?
25343   grep -v '^ *+' conftest.er1 >conftest.err
25344   rm -f conftest.er1
25345   cat conftest.err >&5
25346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25347   (exit $ac_status); } &&
25348          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25350   (eval $ac_try) 2>&5
25351   ac_status=$?
25352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353   (exit $ac_status); }; } &&
25354          { ac_try='test -s conftest.$ac_objext'
25355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356   (eval $ac_try) 2>&5
25357   ac_status=$?
25358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359   (exit $ac_status); }; }; then
25360   ac_lo=$ac_mid; break
25361 else
25362   echo "$as_me: failed program was:" >&5
25363 sed 's/^/| /' conftest.$ac_ext >&5
25364
25365 ac_hi=`expr '(' $ac_mid ')' - 1`
25366                        if test $ac_mid -le $ac_hi; then
25367                          ac_lo= ac_hi=
25368                          break
25369                        fi
25370                        ac_mid=`expr 2 '*' $ac_mid`
25371 fi
25372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25373   done
25374 else
25375   echo "$as_me: failed program was:" >&5
25376 sed 's/^/| /' conftest.$ac_ext >&5
25377
25378 ac_lo= ac_hi=
25379 fi
25380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25381 fi
25382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25383 # Binary search between lo and hi bounds.
25384 while test "x$ac_lo" != "x$ac_hi"; do
25385   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25386   cat >conftest.$ac_ext <<_ACEOF
25387 /* confdefs.h.  */
25388 _ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h.  */
25392 $ac_includes_default
25393 int
25394 main ()
25395 {
25396 static int test_array [1 - 2 * !(((long) (sizeof (uintmax_t))) <= $ac_mid)];
25397 test_array [0] = 0
25398
25399   ;
25400   return 0;
25401 }
25402 _ACEOF
25403 rm -f conftest.$ac_objext
25404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25405   (eval $ac_compile) 2>conftest.er1
25406   ac_status=$?
25407   grep -v '^ *+' conftest.er1 >conftest.err
25408   rm -f conftest.er1
25409   cat conftest.err >&5
25410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411   (exit $ac_status); } &&
25412          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414   (eval $ac_try) 2>&5
25415   ac_status=$?
25416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417   (exit $ac_status); }; } &&
25418          { ac_try='test -s conftest.$ac_objext'
25419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25420   (eval $ac_try) 2>&5
25421   ac_status=$?
25422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423   (exit $ac_status); }; }; then
25424   ac_hi=$ac_mid
25425 else
25426   echo "$as_me: failed program was:" >&5
25427 sed 's/^/| /' conftest.$ac_ext >&5
25428
25429 ac_lo=`expr '(' $ac_mid ')' + 1`
25430 fi
25431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25432 done
25433 case $ac_lo in
25434 ?*) ac_cv_sizeof_uintmax_t=$ac_lo;;
25435 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintmax_t), 77
25436 See \`config.log' for more details." >&5
25437 echo "$as_me: error: cannot compute sizeof (uintmax_t), 77
25438 See \`config.log' for more details." >&2;}
25439    { (exit 1); exit 1; }; } ;;
25440 esac
25441 else
25442   if test "$cross_compiling" = yes; then
25443   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25444 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25445    { (exit 1); exit 1; }; }
25446 else
25447   cat >conftest.$ac_ext <<_ACEOF
25448 /* confdefs.h.  */
25449 _ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h.  */
25453 $ac_includes_default
25454 long longval () { return (long) (sizeof (uintmax_t)); }
25455 unsigned long ulongval () { return (long) (sizeof (uintmax_t)); }
25456 #include <stdio.h>
25457 #include <stdlib.h>
25458 int
25459 main ()
25460 {
25461
25462   FILE *f = fopen ("conftest.val", "w");
25463   if (! f)
25464     exit (1);
25465   if (((long) (sizeof (uintmax_t))) < 0)
25466     {
25467       long i = longval ();
25468       if (i != ((long) (sizeof (uintmax_t))))
25469         exit (1);
25470       fprintf (f, "%ld\n", i);
25471     }
25472   else
25473     {
25474       unsigned long i = ulongval ();
25475       if (i != ((long) (sizeof (uintmax_t))))
25476         exit (1);
25477       fprintf (f, "%lu\n", i);
25478     }
25479   exit (ferror (f) || fclose (f) != 0);
25480
25481   ;
25482   return 0;
25483 }
25484 _ACEOF
25485 rm -f conftest$ac_exeext
25486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25487   (eval $ac_link) 2>&5
25488   ac_status=$?
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492   (eval $ac_try) 2>&5
25493   ac_status=$?
25494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495   (exit $ac_status); }; }; then
25496   ac_cv_sizeof_uintmax_t=`cat conftest.val`
25497 else
25498   echo "$as_me: program exited with status $ac_status" >&5
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25501
25502 ( exit $ac_status )
25503 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintmax_t), 77
25504 See \`config.log' for more details." >&5
25505 echo "$as_me: error: cannot compute sizeof (uintmax_t), 77
25506 See \`config.log' for more details." >&2;}
25507    { (exit 1); exit 1; }; }
25508 fi
25509 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25510 fi
25511 fi
25512 rm -f conftest.val
25513 else
25514   ac_cv_sizeof_uintmax_t=0
25515 fi
25516 fi
25517 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintmax_t" >&5
25518 echo "${ECHO_T}$ac_cv_sizeof_uintmax_t" >&6
25519 cat >>confdefs.h <<_ACEOF
25520 #define SIZEOF_UINTMAX_T $ac_cv_sizeof_uintmax_t
25521 _ACEOF
25522
25523
25524 echo "$as_me:$LINENO: checking for intptr_t" >&5
25525 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
25526 if test "${ac_cv_type_intptr_t+set}" = set; then
25527   echo $ECHO_N "(cached) $ECHO_C" >&6
25528 else
25529   cat >conftest.$ac_ext <<_ACEOF
25530 /* confdefs.h.  */
25531 _ACEOF
25532 cat confdefs.h >>conftest.$ac_ext
25533 cat >>conftest.$ac_ext <<_ACEOF
25534 /* end confdefs.h.  */
25535 $ac_includes_default
25536 int
25537 main ()
25538 {
25539 if ((intptr_t *) 0)
25540   return 0;
25541 if (sizeof (intptr_t))
25542   return 0;
25543   ;
25544   return 0;
25545 }
25546 _ACEOF
25547 rm -f conftest.$ac_objext
25548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25549   (eval $ac_compile) 2>conftest.er1
25550   ac_status=$?
25551   grep -v '^ *+' conftest.er1 >conftest.err
25552   rm -f conftest.er1
25553   cat conftest.err >&5
25554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555   (exit $ac_status); } &&
25556          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25558   (eval $ac_try) 2>&5
25559   ac_status=$?
25560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561   (exit $ac_status); }; } &&
25562          { ac_try='test -s conftest.$ac_objext'
25563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25564   (eval $ac_try) 2>&5
25565   ac_status=$?
25566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567   (exit $ac_status); }; }; then
25568   ac_cv_type_intptr_t=yes
25569 else
25570   echo "$as_me: failed program was:" >&5
25571 sed 's/^/| /' conftest.$ac_ext >&5
25572
25573 ac_cv_type_intptr_t=no
25574 fi
25575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25576 fi
25577 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
25578 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
25579
25580 echo "$as_me:$LINENO: checking size of intptr_t" >&5
25581 echo $ECHO_N "checking size of intptr_t... $ECHO_C" >&6
25582 if test "${ac_cv_sizeof_intptr_t+set}" = set; then
25583   echo $ECHO_N "(cached) $ECHO_C" >&6
25584 else
25585   if test "$ac_cv_type_intptr_t" = yes; then
25586   # The cast to unsigned long works around a bug in the HP C Compiler
25587   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25588   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25589   # This bug is HP SR number 8606223364.
25590   if test "$cross_compiling" = yes; then
25591   # Depending upon the size, compute the lo and hi bounds.
25592 cat >conftest.$ac_ext <<_ACEOF
25593 /* confdefs.h.  */
25594 _ACEOF
25595 cat confdefs.h >>conftest.$ac_ext
25596 cat >>conftest.$ac_ext <<_ACEOF
25597 /* end confdefs.h.  */
25598 $ac_includes_default
25599 int
25600 main ()
25601 {
25602 static int test_array [1 - 2 * !(((long) (sizeof (intptr_t))) >= 0)];
25603 test_array [0] = 0
25604
25605   ;
25606   return 0;
25607 }
25608 _ACEOF
25609 rm -f conftest.$ac_objext
25610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25611   (eval $ac_compile) 2>conftest.er1
25612   ac_status=$?
25613   grep -v '^ *+' conftest.er1 >conftest.err
25614   rm -f conftest.er1
25615   cat conftest.err >&5
25616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617   (exit $ac_status); } &&
25618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25620   (eval $ac_try) 2>&5
25621   ac_status=$?
25622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623   (exit $ac_status); }; } &&
25624          { ac_try='test -s conftest.$ac_objext'
25625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25626   (eval $ac_try) 2>&5
25627   ac_status=$?
25628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629   (exit $ac_status); }; }; then
25630   ac_lo=0 ac_mid=0
25631   while :; do
25632     cat >conftest.$ac_ext <<_ACEOF
25633 /* confdefs.h.  */
25634 _ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h.  */
25638 $ac_includes_default
25639 int
25640 main ()
25641 {
25642 static int test_array [1 - 2 * !(((long) (sizeof (intptr_t))) <= $ac_mid)];
25643 test_array [0] = 0
25644
25645   ;
25646   return 0;
25647 }
25648 _ACEOF
25649 rm -f conftest.$ac_objext
25650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25651   (eval $ac_compile) 2>conftest.er1
25652   ac_status=$?
25653   grep -v '^ *+' conftest.er1 >conftest.err
25654   rm -f conftest.er1
25655   cat conftest.err >&5
25656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657   (exit $ac_status); } &&
25658          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25660   (eval $ac_try) 2>&5
25661   ac_status=$?
25662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663   (exit $ac_status); }; } &&
25664          { ac_try='test -s conftest.$ac_objext'
25665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666   (eval $ac_try) 2>&5
25667   ac_status=$?
25668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669   (exit $ac_status); }; }; then
25670   ac_hi=$ac_mid; break
25671 else
25672   echo "$as_me: failed program was:" >&5
25673 sed 's/^/| /' conftest.$ac_ext >&5
25674
25675 ac_lo=`expr $ac_mid + 1`
25676                     if test $ac_lo -le $ac_mid; then
25677                       ac_lo= ac_hi=
25678                       break
25679                     fi
25680                     ac_mid=`expr 2 '*' $ac_mid + 1`
25681 fi
25682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25683   done
25684 else
25685   echo "$as_me: failed program was:" >&5
25686 sed 's/^/| /' conftest.$ac_ext >&5
25687
25688 cat >conftest.$ac_ext <<_ACEOF
25689 /* confdefs.h.  */
25690 _ACEOF
25691 cat confdefs.h >>conftest.$ac_ext
25692 cat >>conftest.$ac_ext <<_ACEOF
25693 /* end confdefs.h.  */
25694 $ac_includes_default
25695 int
25696 main ()
25697 {
25698 static int test_array [1 - 2 * !(((long) (sizeof (intptr_t))) < 0)];
25699 test_array [0] = 0
25700
25701   ;
25702   return 0;
25703 }
25704 _ACEOF
25705 rm -f conftest.$ac_objext
25706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25707   (eval $ac_compile) 2>conftest.er1
25708   ac_status=$?
25709   grep -v '^ *+' conftest.er1 >conftest.err
25710   rm -f conftest.er1
25711   cat conftest.err >&5
25712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713   (exit $ac_status); } &&
25714          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25716   (eval $ac_try) 2>&5
25717   ac_status=$?
25718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719   (exit $ac_status); }; } &&
25720          { ac_try='test -s conftest.$ac_objext'
25721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722   (eval $ac_try) 2>&5
25723   ac_status=$?
25724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725   (exit $ac_status); }; }; then
25726   ac_hi=-1 ac_mid=-1
25727   while :; do
25728     cat >conftest.$ac_ext <<_ACEOF
25729 /* confdefs.h.  */
25730 _ACEOF
25731 cat confdefs.h >>conftest.$ac_ext
25732 cat >>conftest.$ac_ext <<_ACEOF
25733 /* end confdefs.h.  */
25734 $ac_includes_default
25735 int
25736 main ()
25737 {
25738 static int test_array [1 - 2 * !(((long) (sizeof (intptr_t))) >= $ac_mid)];
25739 test_array [0] = 0
25740
25741   ;
25742   return 0;
25743 }
25744 _ACEOF
25745 rm -f conftest.$ac_objext
25746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25747   (eval $ac_compile) 2>conftest.er1
25748   ac_status=$?
25749   grep -v '^ *+' conftest.er1 >conftest.err
25750   rm -f conftest.er1
25751   cat conftest.err >&5
25752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753   (exit $ac_status); } &&
25754          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25756   (eval $ac_try) 2>&5
25757   ac_status=$?
25758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759   (exit $ac_status); }; } &&
25760          { ac_try='test -s conftest.$ac_objext'
25761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762   (eval $ac_try) 2>&5
25763   ac_status=$?
25764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765   (exit $ac_status); }; }; then
25766   ac_lo=$ac_mid; break
25767 else
25768   echo "$as_me: failed program was:" >&5
25769 sed 's/^/| /' conftest.$ac_ext >&5
25770
25771 ac_hi=`expr '(' $ac_mid ')' - 1`
25772                        if test $ac_mid -le $ac_hi; then
25773                          ac_lo= ac_hi=
25774                          break
25775                        fi
25776                        ac_mid=`expr 2 '*' $ac_mid`
25777 fi
25778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25779   done
25780 else
25781   echo "$as_me: failed program was:" >&5
25782 sed 's/^/| /' conftest.$ac_ext >&5
25783
25784 ac_lo= ac_hi=
25785 fi
25786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25787 fi
25788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25789 # Binary search between lo and hi bounds.
25790 while test "x$ac_lo" != "x$ac_hi"; do
25791   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25792   cat >conftest.$ac_ext <<_ACEOF
25793 /* confdefs.h.  */
25794 _ACEOF
25795 cat confdefs.h >>conftest.$ac_ext
25796 cat >>conftest.$ac_ext <<_ACEOF
25797 /* end confdefs.h.  */
25798 $ac_includes_default
25799 int
25800 main ()
25801 {
25802 static int test_array [1 - 2 * !(((long) (sizeof (intptr_t))) <= $ac_mid)];
25803 test_array [0] = 0
25804
25805   ;
25806   return 0;
25807 }
25808 _ACEOF
25809 rm -f conftest.$ac_objext
25810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25811   (eval $ac_compile) 2>conftest.er1
25812   ac_status=$?
25813   grep -v '^ *+' conftest.er1 >conftest.err
25814   rm -f conftest.er1
25815   cat conftest.err >&5
25816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817   (exit $ac_status); } &&
25818          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820   (eval $ac_try) 2>&5
25821   ac_status=$?
25822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823   (exit $ac_status); }; } &&
25824          { ac_try='test -s conftest.$ac_objext'
25825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826   (eval $ac_try) 2>&5
25827   ac_status=$?
25828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829   (exit $ac_status); }; }; then
25830   ac_hi=$ac_mid
25831 else
25832   echo "$as_me: failed program was:" >&5
25833 sed 's/^/| /' conftest.$ac_ext >&5
25834
25835 ac_lo=`expr '(' $ac_mid ')' + 1`
25836 fi
25837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25838 done
25839 case $ac_lo in
25840 ?*) ac_cv_sizeof_intptr_t=$ac_lo;;
25841 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intptr_t), 77
25842 See \`config.log' for more details." >&5
25843 echo "$as_me: error: cannot compute sizeof (intptr_t), 77
25844 See \`config.log' for more details." >&2;}
25845    { (exit 1); exit 1; }; } ;;
25846 esac
25847 else
25848   if test "$cross_compiling" = yes; then
25849   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
25850 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
25851    { (exit 1); exit 1; }; }
25852 else
25853   cat >conftest.$ac_ext <<_ACEOF
25854 /* confdefs.h.  */
25855 _ACEOF
25856 cat confdefs.h >>conftest.$ac_ext
25857 cat >>conftest.$ac_ext <<_ACEOF
25858 /* end confdefs.h.  */
25859 $ac_includes_default
25860 long longval () { return (long) (sizeof (intptr_t)); }
25861 unsigned long ulongval () { return (long) (sizeof (intptr_t)); }
25862 #include <stdio.h>
25863 #include <stdlib.h>
25864 int
25865 main ()
25866 {
25867
25868   FILE *f = fopen ("conftest.val", "w");
25869   if (! f)
25870     exit (1);
25871   if (((long) (sizeof (intptr_t))) < 0)
25872     {
25873       long i = longval ();
25874       if (i != ((long) (sizeof (intptr_t))))
25875         exit (1);
25876       fprintf (f, "%ld\n", i);
25877     }
25878   else
25879     {
25880       unsigned long i = ulongval ();
25881       if (i != ((long) (sizeof (intptr_t))))
25882         exit (1);
25883       fprintf (f, "%lu\n", i);
25884     }
25885   exit (ferror (f) || fclose (f) != 0);
25886
25887   ;
25888   return 0;
25889 }
25890 _ACEOF
25891 rm -f conftest$ac_exeext
25892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25893   (eval $ac_link) 2>&5
25894   ac_status=$?
25895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898   (eval $ac_try) 2>&5
25899   ac_status=$?
25900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); }; }; then
25902   ac_cv_sizeof_intptr_t=`cat conftest.val`
25903 else
25904   echo "$as_me: program exited with status $ac_status" >&5
25905 echo "$as_me: failed program was:" >&5
25906 sed 's/^/| /' conftest.$ac_ext >&5
25907
25908 ( exit $ac_status )
25909 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intptr_t), 77
25910 See \`config.log' for more details." >&5
25911 echo "$as_me: error: cannot compute sizeof (intptr_t), 77
25912 See \`config.log' for more details." >&2;}
25913    { (exit 1); exit 1; }; }
25914 fi
25915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25916 fi
25917 fi
25918 rm -f conftest.val
25919 else
25920   ac_cv_sizeof_intptr_t=0
25921 fi
25922 fi
25923 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intptr_t" >&5
25924 echo "${ECHO_T}$ac_cv_sizeof_intptr_t" >&6
25925 cat >>confdefs.h <<_ACEOF
25926 #define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t
25927 _ACEOF
25928
25929
25930 echo "$as_me:$LINENO: checking for uintptr_t" >&5
25931 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
25932 if test "${ac_cv_type_uintptr_t+set}" = set; then
25933   echo $ECHO_N "(cached) $ECHO_C" >&6
25934 else
25935   cat >conftest.$ac_ext <<_ACEOF
25936 /* confdefs.h.  */
25937 _ACEOF
25938 cat confdefs.h >>conftest.$ac_ext
25939 cat >>conftest.$ac_ext <<_ACEOF
25940 /* end confdefs.h.  */
25941 $ac_includes_default
25942 int
25943 main ()
25944 {
25945 if ((uintptr_t *) 0)
25946   return 0;
25947 if (sizeof (uintptr_t))
25948   return 0;
25949   ;
25950   return 0;
25951 }
25952 _ACEOF
25953 rm -f conftest.$ac_objext
25954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25955   (eval $ac_compile) 2>conftest.er1
25956   ac_status=$?
25957   grep -v '^ *+' conftest.er1 >conftest.err
25958   rm -f conftest.er1
25959   cat conftest.err >&5
25960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961   (exit $ac_status); } &&
25962          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
25963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964   (eval $ac_try) 2>&5
25965   ac_status=$?
25966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967   (exit $ac_status); }; } &&
25968          { ac_try='test -s conftest.$ac_objext'
25969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970   (eval $ac_try) 2>&5
25971   ac_status=$?
25972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973   (exit $ac_status); }; }; then
25974   ac_cv_type_uintptr_t=yes
25975 else
25976   echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.$ac_ext >&5
25978
25979 ac_cv_type_uintptr_t=no
25980 fi
25981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25982 fi
25983 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
25984 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
25985
25986 echo "$as_me:$LINENO: checking size of uintptr_t" >&5
25987 echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6
25988 if test "${ac_cv_sizeof_uintptr_t+set}" = set; then
25989   echo $ECHO_N "(cached) $ECHO_C" >&6
25990 else
25991   if test "$ac_cv_type_uintptr_t" = yes; then
25992   # The cast to unsigned long works around a bug in the HP C Compiler
25993   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25994   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25995   # This bug is HP SR number 8606223364.
25996   if test "$cross_compiling" = yes; then
25997   # Depending upon the size, compute the lo and hi bounds.
25998 cat >conftest.$ac_ext <<_ACEOF
25999 /* confdefs.h.  */
26000 _ACEOF
26001 cat confdefs.h >>conftest.$ac_ext
26002 cat >>conftest.$ac_ext <<_ACEOF
26003 /* end confdefs.h.  */
26004 $ac_includes_default
26005 int
26006 main ()
26007 {
26008 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)];
26009 test_array [0] = 0
26010
26011   ;
26012   return 0;
26013 }
26014 _ACEOF
26015 rm -f conftest.$ac_objext
26016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26017   (eval $ac_compile) 2>conftest.er1
26018   ac_status=$?
26019   grep -v '^ *+' conftest.er1 >conftest.err
26020   rm -f conftest.er1
26021   cat conftest.err >&5
26022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023   (exit $ac_status); } &&
26024          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026   (eval $ac_try) 2>&5
26027   ac_status=$?
26028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029   (exit $ac_status); }; } &&
26030          { ac_try='test -s conftest.$ac_objext'
26031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26032   (eval $ac_try) 2>&5
26033   ac_status=$?
26034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035   (exit $ac_status); }; }; then
26036   ac_lo=0 ac_mid=0
26037   while :; do
26038     cat >conftest.$ac_ext <<_ACEOF
26039 /* confdefs.h.  */
26040 _ACEOF
26041 cat confdefs.h >>conftest.$ac_ext
26042 cat >>conftest.$ac_ext <<_ACEOF
26043 /* end confdefs.h.  */
26044 $ac_includes_default
26045 int
26046 main ()
26047 {
26048 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
26049 test_array [0] = 0
26050
26051   ;
26052   return 0;
26053 }
26054 _ACEOF
26055 rm -f conftest.$ac_objext
26056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26057   (eval $ac_compile) 2>conftest.er1
26058   ac_status=$?
26059   grep -v '^ *+' conftest.er1 >conftest.err
26060   rm -f conftest.er1
26061   cat conftest.err >&5
26062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063   (exit $ac_status); } &&
26064          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26066   (eval $ac_try) 2>&5
26067   ac_status=$?
26068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069   (exit $ac_status); }; } &&
26070          { ac_try='test -s conftest.$ac_objext'
26071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26072   (eval $ac_try) 2>&5
26073   ac_status=$?
26074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075   (exit $ac_status); }; }; then
26076   ac_hi=$ac_mid; break
26077 else
26078   echo "$as_me: failed program was:" >&5
26079 sed 's/^/| /' conftest.$ac_ext >&5
26080
26081 ac_lo=`expr $ac_mid + 1`
26082                     if test $ac_lo -le $ac_mid; then
26083                       ac_lo= ac_hi=
26084                       break
26085                     fi
26086                     ac_mid=`expr 2 '*' $ac_mid + 1`
26087 fi
26088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26089   done
26090 else
26091   echo "$as_me: failed program was:" >&5
26092 sed 's/^/| /' conftest.$ac_ext >&5
26093
26094 cat >conftest.$ac_ext <<_ACEOF
26095 /* confdefs.h.  */
26096 _ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h.  */
26100 $ac_includes_default
26101 int
26102 main ()
26103 {
26104 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)];
26105 test_array [0] = 0
26106
26107   ;
26108   return 0;
26109 }
26110 _ACEOF
26111 rm -f conftest.$ac_objext
26112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26113   (eval $ac_compile) 2>conftest.er1
26114   ac_status=$?
26115   grep -v '^ *+' conftest.er1 >conftest.err
26116   rm -f conftest.er1
26117   cat conftest.err >&5
26118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119   (exit $ac_status); } &&
26120          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122   (eval $ac_try) 2>&5
26123   ac_status=$?
26124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125   (exit $ac_status); }; } &&
26126          { ac_try='test -s conftest.$ac_objext'
26127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26128   (eval $ac_try) 2>&5
26129   ac_status=$?
26130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131   (exit $ac_status); }; }; then
26132   ac_hi=-1 ac_mid=-1
26133   while :; do
26134     cat >conftest.$ac_ext <<_ACEOF
26135 /* confdefs.h.  */
26136 _ACEOF
26137 cat confdefs.h >>conftest.$ac_ext
26138 cat >>conftest.$ac_ext <<_ACEOF
26139 /* end confdefs.h.  */
26140 $ac_includes_default
26141 int
26142 main ()
26143 {
26144 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)];
26145 test_array [0] = 0
26146
26147   ;
26148   return 0;
26149 }
26150 _ACEOF
26151 rm -f conftest.$ac_objext
26152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26153   (eval $ac_compile) 2>conftest.er1
26154   ac_status=$?
26155   grep -v '^ *+' conftest.er1 >conftest.err
26156   rm -f conftest.er1
26157   cat conftest.err >&5
26158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159   (exit $ac_status); } &&
26160          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26162   (eval $ac_try) 2>&5
26163   ac_status=$?
26164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165   (exit $ac_status); }; } &&
26166          { ac_try='test -s conftest.$ac_objext'
26167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168   (eval $ac_try) 2>&5
26169   ac_status=$?
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); }; }; then
26172   ac_lo=$ac_mid; break
26173 else
26174   echo "$as_me: failed program was:" >&5
26175 sed 's/^/| /' conftest.$ac_ext >&5
26176
26177 ac_hi=`expr '(' $ac_mid ')' - 1`
26178                        if test $ac_mid -le $ac_hi; then
26179                          ac_lo= ac_hi=
26180                          break
26181                        fi
26182                        ac_mid=`expr 2 '*' $ac_mid`
26183 fi
26184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26185   done
26186 else
26187   echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26189
26190 ac_lo= ac_hi=
26191 fi
26192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26193 fi
26194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26195 # Binary search between lo and hi bounds.
26196 while test "x$ac_lo" != "x$ac_hi"; do
26197   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26198   cat >conftest.$ac_ext <<_ACEOF
26199 /* confdefs.h.  */
26200 _ACEOF
26201 cat confdefs.h >>conftest.$ac_ext
26202 cat >>conftest.$ac_ext <<_ACEOF
26203 /* end confdefs.h.  */
26204 $ac_includes_default
26205 int
26206 main ()
26207 {
26208 static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)];
26209 test_array [0] = 0
26210
26211   ;
26212   return 0;
26213 }
26214 _ACEOF
26215 rm -f conftest.$ac_objext
26216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26217   (eval $ac_compile) 2>conftest.er1
26218   ac_status=$?
26219   grep -v '^ *+' conftest.er1 >conftest.err
26220   rm -f conftest.er1
26221   cat conftest.err >&5
26222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223   (exit $ac_status); } &&
26224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26226   (eval $ac_try) 2>&5
26227   ac_status=$?
26228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26229   (exit $ac_status); }; } &&
26230          { ac_try='test -s conftest.$ac_objext'
26231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232   (eval $ac_try) 2>&5
26233   ac_status=$?
26234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235   (exit $ac_status); }; }; then
26236   ac_hi=$ac_mid
26237 else
26238   echo "$as_me: failed program was:" >&5
26239 sed 's/^/| /' conftest.$ac_ext >&5
26240
26241 ac_lo=`expr '(' $ac_mid ')' + 1`
26242 fi
26243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26244 done
26245 case $ac_lo in
26246 ?*) ac_cv_sizeof_uintptr_t=$ac_lo;;
26247 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
26248 See \`config.log' for more details." >&5
26249 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
26250 See \`config.log' for more details." >&2;}
26251    { (exit 1); exit 1; }; } ;;
26252 esac
26253 else
26254   if test "$cross_compiling" = yes; then
26255   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26256 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26257    { (exit 1); exit 1; }; }
26258 else
26259   cat >conftest.$ac_ext <<_ACEOF
26260 /* confdefs.h.  */
26261 _ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h.  */
26265 $ac_includes_default
26266 long longval () { return (long) (sizeof (uintptr_t)); }
26267 unsigned long ulongval () { return (long) (sizeof (uintptr_t)); }
26268 #include <stdio.h>
26269 #include <stdlib.h>
26270 int
26271 main ()
26272 {
26273
26274   FILE *f = fopen ("conftest.val", "w");
26275   if (! f)
26276     exit (1);
26277   if (((long) (sizeof (uintptr_t))) < 0)
26278     {
26279       long i = longval ();
26280       if (i != ((long) (sizeof (uintptr_t))))
26281         exit (1);
26282       fprintf (f, "%ld\n", i);
26283     }
26284   else
26285     {
26286       unsigned long i = ulongval ();
26287       if (i != ((long) (sizeof (uintptr_t))))
26288         exit (1);
26289       fprintf (f, "%lu\n", i);
26290     }
26291   exit (ferror (f) || fclose (f) != 0);
26292
26293   ;
26294   return 0;
26295 }
26296 _ACEOF
26297 rm -f conftest$ac_exeext
26298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26299   (eval $ac_link) 2>&5
26300   ac_status=$?
26301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304   (eval $ac_try) 2>&5
26305   ac_status=$?
26306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307   (exit $ac_status); }; }; then
26308   ac_cv_sizeof_uintptr_t=`cat conftest.val`
26309 else
26310   echo "$as_me: program exited with status $ac_status" >&5
26311 echo "$as_me: failed program was:" >&5
26312 sed 's/^/| /' conftest.$ac_ext >&5
26313
26314 ( exit $ac_status )
26315 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77
26316 See \`config.log' for more details." >&5
26317 echo "$as_me: error: cannot compute sizeof (uintptr_t), 77
26318 See \`config.log' for more details." >&2;}
26319    { (exit 1); exit 1; }; }
26320 fi
26321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26322 fi
26323 fi
26324 rm -f conftest.val
26325 else
26326   ac_cv_sizeof_uintptr_t=0
26327 fi
26328 fi
26329 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5
26330 echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6
26331 cat >>confdefs.h <<_ACEOF
26332 #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t
26333 _ACEOF
26334
26335
26336
26337 echo "$as_me:$LINENO: checking for float" >&5
26338 echo $ECHO_N "checking for float... $ECHO_C" >&6
26339 if test "${ac_cv_type_float+set}" = set; then
26340   echo $ECHO_N "(cached) $ECHO_C" >&6
26341 else
26342   cat >conftest.$ac_ext <<_ACEOF
26343 /* confdefs.h.  */
26344 _ACEOF
26345 cat confdefs.h >>conftest.$ac_ext
26346 cat >>conftest.$ac_ext <<_ACEOF
26347 /* end confdefs.h.  */
26348 $ac_includes_default
26349 int
26350 main ()
26351 {
26352 if ((float *) 0)
26353   return 0;
26354 if (sizeof (float))
26355   return 0;
26356   ;
26357   return 0;
26358 }
26359 _ACEOF
26360 rm -f conftest.$ac_objext
26361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26362   (eval $ac_compile) 2>conftest.er1
26363   ac_status=$?
26364   grep -v '^ *+' conftest.er1 >conftest.err
26365   rm -f conftest.er1
26366   cat conftest.err >&5
26367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368   (exit $ac_status); } &&
26369          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26371   (eval $ac_try) 2>&5
26372   ac_status=$?
26373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374   (exit $ac_status); }; } &&
26375          { ac_try='test -s conftest.$ac_objext'
26376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26377   (eval $ac_try) 2>&5
26378   ac_status=$?
26379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380   (exit $ac_status); }; }; then
26381   ac_cv_type_float=yes
26382 else
26383   echo "$as_me: failed program was:" >&5
26384 sed 's/^/| /' conftest.$ac_ext >&5
26385
26386 ac_cv_type_float=no
26387 fi
26388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26389 fi
26390 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
26391 echo "${ECHO_T}$ac_cv_type_float" >&6
26392
26393 echo "$as_me:$LINENO: checking size of float" >&5
26394 echo $ECHO_N "checking size of float... $ECHO_C" >&6
26395 if test "${ac_cv_sizeof_float+set}" = set; then
26396   echo $ECHO_N "(cached) $ECHO_C" >&6
26397 else
26398   if test "$ac_cv_type_float" = yes; then
26399   # The cast to unsigned long works around a bug in the HP C Compiler
26400   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26401   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26402   # This bug is HP SR number 8606223364.
26403   if test "$cross_compiling" = yes; then
26404   # Depending upon the size, compute the lo and hi bounds.
26405 cat >conftest.$ac_ext <<_ACEOF
26406 /* confdefs.h.  */
26407 _ACEOF
26408 cat confdefs.h >>conftest.$ac_ext
26409 cat >>conftest.$ac_ext <<_ACEOF
26410 /* end confdefs.h.  */
26411 $ac_includes_default
26412 int
26413 main ()
26414 {
26415 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
26416 test_array [0] = 0
26417
26418   ;
26419   return 0;
26420 }
26421 _ACEOF
26422 rm -f conftest.$ac_objext
26423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26424   (eval $ac_compile) 2>conftest.er1
26425   ac_status=$?
26426   grep -v '^ *+' conftest.er1 >conftest.err
26427   rm -f conftest.er1
26428   cat conftest.err >&5
26429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430   (exit $ac_status); } &&
26431          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433   (eval $ac_try) 2>&5
26434   ac_status=$?
26435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436   (exit $ac_status); }; } &&
26437          { ac_try='test -s conftest.$ac_objext'
26438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26439   (eval $ac_try) 2>&5
26440   ac_status=$?
26441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442   (exit $ac_status); }; }; then
26443   ac_lo=0 ac_mid=0
26444   while :; do
26445     cat >conftest.$ac_ext <<_ACEOF
26446 /* confdefs.h.  */
26447 _ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h.  */
26451 $ac_includes_default
26452 int
26453 main ()
26454 {
26455 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
26456 test_array [0] = 0
26457
26458   ;
26459   return 0;
26460 }
26461 _ACEOF
26462 rm -f conftest.$ac_objext
26463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26464   (eval $ac_compile) 2>conftest.er1
26465   ac_status=$?
26466   grep -v '^ *+' conftest.er1 >conftest.err
26467   rm -f conftest.er1
26468   cat conftest.err >&5
26469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470   (exit $ac_status); } &&
26471          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26473   (eval $ac_try) 2>&5
26474   ac_status=$?
26475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476   (exit $ac_status); }; } &&
26477          { ac_try='test -s conftest.$ac_objext'
26478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26479   (eval $ac_try) 2>&5
26480   ac_status=$?
26481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26482   (exit $ac_status); }; }; then
26483   ac_hi=$ac_mid; break
26484 else
26485   echo "$as_me: failed program was:" >&5
26486 sed 's/^/| /' conftest.$ac_ext >&5
26487
26488 ac_lo=`expr $ac_mid + 1`
26489                     if test $ac_lo -le $ac_mid; then
26490                       ac_lo= ac_hi=
26491                       break
26492                     fi
26493                     ac_mid=`expr 2 '*' $ac_mid + 1`
26494 fi
26495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26496   done
26497 else
26498   echo "$as_me: failed program was:" >&5
26499 sed 's/^/| /' conftest.$ac_ext >&5
26500
26501 cat >conftest.$ac_ext <<_ACEOF
26502 /* confdefs.h.  */
26503 _ACEOF
26504 cat confdefs.h >>conftest.$ac_ext
26505 cat >>conftest.$ac_ext <<_ACEOF
26506 /* end confdefs.h.  */
26507 $ac_includes_default
26508 int
26509 main ()
26510 {
26511 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
26512 test_array [0] = 0
26513
26514   ;
26515   return 0;
26516 }
26517 _ACEOF
26518 rm -f conftest.$ac_objext
26519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26520   (eval $ac_compile) 2>conftest.er1
26521   ac_status=$?
26522   grep -v '^ *+' conftest.er1 >conftest.err
26523   rm -f conftest.er1
26524   cat conftest.err >&5
26525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526   (exit $ac_status); } &&
26527          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26529   (eval $ac_try) 2>&5
26530   ac_status=$?
26531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532   (exit $ac_status); }; } &&
26533          { ac_try='test -s conftest.$ac_objext'
26534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26535   (eval $ac_try) 2>&5
26536   ac_status=$?
26537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538   (exit $ac_status); }; }; then
26539   ac_hi=-1 ac_mid=-1
26540   while :; do
26541     cat >conftest.$ac_ext <<_ACEOF
26542 /* confdefs.h.  */
26543 _ACEOF
26544 cat confdefs.h >>conftest.$ac_ext
26545 cat >>conftest.$ac_ext <<_ACEOF
26546 /* end confdefs.h.  */
26547 $ac_includes_default
26548 int
26549 main ()
26550 {
26551 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
26552 test_array [0] = 0
26553
26554   ;
26555   return 0;
26556 }
26557 _ACEOF
26558 rm -f conftest.$ac_objext
26559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26560   (eval $ac_compile) 2>conftest.er1
26561   ac_status=$?
26562   grep -v '^ *+' conftest.er1 >conftest.err
26563   rm -f conftest.er1
26564   cat conftest.err >&5
26565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566   (exit $ac_status); } &&
26567          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26569   (eval $ac_try) 2>&5
26570   ac_status=$?
26571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572   (exit $ac_status); }; } &&
26573          { ac_try='test -s conftest.$ac_objext'
26574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26575   (eval $ac_try) 2>&5
26576   ac_status=$?
26577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578   (exit $ac_status); }; }; then
26579   ac_lo=$ac_mid; break
26580 else
26581   echo "$as_me: failed program was:" >&5
26582 sed 's/^/| /' conftest.$ac_ext >&5
26583
26584 ac_hi=`expr '(' $ac_mid ')' - 1`
26585                        if test $ac_mid -le $ac_hi; then
26586                          ac_lo= ac_hi=
26587                          break
26588                        fi
26589                        ac_mid=`expr 2 '*' $ac_mid`
26590 fi
26591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26592   done
26593 else
26594   echo "$as_me: failed program was:" >&5
26595 sed 's/^/| /' conftest.$ac_ext >&5
26596
26597 ac_lo= ac_hi=
26598 fi
26599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26600 fi
26601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26602 # Binary search between lo and hi bounds.
26603 while test "x$ac_lo" != "x$ac_hi"; do
26604   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26605   cat >conftest.$ac_ext <<_ACEOF
26606 /* confdefs.h.  */
26607 _ACEOF
26608 cat confdefs.h >>conftest.$ac_ext
26609 cat >>conftest.$ac_ext <<_ACEOF
26610 /* end confdefs.h.  */
26611 $ac_includes_default
26612 int
26613 main ()
26614 {
26615 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
26616 test_array [0] = 0
26617
26618   ;
26619   return 0;
26620 }
26621 _ACEOF
26622 rm -f conftest.$ac_objext
26623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26624   (eval $ac_compile) 2>conftest.er1
26625   ac_status=$?
26626   grep -v '^ *+' conftest.er1 >conftest.err
26627   rm -f conftest.er1
26628   cat conftest.err >&5
26629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630   (exit $ac_status); } &&
26631          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26633   (eval $ac_try) 2>&5
26634   ac_status=$?
26635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636   (exit $ac_status); }; } &&
26637          { ac_try='test -s conftest.$ac_objext'
26638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26639   (eval $ac_try) 2>&5
26640   ac_status=$?
26641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642   (exit $ac_status); }; }; then
26643   ac_hi=$ac_mid
26644 else
26645   echo "$as_me: failed program was:" >&5
26646 sed 's/^/| /' conftest.$ac_ext >&5
26647
26648 ac_lo=`expr '(' $ac_mid ')' + 1`
26649 fi
26650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26651 done
26652 case $ac_lo in
26653 ?*) ac_cv_sizeof_float=$ac_lo;;
26654 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
26655 See \`config.log' for more details." >&5
26656 echo "$as_me: error: cannot compute sizeof (float), 77
26657 See \`config.log' for more details." >&2;}
26658    { (exit 1); exit 1; }; } ;;
26659 esac
26660 else
26661   if test "$cross_compiling" = yes; then
26662   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
26663 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
26664    { (exit 1); exit 1; }; }
26665 else
26666   cat >conftest.$ac_ext <<_ACEOF
26667 /* confdefs.h.  */
26668 _ACEOF
26669 cat confdefs.h >>conftest.$ac_ext
26670 cat >>conftest.$ac_ext <<_ACEOF
26671 /* end confdefs.h.  */
26672 $ac_includes_default
26673 long longval () { return (long) (sizeof (float)); }
26674 unsigned long ulongval () { return (long) (sizeof (float)); }
26675 #include <stdio.h>
26676 #include <stdlib.h>
26677 int
26678 main ()
26679 {
26680
26681   FILE *f = fopen ("conftest.val", "w");
26682   if (! f)
26683     exit (1);
26684   if (((long) (sizeof (float))) < 0)
26685     {
26686       long i = longval ();
26687       if (i != ((long) (sizeof (float))))
26688         exit (1);
26689       fprintf (f, "%ld\n", i);
26690     }
26691   else
26692     {
26693       unsigned long i = ulongval ();
26694       if (i != ((long) (sizeof (float))))
26695         exit (1);
26696       fprintf (f, "%lu\n", i);
26697     }
26698   exit (ferror (f) || fclose (f) != 0);
26699
26700   ;
26701   return 0;
26702 }
26703 _ACEOF
26704 rm -f conftest$ac_exeext
26705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26706   (eval $ac_link) 2>&5
26707   ac_status=$?
26708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26711   (eval $ac_try) 2>&5
26712   ac_status=$?
26713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714   (exit $ac_status); }; }; then
26715   ac_cv_sizeof_float=`cat conftest.val`
26716 else
26717   echo "$as_me: program exited with status $ac_status" >&5
26718 echo "$as_me: failed program was:" >&5
26719 sed 's/^/| /' conftest.$ac_ext >&5
26720
26721 ( exit $ac_status )
26722 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
26723 See \`config.log' for more details." >&5
26724 echo "$as_me: error: cannot compute sizeof (float), 77
26725 See \`config.log' for more details." >&2;}
26726    { (exit 1); exit 1; }; }
26727 fi
26728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26729 fi
26730 fi
26731 rm -f conftest.val
26732 else
26733   ac_cv_sizeof_float=0
26734 fi
26735 fi
26736 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
26737 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
26738 cat >>confdefs.h <<_ACEOF
26739 #define SIZEOF_FLOAT $ac_cv_sizeof_float
26740 _ACEOF
26741
26742
26743 echo "$as_me:$LINENO: checking for double" >&5
26744 echo $ECHO_N "checking for double... $ECHO_C" >&6
26745 if test "${ac_cv_type_double+set}" = set; then
26746   echo $ECHO_N "(cached) $ECHO_C" >&6
26747 else
26748   cat >conftest.$ac_ext <<_ACEOF
26749 /* confdefs.h.  */
26750 _ACEOF
26751 cat confdefs.h >>conftest.$ac_ext
26752 cat >>conftest.$ac_ext <<_ACEOF
26753 /* end confdefs.h.  */
26754 $ac_includes_default
26755 int
26756 main ()
26757 {
26758 if ((double *) 0)
26759   return 0;
26760 if (sizeof (double))
26761   return 0;
26762   ;
26763   return 0;
26764 }
26765 _ACEOF
26766 rm -f conftest.$ac_objext
26767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26768   (eval $ac_compile) 2>conftest.er1
26769   ac_status=$?
26770   grep -v '^ *+' conftest.er1 >conftest.err
26771   rm -f conftest.er1
26772   cat conftest.err >&5
26773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774   (exit $ac_status); } &&
26775          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777   (eval $ac_try) 2>&5
26778   ac_status=$?
26779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780   (exit $ac_status); }; } &&
26781          { ac_try='test -s conftest.$ac_objext'
26782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26783   (eval $ac_try) 2>&5
26784   ac_status=$?
26785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786   (exit $ac_status); }; }; then
26787   ac_cv_type_double=yes
26788 else
26789   echo "$as_me: failed program was:" >&5
26790 sed 's/^/| /' conftest.$ac_ext >&5
26791
26792 ac_cv_type_double=no
26793 fi
26794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26795 fi
26796 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
26797 echo "${ECHO_T}$ac_cv_type_double" >&6
26798
26799 echo "$as_me:$LINENO: checking size of double" >&5
26800 echo $ECHO_N "checking size of double... $ECHO_C" >&6
26801 if test "${ac_cv_sizeof_double+set}" = set; then
26802   echo $ECHO_N "(cached) $ECHO_C" >&6
26803 else
26804   if test "$ac_cv_type_double" = yes; then
26805   # The cast to unsigned long works around a bug in the HP C Compiler
26806   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26807   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26808   # This bug is HP SR number 8606223364.
26809   if test "$cross_compiling" = yes; then
26810   # Depending upon the size, compute the lo and hi bounds.
26811 cat >conftest.$ac_ext <<_ACEOF
26812 /* confdefs.h.  */
26813 _ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h.  */
26817 $ac_includes_default
26818 int
26819 main ()
26820 {
26821 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
26822 test_array [0] = 0
26823
26824   ;
26825   return 0;
26826 }
26827 _ACEOF
26828 rm -f conftest.$ac_objext
26829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26830   (eval $ac_compile) 2>conftest.er1
26831   ac_status=$?
26832   grep -v '^ *+' conftest.er1 >conftest.err
26833   rm -f conftest.er1
26834   cat conftest.err >&5
26835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836   (exit $ac_status); } &&
26837          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26839   (eval $ac_try) 2>&5
26840   ac_status=$?
26841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842   (exit $ac_status); }; } &&
26843          { ac_try='test -s conftest.$ac_objext'
26844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26845   (eval $ac_try) 2>&5
26846   ac_status=$?
26847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848   (exit $ac_status); }; }; then
26849   ac_lo=0 ac_mid=0
26850   while :; do
26851     cat >conftest.$ac_ext <<_ACEOF
26852 /* confdefs.h.  */
26853 _ACEOF
26854 cat confdefs.h >>conftest.$ac_ext
26855 cat >>conftest.$ac_ext <<_ACEOF
26856 /* end confdefs.h.  */
26857 $ac_includes_default
26858 int
26859 main ()
26860 {
26861 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
26862 test_array [0] = 0
26863
26864   ;
26865   return 0;
26866 }
26867 _ACEOF
26868 rm -f conftest.$ac_objext
26869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26870   (eval $ac_compile) 2>conftest.er1
26871   ac_status=$?
26872   grep -v '^ *+' conftest.er1 >conftest.err
26873   rm -f conftest.er1
26874   cat conftest.err >&5
26875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26876   (exit $ac_status); } &&
26877          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26879   (eval $ac_try) 2>&5
26880   ac_status=$?
26881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882   (exit $ac_status); }; } &&
26883          { ac_try='test -s conftest.$ac_objext'
26884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26885   (eval $ac_try) 2>&5
26886   ac_status=$?
26887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888   (exit $ac_status); }; }; then
26889   ac_hi=$ac_mid; break
26890 else
26891   echo "$as_me: failed program was:" >&5
26892 sed 's/^/| /' conftest.$ac_ext >&5
26893
26894 ac_lo=`expr $ac_mid + 1`
26895                     if test $ac_lo -le $ac_mid; then
26896                       ac_lo= ac_hi=
26897                       break
26898                     fi
26899                     ac_mid=`expr 2 '*' $ac_mid + 1`
26900 fi
26901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26902   done
26903 else
26904   echo "$as_me: failed program was:" >&5
26905 sed 's/^/| /' conftest.$ac_ext >&5
26906
26907 cat >conftest.$ac_ext <<_ACEOF
26908 /* confdefs.h.  */
26909 _ACEOF
26910 cat confdefs.h >>conftest.$ac_ext
26911 cat >>conftest.$ac_ext <<_ACEOF
26912 /* end confdefs.h.  */
26913 $ac_includes_default
26914 int
26915 main ()
26916 {
26917 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
26918 test_array [0] = 0
26919
26920   ;
26921   return 0;
26922 }
26923 _ACEOF
26924 rm -f conftest.$ac_objext
26925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26926   (eval $ac_compile) 2>conftest.er1
26927   ac_status=$?
26928   grep -v '^ *+' conftest.er1 >conftest.err
26929   rm -f conftest.er1
26930   cat conftest.err >&5
26931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932   (exit $ac_status); } &&
26933          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26935   (eval $ac_try) 2>&5
26936   ac_status=$?
26937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938   (exit $ac_status); }; } &&
26939          { ac_try='test -s conftest.$ac_objext'
26940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26941   (eval $ac_try) 2>&5
26942   ac_status=$?
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); }; }; then
26945   ac_hi=-1 ac_mid=-1
26946   while :; do
26947     cat >conftest.$ac_ext <<_ACEOF
26948 /* confdefs.h.  */
26949 _ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h.  */
26953 $ac_includes_default
26954 int
26955 main ()
26956 {
26957 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
26958 test_array [0] = 0
26959
26960   ;
26961   return 0;
26962 }
26963 _ACEOF
26964 rm -f conftest.$ac_objext
26965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26966   (eval $ac_compile) 2>conftest.er1
26967   ac_status=$?
26968   grep -v '^ *+' conftest.er1 >conftest.err
26969   rm -f conftest.er1
26970   cat conftest.err >&5
26971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972   (exit $ac_status); } &&
26973          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
26974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26975   (eval $ac_try) 2>&5
26976   ac_status=$?
26977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978   (exit $ac_status); }; } &&
26979          { ac_try='test -s conftest.$ac_objext'
26980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26981   (eval $ac_try) 2>&5
26982   ac_status=$?
26983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984   (exit $ac_status); }; }; then
26985   ac_lo=$ac_mid; break
26986 else
26987   echo "$as_me: failed program was:" >&5
26988 sed 's/^/| /' conftest.$ac_ext >&5
26989
26990 ac_hi=`expr '(' $ac_mid ')' - 1`
26991                        if test $ac_mid -le $ac_hi; then
26992                          ac_lo= ac_hi=
26993                          break
26994                        fi
26995                        ac_mid=`expr 2 '*' $ac_mid`
26996 fi
26997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26998   done
26999 else
27000   echo "$as_me: failed program was:" >&5
27001 sed 's/^/| /' conftest.$ac_ext >&5
27002
27003 ac_lo= ac_hi=
27004 fi
27005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27006 fi
27007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27008 # Binary search between lo and hi bounds.
27009 while test "x$ac_lo" != "x$ac_hi"; do
27010   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27011   cat >conftest.$ac_ext <<_ACEOF
27012 /* confdefs.h.  */
27013 _ACEOF
27014 cat confdefs.h >>conftest.$ac_ext
27015 cat >>conftest.$ac_ext <<_ACEOF
27016 /* end confdefs.h.  */
27017 $ac_includes_default
27018 int
27019 main ()
27020 {
27021 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
27022 test_array [0] = 0
27023
27024   ;
27025   return 0;
27026 }
27027 _ACEOF
27028 rm -f conftest.$ac_objext
27029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27030   (eval $ac_compile) 2>conftest.er1
27031   ac_status=$?
27032   grep -v '^ *+' conftest.er1 >conftest.err
27033   rm -f conftest.er1
27034   cat conftest.err >&5
27035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036   (exit $ac_status); } &&
27037          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27039   (eval $ac_try) 2>&5
27040   ac_status=$?
27041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042   (exit $ac_status); }; } &&
27043          { ac_try='test -s conftest.$ac_objext'
27044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27045   (eval $ac_try) 2>&5
27046   ac_status=$?
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); }; }; then
27049   ac_hi=$ac_mid
27050 else
27051   echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27053
27054 ac_lo=`expr '(' $ac_mid ')' + 1`
27055 fi
27056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27057 done
27058 case $ac_lo in
27059 ?*) ac_cv_sizeof_double=$ac_lo;;
27060 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
27061 See \`config.log' for more details." >&5
27062 echo "$as_me: error: cannot compute sizeof (double), 77
27063 See \`config.log' for more details." >&2;}
27064    { (exit 1); exit 1; }; } ;;
27065 esac
27066 else
27067   if test "$cross_compiling" = yes; then
27068   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27069 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27070    { (exit 1); exit 1; }; }
27071 else
27072   cat >conftest.$ac_ext <<_ACEOF
27073 /* confdefs.h.  */
27074 _ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h.  */
27078 $ac_includes_default
27079 long longval () { return (long) (sizeof (double)); }
27080 unsigned long ulongval () { return (long) (sizeof (double)); }
27081 #include <stdio.h>
27082 #include <stdlib.h>
27083 int
27084 main ()
27085 {
27086
27087   FILE *f = fopen ("conftest.val", "w");
27088   if (! f)
27089     exit (1);
27090   if (((long) (sizeof (double))) < 0)
27091     {
27092       long i = longval ();
27093       if (i != ((long) (sizeof (double))))
27094         exit (1);
27095       fprintf (f, "%ld\n", i);
27096     }
27097   else
27098     {
27099       unsigned long i = ulongval ();
27100       if (i != ((long) (sizeof (double))))
27101         exit (1);
27102       fprintf (f, "%lu\n", i);
27103     }
27104   exit (ferror (f) || fclose (f) != 0);
27105
27106   ;
27107   return 0;
27108 }
27109 _ACEOF
27110 rm -f conftest$ac_exeext
27111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27112   (eval $ac_link) 2>&5
27113   ac_status=$?
27114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117   (eval $ac_try) 2>&5
27118   ac_status=$?
27119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120   (exit $ac_status); }; }; then
27121   ac_cv_sizeof_double=`cat conftest.val`
27122 else
27123   echo "$as_me: program exited with status $ac_status" >&5
27124 echo "$as_me: failed program was:" >&5
27125 sed 's/^/| /' conftest.$ac_ext >&5
27126
27127 ( exit $ac_status )
27128 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
27129 See \`config.log' for more details." >&5
27130 echo "$as_me: error: cannot compute sizeof (double), 77
27131 See \`config.log' for more details." >&2;}
27132    { (exit 1); exit 1; }; }
27133 fi
27134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27135 fi
27136 fi
27137 rm -f conftest.val
27138 else
27139   ac_cv_sizeof_double=0
27140 fi
27141 fi
27142 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
27143 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
27144 cat >>confdefs.h <<_ACEOF
27145 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
27146 _ACEOF
27147
27148
27149 echo "$as_me:$LINENO: checking for long double" >&5
27150 echo $ECHO_N "checking for long double... $ECHO_C" >&6
27151 if test "${ac_cv_type_long_double+set}" = set; then
27152   echo $ECHO_N "(cached) $ECHO_C" >&6
27153 else
27154   cat >conftest.$ac_ext <<_ACEOF
27155 /* confdefs.h.  */
27156 _ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h.  */
27160 $ac_includes_default
27161 int
27162 main ()
27163 {
27164 if ((long double *) 0)
27165   return 0;
27166 if (sizeof (long double))
27167   return 0;
27168   ;
27169   return 0;
27170 }
27171 _ACEOF
27172 rm -f conftest.$ac_objext
27173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27174   (eval $ac_compile) 2>conftest.er1
27175   ac_status=$?
27176   grep -v '^ *+' conftest.er1 >conftest.err
27177   rm -f conftest.er1
27178   cat conftest.err >&5
27179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180   (exit $ac_status); } &&
27181          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27183   (eval $ac_try) 2>&5
27184   ac_status=$?
27185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27186   (exit $ac_status); }; } &&
27187          { ac_try='test -s conftest.$ac_objext'
27188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27189   (eval $ac_try) 2>&5
27190   ac_status=$?
27191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192   (exit $ac_status); }; }; then
27193   ac_cv_type_long_double=yes
27194 else
27195   echo "$as_me: failed program was:" >&5
27196 sed 's/^/| /' conftest.$ac_ext >&5
27197
27198 ac_cv_type_long_double=no
27199 fi
27200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27201 fi
27202 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
27203 echo "${ECHO_T}$ac_cv_type_long_double" >&6
27204
27205 echo "$as_me:$LINENO: checking size of long double" >&5
27206 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
27207 if test "${ac_cv_sizeof_long_double+set}" = set; then
27208   echo $ECHO_N "(cached) $ECHO_C" >&6
27209 else
27210   if test "$ac_cv_type_long_double" = yes; then
27211   # The cast to unsigned long works around a bug in the HP C Compiler
27212   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27213   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27214   # This bug is HP SR number 8606223364.
27215   if test "$cross_compiling" = yes; then
27216   # Depending upon the size, compute the lo and hi bounds.
27217 cat >conftest.$ac_ext <<_ACEOF
27218 /* confdefs.h.  */
27219 _ACEOF
27220 cat confdefs.h >>conftest.$ac_ext
27221 cat >>conftest.$ac_ext <<_ACEOF
27222 /* end confdefs.h.  */
27223 $ac_includes_default
27224 int
27225 main ()
27226 {
27227 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
27228 test_array [0] = 0
27229
27230   ;
27231   return 0;
27232 }
27233 _ACEOF
27234 rm -f conftest.$ac_objext
27235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27236   (eval $ac_compile) 2>conftest.er1
27237   ac_status=$?
27238   grep -v '^ *+' conftest.er1 >conftest.err
27239   rm -f conftest.er1
27240   cat conftest.err >&5
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); } &&
27243          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27245   (eval $ac_try) 2>&5
27246   ac_status=$?
27247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248   (exit $ac_status); }; } &&
27249          { ac_try='test -s conftest.$ac_objext'
27250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27251   (eval $ac_try) 2>&5
27252   ac_status=$?
27253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254   (exit $ac_status); }; }; then
27255   ac_lo=0 ac_mid=0
27256   while :; do
27257     cat >conftest.$ac_ext <<_ACEOF
27258 /* confdefs.h.  */
27259 _ACEOF
27260 cat confdefs.h >>conftest.$ac_ext
27261 cat >>conftest.$ac_ext <<_ACEOF
27262 /* end confdefs.h.  */
27263 $ac_includes_default
27264 int
27265 main ()
27266 {
27267 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
27268 test_array [0] = 0
27269
27270   ;
27271   return 0;
27272 }
27273 _ACEOF
27274 rm -f conftest.$ac_objext
27275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27276   (eval $ac_compile) 2>conftest.er1
27277   ac_status=$?
27278   grep -v '^ *+' conftest.er1 >conftest.err
27279   rm -f conftest.er1
27280   cat conftest.err >&5
27281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282   (exit $ac_status); } &&
27283          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27285   (eval $ac_try) 2>&5
27286   ac_status=$?
27287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288   (exit $ac_status); }; } &&
27289          { ac_try='test -s conftest.$ac_objext'
27290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27291   (eval $ac_try) 2>&5
27292   ac_status=$?
27293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294   (exit $ac_status); }; }; then
27295   ac_hi=$ac_mid; break
27296 else
27297   echo "$as_me: failed program was:" >&5
27298 sed 's/^/| /' conftest.$ac_ext >&5
27299
27300 ac_lo=`expr $ac_mid + 1`
27301                     if test $ac_lo -le $ac_mid; then
27302                       ac_lo= ac_hi=
27303                       break
27304                     fi
27305                     ac_mid=`expr 2 '*' $ac_mid + 1`
27306 fi
27307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27308   done
27309 else
27310   echo "$as_me: failed program was:" >&5
27311 sed 's/^/| /' conftest.$ac_ext >&5
27312
27313 cat >conftest.$ac_ext <<_ACEOF
27314 /* confdefs.h.  */
27315 _ACEOF
27316 cat confdefs.h >>conftest.$ac_ext
27317 cat >>conftest.$ac_ext <<_ACEOF
27318 /* end confdefs.h.  */
27319 $ac_includes_default
27320 int
27321 main ()
27322 {
27323 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
27324 test_array [0] = 0
27325
27326   ;
27327   return 0;
27328 }
27329 _ACEOF
27330 rm -f conftest.$ac_objext
27331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27332   (eval $ac_compile) 2>conftest.er1
27333   ac_status=$?
27334   grep -v '^ *+' conftest.er1 >conftest.err
27335   rm -f conftest.er1
27336   cat conftest.err >&5
27337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338   (exit $ac_status); } &&
27339          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341   (eval $ac_try) 2>&5
27342   ac_status=$?
27343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344   (exit $ac_status); }; } &&
27345          { ac_try='test -s conftest.$ac_objext'
27346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27347   (eval $ac_try) 2>&5
27348   ac_status=$?
27349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350   (exit $ac_status); }; }; then
27351   ac_hi=-1 ac_mid=-1
27352   while :; do
27353     cat >conftest.$ac_ext <<_ACEOF
27354 /* confdefs.h.  */
27355 _ACEOF
27356 cat confdefs.h >>conftest.$ac_ext
27357 cat >>conftest.$ac_ext <<_ACEOF
27358 /* end confdefs.h.  */
27359 $ac_includes_default
27360 int
27361 main ()
27362 {
27363 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
27364 test_array [0] = 0
27365
27366   ;
27367   return 0;
27368 }
27369 _ACEOF
27370 rm -f conftest.$ac_objext
27371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27372   (eval $ac_compile) 2>conftest.er1
27373   ac_status=$?
27374   grep -v '^ *+' conftest.er1 >conftest.err
27375   rm -f conftest.er1
27376   cat conftest.err >&5
27377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378   (exit $ac_status); } &&
27379          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381   (eval $ac_try) 2>&5
27382   ac_status=$?
27383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384   (exit $ac_status); }; } &&
27385          { ac_try='test -s conftest.$ac_objext'
27386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27387   (eval $ac_try) 2>&5
27388   ac_status=$?
27389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390   (exit $ac_status); }; }; then
27391   ac_lo=$ac_mid; break
27392 else
27393   echo "$as_me: failed program was:" >&5
27394 sed 's/^/| /' conftest.$ac_ext >&5
27395
27396 ac_hi=`expr '(' $ac_mid ')' - 1`
27397                        if test $ac_mid -le $ac_hi; then
27398                          ac_lo= ac_hi=
27399                          break
27400                        fi
27401                        ac_mid=`expr 2 '*' $ac_mid`
27402 fi
27403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27404   done
27405 else
27406   echo "$as_me: failed program was:" >&5
27407 sed 's/^/| /' conftest.$ac_ext >&5
27408
27409 ac_lo= ac_hi=
27410 fi
27411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27412 fi
27413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27414 # Binary search between lo and hi bounds.
27415 while test "x$ac_lo" != "x$ac_hi"; do
27416   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27417   cat >conftest.$ac_ext <<_ACEOF
27418 /* confdefs.h.  */
27419 _ACEOF
27420 cat confdefs.h >>conftest.$ac_ext
27421 cat >>conftest.$ac_ext <<_ACEOF
27422 /* end confdefs.h.  */
27423 $ac_includes_default
27424 int
27425 main ()
27426 {
27427 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
27428 test_array [0] = 0
27429
27430   ;
27431   return 0;
27432 }
27433 _ACEOF
27434 rm -f conftest.$ac_objext
27435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27436   (eval $ac_compile) 2>conftest.er1
27437   ac_status=$?
27438   grep -v '^ *+' conftest.er1 >conftest.err
27439   rm -f conftest.er1
27440   cat conftest.err >&5
27441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442   (exit $ac_status); } &&
27443          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27445   (eval $ac_try) 2>&5
27446   ac_status=$?
27447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448   (exit $ac_status); }; } &&
27449          { ac_try='test -s conftest.$ac_objext'
27450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451   (eval $ac_try) 2>&5
27452   ac_status=$?
27453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454   (exit $ac_status); }; }; then
27455   ac_hi=$ac_mid
27456 else
27457   echo "$as_me: failed program was:" >&5
27458 sed 's/^/| /' conftest.$ac_ext >&5
27459
27460 ac_lo=`expr '(' $ac_mid ')' + 1`
27461 fi
27462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27463 done
27464 case $ac_lo in
27465 ?*) ac_cv_sizeof_long_double=$ac_lo;;
27466 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
27467 See \`config.log' for more details." >&5
27468 echo "$as_me: error: cannot compute sizeof (long double), 77
27469 See \`config.log' for more details." >&2;}
27470    { (exit 1); exit 1; }; } ;;
27471 esac
27472 else
27473   if test "$cross_compiling" = yes; then
27474   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27475 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27476    { (exit 1); exit 1; }; }
27477 else
27478   cat >conftest.$ac_ext <<_ACEOF
27479 /* confdefs.h.  */
27480 _ACEOF
27481 cat confdefs.h >>conftest.$ac_ext
27482 cat >>conftest.$ac_ext <<_ACEOF
27483 /* end confdefs.h.  */
27484 $ac_includes_default
27485 long longval () { return (long) (sizeof (long double)); }
27486 unsigned long ulongval () { return (long) (sizeof (long double)); }
27487 #include <stdio.h>
27488 #include <stdlib.h>
27489 int
27490 main ()
27491 {
27492
27493   FILE *f = fopen ("conftest.val", "w");
27494   if (! f)
27495     exit (1);
27496   if (((long) (sizeof (long double))) < 0)
27497     {
27498       long i = longval ();
27499       if (i != ((long) (sizeof (long double))))
27500         exit (1);
27501       fprintf (f, "%ld\n", i);
27502     }
27503   else
27504     {
27505       unsigned long i = ulongval ();
27506       if (i != ((long) (sizeof (long double))))
27507         exit (1);
27508       fprintf (f, "%lu\n", i);
27509     }
27510   exit (ferror (f) || fclose (f) != 0);
27511
27512   ;
27513   return 0;
27514 }
27515 _ACEOF
27516 rm -f conftest$ac_exeext
27517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27518   (eval $ac_link) 2>&5
27519   ac_status=$?
27520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27523   (eval $ac_try) 2>&5
27524   ac_status=$?
27525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27526   (exit $ac_status); }; }; then
27527   ac_cv_sizeof_long_double=`cat conftest.val`
27528 else
27529   echo "$as_me: program exited with status $ac_status" >&5
27530 echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27532
27533 ( exit $ac_status )
27534 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
27535 See \`config.log' for more details." >&5
27536 echo "$as_me: error: cannot compute sizeof (long double), 77
27537 See \`config.log' for more details." >&2;}
27538    { (exit 1); exit 1; }; }
27539 fi
27540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27541 fi
27542 fi
27543 rm -f conftest.val
27544 else
27545   ac_cv_sizeof_long_double=0
27546 fi
27547 fi
27548 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
27549 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
27550 cat >>confdefs.h <<_ACEOF
27551 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
27552 _ACEOF
27553
27554
27555
27556 echo "$as_me:$LINENO: checking for dev_t" >&5
27557 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
27558 if test "${ac_cv_type_dev_t+set}" = set; then
27559   echo $ECHO_N "(cached) $ECHO_C" >&6
27560 else
27561   cat >conftest.$ac_ext <<_ACEOF
27562 /* confdefs.h.  */
27563 _ACEOF
27564 cat confdefs.h >>conftest.$ac_ext
27565 cat >>conftest.$ac_ext <<_ACEOF
27566 /* end confdefs.h.  */
27567 $ac_includes_default
27568 int
27569 main ()
27570 {
27571 if ((dev_t *) 0)
27572   return 0;
27573 if (sizeof (dev_t))
27574   return 0;
27575   ;
27576   return 0;
27577 }
27578 _ACEOF
27579 rm -f conftest.$ac_objext
27580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27581   (eval $ac_compile) 2>conftest.er1
27582   ac_status=$?
27583   grep -v '^ *+' conftest.er1 >conftest.err
27584   rm -f conftest.er1
27585   cat conftest.err >&5
27586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587   (exit $ac_status); } &&
27588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27590   (eval $ac_try) 2>&5
27591   ac_status=$?
27592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593   (exit $ac_status); }; } &&
27594          { ac_try='test -s conftest.$ac_objext'
27595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596   (eval $ac_try) 2>&5
27597   ac_status=$?
27598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599   (exit $ac_status); }; }; then
27600   ac_cv_type_dev_t=yes
27601 else
27602   echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27604
27605 ac_cv_type_dev_t=no
27606 fi
27607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27608 fi
27609 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
27610 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
27611
27612 echo "$as_me:$LINENO: checking size of dev_t" >&5
27613 echo $ECHO_N "checking size of dev_t... $ECHO_C" >&6
27614 if test "${ac_cv_sizeof_dev_t+set}" = set; then
27615   echo $ECHO_N "(cached) $ECHO_C" >&6
27616 else
27617   if test "$ac_cv_type_dev_t" = yes; then
27618   # The cast to unsigned long works around a bug in the HP C Compiler
27619   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27620   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27621   # This bug is HP SR number 8606223364.
27622   if test "$cross_compiling" = yes; then
27623   # Depending upon the size, compute the lo and hi bounds.
27624 cat >conftest.$ac_ext <<_ACEOF
27625 /* confdefs.h.  */
27626 _ACEOF
27627 cat confdefs.h >>conftest.$ac_ext
27628 cat >>conftest.$ac_ext <<_ACEOF
27629 /* end confdefs.h.  */
27630 $ac_includes_default
27631 int
27632 main ()
27633 {
27634 static int test_array [1 - 2 * !(((long) (sizeof (dev_t))) >= 0)];
27635 test_array [0] = 0
27636
27637   ;
27638   return 0;
27639 }
27640 _ACEOF
27641 rm -f conftest.$ac_objext
27642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27643   (eval $ac_compile) 2>conftest.er1
27644   ac_status=$?
27645   grep -v '^ *+' conftest.er1 >conftest.err
27646   rm -f conftest.er1
27647   cat conftest.err >&5
27648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649   (exit $ac_status); } &&
27650          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27652   (eval $ac_try) 2>&5
27653   ac_status=$?
27654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655   (exit $ac_status); }; } &&
27656          { ac_try='test -s conftest.$ac_objext'
27657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27658   (eval $ac_try) 2>&5
27659   ac_status=$?
27660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661   (exit $ac_status); }; }; then
27662   ac_lo=0 ac_mid=0
27663   while :; do
27664     cat >conftest.$ac_ext <<_ACEOF
27665 /* confdefs.h.  */
27666 _ACEOF
27667 cat confdefs.h >>conftest.$ac_ext
27668 cat >>conftest.$ac_ext <<_ACEOF
27669 /* end confdefs.h.  */
27670 $ac_includes_default
27671 int
27672 main ()
27673 {
27674 static int test_array [1 - 2 * !(((long) (sizeof (dev_t))) <= $ac_mid)];
27675 test_array [0] = 0
27676
27677   ;
27678   return 0;
27679 }
27680 _ACEOF
27681 rm -f conftest.$ac_objext
27682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27683   (eval $ac_compile) 2>conftest.er1
27684   ac_status=$?
27685   grep -v '^ *+' conftest.er1 >conftest.err
27686   rm -f conftest.er1
27687   cat conftest.err >&5
27688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689   (exit $ac_status); } &&
27690          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27692   (eval $ac_try) 2>&5
27693   ac_status=$?
27694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695   (exit $ac_status); }; } &&
27696          { ac_try='test -s conftest.$ac_objext'
27697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698   (eval $ac_try) 2>&5
27699   ac_status=$?
27700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701   (exit $ac_status); }; }; then
27702   ac_hi=$ac_mid; break
27703 else
27704   echo "$as_me: failed program was:" >&5
27705 sed 's/^/| /' conftest.$ac_ext >&5
27706
27707 ac_lo=`expr $ac_mid + 1`
27708                     if test $ac_lo -le $ac_mid; then
27709                       ac_lo= ac_hi=
27710                       break
27711                     fi
27712                     ac_mid=`expr 2 '*' $ac_mid + 1`
27713 fi
27714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27715   done
27716 else
27717   echo "$as_me: failed program was:" >&5
27718 sed 's/^/| /' conftest.$ac_ext >&5
27719
27720 cat >conftest.$ac_ext <<_ACEOF
27721 /* confdefs.h.  */
27722 _ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h.  */
27726 $ac_includes_default
27727 int
27728 main ()
27729 {
27730 static int test_array [1 - 2 * !(((long) (sizeof (dev_t))) < 0)];
27731 test_array [0] = 0
27732
27733   ;
27734   return 0;
27735 }
27736 _ACEOF
27737 rm -f conftest.$ac_objext
27738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27739   (eval $ac_compile) 2>conftest.er1
27740   ac_status=$?
27741   grep -v '^ *+' conftest.er1 >conftest.err
27742   rm -f conftest.er1
27743   cat conftest.err >&5
27744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745   (exit $ac_status); } &&
27746          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748   (eval $ac_try) 2>&5
27749   ac_status=$?
27750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751   (exit $ac_status); }; } &&
27752          { ac_try='test -s conftest.$ac_objext'
27753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27754   (eval $ac_try) 2>&5
27755   ac_status=$?
27756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757   (exit $ac_status); }; }; then
27758   ac_hi=-1 ac_mid=-1
27759   while :; do
27760     cat >conftest.$ac_ext <<_ACEOF
27761 /* confdefs.h.  */
27762 _ACEOF
27763 cat confdefs.h >>conftest.$ac_ext
27764 cat >>conftest.$ac_ext <<_ACEOF
27765 /* end confdefs.h.  */
27766 $ac_includes_default
27767 int
27768 main ()
27769 {
27770 static int test_array [1 - 2 * !(((long) (sizeof (dev_t))) >= $ac_mid)];
27771 test_array [0] = 0
27772
27773   ;
27774   return 0;
27775 }
27776 _ACEOF
27777 rm -f conftest.$ac_objext
27778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27779   (eval $ac_compile) 2>conftest.er1
27780   ac_status=$?
27781   grep -v '^ *+' conftest.er1 >conftest.err
27782   rm -f conftest.er1
27783   cat conftest.err >&5
27784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27785   (exit $ac_status); } &&
27786          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27788   (eval $ac_try) 2>&5
27789   ac_status=$?
27790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791   (exit $ac_status); }; } &&
27792          { ac_try='test -s conftest.$ac_objext'
27793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27794   (eval $ac_try) 2>&5
27795   ac_status=$?
27796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797   (exit $ac_status); }; }; then
27798   ac_lo=$ac_mid; break
27799 else
27800   echo "$as_me: failed program was:" >&5
27801 sed 's/^/| /' conftest.$ac_ext >&5
27802
27803 ac_hi=`expr '(' $ac_mid ')' - 1`
27804                        if test $ac_mid -le $ac_hi; then
27805                          ac_lo= ac_hi=
27806                          break
27807                        fi
27808                        ac_mid=`expr 2 '*' $ac_mid`
27809 fi
27810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27811   done
27812 else
27813   echo "$as_me: failed program was:" >&5
27814 sed 's/^/| /' conftest.$ac_ext >&5
27815
27816 ac_lo= ac_hi=
27817 fi
27818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27819 fi
27820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27821 # Binary search between lo and hi bounds.
27822 while test "x$ac_lo" != "x$ac_hi"; do
27823   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27824   cat >conftest.$ac_ext <<_ACEOF
27825 /* confdefs.h.  */
27826 _ACEOF
27827 cat confdefs.h >>conftest.$ac_ext
27828 cat >>conftest.$ac_ext <<_ACEOF
27829 /* end confdefs.h.  */
27830 $ac_includes_default
27831 int
27832 main ()
27833 {
27834 static int test_array [1 - 2 * !(((long) (sizeof (dev_t))) <= $ac_mid)];
27835 test_array [0] = 0
27836
27837   ;
27838   return 0;
27839 }
27840 _ACEOF
27841 rm -f conftest.$ac_objext
27842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27843   (eval $ac_compile) 2>conftest.er1
27844   ac_status=$?
27845   grep -v '^ *+' conftest.er1 >conftest.err
27846   rm -f conftest.er1
27847   cat conftest.err >&5
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); } &&
27850          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852   (eval $ac_try) 2>&5
27853   ac_status=$?
27854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855   (exit $ac_status); }; } &&
27856          { ac_try='test -s conftest.$ac_objext'
27857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27858   (eval $ac_try) 2>&5
27859   ac_status=$?
27860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861   (exit $ac_status); }; }; then
27862   ac_hi=$ac_mid
27863 else
27864   echo "$as_me: failed program was:" >&5
27865 sed 's/^/| /' conftest.$ac_ext >&5
27866
27867 ac_lo=`expr '(' $ac_mid ')' + 1`
27868 fi
27869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27870 done
27871 case $ac_lo in
27872 ?*) ac_cv_sizeof_dev_t=$ac_lo;;
27873 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (dev_t), 77
27874 See \`config.log' for more details." >&5
27875 echo "$as_me: error: cannot compute sizeof (dev_t), 77
27876 See \`config.log' for more details." >&2;}
27877    { (exit 1); exit 1; }; } ;;
27878 esac
27879 else
27880   if test "$cross_compiling" = yes; then
27881   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
27882 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
27883    { (exit 1); exit 1; }; }
27884 else
27885   cat >conftest.$ac_ext <<_ACEOF
27886 /* confdefs.h.  */
27887 _ACEOF
27888 cat confdefs.h >>conftest.$ac_ext
27889 cat >>conftest.$ac_ext <<_ACEOF
27890 /* end confdefs.h.  */
27891 $ac_includes_default
27892 long longval () { return (long) (sizeof (dev_t)); }
27893 unsigned long ulongval () { return (long) (sizeof (dev_t)); }
27894 #include <stdio.h>
27895 #include <stdlib.h>
27896 int
27897 main ()
27898 {
27899
27900   FILE *f = fopen ("conftest.val", "w");
27901   if (! f)
27902     exit (1);
27903   if (((long) (sizeof (dev_t))) < 0)
27904     {
27905       long i = longval ();
27906       if (i != ((long) (sizeof (dev_t))))
27907         exit (1);
27908       fprintf (f, "%ld\n", i);
27909     }
27910   else
27911     {
27912       unsigned long i = ulongval ();
27913       if (i != ((long) (sizeof (dev_t))))
27914         exit (1);
27915       fprintf (f, "%lu\n", i);
27916     }
27917   exit (ferror (f) || fclose (f) != 0);
27918
27919   ;
27920   return 0;
27921 }
27922 _ACEOF
27923 rm -f conftest$ac_exeext
27924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27925   (eval $ac_link) 2>&5
27926   ac_status=$?
27927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27930   (eval $ac_try) 2>&5
27931   ac_status=$?
27932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933   (exit $ac_status); }; }; then
27934   ac_cv_sizeof_dev_t=`cat conftest.val`
27935 else
27936   echo "$as_me: program exited with status $ac_status" >&5
27937 echo "$as_me: failed program was:" >&5
27938 sed 's/^/| /' conftest.$ac_ext >&5
27939
27940 ( exit $ac_status )
27941 { { echo "$as_me:$LINENO: error: cannot compute sizeof (dev_t), 77
27942 See \`config.log' for more details." >&5
27943 echo "$as_me: error: cannot compute sizeof (dev_t), 77
27944 See \`config.log' for more details." >&2;}
27945    { (exit 1); exit 1; }; }
27946 fi
27947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27948 fi
27949 fi
27950 rm -f conftest.val
27951 else
27952   ac_cv_sizeof_dev_t=0
27953 fi
27954 fi
27955 echo "$as_me:$LINENO: result: $ac_cv_sizeof_dev_t" >&5
27956 echo "${ECHO_T}$ac_cv_sizeof_dev_t" >&6
27957 cat >>confdefs.h <<_ACEOF
27958 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
27959 _ACEOF
27960
27961
27962 echo "$as_me:$LINENO: checking for fpos_t" >&5
27963 echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6
27964 if test "${ac_cv_type_fpos_t+set}" = set; then
27965   echo $ECHO_N "(cached) $ECHO_C" >&6
27966 else
27967   cat >conftest.$ac_ext <<_ACEOF
27968 /* confdefs.h.  */
27969 _ACEOF
27970 cat confdefs.h >>conftest.$ac_ext
27971 cat >>conftest.$ac_ext <<_ACEOF
27972 /* end confdefs.h.  */
27973 $ac_includes_default
27974 int
27975 main ()
27976 {
27977 if ((fpos_t *) 0)
27978   return 0;
27979 if (sizeof (fpos_t))
27980   return 0;
27981   ;
27982   return 0;
27983 }
27984 _ACEOF
27985 rm -f conftest.$ac_objext
27986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27987   (eval $ac_compile) 2>conftest.er1
27988   ac_status=$?
27989   grep -v '^ *+' conftest.er1 >conftest.err
27990   rm -f conftest.er1
27991   cat conftest.err >&5
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); } &&
27994          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
27995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27996   (eval $ac_try) 2>&5
27997   ac_status=$?
27998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999   (exit $ac_status); }; } &&
28000          { ac_try='test -s conftest.$ac_objext'
28001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28002   (eval $ac_try) 2>&5
28003   ac_status=$?
28004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005   (exit $ac_status); }; }; then
28006   ac_cv_type_fpos_t=yes
28007 else
28008   echo "$as_me: failed program was:" >&5
28009 sed 's/^/| /' conftest.$ac_ext >&5
28010
28011 ac_cv_type_fpos_t=no
28012 fi
28013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28014 fi
28015 echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5
28016 echo "${ECHO_T}$ac_cv_type_fpos_t" >&6
28017
28018 echo "$as_me:$LINENO: checking size of fpos_t" >&5
28019 echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6
28020 if test "${ac_cv_sizeof_fpos_t+set}" = set; then
28021   echo $ECHO_N "(cached) $ECHO_C" >&6
28022 else
28023   if test "$ac_cv_type_fpos_t" = yes; then
28024   # The cast to unsigned long works around a bug in the HP C Compiler
28025   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28026   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28027   # This bug is HP SR number 8606223364.
28028   if test "$cross_compiling" = yes; then
28029   # Depending upon the size, compute the lo and hi bounds.
28030 cat >conftest.$ac_ext <<_ACEOF
28031 /* confdefs.h.  */
28032 _ACEOF
28033 cat confdefs.h >>conftest.$ac_ext
28034 cat >>conftest.$ac_ext <<_ACEOF
28035 /* end confdefs.h.  */
28036 $ac_includes_default
28037 int
28038 main ()
28039 {
28040 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)];
28041 test_array [0] = 0
28042
28043   ;
28044   return 0;
28045 }
28046 _ACEOF
28047 rm -f conftest.$ac_objext
28048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28049   (eval $ac_compile) 2>conftest.er1
28050   ac_status=$?
28051   grep -v '^ *+' conftest.er1 >conftest.err
28052   rm -f conftest.er1
28053   cat conftest.err >&5
28054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055   (exit $ac_status); } &&
28056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28058   (eval $ac_try) 2>&5
28059   ac_status=$?
28060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061   (exit $ac_status); }; } &&
28062          { ac_try='test -s conftest.$ac_objext'
28063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28064   (eval $ac_try) 2>&5
28065   ac_status=$?
28066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067   (exit $ac_status); }; }; then
28068   ac_lo=0 ac_mid=0
28069   while :; do
28070     cat >conftest.$ac_ext <<_ACEOF
28071 /* confdefs.h.  */
28072 _ACEOF
28073 cat confdefs.h >>conftest.$ac_ext
28074 cat >>conftest.$ac_ext <<_ACEOF
28075 /* end confdefs.h.  */
28076 $ac_includes_default
28077 int
28078 main ()
28079 {
28080 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
28081 test_array [0] = 0
28082
28083   ;
28084   return 0;
28085 }
28086 _ACEOF
28087 rm -f conftest.$ac_objext
28088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28089   (eval $ac_compile) 2>conftest.er1
28090   ac_status=$?
28091   grep -v '^ *+' conftest.er1 >conftest.err
28092   rm -f conftest.er1
28093   cat conftest.err >&5
28094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095   (exit $ac_status); } &&
28096          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28098   (eval $ac_try) 2>&5
28099   ac_status=$?
28100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101   (exit $ac_status); }; } &&
28102          { ac_try='test -s conftest.$ac_objext'
28103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28104   (eval $ac_try) 2>&5
28105   ac_status=$?
28106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107   (exit $ac_status); }; }; then
28108   ac_hi=$ac_mid; break
28109 else
28110   echo "$as_me: failed program was:" >&5
28111 sed 's/^/| /' conftest.$ac_ext >&5
28112
28113 ac_lo=`expr $ac_mid + 1`
28114                     if test $ac_lo -le $ac_mid; then
28115                       ac_lo= ac_hi=
28116                       break
28117                     fi
28118                     ac_mid=`expr 2 '*' $ac_mid + 1`
28119 fi
28120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28121   done
28122 else
28123   echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28125
28126 cat >conftest.$ac_ext <<_ACEOF
28127 /* confdefs.h.  */
28128 _ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h.  */
28132 $ac_includes_default
28133 int
28134 main ()
28135 {
28136 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)];
28137 test_array [0] = 0
28138
28139   ;
28140   return 0;
28141 }
28142 _ACEOF
28143 rm -f conftest.$ac_objext
28144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28145   (eval $ac_compile) 2>conftest.er1
28146   ac_status=$?
28147   grep -v '^ *+' conftest.er1 >conftest.err
28148   rm -f conftest.er1
28149   cat conftest.err >&5
28150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151   (exit $ac_status); } &&
28152          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28154   (eval $ac_try) 2>&5
28155   ac_status=$?
28156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157   (exit $ac_status); }; } &&
28158          { ac_try='test -s conftest.$ac_objext'
28159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28160   (eval $ac_try) 2>&5
28161   ac_status=$?
28162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163   (exit $ac_status); }; }; then
28164   ac_hi=-1 ac_mid=-1
28165   while :; do
28166     cat >conftest.$ac_ext <<_ACEOF
28167 /* confdefs.h.  */
28168 _ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h.  */
28172 $ac_includes_default
28173 int
28174 main ()
28175 {
28176 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)];
28177 test_array [0] = 0
28178
28179   ;
28180   return 0;
28181 }
28182 _ACEOF
28183 rm -f conftest.$ac_objext
28184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28185   (eval $ac_compile) 2>conftest.er1
28186   ac_status=$?
28187   grep -v '^ *+' conftest.er1 >conftest.err
28188   rm -f conftest.er1
28189   cat conftest.err >&5
28190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191   (exit $ac_status); } &&
28192          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28194   (eval $ac_try) 2>&5
28195   ac_status=$?
28196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197   (exit $ac_status); }; } &&
28198          { ac_try='test -s conftest.$ac_objext'
28199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28200   (eval $ac_try) 2>&5
28201   ac_status=$?
28202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203   (exit $ac_status); }; }; then
28204   ac_lo=$ac_mid; break
28205 else
28206   echo "$as_me: failed program was:" >&5
28207 sed 's/^/| /' conftest.$ac_ext >&5
28208
28209 ac_hi=`expr '(' $ac_mid ')' - 1`
28210                        if test $ac_mid -le $ac_hi; then
28211                          ac_lo= ac_hi=
28212                          break
28213                        fi
28214                        ac_mid=`expr 2 '*' $ac_mid`
28215 fi
28216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28217   done
28218 else
28219   echo "$as_me: failed program was:" >&5
28220 sed 's/^/| /' conftest.$ac_ext >&5
28221
28222 ac_lo= ac_hi=
28223 fi
28224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28225 fi
28226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28227 # Binary search between lo and hi bounds.
28228 while test "x$ac_lo" != "x$ac_hi"; do
28229   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28230   cat >conftest.$ac_ext <<_ACEOF
28231 /* confdefs.h.  */
28232 _ACEOF
28233 cat confdefs.h >>conftest.$ac_ext
28234 cat >>conftest.$ac_ext <<_ACEOF
28235 /* end confdefs.h.  */
28236 $ac_includes_default
28237 int
28238 main ()
28239 {
28240 static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)];
28241 test_array [0] = 0
28242
28243   ;
28244   return 0;
28245 }
28246 _ACEOF
28247 rm -f conftest.$ac_objext
28248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28249   (eval $ac_compile) 2>conftest.er1
28250   ac_status=$?
28251   grep -v '^ *+' conftest.er1 >conftest.err
28252   rm -f conftest.er1
28253   cat conftest.err >&5
28254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255   (exit $ac_status); } &&
28256          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28258   (eval $ac_try) 2>&5
28259   ac_status=$?
28260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261   (exit $ac_status); }; } &&
28262          { ac_try='test -s conftest.$ac_objext'
28263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28264   (eval $ac_try) 2>&5
28265   ac_status=$?
28266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267   (exit $ac_status); }; }; then
28268   ac_hi=$ac_mid
28269 else
28270   echo "$as_me: failed program was:" >&5
28271 sed 's/^/| /' conftest.$ac_ext >&5
28272
28273 ac_lo=`expr '(' $ac_mid ')' + 1`
28274 fi
28275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28276 done
28277 case $ac_lo in
28278 ?*) ac_cv_sizeof_fpos_t=$ac_lo;;
28279 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
28280 See \`config.log' for more details." >&5
28281 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
28282 See \`config.log' for more details." >&2;}
28283    { (exit 1); exit 1; }; } ;;
28284 esac
28285 else
28286   if test "$cross_compiling" = yes; then
28287   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
28288 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
28289    { (exit 1); exit 1; }; }
28290 else
28291   cat >conftest.$ac_ext <<_ACEOF
28292 /* confdefs.h.  */
28293 _ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h.  */
28297 $ac_includes_default
28298 long longval () { return (long) (sizeof (fpos_t)); }
28299 unsigned long ulongval () { return (long) (sizeof (fpos_t)); }
28300 #include <stdio.h>
28301 #include <stdlib.h>
28302 int
28303 main ()
28304 {
28305
28306   FILE *f = fopen ("conftest.val", "w");
28307   if (! f)
28308     exit (1);
28309   if (((long) (sizeof (fpos_t))) < 0)
28310     {
28311       long i = longval ();
28312       if (i != ((long) (sizeof (fpos_t))))
28313         exit (1);
28314       fprintf (f, "%ld\n", i);
28315     }
28316   else
28317     {
28318       unsigned long i = ulongval ();
28319       if (i != ((long) (sizeof (fpos_t))))
28320         exit (1);
28321       fprintf (f, "%lu\n", i);
28322     }
28323   exit (ferror (f) || fclose (f) != 0);
28324
28325   ;
28326   return 0;
28327 }
28328 _ACEOF
28329 rm -f conftest$ac_exeext
28330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28331   (eval $ac_link) 2>&5
28332   ac_status=$?
28333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28336   (eval $ac_try) 2>&5
28337   ac_status=$?
28338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339   (exit $ac_status); }; }; then
28340   ac_cv_sizeof_fpos_t=`cat conftest.val`
28341 else
28342   echo "$as_me: program exited with status $ac_status" >&5
28343 echo "$as_me: failed program was:" >&5
28344 sed 's/^/| /' conftest.$ac_ext >&5
28345
28346 ( exit $ac_status )
28347 { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77
28348 See \`config.log' for more details." >&5
28349 echo "$as_me: error: cannot compute sizeof (fpos_t), 77
28350 See \`config.log' for more details." >&2;}
28351    { (exit 1); exit 1; }; }
28352 fi
28353 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28354 fi
28355 fi
28356 rm -f conftest.val
28357 else
28358   ac_cv_sizeof_fpos_t=0
28359 fi
28360 fi
28361 echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5
28362 echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6
28363 cat >>confdefs.h <<_ACEOF
28364 #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t
28365 _ACEOF
28366
28367
28368 echo "$as_me:$LINENO: checking for mode_t" >&5
28369 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28370 if test "${ac_cv_type_mode_t+set}" = set; then
28371   echo $ECHO_N "(cached) $ECHO_C" >&6
28372 else
28373   cat >conftest.$ac_ext <<_ACEOF
28374 /* confdefs.h.  */
28375 _ACEOF
28376 cat confdefs.h >>conftest.$ac_ext
28377 cat >>conftest.$ac_ext <<_ACEOF
28378 /* end confdefs.h.  */
28379 $ac_includes_default
28380 int
28381 main ()
28382 {
28383 if ((mode_t *) 0)
28384   return 0;
28385 if (sizeof (mode_t))
28386   return 0;
28387   ;
28388   return 0;
28389 }
28390 _ACEOF
28391 rm -f conftest.$ac_objext
28392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28393   (eval $ac_compile) 2>conftest.er1
28394   ac_status=$?
28395   grep -v '^ *+' conftest.er1 >conftest.err
28396   rm -f conftest.er1
28397   cat conftest.err >&5
28398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399   (exit $ac_status); } &&
28400          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28402   (eval $ac_try) 2>&5
28403   ac_status=$?
28404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28405   (exit $ac_status); }; } &&
28406          { ac_try='test -s conftest.$ac_objext'
28407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28408   (eval $ac_try) 2>&5
28409   ac_status=$?
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); }; }; then
28412   ac_cv_type_mode_t=yes
28413 else
28414   echo "$as_me: failed program was:" >&5
28415 sed 's/^/| /' conftest.$ac_ext >&5
28416
28417 ac_cv_type_mode_t=no
28418 fi
28419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28420 fi
28421 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28422 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28423
28424 echo "$as_me:$LINENO: checking size of mode_t" >&5
28425 echo $ECHO_N "checking size of mode_t... $ECHO_C" >&6
28426 if test "${ac_cv_sizeof_mode_t+set}" = set; then
28427   echo $ECHO_N "(cached) $ECHO_C" >&6
28428 else
28429   if test "$ac_cv_type_mode_t" = yes; then
28430   # The cast to unsigned long works around a bug in the HP C Compiler
28431   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28432   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28433   # This bug is HP SR number 8606223364.
28434   if test "$cross_compiling" = yes; then
28435   # Depending upon the size, compute the lo and hi bounds.
28436 cat >conftest.$ac_ext <<_ACEOF
28437 /* confdefs.h.  */
28438 _ACEOF
28439 cat confdefs.h >>conftest.$ac_ext
28440 cat >>conftest.$ac_ext <<_ACEOF
28441 /* end confdefs.h.  */
28442 $ac_includes_default
28443 int
28444 main ()
28445 {
28446 static int test_array [1 - 2 * !(((long) (sizeof (mode_t))) >= 0)];
28447 test_array [0] = 0
28448
28449   ;
28450   return 0;
28451 }
28452 _ACEOF
28453 rm -f conftest.$ac_objext
28454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28455   (eval $ac_compile) 2>conftest.er1
28456   ac_status=$?
28457   grep -v '^ *+' conftest.er1 >conftest.err
28458   rm -f conftest.er1
28459   cat conftest.err >&5
28460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461   (exit $ac_status); } &&
28462          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464   (eval $ac_try) 2>&5
28465   ac_status=$?
28466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467   (exit $ac_status); }; } &&
28468          { ac_try='test -s conftest.$ac_objext'
28469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470   (eval $ac_try) 2>&5
28471   ac_status=$?
28472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473   (exit $ac_status); }; }; then
28474   ac_lo=0 ac_mid=0
28475   while :; do
28476     cat >conftest.$ac_ext <<_ACEOF
28477 /* confdefs.h.  */
28478 _ACEOF
28479 cat confdefs.h >>conftest.$ac_ext
28480 cat >>conftest.$ac_ext <<_ACEOF
28481 /* end confdefs.h.  */
28482 $ac_includes_default
28483 int
28484 main ()
28485 {
28486 static int test_array [1 - 2 * !(((long) (sizeof (mode_t))) <= $ac_mid)];
28487 test_array [0] = 0
28488
28489   ;
28490   return 0;
28491 }
28492 _ACEOF
28493 rm -f conftest.$ac_objext
28494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28495   (eval $ac_compile) 2>conftest.er1
28496   ac_status=$?
28497   grep -v '^ *+' conftest.er1 >conftest.err
28498   rm -f conftest.er1
28499   cat conftest.err >&5
28500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501   (exit $ac_status); } &&
28502          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28504   (eval $ac_try) 2>&5
28505   ac_status=$?
28506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507   (exit $ac_status); }; } &&
28508          { ac_try='test -s conftest.$ac_objext'
28509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510   (eval $ac_try) 2>&5
28511   ac_status=$?
28512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513   (exit $ac_status); }; }; then
28514   ac_hi=$ac_mid; break
28515 else
28516   echo "$as_me: failed program was:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28518
28519 ac_lo=`expr $ac_mid + 1`
28520                     if test $ac_lo -le $ac_mid; then
28521                       ac_lo= ac_hi=
28522                       break
28523                     fi
28524                     ac_mid=`expr 2 '*' $ac_mid + 1`
28525 fi
28526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28527   done
28528 else
28529   echo "$as_me: failed program was:" >&5
28530 sed 's/^/| /' conftest.$ac_ext >&5
28531
28532 cat >conftest.$ac_ext <<_ACEOF
28533 /* confdefs.h.  */
28534 _ACEOF
28535 cat confdefs.h >>conftest.$ac_ext
28536 cat >>conftest.$ac_ext <<_ACEOF
28537 /* end confdefs.h.  */
28538 $ac_includes_default
28539 int
28540 main ()
28541 {
28542 static int test_array [1 - 2 * !(((long) (sizeof (mode_t))) < 0)];
28543 test_array [0] = 0
28544
28545   ;
28546   return 0;
28547 }
28548 _ACEOF
28549 rm -f conftest.$ac_objext
28550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28551   (eval $ac_compile) 2>conftest.er1
28552   ac_status=$?
28553   grep -v '^ *+' conftest.er1 >conftest.err
28554   rm -f conftest.er1
28555   cat conftest.err >&5
28556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28557   (exit $ac_status); } &&
28558          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28560   (eval $ac_try) 2>&5
28561   ac_status=$?
28562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563   (exit $ac_status); }; } &&
28564          { ac_try='test -s conftest.$ac_objext'
28565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28566   (eval $ac_try) 2>&5
28567   ac_status=$?
28568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569   (exit $ac_status); }; }; then
28570   ac_hi=-1 ac_mid=-1
28571   while :; do
28572     cat >conftest.$ac_ext <<_ACEOF
28573 /* confdefs.h.  */
28574 _ACEOF
28575 cat confdefs.h >>conftest.$ac_ext
28576 cat >>conftest.$ac_ext <<_ACEOF
28577 /* end confdefs.h.  */
28578 $ac_includes_default
28579 int
28580 main ()
28581 {
28582 static int test_array [1 - 2 * !(((long) (sizeof (mode_t))) >= $ac_mid)];
28583 test_array [0] = 0
28584
28585   ;
28586   return 0;
28587 }
28588 _ACEOF
28589 rm -f conftest.$ac_objext
28590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28591   (eval $ac_compile) 2>conftest.er1
28592   ac_status=$?
28593   grep -v '^ *+' conftest.er1 >conftest.err
28594   rm -f conftest.er1
28595   cat conftest.err >&5
28596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597   (exit $ac_status); } &&
28598          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600   (eval $ac_try) 2>&5
28601   ac_status=$?
28602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603   (exit $ac_status); }; } &&
28604          { ac_try='test -s conftest.$ac_objext'
28605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28606   (eval $ac_try) 2>&5
28607   ac_status=$?
28608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609   (exit $ac_status); }; }; then
28610   ac_lo=$ac_mid; break
28611 else
28612   echo "$as_me: failed program was:" >&5
28613 sed 's/^/| /' conftest.$ac_ext >&5
28614
28615 ac_hi=`expr '(' $ac_mid ')' - 1`
28616                        if test $ac_mid -le $ac_hi; then
28617                          ac_lo= ac_hi=
28618                          break
28619                        fi
28620                        ac_mid=`expr 2 '*' $ac_mid`
28621 fi
28622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28623   done
28624 else
28625   echo "$as_me: failed program was:" >&5
28626 sed 's/^/| /' conftest.$ac_ext >&5
28627
28628 ac_lo= ac_hi=
28629 fi
28630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28631 fi
28632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28633 # Binary search between lo and hi bounds.
28634 while test "x$ac_lo" != "x$ac_hi"; do
28635   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28636   cat >conftest.$ac_ext <<_ACEOF
28637 /* confdefs.h.  */
28638 _ACEOF
28639 cat confdefs.h >>conftest.$ac_ext
28640 cat >>conftest.$ac_ext <<_ACEOF
28641 /* end confdefs.h.  */
28642 $ac_includes_default
28643 int
28644 main ()
28645 {
28646 static int test_array [1 - 2 * !(((long) (sizeof (mode_t))) <= $ac_mid)];
28647 test_array [0] = 0
28648
28649   ;
28650   return 0;
28651 }
28652 _ACEOF
28653 rm -f conftest.$ac_objext
28654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28655   (eval $ac_compile) 2>conftest.er1
28656   ac_status=$?
28657   grep -v '^ *+' conftest.er1 >conftest.err
28658   rm -f conftest.er1
28659   cat conftest.err >&5
28660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661   (exit $ac_status); } &&
28662          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28664   (eval $ac_try) 2>&5
28665   ac_status=$?
28666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667   (exit $ac_status); }; } &&
28668          { ac_try='test -s conftest.$ac_objext'
28669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28670   (eval $ac_try) 2>&5
28671   ac_status=$?
28672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673   (exit $ac_status); }; }; then
28674   ac_hi=$ac_mid
28675 else
28676   echo "$as_me: failed program was:" >&5
28677 sed 's/^/| /' conftest.$ac_ext >&5
28678
28679 ac_lo=`expr '(' $ac_mid ')' + 1`
28680 fi
28681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28682 done
28683 case $ac_lo in
28684 ?*) ac_cv_sizeof_mode_t=$ac_lo;;
28685 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (mode_t), 77
28686 See \`config.log' for more details." >&5
28687 echo "$as_me: error: cannot compute sizeof (mode_t), 77
28688 See \`config.log' for more details." >&2;}
28689    { (exit 1); exit 1; }; } ;;
28690 esac
28691 else
28692   if test "$cross_compiling" = yes; then
28693   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
28694 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
28695    { (exit 1); exit 1; }; }
28696 else
28697   cat >conftest.$ac_ext <<_ACEOF
28698 /* confdefs.h.  */
28699 _ACEOF
28700 cat confdefs.h >>conftest.$ac_ext
28701 cat >>conftest.$ac_ext <<_ACEOF
28702 /* end confdefs.h.  */
28703 $ac_includes_default
28704 long longval () { return (long) (sizeof (mode_t)); }
28705 unsigned long ulongval () { return (long) (sizeof (mode_t)); }
28706 #include <stdio.h>
28707 #include <stdlib.h>
28708 int
28709 main ()
28710 {
28711
28712   FILE *f = fopen ("conftest.val", "w");
28713   if (! f)
28714     exit (1);
28715   if (((long) (sizeof (mode_t))) < 0)
28716     {
28717       long i = longval ();
28718       if (i != ((long) (sizeof (mode_t))))
28719         exit (1);
28720       fprintf (f, "%ld\n", i);
28721     }
28722   else
28723     {
28724       unsigned long i = ulongval ();
28725       if (i != ((long) (sizeof (mode_t))))
28726         exit (1);
28727       fprintf (f, "%lu\n", i);
28728     }
28729   exit (ferror (f) || fclose (f) != 0);
28730
28731   ;
28732   return 0;
28733 }
28734 _ACEOF
28735 rm -f conftest$ac_exeext
28736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28737   (eval $ac_link) 2>&5
28738   ac_status=$?
28739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742   (eval $ac_try) 2>&5
28743   ac_status=$?
28744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745   (exit $ac_status); }; }; then
28746   ac_cv_sizeof_mode_t=`cat conftest.val`
28747 else
28748   echo "$as_me: program exited with status $ac_status" >&5
28749 echo "$as_me: failed program was:" >&5
28750 sed 's/^/| /' conftest.$ac_ext >&5
28751
28752 ( exit $ac_status )
28753 { { echo "$as_me:$LINENO: error: cannot compute sizeof (mode_t), 77
28754 See \`config.log' for more details." >&5
28755 echo "$as_me: error: cannot compute sizeof (mode_t), 77
28756 See \`config.log' for more details." >&2;}
28757    { (exit 1); exit 1; }; }
28758 fi
28759 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28760 fi
28761 fi
28762 rm -f conftest.val
28763 else
28764   ac_cv_sizeof_mode_t=0
28765 fi
28766 fi
28767 echo "$as_me:$LINENO: result: $ac_cv_sizeof_mode_t" >&5
28768 echo "${ECHO_T}$ac_cv_sizeof_mode_t" >&6
28769 cat >>confdefs.h <<_ACEOF
28770 #define SIZEOF_MODE_T $ac_cv_sizeof_mode_t
28771 _ACEOF
28772
28773
28774 echo "$as_me:$LINENO: checking for off_t" >&5
28775 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28776 if test "${ac_cv_type_off_t+set}" = set; then
28777   echo $ECHO_N "(cached) $ECHO_C" >&6
28778 else
28779   cat >conftest.$ac_ext <<_ACEOF
28780 /* confdefs.h.  */
28781 _ACEOF
28782 cat confdefs.h >>conftest.$ac_ext
28783 cat >>conftest.$ac_ext <<_ACEOF
28784 /* end confdefs.h.  */
28785 $ac_includes_default
28786 int
28787 main ()
28788 {
28789 if ((off_t *) 0)
28790   return 0;
28791 if (sizeof (off_t))
28792   return 0;
28793   ;
28794   return 0;
28795 }
28796 _ACEOF
28797 rm -f conftest.$ac_objext
28798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28799   (eval $ac_compile) 2>conftest.er1
28800   ac_status=$?
28801   grep -v '^ *+' conftest.er1 >conftest.err
28802   rm -f conftest.er1
28803   cat conftest.err >&5
28804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805   (exit $ac_status); } &&
28806          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28808   (eval $ac_try) 2>&5
28809   ac_status=$?
28810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811   (exit $ac_status); }; } &&
28812          { ac_try='test -s conftest.$ac_objext'
28813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28814   (eval $ac_try) 2>&5
28815   ac_status=$?
28816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817   (exit $ac_status); }; }; then
28818   ac_cv_type_off_t=yes
28819 else
28820   echo "$as_me: failed program was:" >&5
28821 sed 's/^/| /' conftest.$ac_ext >&5
28822
28823 ac_cv_type_off_t=no
28824 fi
28825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28826 fi
28827 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28828 echo "${ECHO_T}$ac_cv_type_off_t" >&6
28829
28830 echo "$as_me:$LINENO: checking size of off_t" >&5
28831 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
28832 if test "${ac_cv_sizeof_off_t+set}" = set; then
28833   echo $ECHO_N "(cached) $ECHO_C" >&6
28834 else
28835   if test "$ac_cv_type_off_t" = yes; then
28836   # The cast to unsigned long works around a bug in the HP C Compiler
28837   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28838   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28839   # This bug is HP SR number 8606223364.
28840   if test "$cross_compiling" = yes; then
28841   # Depending upon the size, compute the lo and hi bounds.
28842 cat >conftest.$ac_ext <<_ACEOF
28843 /* confdefs.h.  */
28844 _ACEOF
28845 cat confdefs.h >>conftest.$ac_ext
28846 cat >>conftest.$ac_ext <<_ACEOF
28847 /* end confdefs.h.  */
28848 $ac_includes_default
28849 int
28850 main ()
28851 {
28852 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
28853 test_array [0] = 0
28854
28855   ;
28856   return 0;
28857 }
28858 _ACEOF
28859 rm -f conftest.$ac_objext
28860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28861   (eval $ac_compile) 2>conftest.er1
28862   ac_status=$?
28863   grep -v '^ *+' conftest.er1 >conftest.err
28864   rm -f conftest.er1
28865   cat conftest.err >&5
28866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867   (exit $ac_status); } &&
28868          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28870   (eval $ac_try) 2>&5
28871   ac_status=$?
28872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873   (exit $ac_status); }; } &&
28874          { ac_try='test -s conftest.$ac_objext'
28875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28876   (eval $ac_try) 2>&5
28877   ac_status=$?
28878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879   (exit $ac_status); }; }; then
28880   ac_lo=0 ac_mid=0
28881   while :; do
28882     cat >conftest.$ac_ext <<_ACEOF
28883 /* confdefs.h.  */
28884 _ACEOF
28885 cat confdefs.h >>conftest.$ac_ext
28886 cat >>conftest.$ac_ext <<_ACEOF
28887 /* end confdefs.h.  */
28888 $ac_includes_default
28889 int
28890 main ()
28891 {
28892 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
28893 test_array [0] = 0
28894
28895   ;
28896   return 0;
28897 }
28898 _ACEOF
28899 rm -f conftest.$ac_objext
28900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28901   (eval $ac_compile) 2>conftest.er1
28902   ac_status=$?
28903   grep -v '^ *+' conftest.er1 >conftest.err
28904   rm -f conftest.er1
28905   cat conftest.err >&5
28906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907   (exit $ac_status); } &&
28908          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910   (eval $ac_try) 2>&5
28911   ac_status=$?
28912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913   (exit $ac_status); }; } &&
28914          { ac_try='test -s conftest.$ac_objext'
28915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28916   (eval $ac_try) 2>&5
28917   ac_status=$?
28918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919   (exit $ac_status); }; }; then
28920   ac_hi=$ac_mid; break
28921 else
28922   echo "$as_me: failed program was:" >&5
28923 sed 's/^/| /' conftest.$ac_ext >&5
28924
28925 ac_lo=`expr $ac_mid + 1`
28926                     if test $ac_lo -le $ac_mid; then
28927                       ac_lo= ac_hi=
28928                       break
28929                     fi
28930                     ac_mid=`expr 2 '*' $ac_mid + 1`
28931 fi
28932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28933   done
28934 else
28935   echo "$as_me: failed program was:" >&5
28936 sed 's/^/| /' conftest.$ac_ext >&5
28937
28938 cat >conftest.$ac_ext <<_ACEOF
28939 /* confdefs.h.  */
28940 _ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h.  */
28944 $ac_includes_default
28945 int
28946 main ()
28947 {
28948 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
28949 test_array [0] = 0
28950
28951   ;
28952   return 0;
28953 }
28954 _ACEOF
28955 rm -f conftest.$ac_objext
28956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28957   (eval $ac_compile) 2>conftest.er1
28958   ac_status=$?
28959   grep -v '^ *+' conftest.er1 >conftest.err
28960   rm -f conftest.er1
28961   cat conftest.err >&5
28962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28963   (exit $ac_status); } &&
28964          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
28965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28966   (eval $ac_try) 2>&5
28967   ac_status=$?
28968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); }; } &&
28970          { ac_try='test -s conftest.$ac_objext'
28971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28972   (eval $ac_try) 2>&5
28973   ac_status=$?
28974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975   (exit $ac_status); }; }; then
28976   ac_hi=-1 ac_mid=-1
28977   while :; do
28978     cat >conftest.$ac_ext <<_ACEOF
28979 /* confdefs.h.  */
28980 _ACEOF
28981 cat confdefs.h >>conftest.$ac_ext
28982 cat >>conftest.$ac_ext <<_ACEOF
28983 /* end confdefs.h.  */
28984 $ac_includes_default
28985 int
28986 main ()
28987 {
28988 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
28989 test_array [0] = 0
28990
28991   ;
28992   return 0;
28993 }
28994 _ACEOF
28995 rm -f conftest.$ac_objext
28996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28997   (eval $ac_compile) 2>conftest.er1
28998   ac_status=$?
28999   grep -v '^ *+' conftest.er1 >conftest.err
29000   rm -f conftest.er1
29001   cat conftest.err >&5
29002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003   (exit $ac_status); } &&
29004          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29006   (eval $ac_try) 2>&5
29007   ac_status=$?
29008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009   (exit $ac_status); }; } &&
29010          { ac_try='test -s conftest.$ac_objext'
29011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29012   (eval $ac_try) 2>&5
29013   ac_status=$?
29014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015   (exit $ac_status); }; }; then
29016   ac_lo=$ac_mid; break
29017 else
29018   echo "$as_me: failed program was:" >&5
29019 sed 's/^/| /' conftest.$ac_ext >&5
29020
29021 ac_hi=`expr '(' $ac_mid ')' - 1`
29022                        if test $ac_mid -le $ac_hi; then
29023                          ac_lo= ac_hi=
29024                          break
29025                        fi
29026                        ac_mid=`expr 2 '*' $ac_mid`
29027 fi
29028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29029   done
29030 else
29031   echo "$as_me: failed program was:" >&5
29032 sed 's/^/| /' conftest.$ac_ext >&5
29033
29034 ac_lo= ac_hi=
29035 fi
29036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29037 fi
29038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29039 # Binary search between lo and hi bounds.
29040 while test "x$ac_lo" != "x$ac_hi"; do
29041   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29042   cat >conftest.$ac_ext <<_ACEOF
29043 /* confdefs.h.  */
29044 _ACEOF
29045 cat confdefs.h >>conftest.$ac_ext
29046 cat >>conftest.$ac_ext <<_ACEOF
29047 /* end confdefs.h.  */
29048 $ac_includes_default
29049 int
29050 main ()
29051 {
29052 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
29053 test_array [0] = 0
29054
29055   ;
29056   return 0;
29057 }
29058 _ACEOF
29059 rm -f conftest.$ac_objext
29060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29061   (eval $ac_compile) 2>conftest.er1
29062   ac_status=$?
29063   grep -v '^ *+' conftest.er1 >conftest.err
29064   rm -f conftest.er1
29065   cat conftest.err >&5
29066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067   (exit $ac_status); } &&
29068          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29070   (eval $ac_try) 2>&5
29071   ac_status=$?
29072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073   (exit $ac_status); }; } &&
29074          { ac_try='test -s conftest.$ac_objext'
29075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29076   (eval $ac_try) 2>&5
29077   ac_status=$?
29078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079   (exit $ac_status); }; }; then
29080   ac_hi=$ac_mid
29081 else
29082   echo "$as_me: failed program was:" >&5
29083 sed 's/^/| /' conftest.$ac_ext >&5
29084
29085 ac_lo=`expr '(' $ac_mid ')' + 1`
29086 fi
29087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29088 done
29089 case $ac_lo in
29090 ?*) ac_cv_sizeof_off_t=$ac_lo;;
29091 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
29092 See \`config.log' for more details." >&5
29093 echo "$as_me: error: cannot compute sizeof (off_t), 77
29094 See \`config.log' for more details." >&2;}
29095    { (exit 1); exit 1; }; } ;;
29096 esac
29097 else
29098   if test "$cross_compiling" = yes; then
29099   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
29100 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
29101    { (exit 1); exit 1; }; }
29102 else
29103   cat >conftest.$ac_ext <<_ACEOF
29104 /* confdefs.h.  */
29105 _ACEOF
29106 cat confdefs.h >>conftest.$ac_ext
29107 cat >>conftest.$ac_ext <<_ACEOF
29108 /* end confdefs.h.  */
29109 $ac_includes_default
29110 long longval () { return (long) (sizeof (off_t)); }
29111 unsigned long ulongval () { return (long) (sizeof (off_t)); }
29112 #include <stdio.h>
29113 #include <stdlib.h>
29114 int
29115 main ()
29116 {
29117
29118   FILE *f = fopen ("conftest.val", "w");
29119   if (! f)
29120     exit (1);
29121   if (((long) (sizeof (off_t))) < 0)
29122     {
29123       long i = longval ();
29124       if (i != ((long) (sizeof (off_t))))
29125         exit (1);
29126       fprintf (f, "%ld\n", i);
29127     }
29128   else
29129     {
29130       unsigned long i = ulongval ();
29131       if (i != ((long) (sizeof (off_t))))
29132         exit (1);
29133       fprintf (f, "%lu\n", i);
29134     }
29135   exit (ferror (f) || fclose (f) != 0);
29136
29137   ;
29138   return 0;
29139 }
29140 _ACEOF
29141 rm -f conftest$ac_exeext
29142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29143   (eval $ac_link) 2>&5
29144   ac_status=$?
29145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29148   (eval $ac_try) 2>&5
29149   ac_status=$?
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); }; }; then
29152   ac_cv_sizeof_off_t=`cat conftest.val`
29153 else
29154   echo "$as_me: program exited with status $ac_status" >&5
29155 echo "$as_me: failed program was:" >&5
29156 sed 's/^/| /' conftest.$ac_ext >&5
29157
29158 ( exit $ac_status )
29159 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
29160 See \`config.log' for more details." >&5
29161 echo "$as_me: error: cannot compute sizeof (off_t), 77
29162 See \`config.log' for more details." >&2;}
29163    { (exit 1); exit 1; }; }
29164 fi
29165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29166 fi
29167 fi
29168 rm -f conftest.val
29169 else
29170   ac_cv_sizeof_off_t=0
29171 fi
29172 fi
29173 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
29174 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
29175 cat >>confdefs.h <<_ACEOF
29176 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
29177 _ACEOF
29178
29179
29180 echo "$as_me:$LINENO: checking for ssize_t" >&5
29181 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29182 if test "${ac_cv_type_ssize_t+set}" = set; then
29183   echo $ECHO_N "(cached) $ECHO_C" >&6
29184 else
29185   cat >conftest.$ac_ext <<_ACEOF
29186 /* confdefs.h.  */
29187 _ACEOF
29188 cat confdefs.h >>conftest.$ac_ext
29189 cat >>conftest.$ac_ext <<_ACEOF
29190 /* end confdefs.h.  */
29191 $ac_includes_default
29192 int
29193 main ()
29194 {
29195 if ((ssize_t *) 0)
29196   return 0;
29197 if (sizeof (ssize_t))
29198   return 0;
29199   ;
29200   return 0;
29201 }
29202 _ACEOF
29203 rm -f conftest.$ac_objext
29204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29205   (eval $ac_compile) 2>conftest.er1
29206   ac_status=$?
29207   grep -v '^ *+' conftest.er1 >conftest.err
29208   rm -f conftest.er1
29209   cat conftest.err >&5
29210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211   (exit $ac_status); } &&
29212          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29214   (eval $ac_try) 2>&5
29215   ac_status=$?
29216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217   (exit $ac_status); }; } &&
29218          { ac_try='test -s conftest.$ac_objext'
29219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29220   (eval $ac_try) 2>&5
29221   ac_status=$?
29222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223   (exit $ac_status); }; }; then
29224   ac_cv_type_ssize_t=yes
29225 else
29226   echo "$as_me: failed program was:" >&5
29227 sed 's/^/| /' conftest.$ac_ext >&5
29228
29229 ac_cv_type_ssize_t=no
29230 fi
29231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29232 fi
29233 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29234 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29235
29236 echo "$as_me:$LINENO: checking size of ssize_t" >&5
29237 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6
29238 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
29239   echo $ECHO_N "(cached) $ECHO_C" >&6
29240 else
29241   if test "$ac_cv_type_ssize_t" = yes; then
29242   # The cast to unsigned long works around a bug in the HP C Compiler
29243   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29244   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29245   # This bug is HP SR number 8606223364.
29246   if test "$cross_compiling" = yes; then
29247   # Depending upon the size, compute the lo and hi bounds.
29248 cat >conftest.$ac_ext <<_ACEOF
29249 /* confdefs.h.  */
29250 _ACEOF
29251 cat confdefs.h >>conftest.$ac_ext
29252 cat >>conftest.$ac_ext <<_ACEOF
29253 /* end confdefs.h.  */
29254 $ac_includes_default
29255 int
29256 main ()
29257 {
29258 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= 0)];
29259 test_array [0] = 0
29260
29261   ;
29262   return 0;
29263 }
29264 _ACEOF
29265 rm -f conftest.$ac_objext
29266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29267   (eval $ac_compile) 2>conftest.er1
29268   ac_status=$?
29269   grep -v '^ *+' conftest.er1 >conftest.err
29270   rm -f conftest.er1
29271   cat conftest.err >&5
29272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273   (exit $ac_status); } &&
29274          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276   (eval $ac_try) 2>&5
29277   ac_status=$?
29278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279   (exit $ac_status); }; } &&
29280          { ac_try='test -s conftest.$ac_objext'
29281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282   (eval $ac_try) 2>&5
29283   ac_status=$?
29284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285   (exit $ac_status); }; }; then
29286   ac_lo=0 ac_mid=0
29287   while :; do
29288     cat >conftest.$ac_ext <<_ACEOF
29289 /* confdefs.h.  */
29290 _ACEOF
29291 cat confdefs.h >>conftest.$ac_ext
29292 cat >>conftest.$ac_ext <<_ACEOF
29293 /* end confdefs.h.  */
29294 $ac_includes_default
29295 int
29296 main ()
29297 {
29298 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
29299 test_array [0] = 0
29300
29301   ;
29302   return 0;
29303 }
29304 _ACEOF
29305 rm -f conftest.$ac_objext
29306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29307   (eval $ac_compile) 2>conftest.er1
29308   ac_status=$?
29309   grep -v '^ *+' conftest.er1 >conftest.err
29310   rm -f conftest.er1
29311   cat conftest.err >&5
29312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313   (exit $ac_status); } &&
29314          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29316   (eval $ac_try) 2>&5
29317   ac_status=$?
29318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319   (exit $ac_status); }; } &&
29320          { ac_try='test -s conftest.$ac_objext'
29321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29322   (eval $ac_try) 2>&5
29323   ac_status=$?
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); }; }; then
29326   ac_hi=$ac_mid; break
29327 else
29328   echo "$as_me: failed program was:" >&5
29329 sed 's/^/| /' conftest.$ac_ext >&5
29330
29331 ac_lo=`expr $ac_mid + 1`
29332                     if test $ac_lo -le $ac_mid; then
29333                       ac_lo= ac_hi=
29334                       break
29335                     fi
29336                     ac_mid=`expr 2 '*' $ac_mid + 1`
29337 fi
29338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29339   done
29340 else
29341   echo "$as_me: failed program was:" >&5
29342 sed 's/^/| /' conftest.$ac_ext >&5
29343
29344 cat >conftest.$ac_ext <<_ACEOF
29345 /* confdefs.h.  */
29346 _ACEOF
29347 cat confdefs.h >>conftest.$ac_ext
29348 cat >>conftest.$ac_ext <<_ACEOF
29349 /* end confdefs.h.  */
29350 $ac_includes_default
29351 int
29352 main ()
29353 {
29354 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) < 0)];
29355 test_array [0] = 0
29356
29357   ;
29358   return 0;
29359 }
29360 _ACEOF
29361 rm -f conftest.$ac_objext
29362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29363   (eval $ac_compile) 2>conftest.er1
29364   ac_status=$?
29365   grep -v '^ *+' conftest.er1 >conftest.err
29366   rm -f conftest.er1
29367   cat conftest.err >&5
29368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369   (exit $ac_status); } &&
29370          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29372   (eval $ac_try) 2>&5
29373   ac_status=$?
29374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375   (exit $ac_status); }; } &&
29376          { ac_try='test -s conftest.$ac_objext'
29377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29378   (eval $ac_try) 2>&5
29379   ac_status=$?
29380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381   (exit $ac_status); }; }; then
29382   ac_hi=-1 ac_mid=-1
29383   while :; do
29384     cat >conftest.$ac_ext <<_ACEOF
29385 /* confdefs.h.  */
29386 _ACEOF
29387 cat confdefs.h >>conftest.$ac_ext
29388 cat >>conftest.$ac_ext <<_ACEOF
29389 /* end confdefs.h.  */
29390 $ac_includes_default
29391 int
29392 main ()
29393 {
29394 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= $ac_mid)];
29395 test_array [0] = 0
29396
29397   ;
29398   return 0;
29399 }
29400 _ACEOF
29401 rm -f conftest.$ac_objext
29402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29403   (eval $ac_compile) 2>conftest.er1
29404   ac_status=$?
29405   grep -v '^ *+' conftest.er1 >conftest.err
29406   rm -f conftest.er1
29407   cat conftest.err >&5
29408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409   (exit $ac_status); } &&
29410          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29412   (eval $ac_try) 2>&5
29413   ac_status=$?
29414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415   (exit $ac_status); }; } &&
29416          { ac_try='test -s conftest.$ac_objext'
29417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29418   (eval $ac_try) 2>&5
29419   ac_status=$?
29420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421   (exit $ac_status); }; }; then
29422   ac_lo=$ac_mid; break
29423 else
29424   echo "$as_me: failed program was:" >&5
29425 sed 's/^/| /' conftest.$ac_ext >&5
29426
29427 ac_hi=`expr '(' $ac_mid ')' - 1`
29428                        if test $ac_mid -le $ac_hi; then
29429                          ac_lo= ac_hi=
29430                          break
29431                        fi
29432                        ac_mid=`expr 2 '*' $ac_mid`
29433 fi
29434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29435   done
29436 else
29437   echo "$as_me: failed program was:" >&5
29438 sed 's/^/| /' conftest.$ac_ext >&5
29439
29440 ac_lo= ac_hi=
29441 fi
29442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29443 fi
29444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29445 # Binary search between lo and hi bounds.
29446 while test "x$ac_lo" != "x$ac_hi"; do
29447   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29448   cat >conftest.$ac_ext <<_ACEOF
29449 /* confdefs.h.  */
29450 _ACEOF
29451 cat confdefs.h >>conftest.$ac_ext
29452 cat >>conftest.$ac_ext <<_ACEOF
29453 /* end confdefs.h.  */
29454 $ac_includes_default
29455 int
29456 main ()
29457 {
29458 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
29459 test_array [0] = 0
29460
29461   ;
29462   return 0;
29463 }
29464 _ACEOF
29465 rm -f conftest.$ac_objext
29466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29467   (eval $ac_compile) 2>conftest.er1
29468   ac_status=$?
29469   grep -v '^ *+' conftest.er1 >conftest.err
29470   rm -f conftest.er1
29471   cat conftest.err >&5
29472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473   (exit $ac_status); } &&
29474          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29476   (eval $ac_try) 2>&5
29477   ac_status=$?
29478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479   (exit $ac_status); }; } &&
29480          { ac_try='test -s conftest.$ac_objext'
29481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29482   (eval $ac_try) 2>&5
29483   ac_status=$?
29484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485   (exit $ac_status); }; }; then
29486   ac_hi=$ac_mid
29487 else
29488   echo "$as_me: failed program was:" >&5
29489 sed 's/^/| /' conftest.$ac_ext >&5
29490
29491 ac_lo=`expr '(' $ac_mid ')' + 1`
29492 fi
29493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29494 done
29495 case $ac_lo in
29496 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
29497 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
29498 See \`config.log' for more details." >&5
29499 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
29500 See \`config.log' for more details." >&2;}
29501    { (exit 1); exit 1; }; } ;;
29502 esac
29503 else
29504   if test "$cross_compiling" = yes; then
29505   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
29506 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
29507    { (exit 1); exit 1; }; }
29508 else
29509   cat >conftest.$ac_ext <<_ACEOF
29510 /* confdefs.h.  */
29511 _ACEOF
29512 cat confdefs.h >>conftest.$ac_ext
29513 cat >>conftest.$ac_ext <<_ACEOF
29514 /* end confdefs.h.  */
29515 $ac_includes_default
29516 long longval () { return (long) (sizeof (ssize_t)); }
29517 unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
29518 #include <stdio.h>
29519 #include <stdlib.h>
29520 int
29521 main ()
29522 {
29523
29524   FILE *f = fopen ("conftest.val", "w");
29525   if (! f)
29526     exit (1);
29527   if (((long) (sizeof (ssize_t))) < 0)
29528     {
29529       long i = longval ();
29530       if (i != ((long) (sizeof (ssize_t))))
29531         exit (1);
29532       fprintf (f, "%ld\n", i);
29533     }
29534   else
29535     {
29536       unsigned long i = ulongval ();
29537       if (i != ((long) (sizeof (ssize_t))))
29538         exit (1);
29539       fprintf (f, "%lu\n", i);
29540     }
29541   exit (ferror (f) || fclose (f) != 0);
29542
29543   ;
29544   return 0;
29545 }
29546 _ACEOF
29547 rm -f conftest$ac_exeext
29548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29549   (eval $ac_link) 2>&5
29550   ac_status=$?
29551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29554   (eval $ac_try) 2>&5
29555   ac_status=$?
29556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557   (exit $ac_status); }; }; then
29558   ac_cv_sizeof_ssize_t=`cat conftest.val`
29559 else
29560   echo "$as_me: program exited with status $ac_status" >&5
29561 echo "$as_me: failed program was:" >&5
29562 sed 's/^/| /' conftest.$ac_ext >&5
29563
29564 ( exit $ac_status )
29565 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
29566 See \`config.log' for more details." >&5
29567 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
29568 See \`config.log' for more details." >&2;}
29569    { (exit 1); exit 1; }; }
29570 fi
29571 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29572 fi
29573 fi
29574 rm -f conftest.val
29575 else
29576   ac_cv_sizeof_ssize_t=0
29577 fi
29578 fi
29579 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
29580 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6
29581 cat >>confdefs.h <<_ACEOF
29582 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
29583 _ACEOF
29584
29585
29586 echo "$as_me:$LINENO: checking for time_t" >&5
29587 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
29588 if test "${ac_cv_type_time_t+set}" = set; then
29589   echo $ECHO_N "(cached) $ECHO_C" >&6
29590 else
29591   cat >conftest.$ac_ext <<_ACEOF
29592 /* confdefs.h.  */
29593 _ACEOF
29594 cat confdefs.h >>conftest.$ac_ext
29595 cat >>conftest.$ac_ext <<_ACEOF
29596 /* end confdefs.h.  */
29597 $ac_includes_default
29598 int
29599 main ()
29600 {
29601 if ((time_t *) 0)
29602   return 0;
29603 if (sizeof (time_t))
29604   return 0;
29605   ;
29606   return 0;
29607 }
29608 _ACEOF
29609 rm -f conftest.$ac_objext
29610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29611   (eval $ac_compile) 2>conftest.er1
29612   ac_status=$?
29613   grep -v '^ *+' conftest.er1 >conftest.err
29614   rm -f conftest.er1
29615   cat conftest.err >&5
29616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617   (exit $ac_status); } &&
29618          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29620   (eval $ac_try) 2>&5
29621   ac_status=$?
29622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623   (exit $ac_status); }; } &&
29624          { ac_try='test -s conftest.$ac_objext'
29625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29626   (eval $ac_try) 2>&5
29627   ac_status=$?
29628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629   (exit $ac_status); }; }; then
29630   ac_cv_type_time_t=yes
29631 else
29632   echo "$as_me: failed program was:" >&5
29633 sed 's/^/| /' conftest.$ac_ext >&5
29634
29635 ac_cv_type_time_t=no
29636 fi
29637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29638 fi
29639 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
29640 echo "${ECHO_T}$ac_cv_type_time_t" >&6
29641
29642 echo "$as_me:$LINENO: checking size of time_t" >&5
29643 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
29644 if test "${ac_cv_sizeof_time_t+set}" = set; then
29645   echo $ECHO_N "(cached) $ECHO_C" >&6
29646 else
29647   if test "$ac_cv_type_time_t" = yes; then
29648   # The cast to unsigned long works around a bug in the HP C Compiler
29649   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29650   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29651   # This bug is HP SR number 8606223364.
29652   if test "$cross_compiling" = yes; then
29653   # Depending upon the size, compute the lo and hi bounds.
29654 cat >conftest.$ac_ext <<_ACEOF
29655 /* confdefs.h.  */
29656 _ACEOF
29657 cat confdefs.h >>conftest.$ac_ext
29658 cat >>conftest.$ac_ext <<_ACEOF
29659 /* end confdefs.h.  */
29660 $ac_includes_default
29661 int
29662 main ()
29663 {
29664 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
29665 test_array [0] = 0
29666
29667   ;
29668   return 0;
29669 }
29670 _ACEOF
29671 rm -f conftest.$ac_objext
29672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29673   (eval $ac_compile) 2>conftest.er1
29674   ac_status=$?
29675   grep -v '^ *+' conftest.er1 >conftest.err
29676   rm -f conftest.er1
29677   cat conftest.err >&5
29678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679   (exit $ac_status); } &&
29680          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29682   (eval $ac_try) 2>&5
29683   ac_status=$?
29684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685   (exit $ac_status); }; } &&
29686          { ac_try='test -s conftest.$ac_objext'
29687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29688   (eval $ac_try) 2>&5
29689   ac_status=$?
29690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691   (exit $ac_status); }; }; then
29692   ac_lo=0 ac_mid=0
29693   while :; do
29694     cat >conftest.$ac_ext <<_ACEOF
29695 /* confdefs.h.  */
29696 _ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h.  */
29700 $ac_includes_default
29701 int
29702 main ()
29703 {
29704 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
29705 test_array [0] = 0
29706
29707   ;
29708   return 0;
29709 }
29710 _ACEOF
29711 rm -f conftest.$ac_objext
29712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29713   (eval $ac_compile) 2>conftest.er1
29714   ac_status=$?
29715   grep -v '^ *+' conftest.er1 >conftest.err
29716   rm -f conftest.er1
29717   cat conftest.err >&5
29718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719   (exit $ac_status); } &&
29720          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29722   (eval $ac_try) 2>&5
29723   ac_status=$?
29724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725   (exit $ac_status); }; } &&
29726          { ac_try='test -s conftest.$ac_objext'
29727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728   (eval $ac_try) 2>&5
29729   ac_status=$?
29730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731   (exit $ac_status); }; }; then
29732   ac_hi=$ac_mid; break
29733 else
29734   echo "$as_me: failed program was:" >&5
29735 sed 's/^/| /' conftest.$ac_ext >&5
29736
29737 ac_lo=`expr $ac_mid + 1`
29738                     if test $ac_lo -le $ac_mid; then
29739                       ac_lo= ac_hi=
29740                       break
29741                     fi
29742                     ac_mid=`expr 2 '*' $ac_mid + 1`
29743 fi
29744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29745   done
29746 else
29747   echo "$as_me: failed program was:" >&5
29748 sed 's/^/| /' conftest.$ac_ext >&5
29749
29750 cat >conftest.$ac_ext <<_ACEOF
29751 /* confdefs.h.  */
29752 _ACEOF
29753 cat confdefs.h >>conftest.$ac_ext
29754 cat >>conftest.$ac_ext <<_ACEOF
29755 /* end confdefs.h.  */
29756 $ac_includes_default
29757 int
29758 main ()
29759 {
29760 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)];
29761 test_array [0] = 0
29762
29763   ;
29764   return 0;
29765 }
29766 _ACEOF
29767 rm -f conftest.$ac_objext
29768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29769   (eval $ac_compile) 2>conftest.er1
29770   ac_status=$?
29771   grep -v '^ *+' conftest.er1 >conftest.err
29772   rm -f conftest.er1
29773   cat conftest.err >&5
29774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775   (exit $ac_status); } &&
29776          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29778   (eval $ac_try) 2>&5
29779   ac_status=$?
29780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781   (exit $ac_status); }; } &&
29782          { ac_try='test -s conftest.$ac_objext'
29783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29784   (eval $ac_try) 2>&5
29785   ac_status=$?
29786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787   (exit $ac_status); }; }; then
29788   ac_hi=-1 ac_mid=-1
29789   while :; do
29790     cat >conftest.$ac_ext <<_ACEOF
29791 /* confdefs.h.  */
29792 _ACEOF
29793 cat confdefs.h >>conftest.$ac_ext
29794 cat >>conftest.$ac_ext <<_ACEOF
29795 /* end confdefs.h.  */
29796 $ac_includes_default
29797 int
29798 main ()
29799 {
29800 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
29801 test_array [0] = 0
29802
29803   ;
29804   return 0;
29805 }
29806 _ACEOF
29807 rm -f conftest.$ac_objext
29808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29809   (eval $ac_compile) 2>conftest.er1
29810   ac_status=$?
29811   grep -v '^ *+' conftest.er1 >conftest.err
29812   rm -f conftest.er1
29813   cat conftest.err >&5
29814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815   (exit $ac_status); } &&
29816          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818   (eval $ac_try) 2>&5
29819   ac_status=$?
29820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821   (exit $ac_status); }; } &&
29822          { ac_try='test -s conftest.$ac_objext'
29823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29824   (eval $ac_try) 2>&5
29825   ac_status=$?
29826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827   (exit $ac_status); }; }; then
29828   ac_lo=$ac_mid; break
29829 else
29830   echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29832
29833 ac_hi=`expr '(' $ac_mid ')' - 1`
29834                        if test $ac_mid -le $ac_hi; then
29835                          ac_lo= ac_hi=
29836                          break
29837                        fi
29838                        ac_mid=`expr 2 '*' $ac_mid`
29839 fi
29840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29841   done
29842 else
29843   echo "$as_me: failed program was:" >&5
29844 sed 's/^/| /' conftest.$ac_ext >&5
29845
29846 ac_lo= ac_hi=
29847 fi
29848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29849 fi
29850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29851 # Binary search between lo and hi bounds.
29852 while test "x$ac_lo" != "x$ac_hi"; do
29853   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29854   cat >conftest.$ac_ext <<_ACEOF
29855 /* confdefs.h.  */
29856 _ACEOF
29857 cat confdefs.h >>conftest.$ac_ext
29858 cat >>conftest.$ac_ext <<_ACEOF
29859 /* end confdefs.h.  */
29860 $ac_includes_default
29861 int
29862 main ()
29863 {
29864 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
29865 test_array [0] = 0
29866
29867   ;
29868   return 0;
29869 }
29870 _ACEOF
29871 rm -f conftest.$ac_objext
29872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29873   (eval $ac_compile) 2>conftest.er1
29874   ac_status=$?
29875   grep -v '^ *+' conftest.er1 >conftest.err
29876   rm -f conftest.er1
29877   cat conftest.err >&5
29878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879   (exit $ac_status); } &&
29880          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
29881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29882   (eval $ac_try) 2>&5
29883   ac_status=$?
29884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885   (exit $ac_status); }; } &&
29886          { ac_try='test -s conftest.$ac_objext'
29887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29888   (eval $ac_try) 2>&5
29889   ac_status=$?
29890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891   (exit $ac_status); }; }; then
29892   ac_hi=$ac_mid
29893 else
29894   echo "$as_me: failed program was:" >&5
29895 sed 's/^/| /' conftest.$ac_ext >&5
29896
29897 ac_lo=`expr '(' $ac_mid ')' + 1`
29898 fi
29899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29900 done
29901 case $ac_lo in
29902 ?*) ac_cv_sizeof_time_t=$ac_lo;;
29903 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
29904 See \`config.log' for more details." >&5
29905 echo "$as_me: error: cannot compute sizeof (time_t), 77
29906 See \`config.log' for more details." >&2;}
29907    { (exit 1); exit 1; }; } ;;
29908 esac
29909 else
29910   if test "$cross_compiling" = yes; then
29911   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
29912 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
29913    { (exit 1); exit 1; }; }
29914 else
29915   cat >conftest.$ac_ext <<_ACEOF
29916 /* confdefs.h.  */
29917 _ACEOF
29918 cat confdefs.h >>conftest.$ac_ext
29919 cat >>conftest.$ac_ext <<_ACEOF
29920 /* end confdefs.h.  */
29921 $ac_includes_default
29922 long longval () { return (long) (sizeof (time_t)); }
29923 unsigned long ulongval () { return (long) (sizeof (time_t)); }
29924 #include <stdio.h>
29925 #include <stdlib.h>
29926 int
29927 main ()
29928 {
29929
29930   FILE *f = fopen ("conftest.val", "w");
29931   if (! f)
29932     exit (1);
29933   if (((long) (sizeof (time_t))) < 0)
29934     {
29935       long i = longval ();
29936       if (i != ((long) (sizeof (time_t))))
29937         exit (1);
29938       fprintf (f, "%ld\n", i);
29939     }
29940   else
29941     {
29942       unsigned long i = ulongval ();
29943       if (i != ((long) (sizeof (time_t))))
29944         exit (1);
29945       fprintf (f, "%lu\n", i);
29946     }
29947   exit (ferror (f) || fclose (f) != 0);
29948
29949   ;
29950   return 0;
29951 }
29952 _ACEOF
29953 rm -f conftest$ac_exeext
29954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29955   (eval $ac_link) 2>&5
29956   ac_status=$?
29957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29960   (eval $ac_try) 2>&5
29961   ac_status=$?
29962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963   (exit $ac_status); }; }; then
29964   ac_cv_sizeof_time_t=`cat conftest.val`
29965 else
29966   echo "$as_me: program exited with status $ac_status" >&5
29967 echo "$as_me: failed program was:" >&5
29968 sed 's/^/| /' conftest.$ac_ext >&5
29969
29970 ( exit $ac_status )
29971 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
29972 See \`config.log' for more details." >&5
29973 echo "$as_me: error: cannot compute sizeof (time_t), 77
29974 See \`config.log' for more details." >&2;}
29975    { (exit 1); exit 1; }; }
29976 fi
29977 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29978 fi
29979 fi
29980 rm -f conftest.val
29981 else
29982   ac_cv_sizeof_time_t=0
29983 fi
29984 fi
29985 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
29986 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
29987 cat >>confdefs.h <<_ACEOF
29988 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
29989 _ACEOF
29990
29991
29992
29993
29994
29995 # /***********************************************************************
29996 # // Checks for library functions
29997 # ************************************************************************/
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010
30011
30012
30013
30014
30015
30016
30017
30018
30019
30020
30021
30022
30023
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040
30041
30042
30043
30044
30045
30046
30047
30048
30049
30050
30051 for ac_func in access alloca atexit atoi atol chmod chown clock_getcpuclockid clock_getres clock_gettime ctime difftime fstat getenv getpagesize getrusage gettimeofday gmtime isatty localtime longjmp lstat memcmp memcpy memmove memset mkdir mktime mmap mprotect munmap qsort raise rmdir setjmp signal snprintf strcasecmp strchr strdup strerror strftime stricmp strncasecmp strnicmp strrchr strstr time umask utime vsnprintf
30052 do
30053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30054 echo "$as_me:$LINENO: checking for $ac_func" >&5
30055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30056 if eval "test \"\${$as_ac_var+set}\" = set"; then
30057   echo $ECHO_N "(cached) $ECHO_C" >&6
30058 else
30059   cat >conftest.$ac_ext <<_ACEOF
30060 /* confdefs.h.  */
30061 _ACEOF
30062 cat confdefs.h >>conftest.$ac_ext
30063 cat >>conftest.$ac_ext <<_ACEOF
30064 /* end confdefs.h.  */
30065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30067 #define $ac_func innocuous_$ac_func
30068
30069 /* System header to define __stub macros and hopefully few prototypes,
30070     which can conflict with char $ac_func (); below.
30071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30072     <limits.h> exists even on freestanding compilers.  */
30073
30074 #ifdef __STDC__
30075 # include <limits.h>
30076 #else
30077 # include <assert.h>
30078 #endif
30079
30080 #undef $ac_func
30081
30082 /* Override any gcc2 internal prototype to avoid an error.  */
30083 #ifdef __cplusplus
30084 extern "C"
30085 {
30086 #endif
30087 /* We use char because int might match the return type of a gcc2
30088    builtin and then its argument prototype would still apply.  */
30089 char $ac_func ();
30090 /* The GNU C library defines this for functions which it implements
30091     to always fail with ENOSYS.  Some functions are actually named
30092     something starting with __ and the normal name is an alias.  */
30093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30094 choke me
30095 #else
30096 char (*f) () = $ac_func;
30097 #endif
30098 #ifdef __cplusplus
30099 }
30100 #endif
30101
30102 int
30103 main ()
30104 {
30105 return f != $ac_func;
30106   ;
30107   return 0;
30108 }
30109 _ACEOF
30110 rm -f conftest.$ac_objext conftest$ac_exeext
30111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30112   (eval $ac_link) 2>conftest.er1
30113   ac_status=$?
30114   grep -v '^ *+' conftest.er1 >conftest.err
30115   rm -f conftest.er1
30116   cat conftest.err >&5
30117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118   (exit $ac_status); } &&
30119          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30121   (eval $ac_try) 2>&5
30122   ac_status=$?
30123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124   (exit $ac_status); }; } &&
30125          { ac_try='test -s conftest$ac_exeext'
30126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30127   (eval $ac_try) 2>&5
30128   ac_status=$?
30129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130   (exit $ac_status); }; }; then
30131   eval "$as_ac_var=yes"
30132 else
30133   echo "$as_me: failed program was:" >&5
30134 sed 's/^/| /' conftest.$ac_ext >&5
30135
30136 eval "$as_ac_var=no"
30137 fi
30138 rm -f conftest.err conftest.$ac_objext \
30139       conftest$ac_exeext conftest.$ac_ext
30140 fi
30141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30143 if test `eval echo '${'$as_ac_var'}'` = yes; then
30144   cat >>confdefs.h <<_ACEOF
30145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30146 _ACEOF
30147
30148 fi
30149 done
30150
30151
30152
30153 if test "X$GCC" = Xyes; then
30154 case $host_os in
30155 cygwin* | mingw* | pw32*)
30156      test "X$LIBS" != "X" && LIBS="$LIBS "
30157      LIBS="${LIBS}-lwinmm" ;;
30158 *)
30159      ;;
30160 esac
30161 fi
30162
30163
30164
30165 # /***********************************************************************
30166 # // Write output files
30167 # ************************************************************************/
30168
30169
30170 mfx_tmp="-I$srcdir"
30171 mfx_save_CPPFLAGS=$CPPFLAGS
30172 test "X$mfx_tmp" = "X" || CPPFLAGS="$mfx_tmp $CPPFLAGS"
30173
30174 echo "$as_me:$LINENO: checking whether your compiler passes the ACC conformance test" >&5
30175 echo $ECHO_N "checking whether your compiler passes the ACC conformance test... $ECHO_C" >&6
30176
30177 cat >conftest.$ac_ext <<_ACEOF
30178 /* confdefs.h.  */
30179 _ACEOF
30180 cat confdefs.h >>conftest.$ac_ext
30181 cat >>conftest.$ac_ext <<_ACEOF
30182 /* end confdefs.h.  */
30183 #define ACC_CONFIG_NO_HEADER 1
30184 #define ACC_WANT_ACC_INCD_H 1
30185 #include "src/miniacc.h"
30186
30187 #define ACC_WANT_ACC_CHK_CH 1
30188 #undef ACCCHK_ASSERT
30189 #define ACCCHK_ASSERT(expr)     ACC_COMPILE_TIME_ASSERT_HEADER(expr)
30190 #include "src/miniacc.h"
30191
30192 #define ACC_WANT_ACC_CHK_CH 1
30193 #undef ACCCHK_ASSERT
30194 #define ACCCHK_ASSERT(expr)     ACC_COMPILE_TIME_ASSERT(expr)
30195 static void test_acc_compile_time_assert(void) {
30196 #include "src/miniacc.h"
30197 }
30198
30199 #undef NDEBUG
30200 #include <assert.h>
30201 #define ACC_WANT_ACC_CHK_CH 1
30202 #undef ACCCHK_ASSERT
30203 #define ACCCHK_ASSERT(expr)  assert(expr);
30204 static int test_acc_run_time_assert(int r) {
30205 #include "src/miniacc.h"
30206 return r;
30207 }
30208
30209 int
30210 main ()
30211 {
30212
30213 test_acc_compile_time_assert();
30214 if (test_acc_run_time_assert(1) != 1) return 1;
30215
30216
30217   ;
30218   return 0;
30219 }
30220 _ACEOF
30221
30222 mfx_tmp=FAILED
30223 rm -f conftest.$ac_objext
30224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30225   (eval $ac_compile) 2>conftest.er1
30226   ac_status=$?
30227   grep -v '^ *+' conftest.er1 >conftest.err
30228   rm -f conftest.er1
30229   cat conftest.err >&5
30230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231   (exit $ac_status); } &&
30232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
30233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30234   (eval $ac_try) 2>&5
30235   ac_status=$?
30236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237   (exit $ac_status); }; } &&
30238          { ac_try='test -s conftest.$ac_objext'
30239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30240   (eval $ac_try) 2>&5
30241   ac_status=$?
30242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243   (exit $ac_status); }; }; then
30244   mfx_tmp=yes
30245 else
30246   echo "$as_me: failed program was:" >&5
30247 sed 's/^/| /' conftest.$ac_ext >&5
30248
30249 fi
30250 rm -f conftest.err conftest.$ac_objext
30251 rm -f conftest.$ac_ext conftest.$ac_objext
30252
30253 CPPFLAGS=$mfx_save_CPPFLAGS
30254
30255 echo "$as_me:$LINENO: result: $mfx_tmp" >&5
30256 echo "${ECHO_T}$mfx_tmp" >&6
30257 case x$mfx_tmp in
30258   xpassed | xyes) ;;
30259   *)
30260     { echo "$as_me:$LINENO: " >&5
30261 echo "$as_me: " >&6;}
30262     { echo "$as_me:$LINENO: Your compiler failed the ACC conformance test - for details see " >&5
30263 echo "$as_me: Your compiler failed the ACC conformance test - for details see " >&6;}
30264     { echo "$as_me:$LINENO: \`config.log'. Please check that log file and consider sending" >&5
30265 echo "$as_me: \`config.log'. Please check that log file and consider sending" >&6;}
30266     { echo "$as_me:$LINENO: a patch or bug-report to <${PACKAGE_BUGREPORT}>." >&5
30267 echo "$as_me: a patch or bug-report to <${PACKAGE_BUGREPORT}>." >&6;}
30268     { echo "$as_me:$LINENO: Thanks for your support." >&5
30269 echo "$as_me: Thanks for your support." >&6;}
30270     { echo "$as_me:$LINENO: " >&5
30271 echo "$as_me: " >&6;}
30272     { { echo "$as_me:$LINENO: error: ACC conformance test failed. Stop." >&5
30273 echo "$as_me: error: ACC conformance test failed. Stop." >&2;}
30274    { (exit 1); exit 1; }; }
30275     ;;
30276 esac
30277
30278
30279 if test -r .Conf.settings2; then
30280     . ./.Conf.settings2
30281 fi
30282
30283 test "X$CPPFLAGS" != "X" && CPPFLAGS="$CPPFLAGS "
30284 CPPFLAGS="${CPPFLAGS}-DLZO_HAVE_CONFIG_H"
30285 if test "X$enable_asm" != Xno; then
30286     CPPFLAGS="$CPPFLAGS -DLZO_USE_ASM"
30287 fi
30288
30289
30290
30291
30292
30293 configure_CPPFLAGS=$CPPFLAGS
30294 configure_CFLAGS=$CFLAGS
30295
30296
30297
30298                                                                                 ac_config_files="$ac_config_files Makefile examples/Makefile include/Makefile include/lzo/Makefile lzotest/Makefile minilzo/Makefile src/Makefile tests/Makefile"
30299
30300 cat >confcache <<\_ACEOF
30301 # This file is a shell script that caches the results of configure
30302 # tests run on this system so they can be shared between configure
30303 # scripts and configure runs, see configure's option --config-cache.
30304 # It is not useful on other systems.  If it contains results you don't
30305 # want to keep, you may remove or edit it.
30306 #
30307 # config.status only pays attention to the cache file if you give it
30308 # the --recheck option to rerun configure.
30309 #
30310 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30311 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30312 # following values.
30313
30314 _ACEOF
30315
30316 # The following way of writing the cache mishandles newlines in values,
30317 # but we know of no workaround that is simple, portable, and efficient.
30318 # So, don't put newlines in cache variables' values.
30319 # Ultrix sh set writes to stderr and can't be redirected directly,
30320 # and sets the high bit in the cache file unless we assign to the vars.
30321 {
30322   (set) 2>&1 |
30323     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30324     *ac_space=\ *)
30325       # `set' does not quote correctly, so add quotes (double-quote
30326       # substitution turns \\\\ into \\, and sed turns \\ into \).
30327       sed -n \
30328         "s/'/'\\\\''/g;
30329           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30330       ;;
30331     *)
30332       # `set' quotes correctly as required by POSIX, so do not add quotes.
30333       sed -n \
30334         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30335       ;;
30336     esac;
30337 } |
30338   sed '
30339      t clear
30340      : clear
30341      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30342      t end
30343      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30344      : end' >>confcache
30345 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30346   if test -w $cache_file; then
30347     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30348     cat confcache >$cache_file
30349   else
30350     echo "not updating unwritable cache $cache_file"
30351   fi
30352 fi
30353 rm -f confcache
30354
30355 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30356 # Let make expand exec_prefix.
30357 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30358
30359 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30360 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30361 # trailing colons and then remove the whole line if VPATH becomes empty
30362 # (actually we leave an empty line to preserve line numbers).
30363 if test "x$srcdir" = x.; then
30364   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30365 s/:*\$(srcdir):*/:/;
30366 s/:*\${srcdir}:*/:/;
30367 s/:*@srcdir@:*/:/;
30368 s/^\([^=]*=[     ]*\):*/\1/;
30369 s/:*$//;
30370 s/^[^=]*=[       ]*$//;
30371 }'
30372 fi
30373
30374 DEFS=-DHAVE_CONFIG_H
30375
30376 ac_libobjs=
30377 ac_ltlibobjs=
30378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30379   # 1. Remove the extension, and $U if already installed.
30380   ac_i=`echo "$ac_i" |
30381          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30382   # 2. Add them.
30383   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30384   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30385 done
30386 LIBOBJS=$ac_libobjs
30387
30388 LTLIBOBJS=$ac_ltlibobjs
30389
30390
30391 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30392   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30393 Usually this means the macro was only invoked conditionally." >&5
30394 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30395 Usually this means the macro was only invoked conditionally." >&2;}
30396    { (exit 1); exit 1; }; }
30397 fi
30398 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30399   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30400 Usually this means the macro was only invoked conditionally." >&5
30401 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30402 Usually this means the macro was only invoked conditionally." >&2;}
30403    { (exit 1); exit 1; }; }
30404 fi
30405 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30406   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30407 Usually this means the macro was only invoked conditionally." >&5
30408 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30409 Usually this means the macro was only invoked conditionally." >&2;}
30410    { (exit 1); exit 1; }; }
30411 fi
30412 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30413   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30414 Usually this means the macro was only invoked conditionally." >&5
30415 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30416 Usually this means the macro was only invoked conditionally." >&2;}
30417    { (exit 1); exit 1; }; }
30418 fi
30419 if test -z "${LZO_USE_ASM_TRUE}" && test -z "${LZO_USE_ASM_FALSE}"; then
30420   { { echo "$as_me:$LINENO: error: conditional \"LZO_USE_ASM\" was never defined.
30421 Usually this means the macro was only invoked conditionally." >&5
30422 echo "$as_me: error: conditional \"LZO_USE_ASM\" was never defined.
30423 Usually this means the macro was only invoked conditionally." >&2;}
30424    { (exit 1); exit 1; }; }
30425 fi
30426
30427 : ${CONFIG_STATUS=./config.status}
30428 ac_clean_files_save=$ac_clean_files
30429 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30430 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30431 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30432 cat >$CONFIG_STATUS <<_ACEOF
30433 #! $SHELL
30434 # Generated by $as_me.
30435 # Run this file to recreate the current configuration.
30436 # Compiler output produced by configure, useful for debugging
30437 # configure, is in config.log if it exists.
30438
30439 debug=false
30440 ac_cs_recheck=false
30441 ac_cs_silent=false
30442 SHELL=\${CONFIG_SHELL-$SHELL}
30443 _ACEOF
30444
30445 cat >>$CONFIG_STATUS <<\_ACEOF
30446 ## --------------------- ##
30447 ## M4sh Initialization.  ##
30448 ## --------------------- ##
30449
30450 # Be Bourne compatible
30451 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30452   emulate sh
30453   NULLCMD=:
30454   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30455   # is contrary to our usage.  Disable this feature.
30456   alias -g '${1+"$@"}'='"$@"'
30457 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30458   set -o posix
30459 fi
30460 DUALCASE=1; export DUALCASE # for MKS sh
30461
30462 # Support unset when possible.
30463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30464   as_unset=unset
30465 else
30466   as_unset=false
30467 fi
30468
30469
30470 # Work around bugs in pre-3.0 UWIN ksh.
30471 $as_unset ENV MAIL MAILPATH
30472 PS1='$ '
30473 PS2='> '
30474 PS4='+ '
30475
30476 # NLS nuisances.
30477 for as_var in \
30478   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30479   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30480   LC_TELEPHONE LC_TIME
30481 do
30482   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30483     eval $as_var=C; export $as_var
30484   else
30485     $as_unset $as_var
30486   fi
30487 done
30488
30489 # Required to use basename.
30490 if expr a : '\(a\)' >/dev/null 2>&1; then
30491   as_expr=expr
30492 else
30493   as_expr=false
30494 fi
30495
30496 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30497   as_basename=basename
30498 else
30499   as_basename=false
30500 fi
30501
30502
30503 # Name of the executable.
30504 as_me=`$as_basename "$0" ||
30505 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30506          X"$0" : 'X\(//\)$' \| \
30507          X"$0" : 'X\(/\)$' \| \
30508          .     : '\(.\)' 2>/dev/null ||
30509 echo X/"$0" |
30510     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30511           /^X\/\(\/\/\)$/{ s//\1/; q; }
30512           /^X\/\(\/\).*/{ s//\1/; q; }
30513           s/.*/./; q'`
30514
30515
30516 # PATH needs CR, and LINENO needs CR and PATH.
30517 # Avoid depending upon Character Ranges.
30518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30521 as_cr_digits='0123456789'
30522 as_cr_alnum=$as_cr_Letters$as_cr_digits
30523
30524 # The user is always right.
30525 if test "${PATH_SEPARATOR+set}" != set; then
30526   echo "#! /bin/sh" >conf$$.sh
30527   echo  "exit 0"   >>conf$$.sh
30528   chmod +x conf$$.sh
30529   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30530     PATH_SEPARATOR=';'
30531   else
30532     PATH_SEPARATOR=:
30533   fi
30534   rm -f conf$$.sh
30535 fi
30536
30537
30538   as_lineno_1=$LINENO
30539   as_lineno_2=$LINENO
30540   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30541   test "x$as_lineno_1" != "x$as_lineno_2" &&
30542   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30543   # Find who we are.  Look in the path if we contain no path at all
30544   # relative or not.
30545   case $0 in
30546     *[\\/]* ) as_myself=$0 ;;
30547     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30548 for as_dir in $PATH
30549 do
30550   IFS=$as_save_IFS
30551   test -z "$as_dir" && as_dir=.
30552   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30553 done
30554
30555        ;;
30556   esac
30557   # We did not find ourselves, most probably we were run as `sh COMMAND'
30558   # in which case we are not to be found in the path.
30559   if test "x$as_myself" = x; then
30560     as_myself=$0
30561   fi
30562   if test ! -f "$as_myself"; then
30563     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30564 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30565    { (exit 1); exit 1; }; }
30566   fi
30567   case $CONFIG_SHELL in
30568   '')
30569     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30570 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30571 do
30572   IFS=$as_save_IFS
30573   test -z "$as_dir" && as_dir=.
30574   for as_base in sh bash ksh sh5; do
30575          case $as_dir in
30576          /*)
30577            if ("$as_dir/$as_base" -c '
30578   as_lineno_1=$LINENO
30579   as_lineno_2=$LINENO
30580   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30581   test "x$as_lineno_1" != "x$as_lineno_2" &&
30582   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30583              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30584              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30585              CONFIG_SHELL=$as_dir/$as_base
30586              export CONFIG_SHELL
30587              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30588            fi;;
30589          esac
30590        done
30591 done
30592 ;;
30593   esac
30594
30595   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30596   # uniformly replaced by the line number.  The first 'sed' inserts a
30597   # line-number line before each line; the second 'sed' does the real
30598   # work.  The second script uses 'N' to pair each line-number line
30599   # with the numbered line, and appends trailing '-' during
30600   # substitution so that $LINENO is not a special case at line end.
30601   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30602   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30603   sed '=' <$as_myself |
30604     sed '
30605       N
30606       s,$,-,
30607       : loop
30608       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30609       t loop
30610       s,-$,,
30611       s,^['$as_cr_digits']*\n,,
30612     ' >$as_me.lineno &&
30613   chmod +x $as_me.lineno ||
30614     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30615 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30616    { (exit 1); exit 1; }; }
30617
30618   # Don't try to exec as it changes $[0], causing all sort of problems
30619   # (the dirname of $[0] is not the place where we might find the
30620   # original and so on.  Autoconf is especially sensible to this).
30621   . ./$as_me.lineno
30622   # Exit status is that of the last command.
30623   exit
30624 }
30625
30626
30627 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30628   *c*,-n*) ECHO_N= ECHO_C='
30629 ' ECHO_T='      ' ;;
30630   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30631   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30632 esac
30633
30634 if expr a : '\(a\)' >/dev/null 2>&1; then
30635   as_expr=expr
30636 else
30637   as_expr=false
30638 fi
30639
30640 rm -f conf$$ conf$$.exe conf$$.file
30641 echo >conf$$.file
30642 if ln -s conf$$.file conf$$ 2>/dev/null; then
30643   # We could just check for DJGPP; but this test a) works b) is more generic
30644   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30645   if test -f conf$$.exe; then
30646     # Don't use ln at all; we don't have any links
30647     as_ln_s='cp -p'
30648   else
30649     as_ln_s='ln -s'
30650   fi
30651 elif ln conf$$.file conf$$ 2>/dev/null; then
30652   as_ln_s=ln
30653 else
30654   as_ln_s='cp -p'
30655 fi
30656 rm -f conf$$ conf$$.exe conf$$.file
30657
30658 if mkdir -p . 2>/dev/null; then
30659   as_mkdir_p=:
30660 else
30661   test -d ./-p && rmdir ./-p
30662   as_mkdir_p=false
30663 fi
30664
30665 as_executable_p="test -f"
30666
30667 # Sed expression to map a string onto a valid CPP name.
30668 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30669
30670 # Sed expression to map a string onto a valid variable name.
30671 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30672
30673
30674 # IFS
30675 # We need space, tab and new line, in precisely that order.
30676 as_nl='
30677 '
30678 IFS="   $as_nl"
30679
30680 # CDPATH.
30681 $as_unset CDPATH
30682
30683 exec 6>&1
30684
30685 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30686 # report actual input values of CONFIG_FILES etc. instead of their
30687 # values after options handling.  Logging --version etc. is OK.
30688 exec 5>>config.log
30689 {
30690   echo
30691   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30692 ## Running $as_me. ##
30693 _ASBOX
30694 } >&5
30695 cat >&5 <<_CSEOF
30696
30697 This file was extended by lzo $as_me 2.03, which was
30698 generated by GNU Autoconf 2.59.  Invocation command line was
30699
30700   CONFIG_FILES    = $CONFIG_FILES
30701   CONFIG_HEADERS  = $CONFIG_HEADERS
30702   CONFIG_LINKS    = $CONFIG_LINKS
30703   CONFIG_COMMANDS = $CONFIG_COMMANDS
30704   $ $0 $@
30705
30706 _CSEOF
30707 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30708 echo >&5
30709 _ACEOF
30710
30711 # Files that config.status was made for.
30712 if test -n "$ac_config_files"; then
30713   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30714 fi
30715
30716 if test -n "$ac_config_headers"; then
30717   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30718 fi
30719
30720 if test -n "$ac_config_links"; then
30721   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30722 fi
30723
30724 if test -n "$ac_config_commands"; then
30725   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30726 fi
30727
30728 cat >>$CONFIG_STATUS <<\_ACEOF
30729
30730 ac_cs_usage="\
30731 \`$as_me' instantiates files from templates according to the
30732 current configuration.
30733
30734 Usage: $0 [OPTIONS] [FILE]...
30735
30736   -h, --help       print this help, then exit
30737   -V, --version    print version number, then exit
30738   -q, --quiet      do not print progress messages
30739   -d, --debug      don't remove temporary files
30740       --recheck    update $as_me by reconfiguring in the same conditions
30741   --file=FILE[:TEMPLATE]
30742                    instantiate the configuration file FILE
30743   --header=FILE[:TEMPLATE]
30744                    instantiate the configuration header FILE
30745
30746 Configuration files:
30747 $config_files
30748
30749 Configuration headers:
30750 $config_headers
30751
30752 Configuration commands:
30753 $config_commands
30754
30755 Report bugs to <bug-autoconf@gnu.org>."
30756 _ACEOF
30757
30758 cat >>$CONFIG_STATUS <<_ACEOF
30759 ac_cs_version="\\
30760 lzo config.status 2.03
30761 configured by $0, generated by GNU Autoconf 2.59,
30762   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30763
30764 Copyright (C) 2003 Free Software Foundation, Inc.
30765 This config.status script is free software; the Free Software Foundation
30766 gives unlimited permission to copy, distribute and modify it."
30767 srcdir=$srcdir
30768 INSTALL="$INSTALL"
30769 _ACEOF
30770
30771 cat >>$CONFIG_STATUS <<\_ACEOF
30772 # If no file are specified by the user, then we need to provide default
30773 # value.  By we need to know if files were specified by the user.
30774 ac_need_defaults=:
30775 while test $# != 0
30776 do
30777   case $1 in
30778   --*=*)
30779     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30780     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30781     ac_shift=:
30782     ;;
30783   -*)
30784     ac_option=$1
30785     ac_optarg=$2
30786     ac_shift=shift
30787     ;;
30788   *) # This is not an option, so the user has probably given explicit
30789      # arguments.
30790      ac_option=$1
30791      ac_need_defaults=false;;
30792   esac
30793
30794   case $ac_option in
30795   # Handling of the options.
30796 _ACEOF
30797 cat >>$CONFIG_STATUS <<\_ACEOF
30798   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30799     ac_cs_recheck=: ;;
30800   --version | --vers* | -V )
30801     echo "$ac_cs_version"; exit 0 ;;
30802   --he | --h)
30803     # Conflict between --help and --header
30804     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30805 Try \`$0 --help' for more information." >&5
30806 echo "$as_me: error: ambiguous option: $1
30807 Try \`$0 --help' for more information." >&2;}
30808    { (exit 1); exit 1; }; };;
30809   --help | --hel | -h )
30810     echo "$ac_cs_usage"; exit 0 ;;
30811   --debug | --d* | -d )
30812     debug=: ;;
30813   --file | --fil | --fi | --f )
30814     $ac_shift
30815     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30816     ac_need_defaults=false;;
30817   --header | --heade | --head | --hea )
30818     $ac_shift
30819     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30820     ac_need_defaults=false;;
30821   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30822   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30823     ac_cs_silent=: ;;
30824
30825   # This is an error.
30826   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30827 Try \`$0 --help' for more information." >&5
30828 echo "$as_me: error: unrecognized option: $1
30829 Try \`$0 --help' for more information." >&2;}
30830    { (exit 1); exit 1; }; } ;;
30831
30832   *) ac_config_targets="$ac_config_targets $1" ;;
30833
30834   esac
30835   shift
30836 done
30837
30838 ac_configure_extra_args=
30839
30840 if $ac_cs_silent; then
30841   exec 6>/dev/null
30842   ac_configure_extra_args="$ac_configure_extra_args --silent"
30843 fi
30844
30845 _ACEOF
30846 cat >>$CONFIG_STATUS <<_ACEOF
30847 if \$ac_cs_recheck; then
30848   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30849   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30850 fi
30851
30852 _ACEOF
30853
30854 cat >>$CONFIG_STATUS <<_ACEOF
30855 #
30856 # INIT-COMMANDS section.
30857 #
30858
30859 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30860
30861 _ACEOF
30862
30863
30864
30865 cat >>$CONFIG_STATUS <<\_ACEOF
30866 for ac_config_target in $ac_config_targets
30867 do
30868   case "$ac_config_target" in
30869   # Handling of arguments.
30870   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30871   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
30872   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
30873   "include/lzo/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/lzo/Makefile" ;;
30874   "lzotest/Makefile" ) CONFIG_FILES="$CONFIG_FILES lzotest/Makefile" ;;
30875   "minilzo/Makefile" ) CONFIG_FILES="$CONFIG_FILES minilzo/Makefile" ;;
30876   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30877   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
30878   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30879   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
30880   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30881 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30882    { (exit 1); exit 1; }; };;
30883   esac
30884 done
30885
30886 # If the user did not use the arguments to specify the items to instantiate,
30887 # then the envvar interface is used.  Set only those that are not.
30888 # We use the long form for the default assignment because of an extremely
30889 # bizarre bug on SunOS 4.1.3.
30890 if $ac_need_defaults; then
30891   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30892   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30893   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30894 fi
30895
30896 # Have a temporary directory for convenience.  Make it in the build tree
30897 # simply because there is no reason to put it here, and in addition,
30898 # creating and moving files from /tmp can sometimes cause problems.
30899 # Create a temporary directory, and hook for its removal unless debugging.
30900 $debug ||
30901 {
30902   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30903   trap '{ (exit 1); exit 1; }' 1 2 13 15
30904 }
30905
30906 # Create a (secure) tmp directory for tmp files.
30907
30908 {
30909   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30910   test -n "$tmp" && test -d "$tmp"
30911 }  ||
30912 {
30913   tmp=./confstat$$-$RANDOM
30914   (umask 077 && mkdir $tmp)
30915 } ||
30916 {
30917    echo "$me: cannot create a temporary directory in ." >&2
30918    { (exit 1); exit 1; }
30919 }
30920
30921 _ACEOF
30922
30923 cat >>$CONFIG_STATUS <<_ACEOF
30924
30925 #
30926 # CONFIG_FILES section.
30927 #
30928
30929 # No need to generate the scripts if there are no CONFIG_FILES.
30930 # This happens for instance when ./config.status config.h
30931 if test -n "\$CONFIG_FILES"; then
30932   # Protect against being on the right side of a sed subst in config.status.
30933   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30934    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30935 s,@SHELL@,$SHELL,;t t
30936 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30937 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30938 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30939 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30940 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30941 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30942 s,@exec_prefix@,$exec_prefix,;t t
30943 s,@prefix@,$prefix,;t t
30944 s,@program_transform_name@,$program_transform_name,;t t
30945 s,@bindir@,$bindir,;t t
30946 s,@sbindir@,$sbindir,;t t
30947 s,@libexecdir@,$libexecdir,;t t
30948 s,@datadir@,$datadir,;t t
30949 s,@sysconfdir@,$sysconfdir,;t t
30950 s,@sharedstatedir@,$sharedstatedir,;t t
30951 s,@localstatedir@,$localstatedir,;t t
30952 s,@libdir@,$libdir,;t t
30953 s,@includedir@,$includedir,;t t
30954 s,@oldincludedir@,$oldincludedir,;t t
30955 s,@infodir@,$infodir,;t t
30956 s,@mandir@,$mandir,;t t
30957 s,@build_alias@,$build_alias,;t t
30958 s,@host_alias@,$host_alias,;t t
30959 s,@target_alias@,$target_alias,;t t
30960 s,@DEFS@,$DEFS,;t t
30961 s,@ECHO_C@,$ECHO_C,;t t
30962 s,@ECHO_N@,$ECHO_N,;t t
30963 s,@ECHO_T@,$ECHO_T,;t t
30964 s,@LIBS@,$LIBS,;t t
30965 s,@build@,$build,;t t
30966 s,@build_cpu@,$build_cpu,;t t
30967 s,@build_vendor@,$build_vendor,;t t
30968 s,@build_os@,$build_os,;t t
30969 s,@host@,$host,;t t
30970 s,@host_cpu@,$host_cpu,;t t
30971 s,@host_vendor@,$host_vendor,;t t
30972 s,@host_os@,$host_os,;t t
30973 s,@target@,$target,;t t
30974 s,@target_cpu@,$target_cpu,;t t
30975 s,@target_vendor@,$target_vendor,;t t
30976 s,@target_os@,$target_os,;t t
30977 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
30978 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
30979 s,@MAINT@,$MAINT,;t t
30980 s,@CC@,$CC,;t t
30981 s,@CFLAGS@,$CFLAGS,;t t
30982 s,@LDFLAGS@,$LDFLAGS,;t t
30983 s,@CPPFLAGS@,$CPPFLAGS,;t t
30984 s,@ac_ct_CC@,$ac_ct_CC,;t t
30985 s,@EXEEXT@,$EXEEXT,;t t
30986 s,@OBJEXT@,$OBJEXT,;t t
30987 s,@CPP@,$CPP,;t t
30988 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30989 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30990 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30991 s,@CYGPATH_W@,$CYGPATH_W,;t t
30992 s,@PACKAGE@,$PACKAGE,;t t
30993 s,@VERSION@,$VERSION,;t t
30994 s,@ACLOCAL@,$ACLOCAL,;t t
30995 s,@AUTOCONF@,$AUTOCONF,;t t
30996 s,@AUTOMAKE@,$AUTOMAKE,;t t
30997 s,@AUTOHEADER@,$AUTOHEADER,;t t
30998 s,@MAKEINFO@,$MAKEINFO,;t t
30999 s,@install_sh@,$install_sh,;t t
31000 s,@STRIP@,$STRIP,;t t
31001 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31002 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31003 s,@mkdir_p@,$mkdir_p,;t t
31004 s,@AWK@,$AWK,;t t
31005 s,@SET_MAKE@,$SET_MAKE,;t t
31006 s,@am__leading_dot@,$am__leading_dot,;t t
31007 s,@AMTAR@,$AMTAR,;t t
31008 s,@am__tar@,$am__tar,;t t
31009 s,@am__untar@,$am__untar,;t t
31010 s,@DEPDIR@,$DEPDIR,;t t
31011 s,@am__include@,$am__include,;t t
31012 s,@am__quote@,$am__quote,;t t
31013 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31014 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31015 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31016 s,@CCDEPMODE@,$CCDEPMODE,;t t
31017 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31018 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31019 s,@EGREP@,$EGREP,;t t
31020 s,@LN_S@,$LN_S,;t t
31021 s,@ECHO@,$ECHO,;t t
31022 s,@AR@,$AR,;t t
31023 s,@ac_ct_AR@,$ac_ct_AR,;t t
31024 s,@RANLIB@,$RANLIB,;t t
31025 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31026 s,@CXX@,$CXX,;t t
31027 s,@CXXFLAGS@,$CXXFLAGS,;t t
31028 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31029 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31030 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31031 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31032 s,@CXXCPP@,$CXXCPP,;t t
31033 s,@F77@,$F77,;t t
31034 s,@FFLAGS@,$FFLAGS,;t t
31035 s,@ac_ct_F77@,$ac_ct_F77,;t t
31036 s,@LIBTOOL@,$LIBTOOL,;t t
31037 s,@LZO_USE_ASM_TRUE@,$LZO_USE_ASM_TRUE,;t t
31038 s,@LZO_USE_ASM_FALSE@,$LZO_USE_ASM_FALSE,;t t
31039 s,@LZO_ASM_VPATH@,$LZO_ASM_VPATH,;t t
31040 s,@LZO_CPPFLAGS@,$LZO_CPPFLAGS,;t t
31041 s,@LZO_EXTRA_CPPFLAGS@,$LZO_EXTRA_CPPFLAGS,;t t
31042 s,@LZO_CFLAGS@,$LZO_CFLAGS,;t t
31043 s,@LZO_EXTRA_CFLAGS@,$LZO_EXTRA_CFLAGS,;t t
31044 s,@configure_CPPFLAGS@,$configure_CPPFLAGS,;t t
31045 s,@configure_CFLAGS@,$configure_CFLAGS,;t t
31046 s,@LIBOBJS@,$LIBOBJS,;t t
31047 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31048 CEOF
31049
31050 _ACEOF
31051
31052   cat >>$CONFIG_STATUS <<\_ACEOF
31053   # Split the substitutions into bite-sized pieces for seds with
31054   # small command number limits, like on Digital OSF/1 and HP-UX.
31055   ac_max_sed_lines=48
31056   ac_sed_frag=1 # Number of current file.
31057   ac_beg=1 # First line for current file.
31058   ac_end=$ac_max_sed_lines # Line after last line for current file.
31059   ac_more_lines=:
31060   ac_sed_cmds=
31061   while $ac_more_lines; do
31062     if test $ac_beg -gt 1; then
31063       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31064     else
31065       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31066     fi
31067     if test ! -s $tmp/subs.frag; then
31068       ac_more_lines=false
31069     else
31070       # The purpose of the label and of the branching condition is to
31071       # speed up the sed processing (if there are no `@' at all, there
31072       # is no need to browse any of the substitutions).
31073       # These are the two extra sed commands mentioned above.
31074       (echo ':t
31075   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31076       if test -z "$ac_sed_cmds"; then
31077         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31078       else
31079         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31080       fi
31081       ac_sed_frag=`expr $ac_sed_frag + 1`
31082       ac_beg=$ac_end
31083       ac_end=`expr $ac_end + $ac_max_sed_lines`
31084     fi
31085   done
31086   if test -z "$ac_sed_cmds"; then
31087     ac_sed_cmds=cat
31088   fi
31089 fi # test -n "$CONFIG_FILES"
31090
31091 _ACEOF
31092 cat >>$CONFIG_STATUS <<\_ACEOF
31093 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31094   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31095   case $ac_file in
31096   - | *:- | *:-:* ) # input from stdin
31097         cat >$tmp/stdin
31098         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31099         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31100   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31101         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31102   * )   ac_file_in=$ac_file.in ;;
31103   esac
31104
31105   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31106   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31108          X"$ac_file" : 'X\(//\)[^/]' \| \
31109          X"$ac_file" : 'X\(//\)$' \| \
31110          X"$ac_file" : 'X\(/\)' \| \
31111          .     : '\(.\)' 2>/dev/null ||
31112 echo X"$ac_file" |
31113     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31114           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31115           /^X\(\/\/\)$/{ s//\1/; q; }
31116           /^X\(\/\).*/{ s//\1/; q; }
31117           s/.*/./; q'`
31118   { if $as_mkdir_p; then
31119     mkdir -p "$ac_dir"
31120   else
31121     as_dir="$ac_dir"
31122     as_dirs=
31123     while test ! -d "$as_dir"; do
31124       as_dirs="$as_dir $as_dirs"
31125       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31126 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31127          X"$as_dir" : 'X\(//\)[^/]' \| \
31128          X"$as_dir" : 'X\(//\)$' \| \
31129          X"$as_dir" : 'X\(/\)' \| \
31130          .     : '\(.\)' 2>/dev/null ||
31131 echo X"$as_dir" |
31132     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31133           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31134           /^X\(\/\/\)$/{ s//\1/; q; }
31135           /^X\(\/\).*/{ s//\1/; q; }
31136           s/.*/./; q'`
31137     done
31138     test ! -n "$as_dirs" || mkdir $as_dirs
31139   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31140 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31141    { (exit 1); exit 1; }; }; }
31142
31143   ac_builddir=.
31144
31145 if test "$ac_dir" != .; then
31146   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31147   # A "../" for each directory in $ac_dir_suffix.
31148   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31149 else
31150   ac_dir_suffix= ac_top_builddir=
31151 fi
31152
31153 case $srcdir in
31154   .)  # No --srcdir option.  We are building in place.
31155     ac_srcdir=.
31156     if test -z "$ac_top_builddir"; then
31157        ac_top_srcdir=.
31158     else
31159        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31160     fi ;;
31161   [\\/]* | ?:[\\/]* )  # Absolute path.
31162     ac_srcdir=$srcdir$ac_dir_suffix;
31163     ac_top_srcdir=$srcdir ;;
31164   *) # Relative path.
31165     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31166     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31167 esac
31168
31169 # Do not use `cd foo && pwd` to compute absolute paths, because
31170 # the directories may not exist.
31171 case `pwd` in
31172 .) ac_abs_builddir="$ac_dir";;
31173 *)
31174   case "$ac_dir" in
31175   .) ac_abs_builddir=`pwd`;;
31176   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31177   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31178   esac;;
31179 esac
31180 case $ac_abs_builddir in
31181 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31182 *)
31183   case ${ac_top_builddir}. in
31184   .) ac_abs_top_builddir=$ac_abs_builddir;;
31185   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31186   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31187   esac;;
31188 esac
31189 case $ac_abs_builddir in
31190 .) ac_abs_srcdir=$ac_srcdir;;
31191 *)
31192   case $ac_srcdir in
31193   .) ac_abs_srcdir=$ac_abs_builddir;;
31194   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31195   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31196   esac;;
31197 esac
31198 case $ac_abs_builddir in
31199 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31200 *)
31201   case $ac_top_srcdir in
31202   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31203   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31204   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31205   esac;;
31206 esac
31207
31208
31209   case $INSTALL in
31210   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31211   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31212   esac
31213
31214   # Let's still pretend it is `configure' which instantiates (i.e., don't
31215   # use $as_me), people would be surprised to read:
31216   #    /* config.h.  Generated by config.status.  */
31217   if test x"$ac_file" = x-; then
31218     configure_input=
31219   else
31220     configure_input="$ac_file.  "
31221   fi
31222   configure_input=$configure_input"Generated from `echo $ac_file_in |
31223                                      sed 's,.*/,,'` by configure."
31224
31225   # First look for the input files in the build tree, otherwise in the
31226   # src tree.
31227   ac_file_inputs=`IFS=:
31228     for f in $ac_file_in; do
31229       case $f in
31230       -) echo $tmp/stdin ;;
31231       [\\/$]*)
31232          # Absolute (can't be DOS-style, as IFS=:)
31233          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31234 echo "$as_me: error: cannot find input file: $f" >&2;}
31235    { (exit 1); exit 1; }; }
31236          echo "$f";;
31237       *) # Relative
31238          if test -f "$f"; then
31239            # Build tree
31240            echo "$f"
31241          elif test -f "$srcdir/$f"; then
31242            # Source tree
31243            echo "$srcdir/$f"
31244          else
31245            # /dev/null tree
31246            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31247 echo "$as_me: error: cannot find input file: $f" >&2;}
31248    { (exit 1); exit 1; }; }
31249          fi;;
31250       esac
31251     done` || { (exit 1); exit 1; }
31252
31253   if test x"$ac_file" != x-; then
31254     { echo "$as_me:$LINENO: creating $ac_file" >&5
31255 echo "$as_me: creating $ac_file" >&6;}
31256     rm -f "$ac_file"
31257   fi
31258 _ACEOF
31259 cat >>$CONFIG_STATUS <<_ACEOF
31260   sed "$ac_vpsub
31261 $extrasub
31262 _ACEOF
31263 cat >>$CONFIG_STATUS <<\_ACEOF
31264 :t
31265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31266 s,@configure_input@,$configure_input,;t t
31267 s,@srcdir@,$ac_srcdir,;t t
31268 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31269 s,@top_srcdir@,$ac_top_srcdir,;t t
31270 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31271 s,@builddir@,$ac_builddir,;t t
31272 s,@abs_builddir@,$ac_abs_builddir,;t t
31273 s,@top_builddir@,$ac_top_builddir,;t t
31274 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31275 s,@INSTALL@,$ac_INSTALL,;t t
31276 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31277   rm -f $tmp/stdin
31278   if test x"$ac_file" != x-; then
31279     mv $tmp/out $ac_file
31280   else
31281     cat $tmp/out
31282     rm -f $tmp/out
31283   fi
31284
31285 done
31286 _ACEOF
31287 cat >>$CONFIG_STATUS <<\_ACEOF
31288
31289 #
31290 # CONFIG_HEADER section.
31291 #
31292
31293 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31294 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31295 #
31296 # ac_d sets the value in "#define NAME VALUE" lines.
31297 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31298 ac_dB='[         ].*$,\1#\2'
31299 ac_dC=' '
31300 ac_dD=',;t'
31301 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31302 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31303 ac_uB='$,\1#\2define\3'
31304 ac_uC=' '
31305 ac_uD=',;t'
31306
31307 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31308   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31309   case $ac_file in
31310   - | *:- | *:-:* ) # input from stdin
31311         cat >$tmp/stdin
31312         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31313         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31314   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31315         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31316   * )   ac_file_in=$ac_file.in ;;
31317   esac
31318
31319   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31320 echo "$as_me: creating $ac_file" >&6;}
31321
31322   # First look for the input files in the build tree, otherwise in the
31323   # src tree.
31324   ac_file_inputs=`IFS=:
31325     for f in $ac_file_in; do
31326       case $f in
31327       -) echo $tmp/stdin ;;
31328       [\\/$]*)
31329          # Absolute (can't be DOS-style, as IFS=:)
31330          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31331 echo "$as_me: error: cannot find input file: $f" >&2;}
31332    { (exit 1); exit 1; }; }
31333          # Do quote $f, to prevent DOS paths from being IFS'd.
31334          echo "$f";;
31335       *) # Relative
31336          if test -f "$f"; then
31337            # Build tree
31338            echo "$f"
31339          elif test -f "$srcdir/$f"; then
31340            # Source tree
31341            echo "$srcdir/$f"
31342          else
31343            # /dev/null tree
31344            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31345 echo "$as_me: error: cannot find input file: $f" >&2;}
31346    { (exit 1); exit 1; }; }
31347          fi;;
31348       esac
31349     done` || { (exit 1); exit 1; }
31350   # Remove the trailing spaces.
31351   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31352
31353 _ACEOF
31354
31355 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31356 # `conftest.undefs', that substitutes the proper values into
31357 # config.h.in to produce config.h.  The first handles `#define'
31358 # templates, and the second `#undef' templates.
31359 # And first: Protect against being on the right side of a sed subst in
31360 # config.status.  Protect against being in an unquoted here document
31361 # in config.status.
31362 rm -f conftest.defines conftest.undefs
31363 # Using a here document instead of a string reduces the quoting nightmare.
31364 # Putting comments in sed scripts is not portable.
31365 #
31366 # `end' is used to avoid that the second main sed command (meant for
31367 # 0-ary CPP macros) applies to n-ary macro definitions.
31368 # See the Autoconf documentation for `clear'.
31369 cat >confdef2sed.sed <<\_ACEOF
31370 s/[\\&,]/\\&/g
31371 s,[\\$`],\\&,g
31372 t clear
31373 : clear
31374 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31375 t end
31376 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31377 : end
31378 _ACEOF
31379 # If some macros were called several times there might be several times
31380 # the same #defines, which is useless.  Nevertheless, we may not want to
31381 # sort them, since we want the *last* AC-DEFINE to be honored.
31382 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31383 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31384 rm -f confdef2sed.sed
31385
31386 # This sed command replaces #undef with comments.  This is necessary, for
31387 # example, in the case of _POSIX_SOURCE, which is predefined and required
31388 # on some systems where configure will not decide to define it.
31389 cat >>conftest.undefs <<\_ACEOF
31390 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31391 _ACEOF
31392
31393 # Break up conftest.defines because some shells have a limit on the size
31394 # of here documents, and old seds have small limits too (100 cmds).
31395 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31396 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31397 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31398 echo '  :' >>$CONFIG_STATUS
31399 rm -f conftest.tail
31400 while grep . conftest.defines >/dev/null
31401 do
31402   # Write a limited-size here document to $tmp/defines.sed.
31403   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31404   # Speed up: don't consider the non `#define' lines.
31405   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31406   # Work around the forget-to-reset-the-flag bug.
31407   echo 't clr' >>$CONFIG_STATUS
31408   echo ': clr' >>$CONFIG_STATUS
31409   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31410   echo 'CEOF
31411   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31412   rm -f $tmp/in
31413   mv $tmp/out $tmp/in
31414 ' >>$CONFIG_STATUS
31415   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31416   rm -f conftest.defines
31417   mv conftest.tail conftest.defines
31418 done
31419 rm -f conftest.defines
31420 echo '  fi # grep' >>$CONFIG_STATUS
31421 echo >>$CONFIG_STATUS
31422
31423 # Break up conftest.undefs because some shells have a limit on the size
31424 # of here documents, and old seds have small limits too (100 cmds).
31425 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31426 rm -f conftest.tail
31427 while grep . conftest.undefs >/dev/null
31428 do
31429   # Write a limited-size here document to $tmp/undefs.sed.
31430   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31431   # Speed up: don't consider the non `#undef'
31432   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31433   # Work around the forget-to-reset-the-flag bug.
31434   echo 't clr' >>$CONFIG_STATUS
31435   echo ': clr' >>$CONFIG_STATUS
31436   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31437   echo 'CEOF
31438   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31439   rm -f $tmp/in
31440   mv $tmp/out $tmp/in
31441 ' >>$CONFIG_STATUS
31442   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31443   rm -f conftest.undefs
31444   mv conftest.tail conftest.undefs
31445 done
31446 rm -f conftest.undefs
31447
31448 cat >>$CONFIG_STATUS <<\_ACEOF
31449   # Let's still pretend it is `configure' which instantiates (i.e., don't
31450   # use $as_me), people would be surprised to read:
31451   #    /* config.h.  Generated by config.status.  */
31452   if test x"$ac_file" = x-; then
31453     echo "/* Generated by configure.  */" >$tmp/config.h
31454   else
31455     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31456   fi
31457   cat $tmp/in >>$tmp/config.h
31458   rm -f $tmp/in
31459   if test x"$ac_file" != x-; then
31460     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31461       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31462 echo "$as_me: $ac_file is unchanged" >&6;}
31463     else
31464       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31466          X"$ac_file" : 'X\(//\)[^/]' \| \
31467          X"$ac_file" : 'X\(//\)$' \| \
31468          X"$ac_file" : 'X\(/\)' \| \
31469          .     : '\(.\)' 2>/dev/null ||
31470 echo X"$ac_file" |
31471     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31472           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31473           /^X\(\/\/\)$/{ s//\1/; q; }
31474           /^X\(\/\).*/{ s//\1/; q; }
31475           s/.*/./; q'`
31476       { if $as_mkdir_p; then
31477     mkdir -p "$ac_dir"
31478   else
31479     as_dir="$ac_dir"
31480     as_dirs=
31481     while test ! -d "$as_dir"; do
31482       as_dirs="$as_dir $as_dirs"
31483       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31484 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31485          X"$as_dir" : 'X\(//\)[^/]' \| \
31486          X"$as_dir" : 'X\(//\)$' \| \
31487          X"$as_dir" : 'X\(/\)' \| \
31488          .     : '\(.\)' 2>/dev/null ||
31489 echo X"$as_dir" |
31490     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31491           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31492           /^X\(\/\/\)$/{ s//\1/; q; }
31493           /^X\(\/\).*/{ s//\1/; q; }
31494           s/.*/./; q'`
31495     done
31496     test ! -n "$as_dirs" || mkdir $as_dirs
31497   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31498 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31499    { (exit 1); exit 1; }; }; }
31500
31501       rm -f $ac_file
31502       mv $tmp/config.h $ac_file
31503     fi
31504   else
31505     cat $tmp/config.h
31506     rm -f $tmp/config.h
31507   fi
31508 # Compute $ac_file's index in $config_headers.
31509 _am_stamp_count=1
31510 for _am_header in $config_headers :; do
31511   case $_am_header in
31512     $ac_file | $ac_file:* )
31513       break ;;
31514     * )
31515       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
31516   esac
31517 done
31518 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
31519 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31520          X$ac_file : 'X\(//\)[^/]' \| \
31521          X$ac_file : 'X\(//\)$' \| \
31522          X$ac_file : 'X\(/\)' \| \
31523          .     : '\(.\)' 2>/dev/null ||
31524 echo X$ac_file |
31525     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31526           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31527           /^X\(\/\/\)$/{ s//\1/; q; }
31528           /^X\(\/\).*/{ s//\1/; q; }
31529           s/.*/./; q'`/stamp-h$_am_stamp_count
31530 done
31531 _ACEOF
31532 cat >>$CONFIG_STATUS <<\_ACEOF
31533
31534 #
31535 # CONFIG_COMMANDS section.
31536 #
31537 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31538   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31539   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31540   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31541 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31542          X"$ac_dest" : 'X\(//\)[^/]' \| \
31543          X"$ac_dest" : 'X\(//\)$' \| \
31544          X"$ac_dest" : 'X\(/\)' \| \
31545          .     : '\(.\)' 2>/dev/null ||
31546 echo X"$ac_dest" |
31547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31548           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31549           /^X\(\/\/\)$/{ s//\1/; q; }
31550           /^X\(\/\).*/{ s//\1/; q; }
31551           s/.*/./; q'`
31552   { if $as_mkdir_p; then
31553     mkdir -p "$ac_dir"
31554   else
31555     as_dir="$ac_dir"
31556     as_dirs=
31557     while test ! -d "$as_dir"; do
31558       as_dirs="$as_dir $as_dirs"
31559       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31561          X"$as_dir" : 'X\(//\)[^/]' \| \
31562          X"$as_dir" : 'X\(//\)$' \| \
31563          X"$as_dir" : 'X\(/\)' \| \
31564          .     : '\(.\)' 2>/dev/null ||
31565 echo X"$as_dir" |
31566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31567           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31568           /^X\(\/\/\)$/{ s//\1/; q; }
31569           /^X\(\/\).*/{ s//\1/; q; }
31570           s/.*/./; q'`
31571     done
31572     test ! -n "$as_dirs" || mkdir $as_dirs
31573   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31574 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31575    { (exit 1); exit 1; }; }; }
31576
31577   ac_builddir=.
31578
31579 if test "$ac_dir" != .; then
31580   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31581   # A "../" for each directory in $ac_dir_suffix.
31582   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31583 else
31584   ac_dir_suffix= ac_top_builddir=
31585 fi
31586
31587 case $srcdir in
31588   .)  # No --srcdir option.  We are building in place.
31589     ac_srcdir=.
31590     if test -z "$ac_top_builddir"; then
31591        ac_top_srcdir=.
31592     else
31593        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31594     fi ;;
31595   [\\/]* | ?:[\\/]* )  # Absolute path.
31596     ac_srcdir=$srcdir$ac_dir_suffix;
31597     ac_top_srcdir=$srcdir ;;
31598   *) # Relative path.
31599     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31600     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31601 esac
31602
31603 # Do not use `cd foo && pwd` to compute absolute paths, because
31604 # the directories may not exist.
31605 case `pwd` in
31606 .) ac_abs_builddir="$ac_dir";;
31607 *)
31608   case "$ac_dir" in
31609   .) ac_abs_builddir=`pwd`;;
31610   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31611   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31612   esac;;
31613 esac
31614 case $ac_abs_builddir in
31615 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31616 *)
31617   case ${ac_top_builddir}. in
31618   .) ac_abs_top_builddir=$ac_abs_builddir;;
31619   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31620   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31621   esac;;
31622 esac
31623 case $ac_abs_builddir in
31624 .) ac_abs_srcdir=$ac_srcdir;;
31625 *)
31626   case $ac_srcdir in
31627   .) ac_abs_srcdir=$ac_abs_builddir;;
31628   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31629   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31630   esac;;
31631 esac
31632 case $ac_abs_builddir in
31633 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31634 *)
31635   case $ac_top_srcdir in
31636   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31637   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31638   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31639   esac;;
31640 esac
31641
31642
31643   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31644 echo "$as_me: executing $ac_dest commands" >&6;}
31645   case $ac_dest in
31646     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
31647   # Strip MF so we end up with the name of the file.
31648   mf=`echo "$mf" | sed -e 's/:.*$//'`
31649   # Check whether this is an Automake generated Makefile or not.
31650   # We used to match only the files named `Makefile.in', but
31651   # some people rename them; so instead we look at the file content.
31652   # Grep'ing the first line is not enough: some people post-process
31653   # each Makefile.in and add a new line on top of each file to say so.
31654   # So let's grep whole file.
31655   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
31656     dirpart=`(dirname "$mf") 2>/dev/null ||
31657 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31658          X"$mf" : 'X\(//\)[^/]' \| \
31659          X"$mf" : 'X\(//\)$' \| \
31660          X"$mf" : 'X\(/\)' \| \
31661          .     : '\(.\)' 2>/dev/null ||
31662 echo X"$mf" |
31663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31664           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31665           /^X\(\/\/\)$/{ s//\1/; q; }
31666           /^X\(\/\).*/{ s//\1/; q; }
31667           s/.*/./; q'`
31668   else
31669     continue
31670   fi
31671   # Extract the definition of DEPDIR, am__include, and am__quote
31672   # from the Makefile without running `make'.
31673   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
31674   test -z "$DEPDIR" && continue
31675   am__include=`sed -n 's/^am__include = //p' < "$mf"`
31676   test -z "am__include" && continue
31677   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
31678   # When using ansi2knr, U may be empty or an underscore; expand it
31679   U=`sed -n 's/^U = //p' < "$mf"`
31680   # Find all dependency output files, they are included files with
31681   # $(DEPDIR) in their names.  We invoke sed twice because it is the
31682   # simplest approach to changing $(DEPDIR) to its actual value in the
31683   # expansion.
31684   for file in `sed -n "
31685     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
31686        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
31687     # Make sure the directory exists.
31688     test -f "$dirpart/$file" && continue
31689     fdir=`(dirname "$file") 2>/dev/null ||
31690 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31691          X"$file" : 'X\(//\)[^/]' \| \
31692          X"$file" : 'X\(//\)$' \| \
31693          X"$file" : 'X\(/\)' \| \
31694          .     : '\(.\)' 2>/dev/null ||
31695 echo X"$file" |
31696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31697           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31698           /^X\(\/\/\)$/{ s//\1/; q; }
31699           /^X\(\/\).*/{ s//\1/; q; }
31700           s/.*/./; q'`
31701     { if $as_mkdir_p; then
31702     mkdir -p $dirpart/$fdir
31703   else
31704     as_dir=$dirpart/$fdir
31705     as_dirs=
31706     while test ! -d "$as_dir"; do
31707       as_dirs="$as_dir $as_dirs"
31708       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31710          X"$as_dir" : 'X\(//\)[^/]' \| \
31711          X"$as_dir" : 'X\(//\)$' \| \
31712          X"$as_dir" : 'X\(/\)' \| \
31713          .     : '\(.\)' 2>/dev/null ||
31714 echo X"$as_dir" |
31715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31717           /^X\(\/\/\)$/{ s//\1/; q; }
31718           /^X\(\/\).*/{ s//\1/; q; }
31719           s/.*/./; q'`
31720     done
31721     test ! -n "$as_dirs" || mkdir $as_dirs
31722   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
31723 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
31724    { (exit 1); exit 1; }; }; }
31725
31726     # echo "creating $dirpart/$file"
31727     echo '# dummy' > "$dirpart/$file"
31728   done
31729 done
31730  ;;
31731   esac
31732 done
31733 _ACEOF
31734
31735 cat >>$CONFIG_STATUS <<\_ACEOF
31736
31737 { (exit 0); exit 0; }
31738 _ACEOF
31739 chmod +x $CONFIG_STATUS
31740 ac_clean_files=$ac_clean_files_save
31741
31742
31743 # configure is writing to config.log, and then calls config.status.
31744 # config.status does its own redirection, appending to config.log.
31745 # Unfortunately, on DOS this fails, as config.log is still kept open
31746 # by configure, so config.status won't be able to write to it; its
31747 # output is simply discarded.  So we exec the FD to /dev/null,
31748 # effectively closing config.log, so it can be properly (re)opened and
31749 # appended to by config.status.  When coming back to configure, we
31750 # need to make the FD available again.
31751 if test "$no_create" != yes; then
31752   ac_cs_success=:
31753   ac_config_status_args=
31754   test "$silent" = yes &&
31755     ac_config_status_args="$ac_config_status_args --quiet"
31756   exec 5>/dev/null
31757   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31758   exec 5>>config.log
31759   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31760   # would make configure fail if this is the last instruction.
31761   $ac_cs_success || { (exit 1); exit 1; }
31762 fi
31763
31764
31765
31766 ##   enable AMD64 assembly code : ${asm_msg_amd64}
31767 cat <<EOF
31768
31769    LZO configuration summary
31770    -------------------------
31771    LZO version                : ${PACKAGE_VERSION}
31772    configured for host        : ${host_cpu}-${host_vendor}-${host_os}
31773    source code location       : ${srcdir}
31774    compiler                   : ${CC}
31775    preprocessor flags         : ${CPPFLAGS}
31776    compiler flags             : ${CFLAGS}
31777    build static library       : ${enable_static}
31778    build shared library       : ${enable_shared}
31779    enable i386 assembly code  : ${asm_msg_i386}
31780
31781
31782    LZO ${PACKAGE_VERSION} configured.
31783
31784    Copyright (C) 1996-2008 Markus Franz Xaver Johannes Oberhumer
31785    All Rights Reserved.
31786
31787    The LZO library is free software; you can redistribute it and/or
31788    modify it under the terms of the GNU General Public License as
31789    published by the Free Software Foundation; either version 2 of
31790    the License, or (at your option) any later version.
31791
31792    The LZO library is distributed in the hope that it will be useful,
31793    but WITHOUT ANY WARRANTY; without even the implied warranty of
31794    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31795    GNU General Public License for more details.
31796
31797    Markus F.X.J. Oberhumer
31798    <markus@oberhumer.com>
31799    http://www.oberhumer.com/opensource/lzo/
31800
31801
31802 Type \`make' to build LZO. Type \`make install' to install LZO.
31803 After installing LZO, please read the accompanied documentation.
31804
31805 EOF
31806
31807 # vi:ts=4:et